/* =================================================================
   taxi & transfer — Design System
   Colours sourced directly from the logo proposal.
   ================================================================= */

:root {
  /* Brand palette */
  --gold:        #E5A82B;   /* primary brand yellow/gold */
  --gold-dark:   #C8901E;   /* hover / pressed */
  --gold-light:  #F6C95A;   /* highlights, focus rings */
  --gold-tint:   #FBF1DC;   /* soft backgrounds */

  --charcoal:    #2B3138;   /* primary dark (logo car) */
  --charcoal-2:  #3A424B;   /* secondary dark */
  --ink:         #1A1E23;   /* near-black text */

  /* Neutrals */
  --paper:       #FAFAF8;   /* off-white page bg (logo paper) */
  --white:       #FFFFFF;
  --line:        #E7E5DF;   /* borders */
  --muted:       #6B7280;   /* secondary text */
  --muted-2:     #9AA1AC;

  /* Feedback */
  --success:     #2E9E6B;
  --danger:      #D8543B;

  /* Typography */
  --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;

  /* Spacing & shape */
  --radius:      14px;
  --radius-lg:   22px;
  --radius-pill: 999px;
  --shadow-sm:   0 2px 8px rgba(43, 49, 56, .06);
  --shadow:      0 10px 30px rgba(43, 49, 56, .10);
  --shadow-lg:   0 24px 60px rgba(43, 49, 56, .16);
  --container:   1180px;
  --ease:        cubic-bezier(.4, 0, .2, 1);
}

/* ---- Reset ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* ---- Layout helpers --------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tint { background: var(--gold-tint); }
.section--dark { background: var(--charcoal); color: #E9EBEE; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--gold-light); }

h1, h2, h3 { line-height: 1.15; font-weight: 700; color: var(--charcoal); letter-spacing: -.01em; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.22rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.section--dark .lead { color: #C5CAD1; }
.mx-auto { margin-inline: auto; }

/* ---- Buttons ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--radius-pill); border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; transition: transform .15s var(--ease), background .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gold); color: var(--ink); box-shadow: 0 8px 20px rgba(229,168,43,.30); }
.btn--primary:hover { background: var(--gold-dark); }
.btn--dark { background: var(--charcoal); color: #fff; }
.btn--dark:hover { background: var(--charcoal-2); }
.btn--ghost { background: transparent; color: var(--charcoal); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--charcoal); }
.btn--lg { padding: 16px 34px; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* ---- Header ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,248,.85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 28px; min-height: 74px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a {
  padding: 9px 14px; border-radius: var(--radius-pill); font-weight: 500; color: var(--charcoal-2);
  transition: background .18s, color .18s;
}
.main-nav a:hover { background: var(--gold-tint); color: var(--charcoal); }
.main-nav a.is-active { color: var(--gold-dark); }
.main-nav .nav-partner { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); color: var(--charcoal-2); }
.main-nav .nav-partner:hover { border-color: var(--gold); background: var(--gold-tint); color: var(--gold-dark); }
.main-nav .nav-partner svg { flex-shrink: 0; }
.split-login { color: #C5CAD1; font-size: .92rem; }
.split-login:hover { color: #fff; }
.split-login strong { color: var(--gold-light); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-pill); overflow: hidden;
}
.lang-toggle a { padding: 6px 12px; font-weight: 700; font-size: .82rem; color: var(--muted); letter-spacing: .02em; }
.lang-toggle a.is-active { background: var(--charcoal); color: #fff; }
.lang-toggle a:not(.is-active):hover { background: var(--gold-tint); color: var(--charcoal); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--charcoal); margin: 5px 0; transition: .25s; }

/* ---- Hero ------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 76px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 88% -10%, rgba(229,168,43,.16), transparent 60%),
    radial-gradient(700px 500px at -5% 110%, rgba(43,49,56,.06), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--gold-dark); }
.hero .lead { margin-top: 18px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 26px; }
.hero-points li { display: flex; align-items: center; gap: 9px; font-weight: 500; font-size: .98rem; }
.hero-points svg { color: var(--gold-dark); flex-shrink: 0; }

/* ---- Booking widget --------------------------------------------- */
.booking {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 10px; border: 1px solid var(--line);
}
.booking-tabs { display: flex; gap: 6px; padding: 6px; }
.booking-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border-radius: var(--radius); border: 0; background: transparent;
  font-weight: 600; color: var(--muted); transition: .18s;
}
.booking-tab.is-active { background: var(--gold-tint); color: var(--charcoal); }
.booking-tab svg { flex-shrink: 0; }
.booking-body { padding: 8px; }
.field { display: block; margin-bottom: 12px; }
.field > label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; letter-spacing: .02em; }
.field input, .field select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: 1rem; color: var(--charcoal); background: var(--paper); transition: border .18s, box-shadow .18s;
}
.field input:focus, .field select:focus {
  outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(229,168,43,.18); background: #fff;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.booking .btn { margin-top: 4px; }
.booking .panel { display: none; }
.booking .panel.is-active { display: block; }

/* ---- Cards / grids ---------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--gold-tint); color: var(--gold-dark);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--charcoal); color: var(--gold-light);
  display: grid; place-items: center; font-weight: 700; font-size: .95rem; margin-bottom: 16px;
}

/* ---- Routes list ------------------------------------------------ */
.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.route {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  transition: border .18s, transform .18s;
}
.route:hover { border-color: var(--gold); transform: translateY(-2px); }
.route .r-path { font-weight: 600; }
.route .r-from { color: var(--muted); font-weight: 500; font-size: .85rem; }
.route .r-price { color: var(--gold-dark); font-weight: 700; white-space: nowrap; }

/* ---- Split CTA (B2B / cargo) ------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.split-card {
  border-radius: var(--radius-lg); padding: 40px; display: flex; flex-direction: column; gap: 14px;
}
.split-card--b2b { background: var(--charcoal); color: #E9EBEE; }
.split-card--b2b h2 { color: #fff; }
.split-card--cargo { background: var(--gold-tint); border: 1px solid #F0E2C2; }
.split-card .btn { align-self: flex-start; margin-top: 8px; }

/* ---- FAQ -------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 20px; margin-bottom: 12px;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; display: flex;
  align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--gold-dark); font-weight: 400; transition: .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* ---- Trust bar -------------------------------------------------- */
.trust { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: center; }
.trust li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; font-size: .95rem; }
.trust svg { color: var(--gold-dark); }

/* ---- Footer ----------------------------------------------------- */
.site-footer { background: var(--ink); color: #B9BFC8; padding-block: 60px 30px; }
.site-footer a { color: #B9BFC8; }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer-brand img { height: 70px; margin-bottom: 14px; }
.footer-brand p { color: #8B92A0; max-width: 34ch; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; letter-spacing: .03em; }
.site-footer li { margin-bottom: 9px; font-size: .95rem; }
.footer-bottom {
  border-top: 1px solid #2A2F36; margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: #767D8B;
}

/* ---- Search results page ---------------------------------------- */
.search-bar { background: var(--charcoal); padding-block: 18px; position: sticky; top: 74px; z-index: 40; }
.search-summary { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.ss-field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 130px; }
.ss-field.ss-sm { flex: 0 0 auto; min-width: 96px; }
.ss-field span { color: #AEB4BD; font-size: .74rem; font-weight: 600; letter-spacing: .03em; }
.ss-field input, .ss-field select {
  padding: 11px 12px; border: 1px solid #444C56; border-radius: 12px; background: #353C45; color: #fff;
  font: inherit; font-size: .95rem;
}
.ss-field input::placeholder { color: #8B92A0; }
.ss-field input:focus, .ss-field select:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(229,168,43,.25); }
.ss-swap { color: var(--gold-light); padding-bottom: 10px; }
.search-summary .btn { padding-block: 11px; }

.empty-state { text-align: center; padding-block: 70px; }
.empty-state h2 { margin-bottom: 10px; }
.empty-state .btn { margin-top: 22px; }

.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.results-title { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.results-title span { color: var(--gold-dark); margin-inline: 4px; }
.results-sub { color: var(--muted); margin-top: 4px; }
.results-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--gold-tint); color: var(--gold-dark); padding: 8px 14px; border-radius: var(--radius-pill); font-weight: 600; font-size: .9rem; }

.results-list { display: flex; flex-direction: column; gap: 14px; }
.offer {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 24px; box-shadow: var(--shadow-sm); transition: border .18s, box-shadow .18s, transform .18s;
}
.offer:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.offer-main { display: flex; gap: 16px; align-items: center; }
.offer-avatar { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; background: var(--gold-tint); color: var(--gold-dark); display: grid; place-items: center; }
.offer-company { font-size: 1.1rem; margin-bottom: 2px; }
.offer-desc { color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.offer-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.offer-meta svg { vertical-align: -2px; }
.rating { display: inline-flex; align-items: center; gap: 4px; color: var(--charcoal); font-weight: 600; }
.rating svg { color: var(--gold); }
.rating small { color: var(--muted); font-weight: 400; }
.offer-cta { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.offer-price { font-size: 1.6rem; font-weight: 700; color: var(--charcoal); }
.offer-tag { font-size: .72rem; font-weight: 700; color: var(--success); text-transform: uppercase; letter-spacing: .04em; }
.results-note { margin-top: 26px; color: var(--muted-2); font-size: .85rem; display: flex; align-items: center; gap: 8px; justify-content: center; }

@media (max-width: 720px) {
  .search-bar { top: 74px; }
  .offer { flex-direction: column; align-items: stretch; }
  .offer-cta { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---- Utilities -------------------------------------------------- */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
[hidden]{display:none!important}

/* ---- Responsive ------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .booking { max-width: 560px; }
  .grid--3, .routes { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .main-nav, .header-cta .btn { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav.is-open {
    display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px 22px; gap: 4px;
  }
  .grid--3, .grid--2, .routes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---- Booking pages --------------------------------------------- */
.container.narrow { max-width: 760px; }
.booking-page { padding-block: 40px 80px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: .92rem; margin-bottom: 22px; }
.back-link:hover { color: var(--charcoal); }

.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 500; }
.alert--error { background: #FCEBE7; color: #B23A22; border: 1px solid #F3C9BE; }

.booking-layout { display: grid; grid-template-columns: 1.45fr 1fr; gap: 28px; align-items: start; }
.booking-form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.booking-h1 { font-size: 1.7rem; margin-bottom: 6px; }
.muted-sub { display: block; color: var(--muted); font-size: .92rem; }
.booking-form-card .muted-sub { margin-bottom: 22px; }
.field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: 1rem; color: var(--charcoal); background: var(--paper); resize: vertical;
}
.field textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(229,168,43,.18); background: #fff; }
.field span small { color: var(--muted-2); font-weight: 400; }
.err { display: block; color: var(--danger); font-size: .82rem; margin-top: 5px; font-style: normal; }
.pay-note { display: flex; align-items: center; gap: 7px; justify-content: center; color: var(--muted-2); font-size: .84rem; margin-top: 14px; }

/* Summary / confirmation cards */
.summary-card, .confirm-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.summary-card { position: sticky; top: 92px; }
.summary-title { font-size: 1.1rem; margin-bottom: 18px; }
.summary-provider { display: flex; align-items: center; gap: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.summary-provider strong { display: block; }
.summary-route { margin-bottom: 18px; }
.sr-point { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.sr-point svg { color: var(--gold-dark); flex-shrink: 0; }
.sr-line { width: 2px; height: 18px; background: var(--line); margin-left: 7px; }
.summary-meta { margin-bottom: 18px; }
.summary-meta li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }
.summary-meta li span { color: var(--muted); }
.summary-meta li strong { text-align: right; }
.summary-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 6px; }
.summary-total > span:first-child { font-weight: 600; }
.summary-price { font-size: 1.7rem; font-weight: 700; color: var(--charcoal); }

/* Confirmation */
.confirm-hero { text-align: center; margin-bottom: 30px; }
.confirm-check { width: 72px; height: 72px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; box-shadow: 0 10px 28px rgba(46,158,107,.35); }
.confirm-hero h1 { margin-bottom: 10px; }
.confirm-ref { display: inline-block; font-size: 1.5rem; font-weight: 700; letter-spacing: .08em; color: var(--charcoal); background: var(--gold-tint); border: 1px dashed var(--gold); border-radius: var(--radius); padding: 10px 22px; margin: 8px 0 16px; }
.status-pill { display: inline-block; font-size: .85rem; font-weight: 600; padding: 6px 14px; border-radius: var(--radius-pill); }
.status-pending { background: #FBF1DC; color: #9A6B12; }
.status-confirmed { background: #E4F5EC; color: #1F7A52; }
.status-cancelled { background: #FCEBE7; color: #B23A22; }

@media (max-width: 860px) {
  .booking-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; order: -1; }
}

/* =================================================================
   Partner area (B2B dashboard)
   ================================================================= */
.partner-body { background: #F4F5F3; }
.alert--success { background: #E4F5EC; color: #1F7A52; border: 1px solid #BFE6D1; }

/* ---- Auth (login) ---- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(800px 500px at 80% -10%, rgba(229,168,43,.16), transparent 60%), #F4F5F3; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 38px 34px; }
.auth-logo img { height: 52px; margin-bottom: 22px; }
.auth-title { font-size: 1.5rem; margin-bottom: 4px; }
.checkbox-row { display: flex; align-items: center; gap: 9px; margin: 4px 0 18px; font-size: .94rem; color: var(--muted); cursor: pointer; }
.checkbox-row input { width: 17px; height: 17px; accent-color: var(--gold-dark); }
.auth-foot { text-align: center; margin-top: 20px; font-size: .9rem; }
.auth-foot a { color: var(--gold-dark); font-weight: 600; }

/* ---- Shell ---- */
.partner-shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.partner-sidebar { background: var(--charcoal); color: #C5CAD1; display: flex; flex-direction: column; padding: 22px 16px; position: sticky; top: 0; height: 100vh; }
.partner-brand { display: flex; align-items: center; gap: 11px; color: #fff; padding: 6px 10px 22px; }
.partner-brand img { height: 38px; }
.partner-brand span { font-weight: 700; line-height: 1.05; font-size: 1.05rem; }
.partner-brand small { font-weight: 500; color: var(--gold-light); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.partner-nav { display: flex; flex-direction: column; gap: 4px; }
.partner-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); color: #C5CAD1; font-weight: 500; transition: .16s; }
.partner-nav a:hover { background: #353C45; color: #fff; }
.partner-nav a.is-active { background: var(--gold); color: var(--ink); font-weight: 600; }
.partner-logout { margin-top: auto; }
.partner-logout button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: var(--radius); background: transparent; color: #98A0AB; font-weight: 500; }
.partner-logout button:hover { background: #353C45; color: #fff; }

.partner-main { display: flex; flex-direction: column; min-width: 0; }
.partner-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 32px; background: #fff; border-bottom: 1px solid var(--line); }
.partner-topbar .muted-sub { font-size: .78rem; }
.partner-topbar strong { font-size: 1.05rem; color: var(--charcoal); }
.partner-content { padding: 32px; max-width: 1100px; width: 100%; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-title { font-size: 1.6rem; }

/* ---- Stats ---- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-sm); }
.stat-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--gold-tint); color: var(--gold-dark); display: grid; place-items: center; }
.stat-label { display: block; color: var(--muted); font-size: .82rem; }
.stat-value { display: block; font-size: 1.5rem; font-weight: 700; color: var(--charcoal); line-height: 1.2; }

/* ---- Panels & tables ---- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 22px 24px; margin-bottom: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-head h2 { font-size: 1.12rem; }
.link-more { color: var(--gold-dark); font-weight: 600; font-size: .9rem; }
.empty-mini { text-align: center; color: var(--muted); padding: 26px 0; }
.empty-mini .btn { margin-top: 14px; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); padding: 0 14px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td .muted-sub { font-size: .8rem; }
.data-table strong { color: var(--charcoal); }

.row-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--charcoal-2); cursor: pointer; transition: .15s; }
.icon-btn:hover { border-color: var(--charcoal); }
.icon-btn--danger:hover { border-color: var(--danger); color: var(--danger); }
.btn--xs { padding: 7px 13px; font-size: .82rem; }

/* ---- Forms ---- */
.form-panel { max-width: 680px; }
.form-actions { margin-top: 12px; }

/* ---- Pagination ---- */
.pagination-wrap { display: flex; justify-content: center; }
.pager { display: inline-flex; align-items: center; gap: 12px; }
.pager-btn { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 600; }
.pager-btn.is-disabled { opacity: .4; }
.pager-info { color: var(--muted); font-size: .9rem; }

@media (max-width: 820px) {
  .partner-shell { grid-template-columns: 1fr; }
  .partner-sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .partner-brand { padding: 6px 10px; }
  .partner-nav { flex-direction: row; flex-wrap: wrap; }
  .partner-logout { margin-top: 0; margin-left: auto; width: auto; }
  .partner-logout button { width: auto; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .partner-content { padding: 20px; }
}
