/* ==========================================================================
   XANITAX – Ultra‑Enhanced Master Stylesheet
   assets/css/style.css
   ==========================================================================
   Covers the complete dark‑luxury design system for all public and admin pages.
   ========================================================================== */

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul, ol {
    list-style: none;
}

/* ==========================================================================
   DESIGN TOKENS (Custom Properties)
   ========================================================================== */
:root {
    /* Backgrounds */
    --bg-deep: #050505;
    --bg-card: #111111;
    --bg-elevated: #1a1a1a;

    /* Gold palette */
    --gold: #d4af37;
    --gold-light: #f5e7c8;
    --gold-dark: #b8941f;

    /* Crimson accents */
    --crimson: #8b0000;
    --crimson-glow: #ff1a1a;

    /* Text */
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --text-muted: #6b6b6b;

    /* Glassmorphism */
    --glass-bg: rgba(20, 20, 20, 0.65);
    --glass-border: rgba(212, 175, 55, 0.18);
    --glass-border-hover: rgba(212, 175, 55, 0.4);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 55, 0.1);
    --glass-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.25);

    /* Radii */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-slow: 0.5s ease;

    /* Spacing */
    --section-padding: 6rem 2rem;
    --section-padding-mobile: 4rem 1.2rem;

    /* Sidebar (admin) */
    --sidebar-width: 260px;
}

/* ==========================================================================
   KEYFRAMES
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pulseGold {
    0%, 100% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 0 30px rgba(212, 175, 55, 0.6); }
}
@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
}
.glass-sm { border-radius: var(--radius-sm); }
.glass-lg { border-radius: var(--radius-lg); }

.text-gold { color: var(--gold); }
.text-crimson { color: var(--crimson); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
.hidden { display: none !important; }
.animate-fadeInUp { animation: fadeInUp 0.8s ease both; }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
.display-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 10vw, 5.5rem);
    background: linear-gradient(to right, var(--gold), var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.05;
    letter-spacing: 2px;
}
.section-heading {
    font-size: 2.5rem;
    text-align: center;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.section-subheading {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}
.divider {
    width: 60px;
    height: 4px;
    background: var(--gold);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-size: 0.9rem;
    gap: 0.5rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--bg-deep);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
    animation: pulseGold 2s infinite;
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}
.btn-outline:hover {
    background: var(--gold);
    color: var(--bg-deep);
    border-color: var(--gold);
}
.btn-crimson {
    background: var(--crimson);
    color: white;
    border: 1px solid var(--crimson);
}
.btn-crimson:hover {
    background: #a00000;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.6);
}
.btn-telegram {
    background: #0088cc;
    color: white;
}
.btn-telegram:hover { background: #006699; }
.btn-signal {
    background: #3A76F0;
    color: white;
}
.btn-signal:hover { background: #2a5fcf; }
.btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}
.btn-sm {
    padding: 0.4rem 1.1rem;
    font-size: 0.8rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo svg {
    height: 42px;
    width: auto;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0a0a0a;
    font-size: 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        padding: 2rem;
        gap: 1.5rem;
        align-items: flex-start;
    }
    .nav-links.active { display: flex; }
    .mobile-menu-toggle { display: block; }
    .site-header { padding: 1rem 1.5rem; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 6rem 2rem 4rem;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, #1a0f0f 0%, #050505 70%);
    z-index: -2;
}

.hero-particles-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    opacity: 0.4;
}

.hero-glow {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(80px);
    z-index: -1;
    animation: spinSlow 30s linear infinite;
}

.hero-content {
    max-width: 850px;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero-tagline {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   SECTIONS & GRID
   ========================================================================== */
.section {
    padding: var(--section-padding);
}

@media (max-width: 600px) {
    .section { padding: var(--section-padding-mobile); }
}

/* ==========================================================================
   CARDS (Sets, Testimonials, Pricing, Dashboard)
   ========================================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.25);
}

.card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s, filter 0.5s;
}

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

/* Blurred preview variant */
.card-blur .card-img {
    filter: blur(15px) brightness(0.7);
}
.card-blur:hover .card-img {
    filter: blur(8px) brightness(0.9);
}

.card-lock-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 50%;
    padding: 0.5rem;
    color: var(--gold);
    font-size: 1.3rem;
    backdrop-filter: blur(5px);
}

.card-body {
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    backdrop-filter: blur(10px);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.card-title {
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.card-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.card-teaser {
    color: var(--crimson);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Tier badge (used on cards and set page) */
.tier-badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.tier-badge.silver { background: #c0c0c0; color: #111; }
.tier-badge.gold { background: linear-gradient(135deg, #d4af37, #b8941f); color: #111; }
.tier-badge.vip { background: linear-gradient(135deg, #c71585, #ff1493); color: white; }

/* Buy buttons container */
.buy-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

/* ==========================================================================
   DASHBOARD (logged‑in user)
   ========================================================================== */
.dashboard-content {
    padding: 6rem 2rem 4rem;
    max-width: 1300px;
    margin: 0 auto;
}

.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
}

.sets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Dashboard tabs */
.tab-button {
    padding: 0.8rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin: 0 0.3rem;
}
.tab-button.active {
    background: var(--gold);
    color: #0a0a0a;
    border-color: var(--gold);
}
.tab-button.disabled {
    opacity: 0.5;
    pointer-events: none;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

.upgrade-banner {
    background: var(--glass-bg);
    border: 1px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* ==========================================================================
   PRICING TABLE
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    color: white;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
}

.pricing-features {
    list-style: none;
    margin: 1.5rem 0;
    flex: 1;
    text-align: left;
    padding: 0 1rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Tier‑specific backgrounds */
.tier-bg-silver {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #2a2a2a 100%);
    border: 1px solid #888;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.2);
}
.tier-bg-silver:hover {
    border-color: #aaa;
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.4);
    transform: translateY(-5px);
}

.tier-bg-gold {
    background: linear-gradient(135deg, #1c1600 0%, #2a1f00 50%, #1c1600 100%);
    border: 1px solid var(--gold);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
}
.tier-bg-gold::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: spinSlow 20s linear infinite;
}
.tier-bg-gold:hover {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
    transform: scale(1.05);
}

.tier-bg-vip {
    background: linear-gradient(135deg, #1a000a 0%, #2d0015 50%, #1a000a 100%);
    border: 1px solid #c71585;
    box-shadow: 0 0 30px rgba(199, 21, 133, 0.4);
    position: relative;
    overflow: hidden;
}
.tier-bg-vip::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(199, 21, 133, 0.15) 0%, transparent 70%);
    animation: spinSlow 15s linear infinite reverse;
}
.tier-bg-vip:hover {
    box-shadow: 0 0 50px rgba(199, 21, 133, 0.7);
    transform: scale(1.05);
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial {
    background: var(--bg-elevated);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.testimonial:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 2px solid var(--gold);
}

.stars {
    color: var(--gold);
    letter-spacing: 2px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1.5rem 0;
    cursor: pointer;
    transition: 0.2s;
}

.faq-question {
    font-weight: 600;
    font-size: 1.15rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}

.faq-toggle {
    font-size: 1.5rem;
    transition: 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin 0.4s;
    color: var(--text-secondary);
    margin-top: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    margin-top: 1rem;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

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

.form-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: var(--bg-deep);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

textarea.form-input {
    border-radius: var(--radius-md);
    resize: vertical;
    min-height: 120px;
}

.password-toggle {
    position: absolute;
    right: 1.2rem;
    top: 2.7rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.2rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.2rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    accent-color: var(--gold);
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
}

.forgot-link {
    color: var(--gold);
    text-decoration: underline;
}

.forgot-link:hover {
    color: var(--gold-light);
}

.alert {
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.alert-error {
    background: rgba(139, 0, 0, 0.3);
    border: 1px solid var(--crimson);
    color: #f8d7da;
}

.alert-success {
    background: rgba(39, 174, 96, 0.2);
    border: 1px solid #27ae60;
    color: #2ecc71;
}

.alert-dismissible {
    position: relative;
}

.alert-dismissible .close-btn {
    margin-left: 1rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    float: right;
}

/* ==========================================================================
   MODALS (PIN, age gate)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-dialog {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gold);
    max-width: 420px;
    width: 90%;
    text-align: center;
    animation: modalPop 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.2);
}

.modal-dialog h2, .modal-dialog h3 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.modal-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: var(--bg-deep);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: white;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 4px;
    outline: none;
    margin-bottom: 1.5rem;
}

.modal-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Age gate specific */
.age-gate-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.age-gate-dialog {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gold);
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.age-gate-dialog h2 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.age-gate-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* ==========================================================================
   CATEGORIES & PILLS
   ========================================================================== */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
}

.category-pill {
    padding: 0.9rem 2.2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--gold);
    font-weight: 600;
    transition: 0.3s;
    cursor: default;
    font-size: 0.95rem;
}

.category-pill:hover {
    background: var(--gold);
    color: #050505;
    border-color: var(--gold);
    transform: scale(1.05);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--bg-card);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
}

.social-icons svg {
    width: 22px;
    height: 22px;
    fill: var(--text-secondary);
    transition: 0.3s;
}

.social-icons a:hover svg {
    fill: var(--gold);
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* ==========================================================================
   PASSWORD STRENGTH METER
   ========================================================================== */
.strength-meter {
    height: 5px;
    border-radius: 5px;
    margin-top: 0.5rem;
    background: #333;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s, background 0.3s;
}

/* ==========================================================================
   HONEYPOT (hidden)
   ========================================================================== */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* ==========================================================================
   PARTICLES CANVAS
   ========================================================================== */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

/* ==========================================================================
   SPLIT LAYOUT (login/register/contact)
   ========================================================================== */
.split-wrapper {
    display: flex;
    min-height: 100vh;
    padding-top: 70px;
}

.split-decoration {
    flex: 1;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800"><rect width="800" height="800" fill="%23111111"/><circle cx="400" cy="400" r="300" fill="none" stroke="%23d4af37" stroke-opacity="0.1" stroke-width="2"/></svg>') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.split-decoration::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.split-decoration-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

.split-decoration-content h2 {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.split-decoration-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 400px;
}

.split-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(ellipse at center, #1a0f0f 0%, #050505 70%);
}

.form-container {
    width: 100%;
    max-width: 440px;
    padding: 3rem 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.1);
    animation: fadeInUp 0.8s ease;
}

@media (max-width: 768px) {
    .split-wrapper { flex-direction: column; }
    .split-decoration { min-height: 30vh; padding: 2rem 1rem; }
    .split-decoration-content h2 { font-size: 2.2rem; }
    .form-container { padding: 2rem 1.5rem; }
}

/* ==========================================================================
   ADMIN PANEL SPECIFIC
   ========================================================================== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-card);
    border-right: 1px solid var(--glass-border);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.admin-sidebar .sidebar-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2.5rem;
    text-decoration: none;
    display: block;
}

.admin-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.2rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    margin-bottom: 0.4rem;
    font-weight: 500;
    text-decoration: none;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold);
    box-shadow: inset 0 0 0 1px var(--gold);
}

.admin-sidebar .sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.admin-sidebar .user-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.admin-sidebar .user-info .name {
    color: var(--gold);
    font-weight: 600;
}

.admin-sidebar .btn-logout {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.6rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: 0.3s;
    text-decoration: none;
    font-size: 0.85rem;
}

.admin-sidebar .btn-logout:hover {
    background: var(--crimson);
    border-color: var(--crimson);
    color: white;
}

.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    overflow-x: auto;
}

/* Mobile header & sidebar toggle */
.mobile-header {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1100;
    align-items: center;
    padding: 0 1.5rem;
}

.mobile-header .sidebar-toggle {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.8rem;
    cursor: pointer;
}

.mobile-header .mobile-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--gold);
    margin-left: 1rem;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
    }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main {
        margin-left: 0;
        padding: 1rem;
        padding-top: 80px;
    }
    .mobile-header { display: flex; }
    .sidebar-overlay.active { display: block; }
}

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

.admin-header h1 {
    color: var(--gold);
    font-size: 2.2rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table-section {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--glass-shadow);
}

.table-section h3 {
    padding: 1.2rem 1.5rem;
    color: var(--gold);
    font-size: 1.4rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-primary);
}

.admin-table th {
    text-align: left;
    padding: 1rem 1.5rem;
    background: var(--bg-elevated);
    color: var(--gold);
    font-weight: 600;
    border-bottom: 2px solid var(--gold);
    white-space: nowrap;
}

.admin-table td {
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: middle;
}

.admin-table tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

.admin-table .preview-thumb {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    filter: blur(4px) brightness(0.8);
}

.pin-badge {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.2rem 0.7rem;
    border-radius: 4px;
    letter-spacing: 1px;
}

.url-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-muted);
    display: inline-block;
}

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

.upload-area {
    background: var(--bg-elevated);
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.upload-area:hover {
    border-color: var(--gold);
}

.progress-container {
    margin-top: 1.5rem;
    background: var(--bg-deep);
    border-radius: 50px;
    overflow: hidden;
    height: 12px;
    border: 1px solid var(--glass-border);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #d4af37, #b8941f);
    transition: width 0.2s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-align: right;
}

.delete-card {
    border: 1px solid var(--crimson);
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.2);
}

.related-counts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.related-card {
    background: rgba(139, 0, 0, 0.1);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
}

.related-card .count {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--crimson);
}

.related-card .count-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   PWA TOAST / OFFLINE BANNER
   ========================================================================== */
.pwa-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--gold);
    border-radius: var(--radius-full);
    padding: 0.8rem 1.8rem;
    color: var(--text-primary);
    font-weight: 500;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 0.5s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.2);
}

.offline-banner {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background: var(--crimson);
    color: white;
    text-align: center;
    padding: 0.6rem;
    z-index: 10000;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ==========================================================================
   RESPONSIVE UTILITIES
   ========================================================================== */
@media (max-width: 600px) {
    .section-heading { font-size: 2rem; }
    .card-grid, .pricing-grid, .testimonial-grid { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: scale(1); }
}