:root {
  --brand-navy: #0b1f3a;
  --brand-navy-dark: #071528;
  --brand-blue: #1a56db;
  --brand-blue-light: #4f83f1;
  --brand-gold: #c99b3e;
  --brand-green: #16a34a;
  --brand-red: #dc2626;
  --surface: #ffffff;
  --surface-muted: #f5f7fb;
  --border-soft: #e4e8f1;
  --text-dark: #101828;
  --text-muted: #667085;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 10px 30px -12px rgba(11, 31, 58, 0.18);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--surface-muted);
}

.navbar-brand-bar {
  background: var(--brand-navy);
  padding: .85rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.brand-mark {
  background: linear-gradient(135deg, var(--brand-gold), #e8c477);
  color: var(--brand-navy-dark);
  font-weight: 800;
  font-size: .8rem;
  padding: .35rem .55rem;
  border-radius: 8px;
  letter-spacing: .5px;
}
.brand-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 3px 6px;
}
.brand-logo-light {
  height: 32px;
}
.brand-logo-lg {
  height: 56px;
  width: auto;
  object-fit: contain;
}
.brand-text {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

/* Hero -------------------------------------------------------------- */
.ipo-hero {
  background: radial-gradient(circle at top right, rgba(255,255,255,.08), transparent 55%),
              linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
  color: #fff;
  padding: 3.25rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.ipo-hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(79,131,241,.35), transparent 70%);
  border-radius: 50%;
}
.ipo-hero h1 { font-weight: 800; letter-spacing: -.02em; }
.ipo-hero .lead-text { color: rgba(255,255,255,.78); max-width: 640px; }

.ipo-banner {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  max-width: 640px;
  line-height: 1.5;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-open { background: rgba(22,163,74,.15); color: #4ade80; }
.status-open .dot { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.25); }
.status-upcoming { background: rgba(201,155,62,.18); color: #eac877; }
.status-upcoming .dot { background: #eac877; }
.status-closed, .status-inactive { background: rgba(220,38,38,.18); color: #f87171; }
.status-closed .dot, .status-inactive .dot { background: #f87171; }

.hero-stat-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  backdrop-filter: blur(6px);
}
.hero-stat-card .stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.6); }
.hero-stat-card .stat-value { font-size: 1.15rem; font-weight: 700; }

/* Form card ----------------------------------------------------------*/
.form-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  margin-top: -3.25rem;
  position: relative;
  z-index: 2;
}
.form-card .card-header-custom {
  padding: 1.75rem 2rem 0;
}
.section-heading {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  padding-top: .5rem;
}
.section-heading .step-badge {
  background: var(--brand-blue);
  color: #fff;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}
.form-label { font-weight: 600; font-size: .86rem; color: var(--text-dark); }
.form-control, .form-select {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: .62rem .9rem;
  font-size: .92rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand-blue-light);
  box-shadow: 0 0 0 .2rem rgba(26,86,219,.12);
}
.form-text { font-size: .78rem; }
.upload-zone {
  border: 1.5px dashed var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: var(--surface-muted);
  transition: border-color .15s ease;
}
.upload-zone:hover { border-color: var(--brand-blue-light); }

.btn-brand {
  background: linear-gradient(135deg, var(--brand-blue), #1e40af);
  border: none;
  font-weight: 700;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-md);
  letter-spacing: .01em;
}
.btn-brand:hover { background: linear-gradient(135deg, #1747c4, #1a3a94); color: #fff; }
.btn-outline-brand {
  border: 1.5px solid var(--brand-blue);
  color: var(--brand-blue);
  font-weight: 600;
  border-radius: var(--radius-md);
}

.captcha-box {
  background: var(--brand-navy);
  color: #fff;
  border-radius: var(--radius-md);
  padding: .7rem 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .05em;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-width: 130px;
  justify-content: center;
}

.info-callout {
  background: #fff7e6;
  border: 1px solid #f2d39c;
  border-radius: var(--radius-md);
  padding: .9rem 1.1rem;
  font-size: .87rem;
  color: #6b4e12;
}

.footer-note-card {
  background: var(--surface-muted);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  font-size: .82rem;
  color: var(--text-muted);
}

.site-footer { background: #fff; border-top: 1px solid var(--border-soft); margin-top: 3rem; }

/* Admin ---------------------------------------------------------------*/
.admin-sidebar {
  background: var(--brand-navy);
  min-height: 100vh;
  color: #fff;
}
.admin-sidebar a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 500;
}
.admin-sidebar a.active, .admin-sidebar a:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border-soft);
}
.stat-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: #fff;
  padding: 1.25rem;
}
.stat-card .stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.table thead th {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  border-bottom-width: 1px;
}
.badge-category {
  background: var(--surface-muted);
  color: var(--brand-navy);
  font-weight: 600;
  font-size: .7rem;
}

@media (max-width: 767px) {
  .form-card { margin-top: -1.5rem; }
  .ipo-hero { padding: 2.25rem 0 3.5rem; }
}
