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

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

:root {
  --navy:        #0D2B52;
  --navy-mid:    #1B4080;
  --navy-light:  #2D5FA6;
  --navy-pale:   #E8EFF8;
  --orange:      #E96A10;
  --orange-h:    #C8550A;
  --orange-light:#FFF0E6;
  --bg:          #F3F6FB;
  --surface:     #FFFFFF;
  --border:      #D8E2F0;
  --text:        #0F1B2D;
  --muted:       #5A6E8C;
  --success:     #1B7F4D;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 2px 12px rgba(13,43,82,.08);
  --shadow-lg:   0 8px 32px rgba(13,43,82,.14);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── NAV ── */
.topnav {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.topnav-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; gap: 0;
  padding: 0 24px;
}
.nav-logo {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem; font-weight: 800;
  color: #fff; padding: 18px 0; margin-right: 32px;
  white-space: nowrap;
}
.nav-logo span { color: var(--orange); }
.nav-links { display: flex; align-items: stretch; flex: 1; }
.nav-item {
  position: relative;
  display: flex; align-items: center;
}
.nav-link {
  display: flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,.82);
  font-size: .88rem; font-weight: 500;
  padding: 18px 16px;
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.08); }
.nav-link svg { width: 14px; height: 14px; }
.nav-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.btn-ghost-nav {
  background: transparent; border: 1.5px solid rgba(255,255,255,.3);
  color: #fff; padding: 8px 18px; border-radius: 7px;
  font-size: .83rem; font-weight: 600;
  transition: all .18s;
}
.btn-ghost-nav:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-cta-nav {
  background: var(--orange); border: none;
  color: #fff; padding: 9px 20px; border-radius: 7px;
  font-size: .83rem; font-weight: 700;
  transition: background .18s;
}
.btn-cta-nav:hover { background: var(--orange-h); }

/* Dropdown */
.dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); min-width: 220px;
  box-shadow: var(--shadow-lg);
  display: none; z-index: 200;
  padding: 8px 0;
}
.nav-item:hover .dropdown-menu { display: block; }
.dropdown-group-title {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  color: var(--muted); padding: 10px 16px 4px;
  text-transform: uppercase;
}
.dropdown-link {
  display: block; padding: 8px 16px;
  color: var(--text); font-size: .88rem;
  transition: background .14s;
}
.dropdown-link:hover { background: var(--navy-pale); color: var(--navy); }
.dropdown-sep { height: 1px; background: var(--border); margin: 6px 0; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; border: none; border-radius: var(--radius); font-weight: 700; cursor: pointer; transition: all .18s; font-family: inherit; text-decoration: none; }
.btn-orange { background: var(--orange); color: #fff; padding: 12px 24px; font-size: .95rem; }
.btn-orange:hover { background: var(--orange-h); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(233,106,16,.35); }
.btn-navy { background: var(--navy); color: #fff; padding: 12px 24px; font-size: .95rem; }
.btn-navy:hover { background: var(--navy-mid); }
.btn-outline { background: transparent; border: 2px solid var(--navy); color: var(--navy); padding: 10px 22px; font-size: .9rem; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .83rem; }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }

/* ── BADGE ── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 30px; font-size: .75rem; font-weight: 700; }
.badge-orange { background: var(--orange-light); color: var(--orange); }
.badge-navy { background: var(--navy-pale); color: var(--navy); }
.badge-green { background: #E6F5EE; color: var(--success); }

/* ── ADSENSE PLACEHOLDER ── */
.ad-banner {
  background: linear-gradient(135deg, #f0f4fa 0%, #e4ecf7 100%);
  border: 1.5px dashed #b0c4de;
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #8ca3be; font-size: .8rem; font-weight: 600;
  letter-spacing: .05em; gap: 6px; text-transform: uppercase;
}
.ad-banner svg { opacity: .4; }
.ad-leaderboard { height: 90px; }
.ad-rectangle { height: 250px; }
.ad-half { height: 150px; }

/* ── CONTAINERS ── */
.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.section { padding: 60px 0; }
.section-sm { padding: 36px 0; }

/* ── CARDS ── */
.card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.card-hover { transition: box-shadow .2s, transform .2s; }
.card-hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

/* ── PROGRESS ── */
.progress-bar { background: var(--border); border-radius: 99px; overflow: hidden; height: 8px; }
.progress-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--navy-light), var(--orange)); transition: width .6s ease; }

/* ── FORM ELEMENTS ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: .85rem; font-weight: 600; color: var(--text); }
.form-input, .form-select, .form-textarea {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px;
  font-size: .9rem; color: var(--text); font-family: inherit;
  transition: border-color .18s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(45,95,166,.12); }
.form-textarea { resize: vertical; min-height: 100px; }

/* ── TABS ── */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); }
.tab { padding: 10px 20px; font-size: .88rem; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .18s; background: none; border-top: none; border-left: none; border-right: none; }
.tab.active { color: var(--navy); border-bottom-color: var(--orange); }
.tab:hover:not(.active) { color: var(--text); }

/* ── TABLE ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--navy-pale); color: var(--navy); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 12px 16px; text-align: left; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .88rem; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--navy-pale); }

/* ── FOOTER ── */
.footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 48px 0 24px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { font-family: 'Sora', sans-serif; font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-brand span { color: var(--orange); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links li a { color: rgba(255,255,255,.65); font-size: .88rem; transition: color .15s; }
.footer-links li a:hover { color: #fff; }
.footer-col-title { font-weight: 700; color: #fff; font-size: .88rem; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; font-size: .8rem; }

/* ── SIDEBAR ── */
.sidebar-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px; }
.sidebar-title { font-family: 'Sora', sans-serif; font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--navy-pale); }

/* ── ACTIVE NAV INDICATOR ── */
.nav-active-bar { height: 3px; background: var(--orange); position: absolute; bottom: 0; left: 0; right: 0; }

/* responsive helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-sm { font-size: .85rem; }
.text-muted { color: var(--muted); }
.text-navy { color: var(--navy); }
.text-orange { color: var(--orange); }
.font-sora { font-family: 'Sora', sans-serif; }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
