:root {
  --navy-950: #061326;
  --navy-900: #0a1c34;
  --navy-800: #102b4f;
  --navy-700: #173b68;
  --gold-500: #e7ae32;
  --gold-400: #f2c45d;
  --cyan-500: #11bde8;
  --ink: #142033;
  --muted: #657083;
  --paper: #f6f8fb;
  --white: #fff;
  --success: #27a76f;
  --danger: #d85e62;
  --shadow: 0 18px 55px rgba(10, 28, 52, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.text-muted { color: var(--muted) !important; }
.text-gold { color: var(--gold-500); }
.eyebrow { color: var(--cyan-500); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.display-title { font-family: "Playfair Display", Georgia, serif; font-weight: 800; letter-spacing: -.035em; }
.section-space { padding: 5rem 0; }
.bg-navy { background: var(--navy-950); color: #fff; }
.bg-soft { background: #edf2f8; }

.site-nav { background: rgba(6, 19, 38, .96); border-bottom: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(12px); }
.site-nav .navbar-brand { color: #fff; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 46px; height: 46px; object-fit: cover; border-radius: 50%; border: 2px solid var(--gold-400); box-shadow: 0 0 0 4px rgba(231,174,50,.12); }
.site-nav .nav-link { color: rgba(255,255,255,.76); font-weight: 600; font-size: .92rem; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--gold-400); }
.navbar-toggler { border-color: rgba(255,255,255,.3); }
.navbar-toggler-icon { filter: invert(1); }
.utility-bar { background: #040d19; color: rgba(255,255,255,.68); font-size: .78rem; padding: .45rem 0; }

.btn { border-radius: .75rem; font-weight: 700; padding: .72rem 1.15rem; }
.btn-gold { color: var(--navy-950); background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); border: 0; box-shadow: 0 8px 24px rgba(231,174,50,.22); }
.btn-gold:hover { color: var(--navy-950); transform: translateY(-1px); }
.btn-cyan { color: var(--navy-950); background: var(--cyan-500); border: 0; }
.btn-outline-light:hover { color: var(--navy-950); }

.hero { position: relative; overflow: hidden; min-height: 720px; display: flex; align-items: center; color: #fff; background: radial-gradient(circle at 78% 25%, rgba(17,189,232,.20), transparent 25%), radial-gradient(circle at 20% 75%, rgba(231,174,50,.13), transparent 28%), linear-gradient(135deg, #061326 0%, #0b2442 58%, #061326 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, transparent, black 20%, black 70%, transparent); }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(3rem, 7vw, 6.4rem); line-height: .94; }
.hero p { color: rgba(255,255,255,.72); font-size: 1.1rem; max-width: 640px; }
.hero-visual { position: relative; min-height: 520px; }
.logo-orbit { position: absolute; width: min(420px, 85vw); aspect-ratio: 1; top: 45%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; padding: 18px; background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 42px 100px rgba(0,0,0,.35); }
.logo-orbit img { width: 100%; border-radius: 50%; }
.floating-stat { position: absolute; z-index: 2; padding: .85rem 1rem; border-radius: 1rem; background: rgba(7,22,41,.88); border: 1px solid rgba(255,255,255,.15); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.floating-stat strong { display: block; color: #fff; font-size: 1.25rem; }
.floating-stat small { color: rgba(255,255,255,.6); }
.stat-one { left: 0; top: 14%; }.stat-two { right: 0; bottom: 18%; }.stat-three { left: 8%; bottom: 6%; }

.market-strip { position: relative; z-index: 3; margin-top: -34px; }
.market-panel { background: #fff; border-radius: 1rem; box-shadow: var(--shadow); padding: 1.15rem; }
.market-item { border-right: 1px solid #e6eaf0; padding: .35rem 1.2rem; }
.market-item:last-child { border-right: 0; }
.market-item span { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.market-item strong { display: block; }
.up { color: var(--success); }.down { color: var(--danger); }

.page-hero { color: #fff; padding: 5.5rem 0 4rem; background: radial-gradient(circle at 80% 0, rgba(17,189,232,.18), transparent 30%), linear-gradient(135deg, var(--navy-950), var(--navy-800)); }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); }
.breadcrumb { color: rgba(255,255,255,.56); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

.feature-card, .content-card, .stat-card, .form-card { height: 100%; background: #fff; border: 1px solid #e8edf3; border-radius: 1.15rem; box-shadow: 0 10px 35px rgba(10,28,52,.06); }
.feature-card { padding: 1.7rem; transition: .2s ease; }
.feature-card:hover, .content-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: .9rem; color: var(--navy-950); background: linear-gradient(135deg, #fff2c9, var(--gold-400)); font-size: 1.25rem; }
.content-card { overflow: hidden; transition: .2s ease; }
.content-card .card-body { padding: 1.4rem; }
.video-thumb { position: relative; height: 210px; overflow: hidden; background: linear-gradient(135deg, var(--navy-800), #123d69); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.play-button { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--gold-400); color: var(--navy-950); font-size: 1.35rem; box-shadow: 0 12px 35px rgba(0,0,0,.28); }
.badge-soft { display: inline-flex; align-items: center; padding: .4rem .7rem; border-radius: 99px; color: var(--navy-700); background: #e9f1f8; font-size: .75rem; font-weight: 700; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #dfe6ef; }
.avatar-initial { display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(145deg, var(--navy-700), var(--cyan-500)); }
.quote-card { position: relative; padding: 2rem; }
.quote-card::before { content: "“"; position: absolute; right: 1.2rem; top: .25rem; color: #edf1f6; font: 7rem/1 Georgia,serif; }

.cta-panel { overflow: hidden; position: relative; padding: 3rem; border-radius: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); box-shadow: var(--shadow); }
.cta-panel::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; right: -100px; top: -150px; border: 55px solid rgba(231,174,50,.12); }

.filter-bar { background: #fff; border: 1px solid #e4eaf1; border-radius: 1rem; padding: 1rem; box-shadow: 0 8px 30px rgba(10,28,52,.05); }
.form-control, .form-select { border-color: #dce3eb; border-radius: .7rem; padding: .78rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--cyan-500); box-shadow: 0 0 0 .2rem rgba(17,189,232,.12); }
.cms-editor-shell { overflow: hidden; border: 1px solid #dce3eb; border-radius: .8rem; background: #fff; }
.cms-editor-tabs { display: flex; gap: .25rem; padding: .55rem .65rem 0; background: #f5f7fa; border-bottom: 1px solid #e1e6ed; }
.cms-editor-tabs .btn { border-radius: .5rem .5rem 0 0; color: var(--muted); }
.cms-editor-tabs .btn.active { color: var(--navy-950); background: #fff; border-color: #dce3eb #dce3eb #fff; }
.cms-editor-toolbar { display: flex; flex-wrap: wrap; gap: .35rem; padding: .65rem; border-bottom: 1px solid #e6ebf1; background: #fff; }
.cms-editor-toolbar .btn { color: var(--navy-700); background: #f4f7fa; border: 1px solid #dce3eb; }
.cms-editor-toolbar .btn:hover { color: #fff; background: var(--navy-700); }
.cms-editor { min-height: 320px; padding: 1.25rem; outline: 0; line-height: 1.7; }
.cms-editor:focus { box-shadow: inset 0 0 0 2px rgba(17,189,232,.3); }
.cms-editor h2, .cms-editor h3 { margin-top: 1.25rem; color: var(--navy-950); }
.cms-editor-source { min-height: 320px; border: 0; border-radius: 0; resize: vertical; }

.dashboard-shell { min-height: 100vh; background: #f3f6fa; }
.dashboard-sidebar { position: fixed; z-index: 1030; width: 270px; inset: 0 auto 0 0; overflow-y: auto; color: #fff; background: var(--navy-950); padding: 1.4rem 1rem; }
.dashboard-sidebar .nav-link { color: rgba(255,255,255,.66); border-radius: .7rem; padding: .75rem .85rem; margin: .15rem 0; }
.dashboard-sidebar .nav-link:hover, .dashboard-sidebar .nav-link.active { color: #fff; background: rgba(255,255,255,.10); }
.dashboard-sidebar .nav-link.active { border-left: 3px solid var(--gold-400); }
.dashboard-main { margin-left: 270px; min-height: 100vh; }
.dashboard-topbar { height: 76px; display: flex; align-items: center; background: #fff; border-bottom: 1px solid #e6ebf1; padding: 0 2rem; }
.dashboard-content { padding: 2rem; }
.stat-card { padding: 1.35rem; }
.stat-card .metric { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; }
.progress { height: .55rem; border-radius: 99px; background: #e6ebf2; }
.progress-bar { background: linear-gradient(90deg, var(--cyan-500), var(--navy-700)); }
.table-card { overflow: hidden; background: #fff; border: 1px solid #e3e9f0; border-radius: 1rem; box-shadow: 0 10px 30px rgba(10,28,52,.05); }
.table-card .table { margin: 0; }
.table-card th { color: var(--muted); background: #f8fafc; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; }
.table-card td, .table-card th { padding: 1rem; vertical-align: middle; border-color: #edf0f4; }
.admin-sidebar { background: #101a2a; }
.chart-bars { display: flex; align-items: end; gap: .65rem; height: 180px; padding-top: 1rem; }
.chart-bars span { flex: 1; min-width: 12px; border-radius: .35rem .35rem 0 0; background: linear-gradient(to top, var(--navy-700), var(--cyan-500)); }

/* Admin analytics overview */
.analytics-mode { border: 1px solid #ecd49c; background: #fffaf0; color: #8a5a00; border-radius: 2rem; padding: .65rem 1rem; font-size: .9rem; }
.metric-card { display: flex; align-items: center; gap: 1rem; min-height: 132px; }
.metric-icon { width: 56px; height: 56px; flex: 0 0 56px; display: grid; place-items: center; border-radius: 14px; font-size: 1.35rem; }
.metric-icon.blue { background: #e9f1ff; color: #2860b7; }.metric-icon.green { background: #e6f5ec; color: #188652; }.metric-icon.purple { background: #f0ebfb; color: #6846ad; }.metric-icon.coral { background: #fff0ea; color: #c95626; }
.analytics-notice { border: 1px solid #ecd49c; background: #fffaf0; color: #6f5314; border-radius: 1rem; }
.analytics-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(300px, 1fr); gap: 1rem; }
.analytics-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; box-shadow: 0 8px 24px rgba(10,28,52,.055); padding: 1.2rem; min-width: 0; }
.analytics-card h4,.analytics-card h5 { margin: 0; color: #101a2a; }.analytics-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }.analytics-heading select { width: 112px; }
.world-map-wrap { position: relative; min-height: 335px; display: grid; place-items: center; }.world-map-wrap img { width: 100%; max-height: 335px; object-fit: contain; }.map-dot { position: absolute; width: 9px; height: 9px; background: #082a55; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px rgba(8,42,85,.18); }.map-dot.canada{left:20%;top:28%}.map-dot.usa{left:21%;top:42%}.map-dot.uk{left:43%;top:28%}.map-dot.pakistan{left:72%;top:49%}.map-dot.uae{left:62%;top:54%}
.map-legend { width: 150px; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .75rem; }.map-legend span { width: 100%; }.map-legend i { width: 100%; height: 9px; border-radius: 1rem; background: linear-gradient(90deg,#dbe7f4,#436da9,#dba51d); }
.live-label { display: block; margin-top: .65rem; }.live-label i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #18a367; }.realtime-number { font-size: 2rem; font-weight: 800; margin: .2rem 0 .6rem; }
.mini-bars { height: 78px; display: flex; gap: 3px; align-items: end; border-bottom: 1px solid #dbe2ea; }.mini-bars span { flex: 1; min-width: 3px; background: #0b315f; border-radius: 2px 2px 0 0; }.chart-axis { display: flex; justify-content: space-between; color: #7b8797; font-size: .7rem; margin-top: .35rem; }
.country-live { list-style: none; padding: .7rem 0 0; margin: 0; }.country-live li { display: flex; align-items: center; gap: .5rem; padding: .2rem 0; font-size: .85rem; }.country-live li i { width: 8px; height: 8px; border-radius: 50%; background: #315b9b; }.country-live li i.pk{background:#169b62}.country-live li i.ae{background:#7e57c2}.country-live li i.ca{background:#82a7d9}.country-live b { margin-left: auto; }
.lower-grid { grid-template-columns: minmax(500px, 1.2fr) minmax(460px, 1fr); }.analytics-table { margin-top: .75rem; white-space: nowrap; font-size: .82rem; }.analytics-table th { color: #687485; font-size: .73rem; font-weight: 600; }.analytics-table td { padding-top: .7rem; padding-bottom: .7rem; }
.analytics-small-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }.compact-chart,.donut-card { min-height: 180px; }.line-chart { height: 100px; margin-top: .5rem; background: linear-gradient(to bottom,rgba(45,87,145,.06),transparent); }.line-chart svg { width: 100%; height: 100%; overflow: visible; }.line-chart polyline { fill: none; stroke: #153c70; stroke-width: 3; vector-effect: non-scaling-stroke; }.line-chart.growth polyline { stroke: #168451; }
.donut-layout { display: flex; align-items: center; justify-content: space-around; gap: 1rem; min-height: 125px; }.donut { width: 92px; height: 92px; flex: 0 0 92px; border-radius: 50%; position: relative; }.donut:after { content:""; position:absolute; inset:21px; background:#fff; border-radius:50%; }.donut.traffic { background: conic-gradient(#082d5b 0 42%,#dda918 42% 70%,#315eaa 70% 85%,#7054a9 85% 94%,#a79ac7 94%); }.donut.devices { background: conic-gradient(#082d5b 0 58%,#dda918 58% 92%,#315eaa 92%); }.donut-layout ul { list-style:none; padding:0; margin:0; flex:1; font-size:.75rem; }.donut-layout li { display:flex; align-items:center; gap:.35rem; margin:.4rem 0; }.donut-layout li i { width:7px;height:7px;border-radius:50%;background:#082d5b}.donut-layout li i.organic{background:#dda918}.donut-layout li i.social{background:#315eaa}.donut-layout li i.referral{background:#7054a9}.donut-layout li i.email{background:#a79ac7}.donut-layout li b{margin-left:auto}
.analytics-footer-note { border: 1px solid #dfe6ee; border-radius: .8rem; background: #fff; color: #667384; padding: .75rem 1rem; font-size: .8rem; }
@media (max-width:1199.98px){.analytics-grid,.lower-grid{grid-template-columns:1fr}.world-map-wrap{min-height:280px}}
@media (max-width:767.98px){.analytics-small-grid{grid-template-columns:1fr}.world-map-wrap{min-height:210px}.analytics-card{padding:1rem}.lower-grid{display:block}.country-table-card{margin-bottom:1rem}.metric-card{min-height:112px}}
.settings-section { padding: 1.5rem; border: 1px solid #e2e8f0; border-radius: 1.15rem; background: #f8fafc; }
.settings-section-icon { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 13px; background: #fff2d5; color: #9a6800; font-size: 1.1rem; }
.settings-section-icon.general { background: #e8f0fb; color: #255b9d; }
.setting-card { min-height: 225px; }
.setting-field-icon { width: 22px; color: #173b68; text-align: center; }
.admin-auth-page { background: radial-gradient(circle at 80% 10%, rgba(219,165,29,.16), transparent 30%), #071a33; }
.admin-auth-aside { min-height: 650px; background: linear-gradient(155deg, rgba(5,22,45,.84), rgba(12,44,79,.94)), url('../images/logo.jpg') center/cover; color: #fff; }
.lesson-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-bottom: 1px solid #edf0f4; }
.lesson-item:last-child { border-bottom: 0; }
.lesson-number { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 50%; color: var(--navy-700); background: #eaf1f8; font-weight: 800; }
.lesson-item.completed .lesson-number { color: #fff; background: var(--success); }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem; background: radial-gradient(circle at 20% 20%, rgba(17,189,232,.16), transparent 22%), linear-gradient(145deg, var(--navy-950), var(--navy-800)); }
.auth-card { width: min(1020px, 100%); overflow: hidden; border-radius: 1.4rem; background: #fff; box-shadow: 0 35px 100px rgba(0,0,0,.35); }
.auth-aside { color: #fff; background: linear-gradient(145deg, rgba(6,19,38,.85), rgba(16,43,79,.94)), url('../images/logo.jpg') center/cover; }

.site-footer { padding: 4rem 0 1.5rem; color: rgba(255,255,255,.65); background: #040d19; }
.site-footer h6 { color: #fff; }.site-footer a:hover { color: var(--gold-400); }
.footer-logo { width: 74px; height: 74px; border-radius: 50%; border: 2px solid var(--gold-400); }

@media (max-width: 991.98px) {
  .hero { min-height: auto; padding: 5rem 0 2rem; }
  .hero-visual { min-height: 470px; }
  .market-item:nth-child(2) { border-right: 0; }
  .dashboard-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .dashboard-sidebar.open { transform: translateX(0); }
  .dashboard-main { margin-left: 0; }
}
@media (max-width: 575.98px) {
  .section-space { padding: 3.5rem 0; }
  .hero h1 { font-size: 3.35rem; }
  .hero-visual { min-height: 380px; }
  .logo-orbit { width: 310px; }
  .floating-stat { padding: .65rem .75rem; }
  .stat-one { left: 0; }.stat-two { right: 0; }.stat-three { display: none; }
  .market-item { border-right: 0; border-bottom: 1px solid #e6eaf0; }
  .market-item:last-child { border-bottom: 0; }
  .cta-panel { padding: 2rem 1.4rem; }
  .dashboard-content, .dashboard-topbar { padding-left: 1rem; padding-right: 1rem; }
}
