:root {
  color-scheme: dark;
  --black-green: #03110f;
  --night: #061b17;
  --forest: #0b342c;
  --ivory: #f5f0e4;
  --soft: #aebdb7;
  --gold: #caa65e;
  --gold-light: #ecd69e;
  --line: rgba(224, 195, 128, 0.22);
  --shadow: 0 24px 70px rgba(0, 7, 6, 0.42);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--black-green); }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ivory);
  background:
    radial-gradient(circle at 86% -12%, rgba(202, 166, 94, 0.2), transparent 29rem),
    radial-gradient(circle at -8% 48%, rgba(24, 99, 80, 0.34), transparent 34rem),
    linear-gradient(145deg, #020d0b 0%, #08251f 46%, #03130f 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after { content: ""; position: fixed; z-index: 0; pointer-events: none; }
body::before {
  inset: 0;
  opacity: 0.15;
  background-image: linear-gradient(rgba(236, 214, 158, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(236, 214, 158, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}
body::after {
  width: 34rem;
  height: 34rem;
  top: -21rem;
  right: -10rem;
  border: 1px solid rgba(236, 214, 158, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(202, 166, 94, 0.018), 0 0 0 10rem rgba(202, 166, 94, 0.012);
}

.page-shell { width: min(1180px, calc(100% - 48px)); min-height: 100vh; margin: 0 auto; position: relative; z-index: 1; }
.topbar { min-height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.brand-mark {
  width: 52px;
  height: 52px;
  padding: 3px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(236, 214, 158, 0.55);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32), 0 0 0 4px rgba(202, 166, 94, 0.07);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 11px; }
.brand strong { display: block; color: var(--ivory); font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; font-weight: 500; letter-spacing: 0.015em; }
.brand small { display: block; margin-top: 3px; color: var(--gold-light); font-size: 0.78rem; letter-spacing: 0.1em; }
.header-meta { display: flex; align-items: center; gap: 26px; }
.branch-tag { min-height: 34px; padding: 0 13px; display: inline-flex; align-items: center; gap: 9px; color: var(--gold-light); border: 1px solid rgba(236, 214, 158, 0.22); border-radius: 999px; background: rgba(11, 52, 44, 0.55); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; }
.branch-tag i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.today { display: flex; align-items: center; gap: 10px; color: var(--soft); font-size: 0.84rem; }
.today-label { color: var(--gold); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.17em; }

main { padding: 34px 0 46px; }
.intro {
  min-height: 224px;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(236, 214, 158, 0.3);
  border-radius: 28px;
  background: linear-gradient(118deg, rgba(19, 76, 63, 0.95), rgba(5, 29, 24, 0.98));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
}
.intro::before { content: ""; position: absolute; width: 22rem; height: 1px; right: 2rem; top: 5.2rem; opacity: 0.34; background: linear-gradient(90deg, transparent, var(--gold-light)); transform: rotate(-28deg); }
.intro::after { content: "HK"; position: absolute; right: 8%; bottom: -43%; color: rgba(236, 214, 158, 0.052); font-family: Georgia, "Times New Roman", serif; font-size: 15rem; font-weight: 700; line-height: 1; letter-spacing: -0.11em; }
.intro-copy-wrap { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 18px; display: flex; align-items: center; gap: 11px; color: var(--gold-light); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.2em; }
.eyebrow span { width: 34px; height: 26px; display: grid; place-items: center; border: 1px solid rgba(236, 214, 158, 0.48); border-radius: 7px; color: var(--gold-light); font-family: Georgia, "Times New Roman", serif; font-size: 0.66rem; letter-spacing: 0.06em; }
h1 { margin: 0; color: var(--ivory); font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 5.6vw, 5.25rem); font-weight: 400; line-height: 0.92; letter-spacing: -0.055em; }
h1 em { color: var(--gold-light); font-weight: 400; }
.intro-copy { margin: 18px 0 0; color: #bac9c4; font-size: 0.95rem; letter-spacing: 0.025em; }
.suite-stamp { width: 108px; height: 108px; flex: 0 0 auto; display: grid; place-content: center; text-align: center; position: relative; z-index: 1; border: 1px solid rgba(236, 214, 158, 0.45); border-radius: 50%; color: var(--gold-light); background: rgba(4, 28, 23, 0.34); box-shadow: inset 0 0 0 7px rgba(202, 166, 94, 0.035), 0 16px 34px rgba(0,0,0,.2); }
.suite-stamp::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(236, 214, 158, 0.14); border-radius: inherit; }
.suite-stamp span { font-size: 0.55rem; font-weight: 800; letter-spacing: 0.19em; }
.suite-stamp strong { margin-top: 3px; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 400; line-height: 1; }
.suite-stamp small { margin-top: 4px; color: #8fb9aa; font-size: 0.48rem; font-weight: 800; letter-spacing: .24em; }

.section-label { margin: 34px 3px 16px; display: flex; align-items: end; justify-content: space-between; }
.section-label span { color: var(--ivory); font-family: Georgia, "Times New Roman", serif; font-size: 1.32rem; letter-spacing: 0.01em; }
.section-label small { color: #80968f; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; }
.system-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 15px; }
.system-card {
  grid-column: span 4;
  min-height: 250px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  color: var(--ivory);
  text-decoration: none;
  border: 1px solid rgba(224, 195, 128, 0.25);
  border-radius: 22px;
  background: radial-gradient(circle at 105% -5%, rgba(213, 177, 102, 0.13), transparent 37%), linear-gradient(150deg, rgba(18, 70, 59, 0.98), rgba(5, 29, 24, 0.99));
  box-shadow: 0 18px 44px rgba(0, 8, 6, 0.3), inset 0 1px 0 rgba(255,255,255,.055);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, opacity 160ms ease;
}
.system-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(to bottom, transparent 9%, var(--gold-light) 50%, transparent 91%); opacity: 0.7; }
.system-card::after { content: ""; position: absolute; width: 8rem; height: 8rem; right: -4.5rem; bottom: -4.5rem; border: 1px solid rgba(236, 214, 158, 0.11); border-radius: 50%; }
a.system-card { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: rgba(202, 166, 94, 0.2); }
a.system-card:hover, a.system-card:focus-visible { transform: translateY(-5px); border-color: rgba(236, 214, 158, 0.58); box-shadow: 0 28px 60px rgba(0, 7, 6, 0.45), 0 0 0 1px rgba(202, 166, 94, 0.08); outline: none; }
a.system-card:focus-visible { box-shadow: 0 0 0 4px rgba(202, 166, 94, 0.27), 0 28px 60px rgba(0, 7, 6, 0.45); }
a.system-card.is-opening { transform: scale(0.985); opacity: 0.8; }
.system-card.leave { grid-column: span 7; min-height: 188px; }
.system-card.customer { grid-column: span 4; }
.system-card.inventory { grid-column: span 5; min-height: 188px; }
.card-number { position: absolute; top: 19px; right: 22px; color: rgba(236, 214, 158, 0.11); font-family: Georgia, "Times New Roman", serif; font-size: 3.5rem; line-height: 1; letter-spacing: -0.08em; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.icon-wrap { width: 54px; height: 54px; display: grid; place-items: center; color: var(--gold-light); border: 1px solid rgba(236, 214, 158, 0.48); border-radius: 16px; background: linear-gradient(145deg, rgba(202, 166, 94, 0.13), rgba(255,255,255,.015)); box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 10px 24px rgba(0, 0, 0, 0.2); }
.icon-wrap svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.status { min-height: 27px; padding: 6px 10px; border-radius: 999px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.status.available { margin-right: 54px; display: inline-flex; align-items: center; gap: 7px; color: #bfe4d3; border: 1px solid rgba(119, 209, 169, 0.17); background: rgba(61, 139, 108, 0.12); }
.status.available i { width: 6px; height: 6px; border-radius: 50%; background: #70d1a6; box-shadow: 0 0 0 4px rgba(112, 209, 166, 0.1); }
.status.soon { margin-right: 54px; color: #b3bdb9; border: 1px solid rgba(174, 189, 183, 0.12); background: rgba(174, 189, 183, 0.07); }
.card-body { margin-top: auto; padding: 29px 0 20px; position: relative; z-index: 1; }
.card-body h2 { margin: 0 0 7px; color: var(--ivory); font-family: Georgia, "Times New Roman", serif; font-size: 1.78rem; font-weight: 400; letter-spacing: -0.025em; }
.card-body p { margin: 0; color: #9eafa9; font-size: 0.86rem; line-height: 1.5; }
.open-link { min-height: 42px; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; border-top: 1px solid rgba(236, 214, 158, 0.16); color: var(--gold-light); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.055em; }
.open-link span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(236, 214, 158, 0.35); border-radius: 50%; font-size: 0.95rem; transition: transform 180ms ease, background 180ms ease; }
a.system-card:hover .open-link span { transform: translate(2px, -2px); background: rgba(202, 166, 94, 0.11); }
.disabled { opacity: 0.48; border-color: rgba(174, 189, 183, 0.15); background: linear-gradient(150deg, rgba(31, 55, 49, 0.88), rgba(8, 26, 22, 0.94)); box-shadow: none; }
.disabled::before { background: linear-gradient(to bottom, transparent, #72867f, transparent); opacity: .3; }
.disabled .icon-wrap { color: #82938d; border-color: rgba(174, 189, 183, 0.17); background: rgba(174, 189, 183, 0.04); box-shadow: none; }
.disabled .card-body h2 { color: #a6b2ae; }
.disabled .open-link { color: #7d918a; }
.muted { color: #7d918a; }
footer { min-height: 70px; display: flex; align-items: center; justify-content: center; gap: 10px; border-top: 1px solid var(--line); color: #70867e; font-size: 0.72rem; letter-spacing: 0.055em; }
.footer-dot { color: var(--gold); }

@media (max-width: 880px) {
  .system-card { grid-column: span 6; }
  .system-card.customer { grid-column: span 12; min-height: 200px; }
  .system-card.leave, .system-card.inventory { grid-column: span 6; }
}

@media (max-width: 600px) {
  .page-shell { width: min(100% - 28px, 520px); }
  .topbar { min-height: 78px; }
  .brand { gap: 10px; }
  .brand-mark { width: 43px; height: 43px; border-radius: 12px; }
  .brand strong { font-size: 1rem; }
  .brand small { font-size: 0.75rem; }
  .header-meta { gap: 10px; }
  .branch-tag { display: none; }
  .today { max-width: 92px; text-align: right; font-size: 0.75rem; line-height: 1.25; }
  .today-label { display: none; }
  main { padding: 20px 0 30px; }
  .intro { min-height: 176px; padding: 28px 24px; border-radius: 22px; }
  .intro::before { right: -8rem; }
  .intro::after { right: 2%; bottom: -24%; font-size: 8.5rem; }
  .eyebrow { margin-bottom: 14px; font-size: 0.66rem; letter-spacing: 0.14em; }
  .eyebrow span { width: 29px; height: 23px; }
  h1 { font-size: clamp(2.45rem, 12.5vw, 3.55rem); }
  .intro-copy { max-width: 15rem; margin-top: 12px; font-size: 0.82rem; line-height: 1.45; }
  .suite-stamp { display: none; }
  .section-label { margin: 25px 2px 13px; }
  .section-label span { font-size: 1.13rem; }
  .section-label small { font-size: 0.63rem; letter-spacing: 0.08em; }
  .system-grid { grid-template-columns: 1fr; gap: 11px; }
  .system-card, .system-card.customer, .system-card.leave, .system-card.inventory { grid-column: 1; min-height: 174px; padding: 19px; border-radius: 18px; }
  .card-number { top: 15px; right: 18px; font-size: 3rem; }
  .icon-wrap { width: 45px; height: 45px; border-radius: 13px; }
  .icon-wrap svg { width: 22px; height: 22px; }
  .status { min-height: 24px; padding: 5px 8px; font-size: 0.62rem; }
  .status.available, .status.soon { margin-right: 44px; }
  .card-body { padding: 23px 0 14px; }
  .card-body h2 { margin-bottom: 5px; font-size: 1.45rem; }
  .card-body p { font-size: 0.8rem; }
  .open-link { min-height: 37px; padding-top: 9px; font-size: 0.75rem; }
  .open-link span { width: 27px; height: 27px; }
  footer { min-height: 62px; flex-wrap: wrap; padding: 17px 0; text-align: center; font-size: 0.75rem; }
}

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