/* ===========================================
   Link Hub — Light Pastel Blue Theme
   Inspired by RoboX A.I Landing Page
   =========================================== */

:root {
  --bg-page-1: #DBEAFE;
  --bg-page-2: #E0E7FF;
  --bg-page-3: #BFDBFE;
  --bg-card: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-soft-blue: #EFF6FF;
  --bg-pastel-1: #DBEAFE;
  --bg-pastel-2: #BAE6FD;

  --text-primary: #0B1437;
  --text-secondary: #475569;
  --text-muted: #94A3B8;

  --blue: #2563EB;
  --blue-light: #3B82F6;
  --blue-lighter: #60A5FA;
  --blue-dark: #1E40AF;
  --cyan: #06B6D4;
  --cyan-light: #22D3EE;
  --indigo: #4F46E5;

  --black: #0B1437;
  --black-pure: #000000;

  --shadow-card: 0 14px 40px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 6px 20px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 24px 60px rgba(37, 99, 235, 0.18);
  --shadow-pill: 0 10px 28px rgba(37, 99, 235, 0.32);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Microsoft JhengHei", sans-serif;
  background: linear-gradient(135deg, var(--bg-page-1) 0%, var(--bg-page-2) 50%, var(--bg-page-3) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Page wrap creates the stacked-card effect */
.page-wrap {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 720px) {
  .page-wrap { padding: 12px; gap: 12px; }
}

/* ============ NAV ============ */
.nav {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 16px 28px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
}
.nav-logo img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-cta {
  background: var(--text-primary);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--blue);
}

.nav-burger {
  display: none;
  background: var(--bg-soft);
  border: none;
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  align-items: center;
  justify-content: center;
}

.nav-mobile {
  display: none;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-soft);
  flex-direction: column;
  gap: 14px;
}

.nav-mobile a {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  padding: 6px 0;
}

.nav-mobile .nav-cta { text-align: center; padding: 12px 20px; }
.nav-mobile.open { display: flex; }

@media (max-width: 880px) {
  .nav-links,
  .nav-cta-desktop { display: none; }
  .nav-burger { display: flex; }
}

/* ============ SECTION CARD ============ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 64px 56px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.card-soft {
  background: linear-gradient(135deg, #F0F9FF 0%, #DBEAFE 50%, #E0E7FF 100%);
  border-radius: var(--radius-xl);
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
}

.card-dark {
  background: linear-gradient(135deg, #0F1F50 0%, #040D2A 100%);
  border-radius: var(--radius-xl);
  padding: 64px 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

@media (max-width: 720px) {
  .card,
  .card-soft,
  .card-dark { padding: 36px 24px; border-radius: 24px; }
}

/* ============ HERO ============ */
.hero {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 36px 48px 48px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 40px;
}

.hero-title {
  font-size: clamp(48px, 8.5vw, 116px);
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 0.95;
  color: var(--text-primary);
  flex: 1;
}

.hero-title .blue {
  color: var(--blue);
  display: inline;
}

.hero-title .gradient-blue {
  background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .deco-rings {
  display: inline-block;
  margin: 0 12px;
  vertical-align: middle;
  position: relative;
  width: 70px;
  height: 70px;
}

.hero-title .deco-rings span {
  position: absolute;
  inset: 0;
  border: 2px solid var(--blue);
  border-radius: 50%;
  opacity: 0.5;
}
.hero-title .deco-rings span:nth-child(2) { transform: translateX(20px); border-color: var(--blue-light); }
.hero-title .deco-rings span:nth-child(3) { transform: translateX(-20px); border-color: var(--cyan); }

.hero-title .star {
  display: inline-block;
  color: var(--blue);
  font-size: 0.6em;
  vertical-align: middle;
  animation: spin 12s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-side {
  max-width: 280px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-top: 14px;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}

.hero-visual {
  position: relative;
  height: 360px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #FCE7F3 0%, #DBEAFE 50%, #E0E7FF 100%);
  overflow: hidden;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.hero-visual::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.orbit-stack {
  position: relative;
  width: 320px;
  height: 320px;
}

.orbit {
  position: absolute;
  border: 2px solid rgba(59, 130, 246, 0.35);
  border-radius: 50%;
  animation: orbitSpin 24s linear infinite;
  top: 50%;
  left: 50%;
  transform-origin: center;
}

.orbit::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--blue);
  margin-left: -6px;
}

.orbit-1 { width: 180px; height: 180px; margin: -90px 0 0 -90px; }
.orbit-2 { width: 240px; height: 240px; margin: -120px 0 0 -120px; animation-duration: 32s; animation-direction: reverse; border-color: rgba(6, 182, 212, 0.35); }
.orbit-2::before { background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.orbit-3 { width: 300px; height: 300px; margin: -150px 0 0 -150px; animation-duration: 40s; border-color: rgba(96, 165, 250, 0.3); }
.orbit-3::before { background: var(--blue-lighter); box-shadow: 0 0 18px var(--blue-lighter); }

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.85) 0%, rgba(59, 130, 246, 0.45) 50%, transparent 80%);
  filter: blur(2px);
  animation: corePulse 4s ease-in-out infinite;
}

@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes corePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.75; }
}

.hero-search {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 10px 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-pill);
  width: min(560px, 90%);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.hero-search input::placeholder { color: var(--text-muted); }

.hero-search-btn {
  background: var(--text-primary);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .2s ease;
}

.hero-search-btn:hover { background: var(--blue); }

.hero-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.pill {
  padding: 14px 32px;
  background: var(--text-primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  transition: all .2s ease;
}

.pill:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

.pill.highlight {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  box-shadow: var(--shadow-pill);
}

.pill.highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.45);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.hero-stat .num {
  font-size: 30px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -1px;
}

.hero-stat .lbl {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 880px) {
  .hero { padding: 24px 20px 28px; }
  .hero-top { flex-direction: column; gap: 20px; }
  .hero-side { max-width: none; padding-top: 0; }
  .hero-visual { height: 280px; margin-bottom: 20px; }
  .orbit-stack { width: 220px; height: 220px; }
  .orbit-1 { width: 130px; height: 130px; margin: -65px 0 0 -65px; }
  .orbit-2 { width: 170px; height: 170px; margin: -85px 0 0 -85px; }
  .orbit-3 { width: 210px; height: 210px; margin: -105px 0 0 -105px; }
  .orbit-core { width: 80px; height: 80px; margin: -40px 0 0 -40px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .hero-pills .pill { padding: 12px 20px; font-size: 13px; }
}

/* ============ PAGE HERO (subpages) ============ */
.page-hero {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 56px 56px 60px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero.theme-green::before { background: radial-gradient(circle, rgba(234, 179, 8, 0.16) 0%, transparent 60%); }
.page-hero.theme-orange::before { background: radial-gradient(circle, rgba(245, 158, 11, 0.14) 0%, transparent 60%); }
.page-hero.theme-purple::before { background: radial-gradient(circle, rgba(124, 58, 237, 0.14) 0%, transparent 60%); }

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.6; }

.page-hero h1 {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -2.5px;
  line-height: 0.98;
  margin: 12px 0 24px;
  max-width: 900px;
  position: relative;
}

.page-hero h1 .blue { color: var(--blue); }
.page-hero.theme-green h1 .blue { color: #CA8A04; }
.page-hero.theme-orange h1 .blue { color: #F59E0B; }
.page-hero.theme-purple h1 .blue { color: #7C3AED; }

.page-hero p.lede {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 680px;
  margin-bottom: 32px;
  position: relative;
}

.page-hero .btn-group { position: relative; }

@media (max-width: 720px) {
  .page-hero { padding: 36px 24px 40px; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--text-primary);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--blue);
  color: #fff;
}

.btn-blue {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  color: #fff;
  box-shadow: var(--shadow-pill);
}
.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.45);
  color: #fff;
}

.btn-green { background: linear-gradient(135deg, #EAB308 0%, #A16207 100%); color: #fff; box-shadow: 0 10px 28px rgba(234, 179, 8, 0.36); }
.btn-green:hover { transform: translateY(-2px); color: #fff; }
.btn-orange { background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); color: #fff; box-shadow: 0 10px 28px rgba(245, 158, 11, 0.32); }
.btn-orange:hover { transform: translateY(-2px); color: #fff; }
.btn-purple { background: linear-gradient(135deg, #7C3AED 0%, #DB2777 100%); color: #fff; box-shadow: 0 10px 28px rgba(124, 58, 237, 0.32); }
.btn-purple:hover { transform: translateY(-2px); color: #fff; }

.btn-ghost {
  background: var(--bg-soft);
  color: var(--text-primary);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.btn-ghost:hover {
  background: rgba(59, 130, 246, 0.08);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ SECTION HEADERS ============ */
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}

.eyebrow.green { background: rgba(234, 179, 8, 0.16); color: #713F12; }
.eyebrow.orange { background: rgba(245, 158, 11, 0.12); color: #92400E; }
.eyebrow.purple { background: rgba(124, 58, 237, 0.12); color: #5B21B6; }

.section-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-title .blue { color: var(--blue); }
.section-title .green { color: #CA8A04; }
.section-title .orange { color: #F59E0B; }
.section-title .purple { color: #7C3AED; }
.card-dark .section-title,
.card-dark h2,
.card-dark h3 { color: #fff; }

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 640px;
}

.card-dark .section-desc { color: rgba(255, 255, 255, 0.78); }

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.section-header .section-desc { margin: 0 auto; }

.split-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 48px;
}

.split-header .section-desc { font-size: 15px; }

@media (max-width: 820px) {
  .split-header { grid-template-columns: 1fr; gap: 16px; align-items: start; }
}

/* ============ PARTNERS ============ */
.partners {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px 56px;
  box-shadow: var(--shadow-soft);
}

.partners-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 40px;
}

.partner-item {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s ease;
}

.partner-item::before {
  content: '✦';
  color: var(--blue-lighter);
}

.partner-item:hover { color: var(--blue); }

@media (max-width: 720px) { .partners { padding: 24px; } }

/* ============ SERVICE CARDS (home) ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(59, 130, 246, 0.2);
}

.service-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 20px;
}

.service-icon-box.bg-blue { background: linear-gradient(135deg, #DBEAFE, #BFDBFE); }
.service-icon-box.bg-green { background: linear-gradient(135deg, #FEF9C3, #FEF08A); }
.service-icon-box.bg-orange { background: linear-gradient(135deg, #FEF3C7, #FDE68A); }
.service-icon-box.bg-purple { background: linear-gradient(135deg, #EDE9FE, #DDD6FE); }

.service-body {
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-body .tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
  align-self: flex-start;
}

.service-card:nth-child(2) .tag { background: rgba(234, 179, 8, 0.14); color: #713F12; }
.service-card:nth-child(3) .tag { background: rgba(245, 158, 11, 0.1); color: #92400E; }
.service-card:nth-child(4) .tag { background: rgba(124, 58, 237, 0.1); color: #5B21B6; }

.service-body h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-body p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 18px;
}

.service-feats {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.service-feats li {
  font-size: 14px;
  color: var(--text-primary);
  padding: 6px 0 6px 26px;
  position: relative;
}

.service-feats li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card:nth-child(2) .service-feats li::before { background: #CA8A04; }
.service-card:nth-child(3) .service-feats li::before { background: #F59E0B; }
.service-card:nth-child(4) .service-feats li::before { background: #7C3AED; }

.service-link {
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-card:nth-child(2) .service-link { color: #CA8A04; }
.service-card:nth-child(3) .service-link { color: #F59E0B; }
.service-card:nth-child(4) .service-link { color: #7C3AED; }

@media (max-width: 820px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-body { padding: 28px 24px 24px; }
}

/* ============ SPLIT (generic) ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}

.big-num {
  font-size: clamp(100px, 16vw, 196px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -6px;
  color: var(--blue);
  margin-bottom: 8px;
}

.big-num-sub {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-tag {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 500;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 24px 0 28px;
}

.feature-list li {
  padding-left: 32px;
  position: relative;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.55;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
}

.feature-list li::after {
  content: '✓';
  position: absolute;
  left: 5px;
  top: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.card-dark .feature-list li { color: rgba(255, 255, 255, 0.92); }

/* ============ FEATURE GRID ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.feature-item {
  padding: 28px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.feature-item:hover {
  transform: translateY(-3px);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  border-color: rgba(59, 130, 246, 0.2);
}

.feature-item .icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 14px;
}

.theme-green .feature-item .icon-box { background: linear-gradient(135deg, #FEF9C3, #FEF08A); }
.theme-orange .feature-item .icon-box { background: linear-gradient(135deg, #FEF3C7, #FDE68A); }
.theme-purple .feature-item .icon-box { background: linear-gradient(135deg, #EDE9FE, #DDD6FE); }

.feature-item h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.feature-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (max-width: 820px) {
  .feature-grid,
  .feature-grid.cols-3,
  .feature-grid.cols-4 { grid-template-columns: 1fr; }
}

/* ============ AI TOOLS GRID ============ */
.ai-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ai-tool {
  padding: 32px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  text-align: left;
  transition: all .3s ease;
  color: var(--text-primary);
  display: block;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-soft);
}

.ai-tool:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(59, 130, 246, 0.25);
}

.ai-tool .icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 14px;
}

.ai-tool h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.ai-tool p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.ai-tool .more {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 820px) { .ai-tools-grid { grid-template-columns: 1fr; } }

/* ============ CTA BANNER ============ */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, var(--cyan) 100%);
  border-radius: var(--radius-xl);
  padding: 60px 56px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner.theme-green {
  background: linear-gradient(135deg, #713F12 0%, #CA8A04 55%, #FACC15 100%);
}
.cta-banner.theme-orange {
  background: linear-gradient(135deg, #92400E 0%, #F59E0B 60%, #FCD34D 100%);
}
.cta-banner.theme-purple {
  background: linear-gradient(135deg, #5B21B6 0%, #7C3AED 60%, #DB2777 100%);
}
.cta-banner.theme-instagram {
  background: linear-gradient(135deg, #833AB4 0%, #C13584 35%, #E1306C 65%, #F77737 90%, #FCAF45 100%);
}
.cta-banner.cta-instagram {
  padding: 44px 56px;
  margin-top: 24px;
}
.cta-banner.cta-instagram h2 { font-size: clamp(26px, 3.4vw, 36px); }
.cta-banner.cta-instagram p { font-size: 15px; margin-bottom: 22px; }
@media (max-width: 720px) { .cta-banner.cta-instagram { padding: 32px 22px; } }

.cta-banner h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 14px;
  position: relative;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  margin: 0 auto 28px;
  max-width: 540px;
  position: relative;
}

.cta-banner .btn-group {
  justify-content: center;
  position: relative;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--text-primary);
}
.cta-banner .btn-primary:hover { background: var(--text-primary); color: #fff; }
.cta-banner .btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.cta-banner .btn-ghost:hover { background: rgba(255, 255, 255, 0.28); }

@media (max-width: 720px) { .cta-banner { padding: 40px 24px; } }

/* ============ INFO BOX ============ */
.info-box {
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--text-primary);
  margin-bottom: 32px;
  font-size: 15px;
}

.info-box strong { color: var(--blue-dark); }

.info-box.warm {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}
.info-box.warm strong { color: #92400E; }

.info-box.tip {
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.3);
}
.info-box.tip strong { color: #713F12; }

/* ============ PRICING ============ */
.pricing-table {
  display: grid;
  gap: 20px;
}

.pricing-row {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.pricing-slot h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pricing-slot span {
  font-size: 13px;
  color: var(--text-muted);
}

.pricing-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.price-opt {
  padding: 16px;
  background: #fff;
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.price-opt .duration {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.price-opt .per-hour {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.5px;
}

.price-opt .total {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

@media (max-width: 820px) {
  .pricing-row { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .pricing-options { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .price-opt { padding: 12px 8px; }
  .price-opt .per-hour { font-size: 16px; }
}

.pricing-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.alt-pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.alt-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.alt-card.highlight {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: #fff;
  border-color: transparent;
}

.alt-card h4 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.alt-card .price {
  font-size: 32px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -1px;
  margin: 8px 0 6px;
}

.alt-card.highlight .price { color: #FCD34D; }
.alt-card p { font-size: 14px; color: var(--text-secondary); }
.alt-card.highlight p { color: rgba(255, 255, 255, 0.85); }

@media (max-width: 720px) { .alt-pricing { grid-template-columns: 1fr; } }

/* ============ COWORK PRICE CARD ============ */
.price-card {
  background: linear-gradient(135deg, #FEFCE8 0%, #FEF08A 100%);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
}

.price-card .lbl {
  font-size: 13px;
  color: #713F12;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.price-card .amt {
  font-size: 60px;
  font-weight: 800;
  line-height: 1;
  color: #713F12;
  letter-spacing: -2px;
}

.price-card .unit {
  font-size: 18px;
  color: #854D0E;
  margin-top: 8px;
}

.price-card .meta {
  font-size: 13px;
  color: #713F12;
  opacity: 0.75;
  margin-top: 16px;
}

/* ============ STATS BOX ============ */
.stats-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-card {
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  text-align: center;
}

.card-dark .stat-card .bignum,
.stat-card .bignum {
  font-size: 32px;
  font-weight: 800;
  color: var(--blue-lighter);
  letter-spacing: -1px;
}

.stat-card .meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 6px;
}

/* Light variant */
.stats-box.light .stat-card {
  background: var(--bg-soft);
  border-color: rgba(15, 23, 42, 0.04);
}
.stats-box.light .stat-card .bignum { color: var(--blue); }
.stats-box.light .stat-card .meta { color: var(--text-muted); }

/* ============ STEPS (3 step) ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  padding: 32px 28px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid rgba(15, 23, 42, 0.04);
  transition: transform .2s ease, box-shadow .2s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

.step .step-icon { font-size: 32px; margin-bottom: 10px; }
.step h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.step p { font-size: 14px; color: var(--text-secondary); }

@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ============ BRAND CARD (Quickstar / platforms) ============ */
.brand-card {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
}

.brand-card.purple {
  background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%);
  border-color: rgba(124, 58, 237, 0.25);
}

.brand-card .brand-name {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  color: #92400E;
}

.brand-card.purple .brand-name { color: #5B21B6; }

.brand-card .brand-tagline {
  font-size: 12px;
  color: #92400E;
  opacity: 0.7;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.brand-card.purple .brand-tagline { color: #5B21B6; }

.glass-mini-grid { display: grid; gap: 12px; }

.glass-mini {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  text-align: left;
  backdrop-filter: blur(10px);
}

.glass-mini h5 {
  font-size: 14px;
  color: #92400E;
  font-weight: 700;
  margin-bottom: 4px;
}
.brand-card.purple .glass-mini h5 { color: #5B21B6; }

.glass-mini p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============ PILLARS (corporate) ============ */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pillar {
  padding: 32px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(245, 158, 11, 0.3);
}

.pillar .icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 14px;
}

.pillar h4 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.pillar ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.pillar ul li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 22px;
  position: relative;
  line-height: 1.55;
}

.pillar ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #F59E0B;
  font-weight: 700;
}

@media (max-width: 820px) { .pillar-grid { grid-template-columns: 1fr; } }

/* ============ PLATFORM ITEMS (marketing) ============ */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.platform-item {
  padding: 18px 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 13px;
  color: var(--text-primary);
  transition: all .2s ease;
  font-weight: 600;
}

.platform-item:hover {
  background: #fff;
  transform: translateY(-2px);
}

.platform-item .plat-icon {
  font-size: 22px;
  margin-bottom: 4px;
  display: block;
}

/* ============ FRAMEWORK CARDS (marketing) ============ */
.framework-stack { display: grid; gap: 16px; }

.framework-card {
  background: var(--bg-card);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  border-left: 4px solid #7C3AED;
  box-shadow: var(--shadow-soft);
}

.framework-card.blue { border-left-color: var(--blue); }
.framework-card.orange { border-left-color: #F59E0B; }

.framework-card h5 {
  font-size: 16px;
  font-weight: 700;
  color: #7C3AED;
  margin-bottom: 6px;
}

.framework-card.blue h5 { color: var(--blue-dark); }
.framework-card.orange h5 { color: #92400E; }

.framework-card p { font-size: 14px; color: var(--text-secondary); }

/* ============ AI-SYS GRID (marketing) ============ */
.ai-sys-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ai-sys {
  padding: 32px 28px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.04);
  transition: all .3s ease;
}

.ai-sys:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  background: var(--bg-card);
  border-color: rgba(124, 58, 237, 0.2);
}

.ai-sys .icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 14px;
}

.ai-sys h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.ai-sys p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 820px) { .ai-sys-grid { grid-template-columns: 1fr; } }

.small-note {
  text-align: center;
  margin-top: 28px;
  padding: 14px 20px;
  background: var(--bg-soft);
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 13px;
}

/* ============ FACILITIES (cowork) ============ */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.facility {
  padding: 28px 24px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid rgba(15, 23, 42, 0.04);
  transition: transform .2s ease, box-shadow .2s ease;
}

.facility:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  background: var(--bg-card);
}

.facility .icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #FEF9C3, #FEF08A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 14px;
}

.facility h5 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.facility p { font-size: 13px; color: var(--text-secondary); }

@media (max-width: 820px) { .facility-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .facility-grid { grid-template-columns: 1fr; } }

/* ============ PERSONA (cowork) ============ */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.persona {
  padding: 36px 32px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.04);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}

.persona:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.persona .icon-box {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, #FEF9C3, #FEF08A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 14px;
}

.persona h4 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.persona p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

@media (max-width: 820px) { .persona-grid { grid-template-columns: 1fr; } }

/* ============ WHY US ============ */
.why-list { display: grid; gap: 14px; }

.why-item {
  padding: 22px 24px;
  background: var(--bg-soft);
  border: 1px solid rgba(15, 23, 42, 0.04);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: flex-start;
  transition: background .2s ease, border-color .2s ease;
}

.why-item:hover {
  background: var(--bg-card);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: var(--shadow-soft);
}

.why-item .icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.why-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.why-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-xl);
  padding: 52px 56px 28px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand h3 {
  margin-bottom: 16px;
  display: inline-block;
  line-height: 1;
}
.footer-brand h3 img {
  height: 38px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  color: #fff;
}

.footer-col ul { list-style: none; display: grid; gap: 8px; }

.footer-col li a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color .2s ease;
}

.footer-col li a:hover { color: var(--blue-lighter); }

.footer-contact {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.footer-contact a { color: rgba(255, 255, 255, 0.6); }
.footer-contact a:hover { color: var(--blue-lighter); }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom .hidden-admin {
  color: rgba(255, 255, 255, 0.06);
  font-size: 10px;
  transition: color .2s ease;
}

.footer-bottom .hidden-admin:hover { color: rgba(255, 255, 255, 0.3); }

@media (max-width: 880px) {
  .footer { padding: 40px 28px 24px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
}

/* ============ ADMIN PAGE ============ */
.admin-body {
  background: linear-gradient(135deg, #DBEAFE 0%, #E0E7FF 50%, #BFDBFE 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
}

.admin-login,
.admin-panel {
  padding: 40px 24px 60px;
}

.admin-login .login-box {
  max-width: 420px;
  margin: 80px auto 0;
  background: var(--bg-card);
  padding: 44px 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.admin-login h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.admin-login p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.admin-input {
  width: 100%;
  padding: 13px 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 14px;
  background: var(--bg-soft);
}

.admin-input:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.admin-btn {
  width: 100%;
  padding: 13px 22px;
  background: var(--text-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.admin-btn:hover { transform: translateY(-1px); background: var(--blue); }
.admin-btn.danger { background: linear-gradient(135deg, #EF4444, #B91C1C); }
.admin-btn.danger:hover { background: linear-gradient(135deg, #B91C1C, #7F1D1D); }
.admin-btn.secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid rgba(15, 23, 42, 0.1); }
.admin-btn.secondary:hover { background: var(--bg-soft); }

.admin-container {
  max-width: 1000px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg-card);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.admin-header h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.admin-toast {
  display: none;
  background: #10B981;
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
}

.admin-toast.show { display: inline-block; }

.admin-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
}

.admin-card h2 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.admin-card .desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.admin-field { margin-bottom: 14px; }
.admin-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.admin-grid-3 {
  display: grid;
  grid-template-columns: 200px repeat(3, 1fr);
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
}

.admin-grid-3 .row-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  padding-bottom: 12px;
}

@media (max-width: 720px) {
  .admin-grid-3 { grid-template-columns: 1fr; }
  .admin-grid-3 .row-label { padding-bottom: 0; }
}

.admin-hint {
  padding: 14px 18px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  color: #92400E;
  font-size: 13px;
  margin-bottom: 22px;
}

.admin-save-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.admin-save-row .admin-btn { width: auto; padding: 11px 22px; }

/* ============================================================
   AUTH / MEMBER / BOOKING / EVENTS — Components
   ============================================================ */

/* ===== Member nav button ===== */
.nav-member {
  background: var(--bg-soft);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(15,23,42,0.08);
  transition: background .2s, transform .2s;
}
.nav-member:hover { background: rgba(59,130,246,0.1); transform: translateY(-1px); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 880px) { .nav-member { display: none; } }

/* ===== Auth forms (login/signup) ===== */
.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 880px) { .auth-shell { grid-template-columns: 1fr; } }

.auth-form-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  box-shadow: var(--shadow-card);
}
.auth-form-card h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.auth-form-card .sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.auth-field { margin-bottom: 14px; }
.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.auth-input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  background: var(--bg-soft);
  transition: border-color .2s, background .2s;
}
.auth-input:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.auth-btn {
  width: 100%;
  padding: 13px 22px;
  background: var(--text-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform .2s, background .2s;
  margin-top: 6px;
}
.auth-btn:hover { transform: translateY(-1px); background: var(--blue); }
.auth-error {
  padding: 10px 14px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 12px;
  color: #B91C1C;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}
.auth-error.show { display: block; }
.auth-success {
  padding: 10px 14px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 12px;
  color: #065F46;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}
.auth-success.show { display: block; }
.auth-link {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 16px;
}
.auth-link a { color: var(--blue); font-weight: 600; }

/* ===== Member dashboard ===== */
.member-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 880px) { .member-grid { grid-template-columns: 1fr; } }

.member-side {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 110px;
}
.member-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
}
.member-name { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.member-email { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.tier-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}
.tier-badge.silver { background: #E5E7EB; color: #475569; }
.tier-badge.gold { background: #FEF3C7; color: #92400E; }
.tier-badge.platinum { background: linear-gradient(135deg, #DBEAFE, #DDD6FE); color: #4F46E5; }
.member-points {
  background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 18px;
  text-align: center;
}
.member-points .pts {
  font-size: 32px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -1px;
  line-height: 1;
}
.member-points .lbl {
  font-size: 12px;
  color: var(--blue-dark);
  margin-top: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}
.member-nav { display: grid; gap: 4px; }
.member-nav-item {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background .2s, color .2s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.member-nav-item:hover { background: var(--bg-soft); color: var(--text-primary); }
.member-nav-item.active { background: rgba(59,130,246,0.1); color: var(--blue); font-weight: 600; }

.member-main {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  box-shadow: var(--shadow-soft);
  min-height: 500px;
}
.member-main h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.booking-list { display: grid; gap: 12px; }
.booking-row {
  padding: 18px 22px;
  background: var(--bg-soft);
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.04);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}
.booking-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.booking-meta .date { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.booking-meta .time { font-size: 13px; color: var(--text-secondary); }
.booking-status {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.booking-status.paid { background: rgba(16,185,129,0.15); color: #065F46; }
.booking-status.unpaid { background: rgba(245,158,11,0.15); color: #92400E; }
.booking-status.cancelled { background: rgba(239,68,68,0.15); color: #B91C1C; }

/* ===== Calendar ===== */
.cal-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(15,23,42,0.04);
}
.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cal-title { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.cal-nav {
  display: flex;
  gap: 8px;
}
.cal-nav button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-primary);
  transition: background .2s;
}
.cal-nav button:hover { background: rgba(59,130,246,0.12); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-dow {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  padding: 8px 4px;
  letter-spacing: 1px;
}
.cal-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 14px;
  cursor: pointer;
  background: var(--bg-soft);
  border: 1px solid transparent;
  transition: all .15s;
  position: relative;
}
.cal-cell:hover { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); }
.cal-cell.empty { background: transparent; cursor: default; }
.cal-cell.empty:hover { background: transparent; border-color: transparent; }
.cal-cell.past { opacity: 0.35; cursor: not-allowed; }
.cal-cell.past:hover { background: var(--bg-soft); border-color: transparent; }
.cal-cell.selected {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.cal-cell.selected .dot { background: #fff; }
.cal-cell .num { font-weight: 600; line-height: 1; }
.cal-cell .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}
.cal-cell .dot.free { background: #10B981; }
.cal-cell .dot.partial { background: #F59E0B; }
.cal-cell .dot.booked { background: #EF4444; }

.cal-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
  flex-wrap: wrap;
}
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.cal-legend .dot.free { background: #10B981; }
.cal-legend .dot.partial { background: #F59E0B; }
.cal-legend .dot.booked { background: #EF4444; }

/* ===== Booking widget ===== */
.book-shell {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 980px) { .book-shell { grid-template-columns: 1fr; } }

.book-summary {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 110px;
}
.book-summary h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}
.summary-row:last-child { border-bottom: none; }
.summary-row.total {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  border-top: 2px solid var(--text-primary);
  margin-top: 8px;
  padding-top: 14px;
}
.summary-row .v { color: var(--text-primary); font-weight: 600; }
.summary-row.discount .v { color: #10B981; }

.slot-options { display: grid; gap: 10px; margin-bottom: 18px; }
.slot-option {
  padding: 14px 18px;
  border-radius: 14px;
  border: 2px solid rgba(15,23,42,0.08);
  background: var(--bg-card);
  cursor: pointer;
  transition: all .2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.slot-option:hover { border-color: rgba(59,130,246,0.3); }
.slot-option.selected {
  border-color: var(--blue);
  background: rgba(59,130,246,0.05);
}
.slot-option .label { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.slot-option .meta { font-size: 12px; color: var(--text-muted); }
.slot-option .price { font-size: 18px; font-weight: 700; color: var(--blue); }

.hours-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.hours-pick {
  padding: 14px 8px;
  border-radius: 12px;
  border: 2px solid rgba(15,23,42,0.08);
  background: var(--bg-card);
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.hours-pick:hover { border-color: rgba(59,130,246,0.3); }
.hours-pick.selected { border-color: var(--blue); background: rgba(59,130,246,0.05); }
.hours-pick .h { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.hours-pick .ph { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.promo-row { display: flex; gap: 8px; margin-bottom: 16px; }
.promo-row .auth-input { flex: 1; margin: 0; }
.promo-row button {
  padding: 0 18px;
  background: var(--text-primary);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}
.promo-msg { font-size: 12px; margin-top: -6px; margin-bottom: 14px; }
.promo-msg.ok { color: #065F46; }
.promo-msg.err { color: #B91C1C; }

.book-step {
  margin-bottom: 28px;
}
.book-step .step-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.book-step h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.book-confirm-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-top: 8px;
  box-shadow: var(--shadow-pill);
  transition: transform .2s;
}
.book-confirm-btn:hover { transform: translateY(-2px); }
.book-confirm-btn:disabled {
  background: #CBD5E1;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(11,20,55,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: 36px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.modal .modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}
.modal h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.modal p { color: var(--text-secondary); font-size: 15px; margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; justify-content: center; }

/* ===== Homepage hero photo slideshow ===== */
/* Gallery 有圖時取代 orbit decoration。Fade in/out 自動切換。 */
.hero-photo-stack {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  display: none;
}
.hero-photo-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-photo-slide.active { opacity: 1; }
.hero-photo-stack::after {
  /* 底部漸層保證搜尋 bar 嘅 readability */
  content: '';
  position: absolute; inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(11,20,55,0) 0%, rgba(11,20,55,0.55) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-photo-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-photo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.hero-photo-dot.active {
  background: #fff;
  transform: scale(1.3);
}
.hero-photo-dot:hover { background: rgba(255,255,255,0.85); }

/* ===== Homepage venue promo carousel ===== */
.venue-carousel {
  position: relative;
  margin-top: 24px;
  /* 預留兩側空間俾 arrow buttons (40px 直徑 + 一啲 breathing) */
  padding: 0 8px;
}
.venue-carousel-track {
  display: grid;
  grid-auto-flow: column;
  /* Desktop: 約 3 cards visible；mobile: 1.5 cards */
  grid-auto-columns: minmax(280px, calc((100% - 32px) / 3));
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 4px 16px;
}
.venue-carousel-track::-webkit-scrollbar { display: none; }

.venue-carousel-card {
  scroll-snap-align: start;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  display: block;
  background: #f1f5f9;
  position: relative;
  box-shadow: 0 1px 2px rgba(15,23,42,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.venue-carousel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -10px rgba(15,23,42,0.22);
}
.venue-carousel-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.venue-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15,23,42,0.16);
  cursor: pointer;
  font-size: 26px;
  font-weight: 600;
  color: #0f172a;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 0 4px;  /* visual nudge for ‹ › glyph centering */
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.venue-carousel-arrow:hover {
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 18px rgba(15,23,42,0.22);
}
.venue-carousel-arrow.disabled {
  opacity: 0;
  pointer-events: none;
}
.venue-carousel-arrow.prev { left: -4px; }
.venue-carousel-arrow.next { right: -4px; }

@media (max-width: 980px) {
  .venue-carousel-track { grid-auto-columns: minmax(260px, calc((100% - 16px) / 2)); }
}
@media (max-width: 640px) {
  .venue-carousel-track { grid-auto-columns: minmax(240px, 80%); }
  .venue-carousel-arrow { display: none; }  /* mobile：靠手指 swipe，唔需要 arrow */
}

/* ===== Contact form modal ===== */
.contact-modal {
  max-width: 540px;
  text-align: left;
  padding: 32px 32px 24px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.contact-modal h3 { text-align: left; margin-bottom: 4px; font-size: 22px; }
.contact-modal-sub { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; }
.contact-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: rgba(11,20,55,0.06); color: var(--text-secondary);
  font-size: 22px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.contact-modal-close:hover { background: rgba(11,20,55,0.12); color: var(--text-primary); }
.contact-field { display: flex; flex-direction: column; margin-bottom: 14px; }
.contact-field label {
  font-size: 13px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 6px;
}
.contact-field .req { color: #DC2626; font-weight: 700; }
.contact-field input,
.contact-field textarea {
  width: 100%; box-sizing: border-box;
  padding: 11px 14px; border-radius: 10px;
  border: 1px solid rgba(11,20,55,0.15);
  background: #fff; font-family: inherit;
  font-size: 14px; color: var(--text-primary);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--accent, #0a0a0a);
  box-shadow: 0 0 0 3px rgba(11,20,55,0.08);
}
.contact-field textarea { resize: vertical; min-height: 100px; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .contact-row { grid-template-columns: 1fr; } }
.contact-error {
  background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B;
  padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px;
}
.contact-actions {
  display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px;
}
.contact-actions .btn { min-width: 110px; }
.contact-fallback {
  text-align: center; font-size: 12px; color: var(--text-muted);
  margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(11,20,55,0.08);
}
.contact-fallback a { color: var(--text-secondary); text-decoration: underline; }

/* ===== Events page ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .events-grid { grid-template-columns: 1fr; } }

.event-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .2s, box-shadow .2s;
}
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.event-cover {
  height: 180px;
  background: linear-gradient(135deg, #DBEAFE 0%, #DDD6FE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}
.event-body { padding: 22px 24px 24px; }
.event-cat {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(59,130,246,0.1);
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}
.event-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.event-card .when {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.event-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.events-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: 15px;
}

/* ===== Admin role badge ===== */
.role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-left: 10px;
}
.role-badge.super { background: linear-gradient(135deg, #DDD6FE, #C4B5FD); color: #5B21B6; }
.role-badge.marketing { background: rgba(124,58,237,0.15); color: #5B21B6; }
.role-badge.finance { background: rgba(16,185,129,0.15); color: #065F46; }
.role-badge.internal { background: rgba(245,158,11,0.15); color: #92400E; }

/* ===== Admin tabs ===== */
.admin-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-card);
  padding: 6px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
  flex-wrap: wrap;
}
.admin-tab {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background .2s, color .2s;
  border: none;
  background: transparent;
  font-family: inherit;
}
.admin-tab:hover { background: var(--bg-soft); color: var(--text-primary); }
.admin-tab.active { background: var(--text-primary); color: #fff; }
.admin-tab.disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== Admin tables ===== */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.admin-table th:first-child { border-radius: 10px 0 0 10px; }
.admin-table th:last-child { border-radius: 0 10px 10px 0; }
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15,23,42,0.06);
  color: var(--text-primary);
}
.admin-table .badge-mini {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}
.btn-mini {
  padding: 6px 14px;
  background: var(--bg-soft);
  border: 1px solid rgba(15,23,42,0.1);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-primary);
  transition: background .2s;
}
.btn-mini:hover { background: var(--text-primary); color: #fff; }
.btn-mini.danger:hover { background: #EF4444; color: #fff; }

.empty-row {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Internal slot view (no member info) */
.slot-list { display: grid; gap: 8px; }
.slot-pill {
  padding: 10px 16px;
  background: var(--bg-soft);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.slot-pill .booked-tag {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  background: rgba(239,68,68,0.15);
  color: #B91C1C;
}

/* ============================================================
   Google Sign-in Button + new Role Badges + Events Preview
   ============================================================ */

.google-btn {
  width: 100%;
  padding: 13px 22px;
  background: #fff;
  color: #0F172A;
  border: 1px solid rgba(15,23,42,0.16);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.google-btn:hover {
  background: #F8FAFC;
  border-color: rgba(15,23,42,0.3);
  box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}
.google-btn .g-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(15,23,42,0.1);
}

.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
}
.provider-badge.google { background: #FEF3F2; color: #DC2626; }
.provider-badge.email { background: rgba(59,130,246,0.1); color: var(--blue-dark); }

/* New role badges */
.role-badge.cs { background: rgba(37, 211, 102, 0.18); color: #075E54; }
.role-badge.rental { background: rgba(245,158,11,0.18); color: #92400E; }
.role-badge.partner { background: rgba(6,182,212,0.18); color: #0E7490; }

/* Events Preview Section (homepage) */
.events-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 880px) { .events-preview-grid { grid-template-columns: 1fr; } }

.events-preview-empty {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 24px;
}

/* ============================================================
   Terms Accordion (collapsible 預訂場地須知)
   ============================================================ */

.terms-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 0;
  overflow: hidden;
}

.terms-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background .2s;
}
.terms-toggle:hover { background: var(--bg-soft); }

.terms-toggle .terms-title {
  display: flex;
  align-items: center;
  gap: 14px;
}
.terms-toggle h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin: 0;
}
.terms-toggle .icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.terms-toggle .chev {
  font-size: 20px;
  color: var(--text-muted);
  transition: transform .25s;
  flex-shrink: 0;
}
.terms-card.open .terms-toggle .chev { transform: rotate(180deg); }
.terms-toggle .sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 400;
}

.terms-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.terms-card.open .terms-body { max-height: 5000px; }

.terms-inner {
  padding: 8px 40px 40px;
  border-top: 1px solid rgba(15,23,42,0.06);
}

.terms-inner > p:first-child {
  padding-top: 24px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.terms-inner h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(59,130,246,0.15);
  display: flex;
  align-items: center;
  gap: 8px;
}
.terms-inner h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 20px;
  margin-bottom: 8px;
}
.terms-inner p,
.terms-inner ul {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}
.terms-inner ul {
  list-style: none;
  padding-left: 0;
}
.terms-inner ul li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px;
}
.terms-inner ul li::before {
  content: '•';
  position: absolute;
  left: 8px;
  color: var(--blue);
  font-weight: 700;
}
.terms-inner ol {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  padding-left: 22px;
  margin-bottom: 12px;
}
.terms-inner ol li {
  margin-bottom: 6px;
  padding-left: 4px;
}

.terms-inner .terms-callout {
  background: rgba(59,130,246,0.06);
  border-left: 3px solid var(--blue);
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  margin: 16px 0;
  font-size: 13.5px;
  color: var(--text-primary);
}

.terms-inner .terms-fee-list {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 16px 22px;
  margin: 14px 0;
}
.terms-inner .terms-fee-list strong { color: var(--text-primary); }

.terms-inner .terms-warn {
  background: rgba(245,158,11,0.08);
  border-left: 3px solid #F59E0B;
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  margin: 16px 0;
  font-size: 13.5px;
  color: var(--text-primary);
}

.terms-inner .terms-footer {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px dashed rgba(15,23,42,0.1);
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 720px) {
  .terms-toggle { padding: 22px 24px; }
  .terms-inner { padding: 8px 24px 32px; }
}

/* ============================================================
   Nav Dropdown (活動場地 → submenu)
   ============================================================ */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color .2s;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
  color: var(--text-primary);
}
.nav-dropdown-toggle .chev {
  font-size: 10px;
  transition: transform .2s;
}
.nav-dropdown:hover .nav-dropdown-toggle .chev { transform: rotate(180deg); }

.nav-submenu {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 220px;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(15,23,42,0.12);
  border: 1px solid rgba(15,23,42,0.06);
  padding: 8px;
  margin-top: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, visibility .2s, transform .2s;
  z-index: 50;
}
.nav-submenu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-submenu a {
  display: block;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background .2s, color .2s;
}
.nav-submenu a:hover {
  background: var(--bg-soft);
  color: var(--text-primary);
}
.nav-submenu a.active {
  background: rgba(59,130,246,0.1);
  color: var(--blue);
}

@media (max-width: 880px) {
  .nav-dropdown { display: none; }
}

/* ============================================================
   Terms Agreement Checkbox (預約 confirm 前必填)
   ============================================================ */
.terms-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  margin: 14px 0 12px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1.55;
  user-select: none;
}
.terms-agree input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.terms-agree a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
}
.terms-agree.required-warn {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.4);
  animation: shake 0.4s;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ============================================================
   Venue Gallery Slidebox
   ============================================================ */
.gallery-slidebox {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #DBEAFE, #DDD6FE);
  aspect-ratio: 16 / 9;
  margin-top: 32px;
  box-shadow: var(--shadow-card);
}
.gallery-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.gallery-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 28px 22px;
  background: linear-gradient(to top, rgba(11,20,55,0.85) 0%, rgba(11,20,55,0.5) 60%, transparent 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  pointer-events: none;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background .2s, transform .2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.gallery-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}
.gallery-arrow.prev { left: 16px; }
.gallery-arrow.next { right: 16px; }

.gallery-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: all .2s;
  border: none;
  padding: 0;
}
.gallery-dot:hover { background: rgba(255,255,255,0.8); }
.gallery-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 999px;
}

.gallery-counter {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 14px;
  background: rgba(11,20,55,0.6);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  z-index: 5;
  backdrop-filter: blur(8px);
}

.gallery-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 32px;
}

@media (max-width: 720px) {
  .gallery-arrow { width: 38px; height: 38px; font-size: 16px; }
  .gallery-arrow.prev { left: 10px; }
  .gallery-arrow.next { right: 10px; }
  .gallery-caption { padding: 22px 18px 16px; font-size: 13px; }
}

/* ============================================================
   Admin Gallery Manager
   ============================================================ */
.gallery-uploader {
  display: block;
  border: 2px dashed rgba(15,23,42,0.2);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  background: var(--bg-soft);
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.gallery-uploader:hover {
  border-color: var(--blue);
  background: rgba(59,130,246,0.04);
}
.gallery-uploader.dragover {
  border-color: var(--blue);
  background: rgba(59,130,246,0.08);
}
.gallery-uploader input[type="file"] { display: none; }
.gallery-uploader .icon { font-size: 32px; margin-bottom: 8px; }
.gallery-uploader p { font-size: 14px; color: var(--text-secondary); margin: 4px 0; }
.gallery-uploader strong { color: var(--blue); }

.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.gallery-admin-item {
  background: var(--bg-card);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.gallery-admin-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.gallery-admin-item .meta {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-secondary);
}
.gallery-admin-item .meta input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  color: var(--text-primary);
  padding: 4px 0;
  border-bottom: 1px dashed transparent;
  outline: none;
}
.gallery-admin-item .meta input:focus,
.gallery-admin-item .meta input:hover {
  border-bottom-color: rgba(15,23,42,0.2);
}
.gallery-admin-item .meta .ts {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}
.gallery-admin-item .del-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(239,68,68,0.95);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-admin-item .del-btn:hover { background: #B91C1C; }

.gallery-progress {
  padding: 12px 16px;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 10px;
  font-size: 13px;
  color: var(--blue-dark);
  margin-top: 14px;
}

/* ============================================================
   Admin v2 — Sidebar Shell Layout
   ============================================================ */
.admin-shell {
  display: flex;
  min-height: 100vh;
  background: #F1F5F9;
  align-items: stretch;
}

.admin-sidebar {
  background: #fff;
  border-right: 1px solid rgba(15,23,42,0.06);
  padding: 22px 14px;
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  align-self: flex-start;
  max-height: 100vh;
  overflow-y: auto;
}

.admin-sidebar::-webkit-scrollbar { width: 6px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.1); border-radius: 3px; }

.admin-sidebar .brand {
  padding: 8px 14px 22px;
  border-bottom: 1px solid rgba(15,23,42,0.06);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-sidebar .brand img { height: 26px; width: auto; }
.admin-sidebar .brand .label {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.admin-nav-group {
  margin-bottom: 18px;
}
.admin-nav-group:empty { display: none; }
.admin-nav-group-label {
  font-size: 10px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0 14px 6px;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  color: #475569;
  cursor: pointer;
  transition: background .15s, color .15s;
  margin-bottom: 2px;
  font-family: inherit;
  border: none;
  width: 100%;
  text-align: left;
  background: transparent;
}
.admin-nav-item:hover {
  background: #F1F5F9;
  color: var(--text-primary);
}
.admin-nav-item.active {
  background: linear-gradient(135deg, #0B1F4D 0%, #1E40AF 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.25);
}

.admin-main {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.admin-topbar {
  background: #fff;
  border-bottom: 1px solid rgba(15,23,42,0.06);
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-topbar h1 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-topbar p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 4px 0 0;
}
.admin-topbar .actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-content {
  padding: 28px 32px 60px;
  flex: 1;
}

.admin-mobile-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid rgba(15,23,42,0.1);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Default: overlay hidden on desktop */
.admin-overlay {
  display: none;
}

@media (max-width: 880px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    max-height: 100vh;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-mobile-toggle { display: inline-flex; }
  .admin-topbar { padding: 14px 18px; }
  .admin-content { padding: 18px; }
  .admin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
  }
  .admin-overlay.show { display: block; }
}

/* Hide old admin-tabs inside new layout */
.admin-shell .admin-tabs { display: none; }

/* Hide old admin-header (replaced by topbar) */
.admin-shell .admin-header { display: none; }

/* ============================================================
   Event Poster (4:5 vertical)
   ============================================================ */
.event-cover {
  aspect-ratio: 4 / 5;
  height: auto;
}

.event-poster-uploader {
  display: block;
  border: 2px dashed rgba(15,23,42,0.2);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  background: var(--bg-soft);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  margin-top: 6px;
}
.event-poster-uploader:hover {
  border-color: var(--blue);
  background: rgba(59,130,246,0.04);
}
.event-poster-uploader input[type="file"] { display: none; }
.event-poster-uploader .icon { font-size: 22px; margin-bottom: 4px; }
.event-poster-uploader p { font-size: 12px; color: var(--text-secondary); margin: 2px 0; }
.event-poster-uploader strong { color: var(--blue); }

.event-poster-preview {
  position: relative;
  width: 144px;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: #DBEAFE;
  margin-top: 8px;
}
.event-poster-preview .clear-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(239,68,68,0.95);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Deposit Management Modal
   ============================================================ */
.dep-modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  padding: 0;
  box-shadow: var(--shadow-card);
  text-align: left;
}
.dep-modal .head {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(15,23,42,0.06);
}
.dep-modal .head h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.dep-modal .head .meta {
  font-size: 13px;
  color: var(--text-muted);
}
.dep-modal .body {
  padding: 24px 28px;
}
.dep-modal .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.dep-modal .stats .stat {
  padding: 14px;
  border-radius: 10px;
  background: var(--bg-soft);
  text-align: center;
}
.dep-modal .stats .stat .n {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.dep-modal .stats .stat .l {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.dep-modal .stats .stat.refundable .n { color: #10B981; }
.dep-modal .stats .stat.deducted .n { color: #B91C1C; }
.dep-modal .deductions-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.dep-modal .ded-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.18);
  border-radius: 10px;
  font-size: 13px;
}
.dep-modal .ded-row .reason { color: var(--text-primary); }
.dep-modal .ded-row .amt { font-weight: 700; color: #B91C1C; }
.dep-modal .ded-row .by { font-size: 11px; color: var(--text-muted); }
.dep-modal .add-form {
  display: grid;
  grid-template-columns: 1fr 110px auto;
  gap: 8px;
  margin-bottom: 14px;
}
.dep-modal .footer {
  padding: 18px 28px;
  border-top: 1px solid rgba(15,23,42,0.06);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ============================================================
   Document Modal (Issue + Preview)
   ============================================================ */
.doc-modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  max-width: 720px;
  width: 100%;
  padding: 0;
  box-shadow: var(--shadow-card);
  text-align: left;
  max-height: 90vh;
  overflow-y: auto;
}
.doc-modal .head {
  padding: 22px 28px;
  border-bottom: 1px solid rgba(15,23,42,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.doc-modal .head h3 { font-size: 18px; font-weight: 700; margin: 0; }
.doc-modal .head .x {
  background: var(--bg-soft);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
}

.doc-modal .body { padding: 24px 28px; }

.doc-line-grid {
  display: grid;
  grid-template-columns: 1fr 70px 100px 100px 32px;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  margin-bottom: 6px;
}
.doc-line-grid .head-cell { font-size: 11px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 8px; }
.doc-line-grid input { padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(15,23,42,0.12); font-family: inherit; font-size: 13px; }
.doc-line-grid .del-line { background: rgba(239,68,68,0.1); color: #B91C1C; border: none; border-radius: 6px; cursor: pointer; padding: 6px; font-size: 12px; }

.doc-add-line {
  background: var(--bg-soft);
  border: 1px dashed rgba(15,23,42,0.2);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  color: var(--blue);
  margin-top: 6px;
  font-weight: 600;
}

/* ============================================================
   Document Print View (A4)
   ============================================================ */
.doc-view {
  background: #fff;
  width: 100%;
  max-width: 800px;
  padding: 48px 56px;
  font-family: "DM Sans", sans-serif;
  color: #0B1437;
  font-size: 14px;
  line-height: 1.6;
}
.doc-view .doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #0B1437;
}
.doc-view .doc-header img { height: 44px; }
.doc-view .doc-header .doc-info { text-align: right; }
.doc-view .doc-header .doc-info .doc-type {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0B1437;
  margin-bottom: 4px;
}
.doc-view .doc-header .doc-info .doc-num {
  font-size: 15px;
  font-weight: 700;
  color: #1E40AF;
}
.doc-view .doc-header .doc-info .doc-date {
  font-size: 12px;
  color: #64748B;
  margin-top: 2px;
}
.doc-view .doc-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.doc-view .doc-meta .label {
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.doc-view .doc-meta .val {
  font-size: 13px;
  color: #0B1437;
  line-height: 1.6;
}
.doc-view .doc-meta .val strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }

.doc-view table.doc-items {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.doc-view table.doc-items th {
  background: #F1F5F9;
  padding: 12px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.doc-view table.doc-items td {
  padding: 14px;
  border-bottom: 1px solid rgba(15,23,42,0.08);
  font-size: 13px;
}
.doc-view table.doc-items th:nth-child(2),
.doc-view table.doc-items td:nth-child(2),
.doc-view table.doc-items th:nth-child(3),
.doc-view table.doc-items td:nth-child(3),
.doc-view table.doc-items th:nth-child(4),
.doc-view table.doc-items td:nth-child(4) { text-align: right; }

.doc-view .doc-totals {
  margin-left: auto;
  width: 280px;
  margin-top: 16px;
}
.doc-view .doc-totals .row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
}
.doc-view .doc-totals .row.total {
  border-top: 2px solid #0B1437;
  margin-top: 8px;
  padding-top: 14px;
  font-weight: 800;
  font-size: 17px;
}
.doc-view .doc-notes {
  margin-top: 36px;
  padding: 16px 20px;
  background: #F1F5F9;
  border-radius: 8px;
  font-size: 12px;
  color: #475569;
  line-height: 1.7;
}
.doc-view .doc-notes strong { color: #0B1437; }
.doc-view .doc-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(15,23,42,0.1);
  font-size: 11px;
  color: #64748B;
  text-align: center;
  line-height: 1.7;
}
.doc-view .doc-status-banner {
  padding: 10px 16px;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 13px;
}
.doc-view .doc-status-banner.voided {
  background: rgba(239,68,68,0.1);
  color: #B91C1C;
  border: 2px dashed #B91C1C;
}

@media print {
  /* 隱藏所有 body 直接 children */
  body > * { display: none !important; }
  /* 只顯示開咗嘅單據 modal */
  body > #viewDocModal.show {
    display: block !important;
    position: static !important;
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    inset: auto !important;
    z-index: auto !important;
  }
  #viewDocModal .doc-modal {
    box-shadow: none !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
    width: 100% !important;
    border-radius: 0 !important;
  }
  #viewDocModal .head,
  #viewDocModal .doc-modal-actions { display: none !important; }
  #viewDocModal .body { padding: 0 !important; }
  .doc-view {
    box-shadow: none !important;
    padding: 12mm !important;
    max-width: none !important;
    width: 100% !important;
  }
  @page { margin: 6mm; }
}

.doc-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 16px 28px 22px;
  border-top: 1px solid rgba(15,23,42,0.06);
  flex-wrap: wrap;
}
.doc-modal-actions .left, .doc-modal-actions .right { display: flex; gap: 8px; }

.doc-status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.doc-status-pill.issued { background: rgba(59,130,246,0.15); color: var(--blue-dark); }
.doc-status-pill.voided { background: rgba(239,68,68,0.15); color: #B91C1C; }

.doc-type-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.doc-type-pill.quotation { background: rgba(245,158,11,0.15); color: #92400E; }
.doc-type-pill.invoice { background: rgba(124,58,237,0.15); color: #5B21B6; }
.doc-type-pill.receipt { background: rgba(16,185,129,0.15); color: #065F46; }

/* ============================================================
   Calendar — HK Public Holidays
   ============================================================ */
.cal-cell.holiday {
  background: rgba(239, 68, 68, 0.07);
  border-color: rgba(239, 68, 68, 0.18);
}
.cal-cell.holiday .num { color: #B91C1C; }
.cal-cell.holiday.selected {
  background: var(--blue);
  border-color: var(--blue);
}
.cal-cell.holiday.selected .num,
.cal-cell.holiday.selected .holiday-name { color: #fff; }
.cal-cell .holiday-name {
  font-size: 9px;
  color: #B91C1C;
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
  margin-top: 1px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 2px;
  letter-spacing: -0.2px;
}
.cal-legend .dot.holiday { background: #B91C1C; }
