/* ═══════════════════════════════════════════════════════════════════════════════
   GlobalTV — User Website Stylesheet
   Netflix-inspired premium dark theme with glassmorphism and animations
   ═══════════════════════════════════════════════════════════════════════════════ */

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

/* ── Variables ────────────────────────────────────────────────────────────────── */
:root {
    --bg: #141414;
    --bg-card: rgba(20, 20, 20, 0.85);
    --bg-card-solid: #181818;
    --bg-glass: rgba(0, 0, 0, 0.6);
    --accent: #E50914;
    --accent-light: #F40612;
    --accent-dark: #B20710;
    --accent-glow: rgba(229, 9, 20, 0.2);
    --gradient: linear-gradient(135deg, #E50914, #B20710);
    --gradient-warm: #E50914; /* No gradient text for Netflix feel */
    --text: #FFFFFF;
    --text-dim: #B3B3B3;
    --text-muted: #808080;
    --border: rgba(255, 255, 255, 0.1);
    --success: #2EAA45;
    --danger: #E50914;
    --warning: #FFA00A;
    --radius: 8px;
    --radius-sm: 4px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--accent-light); }

::selection { background: var(--accent); color: #fff; }

/* ── Navbar ───────────────────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 14, 20, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 24px;
    font-weight: 900;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1.5px;
}

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

.nav-links a {
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover { color: var(--text); }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--accent);
    color: #fff !important;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    transform: scale(1.05);
    background: var(--accent-light);
    color: #fff !important;
}

/* ── Hero Section ─────────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/cinematic_bg.png');
    background-size: cover;
    background-position: center top;
    opacity: 0.4;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-text h1 .gradient-text {
    color: var(--accent);
}

.hero-text p {
    font-size: 18px;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 500px;
}

.hero-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-dim);
    backdrop-filter: blur(10px);
}

.hero-badge i { color: var(--accent); font-size: 11px; }

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-hero-primary {
    background: var(--accent);
    color: #fff;
}

.btn-hero-primary:hover {
    transform: scale(1.05);
    background: var(--accent-light);
    color: #fff;
}

.btn-hero-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-hero-outline:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
    color: var(--text);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-device {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/10;
    background: linear-gradient(145deg, #1a1f29, #0d1117);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    animation: deviceFloat 6s ease-in-out infinite;
}

@keyframes deviceFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-device-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}

.hero-device-screen .play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 8px 30px var(--accent-glow);
    animation: playPulse 2s ease-in-out infinite;
}

@keyframes playPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 30px var(--accent-glow); }
    50% { transform: scale(1.08); box-shadow: 0 12px 40px rgba(0, 180, 216, 0.35); }
}

.hero-device-screen .device-label {
    font-size: 18px;
    font-weight: 800;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

/* ── Sections ─────────────────────────────────────────────────────────────────── */
.section {
    padding: 100px 0;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
}

/* ── Features ─────────────────────────────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    border-color: rgba(0, 180, 216, 0.2);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
}

/* ── Pricing ──────────────────────────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--accent-glow);
}

.pricing-card.featured::before {
    content: 'Popular';
    position: absolute;
    top: 16px;
    right: -32px;
    background: var(--gradient);
    color: #fff;
    padding: 4px 40px;
    font-size: 11px;
    font-weight: 700;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.pricing-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 4px;
    letter-spacing: -2px;
}

.pricing-price .currency { font-size: 24px; vertical-align: super; }
.pricing-price.free { color: var(--success); }

.pricing-duration {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li i {
    color: var(--accent);
    font-size: 12px;
    width: 16px;
}

.btn-pricing {
    width: 100%;
    padding: 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
}

.btn-pricing-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-pricing-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 180, 216, 0.35);
    color: #fff;
}

.btn-pricing-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.15);
}

.btn-pricing-outline:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
    color: #fff;
}

/* ── How It Works ─────────────────────────────────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 55px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent), transparent);
    opacity: 0.3;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.step-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.5;
}

/* ── Footer ───────────────────────────────────────────────────────────────────── */
.site-footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    background: rgba(10, 14, 20, 0.5);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-brand {
    font-size: 24px;
    font-weight: 900;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.footer-text {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    list-style: none;
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 13px;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
    color: var(--text-muted);
    font-size: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ── User Pages ───────────────────────────────────────────────────────────────── */
.page-wrapper {
    min-height: 100vh;
    padding-top: 80px;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    display: none;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 44px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

.auth-card h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-card .subtitle {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 28px;
}

/* ── Account Dashboard ────────────────────────────────────────────────────────── */
.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.account-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-card-header h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-card-header i { color: var(--accent); }

.account-card-body {
    padding: 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.info-row:last-child { border-bottom: none; }
.info-row .label { color: var(--text-dim); }
.info-row .value { font-weight: 600; }

/* ── Form Elements ────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-family: var(--font);
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 180, 216, 0.35);
}

/* ── Alerts ───────────────────────────────────────────────────────────────────── */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success { background: rgba(46,160,67,0.12); color: #3FB950; border: 1px solid rgba(46,160,67,0.2); }
.alert-danger { background: rgba(248,81,73,0.12); color: #F85149; border: 1px solid rgba(248,81,73,0.2); }
.alert-warning { background: rgba(210,153,34,0.12); color: #D29922; border: 1px solid rgba(210,153,34,0.2); }
.alert-info { background: rgba(0,180,216,0.12); color: var(--accent); border: 1px solid rgba(0,180,216,0.2); }

/* ── Status badge ─────────────────────────────────────────────────────────────── */
.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.status-active { background: rgba(46,160,67,0.12); color: #3FB950; }
.status-expired { background: rgba(248,81,73,0.12); color: #F85149; }
.status-none { background: rgba(255,255,255,0.06); color: var(--text-dim); }
.status-pending { background: rgba(210,153,34,0.12); color: #D29922; }
.status-online { background: rgba(46,160,67,0.12); color: #3FB950; }
.status-offline { background: rgba(255,255,255,0.06); color: var(--text-muted); }

/* ── Responsive ───────────────────────────────────────────────────────────────── */
@media (max-width: 968px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { margin: 0 auto 36px; }
    .hero-badges { justify-content: center; }
    .hero-cta { justify-content: center; }
    .hero-visual { display: none; }
    .hero-text h1 { font-size: 42px; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid::before { display: none; }
    .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .hero-text h1 { font-size: 32px; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .section-header h2 { font-size: 28px; }
    .nav-links { display: none; }
    .pricing-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 32px 24px; }
}

/* ── Animations ───────────────────────────────────────────────────────────────── */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.text-shimmer {
    background: linear-gradient(90deg, var(--text), var(--accent-light), var(--text));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}
