:root {
    --primary-color: #4a4a4a;
    --primary-dark: #2d2d2d;
    --primary-light: #6c6c6c;
    --secondary-color: #FB690A;
    --accent-color: #FB690A;
    --bg-color: #ffffff;
    --card-bg: #f8f9fa;
    --text-color: #2b2d42;
    --text-light: #6c757d;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Password gate overlay */
.gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: linear-gradient(135deg, #1f5d3f 0%, #2d8659 50%, #1f5d3f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gate-overlay.gate-unlocked {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.gate-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.gate-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.gate-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.gate-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.gate-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gate-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
}

.gate-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(251, 105, 10, 0.2);
}

.gate-error {
    font-size: 0.9rem;
    color: var(--error-color);
    min-height: 1.25rem;
    text-align: left;
}

.gate-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #FB690A 0%, #e05f09 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.1s;
}

.gate-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #e05f09 0%, #c95408 100%);
    transform: scale(1.02);
}

.gate-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #2d8659 0%, #1f5d3f 100%);
    color: white;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px;
    min-height: 50px;
    max-width: 50px !important;
    max-height: 50px !important;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    overflow: hidden;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.logo h1 {
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    margin: 0;
}

.logo-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

/* Custom scrollbar for sidebar */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-link svg {
    flex-shrink: 0;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-link.active {
    background: linear-gradient(135deg, #FB690A 0%, #ff8534 100%);
    color: white;
    border-left: 4px solid #FB690A;
}

/* Mobile header & nav – hidden on desktop */
.mobile-header,
.mobile-nav,
.mobile-nav-overlay {
    display: none;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    background: #f5f5f5;
    transition: margin-left 0.3s ease;
}

/* Sections */
.section {
    display: none;
    padding: 3rem 0;
    min-height: 100vh;
    animation: fadeIn 0.3s ease-in-out;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Home – socials intro */
.socials-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 2rem 0;
}

/* Social tiles (home – referral links) */
.social-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.25rem;
}

.social-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.social-tile:hover,
a.social-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #2d8659;
}

a.social-tile {
    text-decoration: none;
}

.social-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.social-tile-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-tile-icon svg {
    width: 28px;
    height: 28px;
}

.social-tile h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.35rem 0;
    text-align: center;
}

.social-tile:hover h3,
a.social-tile:hover h3 {
    color: #2d8659;
}

.social-tile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.social-tile-links a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.2s, opacity 0.2s;
}

.social-tile-links a:hover {
    color: #adb5bd;
    text-decoration: none;
}

.social-tile-links a:hover .social-tile-flag {
    opacity: 0.85;
}

.social-tile-flag {
    display: block;
    height: 0.85rem;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.social-tile-region {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #2d8659;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn:hover {
    background: #1f5d3f;
}

/* Section Headers */
section h2 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.section-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Guidelines */
.guideline-section {
    margin-bottom: 3rem;
}

.guideline-section h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.guideline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.guideline-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.guideline-card h4 {
    color: #FB690A;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.guideline-card ul {
    list-style: none;
    padding-left: 0;
}

.guideline-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.content-box {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    line-height: 1.8;
    border: 1px solid var(--border-color);
}

.content-box p {
    margin-bottom: 1rem;
}

.richtlijnen-fb-link {
    color: #2d8659;
    text-decoration: underline;
    transition: color 0.2s;
}

.richtlijnen-fb-link:hover {
    color: #1f5d3f;
}

.urgent-box {
    background: linear-gradient(135deg, #FB690A, #ff8534);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.urgent-box h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.urgent-box p {
    margin-bottom: 0.5rem;
}

.urgent-box strong {
    font-size: 1.2rem;
}

/* Example Texts */
.search-box {
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: white;
    color: var(--text-color);
}

.search-input:focus {
    outline: none;
    border-color: #FB690A;
}

.text-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
    background: #2d8659;
    color: white;
    border-color: #2d8659;
}

.example-texts {
    display: grid;
    gap: 1.5rem;
}

.example-text-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid var(--border-color);
}

.example-text-item:hover {
    transform: translateY(-3px);
}

.example-text-item h4 {
    color: #FB690A;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.example-text-item .question {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.example-text-item .answer {
    color: var(--text-light);
    line-height: 1.8;
    white-space: pre-wrap;
}

.example-text-item .copy-example-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.example-text-item .copy-example-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

.example-text-item .copy-example-btn svg {
    width: 16px;
    height: 16px;
}

.example-text-item .copy-example-btn.copied {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

/* Referrals */
.referral-section {
    margin-bottom: 3rem;
}

.referral-section h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.referral-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.referral-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid var(--border-color);
}

.referral-card:hover {
    transform: translateY(-3px);
}

.referral-card.urgent {
    background: linear-gradient(135deg, #FB690A, #ff8534);
    color: white;
}

.referral-card h4 {
    color: #FB690A;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.referral-card.urgent h4 {
    color: white;
}

.org-logo {
    width: 100%;
    max-width: 180px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    display: block;
}

/* Political card with horizontal logo */
.political-card {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 1rem 3rem !important;
}

.org-logo-horizontal {
    width: 280px;
    height: 280px;
    object-fit: contain;
    flex-shrink: 0;
}

.political-content {
    flex: 1;
}

.political-content h4 {
    margin-top: 0;
}

.referral-card p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.referral-card.urgent p {
    color: white;
}

.referral-card strong {
    color: var(--text-color);
    font-weight: 600;
}

.referral-card.urgent strong {
    color: white;
}

/* Chatbot */
.chatbot-section {
    padding: 0 !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 280px;
    display: none;
}

.chatbot-section.active {
    display: flex;
    flex-direction: column;
}

.chatbot-container-fullscreen {
    background: white;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-container {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.image-preview-container {
    padding: 1rem 2rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.image-preview {
    position: relative;
    display: inline-block;
    max-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.remove-image-btn:hover {
    background: rgba(220, 53, 69, 1);
}

.chatbot-header {
    background: white;
    color: var(--text-color);
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-bottom: 1px solid #e5e7eb;
}

.chatbot-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chatbot-logo {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Info icon and tooltip */
.info-icon-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.info-icon {
    color: #9ca3af;
    cursor: help;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f3f4f6;
}

.info-icon:hover {
    color: #2d8659;
    background: #dcfce7;
    transform: scale(1.1);
}

.info-tooltip {
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 8px;
    padding: 1rem;
    width: 320px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.info-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.95);
    border-left: 1px solid rgba(229, 231, 235, 0.8);
    border-top: 1px solid rgba(229, 231, 235, 0.8);
    transform: translateX(-50%) rotate(45deg);
}

.info-icon-container:hover .info-tooltip {
    opacity: 1;
    visibility: visible;
}

.info-tooltip p {
    margin: 0;
    color: rgba(51, 65, 85, 0.9);
    font-size: 0.875rem;
    line-height: 1.5;
}

.info-tooltip p:not(:last-child) {
    margin-bottom: 0.75rem;
}

.clear-chat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-chat-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

.clear-chat-btn svg {
    width: 18px;
    height: 18px;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
}

/* Custom scrollbar for chat messages */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Empty state placeholder */
.chat-empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #9ca3af;
    font-size: 0.95rem;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.chat-empty-state.hidden {
    opacity: 0;
    visibility: hidden;
}

.chat-empty-state p {
    margin: 0;
}

.message {
    display: flex;
    width: 100%;
    padding: 0.5rem 1.5rem;
    align-items: flex-start;
}

/* Bot message - links uitgelijnd */
.bot-message {
    justify-content: flex-start;
}

/* User message - rechts uitgelijnd */
.user-message {
    justify-content: flex-end;
}

.message-content {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    max-width: 70%;
    position: relative;
}

/* Bot message - logo aan de linkerkant */
.bot-message .message-content {
    flex-direction: row;
}

/* User message - icoon aan de rechterkant */
.user-message .message-content {
    flex-direction: row-reverse;
}

/* Avatar styling - alleen voor bot */
.bot-message .message-content::before {
    content: '';
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
    background: white url('logo.png') center/80% no-repeat;
    border: 1px solid #e5e7eb;
}

/* User message - no avatar */
.user-message .message-content::before {
    content: none;
    display: none;
}

/* Loading message animation */
.loading-message {
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-message .message-text {
    opacity: 0.7;
    font-style: italic;
    color: #6b7280;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* Chat bubble styling */
.message-text {
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Bot message - NO bubble (like ChatGPT) */
.bot-message .message-text {
    background: transparent;
    padding: 0;
    color: var(--text-color);
}

/* User message - WITH bubble */
.user-message .message-text {
    background: linear-gradient(135deg, #2d8659 0%, #25704d 100%);
    color: white;
    padding: 0.875rem 1.125rem;
    border-radius: 18px;
    border-bottom-right-radius: 4px;
    box-shadow: 0 1px 3px rgba(45, 134, 89, 0.3);
}

.message-text p {
    margin: 0;
    font-size: 0.95rem;
}

.message-text p:not(:last-child) {
    margin-bottom: 0.5rem;
}

/* Links in messages */
.message-text a {
    color: inherit;
    text-decoration: underline;
    word-break: break-all;
    transition: opacity 0.2s;
}

.bot-message .message-text a {
    color: #2563eb;
    font-weight: 500;
}

.bot-message .message-text a:hover {
    opacity: 0.8;
    color: #1d4ed8;
}

.user-message .message-text a {
    color: #d0fae4;
    text-decoration-color: rgba(255, 255, 255, 0.6);
}

.user-message .message-text a:hover {
    text-decoration-color: rgba(255, 255, 255, 1);
}

.message-text strong {
    font-weight: 600;
}

.user-message .message-text strong {
    color: #d0fae4;
}

.message-text img {
    border-radius: 12px;
    margin-top: 0.5rem;
}

/* Copy button for bot messages */
.copy-message-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-message-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

.copy-message-btn svg {
    width: 16px;
    height: 16px;
}

.copy-message-btn.copied {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

/* Refresh button on user messages */
.refresh-msg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.refresh-msg-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

.refresh-msg-btn svg {
    width: 16px;
    height: 16px;
}

/* Branch navigation (< >) on bot messages */
.branch-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.branch-prev,
.branch-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
}

.branch-prev:hover,
.branch-next:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

.branch-indicator {
    font-size: 0.8rem;
    color: #6b7280;
}

.message-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.chatbot-input-container {
    padding: 1.5rem 2rem 2rem 2rem;
    background: white;
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-shrink: 0;
    border-top: 1px solid #e5e7eb;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 24px;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.input-wrapper:focus-within {
    border-color: #FB690A;
    box-shadow: 0 0 0 3px rgba(251, 105, 10, 0.1);
}

.upload-btn {
    padding: 0.5rem;
    background: transparent;
    color: #6b7280;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.upload-btn:hover {
    background: #f3f4f6;
    color: var(--text-color);
}

.upload-btn svg {
    width: 20px;
    height: 20px;
}

.input-wrapper textarea {
    flex: 1;
    padding: 0.5rem;
    border: none;
    font-size: 0.95rem;
    font-family: inherit;
    resize: none;
    background: transparent;
    color: var(--text-color);
    line-height: 1.5;
    max-height: 200px;
    outline: none;
}

.input-wrapper textarea::placeholder {
    color: #9ca3af;
}


.send-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    background: #FB690A;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.send-btn:hover:not(:disabled) {
    background: #e05f09;
    transform: scale(1.05);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Loading state - no animation */
.send-btn.loading {
    cursor: wait;
    opacity: 0.6;
}

.send-btn svg {
    width: 18px;
    height: 18px;
}

.send-btn span {
    display: none;
}

.loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }

    /* Mobile header – fixed top bar */
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        min-height: 56px;
        height: calc(56px + env(safe-area-inset-top, 0px));
        padding: 0 1rem;
        padding-top: env(safe-area-inset-top, 0px);
        background: linear-gradient(180deg, #2d8659 0%, #1f5d3f 100%);
        color: white;
        z-index: 1002;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .mobile-header-logo {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: white;
        text-decoration: none;
        font-weight: 700;
    }

    .mobile-logo-image {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px;
        min-height: 36px;
        max-width: 36px !important;
        max-height: 36px !important;
        object-fit: contain;
        flex-shrink: 0;
        display: block;
    }

    .mobile-header-title {
        font-size: 1.1rem;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0;
        background: rgba(255, 255, 255, 0.15);
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.2s;
    }

    .mobile-menu-btn:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    .mobile-menu-btn span {
        display: block;
        width: 20px;
        height: 2px;
        background: white;
        border-radius: 1px;
        transition: transform 0.3s, opacity 0.3s;
        margin: 0 auto;
    }

    .mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Mobile nav dropdown */
    .mobile-nav {
        display: block;
        position: fixed;
        top: calc(56px + env(safe-area-inset-top, 0px));
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        z-index: 1001;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .mobile-nav.is-open {
        max-height: 80vh;
        overflow-y: auto;
    }

    .mobile-nav-menu {
        list-style: none;
        margin: 0;
        padding: 0.5rem 0;
    }

    .mobile-nav-menu li {
        margin: 0;
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.25rem;
        color: var(--text-color);
        text-decoration: none;
        font-weight: 500;
        border-bottom: 1px solid #f0f0f0;
        transition: background 0.2s;
    }

    .mobile-nav-link svg {
        flex-shrink: 0;
        color: currentColor;
    }

    .mobile-nav-link:hover {
        background: #f8f9fa;
    }

    .mobile-nav-link.active {
        background: linear-gradient(135deg, rgba(251, 105, 10, 0.15) 0%, rgba(255, 133, 52, 0.1) 100%);
        color: #FB690A;
        border-left: 4px solid #FB690A;
    }

    .mobile-nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .mobile-nav-overlay.is-open {
        display: block;
        opacity: 1;
    }

    .main-content {
        margin-left: 0;
        padding-top: calc(56px + env(safe-area-inset-top, 0px));
    }

    .chatbot-section {
        top: calc(56px + env(safe-area-inset-top, 0px));
        left: 0;
        right: 0;
        bottom: 0;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .chatbot-container-fullscreen {
        height: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
        padding-bottom: 0;
    }

    .chatbot-messages {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 140px;
        padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
    }

    .chatbot-input-container {
        position: fixed;
        left: 0;
        right: 0;
        bottom: env(safe-area-inset-bottom, 0px);
        z-index: 100;
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
        gap: 0.5rem;
        margin: 0;
        border-top: 1px solid #e5e7eb;
        background: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
        display: flex;
        flex-wrap: nowrap;
        align-items: flex-end;
        box-sizing: border-box;
        overflow: visible;
    }

    .chatbot-input-container .input-wrapper {
        min-width: 0;
        flex: 1;
    }

    .chatbot-input-container .send-btn {
        flex-shrink: 0;
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
    }

    .container {
        padding: 0 1.5rem;
    }

    .socials-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .social-tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .social-tile {
        min-height: 120px;
        padding: 1.25rem 0.75rem;
    }

    .social-tile-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
    }

    .social-tile-icon img,
    .social-tile-icon svg {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .social-tile h3 {
        font-size: 0.95rem;
    }

    .social-tile-links a {
        font-size: 0.8rem;
    }

    .social-tile-flag {
        height: 0.75rem;
    }

    .social-tile-region {
        font-size: 0.75rem;
    }

    .referral-grid {
        grid-template-columns: 1fr;
    }

    .guideline-grid {
        grid-template-columns: 1fr;
    }

    .political-card {
        flex-direction: column;
        align-items: center;
        padding: 1rem 1.5rem !important;
    }

    .org-logo-horizontal {
        width: 200px;
        height: 200px;
        margin-bottom: 1rem;
    }

    .message {
        padding: 0.375rem 1rem;
    }

    .message-content {
        max-width: 85%;
        gap: 0.5rem;
    }

    .bot-message .message-content::before {
        width: 28px;
        height: 28px;
    }

    .user-message .message-text {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .copy-message-btn {
        padding: 0.4rem;
    }

    .copy-message-btn svg {
        width: 14px;
        height: 14px;
    }

    .example-text-item .copy-example-btn {
        padding: 0.4rem;
    }

    .example-text-item .copy-example-btn svg {
        width: 14px;
        height: 14px;
    }

    .input-wrapper {
        padding: 0.375rem 0.875rem;
    }

    .input-wrapper textarea {
        font-size: 0.9rem;
        min-height: 40px;
    }

    .upload-btn {
        padding: 0.375rem;
    }

    .send-btn {
        width: 38px;
        height: 38px;
    }

    .send-btn svg {
        width: 16px;
        height: 16px;
    }

    .image-preview-container {
        padding: 0.75rem 1rem;
        max-width: 100%;
    }

    .chatbot-header {
        padding: 1rem;
    }

    .chatbot-header h3 {
        font-size: 1rem;
    }

    .chatbot-header-left {
        gap: 0.5rem;
    }

    .chatbot-logo {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px;
        min-height: 28px;
        max-width: 28px !important;
        max-height: 28px !important;
        object-fit: contain;
        flex-shrink: 0;
    }

    .info-icon {
        width: 18px;
        height: 18px;
    }

    .info-tooltip {
        width: 280px;
        left: auto;
        right: -10px;
        transform: none;
    }

    .info-tooltip::before {
        left: auto;
        right: 20px;
        transform: rotate(45deg);
    }

    .clear-chat-btn {
        padding: 0.4rem;
    }

    .clear-chat-btn svg {
        width: 16px;
        height: 16px;
    }

    section h2 {
        font-size: 1.75rem;
    }

    .text-categories {
        gap: 0.5rem;
    }

    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}
