/* =========================================================
   Aurora International Taste Challenge — UI Design System
   Primary: #0A234B (Navy)   Secondary: #D7AF64 (Gold)
   Light theme — clean, professional, attractive
   ========================================================= */

:root {
  --navy:          #0A234B;
  --navy-dark:     #071A38;
  --navy-mid:      #143566;
  --navy-light:    #1E4D8C;
  --navy-soft:     #EDF1F8;
  --navy-ghost:    #F4F6FA;

  --gold:          #D7AF64;
  --gold-dark:     #B8923F;
  --gold-mid:      #C9A050;
  --gold-light:    #EDD28A;
  --gold-soft:     #FBF5E8;
  --gold-ghost:    #FEFCF5;

  --white:         #FFFFFF;
  --off-white:     #FAFAF8;
  --cream:         #F6F2EB;
  --ivory:         #F1EDE3;
  --border:        #E2E6EF;
  --border-light:  #EEF1F7;
  --text:          #0D1F3C;
  --text-mid:      #2A3B5C;
  --text-muted:    #6A7898;
  --text-faint:    #9DAABF;

  --shadow-xs: 0 1px 4px rgba(10,35,75,.06);
  --shadow-sm: 0 2px 8px rgba(10,35,75,.08);
  --shadow-md: 0 6px 24px rgba(10,35,75,.11);
  --shadow-lg: 0 16px 48px rgba(10,35,75,.14);

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;

  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--text);
  line-height: 1.15;
}

a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy-mid); }

img { max-width: 100%; }

/* Utilities */
.text-navy   { color: var(--navy) !important; }
.text-gold   { color: var(--gold-dark) !important; }
.bg-navy     { background: var(--navy) !important; }
.bg-cream    { background: var(--cream) !important; }
.bg-ghost    { background: var(--navy-ghost) !important; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .85rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.section    { padding: 4.5rem 0; }
.section-sm { padding: 2.5rem 0; }
@media (max-width: 768px) {
  .section    { padding: 3rem 0; }
  .section-sm { padding: 1.75rem 0; }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .7rem 1.6rem;
  border-width: 1.5px;
  transition: all .22s ease;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-navy {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.btn-navy:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(10,35,75,.25);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--gold-mid);
  border-color: var(--gold-mid);
  color: var(--navy-dark);
  box-shadow: 0 6px 20px rgba(215,175,100,.35);
}

.btn-outline-navy {
  color: var(--navy);
  border-color: var(--navy);
  background: transparent;
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 20px rgba(10,35,75,.2);
}

.btn-outline-soft {
  color: var(--text-mid);
  border-color: var(--border);
  background: var(--white);
}
.btn-outline-soft:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--navy-ghost);
}

.btn-sm { font-size: .7rem; padding: .5rem 1.1rem; }
.btn-lg { font-size: .82rem; padding: .9rem 2rem; }

/* Ghost button — for use on navy/dark backgrounds */
.btn-ghost {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.35);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.6);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

/* Keep branded colors on Bootstrap focus/active states */
.btn-navy:focus,
.btn-navy:active,
.btn-navy.active,
.show > .btn-navy.dropdown-toggle,
.btn-check:checked + .btn-navy,
.btn-check:active + .btn-navy {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: #fff;
  box-shadow: 0 0 0 .2rem rgba(10,35,75,.22);
}

.btn-gold:focus,
.btn-gold:active,
.btn-gold.active,
.show > .btn-gold.dropdown-toggle,
.btn-check:checked + .btn-gold,
.btn-check:active + .btn-gold {
  background: var(--gold-mid);
  border-color: var(--gold-mid);
  color: var(--navy-dark);
  box-shadow: 0 0 0 .2rem rgba(215,175,100,.28);
}

.btn-outline-soft:focus,
.btn-outline-soft:active,
.btn-outline-soft.active,
.show > .btn-outline-soft.dropdown-toggle,
.btn-check:checked + .btn-outline-soft,
.btn-check:active + .btn-outline-soft {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--navy-ghost);
  box-shadow: 0 0 0 .2rem rgba(10,35,75,.12);
}

/* ── Navbar ──────────────────────────────────────────────── */
/*
 * Dual-colour top stripe (60% navy / 40% gold) via CSS multi-background.
 * Uses background layers — zero interference with Bootstrap's flex layout.
 */
.aurora-navbar {
  background:
    linear-gradient(90deg, var(--navy) 0%, var(--navy) 60%, var(--gold) 60%, var(--gold) 100%)
      top / 100% 3px no-repeat,
    var(--white) !important;
  border: none;
  border-bottom: 1px solid var(--border-light);
  padding: 0 !important;
  box-shadow: none;
  transition: box-shadow .25s ease;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.aurora-navbar.is-scrolled { box-shadow: var(--shadow-sm); }

/* Inner row: brand + toggler + links */
.aurora-navbar .nav-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;     /* lets the collapse panel drop below on mobile */
  min-height: 68px;
  width: 100%;
}

/* Mobile collapsed menu */
@media (max-width: 991.98px) {
  .aurora-navbar .navbar-collapse {
    background: var(--white);
    border-top: 1px solid var(--border-light);
    padding: .6rem 0 1rem;
  }
  .aurora-navbar .nav-link { padding: .6rem .2rem !important; }
  .aurora-navbar .nav-link::after { display: none; }
  .aurora-navbar .profile-toggle { margin-top: .5rem; }
  .aurora-navbar .dropdown-menu {
    position: static !important;
    box-shadow: none;
    border: 1px solid var(--border-light);
    margin-top: .25rem;
  }
}

.aurora-navbar .navbar-brand img {
  height: 50px;
  width: auto;
}

.aurora-navbar .nav-link {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mid) !important;
  padding: .9rem .9rem !important;
  position: relative;
  white-space: nowrap;
}
.aurora-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: .9rem; right: .9rem;
  bottom: .55rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
  border-radius: 2px;
}
.aurora-navbar .nav-link:hover::after,
.aurora-navbar .nav-link.active::after { transform: scaleX(1); }
.aurora-navbar .nav-link:hover,
.aurora-navbar .nav-link.active { color: var(--navy) !important; }

/* My Info dropdown */
.aurora-navbar .dropdown-menu.entries-menu {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .5rem 0;
  min-width: 17rem;
  margin-top: 0;
  border-top: 3px solid var(--gold);
}
.aurora-navbar .entries-menu .dropdown-item {
  font-size: .86rem;
  padding: .62rem 1.2rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: .7rem;
  transition: all .15s ease;
  font-weight: 500;
}
.aurora-navbar .entries-menu .dropdown-item i {
  font-size: .9rem;
  width: 1.1rem;
  text-align: center;
  color: var(--gold-dark);
}
.aurora-navbar .entries-menu .dropdown-item:hover {
  background: var(--navy-ghost);
  color: var(--navy);
  padding-left: 1.45rem;
}

/* ── Hover-open: ONLY the My Info & Entries menu ─────────── */
/* Profile dropdown stays click-only (intentional) */
@media (min-width: 992px) {
  .aurora-navbar .nav-item.dropdown:hover > .dropdown-menu.entries-menu {
    display: block;
    animation: dropIn .18s ease;
  }
  @keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .aurora-navbar .dropdown-menu { margin-top: 0; }
}

/* Profile toggle */
.profile-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .3rem .35rem .3rem .9rem;
  border-radius: 999px;
  background: var(--navy-ghost);
  border: 1.5px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
}
.profile-toggle:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--navy-soft);
}
.profile-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
  flex-shrink: 0;
}
.profile-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: inherit;
  max-width: 130px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Profile menu */
.profile-menu {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .5rem 0;
  min-width: 16rem;
  margin-top: .4rem !important;
  border-top: 3px solid var(--gold);
}
.profile-menu-header {
  padding: .8rem 1.2rem .5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: .3rem;
}
.profile-menu-header .name {
  font-weight: 700; font-size: .92rem; color: var(--text);
}
.profile-menu-header .email {
  font-size: .75rem; color: var(--text-muted); word-break: break-all; margin-top: .15rem;
}
.profile-menu .dropdown-item {
  font-size: .86rem;
  padding: .58rem 1.2rem;
  color: var(--text-mid);
  display: flex; align-items: center; gap: .7rem;
  transition: all .15s ease;
  font-weight: 500;
}
.profile-menu .dropdown-item i {
  font-size: .9rem; width: 1.1rem; text-align: center;
  color: var(--gold-dark);
}
.profile-menu .dropdown-item:hover {
  background: var(--navy-ghost);
  color: var(--navy);
}
.profile-menu .dropdown-item.text-danger {
  color: #c0392b !important;
}
.profile-menu .dropdown-item.text-danger i {
  color: #c0392b;
}
.profile-menu .dropdown-item.text-danger:hover {
  background: #fdf1f0;
}

/* ── Page Header (compact, navy) ─────────────────────────── */
.page-header {
  background: linear-gradient(110deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  padding: 1.6rem 0 1.4rem;
  position: relative;
  overflow: hidden;
}
/* Decorative gold accent circle */
.page-header::after {
  content: "";
  position: absolute;
  right: -60px; top: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215,175,100,.18) 0%, transparent 70%);
  pointer-events: none;
}
.page-header::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 50%);
}
.page-header h1 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: .3rem;
  position: relative; z-index: 1;
}
.page-header .sub {
  color: rgba(255,255,255,.72);
  font-size: .9rem;
  position: relative; z-index: 1;
  margin: 0;
}
.page-header .breadcrumb-trail {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: .45rem;
  position: relative; z-index: 1;
}
.page-header .breadcrumb-trail a {
  color: var(--gold-light);
}
.page-header .page-header-actions {
  position: relative; z-index: 1;
}

/* ── Cards ───────────────────────────────────────────────── */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem;
  height: 100%;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}
.feature-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold-ghost) 100%);
  color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
  border: 1px solid var(--gold-light);
}
.feature-card h4 { font-size: 1.2rem; margin-bottom: .45rem; }
.feature-card p  { color: var(--text-muted); font-size: .9rem; margin-bottom: 0; }

/* Stat block */
.stat-block .stat-number {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
}
.stat-block .stat-label {
  text-transform: uppercase;
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--text-muted);
  margin-top: .4rem;
  font-weight: 600;
}

/* ── Dashboard Action Cards ──────────────────────────────── */
.dashboard-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text);
  transition: all .25s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.dashboard-action::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .25s ease;
}
.dashboard-action:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--navy);
}
.dashboard-action:hover::before { transform: scaleY(1); }
.dashboard-action:hover .d-icon {
  background: var(--navy);
  color: var(--gold);
}
.d-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-ghost);
  color: var(--navy);
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: all .25s ease;
}
.d-label  { font-weight: 700; font-size: .9rem; line-height: 1.3; }
.d-sub    { font-size: .75rem; color: var(--text-muted); margin-top: .15rem; }
.d-arrow  { margin-left: auto; color: var(--text-faint); flex-shrink: 0; transition: transform .25s, color .25s; }
.dashboard-action:hover .d-arrow { color: var(--navy); transform: translateX(3px); }

/* ── Forms ───────────────────────────────────────────────── */
.form-shell {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
@media (max-width: 576px) { .form-shell { padding: 1.5rem 1.25rem; } }

.form-section-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: .2rem;
}
.form-section-divider {
  border: 0; border-top: 1px solid var(--border-light);
  margin: 1.1rem 0 1.4rem;
}

.form-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-mid); margin-bottom: .35rem;
}
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .65rem .9rem;
  background: var(--white);
  color: var(--text);
  font-size: .93rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(215,175,100,.15);
  outline: none;
}
.form-control::placeholder { color: var(--text-faint); }
.required-mark  { color: #c0392b; font-weight: 700; margin-left: .12rem; }
.field-help     { font-size: .77rem; color: var(--text-muted); margin-top: .3rem; }

.form-check-input:checked {
  background-color: var(--navy);
  border-color: var(--navy);
}
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(10,35,75,.12); }

/* Input group icon */
.input-group-text {
  background: var(--navy-ghost);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}
.input-group .form-control { border-left: 0; }
.input-group .input-group-text:first-child { border-right: 0; }
.input-group .input-group-text:last-child { border-left: 0; border-right: 1.5px solid var(--border); }
.input-group .form-control:focus + .input-group-text,
.input-group .input-group-text + .form-control:focus {
  border-color: var(--gold);
}

/* ── Info table ──────────────────────────────────────────── */
.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: 1px solid var(--border-light); }
.info-table tr:last-child { border-bottom: 0; }
.info-table th, .info-table td {
  padding: .75rem .4rem;
  vertical-align: top;
  text-align: left;
  font-size: .9rem;
}
.info-table th {
  font-weight: 700; color: var(--text-muted); width: 40%;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
}

/* ── Badges ──────────────────────────────────────────────── */
.badge-pill {
  display: inline-block;
  padding: .28rem .75rem;
  border-radius: 999px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.badge-paid    { background: #e9f7ef; color: #1a7a3c; }
.badge-unpaid  { background: #fdecea; color: #b52020; }
.badge-pending { background: #fef8ec; color: #9a6800; }

/* ── Alert / Info box ────────────────────────────────────── */
.alert-aurora {
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  color: var(--text-mid);
  padding: .9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
}
.alert-navy {
  background: var(--navy-ghost);
  border-left: 3px solid var(--navy);
  color: var(--text-mid);
  padding: .9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
}

/* ── File uploader ───────────────────────────────────────── */
.file-uploader {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  background: var(--navy-ghost);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.file-uploader:hover {
  border-color: var(--gold);
  background: var(--gold-ghost);
}
.file-uploader i { font-size: 1.75rem; color: var(--gold-dark); display: block; margin-bottom: .4rem; }
.file-uploader p { margin: 0; color: var(--text-muted); font-size: .88rem; }

/* ── Divider ornament ────────────────────────────────────── */
.divider-ornament {
  display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0;
}
.divider-ornament::before,
.divider-ornament::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
.divider-ornament i { color: var(--gold-dark); font-size: .9rem; }

/* ── Invoice ─────────────────────────────────────────────── */
.invoice-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.invoice-top-row { align-items: flex-start; }
.invoice-brand-logo {
  height: 62px;
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
  margin: 0 0 .65rem 0;
}
.invoice-company-meta {
  color: var(--text-muted);
  font-size: .83rem;
  line-height: 1.8;
  margin: .85rem 0 0;
}
.invoice-title { letter-spacing: .01em; }
.invoice-meta {
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.7;
  margin-bottom: .7rem;
}
.invoice-detail-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, #fcfdff 100%);
  padding: 1rem 1.05rem;
}
.invoice-company-name {
  display: block;
  color: var(--navy);
  margin-bottom: .45rem;
  font-size: .96rem;
}
.invoice-kv-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.invoice-kv-table th,
.invoice-kv-table td {
  padding: .42rem 0;
  vertical-align: top;
  text-align: left;
  line-height: 1.65;
  border-bottom: 1px solid var(--border-light);
}
.invoice-kv-table tbody tr:last-child th,
.invoice-kv-table tbody tr:last-child td {
  border-bottom: 0;
}
.invoice-kv-table th {
  width: 122px;
  color: var(--text-muted);
  font-size: .67rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 800;
  padding-right: .8rem;
  white-space: nowrap;
}
.invoice-kv-table td {
  color: var(--text-mid);
  font-size: .87rem;
  word-break: break-word;
}
.invoice-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.invoice-table th {
  background: var(--navy-ghost);
  color: var(--navy);
  padding: .75rem .9rem;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  border-bottom: 2px solid var(--gold); text-align: left;
}
.invoice-table td {
  padding: .75rem .9rem;
  border-bottom: 1px solid var(--border-light);
  font-size: .9rem;
  color: var(--text-mid);
}
.invoice-table tfoot td {
  font-weight: 700;
  background: var(--navy-ghost);
  border-top: 1px solid var(--border);
}
.invoice-note { line-height: 1.72; }
.invoice-printed { color: var(--text-faint); }

@media (max-width: 768px) {
  .invoice-wrap { padding: 1.35rem; }
  .invoice-company-meta { margin-top: .7rem; }
  .invoice-brand-logo { height: 52px; max-width: 180px; }
  .invoice-kv-table th,
  .invoice-kv-table td {
    display: block;
    width: 100%;
    padding: .12rem 0;
  }
  .invoice-kv-table th { margin-top: .18rem; }
}

/* ── Profile Settings Tabs ───────────────────────────────── */
.profile-tabs { border: none; gap: 0; border-bottom: 2px solid var(--border-light); }
.profile-tabs .nav-link {
  border: none; border-radius: 0;
  padding: .8rem 1.3rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); background: transparent; position: relative;
  transition: color .2s;
}
.profile-tabs .nav-link i { margin-right: .4rem; }
.profile-tabs .nav-link.active {
  color: var(--navy);
  background: transparent;
  border-bottom: 2.5px solid var(--gold);
  margin-bottom: -2px;
}
.profile-tabs .nav-link:hover:not(.active) { color: var(--navy); background: var(--navy-ghost); }

/* ── Searchable Country Select ───────────────────────────── */
.country-select { position: relative; }

.country-select-toggle {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .65rem .9rem;
  background: var(--white);
  color: var(--text);
  font-size: .93rem;
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  transition: border-color .2s, box-shadow .2s;
}
.country-select-toggle:hover,
.country-select.is-open .country-select-toggle {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(215,175,100,.15);
}
.country-select-toggle .country-select-value {
  display: flex; align-items: center; gap: .4rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.country-select-toggle .country-select-value.placeholder { color: var(--text-faint); }
.country-select-toggle > i.bi-chevron-down {
  color: var(--text-muted);
  transition: transform .22s ease;
  flex-shrink: 0;
}
.country-select.is-open .country-select-toggle > i.bi-chevron-down {
  transform: rotate(180deg);
}

/* The dropdown panel */
.country-select-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: none;
  overflow: hidden;
  animation: csDropIn .18s ease;
}
@keyframes csDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.country-select.is-open .country-select-menu { display: block; }

/* Search bar inside dropdown */
.country-select-search-wrap {
  padding: .6rem .65rem;
  background: linear-gradient(135deg, var(--navy-ghost) 0%, var(--gold-ghost) 100%);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.country-select-search-wrap > i.bi-search {
  color: var(--navy);
  font-size: .88rem;
  flex-shrink: 0;
  opacity: .65;
}
.country-select-search {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .48rem .75rem;
  font-size: .88rem;
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.country-select-search::placeholder { color: var(--text-faint); }
.country-select-search:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(215,175,100,.15);
}

/* Scrollable list */
.country-select-list {
  list-style: none;
  margin: 0;
  padding: .3rem 0;
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* Custom scrollbar */
.country-select-list::-webkit-scrollbar { width: 5px; }
.country-select-list::-webkit-scrollbar-track { background: transparent; }
.country-select-list::-webkit-scrollbar-thumb {
  background: var(--border); border-radius: 99px;
}
.country-select-list::-webkit-scrollbar-thumb:hover { background: var(--gold); }

.country-select-list li[data-value] {
  padding: .46rem 1rem;
  font-size: .88rem;
  color: var(--text-mid);
  cursor: pointer;
  transition: background .12s, color .12s;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.country-select-list li[data-value]:hover {
  background: var(--navy-ghost);
  color: var(--navy);
}
.country-select-list li[data-value].is-selected {
  background: var(--gold-soft);
  color: var(--navy);
  font-weight: 600;
}
.cs-flag { font-size: 1.1rem; line-height: 1; flex-shrink: 0; }
.cs-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-check {
  font-size: .8rem;
  color: var(--gold-dark);
  flex-shrink: 0;
  margin-left: auto;
}

.country-select-empty {
  padding: 1rem;
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Light Footer ────────────────────────────────────────── */
.aurora-footer {
  background: var(--white);
  border-top: 1px solid var(--border-light);
  padding: 3.5rem 0 0;
  margin-top: 4rem;
  position: relative;
}
/* Coloured top stripe */
.aurora-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 60%, var(--gold) 60%, var(--gold) 100%);
}
/* Logo fix: mix-blend-mode removes white box on light background */
.footer-brand img {
  height: 64px; width: auto;
  display: block;
  margin-bottom: 1rem;
  mix-blend-mode: multiply; /* eliminates white background from .jpg logo */
}
.footer-brand p {
  font-size: .88rem; color: var(--text-muted); line-height: 1.75; max-width: 320px;
}

.aurora-footer .footer-heading {
  font-family: var(--font-sans);
  font-size: .7rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 1.1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.aurora-footer ul { list-style: none; padding: 0; margin: 0; }
.aurora-footer ul li { margin-bottom: .5rem; }
.aurora-footer ul a {
  font-size: .88rem; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: .35rem;
  transition: color .2s, gap .2s;
}
.aurora-footer ul a:hover { color: var(--navy); gap: .5rem; }
.aurora-footer ul a::before {
  content: ""; width: 5px; height: 1.5px;
  background: var(--gold); flex-shrink: 0;
  border-radius: 2px; opacity: 0;
  transition: opacity .2s;
}
.aurora-footer ul a:hover::before { opacity: 1; }

.footer-contact li {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .88rem; color: var(--text-muted);
  margin-bottom: .65rem;
}
.footer-contact i {
  color: var(--gold-dark);
  background: var(--gold-soft);
  border: 1px solid var(--gold-light);
  padding: .35rem;
  border-radius: 7px;
  font-size: .85rem; flex-shrink: 0; margin-top: .05rem;
}

.footer-social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.footer-social a {
  display: inline-flex; width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--navy-ghost);
  color: var(--navy);
  border: 1px solid var(--border);
  transition: all .22s;
}
.footer-social a:hover {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.footer-bottom {
  background: var(--navy-ghost);
  border-top: 1px solid var(--border-light);
  margin-top: 3rem;
  padding: 1.1rem 0;
  font-size: .78rem; color: var(--text-muted);
}
.footer-bottom a { color: var(--navy); font-weight: 600; }
.footer-bottom a:hover { color: var(--gold-dark); }

/* ── Login page ──────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
}
@media (max-width: 991px) { .login-wrap { grid-template-columns: 1fr; } }

.login-visual {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  color: #fff;
  padding: 2.5rem;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.login-visual::before {
  content: "";
  position: absolute; top: -15%; right: -15%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(215,175,100,.22) 0%, transparent 65%);
}
.login-visual::after {
  content: "";
  position: absolute; bottom: -25%; left: -15%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(215,175,100,.1) 0%, transparent 65%);
}
.login-visual > * { position: relative; z-index: 2; }
.login-brand-mark {
  background: var(--white);
  border-radius: var(--radius);
  padding: .85rem 1.4rem;
  display: inline-block; max-width: 210px;
}
.login-brand-mark img { height: 48px; display: block; }
.login-visual h1 {
  color: #fff; font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.1; margin-top: auto;
}
.login-visual h1 em { color: var(--gold-light); font-style: italic; }
.login-visual p { color: rgba(255,255,255,.78); max-width: 28rem; font-size: .95rem; }

.login-quote-icon i { color: var(--gold); font-size: 1.75rem; }

.login-form-col {
  display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
}
.login-form-inner { width: 100%; max-width: 420px; }

/* ── Stat cards (dashboard) ──────────────────────────────── */
.stat-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  position: relative;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  height: 100%;
}
/* Gold accent top stripe — slides in on hover */
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-light); }
.stat-card:hover::before { transform: scaleX(1); }

.stat-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-ghost) 0%, var(--navy-soft) 100%);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
  transition: background .28s, color .28s;
}
.stat-card:hover .stat-card-icon {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--gold);
  border-color: transparent;
}
.stat-card-body { flex: 1; min-width: 0; }
.stat-card-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
  margin-bottom: .3rem;
  letter-spacing: -.01em;
}
.stat-card-label {
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Animation system ────────────────────────────────────── */
/* Keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(215,175,100,.4); }
  50%       { box-shadow: 0 0 0 8px rgba(215,175,100,0); }
}

/* Scroll reveal — single element */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .58s cubic-bezier(.22,.61,.36,1),
              transform .58s cubic-bezier(.22,.61,.36,1);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll reveal — staggered children */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .48s cubic-bezier(.22,.61,.36,1),
              transform .48s cubic-bezier(.22,.61,.36,1);
}
[data-reveal-stagger].is-revealed > *:nth-child(1) { opacity:1; transform:none; transition-delay:.00s; }
[data-reveal-stagger].is-revealed > *:nth-child(2) { opacity:1; transform:none; transition-delay:.09s; }
[data-reveal-stagger].is-revealed > *:nth-child(3) { opacity:1; transform:none; transition-delay:.18s; }
[data-reveal-stagger].is-revealed > *:nth-child(4) { opacity:1; transform:none; transition-delay:.27s; }
[data-reveal-stagger].is-revealed > *:nth-child(5) { opacity:1; transform:none; transition-delay:.36s; }
[data-reveal-stagger].is-revealed > *:nth-child(6) { opacity:1; transform:none; transition-delay:.45s; }

/* Page-load fade for the page-header */
.page-header .page-header-inner {
  animation: fadeUp .55s cubic-bezier(.22,.61,.36,1) both;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-stagger] > * { transition: none !important; opacity: 1 !important; transform: none !important; }
  .page-header .page-header-inner { animation: none; }
}

/* ── Flag icons sizing ───────────────────────────────────── */
/* flag-icons library: https://github.com/lipis/flag-icons */
.fi.cs-flag {
  width: 1.25em !important;
  height: 1.25em !important;
  line-height: 1 !important;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,.07);
  display: inline-block;
  vertical-align: middle;
}
/* Placeholder text colour inside toggle */
.country-select-value .placeholder-text { color: var(--text-faint); }

/* ── Form validation styles ──────────────────────────────── */
/* Override Bootstrap defaults with aurora theme */
.form-control.is-valid,
.form-select.is-valid {
  border-color: #28a362 !important;
  background-image: none !important; /* remove Bootstrap's icon */
  padding-right: .9rem !important;
}
.form-control.is-valid:focus,
.form-select.is-valid:focus {
  border-color: #28a362 !important;
  box-shadow: 0 0 0 3px rgba(40,163,98,.13) !important;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #d63031 !important;
  background-image: none !important;
  padding-right: .9rem !important;
}
.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
  border-color: #d63031 !important;
  box-shadow: 0 0 0 3px rgba(214,48,49,.13) !important;
}

/* Checkbox states */
.form-check-input.is-invalid { border-color: #d63031; }
.form-check-input.is-valid   { border-color: #28a362; }

/* Feedback text */
.invalid-feedback {
  display: block !important;
  font-size: .74rem;
  color: #d63031;
  margin-top: .28rem;
  font-weight: 500;
  animation: fadeIn .18s ease;
}
.valid-feedback {
  display: block;
  font-size: .74rem;
  color: #28a362;
  margin-top: .28rem;
}

/* Inline input-group validation */
.input-group:has(.is-valid) .input-group-text   { border-color: #28a362; }
.input-group:has(.is-invalid) .input-group-text { border-color: #d63031; }

/* ── Success banner ──────────────────────────────────────── */
.aurora-success-banner {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: 1rem;
  padding: .9rem 1.2rem;
  background: linear-gradient(135deg, #e8f7ed 0%, #f0fdf4 100%);
  border: 1px solid #a3e6bd;
  border-left: 4px solid #28a362;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: #1a5c35;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}
.aurora-success-banner.visible {
  opacity: 1;
  transform: translateY(0);
}
.aurora-success-banner i { font-size: 1.1rem; color: #28a362; flex-shrink: 0; }

/* ── Print ───────────────────────────────────────────────── */
@media print {
  .aurora-navbar, .aurora-footer, .no-print { display: none !important; }
  .invoice-wrap { box-shadow: none; border: none; padding: 0; }
}

