/* ==========================================================================
   ManikPola.com by Sena Manik — design system
   Palette: Ceylon sapphire navy + 22k gold on ivory paper
   ========================================================================== */

:root {
  --navy-900: #06122a;
  --navy-800: #0b1b3a;
  --navy-700: #122a52;
  --navy-600: #1b3a73;
  --navy-500: #2c5296;
  --navy-100: #e7ecf6;

  --gold-600: #a8801a;
  --gold-500: #c9a227;
  --gold-400: #e3c567;
  --gold-300: #f2dc9b;
  --gold-100: #fbf3dc;

  --ruby: #9b1b30;
  --ruby-100: #fbe9ec;
  --teal: #0f766e;
  --teal-100: #e2f3f1;
  --amber: #b45309;
  --amber-100: #fdf1e0;

  --cream: #faf8f4;
  --paper: #ffffff;
  --line: #e9e3d7;
  --line-soft: #f1ece2;

  --ink: #12203d;
  --ink-2: #34405c;
  --muted: #6a7489;
  --muted-2: #97a0b2;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(10, 25, 55, .06), 0 2px 6px rgba(10, 25, 55, .05);
  --sh: 0 4px 12px rgba(10, 25, 55, .07), 0 12px 28px rgba(10, 25, 55, .06);
  --sh-lg: 0 18px 50px rgba(8, 22, 50, .16);
  --sh-gold: 0 8px 26px rgba(201, 162, 39, .3);

  --ff-display: "Cormorant Garamond", "Times New Roman", serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --t: .22s cubic-bezier(.4, 0, .2, 1);
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--gold-600); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.18; font-weight: 600; letter-spacing: -.01em; }
h1, h2, h3 { font-family: var(--ff-display); letter-spacing: 0; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
h4 { font-size: 1.05rem; font-family: var(--ff-body); font-weight: 600; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
small { font-size: .82rem; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy-800); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7;
     stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i--sm { width: 15px; height: 15px; }
.i--lg { width: 26px; height: 26px; }

/* --------------------------------------------------------------- topbar */
.topbar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .68);
  font-size: .78rem;
  letter-spacing: .02em;
  border-bottom: 1px solid rgba(227, 197, 103, .16);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar__tag { display: inline-flex; align-items: center; gap: 8px; }
.topbar__tag .i { width: 13px; height: 13px; stroke: none; fill: var(--gold-400); }
.topbar__links { display: flex; align-items: center; gap: 18px; }
.topbar__nav { display: flex; gap: 20px; }
.topbar a { color: rgba(255, 255, 255, .68); }
.topbar a:hover { color: var(--gold-300); }
.topbar__contact {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 600;
  color: var(--gold-300) !important; letter-spacing: .01em;
}
.topbar__contact .i { width: 13px; height: 13px; }
/* A phone number must never break across two lines. */
.topbar__contact, .topbar__contact span { white-space: nowrap; }
@media (max-width: 480px) {
  .topbar__links { gap: 12px; }
  .topbar__contact--wa span { display: none; }   /* icon only; the number keeps its label */
  .langswitch a, .langswitch__on { padding: 3px 9px; }
}
.topbar__contact:hover { color: #fff !important; }
.topbar__contact--wa { color: #56e08b !important; }
.topbar__contact--wa:hover { color: #8df3b4 !important; }

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t);
}
.site-header.is-stuck { box-shadow: var(--sh-sm); }
.header__in { display: flex; align-items: center; gap: 28px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 34px; height: 34px; display: block; filter: drop-shadow(0 2px 4px rgba(168, 128, 26, .35)); }
.brand__mark svg { width: 100%; height: 100%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong {
  font-family: var(--ff-display); font-size: 1.42rem; font-weight: 700; letter-spacing: .01em;
}
.brand__text strong span { color: var(--gold-600); font-weight: 500; }
.brand__text em {
  font-style: normal; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; margin-top: 2px;
}
.brand--light, .brand--light:hover { color: #fff; }
.brand--light .brand__text em { color: rgba(255, 255, 255, .6); }
.brand--footer, .brand--footer:hover { color: #fff; }
.brand--footer .brand__text em { color: rgba(255, 255, 255, .55); }

.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.main-nav > a {
  position: relative; color: var(--ink-2); font-size: .93rem; font-weight: 500; padding: 6px 0;
}
.main-nav > a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transition: right var(--t);
}
.main-nav > a:hover { color: var(--navy-700); }
.main-nav > a:hover::after, .main-nav > a.is-active::after { right: 0; }
.main-nav > a.is-active { color: var(--navy-700); font-weight: 600; }
.main-nav__auth { display: flex; align-items: center; gap: 16px; margin-left: 8px; }
.nav-link-plain { font-size: .93rem; font-weight: 500; color: var(--ink-2); }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 40px; border: 1px solid var(--line);
  background: var(--paper); border-radius: var(--r-sm); cursor: pointer; padding: 10px 11px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy-700); border-radius: 2px; transition: var(--t); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* user menu */
.usermenu { position: relative; }
.usermenu__btn {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: 0;
  cursor: pointer; padding: 6px 8px; border-radius: var(--r-pill); transition: background var(--t);
}
.usermenu__btn:hover { background: var(--navy-100); }
.usermenu__name { font-size: .9rem; font-weight: 500; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--navy-600), var(--navy-800)); color: var(--gold-300);
  font-weight: 600; font-size: .85rem; flex: none;
}
.avatar--sm { width: 26px; height: 26px; font-size: .72rem; }
.usermenu__drop {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: var(--t); z-index: 60;
}
.usermenu.is-open .usermenu__drop { opacity: 1; visibility: visible; transform: none; }
.usermenu__drop a, .usermenu__drop button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: var(--r-sm);
  font-size: .9rem; color: var(--ink-2); background: none; border: 0; cursor: pointer;
}
.usermenu__drop a:hover, .usermenu__drop button:hover { background: var(--cream); color: var(--navy-700); }
.usermenu__hi { color: var(--gold-600) !important; font-weight: 600; }
.usermenu__drop hr { margin: 6px 4px; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-size: .93rem; font-weight: 600; letter-spacing: .01em; cursor: pointer;
  transition: var(--t); white-space: nowrap; text-align: center;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500) 60%, var(--gold-600));
  color: var(--navy-900); box-shadow: var(--sh-gold);
}
.btn--gold:hover { color: var(--navy-900); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201, 162, 39, .42); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); box-shadow: var(--sh); }
.btn--ghost { border-color: var(--line); background: var(--paper); color: var(--ink); }
.btn--ghost:hover { border-color: var(--gold-500); color: var(--gold-600); background: var(--gold-100); }
.btn--outline-light { border-color: rgba(255, 255, 255, .38); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: var(--gold-400); }
.btn--danger { background: var(--ruby); color: #fff; }
.btn--danger:hover { color: #fff; filter: brightness(1.1); }
.btn--sm { padding: 9px 18px; font-size: .85rem; }
.btn--xs { padding: 6px 13px; font-size: .78rem; }
.btn--lg { padding: 16px 34px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn-link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--navy-600); font-weight: 500; font-size: .88rem; }
.btn-link:hover { color: var(--gold-600); }

/* ------------------------------------------------------- badges & pills */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: var(--navy-100); color: var(--navy-700); white-space: nowrap;
}
.badge--ok { background: var(--teal-100); color: var(--teal); }
.badge--warn { background: var(--amber-100); color: var(--amber); }
.badge--bad { background: var(--ruby-100); color: var(--ruby); }
.badge--info { background: var(--navy-100); color: var(--navy-600); }
.badge--muted { background: #eef0f4; color: var(--muted); }
.badge--gold { background: var(--gold-100); color: var(--gold-600); }
.badge--dark { background: rgba(6, 18, 42, .82); color: var(--gold-300); backdrop-filter: blur(4px); }
.pill {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: var(--r-pill); background: var(--ruby); color: #fff; font-size: .7rem; font-weight: 700;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold-500); }
.eyebrow--light { color: var(--gold-300); }
.eyebrow--light::before { background: var(--gold-400); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 26px; height: 1px; background: var(--gold-500); }

/* ----------------------------------------------------------------- flash */
.flash-wrap { padding-top: 18px; }
.flash {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 18px; border-radius: var(--r); font-size: .92rem; margin-bottom: 12px;
  border: 1px solid; animation: flashIn .3s ease;
}
@keyframes flashIn { from { opacity: 0; transform: translateY(-6px); } }
.flash--ok { background: var(--teal-100); border-color: #bfe3de; color: #0d5f59; }
.flash--bad { background: var(--ruby-100); border-color: #f3ccd3; color: #86182a; }
.flash--info { background: var(--navy-100); border-color: #cdd8ee; color: var(--navy-700); }
.flash--warn { background: var(--amber-100); border-color: #f4ddba; color: #8a4409; }
.flash__x { background: none; border: 0; font-size: 1.35rem; line-height: 1; cursor: pointer; opacity: .5; }
.flash__x:hover { opacity: 1; }
.flash a { text-decoration: underline; color: inherit; font-weight: 600; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 460px at 82% 12%, rgba(44, 82, 150, .55), transparent 62%),
    radial-gradient(620px 380px at 10% 88%, rgba(155, 27, 48, .28), transparent 64%),
    linear-gradient(158deg, var(--navy-900) 0%, var(--navy-800) 48%, var(--navy-700) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(227, 197, 103, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227, 197, 103, .07) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 78%);
  opacity: .55;
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px;
  align-items: center; padding: 84px 0 96px; }
.hero h1 { color: #fff; margin-bottom: 22px; font-weight: 500; }
.hero h1 b { font-weight: 700; color: var(--gold-300); display: block; }
.hero__lead { font-size: 1.1rem; color: rgba(255, 255, 255, .78); max-width: 54ch; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__stats { display: flex; gap: 40px; flex-wrap: wrap; padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .13); }
.hero__stat b { display: block; font-family: var(--ff-display); font-size: 2rem; color: var(--gold-300); line-height: 1.1; }
.hero__stat span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }

.hero__art { position: relative; display: grid; place-items: center; min-height: 400px; }
.hero__gem { width: min(100%, 400px); animation: float 7s ease-in-out infinite;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .5)); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(2deg); } }
.hero__halo {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(87, 137, 220, .38), transparent 66%);
  filter: blur(22px); animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.1); opacity: 1; } }
.hero__chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-pill); backdrop-filter: blur(10px); font-size: .82rem; font-weight: 500;
  animation: float 8s ease-in-out infinite;
}
.hero__chip .i { width: 16px; height: 16px; color: var(--gold-300); }
.hero__chip--1 { top: 12%; left: -2%; animation-delay: -1s; }
.hero__chip--2 { bottom: 16%; right: 0; animation-delay: -3.5s; }

/* hero search */
.hero-search {
  position: relative; z-index: 3; margin: -46px auto 0; max-width: 1080px;
  background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  padding: 12px; display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 8px;
  border: 1px solid var(--line);
}
.hero-search__f { display: flex; flex-direction: column; padding: 8px 14px; border-radius: var(--r); position: relative; }
.hero-search__f + .hero-search__f::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: var(--line);
}
.hero-search__f label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.hero-search__f input, .hero-search__f select {
  border: 0; background: none; font-size: .95rem; font-weight: 500; color: var(--ink);
  padding: 3px 0; width: 100%; outline: none; appearance: none;
}
.hero-search .btn { align-self: stretch; }

/* --------------------------------------------------------------- section */
.section { padding: 84px 0; }
.section--tight { padding: 58px 0; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy-800); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--pattern {
  background: var(--navy-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0 60 30 30 60 0 30Z' fill='none' stroke='%23e3c567' stroke-opacity='.06'/%3E%3C/svg%3E");
  color: #fff;
}
.section__head { max-width: 720px; margin-bottom: 46px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section--navy .section__head p, .section--pattern .section__head p { color: rgba(255, 255, 255, .7); }
.section__head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section__head-row .section__head { margin-bottom: 0; }

/* ------------------------------------------------------------- gem cards */
.gem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 26px; }
.gem-grid--4 { grid-template-columns: repeat(4, 1fr); }

.gem-card {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column;
  transition: var(--t);
}
.gem-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--gold-400); }
.gem-card__media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: block;
  background: radial-gradient(circle at 50% 45%, #fff, var(--cream) 70%);
}
.gem-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gem-card:hover .gem-card__media img { transform: scale(1.07); }
.gem-card__tags {
  position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px;
  align-items: flex-start; max-width: calc(100% - 60px);
}
.gem-card__tags .badge { max-width: 100%; display: block; overflow: hidden; text-overflow: ellipsis; }
.gem-card__fav {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line); display: grid; place-items: center;
  cursor: pointer; transition: var(--t); color: var(--muted);
}
.gem-card__fav:hover, .gem-card__fav.is-on { background: var(--ruby); color: #fff; border-color: var(--ruby); }
.gem-card__fav.is-on .i { fill: currentColor; }
.gem-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.gem-card__type { font-size: .73rem; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; }
.gem-card__title { font-family: var(--ff-display); font-size: 1.28rem; font-weight: 600; margin: 4px 0 10px; color: var(--ink); }
.gem-card:hover .gem-card__title { color: var(--navy-700); }
.gem-card__specs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.gem-card__specs span { display: inline-flex; align-items: center; gap: 5px; }
.gem-card__foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.gem-card__price { font-size: 1.15rem; font-weight: 700; color: var(--navy-800); }
.gem-card__price small { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); }
.gem-card__price--ask { font-size: .93rem; font-weight: 600; color: var(--gold-600); }
.gem-card__cta { font-size: .82rem; font-weight: 600; color: var(--navy-600); display: inline-flex; align-items: center; gap: 5px; }
.gem-card:hover .gem-card__cta { color: var(--gold-600); gap: 9px; }
.gem-card__link { position: absolute; inset: 0; z-index: 2; }
.gem-card__fav, .gem-card__foot .btn { position: relative; z-index: 3; }

/* --------------------------------------------------------- category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.cat-tile {
  position: relative; padding: 24px 20px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--paper); text-align: center; transition: var(--t); overflow: hidden;
}
.cat-tile::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); transform: scaleX(0); transition: transform var(--t);
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: transparent; }
.cat-tile:hover::after { transform: scaleX(1); }
.cat-tile img { width: 62px; height: 62px; margin: 0 auto 12px; }
.cat-tile b { display: block; font-size: .95rem; color: var(--ink); font-weight: 600; }
.cat-tile span { font-size: .78rem; color: var(--muted); }

/* --------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; counter-reset: s; }
.step { position: relative; padding-top: 8px; }
.step__n {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-family: var(--ff-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 18px;
  background: linear-gradient(140deg, var(--gold-300), var(--gold-500)); color: var(--navy-900);
  box-shadow: var(--sh-gold);
}
.section--navy .step__n, .section--pattern .step__n { box-shadow: none; }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
.section--navy .step p, .section--pattern .step p { color: rgba(255, 255, 255, .68); }
.step::after {
  content: ""; position: absolute; top: 27px; left: 68px; right: -22px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
.step:last-child::after { display: none; }
.section--navy .step::after, .section--pattern .step::after {
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 6px, transparent 6px 12px);
}

/* -------------------------------------------------------------- features */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature {
  padding: 30px 26px; border-radius: var(--r-lg); background: var(--paper);
  border: 1px solid var(--line); transition: var(--t);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.feature__icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--navy-100); color: var(--navy-600); margin-bottom: 16px;
}
.feature h3 { font-size: 1.16rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }
.section--navy .feature, .section--pattern .feature {
  background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12);
}
.section--navy .feature p, .section--pattern .feature p { color: rgba(255, 255, 255, .68); }
.section--navy .feature__icon, .section--pattern .feature__icon {
  background: rgba(227, 197, 103, .15); color: var(--gold-300);
}

/* ------------------------------------------------------------------- CTA */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 56px 48px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 197, 103, .28), transparent 68%);
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 8px; color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .76); margin: 0; max-width: 56ch; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* -------------------------------------------------------- broker portrait */
.portrait { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.portrait--reverse .portrait__media { order: 2; }
.portrait__media {
  margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--sh);
}
.portrait__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), inset 0 -70px 90px -60px rgba(6, 18, 42, .55);
}
.portrait__media img { width: 100%; height: auto; display: block; }
.portrait__body h2 { margin-bottom: 14px; }
.portrait__lead { font-size: 1.08rem; color: var(--ink-2); }
.portrait__body p { color: var(--muted); }
.portrait__body .trust-list { margin: 22px 0 0; }

/* --------------------------------------------------------- testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.quote {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 28px; position: relative;
}
.quote__mark { font-family: var(--ff-display); font-size: 4rem; line-height: .6; color: var(--gold-300); }
.quote p { font-size: .98rem; color: var(--ink-2); font-style: italic; }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote__who b { font-size: .9rem; display: block; }
.quote__who span { font-size: .8rem; color: var(--muted); }

/* ------------------------------------------------------------ page hero */
.page-hero {
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: #fff; padding: 56px 0; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(227, 197, 103, .18), transparent 68%);
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: rgba(255, 255, 255, .74); max-width: 66ch; margin: 0; }
.crumbs { display: flex; gap: 8px; font-size: .82rem; color: rgba(255, 255, 255, .55); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a { color: rgba(255, 255, 255, .78); }
.crumbs a:hover { color: var(--gold-300); }

/* -------------------------------------------------------------- listings */
.listing-layout { display: grid; grid-template-columns: 278px 1fr; gap: 34px; align-items: start; padding: 44px 0 84px; }
.filters {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; position: sticky; top: 96px;
}
.filters h3 { font-family: var(--ff-body); font-size: .95rem; font-weight: 600; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; }
.filters h3 a { font-size: .8rem; font-weight: 500; }
.filter-group { border-top: 1px solid var(--line-soft); padding: 16px 0 4px; }
.filter-group > label, .filter-group__t {
  display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 9px;
}
.filter-range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.filter-range span { color: var(--muted-2); }
.check-list { display: flex; flex-direction: column; gap: 8px; max-height: 210px; overflow-y: auto; padding-right: 4px; }
.check {
  display: flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--ink-2); cursor: pointer;
}
.check input { width: 16px; height: 16px; accent-color: var(--navy-600); flex: none; }
.check span.count { margin-left: auto; font-size: .76rem; color: var(--muted-2); }

.listing-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 22px; flex-wrap: wrap;
}
.listing-bar__count { font-size: .92rem; color: var(--muted); }
.listing-bar__count b { color: var(--ink); }
.listing-tools { display: flex; align-items: center; gap: 10px; }
.select-mini {
  border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-pill);
  padding: 9px 16px; font-size: .86rem; font-weight: 500; color: var(--ink-2); cursor: pointer;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--navy-100); color: var(--navy-700); font-size: .8rem; font-weight: 500;
}
.chip a { color: inherit; opacity: .6; font-weight: 700; }
.chip a:hover { opacity: 1; color: var(--ruby); }
.filters-toggle { display: none; }

/* ------------------------------------------------------------ pagination */
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 46px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--paper);
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
}
.pager a:hover { border-color: var(--gold-500); color: var(--gold-600); }
.pager .is-current { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.pager .is-gap { border: 0; background: none; }

/* ---------------------------------------------------------- empty states */
.empty {
  text-align: center; padding: 62px 24px; background: var(--paper);
  border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.empty__icon { width: 62px; height: 62px; margin: 0 auto 16px; color: var(--muted-2); }
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 46ch; margin: 0 auto 20px; }

/* ----------------------------------------------------------- gem detail */
.gem-detail { padding: 40px 0 80px; }
.gem-detail__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: start; }
.gallery__main {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #fff, var(--cream) 72%);
  border: 1px solid var(--line); display: grid; place-items: center;
}
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.gallery__badges { position: absolute; top: 16px; left: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery__thumb {
  aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; border: 2px solid var(--line);
  background: var(--cream); cursor: pointer; padding: 0; transition: var(--t);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { border-color: var(--gold-400); }
.gallery__thumb.is-active { border-color: var(--navy-600); }

.gem-head { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 24px; }
.gem-head__type { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; }
.gem-head h1 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin: 8px 0 12px; }
.gem-head__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; color: var(--muted); }
.gem-price {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px;
}
.gem-price b { font-size: 2.2rem; font-family: var(--ff-display); font-weight: 700; color: var(--navy-800); }
.gem-price span { font-size: .9rem; color: var(--muted); }
.gem-price__per { font-size: .88rem; color: var(--muted); margin-bottom: 22px; }

.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 26px; }
.spec-table th, .spec-table td { padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; text-align: left; }
.spec-table th { width: 42%; color: var(--muted); font-weight: 500; }
.spec-table td { color: var(--ink); font-weight: 500; }

.info-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; margin-bottom: 20px;
}
.info-card--gold { background: var(--gold-100); border-color: #eddfb4; }
.info-card--navy { background: var(--navy-800); color: #fff; border-color: transparent; }
.info-card--navy h3, .info-card--navy h4 { color: #fff; }
.info-card--navy p { color: rgba(255, 255, 255, .74); }
.info-card h3 { font-family: var(--ff-body); font-size: 1.05rem; margin-bottom: 12px; }

.seller-line { display: flex; align-items: center; gap: 14px; }
.seller-line .avatar { width: 44px; height: 44px; font-size: 1rem; }
.seller-line b { display: block; font-size: .95rem; }
.seller-line span { font-size: .82rem; color: var(--muted); }

.trust-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.trust-list li { display: flex; gap: 11px; font-size: .9rem; color: var(--ink-2); }
.trust-list .i { color: var(--teal); margin-top: 2px; }
.info-card--navy .trust-list li { color: rgba(255, 255, 255, .8); }
.info-card--navy .trust-list .i { color: var(--gold-300); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs button {
  padding: 12px 20px; background: none; border: 0; border-bottom: 2px solid transparent;
  font-size: .92rem; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap;
}
.tabs button:hover { color: var(--navy-700); }
.tabs button.is-active { color: var(--navy-800); border-bottom-color: var(--gold-500); font-weight: 600; }
.tab-panel { display: none; animation: fadeIn .25s ease; }
.tab-panel.is-active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } }

/* ----------------------------------------------------------------- forms */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
.form-grid--3 { grid-template-columns: repeat(3, 1fr); }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field--full { grid-column: 1 / -1; }
.field > label, .label {
  font-size: .84rem; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 6px;
}
.field .req { color: var(--ruby); }
.field .hint { font-size: .79rem; color: var(--muted); font-weight: 400; }
.input, .field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="number"], .field input[type="tel"], .field input[type="url"],
.field input[type="date"], .field select, .field textarea {
  width: 100%; padding: 12px 15px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); font: inherit; font-size: .93rem; color: var(--ink); transition: var(--t);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236a7489' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(44, 82, 150, .12);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--ruby); }
.field .err { font-size: .8rem; color: var(--ruby); }
.input-group { display: flex; }
.input-group .prefix {
  display: grid; place-items: center; padding: 0 14px; background: var(--cream);
  border: 1px solid var(--line); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm);
  font-size: .9rem; color: var(--muted); font-weight: 600;
}
.input-group input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.switch-row { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--ink-2); }
.switch-row input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--navy-600); flex: none; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 26px;
  padding-top: 22px; border-top: 1px solid var(--line); }

.form-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 34px; box-shadow: var(--sh-sm);
}
.form-card + .form-card { margin-top: 24px; }
.form-card__head { margin-bottom: 24px; }
.form-card__head h2 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card__head p { color: var(--muted); font-size: .93rem; margin: 0; }
.fieldset-title {
  display: flex; align-items: center; gap: 12px; margin: 30px 0 18px;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); font-weight: 700;
}
.fieldset-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fieldset-title:first-child { margin-top: 0; }

/* dropzone */
.dropzone {
  border: 2px dashed var(--line); border-radius: var(--r); padding: 34px 20px; text-align: center;
  background: var(--cream); cursor: pointer; transition: var(--t);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--gold-500); background: var(--gold-100); }
.dropzone .i { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--muted); }
.dropzone b { display: block; font-size: .95rem; }
.dropzone span { font-size: .83rem; color: var(--muted); }
.dropzone input { display: none; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 14px; }
.preview-grid figure { margin: 0; position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.preview-grid img { width: 100%; height: 100%; object-fit: cover; }
.preview-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; background: rgba(6, 18, 42, .72); color: #fff;
  font-size: .68rem; text-align: center; padding: 3px;
}

/* --------------------------------------------------------------- auth UI */
.auth-body { background: var(--navy-900); }
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-aside {
  position: relative; padding: 46px 54px; color: #fff; display: flex; flex-direction: column;
  justify-content: space-between; overflow: hidden;
  background:
    radial-gradient(700px 400px at 80% 10%, rgba(44, 82, 150, .6), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
}
.auth-aside::before {
  content: ""; position: absolute; inset: 0; opacity: .4;
  background-image: linear-gradient(rgba(227, 197, 103, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227, 197, 103, .08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 40% 50%, #000, transparent 76%);
}
.auth-aside > * { position: relative; }
.auth-aside__body { max-width: 460px; }
.auth-aside h2 { color: #fff; font-size: 2.1rem; margin-bottom: 30px; }
.auth-aside__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 22px; }
.auth-aside__list li { display: flex; gap: 16px; }
.auth-aside__list span {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: rgba(227, 197, 103, .16); color: var(--gold-300); font-weight: 700; font-size: .9rem;
}
.auth-aside__list b { display: block; font-size: .98rem; margin-bottom: 2px; }
.auth-aside__list p { font-size: .88rem; color: rgba(255, 255, 255, .62); margin: 0; }
.auth-aside__foot { font-size: .78rem; color: rgba(255, 255, 255, .4); }
.auth-panel { background: var(--cream); display: grid; place-items: center; padding: 46px 24px; }
.auth-panel__in { width: 100%; max-width: 430px; }
.auth-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 36px 34px; box-shadow: var(--sh);
}
.auth-card h1 { font-size: 1.9rem; margin-bottom: 6px; }
.auth-card__sub { color: var(--muted); font-size: .93rem; margin-bottom: 26px; }
.auth-alt { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 22px; }
.auth-divider { display: flex; align-items: center; gap: 14px; color: var(--muted-2); font-size: .8rem; margin: 22px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-back { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; color: var(--muted); margin-bottom: 20px; }

/* ------------------------------------------------------------- dashboard */
.dash { padding: 34px 0 80px; }
.dash__grid { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; }
.dash-nav {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 10px; position: sticky; top: 96px;
}
.dash-nav a {
  display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: var(--r-sm);
  font-size: .9rem; color: var(--ink-2); font-weight: 500;
}
.dash-nav a:hover { background: var(--cream); color: var(--navy-700); }
.dash-nav a.is-active { background: var(--navy-800); color: #fff; }
.dash-nav a.is-active .i { color: var(--gold-300); }
.dash-nav a .pill { margin-left: auto; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.dash-head h1 { font-size: 2rem; margin-bottom: 4px; }
.dash-head p { color: var(--muted); margin: 0; font-size: .94rem; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 28px; }
.stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 22px; position: relative; overflow: hidden;
}
.stat__label { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.stat__value { font-family: var(--ff-display); font-size: 2.1rem; font-weight: 700; color: var(--navy-800); line-height: 1.15; margin-top: 4px; }
.stat__sub { font-size: .8rem; color: var(--muted); }
.stat__icon { position: absolute; right: 16px; top: 18px; color: var(--line); }
.stat--gold { background: linear-gradient(140deg, var(--gold-100), #fff); border-color: #eddfb4; }
.stat--gold .stat__value { color: var(--gold-600); }
.stat--navy { background: linear-gradient(140deg, var(--navy-800), var(--navy-600)); border-color: transparent; }
.stat--navy .stat__label { color: rgba(255, 255, 255, .6); }
.stat--navy .stat__value { color: var(--gold-300); }
.stat--navy .stat__sub { color: rgba(255, 255, 255, .55); }
.stat--navy .stat__icon { color: rgba(255, 255, 255, .14); }

.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  margin-bottom: 24px;
}
.panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.panel__head h2, .panel__head h3 { font-family: var(--ff-body); font-size: 1.02rem; font-weight: 600; margin: 0; }
.panel__body { padding: 24px; }
.panel__body--flush { padding: 0; }

/* ---------------------------------------------------------------- tables */
/* Grid children must be allowed to shrink, or wide tables push the page sideways. */
.admin-grid > *, .dash__grid > *, .listing-layout > *, .doc-layout > *, .panel, .form-card { min-width: 0; }
.table-scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th {
  text-align: left; padding: 13px 18px; background: var(--cream); color: var(--muted);
  font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 600;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--t); }
.table tbody tr:hover { background: #fcfbf8; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table__gem { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.table__gem img { width: 48px; height: 48px; border-radius: var(--r-sm); object-fit: cover; background: var(--cream); border: 1px solid var(--line); }
.table__gem b { display: block; font-size: .92rem; color: var(--ink); }
.table__gem span { font-size: .78rem; color: var(--muted); }
.table__actions { display: flex; gap: 6px; justify-content: flex-end; }
.ref { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .82rem; color: var(--muted); }

/* ----------------------------------------------------------------- admin */
.admin-body { background: #f4f6fa; }
.admin-shell { display: grid; grid-template-columns: 258px 1fr; min-height: 100vh; }
.admin-side {
  background: var(--navy-900); color: rgba(255, 255, 255, .78); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; padding: 22px 16px;
}
.admin-side__brand { display: flex; align-items: center; gap: 12px; color: #fff; padding: 6px 8px 22px; }
.admin-side__brand:hover { color: #fff; }
.admin-side__brand .brand__mark { width: 30px; height: 30px; }
.admin-side__brand strong { display: block; font-family: var(--ff-display); font-size: 1.24rem; }
.admin-side__brand em { font-style: normal; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); }
.admin-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; overflow-y: auto; }
.admin-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-sm);
  color: rgba(255, 255, 255, .7); font-size: .9rem; font-weight: 500;
}
.admin-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-nav a.is-active { background: linear-gradient(100deg, rgba(227, 197, 103, .2), rgba(227, 197, 103, .05)); color: var(--gold-300); }
.admin-nav a .pill { margin-left: auto; }
.admin-side__foot { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.admin-side__link {
  display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-radius: var(--r-sm);
  color: rgba(255, 255, 255, .6); font-size: .86rem; background: none; border: 0; cursor: pointer; width: 100%; text-align: left;
}
.admin-side__link:hover { background: rgba(255, 255, 255, .07); color: #fff; }

.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-top {
  background: #fff; border-bottom: 1px solid #e4e8f0; padding: 0 30px; min-height: 68px;
  display: flex; align-items: center; gap: 16px; position: sticky; top: 0; z-index: 30;
}
.admin-top__title { font-family: var(--ff-display); font-size: 1.5rem; margin: 0; }
.admin-top__right { margin-left: auto; }
.admin-top__user { display: inline-flex; align-items: center; gap: 9px; font-size: .88rem; font-weight: 500; }
.admin-burger { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-sm);
  width: 40px; height: 36px; padding: 9px 10px; flex-direction: column; justify-content: space-between; cursor: pointer; }
.admin-burger span { display: block; height: 2px; background: var(--navy-700); border-radius: 2px; }
.admin-content { padding: 26px 30px 60px; flex: 1; }
.admin-flash { padding: 18px 30px 0; }

.admin-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
.filters-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin-bottom: 20px;
}
.filters-bar .input, .filters-bar select { padding: 9px 13px; font-size: .88rem; width: auto; min-width: 150px; }
.filters-bar__search { flex: 1; min-width: 200px; }
.tabs-line { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs-line a {
  padding: 8px 16px; border-radius: var(--r-pill); font-size: .86rem; font-weight: 500;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}
.tabs-line a:hover { border-color: var(--gold-500); color: var(--gold-600); }
.tabs-line a.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.tabs-line a b { opacity: .65; font-weight: 600; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 20px 26px; border-left: 2px solid var(--line); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold-500); box-shadow: 0 0 0 3px var(--gold-100);
}
.timeline b { font-size: .9rem; display: block; }
.timeline span { font-size: .79rem; color: var(--muted); }

.kv { display: grid; grid-template-columns: 40% 60%; gap: 10px 0; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }

.note {
  background: var(--gold-100); border-left: 3px solid var(--gold-500); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 12px 16px; font-size: .88rem; color: #6b5310;
}
.note--info { background: var(--navy-100); border-color: var(--navy-500); color: var(--navy-700); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .62); padding: 66px 0 0; margin-top: auto; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 48px; }
.footer__brand p { font-size: .9rem; margin: 18px 0; max-width: 46ch; }
.footer__col h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer__col a { display: block; color: rgba(255, 255, 255, .62); font-size: .9rem; padding: 5px 0; }
.footer__col a:hover { color: var(--gold-300); padding-left: 5px; }
.footer__contact { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 10px; }
.footer__contact a, .footer__contact-static {
  display: inline-flex; align-items: center; gap: 10px; font-size: .93rem; color: rgba(255, 255, 255, .78);
}
.footer__contact a { font-weight: 600; }
.footer__contact a:hover { color: var(--gold-300); }
.footer__contact .i { width: 17px; height: 17px; color: var(--gold-400); flex: none; }
.footer__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn--wa { background: #25d366; color: #04270f; }
.btn--wa:hover { background: #3ae67c; color: #04270f; transform: translateY(-2px); }

.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .8);
}
.footer__social a:hover { background: var(--gold-500); color: var(--navy-900); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 24px; display: flex;
  justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .83rem;
}
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; gap: 10px; align-items: center; }
.footer__legal a { color: rgba(255, 255, 255, .62); }
.footer__legal a:hover { color: var(--gold-300); }

.float-actions {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; flex-direction: column; gap: 12px;
}
.float-btn {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; transition: var(--t);
}
.float-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.float-btn:hover { transform: scale(1.08); color: #fff; }
.float-btn--wa { background: #25d366; box-shadow: 0 8px 24px rgba(37, 211, 102, .42); }
.float-btn--call { background: linear-gradient(140deg, var(--gold-400), var(--gold-600)); color: var(--navy-900); box-shadow: var(--sh-gold); }
.float-btn--call:hover { color: var(--navy-900); }

/* ------------------------------------------------------------- prose/doc */
.prose { max-width: 76ch; }
.prose h2 { margin-top: 2em; font-size: 1.75rem; }
.prose h3 { margin-top: 1.6em; font-size: 1.3rem; font-family: var(--ff-body); font-weight: 600; }
.prose p, .prose li { color: var(--ink-2); font-size: 1rem; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold-500);
  font-family: var(--ff-display); font-size: 1.25rem; color: var(--navy-700);
}
.doc-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; padding: 52px 0 80px; }

.accordion { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.accordion + .accordion { margin-top: 12px; }
.accordion__q {
  width: 100%; text-align: left; background: none; border: 0; padding: 18px 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 1rem; font-weight: 600;
}
.accordion__q .i { transition: transform var(--t); color: var(--gold-600); }
.accordion.is-open .accordion__q .i { transform: rotate(45deg); }
.accordion__a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.accordion.is-open .accordion__a { padding: 0 22px 20px; max-height: 600px; }
.accordion__a p { color: var(--muted); font-size: .94rem; margin: 0; }

/* -------------------------------------------------------------- utility */
.tc { text-align: center; }
.tr { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.strong { font-weight: 600; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .hero__in { grid-template-columns: 1fr; gap: 36px; padding: 60px 0 76px; text-align: center; }
  .hero__cta, .hero__stats, .eyebrow { justify-content: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__art { order: -1; min-height: 280px; }
  .hero__gem { width: min(74%, 300px); }
  .hero__chip { display: none; }
  .hero-search { grid-template-columns: 1fr 1fr; }
  .gem-detail__grid { grid-template-columns: 1fr; gap: 34px; }
  .doc-layout { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .gem-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .portrait { grid-template-columns: 1fr; gap: 30px; }
  .portrait--reverse .portrait__media { order: 0; }
  .portrait__media { max-width: 560px; }
}

@media (max-width: 900px) {
  .topbar__tag, .topbar__nav { display: none; }
  .topbar__in { justify-content: center; }
  .topbar__links { gap: 22px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 114px 0 auto; background: var(--paper); flex-direction: column;
    align-items: stretch; gap: 0; padding: 14px 24px 26px; border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-lg); max-height: calc(100vh - 114px); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: var(--t);
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav > a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .main-nav > a::after { display: none; }
  .main-nav__auth { margin: 18px 0 0; flex-direction: column; align-items: stretch; gap: 12px; }
  .main-nav__auth .btn { width: 100%; }
  .usermenu__drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0; }
  .usermenu__btn { width: 100%; justify-content: flex-start; }

  .listing-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.is-open { display: block; }
  .filters-toggle { display: inline-flex; }
  .dash__grid { grid-template-columns: 1fr; }
  .dash-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .dash-nav a { white-space: nowrap; }

  .admin-shell { grid-template-columns: 1fr; }
  .admin-side {
    position: fixed; inset: 0 auto 0 0; width: 258px; z-index: 200; transform: translateX(-100%);
    transition: transform var(--t);
  }
  .admin-side.is-open { transform: none; box-shadow: var(--sh-lg); }
  .admin-burger { display: flex; }
  .admin-content { padding: 20px 18px 50px; }
  .admin-top { padding: 0 18px; }
  .admin-flash { padding: 14px 18px 0; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .section { padding: 58px 0; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-panel { padding: 34px 18px; }
  .hero-search { grid-template-columns: 1fr; margin-top: -20px; gap: 2px; }
  .hero-search__f + .hero-search__f::before { left: 14px; right: 14px; top: 0; bottom: auto; width: auto; height: 1px; }
  .form-grid, .form-grid--3, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .cta-band { padding: 38px 26px; }
  .step::after { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .gem-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
  .gem-grid--4 { grid-template-columns: 1fr 1fr; }
  .gem-card__body { padding: 14px; }
  .gem-card__title { font-size: 1.08rem; }
  .form-card { padding: 24px 20px; }
  .hero__stats { gap: 26px; }
  .hero__stat b { font-size: 1.6rem; }
  .float-actions { right: 14px; bottom: 14px; gap: 10px; }
  .float-btn { width: 48px; height: 48px; }
  .float-btn svg { width: 22px; height: 22px; }
  .footer__bottom { justify-content: center; text-align: center; }
}

@media print {
  .site-header, .topbar, .site-footer, .float-actions, .admin-side, .admin-top, .btn { display: none !important; }
  body { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Language switcher and Sinhala typography
   ========================================================================== */

.langswitch {
  display: inline-flex; align-items: center; gap: 2px; margin-left: 4px;
  border: 1px solid rgba(227, 197, 103, .3); border-radius: var(--r-pill); padding: 2px;
}
.langswitch a, .langswitch__on {
  display: inline-block; padding: 3px 11px; border-radius: var(--r-pill);
  font-size: .74rem; font-weight: 600; letter-spacing: .04em; line-height: 1.5;
}
.langswitch a { color: rgba(255, 255, 255, .7) !important; }
.langswitch a:hover { color: var(--gold-300) !important; background: rgba(255, 255, 255, .08); }
.langswitch__on { background: var(--gold-500); color: var(--navy-900); }

/* Full-width language row inside the mobile drawer */
.main-nav__lang { display: none; }
.main-nav__lang a, .main-nav__lang .is-on {
  display: block; padding: 12px 14px; border-radius: var(--r-sm);
  font-size: .95rem; font-weight: 500; text-align: center;
}
.main-nav__lang .is-on { background: var(--navy-800); color: var(--gold-300); }
.main-nav__lang a { border: 1px solid var(--line); color: var(--ink-2); }

@media (max-width: 900px) {
  .main-nav__lang { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 4px; }
}

/* --------------------------------------------------------------- Sinhala --
   Cormorant Garamond has no Sinhala glyphs, so both faces are swapped and the
   line box is opened up: Sinhala glyphs are taller, carry more marks than
   Latin, and run roughly 15% longer for the same sentence. */
html[lang="si"] {
  --ff-display: "Noto Serif Sinhala", "Iskoola Pota", "Nirmala UI", serif;
  --ff-body: "Noto Sans Sinhala", "Iskoola Pota", "Nirmala UI", sans-serif;
}
html[lang="si"] body { line-height: 1.8; }
html[lang="si"] h1, html[lang="si"] h2, html[lang="si"] h3 { line-height: 1.4; letter-spacing: 0; }
html[lang="si"] h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
html[lang="si"] h2 { font-size: clamp(1.55rem, 2.9vw, 2.3rem); }
html[lang="si"] .eyebrow,
html[lang="si"] .stat__label,
html[lang="si"] .filter-group__t,
html[lang="si"] .hero-search__f label,
html[lang="si"] .table th,
html[lang="si"] .footer__col h4 { letter-spacing: .04em; text-transform: none; }
html[lang="si"] .badge { text-transform: none; letter-spacing: .01em; font-size: .74rem; }
html[lang="si"] .btn { line-height: 1.5; }
/* Sinhala labels run longer — let these wrap rather than overflow. */
html[lang="si"] .btn, html[lang="si"] .gem-card__type, html[lang="si"] .chip { white-space: normal; }
html[lang="si"] .main-nav { gap: 22px; }
html[lang="si"] .brand__text em { letter-spacing: .06em; }
/* The wordmark stays Latin in both languages. */
html[lang="si"] .brand__text strong { font-family: "Cormorant Garamond", serif; }
