/* ═══════════════════════════════════════════════
   Foundation: reset, design tokens, shared primitives
   ═══════════════════════════════════════════════ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

:root {
    /* Palette */
    --primary: #bb86fc;
    --primary-dark: #9965f4;
    --primary-deep: #9d4edd;
    --secondary: #03dac6;
    --accent: #6c63ff;
    --background: #050505;
    --surface: #121212;
    --surface-2: #0a0a0f;
    --surface-light: rgba(255, 255, 255, 0.03);
    --surface-strong: rgba(255, 255, 255, 0.06);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.12);
    --danger: #ff6b6b;
    --warning: #ffc107;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #bb86fc 0%, #6c63ff 100%);
    --gradient-primary-strong: linear-gradient(135deg, #bb86fc 0%, #9d4edd 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-cool: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-brand: linear-gradient(135deg, #bb86fc 0%, #03dac6 100%);

    /* Aliases kept for legacy class usage */
    --gradient-1: var(--gradient-primary);
    --gradient-2: var(--gradient-accent);
    --gradient-3: var(--gradient-cool);

    /* Shadows */
    --shadow-sm: 0 8px 25px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 18px 46px rgba(0, 0, 0, 0.34);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 8px 25px rgba(187, 134, 252, 0.4);
    --shadow-glow-strong: 0 12px 35px rgba(187, 134, 252, 0.6);
    --shadow-hover: 0 15px 50px rgba(187, 134, 252, 0.25);
    --shadow: var(--shadow-md);

    /* Radii */
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 999px;

    /* Blurs */
    --blur-sm: blur(10px);
    --blur-glass: blur(20px);
    --blur-strong: blur(24px);
    --glass-blur: var(--blur-glass);
}

html {
    scroll-behavior: smooth;
}

html,
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    color: var(--text-primary);
    line-height: 1.6;
}

button,
input,
textarea,
select {
    font: inherit;
}

/* ── Shared buttons ─────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.6rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                color 0.3s ease;
}

.btn svg {
    flex-shrink: 0;
}

.btn:disabled,
.btn.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.btn-hero,
.btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    background: var(--gradient-primary-strong);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-hero:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-strong);
}

.btn-secondary {
    background: var(--surface-light);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
}

.btn-secondary:hover {
    background: var(--surface-strong);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-follow {
    background: var(--gradient-primary-strong);
    color: #fff;
    box-shadow: 0 4px 20px rgba(187, 134, 252, 0.3);
}

.btn-follow:hover {
    background: linear-gradient(135deg, #cda4fd 0%, #b06bf3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(187, 134, 252, 0.45);
}

.btn-follow.is-following {
    background: var(--surface-strong);
    border: 1px solid var(--border-strong);
    box-shadow: none;
    color: var(--text-primary);
}

.btn-icon-only {
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 0;
}

/* ── Shared glass card ──────────────────────── */
.glass-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(20, 20, 25, 0.6) 0%, rgba(10, 10, 15, 0.7) 100%);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--blur-strong);
    -webkit-backdrop-filter: var(--blur-strong);
}

/* ── Cookie consent banner ──────────────────── */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    padding: 1rem 1.25rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.4s ease,
                transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner-content {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    background: rgba(12, 12, 18, 0.92);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--blur-strong);
    -webkit-backdrop-filter: var(--blur-strong);
    color: var(--text-primary);
}

.cookie-banner-copy {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    flex: 1;
    min-width: 0;
}

.cookie-banner-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: rgba(187, 134, 252, 0.16);
    border: 1px solid rgba(187, 134, 252, 0.24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.cookie-banner-text {
    min-width: 0;
}

.cookie-banner-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.cookie-banner-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
}

.cookie-banner-text a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 0.18em;
    transition: color 0.2s ease;
}

.cookie-banner-text a:hover {
    color: var(--primary-dark);
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.cookie-banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.2rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.25s ease,
                background 0.25s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease,
                color 0.25s ease;
}

.cookie-banner-btn:focus-visible {
    outline: 2px solid rgba(187, 134, 252, 0.55);
    outline-offset: 3px;
}

.cookie-banner-btn-primary {
    background: var(--gradient-primary-strong);
    color: #fff;
    box-shadow: 0 8px 22px rgba(187, 134, 252, 0.32);
}

.cookie-banner-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(187, 134, 252, 0.48);
}

.cookie-banner-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.cookie-banner-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

@media (max-width: 720px) {
    .cookie-banner {
        padding: 0.85rem 0.9rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.9rem;
        padding: 1rem 1.1rem;
    }

    .cookie-banner-actions {
        justify-content: stretch;
        gap: 0.55rem;
    }

    .cookie-banner-actions .cookie-banner-btn {
        flex: 1;
        padding: 0.75rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner {
        transition: none;
    }
}

/* ═══════════════════════════════════════════════
   Shared styles for header and footer
   ═══════════════════════════════════════════════ */

/* ── Navbar ──────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(5, 5, 8, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.navbar.scrolled {
    padding: 0.6rem 2rem;
    background: rgba(10, 10, 15, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 8px rgba(187, 134, 252, 0.4));
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #e2c6ff 50%, #bb86fc 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    position: relative;
}

.nav-notifications-host {
    display: flex;
}

.nav-notify-container {
    position: relative;
}

.nav-notify-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.86);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-notify-btn:hover,
.nav-notify-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(187, 134, 252, 0.4);
    transform: translateY(-2px);
}

.nav-notify-icon {
    flex-shrink: 0;
}

.nav-notify-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8abf 0%, #ff5f7a 100%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(255, 95, 122, 0.38);
    border: 2px solid rgba(10, 10, 15, 0.95);
}

.btn-nav-secondary,
.btn-nav-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.55rem 1.2rem;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-nav-secondary {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-nav-secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(187, 134, 252, 0.32);
    transform: translateY(-2px);
}

.btn-nav-primary {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    background: linear-gradient(135deg, #bb86fc 0%, #9d4edd 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(187, 134, 252, 0.3);
}

.btn-nav-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(187, 134, 252, 0.5);
}

.nav-user-container {
    position: relative;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.3rem 1rem 0.3rem 0.3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.nav-user-btn:hover,
.nav-user-btn.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(187, 134, 252, 0.4);
}

.nav-avatar {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #bb86fc, #03dac6);
    color: #fff;
    font-weight: 800;
}

.user-status-dot {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 10px;
    height: 10px;
    border: 2px solid #121212;
    border-radius: 50%;
    z-index: 2;
    background: rgba(255, 255, 255, 0.35);
}

.user-status-dot-online {
    background: #03dac6;
    box-shadow: 0 0 10px rgba(3, 218, 198, 0.55);
}

.user-status-dot-staff {
    background: linear-gradient(135deg, #ffe082 0%, #ffb300 100%);
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.45);
}

.nav-user-name {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-user-chevron {
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.24s ease;
}

.nav-user-btn.active .nav-user-chevron {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    background: rgba(18, 18, 24, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
    z-index: 1001;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notifications-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 360px;
    background: rgba(18, 18, 24, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
    z-index: 1001;
}

.notifications-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notifications-dropdown-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.notifications-dropdown-copy {
    display: grid;
    gap: 0.18rem;
}

.notifications-dropdown-copy strong {
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
}

.notifications-dropdown-copy span {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.8rem;
}

.notifications-mark-all,
.notifications-inline-btn,
.notification-mark-btn {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    transition: all 0.2s ease;
}

.notifications-mark-all {
    min-height: 34px;
    padding: 0.45rem 0.75rem;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.notifications-mark-all:hover,
.notifications-inline-btn:hover,
.notification-mark-btn:hover {
    color: #fff;
    background: rgba(187, 134, 252, 0.16);
    border-color: rgba(187, 134, 252, 0.35);
}

.notifications-dropdown-body {
    display: grid;
    gap: 0.45rem;
    max-height: 420px;
    padding: 0.65rem;
    overflow-y: auto;
}

.notifications-state-card {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.notifications-state-card strong {
    color: #fff;
    font-size: 0.92rem;
}

.notifications-state-card span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.84rem;
    line-height: 1.5;
}

.notifications-state-card.is-error {
    border-color: rgba(255, 107, 107, 0.2);
    background: rgba(255, 107, 107, 0.06);
}

.notifications-inline-btn {
    width: fit-content;
    min-height: 34px;
    margin-top: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.notification-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: stretch;
}

.notification-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 0.85rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.24s ease;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(187, 134, 252, 0.25);
    transform: translateY(-1px);
}

.notification-item.is-unread {
    border-color: rgba(3, 218, 198, 0.18);
    background: rgba(3, 218, 198, 0.05);
}

.notification-item-page {
    min-height: 92px;
}

.notification-avatar-shell {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(187, 134, 252, 0.25), rgba(3, 218, 198, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-avatar-placeholder,
.notification-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-weight: 800;
}

.notification-avatar-fallback {
    font-size: 1rem;
}

.notification-item-copy {
    min-width: 0;
    display: grid;
    gap: 0.32rem;
}

.notification-item-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.notification-item-title {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
}

.notification-item-time {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.76rem;
    white-space: nowrap;
}

.notification-item-message {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.84rem;
    line-height: 1.45;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.notification-unread-dot,
.notification-item-spacer {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

.notification-unread-dot {
    border-radius: 50%;
    background: #03dac6;
    box-shadow: 0 0 14px rgba(3, 218, 198, 0.55);
}

.notification-mark-btn {
    min-width: 108px;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 700;
    align-self: center;
}

.notification-mark-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.notifications-dropdown-footer {
    padding: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.notifications-footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.notifications-footer-link:hover {
    background: rgba(187, 134, 252, 0.12);
    border-color: rgba(187, 134, 252, 0.3);
}

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-header strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.dropdown-header span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    line-height: 1.45;
}

.dropdown-links {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.dropdown-item.danger {
    color: #ff8d8d;
    margin-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 0 12px 12px;
}

.dropdown-item.danger:hover {
    background: rgba(255, 107, 107, 0.1);
}

.dropdown-icon {
    flex-shrink: 0;
    width: 1.2rem;
    text-align: center;
    opacity: 0.9;
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.nav-burger span {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-burger.active span:nth-child(2) {
    opacity: 0;
}

.nav-burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    position: fixed;
    top: 80px;
    left: 1rem;
    right: 1rem;
    background: rgba(18, 18, 24, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 999;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.mobile-menu-links a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.8rem 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 14px;
    transition: all 0.2s ease;
}

.mobile-menu-links a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.mobile-menu-links a.is-highlight {
    color: #dcb8ff;
}

.mobile-menu-links a.is-danger {
    color: #ff8d8d;
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 1rem;
}

/* ── Footer ──────────────────────────────────── */
.site-footer {
    position: relative;
    margin-top: 4rem;
    color: rgba(255, 255, 255, 0.7);
    z-index: 1;
    overflow: hidden;
}

.footer-ambient-glow {
    position: absolute;
    bottom: -150px;
    width: 400px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.footer-ambient-glow.left {
    left: -100px;
    background: #bb86fc;
}

.footer-ambient-glow.right {
    right: -100px;
    background: #03dac6;
}

.footer-wave {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 70px;
    line-height: 0;
    margin-bottom: -2px;
}

.footer-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-body {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(18, 18, 24, 0.98) 0%, rgba(10, 10, 15, 0.98) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 2rem 2rem 1.5rem;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
}

.footer-logo .logo-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 8px rgba(187, 134, 252, 0.4));
}

.footer-logo .logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #e2c6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    background: rgba(187, 134, 252, 0.1);
    border-color: rgba(187, 134, 252, 0.4);
    color: #e2c6ff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(187, 134, 252, 0.25);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    width: fit-content;
    transition: all 0.25s ease;
}

.footer-col a:hover {
    color: #bb86fc;
    transform: translateX(6px);
}

.subscribe-col {
    min-width: 0;
}

.subscribe-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    line-height: 1.5;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.subscribe-input-group {
    position: relative;
    display: flex;
}

.subscribe-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    padding-right: 3.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.subscribe-input:focus {
    outline: none;
    border-color: #bb86fc;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(187, 134, 252, 0.15);
}

.subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.subscribe-btn {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    bottom: 0.4rem;
    width: 36px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #bb86fc 0%, #9d4edd 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.subscribe-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(187, 134, 252, 0.4);
}

.subscribe-note {
    margin: 0;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.8rem;
    line-height: 1.55;
}

.subscribe-note.is-success {
    color: #c9f6ef;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
}

.footer-powered a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(135deg, #bb86fc 0%, #03dac6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.2s;
}

.footer-powered a:hover {
    opacity: 0.8;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
    .navbar,
    .navbar.scrolled {
        padding-left: 1.4rem;
        padding-right: 1.4rem;
    }

    .nav-container {
        gap: 1.2rem;
    }

    .nav-actions {
        gap: 0.75rem;
    }

    .nav-user-name {
        max-width: 96px;
    }

    .notifications-dropdown {
        width: 340px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .subscribe-col {
        grid-column: 1 / -1;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .navbar.scrolled {
        padding: 0.5rem 1rem;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-burger {
        display: flex;
    }

    .footer-wave {
        height: 50px;
    }

    .footer-body {
        padding: 2rem 1.5rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.1rem;
    }

    .mobile-menu {
        top: 72px;
        left: 0.8rem;
        right: 0.8rem;
    }

    .mobile-menu-links {
        padding: 0.85rem;
    }

    .notification-row {
        grid-template-columns: 1fr;
    }

    .notification-mark-btn {
        width: 100%;
    }
}
