:root {
    --primary: #1a3a6e;
    --primary-dark: #0f2347;
    --secondary: #1565c0;
    --accent: #00b4d8;
    --accent2: #48cae4;
    --success: #2e7d32;
    --light-bg: #f0f6ff;
    --card-shadow: 0 4px 24px rgba(26,58,110,0.10);
    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #f8fafd;
    color: #1a2340;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* NAVBAR */
.es-navbar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--secondary) 100%);
    box-shadow: 0 2px 16px rgba(26,58,110,0.18);
    padding: 10px 0;
}
.es-navbar .navbar-brand { font-size: 1.35rem; font-weight: 800; color: #fff !important; text-decoration: none; }
.brand-text { color: #fff; }
.brand-accent { color: var(--accent); }
.es-navbar .nav-link { color: rgba(255,255,255,0.85) !important; font-weight: 500; border-radius: 8px; padding: 6px 14px !important; transition: all .2s; }
.es-navbar .nav-link:hover { color: #fff !important; background: rgba(255,255,255,0.12); }
.btn-login { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--primary-dark) !important; font-weight: 700; border-radius: 22px; padding: 8px 22px !important; border: none; transition: all .2s; }
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,180,216,.35); }
.btn-logout { color: rgba(255,255,255,0.7) !important; border: 1px solid rgba(255,255,255,0.25); border-radius: 22px; }
.btn-logout:hover { background: rgba(255,255,255,0.1); color: #fff !important; }

/* HERO */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--secondary) 100%);
    color: #fff;
    padding: 90px 0 70px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300b4d8' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge { background: rgba(0,180,216,.18); border: 1px solid var(--accent); color: var(--accent2); padding: 5px 18px; border-radius: 20px; font-size: .85rem; font-weight: 600; display: inline-block; margin-bottom: 18px; }
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.15; }
.hero-title span { color: var(--accent); }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.82); max-width: 540px; }
.hero-cta { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--primary-dark); font-weight: 800; padding: 14px 36px; border-radius: 30px; text-decoration: none; font-size: 1.05rem; border: none; display: inline-block; transition: all .2s; box-shadow: 0 4px 20px rgba(0,180,216,.4); }
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,180,216,.5); color: var(--primary-dark); }
.hero-logo-wrap { display: flex; justify-content: center; align-items: center; }
.hero-logo-wrap img { max-width: 320px; filter: drop-shadow(0 8px 32px rgba(0,180,216,0.3)); }

/* STATS BAR */
.stats-bar { background: #fff; box-shadow: var(--card-shadow); border-radius: var(--radius); padding: 24px; margin-top: -32px; position: relative; z-index: 10; }
.stat-item { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 900; color: var(--secondary); line-height: 1; }
.stat-label { font-size: .82rem; color: #6b7a99; font-weight: 500; }

/* SECTIONS */
.section-title { font-size: 1.9rem; font-weight: 800; color: var(--primary); }
.section-title span { color: var(--accent); }
.section-sub { color: #5a6a8a; font-size: 1rem; }

/* FEATURE CARDS */
.feature-card { background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 32px 24px; text-align: center; border: 1.5px solid transparent; transition: all .25s; height: 100%; }
.feature-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 36px rgba(26,58,110,0.13); }
.feature-icon { width: 68px; height: 68px; background: linear-gradient(135deg, var(--secondary), var(--accent)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 1.7rem; color: #fff; }
.feature-card h5 { font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.feature-card p { color: #6b7a99; font-size: .92rem; margin: 0; }

/* STEPS */
.step-card { background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 28px 20px; text-align: center; position: relative; height: 100%; }
.step-num { width: 48px; height: 48px; background: linear-gradient(135deg, var(--secondary), var(--accent)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 1.3rem; font-weight: 900; color: #fff; }
.step-card h6 { font-weight: 700; color: var(--primary); }
.step-card p { font-size: .88rem; color: #6b7a99; margin: 0; }

/* TERMS */
.terms-list { list-style: none; padding: 0; }
.terms-list li { padding: 10px 0; border-bottom: 1px solid #e8eef8; display: flex; gap: 12px; align-items: flex-start; }
.terms-list li:last-child { border-bottom: none; }
.terms-list .check { color: var(--accent); font-size: 1.05rem; margin-top: 2px; flex-shrink: 0; }

/* LOGIN PAGE */
.login-page { min-height: 85vh; display: flex; align-items: center; background: linear-gradient(135deg, #f0f6ff 0%, #e3f0ff 100%); }
.login-card { background: #fff; border-radius: 20px; box-shadow: 0 8px 48px rgba(26,58,110,0.13); padding: 44px; max-width: 420px; width: 100%; }
.login-card .logo-wrap { text-align: center; margin-bottom: 28px; }
.login-card h3 { text-align: center; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.login-card .subtitle { text-align: center; color: #6b7a99; font-size: .92rem; margin-bottom: 28px; }
.form-control, .form-select { border-radius: 10px; border: 1.5px solid #d0dbed; padding: 10px 14px; font-size: .97rem; transition: border-color .2s; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,180,216,.13); }
.btn-primary-es { background: linear-gradient(135deg, var(--secondary), var(--accent)); border: none; border-radius: 10px; padding: 12px; font-weight: 700; font-size: 1rem; color: #fff; width: 100%; transition: all .2s; }
.btn-primary-es:hover { opacity: .92; transform: translateY(-1px); }
label.form-label { font-weight: 600; font-size: .88rem; color: #3a4a6a; margin-bottom: 5px; }

/* DASHBOARD */
.dashboard-header { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: 40px 0 30px; }
.dashboard-header h2 { font-weight: 800; font-size: 1.7rem; }
.welcome-badge { background: rgba(0,180,216,.18); border: 1px solid var(--accent); color: var(--accent2); padding: 4px 14px; border-radius: 14px; font-size: .82rem; font-weight: 600; display: inline-block; margin-bottom: 8px; }
.stat-card { background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 24px; border-left: 4px solid var(--accent); }
.stat-card .icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 12px; }
.card-es { background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); border: none; }
.card-es .card-header { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; border-radius: var(--radius) var(--radius) 0 0 !important; font-weight: 700; padding: 16px 22px; border: none; }

/* COUNTDOWN */
.countdown-wrap { background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 16px; padding: 32px; color: #fff; text-align: center; }
.countdown-num { font-size: 3.5rem; font-weight: 900; line-height: 1; }
.countdown-label { font-size: .9rem; opacity: .82; margin-top: 4px; }
.progress-es { height: 12px; border-radius: 6px; background: rgba(255,255,255,.2); overflow: hidden; }
.progress-es .bar { height: 100%; background: linear-gradient(90deg, #fff, var(--accent2)); border-radius: 6px; transition: width 1s ease; }

/* STATUS BADGES */
.badge-pending { background: #fff3cd; color: #856404; padding: 4px 12px; border-radius: 20px; font-size: .8rem; font-weight: 600; }
.badge-inreview { background: #cfe2ff; color: #084298; padding: 4px 12px; border-radius: 20px; font-size: .8rem; font-weight: 600; }
.badge-accepted { background: #d1e7dd; color: #0a3622; padding: 4px 12px; border-radius: 20px; font-size: .8rem; font-weight: 600; }
.badge-rejected { background: #f8d7da; color: #58151c; padding: 4px 12px; border-radius: 20px; font-size: .8rem; font-weight: 600; }
.badge-active { background: #d1e7dd; color: #0a3622; padding: 4px 12px; border-radius: 20px; font-size: .8rem; font-weight: 600; }
.badge-blocked { background: #f8d7da; color: #58151c; padding: 4px 12px; border-radius: 20px; font-size: .8rem; font-weight: 600; }
.badge-inactive { background: #e2e3e5; color: #41464b; padding: 4px 12px; border-radius: 20px; font-size: .8rem; font-weight: 600; }

/* ADMIN SIDEBAR TABLE */
.table-es thead th { background: var(--primary); color: #fff; font-weight: 600; font-size: .88rem; border: none; padding: 12px 16px; }
.table-es tbody tr:hover { background: #f0f6ff; }
.table-es td { vertical-align: middle; font-size: .9rem; padding: 10px 16px; }

/* FORM SECTIONS */
.form-section { background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 28px; margin-bottom: 24px; }
.form-section-title { font-size: 1rem; font-weight: 700; color: var(--primary); border-bottom: 2px solid var(--accent); padding-bottom: 10px; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }

/* PROFILE HEADER */
.profile-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: 48px 0 36px; }

/* FOOTER */
.es-footer { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }

/* PLAN PAGE */
.plan-card { background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%); border: 2px solid var(--accent); border-radius: 20px; box-shadow: 0 8px 40px rgba(26,58,110,0.12); }
.plan-badge { background: linear-gradient(135deg, var(--secondary), var(--accent)); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 16px; border-radius: 20px; display: inline-block; margin-bottom: 12px; }
.free-tag { font-size: 3rem; font-weight: 900; color: var(--secondary); line-height: 1; }
.free-tag small { font-size: 1rem; font-weight: 500; color: #6b7a99; }
.plan-feature { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: .95rem; }
.plan-feature i { color: var(--accent); width: 20px; }
.btn-activate { background: linear-gradient(135deg, var(--secondary), var(--accent)); border: none; border-radius: 12px; padding: 14px 40px; font-weight: 800; font-size: 1.1rem; color: #fff; transition: all .2s; }
.btn-activate:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,180,216,.4); color: #fff; }

/* ADMIN DASHBOARD CARDS */
.admin-stat { background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 22px; text-align: center; border-top: 4px solid var(--accent); }
.admin-stat .big-num { font-size: 2.5rem; font-weight: 900; color: var(--primary); line-height: 1; }
.admin-stat .label { color: #6b7a99; font-size: .85rem; margin-top: 4px; font-weight: 500; }

@media (max-width: 768px) {
    .hero-section { padding: 56px 0 48px; text-align: center; }
    .hero-sub { margin: 0 auto; }
    .hero-logo-wrap { margin-top: 32px; }
    .hero-logo-wrap img { max-width: 220px; }
    .stats-bar { margin-top: 0; border-radius: 0; }
    .countdown-num { font-size: 2.8rem; }
    .login-card { padding: 28px 18px; }
    .dashboard-header { padding: 28px 0 20px; }
}
