:root {
  --color-bg: #F7F2EB;
  --color-surface: #FFF8ED;
  --color-surface-alt: #F5E6C8;
  --color-primary: #D4AF37;
  --color-primary-hover: #C77D3A;
  --color-brown: #8B6F47;
  --color-brown-dark: #5A4127;
  --color-text: #1E1B16;
  --color-footer: #1E1B16;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(90, 65, 39, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

:focus-visible { outline: 3px solid rgba(212,175,55,.55); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }

/* Shared toasts (customer + public) */
.toast-wrap { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 1000; display: flex; flex-direction: column; gap: .6rem; max-width: 90vw; }
.toast { background: var(--color-brown-black, #1E1B16); color: #fff; padding: .8rem 1.1rem; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.3); opacity: 0; transform: translateY(10px); transition: .25s; max-width: 340px; font-size: .9rem; border-left: 3px solid var(--color-primary); }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-bad { border-left-color: #e0524b; }
.toast-ok { border-left-color: #2ecc71; }

/* Skeleton shimmer */
.skeleton { position: relative; overflow: hidden; background: var(--color-surface-alt); border-radius: 8px; color: transparent !important; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

.container { width: min(1140px, 92%); margin: 0 auto; }

h1, h2, h3, h4 { color: var(--color-text); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); font-weight: 600; }
.muted { color: var(--color-brown); }
.accent { color: var(--color-primary); }

a { color: var(--color-brown-dark); text-decoration: none; }
a:hover { color: var(--color-primary-hover); }

/* Buttons */
.btn {
  display: inline-block;
  padding: .65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
}
.btn-lg { padding: .9rem 1.8rem; font-size: 1.05rem; }
.btn-primary { background: var(--color-primary); color: #1E1B16; box-shadow: 0 4px 14px rgba(212,175,55,.35); }
.btn-primary:hover { background: var(--color-primary-hover); color: #fff; box-shadow: 0 6px 18px rgba(199,125,58,.4); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; border-color: var(--color-brown); color: var(--color-brown-dark); }
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary-hover); }

/* Semantic action buttons — soft tinted pills that fill in on hover. Colour
   communicates the action: green = create/approve, red = destructive,
   amber = caution/toggle-off, blue = neutral action/navigate. */
.btn-success { background: #e7f6ec; color: #1f7a44; border-color: #bfe6cd; }
.btn-success:hover { background: #1f7a44; color: #fff; border-color: #1f7a44; transform: translateY(-1px); }
.btn-danger { background: #fcebea; color: #a02622; border-color: #f3c9c6; }
.btn-danger:hover { background: #a02622; color: #fff; border-color: #a02622; transform: translateY(-1px); }
.btn-warning { background: #fff4e0; color: #8a5a00; border-color: #f3ddb1; }
.btn-warning:hover { background: #b8860b; color: #fff; border-color: #b8860b; transform: translateY(-1px); }
.btn-info { background: #e8f0fe; color: #1a56c4; border-color: #c6d8fb; }
.btn-info:hover { background: #1a56c4; color: #fff; border-color: #1a56c4; transform: translateY(-1px); }
.btn-neutral { background: var(--color-surface-alt, #f0e9da); color: var(--color-brown-dark, #5A4127); border-color: #e3d6bf; }
.btn-neutral:hover { background: #5A4127; color: #fff; border-color: #5A4127; transform: translateY(-1px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 237, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-surface-alt);
}
.nav { display: flex; align-items: center; gap: 1.5rem; padding: .9rem 0; }
.brand { font-weight: 700; font-size: 1.25rem; color: var(--color-text); margin-right: auto; }
.brand span { color: var(--color-primary); }
.brand-logo { height: 43px; max-width: 220px; object-fit: contain; vertical-align: middle; }
.brand-light { color: #fff; }
.brand-light span { color: var(--color-primary); }
.nav-menu { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { display: flex; gap: 1.25rem; }
.nav-links a { color: var(--color-brown-dark); font-weight: 500; }
.nav-cta { display: flex; gap: .6rem; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border: 1.5px solid var(--color-surface-alt);
  border-radius: 10px; background: var(--color-surface); cursor: pointer; padding: 0 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--color-brown-dark); border-radius: 2px; transition: .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: var(--color-surface); border-bottom: 1px solid var(--color-surface-alt);
    padding: 1.25rem 1.25rem 1.5rem; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .18s;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-header { position: sticky; }
  .nav { position: relative; }
  .nav-links { flex-direction: column; gap: .25rem; }
  .nav-links a { padding: .6rem 0; border-bottom: 1px solid var(--color-surface-alt); }
  .nav-cta { flex-direction: column; }
  .nav-cta .btn { width: 100%; text-align: center; }
}

/* Hero */
.hero { padding: 3.5rem 0; background: linear-gradient(160deg, var(--color-surface) 0%, var(--color-bg) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.lead { font-size: 1.15rem; color: var(--color-brown); margin: .5rem 0 1.25rem; }
.trust { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; margin: 0 0 1.5rem; }
.trust li { font-weight: 500; color: var(--color-brown-dark); }
.trust li::before { content: "✓ "; color: var(--color-primary); font-weight: 700; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }

/* Phone mockup */
.hero-phone { display: flex; justify-content: center; }
.phone {
  width: 270px; padding: 16px; border-radius: 36px;
  background: var(--color-brown-dark);
  box-shadow: var(--shadow);
}
.phone-screen { background: var(--color-surface); border-radius: 24px; padding: 1.25rem; }
.order-title { font-weight: 600; margin-bottom: 1rem; }
.stepper { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.stepper li { position: relative; padding: .4rem 0 .4rem 1.6rem; color: var(--color-brown); }
.stepper li::before {
  content: ""; position: absolute; left: 0; top: .65rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--color-surface-alt); border: 2px solid var(--color-brown);
}
.stepper li.done { color: var(--color-text); }
.stepper li.done::before { background: var(--color-primary); border-color: var(--color-primary); }
.stepper li.active { color: var(--color-text); font-weight: 600; }
.stepper li.active::before { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.code-box {
  text-align: center; font-family: ui-monospace, Menlo, monospace;
  font-size: 1.8rem; letter-spacing: .3rem; font-weight: 700;
  background: var(--color-surface-alt); border-radius: 12px; padding: .75rem;
}

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--color-surface-alt); }
.section h2 { text-align: center; margin-bottom: .4rem; }
.section-sub { text-align: center; color: var(--color-brown); max-width: 620px; margin: 0 auto 2.5rem; }
.center { text-align: center; margin-top: 2rem; }
.container-narrow { max-width: 760px; }

/* Hero extras */
.hero-eyebrow { display: inline-block; background: var(--color-surface-alt); color: var(--color-brown-dark); font-weight: 600; font-size: .8rem; padding: .35rem .85rem; border-radius: 999px; margin-bottom: 1rem; }
.hero-pay { margin-top: 1.75rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.hero-pay .pay-row { font-weight: 600; color: var(--color-brown-dark); font-size: .9rem; }
.phone-foot { text-align: center; font-size: .8rem; margin-top: .75rem; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.feature-card { background: var(--color-surface); border: 1px solid var(--color-surface-alt); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.feature-icon { font-size: 1.8rem; display: block; margin-bottom: .6rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: .35rem; }

/* Pricing packs */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.pack-card { position: relative; background: var(--color-surface); border: 1.5px solid var(--color-surface-alt); border-radius: 18px; padding: 2rem 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pack-card.featured { border-color: var(--color-primary); transform: translateY(-6px); box-shadow: 0 16px 40px rgba(212,175,55,.25); }
.pack-badge { position: absolute; top: -.75rem; left: 50%; transform: translateX(-50%); background: var(--color-primary); color: #1E1B16; font-size: .72rem; font-weight: 700; padding: .25rem .8rem; border-radius: 999px; }
.pack-card h3 { font-size: 1.15rem; }
.pack-price { font-size: 2.4rem; font-weight: 700; margin: .25rem 0 1rem; }
.pack-bonus { font-size: 1rem; color: #1f7a44; font-weight: 700; }
.pack-perks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; flex: 1; }
.pack-perks li { padding-left: 1.5rem; position: relative; color: var(--color-brown-dark); }
.pack-perks li::before { content: "✓"; position: absolute; left: 0; color: var(--color-primary-hover); font-weight: 700; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.testimonial { background: var(--color-surface); border: 1px solid var(--color-surface-alt); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.testimonial .stars { color: var(--color-primary); letter-spacing: 2px; margin-bottom: .6rem; }
.testimonial p { font-style: italic; }
.t-author { display: flex; flex-direction: column; margin-top: 1rem; }

/* FAQ */
.faq-list { display: grid; gap: .75rem; }
.faq-item { background: var(--color-surface); border: 1px solid var(--color-surface-alt); border-radius: 12px; padding: 1rem 1.25rem; box-shadow: var(--shadow); }
.faq-item summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: "+"; color: var(--color-primary-hover); font-size: 1.3rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: .75rem 0 0; }

/* API docs */
.api-callout { display: grid; gap: .6rem; background: var(--color-surface); border: 1px solid var(--color-surface-alt); border-radius: 12px; padding: 1.1rem 1.25rem; box-shadow: var(--shadow); }
.api-callout > div { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.api-callout .muted { min-width: 64px; }
.endpoint-list { display: grid; gap: .6rem; margin-bottom: 1rem; }
.endpoint { display: flex; align-items: center; gap: .75rem; background: var(--color-surface); border: 1px solid var(--color-surface-alt); border-radius: 10px; padding: .7rem .9rem; flex-wrap: wrap; }
.endpoint code { background: var(--color-surface-alt); flex: 1; min-width: 220px; }
.endpoint p { margin: 0; color: var(--color-brown); font-size: .85rem; width: 100%; }
.method { font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 6px; color: #fff; }
.method.get { background: #1f7a44; }
.api-steps { list-style: none; padding: 0; display: grid; gap: 1.25rem; counter-reset: api; }
.api-steps li { background: var(--color-surface); border: 1px solid var(--color-surface-alt); border-radius: 12px; padding: 1.1rem 1.25rem; box-shadow: var(--shadow); }
.api-steps h4 { margin: 0 0 .6rem; font-size: 1rem; }

/* Contact + legal */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem; align-items: start; }
.contact-card { background: var(--color-surface); border: 1px solid var(--color-surface-alt); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1rem; margin-top: 1rem; }
.contact-card h3:first-child { margin-top: 0; }
.legal h3 { margin-top: 1.6rem; font-size: 1.1rem; }
.legal h4 { margin: 1rem 0 .3rem; font-size: .98rem; }
.legal p { color: var(--color-brown-dark); }
.legal ul { color: var(--color-brown-dark); padding-left: 1.3rem; margin: .6rem 0; line-height: 1.9; }
.legal ul li { margin: .15rem 0; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: linear-gradient(135deg, #5A4127, #3c2c18); color: #fff; padding: 3.5rem 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e7dbc6; margin-bottom: 1.5rem; }

.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.app-card {
  background: var(--color-surface); border-radius: var(--radius); padding: 1.25rem;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  box-shadow: var(--shadow);
}
.app-icon { font-size: 1.8rem; }
.app-name { font-weight: 600; }
.app-price { color: var(--color-brown); font-size: .9rem; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.step-card { background: var(--color-surface); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.step-n {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-primary); color: #1E1B16; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-bottom: .75rem;
}

/* Stats bar */
.stats-bar { background: var(--color-footer); color: #fff; padding: 2rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; text-align: center; }
.stats-grid strong { display: block; font-size: 1.6rem; color: var(--color-primary); }
.stats-grid span { color: #c9bda8; font-size: .9rem; }

/* Footer */
.site-footer { background: var(--color-footer); color: #c9bda8; padding: 2.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { color: #fff; font-size: 1rem; }
.footer-grid a { display: block; color: #c9bda8; padding: .2rem 0; }
.footer-grid a:hover { color: var(--color-primary); }
.footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.08); }

.center-narrow { text-align: center; max-width: 520px; margin: 0 auto; padding: 3rem 0; }

/* Status page */
.status-hero { display: flex; align-items: center; gap: .85rem; padding: 1.5rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.status-hero h1 { margin: 0; font-size: 1.5rem; }
.status-hero .status-dot { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; }
.status-operational { background: #e7f6ec; } .status-operational .status-dot { background: #1f7a44; }
.status-degraded { background: #fcebea; } .status-degraded .status-dot { background: #a02622; }
.status-maintenance { background: var(--color-surface-alt); } .status-maintenance .status-dot { background: var(--color-brown); }
.status-list { background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.status-row { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--color-surface-alt); }
.status-row:last-child { border-bottom: none; }
.status-badge { font-size: .82rem; font-weight: 600; padding: .2rem .7rem; border-radius: 999px; }
.status-badge.up { background: #e7f6ec; color: #1f7a44; }
.status-badge.down { background: #fcebea; color: #a02622; }
.status-incidents .incident { background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.25rem; margin-bottom: .75rem; }
.incident-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }

/* Auth — split layout */
.auth-wrap {
  min-height: calc(100vh - 73px);
  display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 1rem;
  background:
    radial-gradient(1200px 500px at 100% 0%, rgba(212,175,55,.10), transparent 60%),
    var(--color-bg);
}
.auth-split {
  width: min(960px, 100%);
  display: grid; grid-template-columns: 1.05fr .95fr;
  background: var(--color-surface);
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(90, 65, 39, 0.18);
  border: 1px solid var(--color-surface-alt);
}

/* Left brand / value panel */
.auth-aside {
  position: relative; color: #fff;
  background: linear-gradient(160deg, #6B4F2E 0%, #5A4127 55%, #3D2C18 100%);
  padding: 2.75rem;
  display: flex; align-items: center;
}
.auth-aside::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 260px at 110% -10%, rgba(212,175,55,.35), transparent 60%);
  pointer-events: none;
}
.auth-aside-inner { position: relative; z-index: 1; }
.auth-logo { font-size: 1.2rem; margin-bottom: 2rem; }
.auth-aside h2 { color: #fff; font-size: 1.9rem; line-height: 1.2; margin-bottom: .85rem; }
.auth-aside p { color: #e7dbc6; margin: 0 0 1.5rem; }
.auth-benefits { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .65rem; }
.auth-benefits li { position: relative; padding-left: 1.75rem; color: #f2e9d8; }
.auth-benefits li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--color-primary); color: #1E1B16;
  display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700;
}
.auth-aside-stats { display: flex; gap: 1.75rem; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; }
.auth-aside-stats strong { display: block; font-size: 1.45rem; color: var(--color-primary); }
.auth-aside-stats span { font-size: .8rem; color: #c9bda8; }

/* Right form card */
.auth-card { padding: 3rem 2.75rem; display: flex; flex-direction: column; justify-content: center; }
.auth-card h1 { font-size: 1.75rem; margin-bottom: .25rem; }
.auth-form { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.5rem; }
.auth-form label { display: flex; flex-direction: column; gap: .4rem; font-weight: 500; font-size: .92rem; }
.auth-form input {
  padding: .8rem .95rem; border: 1.5px solid var(--color-surface-alt);
  border-radius: 12px; font: inherit; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.auth-form input::placeholder { color: #b8a884; }
.auth-form input:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(212,175,55,.18);
}
.btn-block { width: 100%; margin-top: .25rem; }
.form-error {
  background: #fcebea; color: #a02622; border: 1px solid #f3c2bf;
  border-radius: 10px; padding: .65rem .85rem; font-size: .9rem;
}
.form-success { background: #e7f6ec; color: #1f7a44; border: 1px solid #b9e3c8; border-radius: 10px; padding: .65rem .85rem; font-size: .9rem; }
.auth-alt { text-align: center; margin-top: 1.5rem; color: var(--color-brown); }
.auth-alt a { font-weight: 600; color: var(--color-primary-hover); }

@media (max-width: 760px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-card { padding: 2.25rem 1.75rem; }
}

/* ── Skeleton loaders (shimmer placeholders while data loads) ── */
.skeleton { position: relative; overflow: hidden; display: inline-block; height: 12px; width: 100%; border-radius: 6px; background: #ece4d4; vertical-align: middle; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: skel-shimmer 1.2s infinite; }
@keyframes skel-shimmer { 100% { transform: translateX(100%); } }
.skel-cell { padding: .85rem 1rem; }
.skel-card { border-radius: 14px; height: 90px; }
@media (prefers-reduced-motion: reduce) { .skeleton::after { animation: none; } }

/* ── Modern auth (login / register): one focused card, mobile-first ── */
.auth2 {
  position: relative; min-height: calc(100vh - 73px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem; overflow: hidden;
  background:
    radial-gradient(900px 500px at 12% -5%, rgba(212,175,55,.18), transparent 55%),
    radial-gradient(800px 500px at 105% 105%, rgba(199,125,58,.16), transparent 55%),
    var(--color-bg);
}
.auth2-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.auth2-bg .blob { position: absolute; border-radius: 50%; filter: blur(70px); }
.auth2-bg .b1 { width: 340px; height: 340px; background: rgba(212,175,55,.45); top: -120px; left: -90px; }
.auth2-bg .b2 { width: 300px; height: 300px; background: rgba(199,125,58,.40); bottom: -120px; right: -80px; }
.auth2-bg .b3 { width: 220px; height: 220px; background: rgba(122,92,52,.25); top: 55%; left: 8%; }
.auth2-card {
  position: relative; z-index: 1; width: 100%; max-width: 430px;
  background: var(--color-surface); border: 1px solid var(--color-surface-alt);
  border-radius: 26px; padding: 1.9rem 1.4rem; box-shadow: 0 24px 60px rgba(90,65,39,.22);
}
.auth2-brand { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.3rem; font-weight: 800; font-size: 1.12rem; color: var(--color-text); text-decoration: none; }
.auth2-brand img { height: 38px; max-width: 200px; display: block; }
.auth2-badge { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(150deg, #D4AF37, #C77D3A); display: flex; align-items: center; justify-content: center; color: #1E1B16; font-weight: 800; font-size: 1.25rem; box-shadow: 0 8px 18px rgba(199,125,58,.4); }
.auth2-title { font-size: 1.6rem; line-height: 1.15; margin: 0 0 .3rem; color: var(--color-text); }
.auth2-sub { color: var(--color-brown); margin: 0 0 1.35rem; font-size: .95rem; }
.auth2 .auth-form { margin-top: 0; }
.auth2-alt { text-align: center; margin-top: 1rem; color: var(--color-brown); font-size: .92rem; }
.auth2-alt a { font-weight: 700; color: var(--color-primary-hover); }
.auth2-trust { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--color-surface-alt); }
.auth2-trust span { font-size: .74rem; font-weight: 600; color: var(--color-brown-dark); background: var(--color-bg); border: 1px solid var(--color-surface-alt); border-radius: 999px; padding: .32rem .7rem; }
@media (min-width: 600px) {
  .auth2 { padding: 3rem 1rem; }
  .auth2-card { padding: 2.75rem 2.5rem; max-width: 440px; }
  .auth2-title { font-size: 1.95rem; }
}

/* Dashboard */
.banner { border-radius: 10px; padding: .75rem 1rem; margin-bottom: 1.25rem; font-weight: 500; }
.banner-success { background: #e7f6ec; color: #1f7a44; border: 1px solid #b9e3c8; }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.badge-warn { background: var(--color-surface-alt); color: var(--color-brown-dark); }
.widget-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.widget {
  background: var(--color-surface); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .5rem; align-items: flex-start;
}
.widget-label { color: var(--color-brown); font-size: .9rem; }
.widget-value { font-size: 1.8rem; font-weight: 700; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--color-surface-alt); }
.data-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--color-brown); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* App tabs */
.app-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.75rem; border-bottom: 1px solid var(--color-surface-alt); }
.app-tabs a {
  padding: .65rem 1rem; font-weight: 600; color: var(--color-brown);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.app-tabs a:hover { color: var(--color-primary-hover); }
.app-tabs a.is-active { color: var(--color-text); border-bottom-color: var(--color-primary); }

/* Badges */
.badge-ok { background: #e7f6ec; color: #1f7a44; }
.badge-warn { background: #fff3d6; color: #8a6d1b; }
.badge-bad { background: #fcebea; color: #a02622; }
.badge-muted { background: var(--color-surface-alt); color: var(--color-brown-dark); }
.btn-sm { padding: .4rem .8rem; font-size: .85rem; }

/* Wizard */
.wizard-steps { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 1.5rem 0 2rem; flex-wrap: wrap; counter-reset: w; }
.wizard-steps li {
  counter-increment: w; flex: 1 1 140px; padding: .75rem 1rem; border-radius: 12px;
  background: var(--color-surface); color: var(--color-brown); font-weight: 600; box-shadow: var(--shadow);
  border: 2px solid transparent; position: relative;
}
.wizard-steps li::before { content: counter(w) ". "; color: var(--color-brown); }
.wizard-steps li.is-active { border-color: var(--color-primary); color: var(--color-text); }
.wizard-steps li.is-done { background: var(--color-surface-alt); color: var(--color-brown-dark); }
.wizard-steps li.is-done::before { content: "✓ "; color: var(--color-primary-hover); }

.search-input {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--color-surface-alt);
  border-radius: 12px; font: inherit; background: #fff; margin-bottom: 1rem;
}
.search-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(212,175,55,.18); }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.pick-card {
  display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center;
  background: var(--color-surface); border: 1.5px solid var(--color-surface-alt); border-radius: 12px;
  padding: 1rem .75rem; cursor: pointer; font: inherit; font-weight: 600; color: var(--color-text);
  transition: border-color .12s, transform .12s;
}
.pick-card:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.pick-flag { width: 22px; height: 15px; object-fit: cover; border-radius: 3px; }
.pick-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--color-surface-alt); }
.pick-price { color: var(--color-primary-hover); font-size: .82rem; }
.pick-emoji { font-size: 1.05rem; line-height: 1; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
.pick-avatar { width: 20px; height: 20px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .7rem; }
.pick-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Buy — mode toggle (Temporary vs Rental) */
.mode-tabs { display: flex; gap: .6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.mode-tab { flex: 1 1 200px; display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; padding: .7rem .9rem; border: 1.5px solid var(--color-surface-alt); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 700; color: var(--color-brown-dark); transition: border-color .15s, background .15s; }
.mode-tab.is-active { border-color: var(--color-primary); background: var(--color-surface-alt); }
.mode-tab .mode-sub { font-weight: 500; font-size: .78rem; color: var(--color-text-muted, #8a7e72); }
/* Rent duration picker (review step) */
.term-picker { display: flex; flex-wrap: wrap; gap: .45rem; margin: .25rem 0 .75rem; }
.term-opt { padding: .4rem .7rem; border: 1.5px solid var(--color-surface-alt); border-radius: 9px; background: #fff; cursor: pointer; font-weight: 600; font-size: .85rem; display: flex; flex-direction: column; align-items: center; gap: .1rem; min-width: 64px; }
.term-opt.is-active { border-color: var(--color-primary); background: var(--color-surface-alt); }
.term-opt .term-price { font-size: .8rem; color: var(--color-primary); font-weight: 700; }
/* Buy — 3 columns, all visible, equal height */
.buy-cols { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 1rem; align-items: stretch; }
.buy-col { background: #fff; border: 1px solid var(--color-surface-alt); border-radius: 14px; box-shadow: var(--shadow); padding: 1rem; display: flex; flex-direction: column; min-width: 0; }
.buy-col.is-active { border-color: var(--color-primary); }
.buy-col-stack > div { display: flex; flex-direction: column; }
.buy-divider { height: 1px; background: var(--color-surface-alt); margin: 1rem 0; }
.sel-note { background: var(--color-surface-alt); color: var(--color-brown-dark); font-weight: 600; font-size: .85rem; padding: .35rem .7rem; border-radius: 8px; margin-bottom: .6rem; }
.copy-line { display: flex; align-items: center; gap: .5rem; }
.copy-line .code-box { flex: 1; margin: 0; }
.copy-line strong { flex: 1; }
.buy-col-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .85rem; }
.buy-col-head h2 { margin: 0; font-size: 1.05rem; }
.buy-col-n { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; background: var(--color-primary); color: #1E1B16; font-weight: 700; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.buy-col-sub { display: flex; gap: .4rem; align-items: center; margin-bottom: .6rem; }
.buy-col-sub .search-input { margin: 0; flex: 1; min-width: 0; }
.buy-col .search-input { margin-bottom: .6rem; }
/* Country list taller (its column has no filter bar) so it shows more rows;
   app list shorter since it has the sort/reusable filters above it. */
.buy-col[data-panel="1"] .pick-list { max-height: 430px; }
.buy-col[data-panel="2"] .pick-list { max-height: 330px; }
.buy-col .pick-row { padding: .35rem .55rem; gap: .5rem; }
.buy-col .pick-row-name { font-size: .86rem; }
.fav-star { color: #d9cdb6; cursor: pointer; padding: 0 .15rem; font-size: 1rem; line-height: 1; flex: 0 0 auto; }
.fav-star:hover { color: var(--color-primary-hover); }
.fav-star.on { color: var(--color-primary); }
.buy-col .review-card, .buy-col .receive-card { margin: 0; box-shadow: none; border: none; padding: 0; max-width: none; }
@media (max-width: 1000px) { .buy-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .buy-cols { grid-template-columns: 1fr; } .buy-col .pick-list { max-height: 300px; } }

/* Buy wizard — step heads, big search, list rows */
.buy-step-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.buy-step-head h2 { margin: 0; font-size: 1.15rem; }
.search-lg { padding: .9rem 1rem; font-size: 1rem; }
.pick-list { display: flex; flex-direction: column; gap: .4rem; max-height: 420px; overflow-y: auto; overflow-x: hidden; }
.pick-list .pad { padding: 1rem; }
.pick-row {
  display: flex; align-items: center; gap: .85rem; width: 100%; text-align: left;
  background: var(--color-surface); border: 1.5px solid var(--color-surface-alt); border-radius: 12px;
  padding: .7rem .9rem; cursor: pointer; font: inherit; transition: border-color .12s, background .12s;
}
.pick-row:hover { border-color: var(--color-primary); background: rgba(212,175,55,.08); }
.pick-row-name { flex: 1; font-weight: 600; color: var(--color-text); display: flex; align-items: center; gap: .5rem; min-width: 0; }
.pick-row-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-row-go { color: var(--color-brown); font-weight: 700; }
.pick-tag { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: #e7f6ec; color: #1f7a44; padding: .1rem .4rem; border-radius: 999px; }
.reuse-ic { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: #e7f6ec; color: #1f7a44; font-size: .8rem; font-weight: 700; margin-left: .35rem; flex: 0 0 auto; }

/* Segmented filter tabs (replace simple status dropdowns) */
/* Unified tab style (matches the payment-methods section tabs): a full-width
   underline bar with the active tab marked by a primary-coloured underline. */
.filter-tabs { display: flex; flex-wrap: wrap; gap: .25rem; width: 100%; border-bottom: 1px solid var(--color-surface-alt); }
.filter-tab { border: none; background: none; padding: .65rem 1.05rem; font: inherit; font-weight: 600; font-size: .9rem; color: var(--color-brown); cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.filter-tab:hover { color: var(--color-text); }
.filter-tab.is-active { color: var(--color-text); border-bottom-color: var(--color-primary); }
@media (max-width: 560px) { .filter-tab { padding: .55rem .8rem; font-size: .84rem; } }

.filter-bar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.filter-bar .search-input { margin: 0; flex: 1; min-width: 160px; }
.filter-bar select.search-input { flex: 0 0 auto; max-width: 200px; }
.filter-check { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--color-brown-dark); white-space: nowrap; }
.pick-more { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.1rem; }
.pick-more .muted { font-size: .82rem; }

.review-card { background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; margin: 1rem 0; max-width: 420px; }
.review-row { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--color-surface-alt); }
.review-row:last-child { border-bottom: none; }

/* Receive (step 4) */
.receive-card { background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; max-width: 480px; }
.receive-number { display: flex; flex-direction: column; gap: .2rem; margin-bottom: 1.5rem; }
.receive-number strong { font-size: 1.5rem; font-family: ui-monospace, Menlo, monospace; }
.receive-card .code-box { margin: 1.25rem 0; color: var(--color-brown); }
.receive-card .code-box.has-code { color: var(--color-text); background: #e7f6ec; }
.receive-actions { display: flex; gap: .75rem; }
.receive-status { margin-top: 1rem; }

/* Admin */
.admin-head { display: flex; align-items: center; gap: .75rem; }
.admin-badge { background: var(--color-brown-dark); color: var(--color-primary); padding: .15rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.toolbar { margin: 0 0 1rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.row-actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.rule-form { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .5rem; }
.rule-form .search-input { margin: 0; max-width: 200px; }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(30, 27, 22, .55); padding: 1rem;
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--color-surface); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.3);
  padding: 1.75rem; width: min(420px, 100%);
}
.modal-card h3 { margin-bottom: .5rem; }
.modal-card label { display: flex; flex-direction: column; gap: .4rem; font-weight: 500; margin: 1rem 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-phone { order: -1; }
  .trust, .hero-cta { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 2.5rem 0; }
  .section { padding: 2.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-cta .btn { width: 100%; }
  .btn-lg { padding: .8rem 1.4rem; }
  .auth-aside-stats { gap: 1.1rem; }
  .receive-actions { flex-direction: column; }
  .receive-actions .btn { width: 100%; text-align: center; }
}

/* ===== Mobile optimisation pass (app widgets) ===== */
@media (max-width: 560px) {
  /* Buttons — smaller tap targets, but still comfortable */
  .btn { padding: .5rem .95rem; font-size: .85rem; }
  .btn-sm { padding: .35rem .65rem; font-size: .78rem; }
  .btn-lg { padding: .7rem 1.2rem; font-size: .95rem; }
  /* Tabs */
  .filter-tab { padding: .5rem .7rem; font-size: .8rem; }
  .pm-tabs { gap: .15rem; }
  .pm-tab { padding: .55rem .75rem; font-size: .85rem; }
  /* Inputs */
  .search-input { padding: .6rem .8rem; border-radius: 10px; font-size: .9rem; margin-bottom: .75rem; }
  /* Tables — denser */
  .data-table th, .data-table td { padding: .55rem .6rem; font-size: .82rem; }
  .data-table th { font-size: .68rem; }
  .row-actions { gap: .25rem; }
  .row-actions .btn { padding: .3rem .55rem; font-size: .75rem; }
  /* Modals */
  .modal-card { padding: 1.1rem; border-radius: 14px; }
  .modal-card label { margin: .7rem 0; }
  /* Pickers (buy wizard) */
  .pick-row { padding: .5rem .6rem; }
  .pick-price { font-size: .82rem; }
  /* Section headers */
  .app-panel-head, .panel-head { padding: .85rem 1rem; }
  .app-panel-head h2, .panel-head h2 { font-size: 1rem; }

  /* Responsive stacked tables: each row becomes a labelled card (no sideways
     scrolling, readable wording). Opt in with <table class="data-table stack">. */
  .data-table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table.stack, .data-table.stack tbody, .data-table.stack tr, .data-table.stack td { display: block; width: 100%; }
  .data-table.stack tr { border: 1px solid #ece0c9; border-radius: 12px; padding: .35rem .2rem; margin-bottom: .7rem; background: #fff; }
  .data-table.stack td { border: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .4rem .8rem; white-space: normal; text-align: right; }
  .data-table.stack td::before { content: attr(data-label); font-weight: 600; color: var(--color-brown); text-align: left; flex: 0 0 40%; }
  .data-table.stack td.col-check { display: none; }     /* checkbox column — hide on mobile */
  .data-table.stack td:empty { display: none; }
  .data-table.stack td.row-actions { justify-content: flex-end; flex-wrap: wrap; }
  .data-table.stack td.row-actions::before { flex: 0 0 auto; }
}

/* ===== Phase D: skeleton loaders ===== */
/* Reusable shimmer placeholder. Apply .skeleton to any block while content loads;
   use .skeleton-text for inline text-sized lines and .skeleton-row for list rows. */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-alt, #F5E6C8);
  border-radius: 8px;
  color: transparent !important;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
.skeleton-text {
  display: block;
  height: 0.9em;
  margin: 0.45em 0;
  border-radius: 6px;
}
.skeleton-text:last-child { width: 70%; }
.skeleton-row {
  display: block;
  height: 2.75rem;
  margin-bottom: 0.6rem;
  border-radius: 10px;
}
@keyframes skeleton-shimmer {
  100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton::after { animation: none; }
}

/* ===== Phase D: keyboard focus-visible affordance ===== */
.btn:focus-visible,
.filter-tab:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Cookie consent banner (audit M7) */
.cookie-consent { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 720px; margin: 0 auto; z-index: 1100; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: space-between; background: #1E1B16; color: #f3ece0; padding: .9rem 1.1rem; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.3); font-size: .88rem; }
.cookie-consent[hidden] { display: none; } /* class selector outranks the [hidden] default, so override it explicitly */
.cookie-consent a { color: var(--color-primary); }
.cookie-consent .btn { flex: 0 0 auto; }
@media (max-width: 560px) { .cookie-consent { flex-direction: column; align-items: stretch; text-align: center; } .cookie-consent .btn { width: 100%; } }

/* Select2 (country picker) — match the auth/native field look on every layout. */
.select2-container { font-family: inherit; width: 100% !important; }
.select2-container--default .select2-selection--single { height: 46px; border: 1.5px solid var(--color-surface-alt, #e7ddc9); border-radius: 12px; display: flex; align-items: center; padding: 0 .5rem; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: normal; color: var(--color-text); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; }
.select2-container--default.select2-container--focus .select2-selection--single { border-color: var(--color-primary); }
.select2-dropdown { border-color: var(--color-surface-alt, #e7ddc9); }
