/* Keyhold: slate-green ink, brass key accent, one memorable element: the status track. */
:root {
  --ink: #17312b;
  --ink-2: #2b4a42;
  --paper: #f3f5f2;
  --card: #ffffff;
  --line: #dbe2dc;
  --muted: #5d6c66;
  --brass: #b5832a;
  --new: #2f62c9;
  --assigned: #b5832a;
  --progress: #7650b8;
  --resolved: #2d8a57;
  --closed: #6b7570;
  --urgent: #c2412d;
  --radius-s: 6px;
  --radius-l: 14px;
  /* System fonts: no third-party font requests (privacy) and native scripts incl. Arabic, CJK, Cyrillic. */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Noto Sans Arabic", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--ink-2); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .4rem; }
h2 { font-size: 1.2rem; margin: 0 0 .4rem; }
.h3, h3 { font-size: 1rem; margin: 0 0 .5rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.top { display: flex; align-items: center; gap: 1.5rem; padding: .8rem clamp(1rem, 4vw, 2.5rem); background: var(--ink); color: #fff; flex-wrap: wrap; }
.top a { color: #e7eeea; text-decoration: none; }
.brand { font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; gap: .5rem; color: #fff !important; }
.key { width: 18px; height: 18px; border: 3px solid var(--brass); border-radius: 50%; position: relative; }
.key::after { content: ""; position: absolute; left: 12px; top: 4px; width: 10px; height: 3px; background: var(--brass); }
.nav { display: flex; gap: .25rem; flex: 1; overflow-x: auto; }
.nav a { padding: .4rem .7rem; border-radius: var(--radius-s); white-space: nowrap; }
.nav a:hover { background: var(--ink-2); }
.nav a[aria-current] { background: #fff; color: var(--ink); font-weight: 600; }
.me { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.me .muted { color: #a9bbb3; }
.bell { position: relative; display: flex; }
.bell .dot { position: absolute; top: -6px; right: -9px; background: var(--brass); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 99px; padding: 0 5px; }
.banner { background: #fbf1dc; color: #6b4b12; padding: .5rem clamp(1rem, 4vw, 2.5rem); font-size: .92rem; }
.banner.late { background: #fbe3de; color: #7a2617; }

main.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 1.5rem clamp(1rem, 4vw, 2rem) 3rem; flex: 1; }
.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 1.5rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.page-head p { margin: 0; }
.narrow { max-width: 480px; margin: 1rem auto; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; background: var(--ink); color: #fff; border: 0; border-radius: var(--radius-s); padding: .65rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--ink-2); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: #e6ece8; }
.btn.small { padding: .4rem .8rem; font-size: .9rem; min-height: 38px; }
.top .btn { background: var(--brass); color: #fff; }
.link { background: none; border: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; padding: 0 .3rem; }
.link.danger { color: var(--urgent); }
.form { display: grid; gap: .9rem; }
.form.row { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; margin-top: .8rem; }
.form.grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: end; }
label { display: grid; gap: .3rem; font-weight: 500; font-size: .92rem; }
input, select, textarea { font: inherit; font-size: 1rem; min-height: 44px; padding: .6rem .7rem; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--ink-2); outline: none; box-shadow: 0 0 0 3px #b5832a33; }
fieldset.seg { border: 0; padding: 0; margin: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
fieldset.seg legend { font-weight: 500; font-size: .92rem; margin-bottom: .3rem; }
fieldset.seg label { display: flex; align-items: center; gap: .4rem; border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: .45rem .8rem; background: #fff; cursor: pointer; }
fieldset.seg label:has(input:checked) { border-color: var(--ink); background: #e9efeb; }
fieldset.seg input { width: auto; }

.flash { padding: .75rem 1rem; border-radius: var(--radius-s); margin-bottom: 1rem; background: #e3f1e8; color: #1e5e3b; border-left: 4px solid var(--resolved); }
.flash.err { background: #fbe7e3; color: #7a2617; border-left-color: var(--urgent); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.2rem; margin-bottom: 1rem; }
details.panel summary { cursor: pointer; font-weight: 600; }
.empty { background: var(--card); border: 1.5px dashed var(--line); border-radius: var(--radius-l); padding: 2rem; text-align: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.row-between p { margin: 0; }

/* badges */
.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: .15rem .55rem; border-radius: 99px; color: #fff; }
.s-new { background: var(--new); } .s-assigned { background: var(--assigned); } .s-in_progress { background: var(--progress); }
.s-resolved { background: var(--resolved); } .s-closed { background: var(--closed); }
.urgent-b { background: #fff; color: var(--urgent); box-shadow: inset 0 0 0 1.5px var(--urgent); }

/* the status track */
.track { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 0; margin: 1rem 0; }
.track li { position: relative; padding-top: 14px; font-size: .78rem; color: var(--muted); }
.track li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 3px; background: var(--line); }
.track li.done::before { background: var(--ink); }
.track li.now::before { background: linear-gradient(90deg, var(--ink) 50%, var(--brass) 50%); background-size: 200% 100%; animation: fill 1.2s ease-out forwards; }
.track li.now { color: var(--ink); font-weight: 600; }
@keyframes fill { from { background-position: 100% 0; } to { background-position: 50% 0; } }
@media (prefers-reduced-motion: reduce) { .track li.now::before { animation: none; background: var(--brass); } }

/* dashboard */
.filters { margin-bottom: .8rem; max-width: 320px; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chips a { text-decoration: none; padding: .35rem .8rem; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-size: .9rem; }
.chips a b { margin-left: .2rem; }
.chips a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.reqs { list-style: none; padding: 0; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.reqs li + li { border-top: 1px solid var(--line); }
.reqs a { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; text-decoration: none; color: inherit; flex-wrap: wrap; }
.reqs a:hover { background: #f7f9f7; }
.reqs li.urgent { box-shadow: inset 4px 0 0 var(--urgent); }
.r-main { display: grid; gap: .1rem; }
.r-title { font-weight: 600; }
.r-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

/* request detail */
.req-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1rem; align-items: start; }
@media (max-width: 820px) { .req-layout { grid-template-columns: 1fr; } }
.ticket-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.desc { background: var(--paper); border-radius: var(--radius-s); padding: .9rem 1rem; margin: 1rem 0; }
.timeline { list-style: none; padding: 0 0 0 1.2rem; margin: 0 0 1.2rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 .8rem .4rem; }
.timeline li::before { content: ""; position: absolute; left: -1.62rem; top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); border: 2px solid var(--card); }
.timeline li.a-comment::before { background: var(--brass); }
.timeline p { margin: 0; }
.timeline blockquote { margin: .35rem 0 0; padding: .6rem .8rem; background: var(--paper); border-radius: var(--radius-s); }
.side .panel .form { gap: .6rem; }
.contact p { margin: 0 0 .8rem; }

/* tables, tabs, notes */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: .82rem; color: var(--muted); font-weight: 600; }
.tbl tr.off td { opacity: .55; }
form.inline { display: inline; }
.prop-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.prop-head p { margin: 0 0 .6rem; }
.tabs { display: flex; gap: .3rem; margin-bottom: 1rem; border-bottom: 1.5px solid var(--line); }
.tabs a { padding: .5rem .9rem; text-decoration: none; margin-bottom: -1.5px; border-bottom: 3px solid transparent; }
.tabs a[aria-current] { border-color: var(--brass); font-weight: 600; }
.notes { list-style: none; padding: 0; margin: 0; }
.notes a { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: .4rem; text-decoration: none; color: inherit; }
.notes li.unread a { border-left: 4px solid var(--brass); font-weight: 600; }

/* landing */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; padding: 2rem 0 3rem; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); max-width: 14ch; }
.lead { font-size: 1.15rem; max-width: 46ch; color: var(--ink-2); }
.ticket { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.4rem; box-shadow: 0 18px 40px -24px #17312b66; transform: rotate(-1.2deg); }
.ticket-title { font-size: 1.25rem; font-weight: 700; margin: .3rem 0 0 !important; }
.ticket p { margin: .1rem 0; }
.log { list-style: none; padding: 0; margin: .5rem 0 0; font-size: .9rem; }
.log li { padding: .35rem 0; border-top: 1px solid var(--line); }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; padding: 2rem 0; border-top: 1.5px solid var(--line); }
.roles p { color: var(--ink-2); margin: 0; }
.pricing { padding: 2rem 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.plan { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-l); padding: 1.4rem; display: grid; align-content: start; gap: .3rem; }
.plan.featured { border-color: var(--ink); box-shadow: inset 0 4px 0 var(--brass); }
.plan p { margin: 0 0 .5rem; }
.price { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; }
.price small { font-size: .9rem; font-weight: 500; color: var(--muted); }

/* ---------- v2: accessibility, header account, mobile ---------- */
html { -webkit-text-size-adjust: 100%; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brass); color: #fff; padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: .5rem; }
.ic { flex: none; }
.bell .ic { width: 20px; height: 20px; }
.who { display: flex; align-items: center; gap: .5rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brass); color: #fff; display: inline-grid; place-items: center; font-size: .8rem; font-weight: 700; }
.link.on-dark { color: #a9bbb3; }
.logout-form { margin: 0; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.panel.flush { padding: 0; }
.tbl td, .tbl th { white-space: nowrap; }
.tbl td:first-child { white-space: normal; min-width: 140px; }
.link { min-height: 36px; }
button:disabled { opacity: .6; cursor: progress; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.faq { padding: 2rem 0; max-width: 720px; }
.faq details { border-top: 1px solid var(--line); padding: .9rem 0; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.faq p { margin: .5rem 0 0; color: var(--ink-2); }
.flash { overflow-wrap: anywhere; }
@media (min-width: 721px) { .nav .ic { display: none; } }

@media (max-width: 720px) {
  .top { gap: .75rem; padding: .6rem 1rem; padding-top: calc(.6rem + env(safe-area-inset-top)); }
  .me { gap: .75rem; }
  .who-name, .logout-form { display: none; }
  body.authed .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0;
    background: var(--card); border-top: 1px solid var(--line); overflow: visible;
    padding: .25rem .25rem calc(.25rem + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 18px -12px #17312b55;
  }
  body.authed .nav a {
    flex-direction: column; display: flex; align-items: center; justify-content: center; gap: .15rem;
    min-height: 54px; padding: .3rem .2rem; font-size: .72rem; color: var(--muted); border-radius: 0; background: none;
  }
  body.authed .nav a[aria-current] { color: var(--ink); font-weight: 700; background: none; }
  body.authed .nav a[aria-current] .ic { color: var(--brass); }
  body.authed main.wrap { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
  body.authed .foot { display: none; }
  main.wrap { padding-top: 1rem; }
  .page-head { align-items: flex-start; }
  .page-head .btn { width: 100%; }
  .reqs a { padding: .85rem 1rem; }
  .r-meta { width: 100%; }
  .ticket { transform: none; }
  .hero { padding-top: .5rem; gap: 1.5rem; }
  .panel { padding: 1rem; border-radius: 12px; }
  .form.row, .form.grid { grid-template-columns: 1fr; }
  .form .btn { width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; -webkit-overflow-scrolling: touch; }
  .chips a { white-space: nowrap; min-height: 38px; display: inline-flex; align-items: center; }
  .filters { max-width: none; }
  .notes a { flex-direction: column; gap: .2rem; }
}

/* ---------- v3: Google sign-in ---------- */
.btn.google { width: 100%; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); gap: .6rem; }
.btn.google:hover { background: #f5f7f5; box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.or { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .88rem; margin: 1rem 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.linked { background: var(--paper); border-radius: var(--radius-s); padding: .7rem .9rem; margin: 0; overflow-wrap: anywhere; }

/* ---------- v4: dark sign-in pages (login, register, forgot, reset) ---------- */
body.auth-dark {
  --a-bg: #0b1220; --a-card: #0f1b2d; --a-field: #0a1322; --a-line: #1c3150;
  --a-text: #e6edf5; --a-label: #9fb0c3; --a-muted: #7d8ea3; --a-amber: #dd9637; --a-amber-hi: #f0a73a;
  background: var(--a-bg); color: var(--a-text);
}
body.auth-dark .top { background: var(--a-bg); border-bottom: 1px solid #16243a; }
body.auth-dark .top .btn { background: var(--a-amber); color: #101826; }
body.auth-dark .foot { color: #5f6f84; }
body.auth-dark a { color: var(--a-amber-hi); }
body.auth-dark .muted { color: var(--a-muted); }

.auth { width: 100%; max-width: 472px; margin: 2.5rem auto; }
.auth-card { background: var(--a-card); border: 1px solid #1b2c44; border-radius: 14px; padding: 2rem; }
.auth-card h1 { font-size: 1.35rem; color: #f2f6fa; margin: 0 0 1.25rem; letter-spacing: -0.01em; }
.auth-card > .muted { margin: -.75rem 0 1.25rem; }
.auth-card .form { gap: 1.1rem; }
.auth-dark .auth-card label { color: var(--a-label); font-weight: 500; font-size: .95rem; }
.auth-dark .auth-card input:not([type=checkbox]) {
  background: var(--a-field); border: 1.5px solid var(--a-line); color: var(--a-text);
  min-height: 48px; border-radius: 8px;
}
.auth-dark .auth-card input:not([type=checkbox]):focus { border-color: var(--a-amber-hi); box-shadow: 0 0 0 3px #f0a73a2e; }

.auth-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.auth-row a { font-size: .92rem; }
.auth-dark .auth-card label.check { display: flex; align-items: center; gap: .65rem; cursor: pointer; color: var(--a-label); }
.check input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0; cursor: pointer;
  width: 20px; height: 20px; min-height: 0; padding: 0; border-radius: 5px;
  border: 1.5px solid var(--a-line); background: var(--a-field);
}
.check input:checked {
  background: var(--a-amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23101826' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  border-color: var(--a-amber);
}
.check input:focus-visible { outline: 3px solid var(--a-amber-hi); outline-offset: 2px; }

.auth-dark .btn.primary {
  width: 100%; min-height: 48px; border-radius: 8px; background: var(--a-amber); color: #101826; font-size: 1.02rem; font-weight: 600;
}
.auth-dark .btn.primary:hover { background: var(--a-amber-hi); }
.auth-dark .btn.google {
  width: 100%; min-height: 48px; border-radius: 8px; background: var(--a-field); color: var(--a-text);
  box-shadow: inset 0 0 0 1.5px var(--a-line); font-weight: 500; font-size: 1.02rem;
}
.auth-dark .btn.google:hover { background: #0d192b; box-shadow: inset 0 0 0 1.5px #2a4670; }
.auth-dark .btn.google img { display: block; }
.auth-dark .or { margin: .1rem 0; color: #6f8299; }
.auth-dark .or::before, .auth-dark .or::after { background: var(--a-line); }
.auth-foot { text-align: center; color: var(--a-muted); margin: 1.25rem 0 0; }
.auth-dark .linked { background: var(--a-field); color: var(--a-label); }
.auth-dark .flash.err { background: #3a1717; color: #ffc9bf; border-left-color: #e5533d; }
.auth-dark .flash.ok  { background: #12301f; color: #bff0d1; border-left-color: #3fb877; }

@media (max-width: 720px) {
  .auth { margin: 1rem auto; }
  .auth-card { padding: 1.4rem 1.2rem; }
}

/* ---------- v5: navy + amber brand, marketing header, landing page ---------- */
:root {
  --ink: #0f1b2d; --ink-2: #223a5c; --paper: #f4f6f9; --line: #dde3ec; --muted: #5b6b80;
  --brass: #dd9637; --assigned: #c9801f; --navy-deep: #0b1220; --amber: #dd9637; --amber-hi: #f0a73a;
}
.top { background: var(--navy-deep); position: relative; }
.top .btn, .btn.amber { background: var(--amber); color: #101826; }
.top .btn:hover, .btn.amber:hover { background: var(--amber-hi); }
.btn.outline-light { background: transparent; color: #e6edf5; box-shadow: inset 0 0 0 1.5px #2f4a70; }
.btn.outline-light:hover { background: #13223a; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }

/* marketing header */
.mnav { display: flex; gap: .25rem; flex: 1; }
.mnav a { padding: .45rem .75rem; border-radius: 6px; color: #c9d4e2; }
.mnav a:hover { background: #16243a; color: #fff; }
.guest-actions { gap: .5rem; }
.dd { position: relative; }
.dd > summary, .burger > summary {
  cursor: pointer; display: flex; align-items: center; gap: .3rem; padding: .45rem .7rem;
  border-radius: 6px; color: #e7eef6; min-height: 42px; font-weight: 500;
}
.dd > summary:hover, .burger > summary:hover { background: #16243a; }
.dd[open] > summary { color: var(--amber-hi); }
.chev { transition: transform .15s ease; }
.dd[open] .chev { transform: rotate(180deg); }
.dd-menu {
  position: absolute; right: 0; top: calc(100% + .5rem); width: 290px; z-index: 40;
  background: #fff; border-radius: 10px; overflow: hidden; border-bottom: 4px solid var(--amber);
  box-shadow: 0 18px 40px -14px #0b1220a0;
}
.dd-menu a { display: grid; gap: .15rem; padding: .95rem 1.1rem; color: var(--ink) !important; text-decoration: none; }
.dd-menu a + a { border-top: 1px solid var(--line); }
.dd-menu a:hover, .dd-menu a:focus-visible { background: #f4f6f9; }
.dd-menu b { font-weight: 600; }
.dd-menu span { font-size: .85rem; color: var(--muted); }
.burger { display: none; position: static; }
.burger-panel {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 40; display: grid; gap: .1rem;
  background: var(--navy-deep); border-top: 1px solid #16243a; padding: .75rem 1.25rem 1.5rem;
  box-shadow: 0 24px 40px -20px #000;
}
.burger-panel a { color: #e6edf5 !important; padding: .75rem .25rem; font-size: 1.05rem; min-height: 44px; display: flex; align-items: center; }
.burger-panel hr { border: 0; border-top: 1px solid #1c3150; width: 100%; margin: .5rem 0; }
.burger-panel .btn { margin-top: .75rem; justify-content: center; color: #101826 !important; }
@media (prefers-reduced-motion: reduce) { .chev { transition: none; } }

/* landing */
main.lp { flex: 1; width: 100%; }
.lp-in { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: clamp(1.1rem, 4vw, 2rem); padding-right: clamp(1.1rem, 4vw, 2rem); }
.lp-narrow { max-width: 820px; }
.lp h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .6rem; max-width: 26ch; }
.lp-sub { color: var(--muted); font-size: 1.08rem; max-width: 60ch; margin: 0 0 2rem; }
.lp-sec { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.lp-band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(3rem, 7vw, 5.5rem) 0; }

.lp-hero { background: var(--navy-deep); color: #e6edf5; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.lp-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.lp-hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); line-height: 1.05; letter-spacing: -.03em; color: #fff; max-width: 13ch; margin: 0 0 1.1rem; }
.lp-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #b8c5d6; max-width: 46ch; margin: 0 0 1.75rem; }
.lp-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.lp-cta .btn { min-height: 50px; padding: .8rem 1.4rem; font-size: 1.02rem; }
.lp-note { color: #8193aa; font-size: .92rem; margin: 1rem 0 0; }
.lp-visual { position: relative; }
.lp-hero .ticket { transform: none; color: var(--ink); box-shadow: 0 30px 60px -30px #000; }
.note-pop {
  position: absolute; left: -1rem; bottom: -1.5rem; display: flex; align-items: center; gap: .55rem;
  background: #13223a; color: #e6edf5; border: 1px solid #223a5c; border-radius: 10px;
  padding: .7rem .95rem; font-size: .9rem; box-shadow: 0 16px 30px -16px #000;
}
.dotlive { width: 8px; height: 8px; border-radius: 50%; background: #3fb877; box-shadow: 0 0 0 4px #3fb87733; }

.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.role { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.role h3 { font-size: 1.15rem; margin: 0; }
.role p { margin: 0 0 .5rem; color: var(--ink-2); flex: 1; }
.role a { font-weight: 600; color: var(--ink); text-decoration-color: var(--amber); text-decoration-thickness: 2px; align-self: flex-start; min-height: 32px; }

.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.75rem; }
.feat .ic { color: var(--amber); width: 28px; height: 28px; margin-bottom: .6rem; }
.feat h3 { font-size: 1.02rem; margin: 0 0 .35rem; }
.feat p { margin: 0; color: var(--muted); font-size: .95rem; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font-size: 2.2rem; font-weight: 700; color: var(--amber); line-height: 1; margin-bottom: .6rem; }
.steps h3 { font-size: 1.05rem; margin: 0 0 .35rem; }
.steps p { margin: 0; color: var(--muted); }

.vtable { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.vrow { display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; padding: 1rem 1.25rem; }
.vrow + .vrow { border-top: 1px solid var(--line); }
.vrow span:first-child { font-weight: 600; }
.vrow span:last-child { color: var(--ink-2); }
.vhead { background: var(--ink); font-size: .9rem; }
.vhead span, .vhead span:last-child { color: #fff; font-weight: 600; }

.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.sec-grid > div { border-left: 3px solid var(--amber); padding-left: 1rem; }
.sec-grid h3 { font-size: 1.02rem; margin: 0 0 .3rem; }
.sec-grid p { margin: 0; color: var(--muted); }

.lp .plans { margin-top: 0; }
.lp .plan.featured { border-color: var(--ink); box-shadow: inset 0 4px 0 var(--amber); }
.lp .faq { max-width: none; padding: 0; }

.lp-final { background: var(--navy-deep); color: #e6edf5; padding: clamp(3rem, 7vw, 5rem) 0; text-align: center; }
.lp-final h2 { color: #fff; margin: 0 auto .6rem; }
.lp-final p { color: #b8c5d6; margin: 0 0 1.75rem; }
.lp-final .lp-cta { justify-content: center; }

/* visitor footer */
.mfoot { background: var(--navy-deep); color: #8193aa; border-top: 1px solid #16243a; padding: 3rem 0 1.5rem; }
.mfoot-in { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.mfoot .brand { color: #fff; text-decoration: none; }
.mfoot-brand p { max-width: 34ch; margin: .75rem 0 0; }
.mfoot nav { display: grid; gap: .55rem; align-content: start; }
.mfoot h2 { font-size: .95rem; color: #e6edf5; margin: 0 0 .25rem; }
.mfoot a { color: #b8c5d6; text-decoration: none; }
.mfoot a:hover { color: var(--amber-hi); }
.mfoot-copy { max-width: 1120px; margin: 2.5rem auto 0; padding: 1.25rem clamp(1.1rem, 4vw, 2rem) 0; border-top: 1px solid #16243a; font-size: .88rem; }

/* sign-in portal switch */
.portal-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; background: var(--a-field); border: 1px solid var(--a-line); border-radius: 10px; padding: .25rem; margin-bottom: 1rem; }
.portal-tabs a { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 7px; color: var(--a-label) !important; text-decoration: none; font-weight: 500; }
.portal-tabs a[aria-current] { background: var(--a-card); color: #fff !important; box-shadow: inset 0 0 0 1px var(--a-line); }

@media (max-width: 900px) {
  .mnav, .guest-actions .trial { display: none; }
  .burger { display: block; }
  .lp-hero-grid { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: 1fr; }
  .feat-grid, .steps, .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .mfoot-in { grid-template-columns: 1fr 1fr; }
  .mfoot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .feat-grid, .steps, .sec-grid { grid-template-columns: 1fr; }
  .vrow { grid-template-columns: 1fr; gap: .25rem; }
  .vhead { display: none; }
  .lp-cta .btn { width: 100%; }
  .note-pop { position: static; margin-top: 1rem; }
  .lp-hero h1 { max-width: none; }
  .dd-menu { position: fixed; left: 1rem; right: 1rem; width: auto; top: 4rem; }
}

/* ---------- v6: platform admin console ---------- */
.admin-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--amber); color: #101826; padding: .15rem .45rem; border-radius: 4px; margin-left: .4rem; }
.admin-nav { display: flex; gap: .25rem; flex: 1; overflow-x: auto; }
.admin-nav a { padding: .45rem .75rem; border-radius: 6px; white-space: nowrap; color: #c9d4e2; }
.admin-nav a:hover { background: #16243a; }
.admin-nav a[aria-current] { background: #fff; color: var(--ink); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; display: grid; gap: .15rem; }
.stat span { font-size: .85rem; color: var(--muted); }
.stat b { font-size: 1.6rem; letter-spacing: -.02em; }
.stat small { color: var(--muted); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.pager { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: 1rem; }
.pager a { min-width: 40px; min-height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-decoration: none; }
.pager a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.danger-btn { background: var(--urgent); color: #fff; }
.btn.danger-btn:hover { background: #a3321f; }
.tbl td.wrap-cell { white-space: normal; min-width: 220px; }
code { background: #eef1f6; padding: .1rem .35rem; border-radius: 4px; font-size: .9em; }
@media (max-width: 720px) {
  body.admin .top { flex-wrap: wrap; }
  body.admin .admin-nav { order: 3; flex-basis: 100%; }
  .dl { grid-template-columns: 1fr; gap: .1rem; }
  .dl dd { margin-bottom: .5rem; }
}

/* ---------- v8: worldwide ---------- */
.cur-switch { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: -.75rem 0 1.5rem; }
.cur-switch .muted { margin-right: .35rem; }
.cur-switch a {
  min-height: 36px; min-width: 52px; padding: 0 .6rem; display: inline-grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: 99px; background: #fff; color: var(--ink);
  font-size: .85rem; font-weight: 600; text-decoration: none; letter-spacing: .02em;
}
.cur-switch a:hover { border-color: var(--ink-2); }
.cur-switch a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 1.15rem; margin: 1.75rem 0 .5rem; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.65; }
.legal ul { padding-left: 1.2rem; }
.foot a { color: inherit; }
@media (max-width: 560px) {
  .cur-switch { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; -webkit-overflow-scrolling: touch; }
  .cta-row .btn { width: 100%; }
}
.stat b.mrr { font-size: 1.25rem; line-height: 1.3; overflow-wrap: anywhere; }
