@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors */
    --bg-base: #08090d;
    --bg-surface: #0f111a;
    --bg-surface-elevated: #161925;
    
    --accent-primary: #7c3aed; /* Violet */
    --accent-primary-rgb: 124, 58, 237;
    --accent-secondary: #06b6d4; /* Cyan */
    --accent-secondary-rgb: 6, 182, 212;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --accent-gradient-hover: linear-gradient(135deg, #8b5cf6, #0891b2);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #a78bfa;

    /* Glassmorphism */
    --glass-bg: rgba(15, 17, 26, 0.6);
    --glass-bg-hover: rgba(22, 25, 37, 0.8);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-border-hover: rgba(255, 255, 255, 0.12);
    
    /* Semantic Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #3b82f6;

    /* Shadows & Glows */
    --shadow-glow-purple: 0 0 25px rgba(124, 58, 237, 0.25);
    --shadow-glow-cyan: 0 0 25px rgba(6, 182, 212, 0.2);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
    --glass-blur: blur(16px);
    
    /* Layout Tokens */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-pill: 9999px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
}

body.mobile-nav-open {
    overflow: hidden;
}

body.nexora-page-loading {
    overflow: hidden;
}

body.nexora-page-loading #shared-header-root,
body.nexora-page-loading .app-main {
    visibility: hidden;
}

.nexora-page-loader {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.22), transparent 34%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.2), transparent 32%),
        rgba(8, 9, 13, 0.96);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

body.nexora-page-ready .nexora-page-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.nexora-page-loader-card {
    width: min(420px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.4rem;
    text-align: center;
    background: rgba(15, 17, 26, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45), 0 0 40px rgba(124, 58, 237, 0.18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nexora-page-loader-mark {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(6, 182, 212, 0.95));
    box-shadow: 0 0 24px rgba(6, 182, 212, 0.28);
}

.nexora-page-loader-copy {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.nexora-page-loader-copy strong {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.nexora-page-loader-copy span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.nexora-page-loader-bar {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}

.nexora-page-loader-bar span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.26);
    animation: nexoraLoaderSweep 1.05s ease-in-out infinite;
}

@keyframes nexoraLoaderSweep {
    0% {
        transform: translateX(-115%);
    }
    50% {
        transform: translateX(135%);
    }
    100% {
        transform: translateX(245%);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-pill);
    border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Common Typography & Links */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* Navigation Header */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 9, 13, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    transition: var(--transition-smooth);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.logo i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.5rem;
}

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

.market-nav-backdrop {
    display: none;
}

.mobile-nav-drawer,
.mobile-nav-drawer-body {
    display: block;
}

.mobile-nav-drawer-header,
.mobile-nav-drawer-footer,
.mobile-nav-home-link,
.mobile-nav-close,
.mobile-nav-guest-actions {
    display: none;
}

.nav-item {
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
    background: var(--glass-bg);
}

.nav-item.active i {
    color: var(--accent-secondary);
}

.nav-upload-link {
    background: transparent;
    border: none;
}

.market-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.market-nav-toggle:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

.nav-mega {
    position: relative;
}

.nav-mega-trigger {
    background: transparent;
    border: none;
}

.nav-home-trigger-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.08rem;
    line-height: 1.05;
}

.nav-home-trigger-copy small {
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.nav-home-mega .nav-item:hover .nav-home-trigger-copy small,
.nav-home-mega .nav-item.active .nav-home-trigger-copy small,
.nav-home-mega.is-open .nav-home-trigger-copy small {
    color: rgba(167, 139, 250, 0.9);
}

.nav-caret {
    font-size: 0.72rem;
    transition: transform 0.25s ease;
}

.nav-mega:hover .nav-caret,
.nav-mega:focus-within .nav-caret,
.nav-mega.is-open .nav-caret {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: calc(100% + 0.9rem);
    left: 50%;
    transform: translateX(-50%) translateY(14px);
    width: min(960px, calc(100vw - 3rem));
    padding: 1.25rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(20, 24, 36, 0.96), rgba(10, 12, 19, 0.94)),
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.14), transparent 35%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
    z-index: 120;
}

.nav-mega:hover .mega-menu,
.nav-mega:focus-within .mega-menu,
.nav-mega.is-open .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.mega-menu-column {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.mega-mobile-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    width: 100%;
    text-align: left;
    cursor: default;
}

.mega-mobile-parent i {
    display: none;
}

.mega-submenu {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.mega-link {
    color: var(--text-secondary);
    padding: 0.5rem 0.7rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
    font-size: 0.92rem;
}

.mega-link-overview {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    font-weight: 600;
}

.mega-link:hover {
    color: var(--text-primary);
    background: rgba(6, 182, 212, 0.08);
    transform: translateX(4px);
}

.mega-link.active {
    color: var(--text-primary);
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.16);
}

.mega-menu-compact {
    width: min(340px, calc(100vw - 3rem));
    padding: 1rem;
}

.mega-quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.mega-quick-links .mega-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

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

.site-ai-assistant {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 140;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.85rem;
}

.site-ai-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 48px;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(6, 182, 212, 0.24);
    border-radius: 999px;
    background: rgba(8, 9, 13, 0.88);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 700;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34), 0 0 24px rgba(6, 182, 212, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.site-ai-trigger:hover,
.site-ai-trigger[aria-expanded="true"] {
    transform: translateY(-2px);
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(15, 17, 26, 0.94);
}

.site-ai-trigger i {
    color: var(--accent-secondary);
}

.site-ai-panel {
    width: min(390px, calc(100vw - 2rem));
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 13, 20, 0.95);
    box-shadow: 0 24px 68px rgba(0, 0, 0, 0.42), 0 0 30px rgba(124, 58, 237, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.site-ai-panel[hidden] {
    display: none;
}

.site-ai-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
}

.site-ai-panel-head strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-primary);
}

.site-ai-panel-head span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.site-ai-close {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    cursor: pointer;
}

.site-ai-close:hover {
    color: var(--text-primary);
    border-color: var(--glass-border-hover);
}

.site-ai-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.site-ai-quick-action {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.site-ai-quick-action:hover {
    color: var(--text-primary);
    border-color: rgba(6, 182, 212, 0.25);
}

.site-ai-messages {
    max-height: min(48vh, 420px);
    min-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-right: 0.15rem;
}

.site-ai-message {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.site-ai-message.user {
    align-self: flex-end;
    width: min(100%, 88%);
    background: rgba(124, 58, 237, 0.16);
    border-color: rgba(124, 58, 237, 0.22);
}

.site-ai-message.assistant {
    align-self: flex-start;
    width: min(100%, 92%);
    background: rgba(255, 255, 255, 0.03);
}

.site-ai-message.system {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.12);
}

.site-ai-message-role {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.site-ai-message-body {
    color: var(--text-primary);
    font-size: 0.86rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.site-ai-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: end;
}

.site-ai-input {
    width: 100%;
    min-height: 54px;
    max-height: 150px;
    padding: 0.85rem 1rem;
    resize: vertical;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.site-ai-input:focus {
    outline: none;
    border-color: rgba(6, 182, 212, 0.28);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.08);
}

.site-ai-submit {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 16px;
    background: var(--accent-gradient);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(6, 182, 212, 0.2);
}

.site-ai-submit:disabled,
.site-ai-input:disabled,
.site-ai-quick-action:disabled {
    opacity: 0.68;
    cursor: not-allowed;
}

.site-ai-typing {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.site-ai-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.8);
    animation: siteAiTypingPulse 1s ease-in-out infinite;
}

.site-ai-typing span:nth-child(2) {
    animation-delay: 0.16s;
}

.site-ai-typing span:nth-child(3) {
    animation-delay: 0.32s;
}

@keyframes siteAiTypingPulse {
    0%, 100% {
        opacity: 0.35;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

@media (max-width: 768px) {
    .site-ai-assistant {
        right: 0.8rem;
        bottom: 0.9rem;
        left: 0.8rem;
        align-items: stretch;
    }

    .site-ai-trigger {
        align-self: flex-end;
        min-height: 44px;
        padding: 0.72rem 0.9rem;
        font-size: 0.86rem;
    }

    .site-ai-panel {
        width: 100%;
        max-height: calc(100dvh - 7rem);
        border-radius: 20px;
        padding: 0.9rem;
    }

    .site-ai-messages {
        min-height: 180px;
        max-height: min(42vh, 320px);
    }

    .site-ai-form {
        grid-template-columns: 1fr 44px;
        gap: 0.6rem;
    }

    .site-ai-submit {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }
}

.hiburan18-page {
    width: 100%;
    max-width: 1480px;
    padding-top: 1.25rem;
}

.hiburan18-directory-page {
    align-items: stretch;
}

.hiburan18-directory-shell {
    width: 100%;
    background: #ffffff;
    color: #171717;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    position: relative;
}

.hiburan18-access-gate {
    display: none;
    min-height: 70vh;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    background:
        radial-gradient(circle at top, rgba(6, 182, 212, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(7, 10, 18, 0.98), rgba(2, 6, 23, 0.98));
}

.hiburan18-directory-shell.hiburan18-age-pending > :not(.hiburan18-access-gate),
.hiburan18-directory-shell.hiburan18-age-blocked > :not(.hiburan18-access-gate) {
    display: none;
}

.hiburan18-directory-shell.hiburan18-age-pending .hiburan18-access-gate,
.hiburan18-directory-shell.hiburan18-age-blocked .hiburan18-access-gate {
    display: flex;
}

.hiburan18-access-card {
    width: min(100%, 560px);
    padding: 2rem;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.86);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.42);
    text-align: center;
    color: #f8fafc;
}

.hiburan18-access-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hiburan18-access-card h1 {
    margin: 1rem 0 0.7rem;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    line-height: 1.1;
    color: #ffffff;
}

.hiburan18-access-card p {
    margin: 0;
    color: rgba(226, 232, 240, 0.82);
    font-size: 0.98rem;
    line-height: 1.75;
}

.hiburan18-access-actions {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 1.35rem;
}

.hiburan18-access-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.8rem 1.2rem;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hiburan18-access-btn.primary {
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(124, 58, 237, 0.28);
}

.hiburan18-access-btn:hover {
    transform: translateY(-1px);
}

.hiburan18-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 1.2rem 0.9rem;
    background: #ffffff;
}

.hiburan18-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #1f1f1f;
}

.hiburan18-brand span {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.hiburan18-brand strong {
    font-size: 1.9rem;
    line-height: 1;
    letter-spacing: -0.03em;
}

.hiburan18-brand small {
    color: #6b7280;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hiburan18-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255, 71, 107, 0.25);
    color: #ff476b;
    background: rgba(255, 71, 107, 0.08);
    font-size: 1rem;
}

.hiburan18-searchbar {
    display: flex;
    align-items: center;
    width: min(560px, 100%);
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
}

.hiburan18-searchbar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    color: #111827;
    background: transparent;
}

.hiburan18-searchbar button {
    width: 52px;
    height: 44px;
    border: none;
    background: linear-gradient(135deg, #ff7a8f, #ff2d62);
    color: #ffffff;
    cursor: pointer;
}

.hiburan18-topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
    flex: 1;
}

.hiburan18-upload-btn,
.hiburan18-community-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 45, 98, 0.18);
    background: linear-gradient(135deg, #ff7a8f, #ff2d62);
    color: #ffffff;
    border-radius: 999px;
    min-height: 44px;
    padding: 0 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(255, 45, 98, 0.18);
}

.hiburan18-community-section {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 0.3rem 0 1.2rem;
}

.hiburan18-community-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.hiburan18-community-head h2 {
    margin: 0;
    font-size: 1.02rem;
    color: #111827;
}

.hiburan18-community-head p {
    margin: 0.25rem 0 0;
    font-size: 0.76rem;
    color: #6b7280;
}

.hiburan18-community-filters {
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
}

.hiburan18-upload-note {
    padding: 0.75rem 0.9rem;
    border: 1px solid #f3d6dd;
    background: #fff7f9;
    color: #6b7280;
    border-radius: 12px;
    font-size: 0.76rem;
    line-height: 1.45;
}

.hiburan18-live-grid {
    min-height: 120px;
}

.hiburan18-post-card.interactive {
    cursor: pointer;
}

.hiburan18-post-card.interactive .hiburan18-post-thumb {
    border-radius: 10px;
}

.hiburan18-post-card h3.hiburan18-card-title {
    display: block;
}

.hiburan18-live-badge-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.hiburan18-post-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 22px;
    padding: 0 0.55rem;
    border-radius: 999px;
    background: #ffe8ee;
    color: #ff2d62;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hiburan18-post-author {
    font-size: 0.67rem;
    color: #4b5563;
}

.hiburan18-post-author strong {
    color: #111827;
}

.hiburan18-upload-media-stack {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hiburan18-navtabs {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0 1rem;
    background: #2b2b2b;
    overflow-x: auto;
}

.hiburan18-navtabs a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    height: 36px;
    padding: 0 0.9rem;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hiburan18-navtabs a.active,
.hiburan18-navtabs a:hover {
    background: #3b3b3b;
}

.hiburan18-main-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: #f3f4f6;
}

.hiburan18-sidebar,
.hiburan18-feed {
    background: #ffffff;
}

.hiburan18-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.25rem 0.1rem 1rem;
}

.hiburan18-sidebar-section {
    padding: 0 0.65rem 0.9rem;
    border-bottom: 1px solid #e5e7eb;
}

.hiburan18-sidebar-section h3 {
    margin: 0 0 0.55rem;
    font-size: 0.84rem;
    color: #111827;
}

.hiburan18-side-list {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}

.hiburan18-side-list li {
    list-style: none;
}

.hiburan18-side-list a {
    color: #374151;
    font-size: 0.74rem;
    line-height: 1.35;
}

.hiburan18-side-list-compact a {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.hiburan18-feed {
    padding: 0.35rem 0.8rem 1.2rem;
}

.hiburan18-feed-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.hiburan18-feed-head h1 {
    margin: 0;
    font-size: 1rem;
    color: #111827;
}

.hiburan18-feed-head p {
    margin: 0.28rem 0 0;
    font-size: 0.76rem;
    color: #6b7280;
}

.hiburan18-filter-tabs {
    display: flex;
    gap: 0.4rem;
    padding: 0.55rem 0 0.95rem;
    overflow-x: auto;
}

.hiburan18-filter-tabs button {
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 0.75rem;
    padding: 0;
    cursor: pointer;
}

.hiburan18-filter-tabs button.active {
    color: #ff2d62;
    font-weight: 700;
}

.hiburan18-card-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem 0.7rem;
}

.hiburan18-post-card {
    display: flex;
    flex-direction: column;
    gap: 0.34rem;
    min-width: 0;
}

.hiburan18-post-thumb {
    position: relative;
    aspect-ratio: 1.25 / 0.78;
    background: #f3f4f6;
    overflow: hidden;
}

.hiburan18-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hiburan18-post-card h3 {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #111827;
    font-weight: 600;
}

.hiburan18-post-meta {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.66rem;
    color: #6b7280;
}

.hiburan18-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 1.8rem 0;
}

.hiburan18-pagination button {
    min-width: 32px;
    height: 26px;
    border: none;
    border-radius: 4px;
    background: #d1d5db;
    color: #111827;
    font-size: 0.72rem;
    cursor: pointer;
}

.hiburan18-pagination button.active {
    background: #ff365f;
    color: #ffffff;
}

.hiburan18-strip-divider {
    height: 22px;
    background: #f3f4f6;
    margin: 0.4rem -0.8rem 1.2rem;
}

.hiburan18-bottom-sections {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.hiburan18-bottom-block {
    min-width: 0;
}

.hiburan18-bottom-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.hiburan18-bottom-head h2 {
    margin: 0;
    font-size: 0.85rem;
    color: #111827;
}

.hiburan18-bottom-head button {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #4b5563;
    border-radius: 4px;
    height: 24px;
    padding: 0 0.5rem;
    font-size: 0.65rem;
    cursor: pointer;
}

.hiburan18-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.hiburan18-mini-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.hiburan18-mini-card img {
    width: 100%;
    aspect-ratio: 1.18 / 0.78;
    object-fit: cover;
    background: #f3f4f6;
}

.hiburan18-mini-card span {
    font-size: 0.68rem;
    line-height: 1.35;
    color: #111827;
}

.hiburan18-footer {
    padding: 1.2rem 0 0.2rem;
    text-align: center;
}

.hiburan18-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.hiburan18-footer-links a,
.hiburan18-footer p {
    font-size: 0.68rem;
    color: #6b7280;
}

.header-notification-wrap {
    position: relative;
}

.header-notification-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-smooth);
}

.header-notification-btn:hover,
.header-notification-btn.active {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

.header-notification-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 12px;
    min-width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(10, 12, 24, 0.94);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.header-notification-panel {
    position: absolute;
    top: calc(100% + 0.85rem);
    right: 0;
    width: min(360px, calc(100vw - 2rem));
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(20, 24, 36, 0.98), rgba(10, 12, 19, 0.96)),
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.14), transparent 35%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem;
    display: none;
    z-index: 140;
}

.header-notification-panel.active {
    display: block;
}

.header-notification-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-notification-head strong {
    font-size: 0.98rem;
}

.header-notification-head span {
    font-size: 0.76rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.2rem;
}

.header-notification-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-notification-action {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-radius: 999px;
    padding: 0.42rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.header-notification-action:hover {
    border-color: rgba(6, 182, 212, 0.18);
    background: rgba(6, 182, 212, 0.08);
}

.header-notification-action.danger:hover {
    border-color: rgba(239, 68, 68, 0.18);
    background: rgba(239, 68, 68, 0.1);
}

.header-notification-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.85rem;
}

.header-notification-filter {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 0.48rem 0.8rem;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.header-notification-filter:hover,
.header-notification-filter.active {
    color: var(--text-primary);
    border-color: rgba(6, 182, 212, 0.22);
    background: rgba(6, 182, 212, 0.1);
}

.header-notification-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 360px;
    overflow-y: auto;
    padding-top: 0.9rem;
}

.header-notification-item {
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 0.85rem 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.header-notification-item:hover {
    border-color: rgba(6, 182, 212, 0.18);
    background: rgba(6, 182, 212, 0.08);
}

.header-notification-item.unread {
    border-color: rgba(6, 182, 212, 0.22);
    box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.08);
}

.header-notification-item-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.header-notification-check {
    margin-top: 0.15rem;
    width: 16px;
    height: 16px;
    accent-color: #06b6d4;
    cursor: pointer;
}

.header-notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.header-notification-item-title {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.header-notification-item-title strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.header-notification-item-title span {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.header-notification-item p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin: 0;
}

.header-notification-empty {
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    text-align: center;
    font-size: 0.84rem;
}

/* Input Styles */
.search-wrapper {
    position: relative;
    width: 320px;
}

.search-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    padding: 0.6rem 1rem 0.6rem 2.8rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow-purple);
    background: var(--bg-surface-elevated);
}

.search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--accent-gradient-hover);
    box-shadow: var(--shadow-glow-purple);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border-color: var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: var(--color-danger);
    color: white;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Profile area */
.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-pill);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.user-menu-trigger:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.username {
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 0;
    padding-right: 0.5rem;
    display: flex;
    align-items: center;
}

.username .name-with-membership-header {
    max-width: 100%;
    flex-wrap: nowrap;
}

.username .name-with-membership-text {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.name-with-membership {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    color: inherit;
}

.name-with-membership-text {
    min-width: 0;
    color: inherit;
}

.name-with-membership-strong {
    font-weight: 700;
    color: inherit;
}

.membership-inline-separator {
    color: var(--text-muted);
    font-size: 0.7em;
    opacity: 0.9;
}

.membership-inline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    flex-shrink: 0;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.membership-inline-badge i {
    font-size: 0.62rem;
}

.membership-inline-badge-creator {
    color: #67e8f9;
    background:
        linear-gradient(135deg, rgba(6, 182, 212, 0.24), rgba(34, 211, 238, 0.1)),
        rgba(8, 14, 26, 0.72);
    border-color: rgba(34, 211, 238, 0.34);
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.16);
}

.membership-inline-badge-premium {
    color: #facc15;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.26), rgba(250, 204, 21, 0.1)),
        rgba(24, 16, 4, 0.72);
    border-color: rgba(250, 204, 21, 0.34);
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.18);
}

/* App Main Content Layout */
.app-main {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* View Sections */
.view-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.view-section.active {
    display: block;
}

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

/* Hero Section */
.hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid var(--glass-border);
    padding: 4rem 3rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #a78bfa, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-search-wrapper {
    width: 100%;
    max-width: 600px;
}

.hero-search-wrapper .search-input {
    padding: 1.1rem 1.5rem 1.1rem 3.5rem;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

.hero-search-wrapper .search-icon {
    left: 1.5rem;
    font-size: 1.2rem;
}

.stats-grid {
    display: flex;
    gap: 4rem;
    margin-top: 3.5rem;
    justify-content: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* Category Filters Horizontal List */
.category-filter-container {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.6rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: var(--radius-pill);
}

.category-tags {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0.25rem;
    scrollbar-width: none; /* Firefox */
}

.category-tags::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.category-chip {
    padding: 0.6rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.category-chip:hover {
    color: var(--text-primary);
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-1px);
}

.category-chip.active {
    background: var(--accent-gradient);
    color: var(--text-primary);
    border-color: transparent;
    box-shadow: var(--shadow-glow-purple);
}

/* Card Grids */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.payment-shell {
    max-width: 820px;
    margin: 0 auto;
}

.payment-page-shell {
    max-width: 1280px;
    margin: 0 auto;
}

.payment-section {
    width: 100%;
}

.payment-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    padding: 2rem;
}

.payment-card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-header-block {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.payment-page-badge {
    position: static;
    width: fit-content;
    margin-bottom: 0.6rem;
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-secondary);
}

.payment-page-title {
    font-size: 2rem;
    line-height: 1.12;
}

.payment-page-price {
    color: var(--text-accent);
    font-weight: 700;
    font-size: 1.1rem;
}

.payment-page-description {
    color: var(--text-secondary);
    line-height: 1.65;
}

.payment-panel {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    display: grid;
    gap: 1rem;
}

.payment-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.payment-qris-frame {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255,255,255,0.98);
    padding: 0.6rem;
}

.payment-qris-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
}

.payment-meta-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
}

.payment-meta-card {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
}

.payment-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.92rem;
    align-items: flex-start;
}

.payment-meta-row + .payment-meta-row {
    margin-top: 0.65rem;
}

.payment-meta-label {
    color: var(--text-secondary);
}

.payment-amount {
    color: var(--accent-secondary);
}

.payment-note-card {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.18);
}

.payment-note-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

.payment-benefits-card {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.payment-block-title {
    margin-bottom: 0.75rem;
}

.payment-benefits-list {
    padding-left: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.payment-warning-card {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.02);
}

.payment-warning-text {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.payment-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.membership-page-shell {
    max-width: 1280px;
    margin: 0 auto;
}

.membership-section {
    width: 100%;
}

.membership-header {
    margin-bottom: 2rem;
}

.membership-title {
    font-size: 2rem;
}

.membership-subtitle {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.membership-card {
    padding: 1.75rem;
    min-height: 100%;
}

.membership-card-creator {
    border-color: rgba(6, 182, 212, 0.25);
}

.membership-card-premium {
    border-color: rgba(245, 158, 11, 0.25);
}

.membership-card-content {
    padding: 0;
}

.membership-plan-badge {
    position: static;
    width: fit-content;
    margin-bottom: 1rem;
}

.membership-plan-badge-creator {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-secondary);
}

.membership-plan-badge-premium {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-warning);
}

.membership-plan-title {
    margin-bottom: 0.35rem;
}

.membership-tags {
    margin: 1rem 0;
}

.membership-plan-button {
    width: 100%;
    min-height: 48px;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
}

.profile-layout-shell,
.user-profile-layout-shell {
    gap: 2rem;
    padding: 2rem;
}

.profile-layout-shell {
    grid-template-columns: 300px minmax(0, 1fr);
}

.user-profile-layout-shell {
    grid-template-columns: 320px minmax(0, 1fr);
}

.profile-layout-sidebar,
.user-profile-layout-sidebar {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--glass-border);
    padding-right: 2rem;
}

.profile-layout-sidebar {
    gap: 1.5rem;
}

.user-profile-layout-sidebar {
    gap: 1rem;
}

.profile-sidebar-head {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.profile-avatar-action {
    border-radius: 999px;
}

.profile-username {
    line-height: 1.05;
    text-align: center;
}

.profile-role-badge {
    width: fit-content;
}

.profile-rename-card {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.profile-rename-head {
    gap: 0.75rem;
}

.profile-stats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.profile-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.profile-stat-label {
    color: var(--text-secondary);
}

.profile-main-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-main-copy {
    max-width: 520px;
}

.profile-upload-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
}

.profile-upload-tab {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 0.72rem 1.1rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.profile-upload-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.profile-upload-tab.active {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(6, 182, 212, 0.2));
    box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.1);
}

.profile-upload-panel {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.profile-upload-panel.active {
    display: flex;
}

.profile-upload-panel-head {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profile-upload-mobile-list {
    display: none;
}

.profile-upload-mobile-card {
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.profile-upload-mobile-head,
.profile-upload-mobile-meta,
.profile-upload-mobile-stats,
.profile-upload-mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.profile-upload-mobile-title {
    border: none;
    background: transparent;
    color: var(--text-primary);
    text-align: left;
    padding: 0;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
}

.profile-upload-mobile-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.profile-upload-mobile-stats {
    justify-content: flex-start;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.profile-upload-mobile-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.profile-upload-empty {
    border: 1px dashed var(--glass-border);
    border-radius: 18px;
    padding: 1rem 1.1rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.profile-upload-empty strong {
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.profile-layout-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

.user-profile-layout-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

/* Resource Card */
.resource-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-card);
    position: relative;
}

.resource-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(124, 58, 237, 0.08);
}

.card-thumbnail-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: var(--bg-surface-elevated);
}

.card-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.resource-card:hover .card-thumbnail {
    transform: scale(1.05);
}

.card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    background: rgba(15, 17, 26, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-accent);
    font-size: 0.75rem;
    font-weight: 600;
}

.bookmark-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 17, 26, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
}

.bookmark-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.bookmark-btn.active {
    color: #f43f5e; /* Coral rose color */
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.3);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.75rem;
}

.card-title {
    font-size: 1.15rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.card-title:hover {
    color: var(--accent-secondary);
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.card-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-surface-elevated);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

.card-uploader {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    min-width: 0;
}

.card-uploader .btn-author-profile {
    min-width: 0;
    max-width: 100%;
    display: inline-flex;
}

.card-uploader .name-with-membership-link {
    max-width: 100%;
    flex-wrap: nowrap;
}

.card-uploader .name-with-membership-link .name-with-membership-text {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-uploader-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-surface-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.card-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Modals Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 9, 13, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), var(--shadow-glow-purple);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-window {
    transform: scale(1) translateY(0);
}

.modal-window.large {
    max-width: 800px;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.3rem;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: var(--color-danger);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow-purple);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-tip {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.25rem;
}

.resource-editor-form {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

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

.resource-meta-row {
    align-items: start;
}

.form-column-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-column-stack .form-group {
    margin-bottom: 0;
}

.resource-media-row {
    align-items: start;
}

.resource-media-card {
    margin-bottom: 0;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.015));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.resource-input-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.file-input-control {
    padding: 0.55rem 0.7rem;
}

.preview-slot-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.preview-slot-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.compact-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
}

.preview-url-textarea {
    min-height: 112px;
}

.auth-toggle {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-toggle span {
    color: var(--text-accent);
    cursor: pointer;
    font-weight: 600;
}

.auth-toggle span:hover {
    text-decoration: underline;
}

/* Details Page View styling */
.details-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
}

.details-media {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.details-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--bg-surface-elevated);
}

.details-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.details-preview-carousel {
    --preview-aspect-ratio: 16 / 9;
    position: relative;
    width: 100%;
    aspect-ratio: var(--preview-aspect-ratio);
    max-height: min(72vh, 680px);
    min-height: 320px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background:
        radial-gradient(circle at top, rgba(124, 58, 237, 0.18), transparent 45%),
        var(--bg-surface-elevated);
}

.details-preview-carousel .carousel-slides {
    position: absolute;
    inset: 0;
}

.details-preview-carousel .carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(7, 10, 18, 0.12);
}

.details-preview-carousel .carousel-media {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: calc(var(--radius-md) - 4px);
    object-fit: contain;
    display: block;
}

.details-preview-carousel .carousel-prev,
.details-preview-carousel .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15,17,26,0.8);
    border: 1px solid var(--glass-border);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.details-preview-carousel .carousel-prev {
    left: 1rem;
}

.details-preview-carousel .carousel-next {
    right: 1rem;
}

.details-preview-carousel .carousel-dots-container {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: rgba(8,9,13,0.5);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    .details-preview-carousel {
        min-height: 220px;
        max-height: 58vh;
    }

    .details-preview-carousel .carousel-slide {
        padding: 0.75rem;
    }
}

.details-meta-bars {
    display: flex;
    justify-content: space-around;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.details-meta-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.details-meta-num {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.details-meta-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.details-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.details-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.details-badge-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.details-category {
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: var(--text-accent);
    font-size: 0.8rem;
    font-weight: 600;
}

.details-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.details-tag {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-surface-elevated);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
}

.details-title {
    font-size: 2.2rem;
    line-height: 1.2;
}

.details-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1.25rem;
}

.details-author .name-with-membership {
    vertical-align: middle;
}

.details-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-wrap;
}

.details-actions-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.details-actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.details-actions-title {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.details-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Empty State Styling */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    gap: 1.25rem;
    max-width: 600px;
    margin: 2rem auto;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--text-muted);
    background: var(--bg-surface-elevated);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
}

.empty-state-title {
    font-size: 1.25rem;
}

.empty-state-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 400px;
}

/* Admin Panel Layout */
.admin-container {
    display: grid;
    grid-template-columns: 266px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.admin-sidebar-dock {
    position: sticky;
    top: 112px;
    width: 266px;
    align-self: flex-start;
    transition: width 0.32s ease;
}

.admin-sidebar-toggle {
    position: absolute;
    top: 1rem;
    left: -18px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 1px solid var(--glass-border-hover);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(16, 24, 40, 0.96), rgba(14, 165, 233, 0.18));
    color: var(--text-primary);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.24);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.28s ease, box-shadow 0.28s ease, left 0.32s ease;
}

.admin-sidebar-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.3);
}

.admin-sidebar {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
    max-height: calc(100vh - 132px);
    overflow-y: auto;
    transition: padding 0.32s ease, border-color 0.32s ease;
}

.admin-sidebar-title {
    font-size: 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
    transition: opacity 0.24s ease, max-height 0.24s ease, margin 0.24s ease, padding 0.24s ease;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-nav-item {
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.admin-nav-item:hover, .admin-nav-item.active {
    color: var(--text-primary);
    background: var(--bg-surface-elevated);
}

.admin-nav-item.active {
    border-left: 3px solid var(--accent-secondary);
    padding-left: calc(1rem - 3px);
}

.admin-nav-label {
    display: inline-block;
    overflow: hidden;
    transition: opacity 0.24s ease, max-width 0.24s ease, margin 0.24s ease;
}

.admin-sidebar-dock.is-collapsed {
    width: 88px;
}

.admin-container.admin-layout-collapsed {
    grid-template-columns: 88px 1fr;
    gap: 1.2rem;
}

.admin-sidebar-dock.is-collapsed .admin-sidebar {
    padding: 1.25rem 0.9rem;
}

.admin-sidebar-dock.is-collapsed .admin-sidebar-title {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-bottom-color: transparent;
}

.admin-sidebar-dock.is-collapsed .admin-nav-item {
    justify-content: center;
    padding-right: 0.6rem;
    padding-left: 0.6rem;
    gap: 0;
}

.admin-sidebar-dock.is-collapsed .admin-nav-item.active {
    padding-left: calc(0.6rem - 3px);
}

.admin-sidebar-dock.is-collapsed .admin-nav-label {
    opacity: 0;
    max-width: 0;
    margin: 0;
}

.admin-sidebar-dock.is-collapsed .admin-sidebar-toggle {
    left: 4px;
}

.admin-sidebar-dock.is-collapsed .admin-sidebar-toggle i {
    transform: rotate(180deg);
}

.admin-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.admin-view-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.admin-view-panel.active {
    display: block;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.admin-stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.admin-stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.admin-stat-card:nth-child(2) .admin-stat-card-icon {
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent-primary);
}

.admin-stat-card:nth-child(3) .admin-stat-card-icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

.admin-stat-card-info {
    display: flex;
    flex-direction: column;
}

.admin-stat-card-val {
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-stat-card-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.admin-panel-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.admin-table-container {
    overflow-x: auto;
}

.admin-affiliate-panel {
    max-height: calc(100vh - 168px);
    overflow: hidden;
}

.admin-affiliate-togglebar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.admin-affiliate-toggle {
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border-radius: var(--radius-pill);
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    transition: var(--transition-smooth);
}

.admin-affiliate-toggle:hover {
    color: var(--text-primary);
    border-color: var(--glass-border-hover);
    background: rgba(255, 255, 255, 0.05);
}

.admin-affiliate-toggle.active {
    color: var(--text-primary);
    border-color: rgba(6, 182, 212, 0.28);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(124, 58, 237, 0.08));
    box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.08);
}

.admin-affiliate-subpanel {
    display: none;
    min-height: 0;
}

.admin-affiliate-subpanel.active {
    display: block;
}

.admin-affiliate-manager-grid {
    align-items: start;
}

.admin-affiliate-categories-panel {
    min-height: 0;
}

.admin-affiliate-categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.admin-affiliate-table-container {
    flex: 1;
    min-height: 0;
    max-height: 460px;
    overflow: auto;
    padding-right: 0.2rem;
}

.admin-affiliate-table-container thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(10, 12, 18, 0.96);
    backdrop-filter: blur(8px);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.admin-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.admin-table td {
    font-size: 0.9rem;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

.admin-badge {
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-badge-category {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-secondary);
}

.admin-badge-count {
    background: rgba(124, 58, 237, 0.1);
    color: var(--text-accent);
}

/* Category manager styling */
.category-manager-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
}

.cat-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cat-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.cat-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.cat-list-item-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.cat-list-item-rich {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}

.cat-list-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.subcategory-manager {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.subcategory-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.subcategory-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.subcategory-pill-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.subcategory-pill .btn-icon {
    width: 26px;
    height: 26px;
    padding: 0;
}

.subcategory-pill .btn-icon i {
    font-size: 0.72rem;
}

.subcategory-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
}

.subcategory-empty-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Footer Styling */
.app-footer {
    margin-top: auto;
    border-top: 1px solid var(--glass-border);
    background: rgba(8, 9, 13, 0.8);
    padding: 2.5rem 2rem;
    text-align: center;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Market Affiliate Showcase */
.affiliate-page {
    max-width: 1280px;
    position: relative;
}

.affiliate-page::before {
    content: "";
    position: absolute;
    inset: 2rem 3rem auto;
    height: 320px;
    border-radius: 48px;
    background: radial-gradient(circle, rgba(86, 215, 228, 0.38), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.affiliate-showcase-shell {
    position: relative;
    z-index: 1;
    background: #ffffff;
    color: #101418;
    border-radius: 28px;
    padding: 1.4rem 1.5rem 1.7rem;
    box-shadow: 0 24px 56px rgba(8, 15, 23, 0.12);
    border: 1px solid rgba(17, 24, 39, 0.08);
}

.affiliate-mobile-toolbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0 0.5rem;
}

.affiliate-mobile-toolbar p {
    font-size: 0.82rem;
    color: #59636d;
}

.affiliate-mobile-market-shell {
    display: none;
}

.affiliate-mobile-searchbar {
    display: none;
}

.affiliate-mobile-promo-banner,
.affiliate-mobile-action-card,
.affiliate-mobile-category-strip {
    display: none;
}

.affiliate-content-layout {
    display: block;
    margin-top: 0.35rem;
}

.affiliate-sidebar-dock {
    position: relative;
    width: auto;
    align-self: start;
    z-index: 20;
}

.affiliate-sidebar-toggle {
    z-index: 3;
    min-width: 236px;
    min-height: 50px;
    padding: 0.8rem 1.15rem;
    border: 1px solid rgba(16, 20, 24, 0.12);
    border-radius: 999px;
    background: #f4f4f5;
    color: #18181b;
    box-shadow: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-size: 1rem;
    font-weight: 700;
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.affiliate-sidebar-toggle:hover {
    background: #ededf0;
}

.affiliate-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.15rem;
    border-radius: 24px;
    border: 1px solid rgba(16, 20, 24, 0.08);
    background: #ffffff;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.14);
    max-height: min(72vh, 720px);
    overflow-y: auto;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.affiliate-sidebar-dock:not(.affiliate-sidebar-ready) .affiliate-sidebar-toggle {
    display: none;
}

.affiliate-sidebar-dock-inline {
    min-width: 236px;
}

.affiliate-sidebar-popover {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    width: 340px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}

.affiliate-sidebar-dock.is-open .affiliate-sidebar-popover {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.affiliate-sidebar-dock.is-open .affiliate-sidebar-toggle {
    background: #111827;
    color: #ffffff;
}

.affiliate-sidebar-dock.is-open .affiliate-sidebar-toggle i {
    transform: rotate(90deg);
}

.affiliate-sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.affiliate-sidebar-section h3 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #52525b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.affiliate-filter-stack {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.affiliate-filter-link {
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    background: transparent;
    color: #27272a;
    padding: 0.72rem 0.85rem;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.affiliate-filter-link:hover {
    background: rgba(17, 24, 39, 0.05);
    color: #111827;
}

.affiliate-filter-link.active {
    background: rgba(17, 24, 39, 0.08);
    border-color: rgba(17, 24, 39, 0.08);
    color: #0f172a;
}

.affiliate-main-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.affiliate-desktop-sticky-shell {
    position: sticky;
    top: 0;
    z-index: 16;
    background: #ffffff;
    padding-top: 0;
    margin-bottom: 0.2rem;
}

.affiliate-shell-top {
    display: grid;
    grid-template-columns: auto minmax(320px, 1fr) auto;
    align-items: center;
    gap: 1.15rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(16, 20, 24, 0.08);
}

.affiliate-shell-brand {
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #171717;
    white-space: nowrap;
}

.affiliate-shell-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.affiliate-shell-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 20, 24, 0.18);
    color: #171717;
    font-weight: 600;
    background: #fff;
}

.affiliate-shell-action.primary {
    background: linear-gradient(135deg, #dff7fb, #c9eef3);
    color: #1b3a40;
}

.affiliate-top-links {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: none;
}

.affiliate-top-links::-webkit-scrollbar {
    display: none;
}

.affiliate-top-link {
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    color: #2e343a;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.82rem 1.05rem;
    cursor: pointer;
    border-radius: 999px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.affiliate-top-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #1f2937);
    border-color: #111827;
}

.affiliate-desktop-marketbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    padding: 0.95rem 0 0.25rem;
    border-bottom: 1px solid rgba(16, 20, 24, 0.05);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.affiliate-desktop-searchbar {
    margin: 0;
    min-width: 0;
    width: 100%;
    background: #ffffff;
    border: 2px solid #18181b;
    border-radius: 999px;
    min-height: 56px;
    box-shadow: none;
}

.affiliate-desktop-searchbar input {
    color: #111827;
}

.affiliate-desktop-searchbar button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #111827;
    color: #ffffff;
    cursor: pointer;
    box-shadow: none;
}

.affiliate-mobile-searchbar {
    align-items: center;
    gap: 0.7rem;
    padding: 0.82rem 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.affiliate-mobile-searchbar i {
    color: #7b8794;
    font-size: 0.92rem;
}

.affiliate-mobile-searchbar input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #101418;
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.affiliate-mobile-promo-banner {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 1rem;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(135deg, #0ea5e9 0%, #22c55e 55%, #15803d 100%);
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(34, 197, 94, 0.18);
}

.affiliate-mobile-promo-copy {
    position: relative;
    z-index: 1;
    max-width: 260px;
}

.affiliate-mobile-promo-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.affiliate-mobile-promo-copy h2 {
    margin-top: 0.55rem;
    color: #ffffff;
    font-size: 1.08rem;
    line-height: 1.25;
}

.affiliate-mobile-promo-copy p {
    margin-top: 0.4rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.76rem;
    line-height: 1.5;
}

.affiliate-mobile-action-card {
    position: relative;
    z-index: 2;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.affiliate-mobile-action-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.affiliate-mobile-action-copy strong {
    font-size: 0.88rem;
    color: #101418;
}

.affiliate-mobile-action-copy span {
    font-size: 0.74rem;
    color: #67727d;
    line-height: 1.45;
}

.affiliate-mobile-action-buttons {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.affiliate-mobile-action-button {
    position: relative;
    z-index: 4;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 38px;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    border: none;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
}

.affiliate-mobile-action-button.primary {
    background: linear-gradient(135deg, #10b981, #14b8a6);
    color: #ffffff;
}

.affiliate-mobile-action-button.secondary {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

.affiliate-mobile-category-strip {
    gap: 0.7rem;
    overflow-x: auto;
    padding: 0.15rem 0 0.35rem;
    scrollbar-width: none;
}

.affiliate-mobile-category-strip::-webkit-scrollbar {
    display: none;
}

.affiliate-mobile-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 68px;
    border: none;
    background: transparent;
    color: #111827;
    cursor: pointer;
    flex: 0 0 auto;
}

.affiliate-mobile-category-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff, #eef6ff);
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f766e;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
}

.affiliate-mobile-category-label {
    font-size: 0.7rem;
    line-height: 1.2;
    text-align: center;
    color: #374151;
    max-width: 68px;
}

.affiliate-mobile-category-item.active .affiliate-mobile-category-icon {
    background: linear-gradient(135deg, #99f6e4, #dbeafe);
    color: #0f172a;
    border-color: rgba(20, 184, 166, 0.2);
}

.affiliate-mobile-category-item.active .affiliate-mobile-category-label {
    color: #111827;
    font-weight: 700;
}

.affiliate-hero-card {
    display: none;
}

.affiliate-hero-overlay {
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    padding: 2rem;
}

.affiliate-hero-copy {
    max-width: 760px;
    color: #fff;
}

.affiliate-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.affiliate-hero-copy h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-top: 0.85rem;
}

.affiliate-hero-copy p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    margin-top: 0.85rem;
}

.affiliate-search-bar {
    width: min(640px, 100%);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    padding: 0.85rem 0.95rem 0.85rem 1.15rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.affiliate-search-bar i {
    color: #69737d;
    font-size: 1.1rem;
}

.affiliate-search-bar input {
    border: none;
    outline: none;
    background: transparent;
    color: #101418;
    font-size: 1rem;
    font-family: var(--font-body);
}

.affiliate-search-bar button {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: #5fd1dd;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(95, 209, 221, 0.35);
}

.affiliate-chip-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.affiliate-chip {
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #27313a;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
}

.affiliate-shell-stats {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    padding: 1.35rem 0 0.35rem;
}

.affiliate-mini-stat {
    min-width: 140px;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(16, 20, 24, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.affiliate-mini-stat strong {
    font-size: 1.15rem;
    color: #101418;
}

.affiliate-mini-stat span {
    color: #68737d;
    font-size: 0.82rem;
}

.affiliate-list-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.15rem;
    margin-bottom: 1rem;
}

.affiliate-list-header h2 {
    color: #111827;
    font-size: 1.6rem;
}

.affiliate-list-header p {
    color: #69737d;
    margin-top: 0.3rem;
}

.affiliate-list-arrows {
    display: flex;
    gap: 0.5rem;
}

.affiliate-list-arrows button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(16, 20, 24, 0.1);
    background: #fff;
    color: #101418;
}

.admin-broadcast-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.8fr);
    gap: 1.25rem;
    margin-top: 1rem;
}

.admin-server-broadcast-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-server-broadcast-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-server-broadcast-note {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    padding: 1.15rem;
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    background:
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.12), transparent 42%),
        var(--bg-surface-elevated);
    min-height: 100%;
}

.admin-server-broadcast-note-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent-secondary);
    flex-shrink: 0;
}

.admin-server-broadcast-note strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.45rem;
}

.admin-server-broadcast-note p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 980px) {
    .admin-broadcast-grid {
        grid-template-columns: 1fr;
    }
}

.affiliate-list-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.affiliate-list-card {
    background: #fff;
    border-radius: 0;
    overflow: visible;
    border: none;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.28s ease;
    box-shadow: none;
}

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

.affiliate-open-details {
    cursor: pointer;
}

.affiliate-list-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f6f7fb;
}

.affiliate-list-image .card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.affiliate-list-card:hover .card-thumbnail {
    transform: scale(1.05);
}

.affiliate-list-content {
    padding: 0.68rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    flex: 1;
}

.affiliate-list-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
}

.affiliate-list-badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    background: rgba(255, 255, 255, 0.9);
    color: #222;
    border-radius: 10px;
    padding: 0.28rem 0.55rem;
    font-size: 0.62rem;
    font-weight: 700;
}

.affiliate-status-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    background: rgba(15, 23, 42, 0.82);
    color: #f8fafc;
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(8px);
}

.affiliate-status-badge.status-new {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.92), rgba(59, 130, 246, 0.9));
    color: #eff6ff;
}

.affiliate-status-badge.status-hot {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.96), rgba(239, 68, 68, 0.92));
    color: #fff7ed;
}

.affiliate-status-badge.status-verified {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.94), rgba(5, 150, 105, 0.92));
    color: #ecfdf5;
}

.affiliate-status-badge.status-premium {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.96), rgba(245, 158, 11, 0.94));
    color: #422006;
    border-color: rgba(250, 204, 21, 0.26);
}

.affiliate-list-status {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
}

.affiliate-list-content {
    padding: 0.68rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    flex: 1;
}

.affiliate-list-program {
    font-size: 0.8rem;
    color: #71717a;
    line-height: 1.35;
}

.affiliate-list-commission {
    color: #0f172a;
    font-size: 0.84rem;
}

.affiliate-traffic-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    padding: 0.38rem 0.68rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #0f172a;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.affiliate-traffic-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.88;
}

.affiliate-traffic-pill.traffic-tiktok {
    color: #111827;
    background: rgba(17, 24, 39, 0.06);
}

.affiliate-traffic-pill.traffic-youtube {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.08);
}

.affiliate-traffic-pill.traffic-instagram {
    color: #be185d;
    background: rgba(236, 72, 153, 0.08);
}

.affiliate-traffic-pill.traffic-telegram {
    color: #0369a1;
    background: rgba(14, 165, 233, 0.08);
}

.affiliate-traffic-pill.traffic-blog-seo {
    color: #047857;
    background: rgba(16, 185, 129, 0.08);
}

.affiliate-traffic-pill.traffic-paid-ads {
    color: #7c3aed;
    background: rgba(139, 92, 246, 0.08);
}

.affiliate-list-traffic {
    font-size: 0.68rem;
    padding: 0.32rem 0.56rem;
    border-radius: 10px;
}

.affiliate-details-status,
.affiliate-details-traffic {
    position: static;
    top: auto;
    right: auto;
    box-shadow: none;
    backdrop-filter: none;
}

.affiliate-details-status {
    font-size: 0.75rem;
}

.affiliate-details-traffic {
    font-size: 0.75rem;
}

.admin-affiliate-status,
.admin-affiliate-traffic {
    position: static;
    top: auto;
    right: auto;
    font-size: 0.72rem;
    padding: 0.28rem 0.58rem;
    box-shadow: none;
    backdrop-filter: none;
    vertical-align: middle;
}

.admin-affiliate-traffic::before {
    width: 7px;
    height: 7px;
}

.admin-affiliate-badge-preview {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.55);
}

.admin-affiliate-preview-status,
.admin-affiliate-preview-traffic {
    position: static;
    top: auto;
    right: auto;
    box-shadow: none;
    backdrop-filter: none;
}

.affiliate-list-platform {
    color: #68737d;
    font-size: 0.8rem;
}

.affiliate-list-title {
    color: #111827;
    font-size: 1rem;
    line-height: 1.35;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.affiliate-list-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
}

.affiliate-list-publisher {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    min-width: 0;
}

.affiliate-list-publisher strong,
.affiliate-list-publisher .name-with-membership,
.affiliate-list-publisher .name-with-membership-strong {
    font-size: 0.88rem;
    color: #101418;
}

.affiliate-list-publisher .name-with-membership {
    flex-wrap: nowrap;
}

.affiliate-list-publisher .name-with-membership-strong {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.affiliate-list-publisher span {
    font-size: 0.78rem;
    color: #68737d;
}

.affiliate-detail-shell {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.affiliate-filter-drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
}

.affiliate-filter-drawer.active {
    display: block;
}

.affiliate-filter-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.48);
    backdrop-filter: blur(6px);
}

.affiliate-filter-drawer-panel {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    width: min(420px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    border-radius: 28px;
    background: #f8fafc;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    padding: 1rem;
}

.affiliate-filter-drawer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.affiliate-filter-drawer-head strong {
    display: block;
    font-size: 1rem;
    color: #0f172a;
}

.affiliate-filter-drawer-head p {
    margin-top: 0.25rem;
    font-size: 0.82rem;
    color: #64748b;
}

.affiliate-filter-drawer-close {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #fff;
    border-radius: 14px;
    cursor: pointer;
}

.affiliate-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.affiliate-detail-header h2 {
    color: #101418;
    margin-bottom: 0.25rem;
}

.affiliate-detail-header p {
    color: #68737d;
    margin: 0;
}

.affiliate-detail-container {
    background: transparent;
    padding: 0;
}

.affiliate-detail-shell {
    border: 1px solid rgba(16, 20, 24, 0.08);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.affiliate-detail-media-column,
.affiliate-detail-info-column {
    gap: 1.2rem;
}

.affiliate-detail-media-card,
.affiliate-detail-summary-card,
.affiliate-detail-main-card,
.affiliate-detail-description-card,
.affiliate-detail-actions-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(16, 20, 24, 0.08);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.affiliate-detail-media-card {
    padding: 0.9rem;
}

.affiliate-detail-summary-card {
    padding: 1rem;
}

.affiliate-detail-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.affiliate-detail-summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(240, 249, 255, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.affiliate-detail-summary-value {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    word-break: break-word;
}

.affiliate-detail-summary-label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.affiliate-detail-main-card {
    padding: 1.35rem 1.4rem 1.2rem;
    gap: 1rem;
}

.affiliate-detail-main-card .details-title {
    color: #0f172a;
    -webkit-text-fill-color: initial;
}

.affiliate-detail-badges {
    align-items: flex-start;
}

.affiliate-detail-author {
    padding-top: 0.2rem;
}

.affiliate-detail-description-card {
    padding: 1.25rem 1.35rem;
    color: #4b5563;
    line-height: 1.8;
    white-space: pre-wrap;
}

.affiliate-detail-actions-card {
    padding: 1.2rem 1.35rem;
}

.affiliate-detail-actions-note {
    font-size: 0.8rem;
    color: #64748b;
}

.affiliate-detail-buttons {
    gap: 0.85rem;
}

.affiliate-detail-buttons .btn {
    min-height: 46px;
}

/* Utility Animations */
.pulse-glow {
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(124, 58, 237, 0.15); }
    50% { box-shadow: 0 0 25px rgba(124, 58, 237, 0.35); }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .details-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .admin-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .admin-container.admin-layout-collapsed {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .admin-sidebar-dock {
        width: 100%;
        position: sticky;
        top: 88px;
    }

    .admin-sidebar-toggle {
        display: none;
    }
    
    .admin-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.75rem;
        position: sticky;
        top: 88px;
        max-height: none;
    }

    .admin-sidebar-title {
        display: none;
    }
    
    .admin-nav {
        flex-direction: row;
        width: 100%;
    }
    
    .admin-nav-item {
        white-space: nowrap;
    }
    
    .admin-nav-item.active {
        border-left: none;
        border-bottom: 3px solid var(--accent-secondary);
        padding-left: 1rem;
        padding-bottom: calc(0.6rem - 3px);
    }

    .admin-affiliate-panel {
        max-height: none;
        overflow: visible;
    }

    .admin-affiliate-togglebar {
        gap: 0.6rem;
    }

    .admin-affiliate-categories-list,
    .admin-affiliate-table-container {
        max-height: none;
    }

    .affiliate-list-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .affiliate-detail-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    #resource-details-content.details-container {
        display: flex;
        flex-direction: column;
    }

    #resource-details-content .details-file-actions-panel,
    #resource-details-content .details-comments-panel {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .app-header {
        padding: 0.75rem 1rem;
    }

    .app-main {
        padding: 1rem;
        gap: 1.5rem;
    }

    .resource-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .resource-card {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        align-items: stretch;
        border-radius: 14px;
        min-height: 112px;
    }

    .card-thumbnail-container {
        padding-top: 0;
        height: 100%;
        min-height: 112px;
    }

    .card-category {
        display: none;
    }

    .bookmark-btn {
        top: 0.55rem;
        right: 0.55rem;
        width: 28px;
        height: 28px;
    }

    .card-content {
        padding: 0.9rem 0.95rem 0.8rem;
        gap: 0.45rem;
        min-width: 0;
    }

    .card-title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 1rem;
        line-height: 1.35;
    }

    .card-description,
    .card-tags,
    .card-stats {
        display: none;
    }

    .card-footer {
        border-top: none;
        padding-top: 0;
        margin-top: auto;
        justify-content: flex-start;
    }

    .card-uploader {
        font-size: 0.82rem;
        color: var(--text-secondary);
    }

    .card-uploader .btn-author-profile {
        text-decoration: none !important;
    }

    .header-container {
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.75rem;
    }

    .logo {
        flex: 0 0 auto;
        min-width: 0;
    }

    .market-nav-toggle {
        display: inline-flex;
        order: 4;
        margin-left: 0;
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 14px;
        gap: 0;
        flex: 0 0 auto;
    }

    .market-nav-toggle span {
        display: none;
    }

    .header-actions {
        order: 3;
        margin-left: auto;
        gap: 0.55rem;
        justify-content: flex-end;
        align-items: center;
        flex-wrap: nowrap;
        flex: 0 0 auto;
    }

    #user-actions {
        gap: 0.55rem !important;
        align-items: center !important;
    }

    #user-actions .user-menu-trigger {
        order: 2;
        padding: 0.25rem;
        gap: 0.4rem;
    }

    #user-actions .header-notification-wrap {
        order: 1;
    }

    #user-actions .username,
    #user-actions .user-menu-trigger > .fa-solid.fa-user {
        display: none;
    }

    #user-actions .avatar {
        width: 30px;
        height: 30px;
        font-size: 0.78rem;
    }

    .header-notification-btn {
        width: 40px;
        height: 40px;
    }

    .header-notification-panel {
        top: calc(100% + 0.65rem);
        right: -0.35rem;
        left: auto;
        width: min(320px, calc(100vw - 1rem));
        max-width: calc(100vw - 1rem);
        padding: 0.85rem;
        border-radius: 18px;
    }

    .header-notification-head {
        align-items: flex-start;
        gap: 0.75rem;
    }

    .header-notification-actions {
        gap: 0.35rem;
    }

    .header-notification-action,
    .header-notification-filter {
        font-size: 0.68rem;
        padding: 0.38rem 0.6rem;
    }

    body.mobile-nav-open .market-nav-toggle {
        position: fixed;
        top: 1.9rem;
        right: 1.9rem;
        z-index: 160;
        width: 46px;
        height: 46px;
        padding: 0;
        margin-left: 0;
        border-radius: 14px;
        justify-content: center;
        background: rgba(13, 16, 25, 0.96);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 18px 35px rgba(0, 0, 0, 0.32);
    }

    body.mobile-nav-open .market-nav-toggle span {
        display: none;
    }

    .mobile-nav-guest-actions {
        display: none;
    }

    .market-nav {
        display: none;
        position: fixed;
        inset: 0;
        padding: 0.9rem;
        align-items: stretch;
        justify-content: stretch;
        pointer-events: none;
        z-index: 140;
    }

    .market-nav.is-open {
        display: block;
        pointer-events: auto;
    }

    .market-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(2, 6, 23, 0.52);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.22s ease, visibility 0.22s ease;
        z-index: 130;
    }

    .market-nav-backdrop.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .search-wrapper {
        width: auto;
        min-width: 0;
        flex: 1 1 auto;
        order: 2;
    }

    .search-wrapper .search-input {
        min-width: 0;
        width: 100%;
    }
    
    .nav-links {
        width: min(420px, calc(100vw - 1.8rem));
        max-width: calc(100vw - 1.8rem);
        min-height: calc(100dvh - 1.8rem);
        max-height: calc(100dvh - 1.8rem);
        margin-left: auto;
        justify-content: flex-start;
        align-items: stretch;
        flex-wrap: nowrap;
        flex-direction: column;
        gap: 0.9rem;
        padding: 1.15rem 1.15rem 7rem;
        border-radius: 28px;
        background: rgba(13, 16, 25, 0.92);
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
        overflow-y: auto;
        transform: translateX(104%);
        transition: transform 0.28s ease;
    }

    .nav-links > li:first-child .nav-item {
        padding-right: 4.6rem;
    }

    .market-nav.is-open .nav-links {
        transform: translateX(0);
    }

    .nav-links li,
    .nav-item,
    .nav-mega {
        width: 100%;
    }

    .nav-item {
        justify-content: flex-start;
        min-height: 52px;
        padding: 1rem 1.1rem;
        border-radius: 16px;
        font-size: 0.98rem;
        font-weight: 600;
        gap: 0.7rem;
    }

    .nav-item i {
        font-size: 0.95rem;
    }

    .nav-mega-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .mega-menu {
        position: static;
        width: 100%;
        margin-top: 0.45rem;
        padding: 1rem;
        border-radius: 20px;
        transform: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        display: block;
        max-height: 0;
        overflow: hidden;
        box-shadow: none;
        transition: max-height 0.24s ease, opacity 0.2s ease, visibility 0.2s ease;
    }

    .nav-mega:hover .mega-menu,
    .nav-mega:focus-within .mega-menu,
    .nav-mega.is-open .mega-menu {
        max-height: 70vh;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .mega-menu-grid {
        grid-template-columns: 1fr;
    }

    .mega-menu-compact {
        width: 100%;
    }

    .mega-menu-column {
        padding: 1rem;
        gap: 0.8rem;
        border-radius: 18px;
        overflow: visible;
    }

    .mega-mobile-parent {
        cursor: pointer;
        font-size: 1rem;
    }

    .mega-mobile-parent i {
        display: inline-flex;
        font-size: 0.72rem;
        transition: transform 0.25s ease;
    }

    .mega-menu-column .mega-submenu {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        padding-left: 0.35rem;
        transition: max-height 0.22s ease, opacity 0.18s ease, padding-right 0.18s ease;
    }

    .mega-link {
        padding: 0.65rem 0.8rem;
        font-size: 0.9rem;
    }

    .mega-menu-column.is-open .mega-submenu {
        max-height: min(48vh, 460px);
        opacity: 1;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 0.35rem;
    }

    .mega-menu-column.is-open .mega-mobile-parent i {
        transform: rotate(180deg);
    }

    .hiburan18-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .hiburan18-topbar-right {
        flex-direction: column;
        align-items: stretch;
    }

    .hiburan18-searchbar {
        width: 100%;
    }

    .hiburan18-main-layout {
        grid-template-columns: 1fr;
    }

    .hiburan18-sidebar {
        order: 2;
    }

    .hiburan18-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hiburan18-bottom-sections {
        grid-template-columns: 1fr;
    }

    .hiburan18-community-head {
        flex-direction: column;
        align-items: stretch;
    }

    .hiburan18-upload-btn,
    .hiburan18-community-upload-btn {
        width: 100%;
    }
    
    .header-actions {
        justify-content: space-between;
        order: 3;
        gap: 0.7rem;
    }

    #guest-actions {
        display: none !important;
    }

    .mobile-nav-guest-actions {
        position: absolute;
        right: 1.95rem;
        bottom: 1.95rem;
        z-index: 155;
        width: min(382px, calc(100vw - 4rem));
        max-width: calc(100vw - 4rem);
        justify-content: stretch;
        gap: 0.7rem;
        padding: 0;
    }

    .mobile-nav-guest-actions .btn {
        flex: 1;
        min-height: 46px;
        padding: 0.7rem 0.95rem;
        font-size: 0.84rem;
        border-radius: 14px;
    }

    .market-nav {
        display: none;
        position: fixed;
        inset: 0;
        padding: 0.9rem;
        pointer-events: none;
        z-index: 140;
    }

    .market-nav.is-open {
        display: block;
        pointer-events: auto;
    }

    .market-nav.is-open .mobile-nav-drawer {
        transform: translateX(0);
    }

    .mobile-nav-drawer {
        display: flex;
        flex-direction: column;
        width: min(420px, calc(100vw - 1.8rem));
        max-width: calc(100vw - 1.8rem);
        min-height: calc(100dvh - 1.8rem);
        max-height: calc(100dvh - 1.8rem);
        margin-left: auto;
        border-radius: 28px;
        background: rgba(13, 16, 25, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
        overflow: hidden;
        transform: translateX(104%);
        transition: transform 0.28s ease;
    }

    .mobile-nav-drawer-header {
        display: flex;
        align-items: center;
        gap: 0.9rem;
        padding: 1.15rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .mobile-nav-home-link {
        display: inline-flex;
        flex: 1;
        align-items: center;
        gap: 0.7rem;
        min-height: 52px;
        padding: 1rem 1.1rem;
        border-radius: 16px;
        font-size: 0.98rem;
        font-weight: 600;
        color: var(--text-primary);
        background: var(--glass-bg);
    }

    .mobile-nav-home-link i {
        color: var(--accent-secondary);
        font-size: 0.95rem;
    }

    .mobile-nav-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(13, 16, 25, 0.96);
        color: var(--text-primary);
        cursor: pointer;
        flex-shrink: 0;
    }

    .mobile-nav-drawer-body {
        display: block;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding: 1rem 1.15rem;
    }

    .mobile-nav-drawer-footer {
        display: block;
        padding: 1rem 1.15rem 1.15rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        background: rgba(8, 10, 16, 0.92);
    }

    .nav-links {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        max-height: none;
        margin-left: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: visible;
        transform: none;
        transition: none;
    }

    .nav-links > li:first-child {
        display: none;
    }

    .mobile-nav-guest-actions {
        display: flex;
        position: static;
        width: 100%;
        max-width: none;
        right: auto;
        bottom: auto;
        justify-content: stretch;
    }
    
    .hero-title {
        font-size: 1.9rem;
        margin-bottom: 0.7rem;
    }
    
    .hero-banner {
        padding: 1.65rem 1rem 1.2rem;
        margin-bottom: 1.25rem;
        border-radius: 20px;
    }

    .hero-subtitle {
        font-size: 0.92rem;
        line-height: 1.7;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .hero-search-wrapper .search-input,
    .search-wrapper .search-input {
        min-height: 42px;
        padding: 0.78rem 1rem 0.78rem 2.55rem;
        font-size: 0.85rem;
        border-radius: 14px;
    }

    .hero-search-wrapper .search-icon,
    .search-wrapper .search-icon {
        left: 1rem;
        font-size: 0.92rem;
    }

    .details-container {
        padding: 1.1rem;
        gap: 1.1rem;
    }

    .details-meta-bars {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        justify-content: stretch;
    }

    .details-meta-split {
        display: none;
    }
    
    .stats-grid {
        gap: 1rem;
        flex-wrap: nowrap;
        width: 100%;
        margin-top: 1.2rem;
        justify-content: space-between;
    }

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

    .stat-number {
        font-size: 1.35rem;
    }

    .stat-label {
        font-size: 0.66rem;
        letter-spacing: 0.08em;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .category-manager-grid {
        grid-template-columns: 1fr;
    }

    .cat-list-item-top {
        flex-direction: column;
        align-items: stretch;
    }

    .subcategory-form {
        grid-template-columns: 1fr;
    }

    .affiliate-showcase-shell {
        padding: 0.85rem;
        border-radius: 0;
        background: #f8fafc;
        box-shadow: none;
    }

    .payment-card {
        padding: 1rem;
    }

    .payment-panel {
        padding: 0.85rem;
    }

    .payment-hero-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .payment-meta-row {
        flex-direction: column;
        gap: 0.3rem;
    }

    .payment-actions .btn {
        width: 100%;
    }

    .payment-page-title {
        font-size: 1.45rem;
    }

    .payment-page-price {
        font-size: 0.98rem;
    }

    .payment-page-description,
    .payment-note-text,
    .payment-warning-text {
        font-size: 0.84rem;
    }

    .payment-meta-card,
    .payment-note-card,
    .payment-benefits-card,
    .payment-warning-card {
        padding: 0.9rem;
    }

    .membership-header {
        margin-bottom: 1.3rem;
    }

    .membership-title {
        font-size: 1.55rem;
        line-height: 1.18;
    }

    .membership-subtitle {
        font-size: 0.86rem;
        line-height: 1.55;
    }

    .membership-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .membership-card {
        display: block;
        grid-template-columns: none;
        min-height: 0;
        padding: 1.1rem;
        border-radius: 16px;
    }

    .membership-card .card-description,
    .membership-card .card-tags {
        display: flex;
    }

    .membership-card .card-description {
        margin-top: 0;
        font-size: 0.84rem;
        line-height: 1.55;
    }

    .membership-card .card-tags {
        gap: 0.45rem;
    }

    .membership-card .card-tag {
        font-size: 0.68rem;
        padding: 0.38rem 0.58rem;
    }

    .membership-plan-title {
        font-size: 1.05rem;
    }

    .membership-plan-button {
        min-height: 44px;
        font-size: 0.82rem;
        padding: 0.72rem 0.9rem;
    }

    .profile-layout-shell,
    .user-profile-layout-shell {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.25rem;
    }

    .profile-layout-sidebar,
    .user-profile-layout-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding-right: 0;
        padding-bottom: 1rem;
    }

    .profile-layout-sidebar {
        gap: 1rem;
    }

    .profile-sidebar-head {
        gap: 0.65rem;
        padding: 0.15rem 0 0.25rem;
    }

    .profile-avatar-action {
        font-size: 0.78rem !important;
        padding: 0.38rem 0.8rem !important;
    }

    .profile-username {
        font-size: 1.9rem !important;
    }

    .profile-role-badge {
        font-size: 0.74rem;
        padding: 0.36rem 0.72rem;
    }

    .profile-rename-card {
        padding: 0.9rem !important;
    }

    .profile-rename-head {
        align-items: center !important;
    }

    .profile-rename-trigger {
        padding: 0.42rem 0.72rem !important;
    }

    .profile-stats-list {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem !important;
        margin-top: 0.2rem !important;
    }

    .profile-stat-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 0.35rem !important;
        padding: 0.85rem 0.9rem;
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.025);
    }

    .profile-stat-row:last-child {
        grid-column: 1 / -1;
    }

    .profile-stat-label {
        font-size: 0.76rem;
    }

    .profile-stat-value {
        font-size: 1rem;
    }

    .profile-main-head {
        align-items: stretch;
        gap: 0.9rem;
    }

    .profile-main-copy {
        font-size: 0.82rem !important;
    }

    .profile-upload-switcher {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 0.45rem;
        padding: 0.32rem;
    }

    .profile-upload-tab {
        padding: 0.72rem 0.9rem;
        font-size: 0.82rem;
        text-align: center;
    }

    .profile-upload-mobile-list {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    .profile-upload-table {
        display: none;
    }

    .profile-upload-mobile-card {
        padding: 0.9rem;
        gap: 0.75rem;
    }

    .profile-upload-mobile-title {
        font-size: 0.96rem;
    }

    .profile-upload-mobile-meta,
    .profile-upload-mobile-stats {
        gap: 0.55rem;
    }

    .profile-upload-mobile-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .admin-table-container {
        overflow-x: auto;
    }

    .affiliate-shell-top,
    .affiliate-desktop-marketbar,
    .affiliate-mobile-toolbar,
    .affiliate-hero-card {
        display: none;
    }

    .affiliate-mobile-market-shell {
        display: flex;
        flex-direction: column;
        gap: 0.7rem;
        margin-bottom: 0.7rem;
    }

    .affiliate-mobile-searchbar,
    .affiliate-mobile-promo-banner,
    .affiliate-mobile-action-card,
    .affiliate-mobile-category-strip {
        display: flex;
    }

    .affiliate-mobile-searchbar {
        position: sticky;
        top: 4.15rem;
        z-index: 18;
    }

    .affiliate-content-layout {
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    .affiliate-sidebar-dock {
        display: none;
    }

    .affiliate-list-header {
        align-items: center;
        justify-content: space-between;
        gap: 0.8rem;
        margin-top: 0.3rem;
        margin-bottom: 0.6rem;
    }

    .affiliate-list-header h2 {
        font-size: 1.12rem;
    }

    .affiliate-list-header p {
        font-size: 0.75rem;
    }

    .affiliate-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .affiliate-list-card {
        border: 1px solid rgba(15, 23, 42, 0.06);
        border-radius: 16px;
        border-color: rgba(15, 23, 42, 0.06);
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
        overflow: hidden;
    }

    .affiliate-list-image {
        aspect-ratio: 1 / 1.02;
    }

    .affiliate-list-badge,
    .affiliate-list-status {
        top: 0.55rem;
        left: 0.55rem;
        right: auto;
        padding: 0.3rem 0.55rem;
        font-size: 0.62rem;
    }

    .affiliate-list-status {
        left: auto;
        right: 0.55rem;
    }

    .affiliate-list-badge,
    .affiliate-list-status,
    .affiliate-list-topline {
        display: inline-flex;
    }

    .affiliate-list-topline {
        display: flex;
    }

    .affiliate-list-content {
        padding: 0.72rem 0.72rem 0.82rem;
        justify-content: flex-start;
        min-width: 0;
        gap: 0.45rem;
    }

    .affiliate-list-traffic {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }

    .affiliate-list-platform {
        font-size: 0.68rem;
    }

    .affiliate-list-title {
        font-size: 0.88rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .affiliate-list-meta {
        margin-top: 0.2rem;
    }

    .affiliate-list-publisher {
        gap: 0.18rem;
    }

    .affiliate-list-publisher strong,
    .affiliate-list-publisher .name-with-membership,
    .affiliate-list-publisher .name-with-membership-strong {
        font-size: 0.74rem;
        color: #475569;
        font-weight: 600;
    }

    .affiliate-list-publisher span {
        display: none;
    }

    .affiliate-detail-header {
        flex-direction: column;
        align-items: stretch;
    }

    .affiliate-detail-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .affiliate-detail-main-card,
    .affiliate-detail-description-card,
    .affiliate-detail-actions-card {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 560px) {
    .app-header {
        padding: 0.65rem 0.8rem;
    }

    .app-main {
        padding: 0.8rem;
        gap: 1.1rem;
    }

    .header-container {
        gap: 0.8rem;
    }

    .logo {
        gap: 0.5rem;
        font-size: 1rem;
    }

    .logo span {
        display: none;
    }

    .header-actions {
        margin-left: auto;
        gap: 0.42rem;
    }

    #user-actions {
        gap: 0.4rem !important;
    }

    #user-actions .user-menu-trigger {
        min-width: 36px;
        padding: 0.15rem;
    }

    .header-notification-btn {
        width: 36px;
        height: 36px;
    }

    #user-actions .avatar {
        width: 28px;
        height: 28px;
        font-size: 0.74rem;
    }

    .market-nav-toggle {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .header-notification-panel {
        right: -0.2rem;
        width: min(300px, calc(100vw - 0.8rem));
        max-width: calc(100vw - 0.8rem);
        padding: 0.8rem;
    }

    .search-wrapper {
        min-width: 0;
    }

    .search-wrapper .search-input {
        min-height: 38px;
        padding: 0.68rem 0.85rem 0.68rem 2.2rem;
        font-size: 0.78rem;
        border-radius: 13px;
    }

    .search-wrapper .search-icon {
        left: 0.82rem;
        font-size: 0.82rem;
    }

    .mobile-nav-guest-actions {
        right: 1.25rem;
        bottom: 1.25rem;
        width: calc(100vw - 2.5rem);
        max-width: calc(100vw - 2.5rem);
        gap: 0.55rem;
    }

    .mobile-nav-guest-actions .btn {
        min-height: 42px;
        padding: 0.65rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 12px;
    }

    .mobile-nav-drawer {
        width: 100%;
        max-width: 100%;
        min-height: calc(100dvh - 1.2rem);
        max-height: calc(100dvh - 1.2rem);
        border-radius: 22px;
    }

    .mobile-nav-drawer-header {
        padding: 1rem;
    }

    .mobile-nav-home-link {
        min-height: 48px;
        padding: 0.9rem 1rem;
        font-size: 0.92rem;
    }

    .mobile-nav-close {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .mobile-nav-drawer-body {
        padding: 0.9rem 1rem;
    }

    .mobile-nav-drawer-footer {
        padding: 0.9rem 1rem 1rem;
    }

    .hero-title {
        font-size: 1.45rem;
        line-height: 1.15;
    }

    .hero-banner {
        padding: 1.2rem 0.85rem 1rem;
        border-radius: 18px;
    }

    .hero-subtitle {
        font-size: 0.84rem;
        line-height: 1.65;
        margin-bottom: 0.85rem;
    }

    .hero-search-wrapper .search-input,
    .search-wrapper .search-input {
        min-height: 40px;
        padding: 0.72rem 0.9rem 0.72rem 2.35rem;
        font-size: 0.8rem;
    }

    .hero-search-wrapper .search-icon,
    .search-wrapper .search-icon {
        left: 0.9rem;
        font-size: 0.86rem;
    }

    .stats-grid {
        gap: 0.7rem;
        margin-top: 0.95rem;
    }

    .stat-number {
        font-size: 1.15rem;
    }

    .stat-label {
        font-size: 0.58rem;
        letter-spacing: 0.07em;
    }

    .section-header {
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .payment-shell {
        max-width: 100%;
    }

    .payment-qris-frame {
        padding: 0.35rem;
    }

    .payment-card {
        padding: 0.9rem;
        border-radius: 16px;
    }

    .payment-card-content {
        gap: 0.85rem;
    }

    .payment-page-title {
        font-size: 1.28rem;
    }

    .payment-page-price {
        font-size: 0.92rem;
    }

    .payment-meta-row strong {
        font-size: 0.84rem;
        word-break: break-word;
    }

    .payment-benefits-list {
        gap: 0.45rem;
        font-size: 0.82rem;
    }

    .membership-title {
        font-size: 1.38rem;
    }

    .membership-card {
        padding: 1rem;
    }

    .membership-card .card-description {
        font-size: 0.8rem;
    }

    .membership-plan-button {
        min-height: 42px;
        font-size: 0.78rem;
    }

    .affiliate-page::before {
        inset: 1rem 0 auto;
    }

    .market-nav {
        padding: 0.6rem;
    }

    body.mobile-nav-open .market-nav-toggle {
        top: 1.45rem;
        right: 1.45rem;
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .affiliate-showcase-shell {
        padding: 0.72rem 0.68rem 0.9rem;
        border-radius: 0;
    }

    .nav-links {
        width: 100%;
        max-width: 100%;
        min-height: calc(100dvh - 1.2rem);
        max-height: calc(100dvh - 1.2rem);
        padding: 1rem;
        border-radius: 22px;
        gap: 0.75rem;
    }

    .nav-item {
        min-height: 48px;
        padding: 0.9rem 1rem;
        font-size: 0.92rem;
    }

    .mega-mobile-parent {
        font-size: 0.94rem;
    }

    .mega-menu {
        padding: 0.85rem;
    }

    .mega-menu-column {
        padding: 0.85rem 0.9rem;
    }

    .mega-link {
        font-size: 0.84rem;
    }

    .affiliate-mobile-market-shell {
        gap: 0.6rem;
        margin-bottom: 0.5rem;
    }

    .affiliate-mobile-searchbar {
        padding: 0.72rem 0.82rem;
        border-radius: 14px;
        top: 3.75rem;
    }

    .affiliate-mobile-searchbar input {
        font-size: 0.82rem;
    }

    .affiliate-mobile-promo-banner {
        padding: 0.85rem;
        border-radius: 16px;
    }

    .affiliate-mobile-promo-copy h2 {
        font-size: 0.96rem;
    }

    .affiliate-mobile-promo-copy p {
        font-size: 0.72rem;
    }

    .affiliate-mobile-action-card {
        padding: 0.8rem 0.85rem;
        border-radius: 15px;
        gap: 0.65rem;
    }

    .affiliate-mobile-action-copy strong {
        font-size: 0.8rem;
    }

    .affiliate-mobile-action-copy span {
        font-size: 0.7rem;
    }

    .affiliate-mobile-action-buttons {
        gap: 0.35rem;
    }

    .affiliate-mobile-action-button {
        min-height: 34px;
        padding: 0.48rem 0.68rem;
        font-size: 0.7rem;
    }

    .affiliate-mobile-category-strip {
        gap: 0.55rem;
    }

    .affiliate-mobile-category-item {
        min-width: 60px;
    }

    .affiliate-mobile-category-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .affiliate-mobile-category-label {
        font-size: 0.64rem;
        max-width: 60px;
    }

    .affiliate-list-header {
        margin-top: 0.2rem;
        margin-bottom: 0.5rem;
        gap: 0.55rem;
    }

    .affiliate-list-header h2 {
        font-size: 0.98rem;
    }

    .affiliate-list-header p {
        font-size: 0.7rem;
    }

    .affiliate-list-arrows {
        gap: 0.35rem;
    }

    .affiliate-list-arrows button {
        width: 32px;
        height: 32px;
    }

    .affiliate-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resource-card {
        grid-template-columns: 96px minmax(0, 1fr);
        min-height: 96px;
    }

    .card-thumbnail-container {
        min-height: 96px;
    }

    .affiliate-list-card {
        min-height: 100%;
    }

    .affiliate-list-image {
        min-height: 0;
    }

    .affiliate-detail-shell {
        padding: 1rem;
    }

    .affiliate-filter-drawer-panel {
        right: 0.75rem;
        left: 0.75rem;
        bottom: 0.75rem;
        width: auto;
        max-height: min(82vh, 760px);
    }
}
