/* ============================================
   AtreusTV — Blue Noir Design System
   Premium IPTV Streaming Platform
   ============================================ */

/* ---- Custom Properties ---- */
@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

:root {
    --bg: #000000;
    --bg-card: #0a0a0a;
    --bg-elevated: #111111;
    --bg-input: #0e0e0e;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    --red: #523173;
    --red-hover: #3d2456;
    --red-glow: rgba(82, 49, 115, 0.5);
    --green: #46d369;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    --transition: 0.2s ease;
    --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

/* Override Bootstrap 5.3 dark theme variables.
   Must use :root (specificity 0-1-0) to beat Bootstrap's own :root block.
   Placing them in app.css which loads AFTER Bootstrap's CDN ensures cascade wins. */
:root {
    --bs-body-bg:              #000000;
    --bs-body-bg-rgb:          0, 0, 0;
    --bs-body-color:           #ffffff;
    --bs-body-color-rgb:       255, 255, 255;
    --bs-secondary-bg:         #111111;
    --bs-tertiary-bg:          #0a0a0a;
    --bs-border-color:         rgba(255,255,255,0.08);
    --bs-border-color-translucent: rgba(255,255,255,0.08);
    --bs-card-bg:              #0a0a0a;
    --bs-card-border-color:    rgba(255,255,255,0.08);
    --bs-card-cap-bg:          #0a0a0a;
    --bs-dropdown-bg:          #111111;
    --bs-dropdown-border-color: rgba(255,255,255,0.12);
    --bs-dropdown-link-color:  #a1a1aa;
    --bs-dropdown-link-hover-bg: rgba(255,255,255,0.06);
    --bs-dropdown-link-hover-color: #ffffff;
    --bs-dropdown-link-active-bg: #523173;
    --bs-dropdown-link-active-color: #ffffff;
    --bs-form-control-bg:      rgba(255,255,255,0.04);
    --bs-form-select-bg:       rgba(255,255,255,0.04);
    --bs-input-bg:             rgba(255,255,255,0.04);
    --bs-input-color:          #ffffff;
    --bs-input-border-color:   rgba(255,255,255,0.08);
    --bs-input-placeholder-color: #52525b;
    --bs-modal-bg:             #0a0a0a;
    --bs-modal-content-bg:     #0a0a0a;
    --bs-modal-content-border-color: rgba(255,255,255,0.12);
    --bs-modal-header-border-color: rgba(255,255,255,0.08);
    --bs-modal-footer-border-color: rgba(255,255,255,0.08);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent horizontal overflow — must be on html AND body */
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-secondary);
    color-scheme: dark;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--text-secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }
::selection { background: var(--red); color: #fff; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #222; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* ============================================
   GLOBAL BACKGROUND (Stars + Grid + Glow)
   ============================================ */
@keyframes animStar {
    from { transform: translateY(0); }
    to { transform: translateY(-2000px); }
}

.global-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden; /* clip stars/glow that extend beyond viewport */
}

.global-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #05081a 0%, #000 100%);
}

.global-bg .stars-layer {
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
}

.stars-1 {
    width: 1px;
    height: 1px;
    box-shadow:
        234px 124px #fff, 654px 345px #fff, 876px 12px #fff,
        1200px 800px #fff, 400px 1500px #fff, 1800px 200px #fff,
        100px 1000px #fff, 900px 1900px #fff, 500px 600px #fff,
        1400px 100px #fff, 300px 400px #fff, 1600px 1200px #fff,
        50px 700px #fff, 750px 50px #fff, 1100px 1400px #fff;
    animation: animStar 50s linear infinite;
}

.stars-2 {
    width: 2px;
    height: 2px;
    box-shadow:
        123px 456px #fff, 789px 234px #fff, 456px 890px #fff,
        1100px 300px #fff, 200px 1200px #fff, 1500px 500px #fff,
        600px 1700px #fff, 1300px 900px #fff;
    animation: animStar 80s linear infinite;
}

.global-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: rgba(82, 49, 115, 0.04);
    border-radius: 50%;
    filter: blur(120px);
}

.global-bg-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 75%);
}

/* ---- Top Gradient Blur ---- */
.gradient-blur-top {
    position: fixed;
    z-index: 40;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent);
    backdrop-filter: blur(6px);
    mask-image: linear-gradient(to bottom, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}

/* ============================================
   NAVBAR — Glass Pill
   ============================================ */
.navbar-mf {
    background: transparent;
    border: none;
    padding: 1.25rem 1rem;
    z-index: 1050;
    transition: all 0.4s ease;
}

.navbar-mf .container {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.5rem 1.25rem;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.navbar-mf.scrolled .container {
    background: rgba(0, 0, 0, 0.75);
    border-color: var(--border-hover);
}

.navbar-mf .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-mf .navbar-brand:hover { color: #fff; }

.navbar-mf .navbar-brand .brand-icon {
    width: 22px;
    height: 22px;
    background: var(--red);
    border-radius: 4px;
    transform: rotate(45deg);
    flex-shrink: 0;
}

.navbar-mf .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5rem 0.9rem !important;
    transition: color var(--transition);
}

.navbar-mf .nav-link:hover,
.navbar-mf .nav-link.active {
    color: #fff !important;
}

.navbar-mf .nav-link i { display: none; }

/* ---- Nav CTA Button (spinning border) ---- */
.btn-nav-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-full);
    padding: 0.4rem 1.2rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    cursor: pointer;
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: transform 0.15s;
    text-decoration: none;
}

.btn-nav-cta:hover { color: #fff; }
.btn-nav-cta:active { transform: scale(0.96); }

.btn-nav-cta::before {
    content: '';
    position: absolute;
    inset: -100%;
    background: conic-gradient(from 90deg at 50% 50%, transparent 0%, transparent 75%, var(--red) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    animation: spin-border 3s linear infinite;
}

.btn-nav-cta:hover::before { opacity: 1; }

.btn-nav-cta::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: var(--radius-full);
    background: #000;
}

.btn-nav-cta span {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

@keyframes spin-border { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---- Login link ---- */
.btn-login {
    color: var(--text-secondary) !important;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem !important;
    transition: color var(--transition);
}
.btn-login:hover { color: #fff !important; }

.btn-register {
    background: var(--red);
    color: #fff !important;
    border-radius: var(--radius-full);
    padding: 0.4rem 1.2rem !important;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    transition: background var(--transition);
}
.btn-register:hover { background: var(--red-hover); color: #fff !important; }

/* ============================================
   BUTTONS
   ============================================ */
.btn-mf {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    font-size: 0.95rem;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-mf-primary {
    background: var(--red);
    color: #fff;
}
.btn-mf-primary:hover {
    background: var(--red-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn-mf-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
}
.btn-mf-outline:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
    transform: translateY(-1px);
}

.btn-mf-secondary {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: #fff;
}
.btn-mf-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--border-hover);
    color: #fff;
}

.btn-mf-gradient { background: var(--red); color: #fff; border: none; }
.btn-mf-gradient:hover { background: var(--red-hover); color: #fff; transform: translateY(-1px); }

.btn-mf-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-mf-lg { padding: 1rem 2.5rem; font-size: 1rem; }

/* ---- Shiny CTA Button (spinning gradient border) ---- */
.shiny-cta {
    --gradient-angle: 0deg;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-full);
    padding: 1rem 2.5rem;
    background:
        linear-gradient(#000, #000) padding-box,
        conic-gradient(from var(--gradient-angle), transparent 0%, var(--red) 5%, var(--red) 15%, var(--red) 30%, transparent 40%, transparent 100%) border-box;
    border: 2px solid transparent;
    cursor: pointer;
    isolation: isolate;
    animation: border-spin 2.5s linear infinite;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.15s;
}

.shiny-cta:hover { color: #fff; transform: translateY(-1px); }
.shiny-cta:active { transform: scale(0.97); }

@keyframes border-spin {
    from { --gradient-angle: 0deg; }
    to { --gradient-angle: 360deg; }
}

/* ============================================
   SECTIONS
   ============================================ */
.section-mf {
    padding: 5rem 0;
    position: relative;
}

.section-mf-dark {
    background: rgba(255,255,255,0.01);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    color: #fff;
}

.section-subtitle {
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
}

.section-tag {
    display: inline-block;
    color: var(--red);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.fw-900 { font-weight: 900 !important; }

/* ============================================
   CARDS — Glass / Border style
   ============================================ */
.card-mf {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

.card-mf:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* ---- Feature Cards ---- */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    background: radial-gradient(circle at top right, var(--red), transparent 70%);
}

.feature-card:hover::after { opacity: 0.05; }

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
    color: var(--red);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.feature-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---- Feature Cards Bento ---- */
.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: border-color var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.bento-card:hover {
    border-color: var(--border-hover);
}

.bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.bento-card:hover::after { opacity: 0.08; }

.bento-card-red::after { background: radial-gradient(circle at top right, var(--red), transparent 70%); }
.bento-card-blue::after { background: radial-gradient(circle at top right, #3b82f6, transparent 70%); }
.bento-card-yellow::after { background: radial-gradient(circle at top right, #eab308, transparent 70%); }
.bento-card-purple::after { background: radial-gradient(circle at top right, #a855f7, transparent 70%); }

.bento-icon {
    display: inline-flex;
    padding: 0.75rem;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* ============================================
   PLAN CARDS
   ============================================ */
.plan-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: border-color var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    border-color: rgba(255,255,255,0.12);
}

.plan-card.popular {
    border-color: var(--red);
    background: rgba(82, 49, 115, 0.03);
    box-shadow: 0 0 30px rgba(82, 49, 115, 0.08);
    transform: scale(1.03);
    z-index: 2;
}

.plan-card.popular::before {
    content: 'RECOMENDADO';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red);
    color: #fff;
    padding: 0.2rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.plan-card.popular:hover {
    border-color: var(--red);
}

.plan-price {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin: 1rem 0 0.25rem;
}

.plan-price-currency {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-price-original {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

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

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

.plan-features li {
    padding: 0.55rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
}

.plan-features li i {
    color: var(--red);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ============================================
   TUTORIAL CARDS
   ============================================ */
.tutorial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
    height: 100%;
}

.tutorial-card:hover {
    border-color: var(--border-hover);
}

.tutorial-card-img {
    height: 180px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorial-card-img i {
    font-size: 3rem;
    color: var(--red);
}

.tutorial-card-body {
    padding: 1.5rem;
}

/* ============================================
   REBRAND / CREDIT CARDS
   ============================================ */
.rebrand-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
    height: 100%;
}
.rebrand-card:hover { border-color: var(--border-hover); }

.rebrand-card-img {
    height: 200px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
}
.rebrand-card-img i { font-size: 3.5rem; color: var(--text-secondary); }
.rebrand-card-body { padding: 1.5rem; }
.rebrand-price { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; color: #fff; }

.credit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: border-color var(--transition);
    position: relative;
    height: 100%;
}
.credit-card.popular { border-color: var(--red); box-shadow: 0 0 30px rgba(0,180,216,0.08); }
.credit-card:hover { border-color: var(--border-hover); }
.credit-amount { font-family: var(--font-heading); font-size: 3rem; font-weight: 900; color: #fff; }

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card, .service-card-pro {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
    height: 100%;
}
.service-card:hover, .service-card-pro:hover { border-color: var(--border-hover); }

/* ============================================
   FORMS
   ============================================ */
.form-mf .form-control,
.form-mf .form-select,
.form-control,
.form-select {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid var(--border) !important;
    color: #fff !important;
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    transition: border-color var(--transition);
    font-size: 0.95rem;
    color-scheme: dark;
}

.form-mf .form-control:focus,
.form-mf .form-select:focus,
.form-control:focus,
.form-select:focus {
    background: rgba(255,255,255,0.04);
    border-color: var(--red);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(82, 49, 115, 0.2);
    outline: none;
}

.form-control::placeholder { color: var(--text-muted); }
.form-select option,
select option {
    background: #111111;
    color: #ffffff;
}
.form-label { font-weight: 500; color: var(--text-secondary); margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-text { color: var(--text-muted); }
.invalid-feedback, .error-text { color: var(--red); font-size: 0.85rem; }

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg);
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #fff;
}

.auth-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 2rem; }

.google-btn {
    background: #fff;
    color: #333;
    border: none;
    border-radius: var(--radius);
    padding: 0.75rem;
    width: 100%;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: background var(--transition);
}
.google-btn:hover { background: #e8e8e8; color: #333; }

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ============================================
   ALERTS
   ============================================ */
.alert-mf {
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    border: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.alert-mf-success { background: rgba(70,211,105,0.08); color: var(--green); border-left: 3px solid var(--green); }
.alert-mf-error { background: rgba(0,180,216,0.08); color: #7c5a9e; border-left: 3px solid var(--red); }
.alert-mf-info { background: rgba(100,100,255,0.06); color: #8888ff; border-left: 3px solid #6666cc; }
.alert-mf-warning { background: rgba(234,179,8,0.08); color: #eab308; border-left: 3px solid #eab308; }

/* Toast close button — evita herencia de Bootstrap */
#mf-toast button:hover,
#mf-toast button:focus { color: rgba(255,255,255,.7) !important; background: none !important; outline: none !important; }

/* ============================================
   HERO CAROUSEL
   ============================================ */
.hero-carousel {
    position: relative;
    height: 100vh;
    min-height: 560px;
    max-height: 900px;
    overflow: hidden;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item { height: 100%; }

.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.35);
}

.hero-carousel .carousel-indicators { bottom: 30px; z-index: 4; }
.hero-carousel .carousel-indicators button {
    width: 30px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.2);
    border: none;
    margin: 0 3px;
    transition: 0.3s;
}
.hero-carousel .carousel-indicators button.active {
    background: var(--red);
    width: 45px;
}
.carousel-fade .carousel-item { transition: opacity 1.2s ease-in-out; }

.hero-carousel-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 3rem;
}

/* ============================================
   HERO BADGE (live dot)
   ============================================ */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.3rem 1rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.hero-badge-dot {
    position: relative;
    width: 8px;
    height: 8px;
}

.hero-badge-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--red);
}

.hero-badge-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--red);
    animation: badge-ping 1.5s ease-in-out infinite;
}

@keyframes badge-ping {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

.hero-badge-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.03em;
}

/* ============================================
   TESTIMONIAL BANNER (Red Block)
   ============================================ */
.testimonial-banner {
    background: var(--red);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.testimonial-banner blockquote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
    line-height: 1.4;
    margin-bottom: 2rem;
}

/* ============================================
   PAGE HEADERS
   ============================================ */
.page-header {
    position: relative;
    padding: 10rem 0 4rem;
    overflow: hidden;
    text-align: center;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top, rgba(0,180,216,0.06) 0%, transparent 60%);
}

.page-header-content {
    position: relative;
    z-index: 3;
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.015);
    backdrop-filter: blur(4px);
    padding: 2rem 0;
    opacity: 0.5;
    transition: opacity 0.4s;
}
.trust-bar:hover { opacity: 1; }

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
}

.trust-item i, .trust-item .trust-dot {
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}
.trust-item i.trust-icon {
    background: rgba(0,180,216,0.15);
    border: 1px solid rgba(0,180,216,0.3);
    color: var(--red);
    font-size: 0.65rem;
}

/* ============================================
   DEVICE BADGES
   ============================================ */
.device-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

/* ============================================
   MOVIE ROWS (Netflix scroll)
   ============================================ */
.movie-section { padding: 2.5rem 0 1rem; }

.movie-row-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    padding-left: 0.25rem;
}
.movie-row-title i { margin-right: 0.4rem; }

.movie-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 2.25rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.movie-row::-webkit-scrollbar { height: 4px; }
.movie-row::-webkit-scrollbar-track { background: transparent; }
.movie-row::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }

.movie-poster {
    flex: 0 0 auto;
    display: block;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.25s ease;
}
.movie-poster:hover { transform: scale(1.07); z-index: 2; }
.movie-poster img {
    display: block;
    width: 175px;
    height: 260px;
    object-fit: cover;
    border-radius: 6px;
}

/* ============================================
   FOOTER — with huge brand text
   ============================================ */
.footer-mf {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 5rem 0 0;
    position: relative;
    overflow: hidden;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all var(--transition);
}
.footer-social:hover { background: var(--red); border-color: var(--red); color: #fff; }

.footer-huge-text {
    text-align: center;
    padding: 3rem 0 2rem;
    pointer-events: none;
    user-select: none;
}

.footer-huge-text h2 {
    font-family: var(--font-heading);
    font-size: 13vw;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    -webkit-text-stroke: 1px rgba(255,255,255,0.06);
    color: transparent;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.fade-in-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }

.fade-in-right {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.scale-in.visible { opacity: 1; transform: scale(1); }

.stagger > * {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.6s; }
.stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */

/* ---- Tablet / large mobile (≤992px) ---- */
@media (max-width: 992px) {
    /* Navbar — flatten pill to rounded rect */
    .navbar-mf { padding: 0.75rem 1rem; }
    .navbar-mf .container {
        border-radius: var(--radius-lg);
        padding: 0.5rem 1rem;
    }
    /* Collapse menu: stack inside the glass container */
    .navbar-mf .navbar-collapse {
        border-top: 1px solid var(--border);
        margin-top: 0.5rem;
        padding-top: 0.75rem;
        padding-bottom: 0.25rem;
    }
    .navbar-mf .navbar-nav {
        flex-direction: column;
        gap: 0;
        margin: 0 !important;
    }
    .navbar-mf .nav-link {
        padding: 0.6rem 0.5rem !important;
        border-radius: var(--radius);
    }
    .navbar-mf .nav-link:hover { background: rgba(255,255,255,0.04); }
    .navbar-mf .nav-link i { display: inline; margin-right: 0.4rem; }
    /* Auth buttons — wrap to new row */
    .navbar-mf .d-flex.gap-2.align-items-center {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.5rem !important;
        padding: 0.5rem 0 0.25rem;
    }

    /* Hero */
    .hero-carousel { height: 75vh; min-height: 480px; }
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item { height: 75vh; }
    .hero-carousel-content { padding-top: 70px; }

    /* Sections */
    .section-title { font-size: 2rem; }
    .section-subtitle { font-size: 0.95rem; }

    /* Plans */
    .plan-card.popular { transform: none; }

    /* Movies */
    .movie-poster img { width: 150px; height: 225px; }

    /* Testimonial */
    .testimonial-banner blockquote { font-size: 1.4rem; }

    /* Footer */
    .footer-huge-text h2 { font-size: 15vw; }
}

/* ---- Mobile (≤768px) ---- */
@media (max-width: 768px) {
    /* Sections */
    .section-mf { padding: 3rem 0; }
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 0.9rem; margin-bottom: 2rem; }

    /* Hero */
    .hero-carousel { height: 65vh; min-height: 420px; }
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item { height: 65vh; }
    .hero-carousel-content { padding-top: 60px; }
    .hero-carousel .carousel-indicators { bottom: 20px; }

    /* Hero buttons — reduce size */
    .hero-carousel-content .shiny-cta,
    .hero-carousel-content .btn-mf-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    .hero-carousel-content .d-flex.gap-3 { gap: 0.75rem !important; }

    /* Plan prices */
    .plan-price { font-size: 2.5rem; }

    /* Auth */
    .auth-card { padding: 2rem; }

    /* Page headers */
    .page-header { padding: 8rem 0 3rem; }

    /* Testimonial */
    .testimonial-banner { padding: 3rem 0; }
    .testimonial-banner blockquote { font-size: 1.2rem; }

    /* Free trial bento: reduce inner padding on mobile */
    .bento-card.bento-card-red .row.g-0 > [class*="col-lg-"] {
        padding: 2rem !important;
    }

    /* Movies */
    .movie-poster img { width: 130px; height: 195px; }

    /* Footer */
    .footer-mf { padding: 3rem 0 0; }
    .footer-huge-text h2 { font-size: 18vw; }
}

/* ---- Small mobile (≤576px) ---- */
@media (max-width: 576px) {
    /* Navbar — tighter on very small screens */
    .navbar-mf { padding: 0.5rem 0.75rem; }
    .navbar-mf .container { padding: 0.4rem 0.75rem; border-radius: var(--radius); }

    /* Sections */
    .section-mf { padding: 2.5rem 0; }
    .section-title { font-size: 1.5rem; letter-spacing: -0.02em; }
    .section-subtitle { font-size: 0.875rem; margin-bottom: 1.5rem; }
    .section-tag { font-size: 0.65rem; letter-spacing: 2px; }

    /* Hero */
    .hero-carousel { height: 92vh; min-height: 560px; }
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item { height: 92vh; }
    .hero-carousel-content { padding-top: 50px; align-items: flex-end; padding-bottom: 4rem; }
    .hero-carousel .carousel-indicators { bottom: 1.5rem; }
    .hero-badge { display: none; }

    /* Hero buttons — stack vertically on very small */
    .hero-carousel-content .d-flex.gap-3.flex-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem !important;
    }
    .hero-carousel-content .shiny-cta,
    .hero-carousel-content .btn-mf-lg {
        padding: 0.7rem 1.4rem;
        font-size: 0.875rem;
        width: 100%;
        justify-content: center;
    }

    /* Plans */
    .plan-price { font-size: 2.25rem; }
    .plan-card { padding: 1.5rem; }

    /* Bento / trial */
    .bento-card.bento-card-red .row.g-0 > [class*="col-lg-"] {
        padding: 1.5rem !important;
    }
    .bento-card { padding: 1.25rem; }

    /* Auth */
    .auth-card { padding: 1.5rem; }
    .auth-title { font-size: 1.5rem; }

    /* Page headers */
    .page-header { padding: 6rem 0 2rem; }

    /* Testimonial */
    .testimonial-banner blockquote { font-size: 1rem; }
    .testimonial-banner { padding: 2.5rem 0; }

    /* Buttons */
    .btn-mf-lg { padding: 0.8rem 1.5rem; font-size: 0.9rem; }

    /* Movies */
    .movie-poster img { width: 120px; height: 180px; }
    .movie-row-title { font-size: 1.1rem; }

    /* Footer */
    .footer-mf { padding: 2.5rem 0 0; }
    .footer-huge-text { padding: 1.5rem 0 1rem; }
    .footer-huge-text h2 { font-size: 20vw; }
    .footer-bottom { flex-direction: column; align-items: center; gap: 0.75rem; }

    /* Feature / bento cards */
    .feature-card { padding: 1.5rem; }
    .card-mf { padding: 1.5rem; }

    /* Trust bar */
    .trust-bar { padding: 1.25rem 0; }
    .trust-item { font-size: 0.78rem; }
}

/* Hide reCAPTCHA badge (v3 - invisible) */
.grecaptcha-badge { visibility: hidden !important; }
