/*
 * KILLORIA BATTLE - Main Stylesheet
 * Brand colors: Purple (#8B5CF6), Cyan Accent (#00D8FF), Deep Cosmic Dark Background (#0B0718)
 * Typography: Poppins (headings), Inter (body)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* ==========================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================== */
:root {
    /* Color System */
    --color-bg: #0B0718;
    --color-surface: #171028;
    --color-surface-rgb: 23, 16, 40;
    --color-primary: #8B5CF6;
    --color-primary-rgb: 139, 92, 246;
    --color-accent: #00D8FF;
    --color-accent-rgb: 0, 216, 255;
    --color-success: #00E676;
    --color-success-rgb: 0, 230, 118;
    --color-text: #FFFFFF;
    --color-text-secondary: #A0A0B0;
    
    /* Layout Details */
    --border-subtle: rgba(139, 92, 246, 0.15);
    --border-glow: rgba(0, 216, 255, 0.3);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Effects & Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(23, 16, 40, 0.6);
    --glass-blur: blur(12px);
    --glass-shadow: 0 8px 32px 0 rgba(11, 7, 24, 0.5);
    
    /* Container Width */
    --container-max-width: 1200px;
    --header-height: 80px;
}

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

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 216, 255, 0.5);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

ul {
    list-style: none;
}

/* ==========================================
   LAYOUT CONTAINERS
   ========================================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

/* Section Header styling */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    background: linear-gradient(135deg, var(--color-text) 50%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Background Glowing Blurs */
.glow-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(120px);
    opacity: 0.15;
}

.glow-purple {
    background-color: var(--color-primary);
}

.glow-cyan {
    background-color: var(--color-accent);
}

/* ==========================================
   COMMON GLASS COMPONENTS
   ========================================== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-md);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-normal);
}

.glass-panel:hover {
    border-color: rgba(0, 216, 255, 0.3);
    box-shadow: 0 12px 40px 0 rgba(0, 216, 255, 0.1);
    transform: translateY(-4px);
}

/* ==========================================
   BUTTON SYSTEM
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    outline: none;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #6d28d9);
    color: var(--color-text);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.6), 0 0 15px rgba(0, 216, 255, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent);
    border: 1px solid rgba(0, 216, 255, 0.4);
}

.btn-secondary:hover {
    background: rgba(0, 216, 255, 0.05);
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(0, 216, 255, 0.2);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.15rem;
    display: inline-block;
    vertical-align: middle;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-normal);
    background: transparent;
}

.header-nav.sticky {
    background: rgba(11, 7, 24, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    height: 70px;
    border-bottom: 1px solid var(--border-subtle);
}

.header-nav .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--color-text), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    color: var(--color-text-secondary);
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

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

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1100;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    position: absolute;
    left: 0;
    transition: var(--transition-normal);
}

.nav-hamburger span:nth-child(1) { top: 2px; }
.nav-hamburger span:nth-child(2) { top: 11px; }
.nav-hamburger span:nth-child(3) { top: 20px; }

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}
.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 11px;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 40px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-badge-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-success);
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
}

.hero-content h1 {
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.hero-tagline {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-meta {
    display: flex;
    gap: 32px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    max-width: 500px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
}

.hero-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-inner {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-image-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11,7,24,0) 60%, rgba(11,7,24,0.8));
    pointer-events: none;
}

.hero-glow-sphere {
    position: absolute;
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(0, 216, 255, 0.05) 50%, rgba(11, 7, 24, 0) 100%);
    z-index: -1;
    filter: blur(40px);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.about-card {
    padding: 30px 24px;
    text-align: center;
    border-radius: var(--border-radius-md);
}

.about-card-icon {
    font-size: 2.2rem;
    color: var(--color-accent);
    margin-bottom: 16px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.about-card p {
    font-size: 0.88rem;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 24px;
}

.about-content h2::after {
    margin: 12px 0 0 0;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.about-bullets {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.bullet-icon {
    width: 24px;
    height: 24px;
    background-color: rgba(0, 230, 118, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-success);
    flex-shrink: 0;
    font-size: 0.75rem;
    margin-top: 2px;
}

.bullet-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.bullet-text p {
    font-size: 0.9rem;
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-icon-box {
    width: 64px;
    height: 64px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.8rem;
    margin-bottom: 28px;
    box-shadow: inset 0 0 10px rgba(139, 92, 246, 0.2);
}

.feature-card h3 {
    margin-bottom: 14px;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.95rem;
    flex-grow: 1;
}

/* ==========================================
   SCREENSHOTS SECTION
   ========================================== */
.slider-outer-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    padding: 20px 0 60px;
}

.screenshots-slider {
    display: flex;
    gap: 30px;
    cursor: grab;
    padding: 0 40px;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.screenshots-slider:active {
    cursor: grabbing;
}

.screenshot-slide {
    flex: 0 0 280px;
    user-select: none;
}

.phone-frame {
    width: 100%;
    position: relative;
    background-color: #030105;
    border-radius: 40px;
    border: 8px solid #2d263f;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 
                0 0 30px rgba(139, 92, 246, 0.15);
    overflow: hidden;
    aspect-ratio: 9 / 19.5;
}

/* Phone notch design */
.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 18px;
    background-color: #2d263f;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.slider-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(23, 16, 40, 0.8);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-arrow:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 216, 255, 0.3);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-dot.active {
    background-color: var(--color-accent);
    width: 24px;
    border-radius: 5px;
    box-shadow: 0 0 8px var(--color-accent);
}

/* ==========================================
   APK DOWNLOAD SECTION
   ========================================== */
.apk-container {
    max-width: 900px;
    margin: 0 auto;
}

.apk-card {
    padding: 60px 48px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.apk-card-glow {
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 216, 255, 0.15) 0%, rgba(23, 16, 40, 0) 70%);
    pointer-events: none;
}

.apk-details-title {
    font-size: 1.8rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--color-text), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.apk-info-desc {
    margin-bottom: 30px;
}

.apk-grid-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.spec-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
}

.spec-box span:first-child {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
}

.spec-box span:last-child {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
}

.apk-action-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.apk-download-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
}

.secure-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-success);
}

.secure-icon {
    font-size: 1rem;
}

.notice-text {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* ==========================================
   INSTALLATION GUIDE SECTION
   ========================================== */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.guide-step {
    text-align: center;
    position: relative;
    padding: 30px 20px;
}

.guide-arrow {
    position: absolute;
    top: 50px;
    right: -25px;
    font-size: 1.5rem;
    color: var(--color-primary);
    animation: bounceRight 2s infinite;
}

.guide-step:last-child .guide-arrow {
    display: none;
}

.guide-image-container {
    width: 100px;
    height: 100px;
    background: rgba(139, 92, 246, 0.08);
    border: 2px dashed rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
}

.guide-image-container img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    background-color: var(--color-accent);
    color: var(--color-bg);
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px var(--color-accent);
}

.guide-step h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.guide-step p {
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ==========================================
   REFER & EARN SECTION
   ========================================== */
.refer-card {
    padding: 60px 48px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.refer-card-glow {
    position: absolute;
    top: -150px;
    left: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(23, 16, 40, 0) 70%);
    pointer-events: none;
}

.refer-tag {
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    display: block;
}

.refer-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
}

.refer-p {
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.refer-reward-boxes {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.reward-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    text-align: center;
}

.reward-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-success);
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.reward-desc {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.refer-illust-container {
    display: flex;
    justify-content: center;
    position: relative;
}

.refer-illust-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 216, 255, 0.1) 0%, transparent 70%);
    filter: blur(20px);
}

.refer-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
}

/* ==========================================
   COMMUNITY SECTION
   ========================================== */
.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.community-card {
    padding: 40px 30px;
    text-align: center;
}

.community-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tg-color { color: #0088cc; }
.dc-color { color: #5865F2; }
.wa-color { color: #25D366; }

.community-card h3 {
    margin-bottom: 12px;
}

.community-card p {
    font-size: 0.92rem;
    margin-bottom: 28px;
    min-height: 48px;
}

.community-btn {
    width: 100%;
}

/* ==========================================
   REVIEWS SECTION
   ========================================== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-rating {
    display: flex;
    gap: 4px;
    color: #FFD700;
    font-size: 0.95rem;
}

.review-text {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    color: var(--color-text);
}

.review-user {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-bg);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-meta {
    font-size: 0.75rem;
    color: var(--color-success);
    font-weight: 500;
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-trigger {
    width: 100%;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    text-align: left;
    color: var(--color-text);
    gap: 20px;
}

.faq-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.faq-icon-wrap {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background-color: rgba(255, 255, 255, 0.01);
}

.faq-content-inner {
    padding: 0 24px 24px 24px;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.faq-item.active {
    background-color: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
}

.faq-item.active .faq-title {
    color: var(--color-accent);
}

.faq-item.active .faq-icon-wrap {
    transform: rotate(45deg);
    color: var(--color-primary);
}

.faq-item.active .faq-content {
    max-height: 1000px;
    transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-info-panel {
    padding: 40px;
    height: 100%;
}

.contact-info-panel h3 {
    margin-bottom: 12px;
}

.contact-info-panel p {
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.contact-card:hover {
    border-color: rgba(0, 216, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.contact-card-icon {
    font-size: 1.8rem;
    color: var(--color-accent);
    width: 48px;
    height: 48px;
    background: rgba(0, 216, 255, 0.1);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-details {
    display: flex;
    flex-direction: column;
}

.contact-card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
}

.contact-card-value {
    font-weight: 600;
    color: var(--color-text);
}

.contact-form-panel {
    padding: 40px;
}

.contact-form-panel h3 {
    margin-bottom: 24px;
}

.form-group-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

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

.form-input {
    background: rgba(11, 7, 24, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(0, 216, 255, 0.2);
}

textarea.form-input {
    resize: none;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.footer {
    background-color: #06040C;
    border-top: 1px solid var(--border-subtle);
    padding: 80px 0 30px 0;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact-item i, .footer-contact-item svg {
    color: var(--color-primary);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: var(--transition-fast);
}

.social-icon-btn:hover {
    background: var(--color-primary);
    color: var(--color-text);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 0.85rem;
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: -60px;
    width: 48px;
    height: 48px;
    background-color: var(--color-primary);
    color: var(--color-text);
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
}

.back-to-top.show {
    right: 30px;
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background-color: var(--color-accent);
    color: var(--color-bg);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 216, 255, 0.5);
}

/* ==========================================
   GENERIC PAGES STYLING (Privacy, Terms, 404)
   ========================================== */
.legal-page-header {
    background: linear-gradient(180deg, #070311 0%, var(--color-bg) 100%);
    padding: 160px 0 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.legal-content-wrap {
    padding: 80px 0;
}

.legal-card {
    padding: 60px 48px;
}

.legal-card h2 {
    text-align: left;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.legal-card h2::after {
    margin: 8px 0 0 0;
}

.legal-card h2:first-of-type {
    margin-top: 0;
}

.legal-card p {
    margin-bottom: 24px;
    font-size: 0.98rem;
    line-height: 1.7;
}

.legal-card ul {
    margin-bottom: 24px;
    padding-left: 20px;
    list-style-type: disc;
}

.legal-card li {
    color: var(--color-text-secondary);
    margin-bottom: 10px;
    font-size: 0.98rem;
}

/* ==========================================
   404 ERROR PAGE STYLING
   ========================================== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.error-card {
    max-width: 600px;
    padding: 60px 40px;
    position: relative;
    z-index: 1;
}

.error-code {
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-shadow: 0 0 50px rgba(139, 92, 246, 0.3);
}

.error-title {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--color-text);
}

.error-desc {
    margin-bottom: 36px;
    font-size: 1rem;
}

.error-btn-wrap {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Bouncing Arrow keyframe */
@keyframes bounceRight {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0);
    }
    40% {
        transform: translateX(-6px);
    }
    60% {
        transform: translateX(-3px);
    }
}
