/* 
   VYRALIVE PREMIUM - SOFT GLAM DREAMCORE
   Aesthetic: Feminine, Luxurious, Professional, Premium Pinky
   
   A cohesive design system — NO dark theme remnants.
*/

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

:root {
    /* ─── Soft Glam Palette ─── */
    --bg-deep: #fef2f6;
    --bg-surface: #ffffff;
    --bg-elevated: #fff9fb;
    --bg-card: #ffffff;

    --accent-glow: #e91e8c;
    --accent-vibrant: #d6196e;
    --accent-soft: #e87aab;
    --accent-ultra-soft: #fce4ee;
    --accent-gold: #c9952d;

    --text-primary: #1a0e14;
    --text-secondary: #4a2d3c;
    --text-muted: #7d5a6a;
    --text-on-accent: #ffffff;

    /* ─── Typography ─── */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* ─── Spacing ─── */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;
    --section-gap: clamp(60px, 10vh, 120px);

    /* ─── Effects ─── */
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(233, 30, 140, 0.08);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 8px 30px rgba(233, 30, 140, 0.12);
    --shadow-glow-lg: 0 16px 50px rgba(233, 30, 140, 0.18);

    /* ─── Radius ─── */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 100px;
    --radius-circle: 50%;

    /* ─── Transition ─── */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s var(--ease-out-expo);
}

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

body.premium-theme {
    background: linear-gradient(145deg, #271146 0%, #0d0417 100%);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ─── Typography ─── */
.premium-theme h1,
.premium-theme h2,
.premium-theme h3,
.premium-theme .heading-display {
    font-family: var(--font-display);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* ─── Atmospheric Background ─── */
.noise-overlay {
    position: fixed;
    inset: 0;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: multiply;
}

.glow-mesh {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(189, 53, 126, 0.45) 0%, transparent 45%),
        radial-gradient(circle at 15% 75%, rgba(113, 39, 142, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(68, 26, 117, 0.3) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* ─── Layout ─── */
.container-premium {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
}

/* ─── Header ─── */
.header-premium {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(254, 242, 246, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(233, 30, 140, 0.06);
    transition: all 0.5s var(--ease-out-expo);
}

.header-premium.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(233, 30, 140, 0.1);
    box-shadow: var(--shadow-sm);
}

.logo-premium {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.logo-premium span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-glow), var(--accent-vibrant));
    color: #fff;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(233, 30, 140, 0.25);
}

/* ─── Nav Button ─── */
.btn-nav-signup {
    background: linear-gradient(135deg, var(--accent-glow), var(--accent-vibrant)) !important;
    color: var(--text-on-accent) !important;
    padding: 10px 24px !important;
    border-radius: var(--radius-pill) !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    border: none !important;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(233, 30, 140, 0.2);
    transition: all var(--transition-smooth);
    font-family: var(--font-body);
}

.btn-nav-signup:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(233, 30, 140, 0.3);
}

/* ─── Nav Links Layout ─── */
.nav-links-premium {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links-premium a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body);
    transition: color 0.3s, opacity 0.3s;
    opacity: 0.85;
}

.nav-links-premium a:hover {
    color: var(--accent-glow);
    opacity: 1;
}

/* Logo Symbol - image icon */
.logo-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    overflow: hidden;
}

/* When logo-symbol is an img element */
img.logo-symbol,
img.logo-img {
    background: none;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(233, 30, 140, 0.2);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ─── Logout Button ─── */
.btn-logout-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.82rem;
    border: 1.5px solid var(--accent-soft);
    background: transparent;
    color: var(--text-secondary) !important;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
    text-decoration: none !important;
}

.btn-logout-nav:hover {
    background: #fff0f0;
    color: #c62828 !important;
    border-color: #ef9a9a;
    opacity: 1 !important;
}

/* ─── Signup Section Layout ─── */
.signup-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.signup-info {
    position: sticky;
    top: 120px;
}

.signup-forms-wrapper {
    max-width: 480px;
}

/* ─── Monetize Section Fixes ─── */
.monetize-section {
    padding: var(--section-gap) 0;
}

.monetize-section .monetize-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
    display: flex;
    justify-content: center;
}

/* ─── Responsive: Nav + Signup ─── */
@media (max-width: 768px) {
    .nav-links-premium {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: var(--shadow-md);
    }

    .nav-links-premium.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .signup-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .signup-info {
        position: static;
        text-align: center;
    }

    .signup-forms-wrapper {
        max-width: 100%;
    }
}

/* ────────────────────────────────────────── */
/* PROFILE PAGE                               */
/* ────────────────────────────────────────── */

.profile-header-premium {
    margin-bottom: 0;
    background: transparent;
    position: relative;
}

/* Banner */
.profile-banner-premium {
    width: 100%;
    height: 220px;
    background-color: var(--accent-ultra-soft);
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    overflow: hidden;
}

.profile-banner-premium .banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(254, 242, 246, 0) 40%,
            rgba(254, 242, 246, 0.95) 100%);
    pointer-events: none;
}

/* Profile Info Card */
.profile-info-premium {
    margin-top: -100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 5;
}

/* Avatar */
.profile-avatar-wrapper {
    width: 160px;
    height: 160px;
    border-radius: var(--radius-circle);
    border: 6px solid var(--bg-surface);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    position: relative;
    background: var(--bg-surface);
}

.profile-avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Profile Meta */
.profile-meta-premium {
    margin-top: var(--space-lg);
}

.profile-meta-premium h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-style: normal;
}

.profile-handle {
    font-size: 1.05rem;
    color: var(--accent-glow);
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Bio */
.profile-bio {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto;
}

/* Action Buttons */
.profile-actions-premium {
    margin-top: var(--space-xl);
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Premium Buttons ─── */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent-glow), var(--accent-vibrant));
    color: var(--text-on-accent);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.btn-premium:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-glow-lg);
}

.btn-premium.btn-outline {
    background: var(--bg-surface);
    color: var(--accent-glow);
    border: 2px solid var(--accent-glow);
    box-shadow: var(--shadow-sm);
}

.btn-premium.btn-outline:hover {
    background: rgba(233, 30, 140, 0.06);
    border-color: var(--accent-vibrant);
    box-shadow: var(--shadow-glow);
    color: var(--accent-vibrant);
}

/* ─── Tabs ─── */
.tabs-premium {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: var(--space-md) 0;
    margin-bottom: var(--space-xl);
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(233, 30, 140, 0.05);
}

.tab-premium {
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
    letter-spacing: 0.01em;
}

.tab-premium:hover {
    color: var(--text-secondary);
    background: var(--accent-ultra-soft);
}

.tab-premium.active {
    color: var(--accent-glow);
    background: var(--accent-ultra-soft);
}

.tab-premium.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--accent-glow);
    border-radius: 10px;
}

.tab-content {
    display: none;
    animation: sg-fade-in 0.5s var(--ease-out-expo);
}

.tab-content.active {
    display: block;
}

@keyframes sg-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Post Cards ─── */
.card-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.post-card-premium {
    background: var(--bg-card);
    border: 1px solid rgba(233, 30, 140, 0.06);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease-out-expo);
}

.post-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(233, 30, 140, 0.12);
}

.post-content-premium {
    padding: var(--space-lg) var(--space-lg) var(--space-xl);
}

.post-title-premium {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    line-height: 1.3;
}

.post-meta-premium {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    display: block;
}

.post-body-premium {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.95rem;
}

.post-media-premium {
    margin-top: var(--space-md);
}

.post-media-premium img,
.post-media-premium video {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid rgba(233, 30, 140, 0.06);
}

/* ─── Tags ─── */
.tag-premium {
    display: inline-block;
    padding: 5px 14px;
    background: var(--accent-ultra-soft);
    border: 1px solid rgba(233, 30, 140, 0.1);
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--accent-glow);
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.tag-premium.post-tag {
    background: var(--accent-ultra-soft);
    color: var(--accent-glow);
}

/* ─── Edit Overlays ─── */
.edit-overlay-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--accent-soft);
    color: var(--accent-glow);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.edit-overlay-btn:hover {
    background: var(--accent-glow);
    color: #fff;
    transform: scale(1.1);
    border-color: var(--accent-glow);
}

.banner-edit-btn {
    top: 20px;
    right: 20px;
}

.avatar-edit-btn {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.edit-bio-btn {
    background: none;
    border: none;
    color: var(--accent-glow);
    cursor: pointer;
    margin-left: 10px;
    font-size: 0.95rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.edit-bio-btn:hover {
    opacity: 1;
}

/* ─── Modals ─── */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 14, 20, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    width: 92%;
    max-width: 460px;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    z-index: 1;
}

.modal-content.create-post-wide {
    max-width: 900px;
    padding: 0;
    display: flex;
    min-height: 500px;
}

.close-modal {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--accent-ultra-soft);
    border: 1px solid var(--accent-soft);
    color: var(--text-secondary);
    font-size: 1.3rem;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.close-modal:hover {
    background: var(--accent-glow);
    color: #fff;
    border-color: var(--accent-glow);
}

/* ─── Sidebar (Create Post) ─── */
.modal-sidebar {
    width: 72px;
    background: var(--bg-deep);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-lg) 0;
    gap: var(--space-lg);
}

.sidebar-item {
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
}

.sidebar-item:hover,
.sidebar-item.active {
    color: var(--accent-glow);
    background: var(--accent-ultra-soft);
}

.sidebar-item.active::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--accent-glow);
    border-radius: 4px 0 0 4px;
}

.modal-main-area {
    flex: 1;
    padding: var(--space-xl);
    max-height: 85vh;
    overflow-y: auto;
}

/* ─── Auth / Form Styles ─── */
.auth-tabs {
    display: flex;
    background: var(--bg-deep);
    padding: 4px;
    border-radius: var(--radius-pill);
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(233, 30, 140, 0.06);
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-pill);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.auth-tab.active {
    background: var(--bg-surface);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: var(--space-md);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-deep);
    border: 1.5px solid rgba(233, 30, 140, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-glow);
    box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* Primary form button matching the Glam theme */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-glow), var(--accent-vibrant));
    color: var(--text-on-accent);
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: all var(--transition-smooth);
    font-family: var(--font-body);
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow-lg);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-surface);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.85rem;
    border: 1.5px solid var(--accent-soft);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    font-family: var(--font-body);
}

.btn-login:hover {
    border-color: var(--accent-glow);
    color: var(--accent-glow);
    box-shadow: var(--shadow-glow);
}

.btn-subscribe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
    color: #fff;
}

/* ─── OTP Inputs ─── */
.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: var(--space-lg) 0;
}

.otp-input {
    width: 48px;
    height: 56px;
    background: var(--bg-deep);
    border: 1.5px solid rgba(233, 30, 140, 0.12);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s;
}

.otp-input:focus {
    border-color: var(--accent-glow);
    box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.08);
}

/* ─── Toggle ─── */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-md);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.premium-theme .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: var(--accent-soft);
    transition: 0.4s;
    border-radius: 34px;
}

.premium-theme .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.premium-theme input:checked+.slider {
    background-color: var(--accent-glow);
}

.premium-theme input:checked+.slider:before {
    transform: translateX(22px);
}

/* ─── Post Management Buttons ─── */
.post-mgmt-actions {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    display: flex;
    gap: var(--space-sm);
    z-index: 5;
}

.mgmt-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(233, 30, 140, 0.1);
    background: var(--bg-surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.mgmt-btn:hover {
    color: var(--accent-glow);
    background: var(--accent-ultra-soft);
    border-color: var(--accent-soft);
}

.mgmt-btn.delete:hover {
    background: #fff0f0;
    color: #e53e3e;
    border-color: #fed7d7;
}

/* ─── Locked Posts Overlay ─── */
.locked-overlay-premium {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: var(--radius-xl);
}

.locked-card-premium {
    background: var(--bg-surface);
    border: 1px solid var(--accent-soft);
    padding: var(--space-xl) var(--space-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-glow-lg);
    max-width: 320px;
}

.locked-card-premium i {
    font-size: 2.5rem;
    color: var(--accent-glow);
    margin-bottom: var(--space-md);
}

.locked-card-premium h4 {
    font-family: var(--font-display);
    margin-bottom: var(--space-sm);
    font-size: 1.2rem;
}

.locked-card-premium p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-size: 0.95rem;
}

/* ─── Skeleton Loader ─── */
.skeleton {
    background: linear-gradient(90deg, var(--accent-ultra-soft) 25%, #fff 50%, var(--accent-ultra-soft) 75%);
    background-size: 200% 100%;
    animation: sg-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes sg-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ─── Utilities ─── */
.hidden {
    display: none !important;
}

.form-message {
    font-size: 0.85rem;
    font-weight: 500;
}

/* ─── Not Found ─── */
#not-found h1 {
    font-family: var(--font-display);
    color: var(--accent-soft);
    font-size: 5rem;
    font-weight: 800;
}

#not-found h2 {
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

#not-found p {
    color: var(--text-secondary);
}

/* ────────────────────────────────────────── */
/* HERO SECTION (Landing Page)                */
/* ────────────────────────────────────────── */

.hero-premium {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    margin-bottom: var(--section-gap);
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 40px;
}

.hero-main-title {
    grid-column: 1 / 13;
    z-index: 2;
}

.hero-main-title h1 {
    font-size: clamp(48px, 9vw, 110px);
    margin-bottom: 0.1em;
    color: var(--text-primary);
}

.hero-abstract-content {
    grid-column: 1 / 6;
    align-self: center;
}

.hero-subtext {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    margin: 20px 0 40px;
    line-height: 1.6;
}

.hero-visual-element {
    grid-column: 6 / 13;
    position: relative;
    display: flex;
    justify-content: center;
}

.visual-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(249, 198, 216, 0.3) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
}

.hero-visual-element img {
    width: 85%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glow-lg);
    animation: sg-float 10s ease-in-out infinite;
}

/* ─── Sections ─── */
.section-premium {
    padding: var(--section-gap) 0;
}

.section-title-premium {
    font-size: clamp(32px, 6vw, 80px);
    margin-bottom: 48px;
    text-align: center;
}

/* ─── Cards ─── */
.card-premium {
    background: var(--bg-card);
    border: 1px solid rgba(233, 30, 140, 0.06);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: var(--shadow-sm);
}

.card-premium:hover {
    border-color: var(--accent-soft);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* ─── HUD (Video Call) ─── */
.video-interface-premium {
    height: 100vh;
    background: radial-gradient(circle at center, #2d1a22, #0a0506);
    position: relative;
    overflow: hidden;
    color: var(--accent-glow);
    font-family: var(--font-body);
}

.hud-control-btn {
    width: 60px;
    height: 60px;
    border: 2px solid var(--accent-glow);
    background: rgba(233, 30, 140, 0.06);
    color: var(--accent-glow);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s;
    cursor: pointer;
}

.hud-control-btn:hover {
    background: rgba(233, 30, 140, 0.15);
    box-shadow: var(--shadow-glow);
}

/* ─── Animations ─── */
@keyframes sg-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes sg-pulse-btn {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(233, 30, 140, 0.3);
    }

    50% {
        transform: scale(1.04);
        box-shadow: 0 0 0 8px rgba(233, 30, 140, 0);
    }
}

@keyframes sg-pulse-border {

    0%,
    100% {
        border-color: rgba(233, 30, 140, 0.15);
    }

    50% {
        border-color: rgba(233, 30, 140, 0.35);
    }
}

/* ─── Responsive ─── */
@media (max-width: 992px) {
    .hero-main-title h1 {
        font-size: 14vw;
    }

    .editorial-grid {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 18px;
        --space-xl: 28px;
    }

    .container-premium {
        padding: 0 14px;
    }

    /* Header */
    .header-premium {
        padding: 12px 0;
    }

    .logo-premium {
        font-size: 1.1rem;
    }

    .logo-premium span {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .btn-nav-signup {
        padding: 8px 16px !important;
        font-size: 0.78rem !important;
    }

    /* Profile Banner */
    .profile-banner-premium {
        height: 180px;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    /* Profile Info */
    .profile-info-premium {
        margin-top: -60px;
    }

    .profile-avatar-wrapper {
        width: 110px;
        height: 110px;
        border-width: 4px;
    }

    .profile-meta-premium {
        margin-top: var(--space-md);
    }

    .profile-meta-premium h1 {
        font-size: 1.5rem;
    }

    .profile-handle {
        font-size: 0.88rem;
    }

    .profile-bio {
        font-size: 0.9rem;
        line-height: 1.65;
        padding: 0 8px;
    }

    /* Action Buttons — stack vertically */
    .profile-actions-premium {
        flex-direction: column;
        align-items: stretch;
        margin-top: var(--space-lg);
        gap: 10px;
        padding: 0 16px;
    }

    .btn-premium {
        width: 100%;
        max-width: none;
        padding: 14px 24px;
        font-size: 0.88rem;
        justify-content: center;
    }

    /* Tabs */
    .tabs-premium {
        gap: 2px;
        padding: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-radius: var(--radius-md);
        margin-bottom: var(--space-lg);
    }

    .tabs-premium::-webkit-scrollbar {
        display: none;
    }

    .tab-premium {
        padding: 10px 14px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    /* Post Grid — single column */
    .card-grid-premium {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .post-content-premium {
        padding: var(--space-md);
    }

    .post-title-premium {
        font-size: 1.1rem;
    }

    /* Modals — bottom sheet on mobile */
    .modal-content {
        width: 100% !important;
        max-width: none !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
        padding: var(--space-lg) !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
        animation: slideUp 0.3s ease forwards !important;
    }

    .modal-content.create-post-wide {
        flex-direction: column;
    }

    .modal-sidebar {
        flex-direction: row;
        width: 100%;
        padding: var(--space-sm) var(--space-md);
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .modal-content h2 {
        font-size: 1.25rem;
    }

    /* Edit Buttons */
    .edit-overlay-btn {
        width: 34px;
        height: 34px;
    }

    .banner-edit-btn {
        top: 12px;
        right: 12px;
    }

    /* Locked post */
    .locked-card-premium {
        padding: var(--space-lg);
        max-width: 260px;
    }

    .locked-card-premium i {
        font-size: 2rem;
    }

    .locked-card-premium h4 {
        font-size: 1rem;
    }

    .locked-card-premium p {
        font-size: 0.85rem;
    }

    /* OTP inputs */
    .otp-input {
        width: 42px;
        height: 48px;
        font-size: 1.2rem;
    }

    /* Video Call HUD */
    .hud-control-btn {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
}

/* Extra-small screens */
@media (max-width: 480px) {
    .container-premium {
        padding: 0 10px;
    }

    /* Banner */
    .profile-banner-premium {
        height: 140px;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }

    .profile-info-premium {
        margin-top: -50px;
    }

    .profile-avatar-wrapper {
        width: 90px;
        height: 90px;
        border-width: 3px;
    }

    .profile-meta-premium h1 {
        font-size: 1.3rem;
    }

    .profile-handle {
        font-size: 0.82rem;
    }

    .profile-bio {
        font-size: 0.85rem;
    }

    .profile-actions-premium {
        padding: 0 8px;
    }

    .btn-premium {
        padding: 12px 20px;
        font-size: 0.84rem;
    }

    .tab-premium {
        padding: 8px 12px;
        font-size: 0.76rem;
    }

    .modal-content {
        padding: var(--space-md) !important;
        max-height: 90vh !important;
    }

    .modal-content h2 {
        font-size: 1.1rem;
    }

    /* Form elements */
    .form-group input,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 0.88rem;
    }

    .btn-primary {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
}

/* Slide-up animation for mobile bottom sheets */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}