/**
 * ============================================================
 * auth.css — Shared Premium Stylesheet
 * ============================================================
 * Used by: index.php (landing), login.php, register.php,
 *          checkout.php
 *
 * Color palette: Rambly Theme
 * ============================================================
 */

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

:root {
    --bg-main: #0A0510;
    --bg-card: #12091A;
    --bg-card-hover: #1C1027;
    --accent-violet: #8B5CF6;
    --accent-violet-hover: #A78BFA;
    --accent-peach: #FF9B7D;
    --accent-peach-hover: #FFB49C;
    --text-primary: #F4F3F7;
    --text-muted: #7E7A93;
    --border-thin: #252136;
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-display: 'Outfit', system-ui, sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Shared Logo ───────────────────────────────────────── */
.logo-text {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.logo-text-large {
    font-size: 2.5rem;
}

.logo-dot {
    color: var(--accent-peach);
}

/* ════════════════════════════════════════════════════════
   AUTH PAGES (Login / Register)
   ════════════════════════════════════════════════════════ */

.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-brand-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    letter-spacing: 0.02em;
}

/* Card */
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-thin);
    border-radius: 12px;
    padding: 2rem 1.75rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.auth-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    font-size: 0.825rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Alerts */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.auth-alert svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-alert-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.auth-alert-error svg {
    color: #ef4444;
}

/* Form */
.form-group {
    margin-bottom: 1.15rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    background: var(--bg-main);
    border: 1px solid var(--border-thin);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    outline: none;
    transition: var(--transition);
}

.form-group input::placeholder {
    color: #4a4660;
}

.form-group input:focus {
    border-color: var(--accent-violet);
    box-shadow: 0 0 0 3px rgba(154, 125, 255, 0.12);
    background: var(--bg-card-hover);
}

/* Primary Auth Button */
.btn-auth-primary {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: var(--accent-violet);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
    text-align: center;
    text-decoration: none;
}

.btn-auth-primary:hover {
    background: var(--accent-violet-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(154, 125, 255, 0.25);
}

/* Footer Text */
.auth-footer-text {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1.25rem;
}

.auth-footer-text a {
    color: var(--accent-violet);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-footer-text a:hover {
    color: var(--accent-violet-hover);
    text-decoration: underline;
}

/* Legal text */
.auth-legal {
    text-align: center;
    font-size: 0.7rem;
    color: #4a4660;
    margin-top: 1.5rem;
    max-width: 360px;
    line-height: 1.5;
}

/* ════════════════════════════════════════════════════════
   CHECKOUT PAGE
   ════════════════════════════════════════════════════════ */

.checkout-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 2.5rem 1rem 3rem;
}

.checkout-header {
    text-align: center;
    margin-bottom: 2rem;
}

.checkout-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.checkout-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
    max-width: 720px;
    margin-bottom: 1.75rem;
}

@media (min-width: 640px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Plan Card */
.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border-thin);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.plan-card:hover {
    border-color: rgba(154, 125, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Featured Card (Annual) */
.plan-card-featured {
    border-color: var(--accent-violet);
    box-shadow: 0 0 0 1px var(--accent-violet), 0 12px 40px rgba(154, 125, 255, 0.15);
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--accent-violet);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(154, 125, 255, 0.3);
}

.plan-header {
    margin-bottom: 1.25rem;
}

.plan-name {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.35rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.plan-amount {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.plan-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.plan-savings {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-peach);
    background: rgba(255, 171, 133, 0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.4rem;
}

/* Features List */
.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.825rem;
    color: var(--text-muted);
}

.plan-features li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--accent-peach);
}

/* PayPal Button Wrapper */
.plan-paypal-wrapper {
    margin-top: auto;
    min-height: 55px;
}

/* Processing Overlay */
.checkout-processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.checkout-processing p {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.processing-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-thin);
    border-top-color: var(--accent-violet);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Checkout logout link */
.checkout-logout-link {
    margin-top: 1rem;
    text-align: center;
}

.checkout-logout-link a {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.checkout-logout-link a:hover {
    color: var(--accent-violet);
    text-decoration: underline;
}

/* ════════════════════════════════════════════════════════
   LANDING PAGE
   ════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════
   LANDING PAGE (New Neon / Concept Art Layout)
   ════════════════════════════════════════════════════════ */

/* Header */
.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--accent-peach);
    font-size: 2rem;
    vertical-align: middle;
}

.landing-nav-links {
    display: none !important;
    gap: 2.5rem;
}

@media (min-width: 860px) {
    .landing-nav-links {
        display: flex !important;
    }
}

.landing-nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.landing-nav-links a:hover {
    color: var(--accent-peach);
}

.landing-nav-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-nav-login {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}
.btn-nav-login:hover {
    background: rgba(255,255,255,0.05);
}

.btn-nav-signup {
    background: var(--accent-peach);
    color: #12091A;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
}
.btn-nav-signup:hover {
    background: var(--accent-peach-hover);
    transform: translateY(-1px);
}

/* Main Container */
.landing-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 2rem 5rem;
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 960px) {
    .hero-section {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.hero-content {
    max-width: 580px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
    .hero-headline {
        font-size: 3.75rem;
    }
}

.hero-accent {
    color: var(--accent-peach);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent-peach);
    color: #12091A;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(255, 155, 125, 0.3);
    margin-bottom: 3rem;
}

.btn-hero-cta:hover {
    background: var(--accent-peach-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 155, 125, 0.4);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.hero-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.hero-feature-item span.material-symbols-outlined {
    color: var(--accent-peach);
    font-size: 2rem;
}

.hero-feature-item span:not(.material-symbols-outlined) {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero Image & Neon */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    object-fit: contain;
    z-index: 1;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
}

.neon-sign {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    text-shadow: 0 0 10px rgba(255, 155, 125, 0.8), 0 0 20px rgba(255, 155, 125, 0.6);
}

.neon-icon {
    font-size: 3rem;
    color: var(--accent-peach);
    margin-bottom: -10px;
}

.neon-text {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px var(--accent-peach);
}

.neon-badge {
    background: rgba(255, 155, 125, 0.1);
    border: 1px solid var(--accent-peach);
    color: var(--accent-peach);
    padding: 0.25rem 1rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-top: -5px;
    box-shadow: inset 0 0 10px rgba(255, 155, 125, 0.3);
}

/* Narrators Section */
.narrators-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.narrators-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.section-sparkle {
    color: var(--accent-peach);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.narrators-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.narrators-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
}

@media (min-width: 900px) {
    .narrators-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.narrator-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    min-height: 480px;
}

.narrator-card:hover {
    border-color: rgba(139, 92, 246, 0.3); /* Violet glow on hover */
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.narrator-card-content {
    padding: 0 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 2;
    background: none;
}

.narrator-header-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.narrator-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gal-card .narrator-icon { color: #A855F7; }
.tsundere-card .narrator-icon { color: var(--accent-peach); }

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

.n-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.gal-card .n-tag {
    background: rgba(168, 85, 247, 0.1);
    color: #C084FC;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.tsundere-card .n-tag {
    background: rgba(255, 155, 125, 0.1);
    color: var(--accent-peach);
    border: 1px solid rgba(255, 155, 125, 0.2);
}

.narrator-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 100%;
}

.narrator-demo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-play-demo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

.gal-card .btn-play-demo span { color: #C084FC; }
.tsundere-card .btn-play-demo span { color: var(--accent-peach); }

.demo-waveform {
    display: flex;
    align-items: center;
    opacity: 0.5;
}

.gal-card .demo-waveform { color: #C084FC; }
.tsundere-card .demo-waveform { color: var(--accent-peach); }

.narrator-quote {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    max-width: 100%;
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1;
    font-weight: 800;
    opacity: 0.2;
}

.gal-card .quote-mark { color: #A855F7; }
.tsundere-card .quote-mark { color: var(--accent-peach); }

.narrator-quote p {
    font-style: italic;
    color: var(--text-primary);
    font-weight: 500;
    padding-top: 0.5rem;
}

.narrator-image {
    order: -1;
    width: 100%;
    height: 350px;
    object-fit: contain;
    object-position: bottom center;
    z-index: 1;
    margin-top: 1.5rem;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

/* Bottom Features Strip */
.bottom-features-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

@media (min-width: 768px) {
    .bottom-features-strip {
        grid-template-columns: repeat(3, 1fr);
    }
}

.b-feature {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
}

.b-icon {
    color: var(--accent-violet); /* Using secondary accent here for balance */
    font-size: 1.75rem;
}

.b-text h4 {
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.b-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS OVERRIDES
   ════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .landing-header {
        padding: 1rem;
    }
    
    .landing-main {
        padding: 1rem 1rem 3rem;
        gap: 4rem;
    }

    .hero-headline {
        font-size: 2.25rem;
    }
    
    .neon-text {
        font-size: 2.5rem;
    }
    
    .neon-icon {
        font-size: 2.5rem;
    }
    
    .neon-sign {
        top: -25px;
    }
    
    .btn-hero-cta {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-features {
        gap: 1.5rem;
        justify-content: center;
    }
    
    .hero-feature-item {
        flex: 1 1 120px;
    }

    .hero-image-wrapper {
        order: -1;
        margin-bottom: 1rem;
    }

    .narrator-image {
        height: 250px;
        margin-top: 0;
    }
    
    .narrator-card-content {
        padding: 0 1.5rem 1.5rem;
    }
    
    .narrator-name {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .bottom-features-strip {
        padding: 2rem 0;
        gap: 1.5rem;
    }
    
    .b-feature {
        justify-content: flex-start;
    }
}
