/* Header Styles - Peec.ai Inspired */

/* Header Container */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

/* Logo */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-brand a {
    display: flex;
    align-items: center;
}

.nav-brand .logo-icon {
    height: 17px;
    width: auto;
}

.nav-brand .logo-icon-right {
    height: 28px;
    width: auto;
}

/* Main Menu */
.header-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.header-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.header-link--soon {
    cursor: default;
    opacity: 0.7;
}

.header-link--soon:hover {
    background: transparent;
}

.header-link--soon .badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    flex-shrink: 0;
}

.badge-soon {
    background: rgba(0, 100, 250, 0.15);
    color: rgb(0, 100, 250);
}

.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.dropdown-trigger:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.dropdown-trigger svg {
    transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-trigger svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-lg);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: all 0.15s ease;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.dropdown-item .badge {
    flex-shrink: 0;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

/* Header Search */
.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 220px;
    padding: 10px 16px 10px 42px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 100, 250, 0.1);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.theme-toggle svg {
    position: absolute;
    transition: all 0.3s ease;
}

.theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

[data-theme="dark"] .theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

[data-theme="dark"] .theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: background 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: var(--bg-tertiary);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

.mobile-menu-toggle .icon-close {
    display: none;
}

.mobile-menu-toggle.active .icon-menu {
    display: none;
}

.mobile-menu-toggle.active .icon-close {
    display: block;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--bg-primary);
    border-right: 1px solid var(--border);
    z-index: 1000;
    padding: 72px 20px 24px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.mobile-search {
    position: relative;
}

.mobile-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.mobile-search .search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-primary);
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.mobile-menu-link svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.mobile-menu-link:hover svg,
.mobile-menu-link.active svg {
    color: var(--primary);
}

.mobile-menu-link span {
    flex: 1;
}

.mobile-menu-link--soon {
    cursor: default;
    opacity: 0.6;
}

.mobile-menu-link--soon:hover {
    background: transparent;
    color: var(--text-secondary);
}

.mobile-menu-link--soon:hover svg {
    color: var(--text-muted);
}

.mobile-menu-link .badge-soon {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Mobile Dropdown */
.mobile-dropdown {
    border-bottom: 1px solid var(--border-light);
}

.mobile-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-dropdown-trigger:hover {
    color: var(--text-primary);
}

.mobile-dropdown-trigger svg {
    transition: transform 0.2s ease;
}

.mobile-dropdown-trigger.active svg {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    padding: 0 0 12px 16px;
}

.mobile-dropdown-menu.active {
    display: flex;
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius);
    transition: all 0.15s ease;
}

.mobile-dropdown-item:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.mobile-dropdown-item .badge {
    font-size: 11px;
    padding: 3px 8px;
}

.mobile-menu-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.mobile-menu-footer .btn {
    width: 100%;
    justify-content: center;
}

/* Mobile Theme Toggle */
.mobile-theme-toggle {
    /* display: inline-flex; */
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width:100%;
}

.mobile-theme-toggle:hover {
    background: var(--border);
    color: var(--text-primary);
}

.mobile-theme-toggle svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.mobile-theme-toggle .icon-sun,
.mobile-theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.mobile-theme-toggle .icon-sun {
    display: block;
}

.mobile-theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .mobile-theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .mobile-theme-toggle .icon-moon {
    display: block;
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 280px;
    max-width: 400px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
}

.search-results-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-header {
    padding: 8px 12px 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.search-empty {
    padding: 16px 12px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.search-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius);
    transition: all 0.15s ease;
    text-decoration: none;
}

.search-item:hover {
    background: var(--bg-tertiary);
}

.search-item img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.search-item .content {
    flex: 1;
    min-width: 0;
}

.search-item .top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.search-item .name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item .org {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item .date {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
    white-space: nowrap;
}

.search-item .license {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-menu {
        gap: 2px;
    }
    
    .dropdown-trigger,
    .header-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .search-input {
        width: 180px;
    }

    .header-search {
        display: none;
    }

    .theme-toggle {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 1;
        position: relative;
        left: 0;
        margin-right: 0;
    }

    .mobile-menu-overlay,
    .mobile-menu {
        display: block;
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .header-nav {
        height: 64px;
        padding: 0 12px;
        gap: 12px;
    }

    .nav-brand {
        order: 2;
        margin: 0 auto;
    }

    .nav-brand .logo-icon-right {
        display: none;
    }

    .btn-exit-text {
        display: none;
    }

    .btn-secondary.btn-sm.exit {
        padding: 8px;
        min-width: 40px;
        justify-content: center;
    }

    .header-menu {
        display: none;
    }

    .header-search {
        display: none;
    }

    .theme-toggle {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 1;
        position: relative;
        left: 0;
        margin-right: 0;
    }

    .header-actions {
        order: 3;
        margin-left: 0;
    }

    .header-actions .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .mobile-menu-overlay,
    .mobile-menu {
        display: block;
    }

    /* Disable body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .header-nav {
        height: 60px;
        gap: 8px;
    }
    
    .mobile-menu {
        width: 100%;
    }
}

/* Notifications */
.notifications-wrapper {
    position: relative;
}

.notifications-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    background: linear-gradient(135deg, rgb(0, 100, 250) 0%, rgb(0, 85, 220) 100%);
    box-shadow: 0 2px 8px rgba(0, 100, 250, 0.3);
}

.notifications-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 100, 250, 0.4);
}

.notifications-btn svg {
    color: white;
}

.notifications-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #ff4d4d 0%, #cc0000 100%);
    color: white;
    font-size: 12px;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 6px rgba(200, 0, 0, 0.5);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0% { box-shadow: 0 0 0 0 rgba(200, 0, 0, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(200, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(200, 0, 0, 0); }
}

.notifications-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 400px;
    max-height: 520px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    animation: dropdownSlideIn 0.25s ease-out;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notifications-dropdown.open {
    display: flex;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, rgb(0, 100, 250) 0%, rgb(0, 85, 220) 100%);
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.notifications-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    opacity: 0.8;
}

.notifications-close:hover {
    background: rgba(255, 255, 255, 0.15);
    opacity: 1;
}

.notifications-close:active {
    transform: scale(0.9);
}

.notifications-close svg {
    width: 18px;
    height: 18px;
}

.notifications-list {
    overflow-y: auto;
    flex: 1;
    padding: 8px;
}

.notifications-empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-secondary);
}

.notifications-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.notification-item {
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid transparent;
}

.notification-item:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.notification-item.unread {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: rgba(102, 126, 234, 0.2);
}

.notification-item.system {
    border-left: 4px solid rgb(0, 100, 250);
}

.notification-item.important {
    border-left: 4px solid #f5576c;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.notification-item.system .notification-icon {
    background: linear-gradient(135deg, rgb(0, 100, 250) 0%, rgb(0, 85, 220) 100%);
}

.notification-item.important .notification-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.notification-icon svg {
    color: white;
    width: 20px;
    height: 20px;
    display: block;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.notification-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    white-space: pre-wrap; /* Preserve line breaks */
    word-break: break-word;
}

.notification-item.expanded .notification-text {
    -webkit-line-clamp: unset;
    overflow: visible;
    white-space: pre-wrap;
}

.notification-text a, .toast-text a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.notification-text a:hover, .toast-text a:hover {
    text-decoration: underline;
}

.notif-url {
    color: #3b82f6;
    text-decoration: none;
    cursor: pointer;
    word-break: break-all;
    display: inline;
}

.notif-url:hover {
    text-decoration: underline;
}

.notification-item.expanded .notification-text {
    -webkit-line-clamp: unset;
    overflow: visible;
}

.notification-expand {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s ease;
}

.notification-expand svg {
    transition: transform 0.2s ease;
}

.notification-expand .expand-text {
    font-size: 11px;
    white-space: nowrap;
}

.notification-expand .collapse-text {
    display: none;
    font-size: 11px;
    white-space: nowrap;
}

.notification-item.expanded .notification-expand svg {
    transform: rotate(180deg);
}

.notification-item.expanded .notification-expand .expand-text {
    display: none;
}

.notification-item.expanded .notification-expand .collapse-text {
    display: inline;
}

.notification-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.notification-meta-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-seen {
    color: #10b981;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.toast {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 20px;
    min-width: 380px;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.toast.system::before {
    background: linear-gradient(180deg, rgb(0, 100, 250) 0%, rgb(0, 85, 220) 100%);
}

.toast.important::before {
    background: linear-gradient(180deg, #f093fb 0%, #f5576c 100%);
}

.toast-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast.system .toast-icon {
    background: linear-gradient(135deg, rgb(0, 100, 250) 0%, rgb(0, 85, 220) 100%);
    box-shadow: 0 4px 12px rgba(0, 100, 250, 0.3);
}

.toast.important .toast-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.toast-icon svg {
    color: white;
    width: 24px;
    height: 24px;
    display: block;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.toast-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.toast-close {
    background: var(--bg-secondary);
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1;
    padding: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: rotate(90deg);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.removing {
    animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .notifications-dropdown {
        width: calc(100vw - 32px);
        right: -8px;
    }
    
    .toast {
        min-width: calc(100vw - 64px);
        right: 16px;
    }
}

/* ===== CONSENT CHECKBOX ===== */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 20px;
    margin: 24px 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.checkbox-wrapper .form-checkbox {
    width: 18px !important;
    max-width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    margin: 3px 0 0 0 !important;
    padding: 0 !important;
    cursor: pointer;
    flex-shrink: 0;
    flex-grow: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-wrapper .form-checkbox:hover {
    border-color: var(--text-muted);
}

.checkbox-wrapper .form-checkbox:checked {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-color: var(--primary);
}

.checkbox-wrapper .form-checkbox:checked::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(40deg);
}

.checkbox-wrapper .form-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.checkbox-wrapper .checkbox-label {
    font-size: 14px;
    font-weight: normal;
    color: var(--text-secondary);
    line-height: 1.6;
    cursor: pointer;
    margin-bottom: 0;
    display: inline;
}

.checkbox-wrapper .consent-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.checkbox-wrapper .consent-link:hover {
    color: var(--primary-hover);
}

.submit-primary:not(:disabled) {
    margin-top: 4px;
}

/* Disabled submit buttons (consent not given) */
button[type="submit"]:disabled,
.primary-button:disabled,
.btn-primary:disabled,
.submit-primary:disabled,
.demo-form button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.6);
    transform: none !important;
    box-shadow: none !important;
}

/* ===== HONEYPOT ANTI-BOT FIELD ===== */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(200%);
    width: calc(100% - 48px);
    max-width: 720px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
}

.cookie-banner-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.cookie-banner-text a {
    color: #58e6d9;
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.cookie-banner-text a:hover {
    opacity: 0.8;
}

.cookie-banner-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 100, 250, 0.3);
}

.cookie-banner-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 100, 250, 0.4);
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        bottom: 16px;
        padding: 16px 20px;
        width: calc(100% - 32px);
    }

    .cookie-banner-btn {
        width: 100%;
        justify-content: center;
    }
}
