/* ===================================
   RESET & ROOT VARIABLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --primary: #ff0066;
    --primary-dark: #cc0052;
    --primary-light: #ff3385;
    --secondary: #6366f1;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ff0066 0%, #6366f1 100%);
    --gradient-secondary: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(255, 0, 102, 0.3) 0%, transparent 70%);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-dark: #18181b;
    
    /* Background Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --bg-modal: rgba(10, 10, 15, 0.95);
    --bg-overlay: rgba(0, 0, 0, 0.8);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(255, 0, 102, 0.4);
    --shadow-glow-strong: 0 0 60px rgba(255, 0, 102, 0.6);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-index Layers */
    --z-age-warning: 10000;
    --z-modal: 9000;
    --z-chat: 8000;
    --z-navbar: 1000;
    --z-particles: -1;
	--chat-font: 'Inter', sans-serif;
}

/* ===================================
   BASE STYLES
   =================================== */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--primary);
    color: white;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ===================================
   PARTICLE CANVAS BACKGROUND
   =================================== */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* or var(--z-particles); just ensure it's below navbar/chat */
  pointer-events: none;
  opacity: 0.9;
}

/* ===================================
   USER ACCOUNT SECTION
   =================================== */
.nav-user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-account {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 600;
}

.btn-account:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-full);
    color: var(--error);
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 600;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Account Modal */
.account-info {
    text-align: center;
}

.account-avatar {
    margin-bottom: 2rem;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.account-form {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.stat-box {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ===================================
   AGE WARNING
   =================================== */
.age-warning {
    position: fixed;
    inset: 0;
    z-index: var(--z-age-warning);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    animation: fadeIn 0.5s ease;
}

.age-warning-overlay {
    position: absolute;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
}

.age-warning-content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 0, 102, 0.3);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.warning-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-lg);
}

.warning-icon {
    font-size: 5rem;
    animation: pulse 2s ease-in-out infinite;
}

.warning-glow {
    position: absolute;
    inset: -20px;
    background: var(--gradient-glow);
    filter: blur(30px);
    z-index: -1;
    animation: pulseGlow 2s ease-in-out infinite;
}

.warning-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.warning-text {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.warning-text strong {
    color: var(--text-primary);
    font-weight: 700;
}

.warning-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.warning-footer {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.warning-footer a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.warning-footer a:hover {
    text-decoration: underline;
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-navbar);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm) 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    cursor: pointer;
}

.logo-glow {
    position: absolute;
    inset: -10px;
    background: var(--gradient-glow);
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.nav-logo:hover .logo-img {
    transform: scale(1.1) rotate(5deg);
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo-ai {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-btn span {
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: var(--spacing-lg);
    flex-direction: column;
    gap: var(--spacing-sm);
    z-index: var(--z-navbar);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease;
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.mobile-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-btn {
    width: 100%;
    justify-content: center;
}

/* ===================================
   BUTTONS
   =================================== */
.btn-primary,
.btn-secondary,
.btn-login,
.btn-hero-primary,
.btn-hero-secondary,
.btn-cta-primary,
.btn-cta-secondary,
.btn-auth,
.btn-download {
    position: relative;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    outline: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary,
.btn-hero-primary,
.btn-cta-primary,
.btn-auth,
.btn-download {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn-hero-primary:hover,
.btn-cta-primary:hover,
.btn-auth:hover,
.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-glow {
    animation: buttonGlow 2s ease-in-out infinite;
}

.btn-secondary,
.btn-hero-secondary,
.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover,
.btn-hero-secondary:hover,
.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-login {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover .btn-shine,
.btn-hero-primary:hover .btn-shine,
.btn-cta-primary:hover .btn-shine,
.btn-download:hover .btn-shine {
    left: 100%;
}

.btn-download {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-label {
    font-weight: 700;
    font-size: 1.125rem;
}

.download-size {
    font-size: 0.875rem;
    opacity: 0.8;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: 7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: 40%;
    left: 50%;
    animation-delay: 14s;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: scan 4s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(100px, -100px) scale(1.1); }
    50% { transform: translate(-80px, 80px) scale(0.9); }
    75% { transform: translate(60px, 100px) scale(1.05); }
}

@keyframes scan {
    0% { top: 0%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    position: relative;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.badge-icon {
    font-size: 1.5rem;
    animation: wiggle 2s ease-in-out infinite;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.title-line {
    display: block;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--primary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--secondary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 31px, 0); }
    20% { clip: rect(70px, 9999px, 71px, 0); }
    40% { clip: rect(20px, 9999px, 130px, 0); }
    60% { clip: rect(60px, 9999px, 180px, 0); }
    80% { clip: rect(40px, 9999px, 43px, 0); }
    100% { clip: rect(30px, 9999px, 60px, 0); }
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.stat-plus,
.stat-star {
    font-size: 1.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===================================
   SECTIONS
   =================================== */
.features,
.characters,
.download-cta,
.cta-section {
    padding: clamp(4rem, 10vw, 8rem) 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: rgba(255, 0, 102, 0.1);
    border: 1px solid rgba(255, 0, 102, 0.3);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   FEATURES GRID
   =================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 0, 102, 0.5);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 0, 102, 0.2);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.feature-icon {
    font-size: 3.5rem;
    position: relative;
    z-index: 1;
}

.feature-glow {
    position: absolute;
    inset: -15px;
    background: var(--gradient-glow);
    filter: blur(25px);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
}

.feature-card:hover .feature-glow {
    opacity: 1;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   CHARACTER GRID
   =================================== */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.character-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
}

.character-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    mix-blend-mode: overlay;
}

.character-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(255, 0, 102, 0.3);
}

.character-card:hover::after {
    opacity: 0.15;
}

.character-image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.character-card:hover .character-image {
    transform: scale(1.1);
}

.character-info {
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.95), transparent);
    position: relative;
}

.character-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.character-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ===================================
   DOWNLOAD CTA SECTION
   =================================== */
.download-cta {
    position: relative;
    padding: clamp(4rem, 10vw, 8rem) 2rem;
}

.download-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.download-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.download-orb.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: 50%;
    left: -10%;
}

.download-orb.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: 20%;
    right: -5%;
}

.download-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    align-items: center;
}

.download-phone {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl), 0 0 50px rgba(255, 0, 102, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: #0a0a0f;
    border-radius: 0 0 20px 20px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.phone-content {
    padding: 3rem 1.5rem;
}

.phone-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.phone-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
}

.phone-header span {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.phone-chat-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.phone-message {
    padding: 1rem;
    border-radius: var(--radius-lg);
    max-width: 85%;
    animation: messageSlide 0.5s ease;
}

.phone-message.bot {
    background: rgba(255, 255, 255, 0.05);
    align-self: flex-start;
}

.phone-message.user {
    background: var(--gradient-primary);
    align-self: flex-start;
}

.phone-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.download-info {
    max-width: 600px;
}

.download-badge {
    display: inline-block;
    background: rgba(255, 0, 102, 0.1);
    border: 1px solid rgba(255, 0, 102, 0.3);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.download-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.download-desc {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.download-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.download-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.download-feature svg {
    color: var(--success);
    flex-shrink: 0;
}

.download-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
}

.download-note svg {
    flex-shrink: 0;
}

/* ===================================
   FINAL CTA SECTION
   =================================== */
.cta-section {
    position: relative;
    background: var(--gradient-dark);
    border-radius: var(--radius-2xl);
    padding: clamp(4rem, 8vw, 6rem) 2rem;
    text-align: center;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
}

.cta-orb.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -20%;
    left: 10%;
}

.cta-orb.orb-2 {
    width: 350px;
    height: 350px;
    background: var(--secondary);
    bottom: -20%;
    right: 10%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* ===================================
   FOOTER - COMPLETE FIX
   =================================== */
/* ===================================
   FOOTER - FIXED HORIZONTAL LAYOUT
   =================================== */
.footer {
    background: #1a1a2e;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
}

.footer-logo-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(255, 0, 102, 0.3) 0%, transparent 70%);
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
}

.footer-brand-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-brand-name span {
    background: linear-gradient(135deg, #ff0066 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: #a1a1aa;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: linear-gradient(135deg, #ff0066 0%, #6366f1 100%);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(255, 0, 102, 0.4);
}

.footer-column {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.footer-column h4 {
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
}

.footer-column a {
    display: block;
    color: #a1a1aa;
    text-decoration: none;
    margin-bottom: 0.875rem;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: #ff0066;
    padding-left: 8px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom p {
    color: #71717a;
    font-size: 0.95rem;
}

.footer-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-badge {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

/* RESPONSIVE FOOTER */
@media (max-width: 600px) {
  .chat-container, .about-container, .privacy-container, .terms-container {
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    margin: 0;
    padding: 0 3vw;
    border-radius: 0;
  }
  .chat-header,
  .chat-messages,
  .chat-input-container {
    max-width: 100vw !important;
    width: 100vw !important;
    min-width: 0;
    overflow-x: hidden;
  }
  .chat-input-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(12, 12, 18, 0.6);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 9999;
  transition: bottom 0.2s ease;
}

@supports (padding: max(0px)) {
  .chat-input-container {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
}

  .chat-messages {
    height: calc(100vh - 110px - 64px); /* 110 for header, 64 for input (tune as needed) */
    min-height: 40vh;
    max-width: 100vw;
    overflow-y: auto;
    padding-bottom: 90px !important;
    margin-bottom: 0;
  }
  /* Emoji reactions row */
  .message-reactions {
    flex-wrap: wrap;
    font-size: 1.09em;
    justify-content: flex-start;
  }
  .message-avatar {
    width: 36px !important;
    height: 36px !important;
  }
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    min-width: 0;
    background: #120c17;
  }
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 1.5rem 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: left;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-column a:hover {
        padding-left: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-badges {
        justify-content: center;
    }
}
/* ===================================
   CHAT SECTION
   =================================== */
.chat-section {
    position: fixed;
    inset: 0;
    z-index: var(--z-chat);
    background: var(--bg-primary);
    animation: fadeIn 0.3s ease;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.chat-avatar-wrapper {
    position: relative;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.chat-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    animation: pulse 2s ease-in-out infinite;
}

.chat-name {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
}

.chat-status {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-pulse {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.chat-actions {
    display: flex;
    gap: 0.5rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    scroll-behavior: smooth; 
    position: relative; /* ✅ ADD THIS */
    background-size: cover; /* ✅ ADD THIS */
    background-position: center; /* ✅ ADD THIS */
    background-repeat: no-repeat; /* ✅ ADD THIS */
    background-attachment: fixed; /* ✅ ADD THIS - keeps background fixed */
}

.chat-messages > .message:last-of-type {
    margin-bottom: 1rem;
}

.chat-messages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(15px);
    opacity: 0.25;
    z-index: 0;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-welcome {
    text-align: center;
    padding: 3rem 1rem;
    animation: fadeIn 0.5s ease;
}

.welcome-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary);
    box-shadow: var(--shadow-glow);
}

.welcome-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.welcome-desc {
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
    font-size: 1.125rem;
}

.message {
    display: flex;
    gap: 0.95rem;
    margin-bottom: 1.5rem;
    animation: messageSlide 0.3s ease;
}

.message.user {
    flex-direction: row-reverse;
	align-self: flex-start;
}

.message-avatar {
	gap: 0.95rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.message-bubble {
    max-width: 85%;
    padding: 0.50rem 0.75rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.message.user .message-bubble {
    max-width: 85%;
    padding: 0.50rem 0.75rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
	
}

.message-text {
    line-height: 1.6;
	font-size: 20px; 
    word-wrap: normal;
}

.typing-indicator .message-text {
    display: flex;
    gap: 0.5rem;
}

.typing-indicator .message-text::after {
    content: '...';
    animation: typingDots 1.5s infinite;
}

.chat-input-container {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.chat-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 0, 102, 0.1);
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.send-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.send-btn:active {
    transform: scale(0.95);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

/* ===================================
   MODALS
   =================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlide 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-xl);
}

.modal-small {
    max-width: 450px;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 2;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Auth Modal */
.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.375rem;
    border-radius: var(--radius-lg);
}

.auth-tab {
    flex: 1;
    padding: 0.875rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.auth-tab.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 0, 102, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 1rem;
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 3.5rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    border-radius: var(--radius-sm);
}

.toggle-password:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.auth-error {
    color: var(--error);
    font-size: 0.875rem;
    padding: 0.875rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: none;
}

.auth-error.show {
    display: block;
    animation: shake 0.4s ease;
}

.auth-disclaimer {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.auth-disclaimer a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.auth-disclaimer a:hover {
    text-decoration: underline;
}

/* Language Modal */
.lang-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lang-option {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.lang-option.active {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.lang-flag {
    font-size: 2rem;
}

.lang-name {
    font-size: 1.125rem;
}

/* Download Modal */
.modal-download-content {
    text-align: center;
}

.modal-download-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

.modal-download-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.modal-download-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.benefit-item {
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    color: var(--success);
    font-weight: 600;
    font-size: 0.95rem;
}

.modal-download-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

#signUpFromModal {
    margin-top: 1rem;
}

/* ===================================
   ANIMATIONS & KEYFRAMES
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(5deg);
    }
    75% {
        transform: rotate(-5deg);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: var(--shadow-md);
    }
    50% {
        box-shadow: var(--shadow-lg), var(--shadow-glow);
    }
}

@keyframes typingDots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1200px) {
    .nav-container,
    .features,
    .characters,
    .download-cta,
    .cta-section,
    .footer-content {
        max-width: 100%;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 7vw, 3.5rem);
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .character-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }
    
    .download-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .phone-mockup {
        width: 260px;
        height: 520px;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
        --spacing-3xl: 4rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .hero {
        padding: 5rem 1rem 2rem;
        min-height: 90vh;
    }
    
    .hero-badge {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-divider {
        width: 100%;
        height: 1px;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
    
    .features,
    .characters,
    .download-cta,
    .cta-section {
        padding: 3rem 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .character-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .character-info {
        padding: 1rem;
    }
    
    .character-name {
        font-size: 1.25rem;
    }
    
    .character-desc {
        font-size: 0.875rem;
    }
    
    .download-features {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
        max-height: 85vh;
    }
    
    .chat-messages {
        padding: 1rem;
    }
    
    .message-bubble {
        max-width: 85%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-download-benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .age-warning-content {
        padding: 2rem 1.5rem;
    }
    
    .warning-title {
        font-size: 1.5rem;
    }
    
    .warning-text {
        font-size: 0.95rem;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .section-badge {
        font-size: 0.75rem;
        padding: 0.375rem 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .phone-mockup {
        width: 220px;
        height: 440px;
    }
    
    .download-title {
        font-size: 1.75rem;
    }
    
    .btn-download {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .download-label {
        font-size: 1rem;
    }
    
    .download-size {
        font-size: 0.8125rem;
    }
}

/* ===================================
   LOADING & SKELETON STATES
   =================================== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .navbar,
    .mobile-menu,
    .hero-cta,
    .scroll-indicator,
    .chat-section,
    .modal,
    .footer-social,
    .btn-primary,
    .btn-secondary,
    .icon-btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ===================================
   HIGH CONTRAST MODE
   =================================== */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: #e0e0e0;
        --text-muted: #c0c0c0;
    }
    
    .feature-card,
    .character-card,
    .modal-content {
        border-width: 2px;
    }
}

/* ===================================
   REDUCED MOTION
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .gradient-orb,
    .scan-line,
    .scroll-indicator {
        animation: none !important;
    }
}

@media (max-width: 768px) {
    .message-text {
        line-height: 1.6;
        font-size: 13px;
        word-wrap: normal;
    }
}

/* ===================================
   CHAT SECTION WITH BLURRED BACKGROUND
   =================================== */
.chat-section {
    position: fixed;
    inset: 0;
    z-index: var(--z-chat);
    animation: fadeIn 0.3s ease;
}

.chat-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    height: calc(var(--vh, 1vh) * 100);
    display: flex;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.85); /* fallback */
    overflow: visible; 
}

.chat-container::before {
    content: '';
    position: absolute;
    inset: 0; /* top:0; bottom:0; left:0; right:0 */
    background-image: var(--chat-bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(2px) brightness(0.9); /* You can fine-tune this! */
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}
.chat-container > * {
    position: relative;
    z-index: 1;
}

.chat-container.active::before {
  opacity: 0.7;
  filter: blur(5px) brightness(0.6);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0.25rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
	flex-shrink: 0; 
    z-index: 2;
}

.narration {
    font-style: italic;
    font-size: 1.00em; /* Slightly smaller than the main dialogue */
    opacity: 1;    /* Less prominent */
    color: var(--text-secondary);
    margin-bottom: 0.3rem; /* Adds a small space between narration and dialogue */
    display: block; /* Ensures it's on its own line */
}

.message-reactions {
    margin-top: 2px;
    font-size: 1.19em;
    opacity: 0.95;
}
.reaction {
    cursor: pointer;
    margin: 0 6px 0 0;
    transition: background 0.18s;
    border-radius: 10px;
    padding: 0 6px;
    user-select: none;
    display: inline-flex;
    align-items: center;
}
.reaction.selected,
.reaction:hover {
    background: #232132;
    opacity: 1;
}
.reaction-emoji {
    font-size: 1em;
}
.reaction-count {
    font-size: 0.92em;
    color: #fff3;
    margin-left: 3px;
    min-width: 10px;
    display: inline-block;
    text-align: center;
}

.about-section {
  background: rgba(30, 16, 40, 0.96);
  color: #eaeaff;
  padding: 56px 0;
  text-align: center;
}
.about-container {
  max-width: 670px;
  margin: 0 auto;
  padding: 38px 28px 24px 28px;
  border-radius: 16px;
  background: rgba(40, 44, 60, 0.19);
  box-shadow: 0 8px 42px rgba(0,0,0, .17);
}
.about-section h1 {
  font-size: 2.2em;
  margin-bottom: 1em;
  color: #fd46bb;
}
.about-section ul {
  list-style: none;
  padding: 0;
  font-size: 1.08em;
  color: #e8e7fa;
  margin-top: 1.2em;
  margin-bottom: 1.2em;
}
.about-section li {
  margin: 0.35em 0;
}
.about-footer {
  margin-top: 32px;
  color: #b8b8be;
  font-size: 1em;
}
.back-button-container {
  text-align: left;
  margin-bottom: 24px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  color: #ff69b4;
  text-decoration: none;
  font-size: 1.05em;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 105, 180, 0.10);
  box-shadow: 0 4px 20px rgba(72,0,30,.09);
  cursor: pointer;
  transition: background .18s, color .22s;
  border: 1px solid rgba(255, 105, 180, 0.22);
}

.back-button:hover {
  background: rgba(255, 105, 180, 0.18);
  color: #fff;
}

.back-arrow {
  font-size: 1.8em;
  margin-right: 10px;
  line-height: 1;
  vertical-align: middle;
  transition: transform 0.2s;
}

.back-button:hover .back-arrow {
  transform: translateX(-5px);
}

.privacy-section {
  background: rgba(20, 16, 32, 0.96);
  color: #f5f6fa;
  padding: 48px 0;
  min-height: 90vh;
  text-align: left;
}
.privacy-container {
  max-width: 780px;
  margin: 0 auto;
  background: rgba(44,48,60,0.13);
  border-radius: 20px;
  padding: 42px 34px;
  box-shadow: 0 6px 32px 0 rgba(0,0,0,0.09);
}
.privacy-section h1 {
  font-size: 2em;
  color: #fe43b5;
  text-align: center;
  font-weight: 700;
}
.privacy-section h2 {
  font-size: 1.22em;
  color: #ff69b4;
  margin-top: 2em;
  margin-bottom: 0.7em;
}
.privacy-section ul {
  margin-bottom: 1.28em;
  font-size: 1.04em;
}
.privacy-section li {
  margin-bottom: 0.6em;
  line-height: 1.65em;
}
.privacy-footer {
  text-align: center;
  margin-top: 36px;
  color: #928daa;
  font-size: .96em;
}
.privacy-section a { color: #ff5fa0; }

.terms-section {
  background: rgba(24,15,36,0.97);
  color: #f4f0ff;
  padding: 48px 0;
  min-height: 90vh;
}
.terms-container {
  max-width: 780px;
  margin: 0 auto;
  background: rgba(44,48,60,0.10);
  border-radius: 20px;
  padding: 44px 34px;
  box-shadow: 0 6px 30px 0 rgba(0,0,0,0.13);
}
.terms-section h1 {
  font-size: 2em;
  color: #fa33b8;
  text-align: center;
  font-weight: 700;
}
.terms-section h2 {
  font-size: 1.17em;
  color: #ff5fa0;
  margin-top: 2em;
  margin-bottom: 0.65em;
}
.terms-section ul {
  margin-bottom: 1.2em;
  font-size: 1.05em;
}
.terms-section li {
  margin-bottom: 0.63em;
  line-height: 1.6em;
}
.terms-footer {
  text-align: center;
  margin-top: 36px;
  color: #928daa;
  font-size: .96em;
}
.terms-section a { color: #ff5fa0; }

.account-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #ff0066, #9b00ff);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 20px rgba(255, 0, 102, 0.5);
}

.avatar-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.btn-upload-avatar {
  font-size: 0.8rem;
  padding: 6px 14px;
  background: #ff0066;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 10px rgba(255, 0, 102, 0.4);
}

.btn-upload-avatar:hover {
  background: #ff3388;
  transform: scale(1.05);
}

.avatar-section {
  text-align: center;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  margin: 30px auto;
}

/* Main avatar preview */
.current-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.current-avatar img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #d11bff;
  box-shadow: 0 0 25px rgba(209, 27, 255, 0.6);
  transition: all 0.3s ease;
}

.change-avatar-btn {
  background: linear-gradient(135deg, #d11bff, #6a0dad);
  border: none;
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(209, 27, 255, 0.3);
  transition: 0.3s ease;
}

.change-avatar-btn:hover {
  transform: scale(1.05);
}

/* Avatar grid layout */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  justify-items: center;
  align-items: center;
  max-width: 300px;
  margin: 20px auto 30px;
}

.avatar-grid img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid transparent;
  background: rgba(255, 255, 255, 0.08);
  transition: 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.avatar-grid img:hover {
  transform: scale(1.08);
  border-color: #d11bff;
}

/* Selected avatar effect */
.avatar-grid img.active {
  border: 3px solid #d11bff;
  box-shadow: 0 0 20px rgba(209, 27, 255, 0.6);
  transform: scale(1.1);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .avatar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .avatar-grid img {
    width: 75px;
    height: 75px;
  }

  .current-avatar img {
    width: 100px;
    height: 100px;
  }
}

/* Hide emoji reaction bars on mobile view */
@media (max-width: 768px) {
  .reaction-emoji, 
  .emoji-bar, 	
  .message-reactions {
    display: none !important;
  }
}

@media (max-width: 600px) {
  /* Ensure the chat container fully spans the viewport and no padding/margins squeeze it */
  .chat-container {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box;
    height: 100vh !important;
  }


  /* Fix chat input bar at bottom */
  .chat-input-container {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    background: rgba(255, 255, 255, 0.02);
    z-index: 9999 !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    padding: 0.5px 12px 0.5px 12px !important;
    box-sizing: border-box;
    border-radius: 0 !important;
    }
}

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-start;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #ff007f, #b400ff);
  border-radius: 50%;
  animation: blink 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.1); }
}


/* ===== FIX CHAT AVATAR-BUBBLE SPACING ===== */
.message.user {
  gap: 0.4rem !important; /* same reduction for reversed layout */
}

.message-bubble {
  margin: 0 !important;
  padding: 0.55rem 0.85rem !important;
  line-height: 1.55;
}

.message-text,
.narration,
.chat-input,
.chat-input::placeholder {
  font-family: var(--chat-font);
  transition: font-family 0.3s ease;
}

.message-text, .narration {
  transition: font-family 0.3s ease, color 0.2s ease;
}


/* Shared font dropdown style */
.font-dropdown {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid #ff0066;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.85em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.font-dropdown:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ff3385;
}

/* Visibility control */
.desktop-only {
  display: inline-block;
}

.mobile-only {
  display: none;
}

/* 📱 Mobile behavior */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: inline-block !important;
    width: 60%;
    margin-bottom: 6px;
  }
}
/* 🎨 HEADER FONT DROPDOWN REFINEMENT */
/* Sleek glass dropdown for header */
.chat-header-actions .font-dropdown.desktop-only {
  position: relative;
  appearance: none;
  background: rgba(255,255,255,0.05);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 6px 28px 6px 10px;
  font-size: 0.9em;
  line-height: 1.2em;
  cursor: pointer;
  height: 34px;
  transition: all 0.2s ease;
  background-image:
    linear-gradient(45deg, transparent 50%, #ff0066 50%),
    linear-gradient(135deg, #ff0066 50%, transparent 50%);
  background-position:
    calc(100% - 18px) center,
    calc(100% - 12px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.chat-header-actions .font-dropdown.desktop-only:hover {
  background: rgba(255,0,102,0.15);
  border-color: #ff0066;
}

.chat-header-actions .font-dropdown.desktop-only:focus {
  border-color: #ff3385;
  box-shadow: 0 0 6px rgba(255,0,102,0.35);
}

/* Dropdown list styling */
.chat-header-actions .font-dropdown.desktop-only option {
  background: rgba(25,25,35,0.95);
  color: #fff;
  border: none;
  font-size: 0.9em;
  padding: 8px;
}
.chat-header-actions .font-dropdown.desktop-only option:hover {
  background: rgba(255,0,102,0.3);
}


/* ============================= */
/*  FONT PICKER (Modern “Aa”) UI */
/* ============================= */

.font-picker {
  position: relative;
  display: inline-block;
}

.font-icon {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.font-icon:hover {
  background: rgba(255, 0, 102, 0.15);
  border-color: #ff0066;
}

/* Hidden font menu */
.font-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  min-width: 140px;
  background: rgba(25, 25, 35, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  z-index: 50;
  overflow: hidden;
}

.font-option {
  padding: 10px 12px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.font-option:hover {
  background: rgba(255, 0, 102, 0.25);
}

/* Show menu when active */
.font-picker.active .font-menu {
  display: block;
  animation: fadeInMenu 0.15s ease;
}

/* Smooth fade */
@keyframes fadeInMenu {
  from {opacity: 0; transform: translateY(-4px);}
  to {opacity: 1; transform: translateY(0);}
}

/* 📱 Mobile adjustments */
@media (max-width: 768px) {
  .font-picker.desktop-only {
    display: none !important;
  }
}

.font-picker {
  margin-left: 4px;
}

.font-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 44px;
}

.font-option {
  text-align: left;
  font-weight: 400;
  font-size: 0.95em;
}

.font-option:hover {
  background: rgba(255, 0, 102, 0.2);
}

/* ============================= */
/* FONT PICKER - SVG ICON STYLE  */
/* ============================= */

.font-picker {
  position: relative;
  display: inline-block;
}

.font-picker .font-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s ease;
}

.font-picker .font-icon:hover {
  background: rgba(255, 0, 102, 0.15);
  border-color: #ff0066;
  color: #ff66a3;
}

.font-picker .aa-icon,
.font-picker .arrow-down {
  pointer-events: none;
}

/* Optional subtle hover glow for icon */
.font-picker .font-icon:hover svg {
  filter: drop-shadow(0 0 4px rgba(255, 0, 102, 0.6));
}

/* Align popup */
.font-picker.active .font-menu {
  display: block;
  animation: fadeInMenu 0.15s ease;
}

/* Mobile hides header picker */
@media (max-width: 768px) {
  .font-picker.desktop-only {
    display: none !important;
  }
}
.font-picker.active .arrow-down {
  transform: rotate(180deg);
  transition: transform 0.25s ease;
}

/* Smooth fade and slide for font menu */
.font-menu {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.font-picker.active .font-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.font-option.active {
  background: rgba(255, 0, 102, 0.35);
  color: #fff;
  font-weight: 600;
}

/* ========================== */
/* 📱 Mobile Chat Header Fix  */
/* ========================== */
.chat-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(20, 20, 30, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========================== */
/* 📱 Dropdown Button Styling */
/* ========================== */
.font-picker.desktop-only .font-icon,
.font-dropdown.desktop-only {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  padding: 6px 12px;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.font-picker.desktop-only .font-icon:hover {
  background: rgba(255, 0, 102, 0.15);
  border-color: #ff0066;
}

/* Adjust dropdown width and position */
.font-menu {
  right: 0;
  min-width: 130px;
  background: rgba(25, 25, 35, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 0;
}

/* ========================== */
/* 📱 Mobile Layout Adjustments */
/* ========================== */
@media (max-width: 768px) {
  .chat-header {
    padding: 8px 10px;
  }

  .font-picker.desktop-only {
    display: none !important;
  }

  @media (max-width: 768px) {
  /* Shrink header height */
  .chat-header {
    height: 52px;
    padding: 4px 10px;
    backdrop-filter: blur(12px);
    background: rgba(25, 25, 35, 0.8);
  }

  .chat-name {
    font-size: 1rem;
  }

  /* Font picker for mobile */
  .font-picker.mobile-only {
    position: relative;
    display: inline-block !important;
  }

  .font-picker.mobile-only .font-icon {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    padding: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }

  .font-picker.mobile-only .font-icon:hover {
    background: rgba(255, 0, 102, 0.18);
    border-color: #ff0066;
  }

  .font-menu {
    position: absolute;
    top: 42px;
    right: 0;
    background: rgba(20, 20, 30, 0.96);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 6px 0;
    min-width: 140px;
    z-index: 9999;
    display: none;
  }

  .font-picker.active .font-menu {
    display: block;
    animation: fadeInMenu 0.15s ease;
  }

  .font-option {
    padding: 10px 14px;
    color: #fff;
    font-size: 0.95em;
    text-align: left;
  }

  .font-option:hover {
    background: rgba(255, 0, 102, 0.25);
  }

  .font-option.active {
    background: rgba(255, 0, 102, 0.35);
    font-weight: 600;
  }
}


.chat-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 60px;
  background: rgba(25,25,35,0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  transition: top 0.25s ease;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header .chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff0066;
}


.chat-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 0.95em;
  outline: none;
}

.send-btn {
  margin-left: 10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff0066, #ff6699);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: none;
  box-shadow: 0 2px 6px rgba(255,0,102,0.4);
  transition: transform 0.2s ease;
}

.send-btn:active {
  transform: scale(0.92);
}

@media (max-width: 768px) {
    .font-picker.desktop-only,
  .font-dropdown.desktop-only {
    display: none !important;
  }
}
.message-bubble {
  background: rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 10px 14px;
  color: #fff;
  backdrop-filter: blur(8px);
  font-size: 0.95em;
}

@media (max-width: 768px) {
  .chat-input-container {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 10px 18px; /* ⬅️ added bottom padding for better spacing */
  background: rgba(25, 25, 35, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
  transition: bottom 0.25s ease, padding 0.25s ease;
}

  .chat-input {
    flex: 1;
    font-size: 0.95em;
    border-radius: 16px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .send-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0066, #ff6699);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255,0,102,0.4);
    transition: transform 0.2s ease;
    margin-right: 6px; /* ✅ keeps button off the edge */
  }

.chat-messages {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

html, body {
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  background-color: #000;
}

.chat-section {
  
  display: flex;
  flex-direction: column;
  background: #000;
}

@supports (padding: env(safe-area-inset-top)) {
	
  .chat-header {
    padding-top: env(safe-area-inset-top);
  }


/* ============================= */
/* FIX DUPLICATE FONT PICKERS    */
/* ============================= */

/* Default: show desktop picker, hide mobile */
.font-picker.desktop-only {
  display: inline-flex !important;
}

.font-picker.mobile-only {
  display: none !important;
}

/* 📱 On mobile screens: show mobile picker only */
@media (max-width: 768px) {
  .font-picker.desktop-only {
    display: none !important;
  }

  .font-picker.mobile-only {
    display: inline-flex !important;
  }

  /* Compact mobile header and icon spacing */
  .chat-header {
    height: 54px;
    padding: 4px 8px;
    background: rgba(25, 25, 35, 0.85);
    backdrop-filter: blur(10px);
    align-items: center;
  }

  .chat-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .font-picker.mobile-only .font-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }

  .font-picker.mobile-only .font-icon:hover {
    background: rgba(255, 0, 102, 0.18);
    border-color: #ff0066;
  }
}

/* ============================= */
/* 📱 MOBILE CHAT HEADER IMPROVEMENT */
/* ============================= */
@media (max-width: 768px) {
  .chat-header {
    height: 60px;
    padding: 8px 12px;
    background: rgba(25, 25, 35, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000; /* ensure above background */
    overflow: visible; /* important for dropdown visibility */
  }

  .chat-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: visible;
  }

  .font-picker.mobile-only {
    position: relative;
    overflow: visible;
  }

  /* The font menu should appear ABOVE header, not clipped */
  .font-picker.mobile-only .font-menu {
    position: absolute;
    top: 115%;
    right: 0;
    min-width: 160px;
    background: rgba(25, 25, 35, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    z-index: 99999; /* 💥 stays on top of everything */
  }

  .font-option {
    padding: 10px 14px;
    font-size: 0.95em;
    color: #fff;
    transition: background 0.2s ease;
  }

  .font-option:hover {
    background: rgba(255, 0, 102, 0.25);
  }

  /* Give chat header icons consistent sizing */
  .icon-btn,
  .font-picker.mobile-only .font-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .font-picker.mobile-only .font-icon:hover {
    background: rgba(255, 0, 102, 0.18);
    border-color: #ff0066;
  }
}

/* ============================= */
/* 📱 MOBILE CHAT HEADER POLISH  */
/* ============================= */
@media (max-width: 768px) {
  .chat-header {
    height: 56px;
    padding: 6px 10px;
    background: rgba(25, 25, 35, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    overflow: visible;
  }

  /* LEFT SIDE: Avatar + Name */
  .chat-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1; /* takes available space */
    min-width: 0;
  }

  .chat-header-left .chat-avatar {
    width: 38px;
    height: 38px;
    border: 2px solid #ff0066;
  }

  .chat-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
  }

  .chat-status {
    font-size: 0.8rem;
    opacity: 0.8;
  }

  /* RIGHT SIDE: Action icons */
  .chat-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .icon-btn,
  .font-picker.mobile-only .font-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    transition: all 0.2s ease;
  }

  .icon-btn:hover,
  .font-picker.mobile-only .font-icon:hover {
    background: rgba(255, 0, 102, 0.15);
    border-color: #ff0066;
  }

  /* Compact font picker */
  .font-picker.mobile-only {
    position: relative;
  }

  .font-picker.mobile-only .font-icon {
    width: 32px;
    height: 32px;
    padding: 0;
  }

  /* Close button should be tighter on the edge */
  #closeChat {
    margin-right: 2px;
  }

  /* Reduce extra space before the close icon */
  .chat-actions > :last-child {
    margin-right: 0 !important;
  }

  /* Smooth spacing for all icons */
  .chat-actions button,
  .chat-actions .font-picker {
    flex-shrink: 0;
  }
}

/* ============================= */
/* ✨ Modern "Aa" Font Button Style */
/* ============================= */
.font-picker .font-icon {
  background: linear-gradient(135deg, rgba(255, 0, 102, 0.15), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(255, 0, 102, 0.2);
  transition: all 0.25s ease;
}

.font-picker .font-icon svg {
  stroke: #fff;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

/* Hover / Active Glow */
.font-picker .font-icon:hover {
  background: linear-gradient(135deg, rgba(255, 0, 102, 0.25), rgba(99, 102, 241, 0.25));
  box-shadow: 0 0 12px rgba(255, 0, 102, 0.35);
  border-color: rgba(255, 0, 102, 0.3);
}

.font-picker.active .font-icon {
  background: linear-gradient(135deg, #ff0066, #6366f1);
  box-shadow: 0 0 15px rgba(255, 0, 102, 0.5);
}

/* Make sure Aa is centered nicely */
.font-picker .aa-icon {
  width: 18px;
  height: 18px;
}

/* ============================= */
/* 🧩 Fix persistent black bar on Android keyboard open */
/* ============================= */
html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  overscroll-behavior: contain;
  background-color: #0a0a0f !important; /* match your dark theme */
}

.chat-container {
  height: 100%;
  background: rgba(10, 10, 15, 0.9);
  overflow: visible;
}

.chat-input-container {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 5px;
  padding: 8px 10px;
  background: rgba(25, 25, 35, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 9999;
    transition: bottom 0.25s ease;
}

/* Apply safe-area bottom padding for devices with notches */
@supports (padding: env(safe-area-inset-bottom)) {
  .chat-input-container {
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
}


/* ============================= */
/* ✨ Modern Font Picker Button  */
/* ============================= */
.font-picker .font-icon {
  background: linear-gradient(135deg, rgba(255, 0, 102, 0.15), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 8px rgba(255, 0, 102, 0.2);
  transition: all 0.25s ease;
}

.font-picker .font-icon:hover {
  background: linear-gradient(135deg, rgba(255, 0, 102, 0.25), rgba(99, 102, 241, 0.25));
  box-shadow: 0 0 12px rgba(255, 0, 102, 0.35);
  border-color: rgba(255, 0, 102, 0.3);
}

.font-picker.active .font-icon {
  background: linear-gradient(135deg, #ff0066, #6366f1);
  box-shadow: 0 0 15px rgba(255, 0, 102, 0.5);
}

.chat-input-container {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 10px 18px;
  background: rgba(25, 25, 35, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
  transition: bottom 0.25s ease, padding 0.25s ease;
}

@supports (padding: env(safe-area-inset-bottom)) {
  .chat-input-container {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
}

/* 💎 Character Filter Bar */
.character-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 0, 102, 0.2);
  border: 1px solid rgba(255, 0, 102, 0.5);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  transition: all 0.25s ease;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.filter-btn:hover {
  background: rgba(255, 0, 102, 0.35);
  border-color: rgba(255, 0, 102, 0.9);
  box-shadow: 0 0 15px rgba(255, 0, 102, 0.4);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(90deg, #ff007f, #ad00ff);
  border-color: #ff007f;
  box-shadow: 0 0 20px rgba(255, 0, 102, 0.6);
}

.character-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem auto;
  flex-wrap: wrap;
  padding: 0 1rem;
}

/* Core Button Style */
.filter-btn {
  background: rgba(255, 0, 102, 0.12);
  border: 1px solid rgba(255, 0, 102, 0.5);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  padding: 0.55rem 1.4rem;
  transition: all 0.25s ease;
  cursor: pointer;
  backdrop-filter: blur(5px);
  letter-spacing: 0.5px;
}

/* Hover & Active */
.filter-btn:hover {
  background: rgba(255, 0, 102, 0.3);
  border-color: rgba(255, 0, 102, 0.9);
  box-shadow: 0 0 15px rgba(255, 0, 102, 0.4);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(90deg, #ff007f, #ad00ff);
  border: none;
  box-shadow: 0 0 25px rgba(255, 0, 102, 0.7);
  transform: translateY(-2px) scale(1.05);
}

/* Responsiveness */
@media (max-width: 600px) {
  .character-filter {
    gap: 0.6rem;
    margin: 1rem auto 1.5rem;
  }
  .filter-btn {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }
}

/* Container width fix */
  #interestSelector .age-warning-content.interest-content {
    width: min(92vw, 1100px);
    max-width: 1100px;
    padding: 32px 28px;
  }

  /* Grid layout */
  #interestSelector .interest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: start;
    margin-top: 2.5rem;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Cards */
  #interestSelector .interest-card {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, #1b0f20, #0a0812);
    border-radius: 18px;
    border: 1px solid rgba(255, 0, 102, 0.4);
    padding: 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 0, 102, 0.15);
    width: 100%;
    animation: softGlow 3s infinite alternate ease-in-out;
  }

  #interestSelector .interest-card:hover,
  #interestSelector .interest-card.active {
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(255, 0, 102, 0.6);
    border-color: rgba(255, 0, 102, 0.8);
  }

  /* Image */
  #interestSelector .interest-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 0 10px rgba(255, 0, 102, 0.4);
  }

  /* Overlay */
  #interestSelector .interest-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 95%);
  }

  /* Label */
  #interestSelector .interest-label {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 0, 102, 0.7);
    border: 1px solid rgba(255, 0, 102, 0.9);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(255, 0, 102, 0.55);
    backdrop-filter: blur(2px);
  }

  /* Responsive */
  @media (max-width: 768px) {
    #interestSelector .interest-grid {
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    #interestSelector .interest-img { height: 200px; }
  }
  @media (max-width: 480px) {
    #interestSelector .interest-grid { grid-template-columns: 1fr; }
    #interestSelector .interest-img { height: 180px; }
  }

  /* Animation */
  @keyframes softGlow {
    from { box-shadow: 0 0 10px rgba(255,0,102,0.2); }
    to { box-shadow: 0 0 20px rgba(255,0,102,0.5); }
  }

  /* Fade effect */
  #interestSelector.fade-in {
    animation: fadeInScale 0.4s ease forwards;
  }
  @keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
  }
  
  /* 🧠 Responsive layout for Interest Selection Modal */
#interestSelector {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 18, 0.95);
  backdrop-filter: blur(10px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 1.5rem;
}

#interestSelector .age-warning-content.interest-content {
  width: 100%;
  max-width: 1100px;
  background: radial-gradient(circle at top left, #1a0d1f, #0b0814);
  border: 1px solid rgba(255,0,102,0.4);
  border-radius: 24px;
  box-shadow: 0 0 25px rgba(255,0,102,0.3);
  padding: 2rem;
  color: #fff;
  text-align: center;
  position: relative;
  animation: fadeInScale 0.3s ease forwards;
}

/* Title */
#interestSelector .warning-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  color: #ff4fa0;
  margin-bottom: 0.6rem;
}

#interestSelector .warning-text {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 1.8rem;
}

/* Grid fixes */
#interestSelector .interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  width: 100%;
  margin-inline: auto;
}

/* Cards */
#interestSelector .interest-card {
  background: radial-gradient(circle at top left, #1b0f20, #0a0812);
  border-radius: 16px;
  border: 1px solid rgba(255, 0, 102, 0.4);
  overflow: hidden;
  width: 100%;
  max-width: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#interestSelector .interest-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(255, 0, 102, 0.6);
  border-color: rgba(255, 0, 102, 0.8);
}

/* Image styling */
#interestSelector .interest-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,0,102,0.4);
}

/* Label overlay */
#interestSelector .interest-overlay {
  background: rgba(0,0,0,0.6);
  padding: 0.7rem;
  text-align: center;
}
#interestSelector .interest-label {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

/* ✨ Mobile-specific improvements */
@media (max-width: 768px) {
  #interestSelector .age-warning-content.interest-content {
    width: 95%;
    padding: 1.4rem;
    border-radius: 16px;
  }

  #interestSelector .warning-title {
    font-size: 1.5rem;
  }

  #interestSelector .warning-text {
    font-size: 0.9rem;
    margin-bottom: 1.4rem;
  }

  #interestSelector .interest-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #interestSelector .interest-card {
    max-width: 320px;
    margin-inline: auto;
  }

  #interestSelector .interest-img {
    height: 220px;
  }

  #interestSelector .interest-label {
    font-size: 0.95rem;
  }
}

/* Ultra-small devices */
@media (max-width: 420px) {
  #interestSelector .interest-img {
    height: 180px;
  }
  #interestSelector .warning-title {
    font-size: 1.3rem;
  }
  #interestSelector .warning-text {
    font-size: 0.85rem;
  }
}