:root {
  --ink: #17211e;
  --ink-soft: #31423c;
  --green: #0b6b52;
  --green-dark: #064737;
  --green-deep: #083d31;
  --mint: #e8f5ef;
  --mint-bright: #ccebdd;
  --surface: #ffffff;
  --canvas: #f6f8f5;
  --line: #dfe7e2;
  --muted: #66756f;
  --danger: #b4232f;
  --danger-pale: #fff0f1;
  --warning: #91610b;
  --warning-pale: #fff8e7;
  --shadow-sm: 0 4px 18px rgba(18, 48, 38, .06);
  --shadow: 0 18px 50px rgba(18, 48, 38, .1);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0 0 auto;
  height: 430px;
  background: linear-gradient(180deg, #eef7f2 0, rgba(246, 248, 245, 0) 100%);
  pointer-events: none;
}

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

:focus-visible {
  outline: 3px solid rgba(11, 107, 82, .28);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--green-dark);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(223, 231, 226, .9);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 0 rgba(18, 48, 38, .02);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.38rem;
  font-weight: 850;
  letter-spacing: -.04em;
  text-decoration: none;
}

.brand:hover { color: var(--ink); }

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #11906d, var(--green-dark));
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(11, 107, 82, .22);
  font-size: 1rem;
  letter-spacing: 0;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-header nav > a,
.link-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  color: var(--ink-soft);
  background: transparent;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.site-header nav > a:hover,
.link-button:hover { color: var(--green); background: var(--mint); }

.site-header nav .nav-cta {
  margin-left: 4px;
  padding-inline: 17px;
  color: #fff;
  background: var(--green);
}
.site-header nav .nav-cta:hover { color: #fff; background: var(--green-dark); }

.inline { display: inline; margin: 0; }

.container {
  width: min(1180px, calc(100% - 40px));
  min-height: 68vh;
  margin: 44px auto 80px;
}

h1, h2, h3 { color: var(--ink); line-height: 1.14; letter-spacing: -.035em; }
h1 { margin: 0 0 18px; font-size: clamp(2.25rem, 5vw, 4.25rem); }
h2 { margin: 0 0 14px; font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { margin: 0 0 10px; font-size: 1.18rem; }
p { margin: 0 0 18px; }

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.muted { color: var(--muted); }
.narrow { width: min(720px, 100%); margin-inline: auto; }
.center-heading { max-width: 680px; margin: 0 auto 28px; text-align: center; }
.center-heading p { color: var(--muted); font-size: 1.06rem; }

.card {
  margin-bottom: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--green);
  box-shadow: 0 8px 20px rgba(11, 107, 82, .16);
  font-weight: 780;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
  color: #fff;
  background: var(--green-dark);
  box-shadow: 0 12px 24px rgba(11, 107, 82, .22);
  transform: translateY(-1px);
}

.button.secondary { color: var(--green-dark); background: var(--mint); box-shadow: none; }
.button.secondary:hover { background: var(--mint-bright); }
.button.danger { background: var(--danger); box-shadow: 0 8px 20px rgba(180, 35, 47, .14); }
.button.danger:hover { background: #8f1924; }
.button-block { width: 100%; }
.small-button { min-height: 42px; padding: 9px 15px; }

.text-link, .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 750;
  text-decoration: none;
}
.back-link { margin-bottom: 24px; color: var(--ink-soft); }
.text-link:hover, .back-link:hover { text-decoration: underline; }

.badge, .status, .queue-badge, .table-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--mint);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.message {
  margin-bottom: 20px;
  padding: 14px 17px;
  border: 1px solid #b9dfce;
  border-radius: 12px;
  color: var(--green-dark);
  background: #ecf8f2;
  font-weight: 650;
}
.message.error { color: #7d2028; border-color: #f2b9be; background: var(--danger-pale); }

.notice {
  padding: 14px 16px;
  border: 1px solid #f0dda8;
  border-left: 4px solid #d29a22;
  border-radius: 10px;
  color: #6e4a0a;
  background: var(--warning-pale);
}
.compact-notice { font-size: .92rem; }

.hero { margin-bottom: 58px; }

.home-hero {
  position: relative;
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .72fr);
  align-items: center;
  gap: 56px;
  overflow: hidden;
  padding: clamp(42px, 7vw, 74px);
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(89, 207, 164, .22), transparent 30%),
    radial-gradient(circle at 5% 100%, rgba(89, 207, 164, .13), transparent 35%),
    linear-gradient(135deg, #0b4b3c 0%, #06382e 100%);
  box-shadow: var(--shadow);
}

.home-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -140px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, .025), 0 0 0 110px rgba(255, 255, 255, .018);
  pointer-events: none;
}

.hero-copy, .hero-card { position: relative; z-index: 1; }
.home-hero .eyebrow { color: #91e2c2; }
.home-hero h1 { max-width: 700px; color: #fff; font-size: clamp(2.65rem, 5.8vw, 5rem); }
.home-hero h1 span { color: #8fe0bf; }
.home-hero .hero-copy > p { max-width: 690px; color: #d8e9e2; font-size: clamp(1.03rem, 2vw, 1.18rem); }

.search { display: flex; gap: 10px; }
.hero-search {
  position: relative;
  max-width: 690px;
  margin: 28px 0 18px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 18px 35px rgba(0, 0, 0, .15);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  padding-left: 42px;
  border: 0;
  outline: 0;
  box-shadow: none;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 22px;
  width: 16px;
  height: 16px;
  border: 2px solid #6e7f78;
  border-radius: 50%;
  transform: translateY(-58%);
}
.search-icon::after { content: ""; position: absolute; right: -5px; bottom: -4px; width: 6px; height: 2px; background: #6e7f78; transform: rotate(45deg); }

.hero-points { display: flex; flex-wrap: wrap; gap: 12px 20px; color: #cde4db; font-size: .85rem; font-weight: 650; }

.hero-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 22px;
  background: rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
}
.hero-card-label { display: block; margin-bottom: 20px; color: #a8e9ce; font-size: .78rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }

.passkey-card { position: relative; overflow: hidden; }
.passkey-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--green), #62d5a5); }
.passkey-icon { color: var(--green); background: #e9f7f1; font-size: 1.45rem; }
.passkey-csrf { display: none; }
.passkey-status { min-height: 1.5em; margin: 14px 0 4px; color: var(--muted); font-size: .92rem; }
.hero-card ol { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.hero-card li { position: relative; display: grid; gap: 1px; min-height: 62px; padding: 0 0 20px 50px; counter-increment: steps; }
.hero-card li:not(:last-child)::after { content: ""; position: absolute; top: 36px; bottom: 4px; left: 18px; width: 1px; background: rgba(255, 255, 255, .2); }
.hero-card li::before { content: counter(steps); position: absolute; top: 0; left: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--green-dark); background: #a8e9ce; font-weight: 850; }
.hero-card li strong { color: #fff; }
.hero-card li span { color: #c7ddd5; font-size: .88rem; }

.section-heading, .page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section-heading h2, .page-heading h1 { margin-bottom: 0; }
.page-heading p { max-width: 720px; margin: 8px 0 0; color: var(--muted); }
.dashboard-heading { align-items: center; margin-bottom: 32px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.item-card { overflow: hidden; padding: 0; transition: transform .2s ease, box-shadow .2s ease; }
.item-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.item-media { position: relative; height: 220px; display: block; overflow: hidden; background: linear-gradient(145deg, #d7e9e1, #edf5f1); }
.item-image { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.item-card:hover .item-image { transform: scale(1.025); }
.item-placeholder, .detail-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(11, 107, 82, .35); font-size: 5rem; font-weight: 900; }
.item-type { position: absolute; top: 14px; left: 14px; border: 1px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); }
.item-card-body { padding: 20px; }
.item-card h3 { font-size: 1.25rem; }
.item-card h3 a { color: var(--ink); text-decoration: none; }
.item-description { min-height: 50px; margin-bottom: 14px; color: var(--muted); font-size: .92rem; }
.item-meta, .detail-location { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .86rem; }
.location-dot { width: 9px; height: 9px; display: inline-block; border: 2px solid var(--green); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.item-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.item-card-footer strong { display: block; color: var(--ink); font-size: 1.14rem; }
.item-card-footer span { color: var(--muted); font-size: .8rem; }
.round-link { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--green-dark); background: var(--mint); font-size: 1.25rem; text-decoration: none; }
.round-link:hover { color: #fff; background: var(--green); }

.empty-state { grid-column: 1 / -1; padding: 60px 20px; text-align: center; }
.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 50%; color: var(--green); background: var(--mint); font-size: 1.8rem; }

.two-column { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, .72fr); gap: 32px; }
.item-detail-layout { align-items: start; }
.item-detail-main { min-width: 0; }
.detail-media { height: min(540px, 52vw); overflow: hidden; margin-bottom: 32px; border-radius: var(--radius-lg); background: linear-gradient(145deg, #d7e9e1, #edf5f1); box-shadow: var(--shadow-sm); }
.detail-image { width: 100%; height: 100%; display: block; object-fit: cover; }
.detail-copy { padding-inline: 8px; }
.detail-copy h1 { margin-top: 12px; font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
.detail-location { margin-bottom: 28px; }
.description-copy { color: var(--ink-soft); font-size: 1.04rem; }
.description-copy p { margin-bottom: 26px; }
.detail-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.detail-facts > div { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.detail-facts dt { color: var(--muted); font-size: .78rem; font-weight: 700; }
.detail-facts dd { margin: 5px 0 0; font-size: .93rem; }
.action-card { position: sticky; top: 100px; height: max-content; }
.hire-card { padding: 28px; }
.hire-price { display: flex; align-items: baseline; gap: 7px; margin: 2px 0 16px; }
.hire-price strong { font-size: 2rem; letter-spacing: -.04em; }
.hire-price span { color: var(--muted); }
.clean-list { display: grid; gap: 10px; margin: 20px 0; padding: 0; list-style: none; color: var(--ink-soft); }
.clean-list li::first-letter { color: var(--green); }

form p { display: grid; gap: 7px; margin: 0 0 18px; }
label { color: var(--ink-soft); font-weight: 720; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #c8d4ce;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  outline: 0;
  transition: border-color .16s ease, box-shadow .16s ease;
}
textarea { min-height: 112px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(11, 107, 82, .1); }
input[type="checkbox"] { width: 19px; min-height: 19px; margin: 3px 7px 0 0; accent-color: var(--green); }
.helptext { color: var(--muted); font-size: .82rem; }
.spacious-form { padding: clamp(24px, 5vw, 42px); }
.errorlist { margin: 6px 0; padding: 10px 12px; border-radius: 8px; color: var(--danger); background: var(--danger-pale); font-size: .88rem; font-weight: 720; list-style: none; }

.auth-shell { width: min(1000px, 100%); min-height: 560px; margin: 20px auto; display: grid; grid-template-columns: 1fr minmax(340px, .82fr); align-items: center; gap: clamp(42px, 8vw, 90px); }
.auth-intro h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); }
.auth-intro > p { max-width: 580px; color: var(--muted); font-size: 1.08rem; }
.compact-auth { min-height: 500px; }
.auth-card { margin: 0; padding: clamp(25px, 5vw, 38px); box-shadow: var(--shadow); }
.auth-card > p { color: var(--muted); }
.auth-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 15px; color: var(--green); background: var(--mint); font-size: 1rem; font-weight: 850; letter-spacing: .08em; }
.vendor-icon { color: #fff; background: var(--green); }
.form-footnote { margin: 18px 0 0; text-align: center; font-size: .84rem; }

.success-shell { width: min(650px, 100%); margin: 70px auto; padding: clamp(32px, 7vw, 58px); text-align: center; box-shadow: var(--shadow); }
.success-mark { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 22px; border: 7px solid #d8f0e5; border-radius: 50%; color: #fff; background: var(--green); font-size: 1.8rem; font-weight: 900; }
.success-shell h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.success-shell > p { color: var(--muted); font-size: 1.05rem; }
.success-shell .button { margin: 10px 7px; }
.next-step { display: grid; gap: 4px; margin: 26px 0; padding: 16px; border-radius: 12px; background: var(--mint); text-align: left; }
.next-step span { color: var(--green); font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }

.payment-shell { width: min(1000px, 100%); min-height: 560px; margin: 25px auto; display: grid; grid-template-columns: 1fr minmax(360px, .82fr); align-items: center; gap: clamp(42px, 8vw, 90px); }
.payment-intro h1 { font-size: clamp(2.55rem, 5vw, 4.35rem); }
.payment-intro > p { max-width: 570px; color: var(--muted); font-size: 1.07rem; }
.payment-card { margin: 0; padding: clamp(24px, 5vw, 36px); box-shadow: var(--shadow); }
.payment-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; }
.payment-logo > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: #635bff; font-weight: 900; }
.payment-item { display: grid; gap: 12px; padding: 18px 0; border-block: 1px solid var(--line); }
.payment-item > div { display: flex; justify-content: space-between; gap: 20px; }
.payment-item span { color: var(--muted); font-size: .83rem; }
.payment-item strong { text-align: right; font-size: .88rem; }
.payment-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 22px 0; }
.payment-total span { color: var(--muted); font-weight: 700; }
.payment-total strong { font-size: 1.75rem; letter-spacing: -.04em; }
.payment-footnote { margin: 15px 0 0; color: var(--muted); font-size: .78rem; text-align: center; }
.payment-pending-mark { color: var(--green); background: var(--mint); font-size: .8rem; letter-spacing: .12em; }
.cancel-mark { color: var(--danger); border-color: #f8d8dc; background: var(--danger-pale); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 34px; }
.stat-card { position: relative; min-height: 158px; display: flex; flex-direction: column; justify-content: center; margin: 0; overflow: hidden; text-decoration: none; }
.stat-card::after { content: ""; position: absolute; right: -24px; bottom: -36px; width: 105px; height: 105px; border-radius: 50%; background: var(--mint); opacity: .65; }
.stat-card strong { position: relative; z-index: 1; display: block; margin: 4px 0; color: var(--ink); font-size: 2.65rem; line-height: 1.1; letter-spacing: -.05em; }
.stat-card .currency-stat, .stat-card .status-stat { font-size: clamp(1.45rem, 3vw, 2rem); }
.stat-label { color: var(--muted); font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.stat-note { position: relative; z-index: 1; color: var(--muted); font-size: .84rem; }
.stat-note b { float: right; color: var(--green); }
.vendor-stats .stat-card:hover { border-color: #add4c4; box-shadow: var(--shadow); transform: translateY(-2px); }
.vendor-stats .attention { border-color: #f1d9a8; background: #fffdf7; }
.vendor-stats .attention::after { background: #fff1cf; }
.vendor-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid #b9dfce; border-radius: 99px; color: var(--green-dark); background: var(--mint); font-size: .82rem; font-weight: 800; }
.vendor-status i { width: 8px; height: 8px; border-radius: 50%; background: #23a779; box-shadow: 0 0 0 4px rgba(35, 167, 121, .12); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); gap: 22px; }
.dashboard-panel, .privacy-panel { margin: 0; }
.quick-actions { display: grid; gap: 10px; margin-top: 22px; }
.quick-actions > a { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); text-decoration: none; }
.quick-actions > a:hover { border-color: #add4c4; background: #fbfdfc; }
.quick-actions > a > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--green); background: var(--mint); font-size: 1.2rem; font-weight: 800; }
.quick-actions strong, .quick-actions small { display: block; }
.quick-actions small { margin-top: 2px; color: var(--muted); }
.quick-actions > a > b { color: var(--green); font-size: 1.1rem; }
.privacy-panel { padding: 30px; color: #d7e9e2; background: linear-gradient(145deg, #0b4b3c, #07382e); }
.privacy-panel h2 { color: #fff; }
.privacy-panel p { color: #c9ded6; }
.privacy-panel .text-link { color: #9fe4c8; }
.privacy-mark { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 25px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; color: #a8e9ce; background: rgba(255,255,255,.08); font-size: 1.5rem; }

.latest-card { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; padding: 25px 28px; border-color: #b9dfce; }
.latest-card h2 { margin: 10px 0 4px; }
.latest-card p { margin: 0; color: var(--muted); }
.latest-status { display: grid; min-width: 180px; padding-left: 24px; border-left: 1px solid var(--line); }
.latest-status span, .latest-status small { color: var(--muted); font-size: .78rem; }
.latest-status strong { font-size: 1.1rem; }

.table-card { overflow: hidden; margin-bottom: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); background: #f9fbfa; font-size: .72rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdfc; }
td { font-size: .9rem; }
.table-actions { display: flex; flex-wrap: wrap; gap: 8px 13px; }
.table-actions a { font-weight: 700; text-decoration: none; }
.danger-link { color: var(--danger); font-weight: 700; text-decoration: none; }
.danger-link:hover { color: #8f1924; text-decoration: underline; }

dl { margin: 0; }
dt { color: var(--muted); font-size: .8rem; font-weight: 750; }
dd { margin: 2px 0 15px; }
hr { margin: 25px 0; border: 0; border-top: 1px solid var(--line); }

.document-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.document-card { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #f7faf8; }
.document-card img { width: 100%; height: 260px; display: block; margin-bottom: 13px; border-radius: 10px; background: #26352f; object-fit: contain; }
.document-confirm { display: block; margin: 10px 0; font-size: .86rem; }
.document-card .button { width: 100%; }

.site-footer { padding: 48px 0; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { width: min(1180px, calc(100% - 40px)); margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 36px; }
.footer-brand { font-size: 1.15rem; }
.footer-brand .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
.footer-inner p { margin: 8px 0 0; color: var(--muted); font-size: .82rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--ink-soft); font-size: .86rem; font-weight: 650; text-decoration: none; }
.footer-note { text-align: right; }

@media (max-width: 980px) {
  .home-hero { grid-template-columns: 1fr; gap: 30px; }
  .hero-card { max-width: 600px; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-column { grid-template-columns: 1fr; }
  .action-card { position: static; }
  .detail-media { height: min(620px, 70vw); }
  .auth-shell { grid-template-columns: 1fr; min-height: 0; gap: 30px; }
  .payment-shell { grid-template-columns: 1fr; min-height: 0; gap: 30px; }
  .auth-intro { max-width: 650px; }
  .auth-card { width: min(560px, 100%); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 760px) {
  .header-inner { width: min(100% - 28px, 1180px); min-height: 68px; align-items: flex-start; flex-direction: column; padding: 13px 0; gap: 8px; }
  .site-header { position: relative; }
  .site-header nav { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .site-header nav > a, .link-button { min-height: 38px; padding: 6px 10px; white-space: nowrap; font-size: .85rem; }
  .site-header nav .nav-cta { margin-left: auto; }
  .brand-mark { width: 34px; height: 34px; }
  .container { width: min(100% - 28px, 1180px); margin: 26px auto 60px; }
  .home-hero { min-height: auto; padding: 36px 22px; border-radius: 24px; }
  .home-hero h1 { font-size: clamp(2.45rem, 13vw, 3.7rem); }
  .hero-search { display: grid; grid-template-columns: 1fr auto; }
  .hero-search input { grid-column: 1 / -1; min-height: 52px; padding-left: 42px; }
  .hero-search .button { grid-column: 1 / -1; width: 100%; }
  .search-icon { top: 34px; }
  .hero-points { display: grid; gap: 7px; }
  .hero-card { padding: 21px; }
  .listing-grid { grid-template-columns: 1fr; }
  .item-media { height: 230px; }
  .section-heading, .page-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .detail-media { height: 75vw; border-radius: 20px; }
  .detail-facts { grid-template-columns: 1fr; }
  .card { padding: 21px; border-radius: 15px; }
  .stats { grid-template-columns: 1fr; }
  .stat-card { min-height: 130px; }
  .latest-card { grid-template-columns: 1fr; }
  .latest-status { padding: 15px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .table-card { overflow-x: auto; }
  table { min-width: 720px; }
  .dashboard-grid { gap: 16px; }
  .quick-actions > a { grid-template-columns: 40px 1fr auto; padding: 12px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 8px; }
  .footer-note { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
