/* ==========================================================================
   The Sixth Man — mockup styles (layout modeled on dewaunited.com)
   Re-theme: change --accent / --accent-600 below (or pick a swatch in "Panduan Demo").
   ========================================================================== */

:root {
  --accent: #e2b862;
  --accent-600: #b7914d;
  --accent-ink: #1b1d21;
  --green: #1fb67c;
  --green-600: #17976a;

  --bg: #22252b;
  --bg-2: #1b1b1c;
  --header: #2f333a;
  --drawer: #26292f;
  --drawer-head: #30343b;
  --card: #34383f;
  --card-2: #2b2e34;
  --card-hover: #3b4048;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .26);
  --text: #f3f4f5;
  --text-2: #c9ccd2;
  --muted: #9aa0a9;
  --chip: #6b717b;
  --input-border: rgba(255, 255, 255, .42);
  --input-bg: transparent;
  --shadow: 0 8px 28px rgba(0, 0, 0, .28);
  --accent-text: var(--accent);
  --accent-soft: color-mix(in srgb, var(--accent) 18%, transparent);

  --success: #34d399; --success-bg: rgba(52, 211, 153, .14);
  --warning: #fbbf24; --warning-bg: rgba(251, 191, 36, .14);
  --danger: #f87171;  --danger-bg: rgba(248, 113, 113, .14);
  --info: #60a5fa;    --info-bg: rgba(96, 165, 250, .14);

  --radius: 8px;
  --radius-lg: 14px;
  --header-h: 70px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f2f3f5;
  --header: #ffffff;
  --drawer: #ffffff;
  --drawer-head: #f3f4f6;
  --card: #ffffff;
  --card-2: #f3f4f6;
  --card-hover: #f8f8f9;
  --line: rgba(15, 23, 42, .08);
  --line-strong: rgba(15, 23, 42, .22);
  --text: #1c1f24;
  --text-2: #3d434c;
  --muted: #6b7280;
  --chip: #6b717b;
  --input-border: rgba(15, 23, 42, .28);
  --shadow: 0 6px 22px rgba(15, 23, 42, .08);
  --accent-text: var(--accent-600);
  --success: #059669; --success-bg: #ecfdf5;
  --warning: #b45309; --warning-bg: #fffbeb;
  --danger: #dc2626;  --danger-bg: #fef2f2;
  --info: #2563eb;    --info-bg: #eff6ff;
  color-scheme: light;
}

/* Accent presets — shows how the theme follows the club logo */
[data-accent="orange"] { --accent: #f27a2e; --accent-600: #c85a14; }
[data-accent="blue"]   { --accent: #4f8ff7; --accent-600: #2563eb; --accent-ink: #fff; }
[data-accent="red"]    { --accent: #ef4d5a; --accent-600: #c81e2c; --accent-ink: #fff; }
[data-accent="green"]  { --accent: #3ccf8e; --accent-600: #15965f; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 20px; height: 20px; flex: none; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 28px; height: 28px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.container-narrow { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.accent { color: var(--accent-text); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.bold { font-weight: 700; }
.upper { text-transform: uppercase; letter-spacing: .04em; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 24px; }
.grow { flex: 1; min-width: 0; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent; background: var(--card); color: var(--text);
  font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:hover { color: inherit; filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; filter: none; transform: none; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { color: var(--accent-ink); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { color: #fff; }
.btn-outline { background: transparent; border-color: currentColor; }
.btn-outline-accent { background: transparent; border-color: var(--accent); color: var(--accent-text); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--card); }
.btn-light { background: #d4d6da; color: #26292e; }
.btn-light:hover { color: #26292e; }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { color: var(--danger); background: var(--danger-bg); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; gap: 6px; }
.btn-lg { height: 52px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 50%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-text); font-weight: 700; }
.link-btn:hover { text-decoration: underline; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 14px; border-radius: 6px;
  background: var(--chip); color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap;
}
.chip-accent { background: var(--accent); color: var(--accent-ink); }
.chip-outline { background: transparent; border: 1px solid var(--line-strong); color: var(--text-2); }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; background: var(--card-2); color: var(--text-2);
}
.badge-green { background: var(--success-bg); color: var(--success); }
.badge-amber { background: var(--warning-bg); color: var(--warning); }
.badge-red { background: var(--danger-bg); color: var(--danger); }
.badge-blue { background: var(--info-bg); color: var(--info); }
.badge-accent { background: var(--accent); color: var(--accent-ink); }
.badge-gray { background: rgba(148, 163, 184, .16); color: var(--muted); }

/* ---------- header (dewaunited.com style) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60; height: var(--header-h); background: var(--header);
  display: flex; align-items: center; gap: 14px; padding: 0 24px; box-shadow: 0 1px 0 var(--line);
}
.icon-btn {
  position: relative; width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%;
  background: transparent; border: 0; color: var(--text);
}
.icon-btn:hover { background: var(--line); color: var(--text); }
.icon-btn .ico { width: 24px; height: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { width: 46px; height: 46px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.brand-sub { font-size: 15px; color: var(--text-2); white-space: nowrap; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 15px;
}
.pill-store .ico { display: none; }
.pill-green { background: var(--green); color: #fff; }
.pill-green:hover { color: #fff; filter: brightness(1.07); }
.pill-gray { background: #5c616b; color: #fff; }
.pill-gray:hover { color: #fff; filter: brightness(1.12); }
[data-theme="light"] .pill-gray { background: #d7d9dd; color: #26292e; }
.login-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 8px 6px; }
.login-link .ico { width: 24px; height: 24px; }
.count-dot {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--header);
}
.theme-toggle {
  position: relative; width: 46px; height: 28px; border-radius: 999px; border: 0; background: #555a63; padding: 0; flex: none;
}
.theme-toggle-knob {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #33363d;
  display: grid; place-items: center; transition: transform .2s;
}
.theme-toggle-knob .ico { width: 14px; height: 14px; }
[data-theme="dark"] .theme-toggle-knob, :root:not([data-theme]) .theme-toggle-knob { transform: translateX(18px); }
.user-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 6px; border-radius: 999px; font-weight: 700; }
.user-btn:hover { background: var(--line); }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: none; z-index: 80;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px; background: none; border: 0; text-align: left; font-weight: 600; font-size: 14px; }
.dropdown-item:hover { background: var(--card-hover); color: var(--text); }
.dropdown-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown-sep { height: 1px; background: var(--line); margin: 6px 0; }

/* ---------- drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(380px, 88vw); background: var(--drawer); z-index: 95;
  transform: translateX(-102%); transition: transform .25s ease; overflow-y: auto; box-shadow: var(--shadow);
}
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-head { height: 224px; background: var(--drawer-head); display: grid; place-items: center; position: relative; }
.drawer-head img { width: 150px; height: 150px; }
.drawer-close { position: absolute; top: 12px; right: 12px; }
.drawer-nav { padding: 8px 0 16px; }
.drawer-link, .drawer-group-btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 20px 16px; background: none; border: 0;
  font-weight: 700; font-size: 15px; text-align: left; color: var(--text);
}
.drawer-link:hover, .drawer-group-btn:hover { background: var(--line); color: var(--text); }
.drawer-link.active { color: var(--accent-text); }
.drawer-group-btn .ico { width: 26px; height: 26px; transition: transform .2s; color: var(--muted); }
.drawer-group.open .drawer-group-btn .ico { transform: rotate(180deg); }
.drawer-sub { display: none; padding-bottom: 6px; }
.drawer-group.open .drawer-sub { display: block; }
.drawer-sub a { display: block; padding: 12px 16px 12px 32px; font-weight: 600; font-size: 14px; color: var(--text-2); }
.drawer-sub a:hover, .drawer-sub a.active { color: var(--accent-text); }
.drawer-cta { margin: 8px 16px 20px; padding: 18px; border-radius: 12px; background: var(--card-2); }
.drawer-cta h4 { font-size: 16px; margin-bottom: 6px; }
.drawer-social { padding: 0 16px 28px; }
.drawer-social h4 { font-size: 15px; margin-bottom: 12px; }

/* ---------- hero carousel ---------- */
.hero { position: relative; max-width: min(1192px, calc(100% - 108px)); margin: 0 auto; } /* leaves room for the outside arrows */
.hero-frame { position: relative; aspect-ratio: 1192 / 768; overflow: hidden; background: #111; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-cap {
  position: absolute; left: 0; right: 0; bottom: 0; min-height: 84px; display: flex; align-items: center; gap: 24px;
  padding: 14px 16px 14px 18px; background: rgba(8, 8, 10, .74);
}
.hero-kicker { display: inline-block; margin-bottom: 4px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.hero-title { flex: 1; font-size: 24px; font-weight: 700; color: #fff; }
.btn-read { height: 36px; padding: 0 30px; border-radius: 999px; border: 1px solid #fff; color: #fff; background: transparent; font-weight: 600; font-size: 14px; letter-spacing: .04em; display: inline-flex; align-items: center; }
.btn-read:hover { background: #fff; color: #111; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--text-2); padding: 8px; }
.hero-arrow:hover { color: var(--accent); }
.hero-arrow .ico { width: 34px; height: 34px; }
.hero-arrow.prev { left: -46px; }
.hero-arrow.next { right: -46px; }
.hero-dots { display: none; }
.hero-next { display: none; }

.promo {
  position: relative; max-width: 1184px; margin: 64px auto 0; min-height: 200px; border-radius: 4px; overflow: hidden;
  display: grid; place-items: center; text-align: center; background: #111 center / cover no-repeat; color: #fff;
}
.promo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 12, .88), rgba(10, 10, 12, .55) 50%, rgba(10, 10, 12, .88)); }
.promo-inner { position: relative; padding: 28px 20px; }
.promo-kicker { font-family: var(--font-display); font-size: 20px; letter-spacing: .06em; color: #fff; }
.promo-title { font-family: var(--font-display); font-weight: 700; font-size: 52px; line-height: 1.02; text-transform: uppercase; letter-spacing: .01em; }
.promo-title .gold { color: var(--accent); }
.promo-sub { margin-top: 10px; color: #e5e7eb; }

/* ---------- sections ---------- */
.section { padding-top: 64px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 4px 16px; margin-bottom: 20px; }
.section-title { font-size: 38px; font-weight: 800; letter-spacing: -.01em; }
.section-link { margin-left: auto; padding: 6px 0; font-size: 14px; color: var(--text-2); font-weight: 500; white-space: nowrap; }
.section-link:hover { color: var(--accent-text); }
.page-head { padding: 48px 0 12px; }
.page-title { font-size: 38px; font-weight: 800; letter-spacing: -.01em; }
.page-sub { color: var(--text-2); margin-top: 8px; max-width: 720px; }

.tabs { display: flex; border-bottom: 1px solid var(--line-strong); margin: 8px 0 24px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: 1 0 auto; min-width: 130px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 16px; background: none; border: 0; color: var(--text-2); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap;
}
.tab .ico { width: 26px; height: 26px; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent-text); }
.tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--accent); }
.tab .count { font-size: 12px; font-weight: 800; background: var(--card); color: var(--text-2); padding: 1px 8px; border-radius: 999px; }
.empty { text-align: center; padding: 48px 16px; color: var(--text); }
.empty .ico { width: 44px; height: 44px; color: var(--muted); margin: 0 auto 12px; }
.empty p { color: var(--muted); margin-top: 6px; }

/* ---------- slider (card carousels like dewaunited.com) ---------- */
.slider { position: relative; padding: 0 24px; }
.slider-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 46px) / 5); gap: 46px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 0 8px;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { scroll-snap-align: start; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: var(--accent); color: #fff; display: grid; place-items: center; z-index: 3; box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.slider-btn .ico { width: 18px; height: 18px; stroke-width: 3; }
.slider-btn.prev { left: -4px; }
.slider-btn.next { right: -4px; }
.slider-btn[disabled] { opacity: 0; pointer-events: none; }
.slider-dots { display: flex; justify-content: center; margin-top: 14px; }
/* 24px tap area (touch minimum), the visible bar is drawn inside it */
.slider-dot { position: relative; width: 24px; height: 24px; border: 0; padding: 0; background: none; }
.slider-dot::before { content: ''; position: absolute; left: 8px; top: 10px; width: 8px; height: 5px; border-radius: 3px; background: #7c6c4b; transition: width .2s, left .2s; }
.slider-dot.active::before { left: 7px; width: 10px; background: var(--accent); }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
a.card, .card-link { display: block; transition: transform .18s, background .18s; }
a.card:hover { transform: translateY(-3px); color: var(--text); }
.news-card-img { aspect-ratio: 1.4; width: 100%; object-fit: cover; background: #111; }
.card-body { padding: 16px; }
.card-date { font-size: 14px; color: var(--text-2); margin-bottom: 2px; }
.card-title { font-size: 16px; font-weight: 700; line-height: 1.45; }
.news-card { min-height: 100%; }
.news-card .card-body { min-height: 136px; }

.thumb { position: relative; aspect-ratio: 16 / 9; background: #0e0f11; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
a.card:hover .thumb img, .video-row:hover .thumb img { transform: scale(1.04); }
.thumb-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0, 0, 0, .6); border: 2px solid rgba(255, 255, 255, .85); display: grid; place-items: center; color: #fff;
}
.thumb-play .ico { width: 20px; height: 20px; margin-left: 3px; }
.thumb-cat { position: absolute; left: 10px; top: 10px; }

.ach-card { text-align: center; padding: 26px 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 290px; }
.ach-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); color: var(--accent); }
.ach-icon .ico { width: 30px; height: 30px; }
.ach-rank { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.ach-rank .ico { width: 20px; height: 20px; }
.rank-1 { color: #f5c542; } .rank-2 { color: #c0c7d1; } .rank-3 { color: #d08a4c; } .rank-4 { color: var(--text-2); }
.ach-title { font-weight: 700; font-size: 14px; }
.ach-event { font-weight: 700; font-size: 14px; color: var(--text-2); }

.product-card { display: flex; flex-direction: column; }
.product-img { position: relative; aspect-ratio: 1; background: #fff; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-img img { transform: scale(1.04); }
.product-badge { position: absolute; top: 10px; left: 10px; }
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-name { font-weight: 700; font-size: 15px; }
.product-price { font-weight: 800; color: var(--accent-text); font-size: 16px; }
.product-body .btn { margin-top: auto; }

/* session (pick-up game) cards */
.session-card { display: flex; flex-direction: column; height: 100%; }
.session-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.session-img img { width: 100%; height: 100%; object-fit: cover; }
.session-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .55)); }
.date-badge {
  position: absolute; left: 12px; top: 12px; z-index: 2; width: 58px; border-radius: 8px; overflow: hidden; text-align: center;
  background: #fff; color: #1b1d21; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); line-height: 1;
}
.date-badge .wd { background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; padding: 4px 0; letter-spacing: .06em; }
.date-badge .d { font-size: 24px; font-weight: 800; padding: 6px 0 2px; }
.date-badge .m { font-size: 11px; font-weight: 800; padding-bottom: 6px; color: #6b7280; }
.session-flag { position: absolute; right: 12px; top: 12px; z-index: 2; }
.session-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.session-title { padding: 1px 0; font-size: 17px; font-weight: 800; line-height: 1.3; } /* 24px tall tap target */
.meta { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; }
.meta .ico { width: 15px; height: 15px; color: var(--muted); }
.slots { display: flex; flex-direction: column; gap: 6px; }
.slots-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); font-weight: 600; }
.slots-bar { height: 6px; border-radius: 999px; background: var(--card-2); overflow: hidden; }
[data-theme="light"] .slots-bar { background: #e5e7eb; }
.slots-fill { height: 100%; border-radius: inherit; background: var(--green); }
.slots-fill.warn { background: var(--warning); }
.slots-fill.full { background: var(--danger); }
.session-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 800; font-size: 16px; }
.price small { font-weight: 600; color: var(--muted); font-size: 12px; }
.why { font-size: 12px; color: var(--warning); font-weight: 600; }

/* list rows (sessions page) */
.session-row {
  display: grid; grid-template-columns: 88px 200px minmax(0, 1fr) auto; gap: 20px; align-items: center;
  background: var(--card); border-radius: var(--radius); padding: 14px; transition: background .15s;
}
.session-row + .session-row { margin-top: 14px; }
.session-row:hover { background: var(--card-hover); }
.date-block { text-align: center; border-right: 1px solid var(--line); padding-right: 14px; line-height: 1.1; }
.date-block .wd { font-size: 12px; font-weight: 800; color: var(--accent-text); letter-spacing: .08em; }
.date-block .d { font-size: 34px; font-weight: 800; }
.date-block .m { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .08em; }
.session-row-img { width: 200px; aspect-ratio: 16 / 10; border-radius: 6px; object-fit: cover; }
.session-row-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.session-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; min-width: 190px; }

/* banner (like the dewaunited.com ticket banner) */
.banner { position: relative; border-radius: 4px; overflow: hidden; background: #0e0f11 center / cover no-repeat; min-height: 300px; color: #fff; }
.banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .7) 55%, rgba(0, 0, 0, .35)); }
.banner-inner { position: relative; padding: 36px 44px; max-width: 820px; }
.banner h2 { font-size: 26px; font-weight: 800; }
.banner p { color: #e5e7eb; margin-top: 6px; }
.rules-title { font-family: var(--font-display); font-weight: 700; font-size: 46px; color: var(--accent); text-transform: uppercase; margin-top: 26px; line-height: 1; }
.rules { display: flex; flex-wrap: wrap; gap: 18px 22px; margin-top: 16px; }
.rule { width: 92px; text-align: center; font-size: 12px; font-weight: 600; color: #e5e7eb; line-height: 1.3; }
.rule-ico { width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 50%; border: 2px solid var(--accent); display: grid; place-items: center; color: #fff; }
.rule-ico .ico { width: 22px; height: 22px; }

/* ---------- news list (3 columns like dewaunited.com) ---------- */
.news-layout { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
.news-big img { width: 100%; aspect-ratio: 1.34; object-fit: cover; border-radius: 6px; }
.news-big .card-date { margin-top: 14px; }
.news-big .card-title { font-size: 20px; }
.news-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-row img { width: 170px; aspect-ratio: 1.5; object-fit: cover; border-radius: 6px; }
.news-row .card-title { font-size: 16px; }
.aside-title { font-size: 38px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.01em; }
.news-col-feature .news-big img { aspect-ratio: 1.33; }
.load-more { display: flex; justify-content: center; margin-top: 36px; }

/* ---------- video list ---------- */
.video-feature { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 36px; }
.video-feature .thumb { border-radius: var(--radius); }
.video-feature h2 { font-size: 28px; font-weight: 800; margin: 10px 0; }
.video-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.video-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.video-row .thumb { border-radius: 6px; }
.video-row .thumb-play { width: 38px; height: 38px; }

/* ---------- detail pages ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; padding-top: 36px; }
.article-head { margin-bottom: 20px; }
.article-title { font-size: 40px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; margin: 12px 0; }
.article-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin: 8px 0 28px; }
.byline { display: flex; align-items: center; gap: 14px; color: var(--text-2); font-size: 14px; flex-wrap: wrap; }
.prose { font-size: 17px; line-height: 1.8; color: var(--text-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { color: var(--text); font-weight: 800; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h3 { font-size: 21px; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 0; }
.prose li + li { margin-top: .4em; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent-text); text-decoration: underline; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--accent); background: var(--card-2); border-radius: 0 8px 8px 0; font-style: italic; color: var(--text); }
.aside-card { background: var(--card); border-radius: var(--radius); padding: 18px; }
.aside-card + .aside-card { margin-top: 20px; }
.aside-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.mini-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini-row:last-child { border-bottom: 0; }
.mini-row img { width: 96px; aspect-ratio: 1.4; object-fit: cover; border-radius: 6px; }
.mini-row .t { font-weight: 700; font-size: 14px; line-height: 1.35; }

.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.player img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); border: 0; display: grid; place-items: center; box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
}
.player-play .ico { width: 34px; height: 34px; margin-left: 5px; }
.player-note { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px; background: rgba(0, 0, 0, .65); color: #e5e7eb; font-size: 13px; text-align: center; }

.session-detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; padding-top: 32px; }
.session-cover { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; }
.session-cover img { width: 100%; height: 100%; object-fit: cover; }
.session-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .75)); }
.session-cover-cap { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 2; color: #fff; }
.session-cover-cap h1 { font-size: 34px; font-weight: 800; margin-top: 8px; }
.info-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.info-item { display: flex; gap: 12px; background: var(--card); border-radius: var(--radius); padding: 14px; }
.info-item .ico { width: 22px; height: 22px; color: var(--accent-text); margin-top: 2px; }
.info-item .k { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.info-item .v { font-weight: 700; }
.book-card { position: sticky; top: calc(var(--header-h) + 20px); background: var(--card); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.book-price { font-size: 30px; font-weight: 800; }
.book-status { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.avatar-stack { display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; padding-left: 8px; } /* wraps instead of widening the page */
.avatar-stack .avatar { border: 2px solid var(--card); margin-left: -8px; }
.pay-box { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------- courts ---------- */
.court-card { display: flex; flex-direction: column; }
.court-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.court-img img { width: 100%; height: 100%; object-fit: cover; }
.court-type { position: absolute; left: 12px; top: 12px; }
.court-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.court-name { font-size: 19px; font-weight: 800; }
.court-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.sub-toggle { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; font-weight: 700; font-size: 13px; color: var(--text-2); }
.sub-toggle.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- store (dewaunited.com store page style) ---------- */
.store-hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.store-hero-bg { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 760px; max-width: 90%; opacity: .16; }
.store-glass {
  position: relative; max-width: 576px; padding: 40px; border-radius: 26px; border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
[data-theme="light"] .store-glass { border-color: var(--line-strong); background: rgba(255, 255, 255, .7); }
.store-kicker { display: inline-block; padding: 8px 20px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent-text); font-family: var(--font-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.store-title { font-family: var(--font-display); font-weight: 700; font-size: 62px; line-height: 1.05; margin-top: 22px; }
.store-title .gold { color: var(--accent-text); display: block; }
.store-sub { margin-top: 14px; color: var(--text-2); }
.store-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.headline { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 46px; text-transform: uppercase; line-height: 1.05; }
.headline .gold { color: var(--accent-text); }
.headline-bar { width: 96px; height: 3px; background: var(--accent-600); margin: 16px auto 36px; }
.visit-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 44px; border-radius: 6px; margin-top: 16px;
  background: radial-gradient(circle at 20% 20%, rgba(226, 184, 98, .35), transparent 45%), linear-gradient(120deg, #0d0d0f, #2a2418 60%, #0d0d0f);
  color: #fff; border: 1px solid rgba(226, 184, 98, .35);
}
.visit-banner .t1 { font-family: var(--font-display); font-size: 22px; letter-spacing: .06em; color: var(--accent); text-transform: uppercase; }
.visit-banner .t2 { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; }

/* ---------- about / partnership / contact / faq ---------- */
.about-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 36px; }
.about-hero img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.stat { background: var(--card); border-radius: var(--radius); padding: 22px; text-align: center; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 40px; color: var(--accent-text); line-height: 1; }
.stat-label { color: var(--text-2); font-size: 14px; margin-top: 8px; }
.value-card { background: var(--card); border-radius: var(--radius); padding: 22px; }
.value-card .ico { width: 30px; height: 30px; color: var(--accent-text); margin-bottom: 12px; }
.value-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.value-card p { color: var(--text-2); font-size: 14px; }
.tier-card { background: var(--card); border-radius: var(--radius-lg); padding: 26px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.tier-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tier-card h3 { font-family: var(--font-display); font-size: 28px; font-weight: 700; text-transform: uppercase; }
.tier-card ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14px; }
.tier-card li + li { margin-top: 6px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; align-items: start; padding-top: 24px; }
.contact-item { display: flex; gap: 14px; padding: 16px; background: var(--card); border-radius: var(--radius); }
.contact-item + .contact-item { margin-top: 12px; }
.contact-item .ico { width: 24px; height: 24px; color: var(--accent-text); margin-top: 2px; }
.faq { max-width: 880px; }
.faq-item { background: var(--card); border-radius: var(--radius); }
.faq-item + .faq-item { margin-top: 12px; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 700; font-size: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { transition: transform .2s; color: var(--muted); }
.faq-item[open] summary .ico { transform: rotate(180deg); color: var(--accent-text); }
.faq-item .faq-a { padding: 0 20px 18px; color: var(--text-2); }

/* ---------- forms (pill inputs like dewaunited.com login) ---------- */
.form-narrow { max-width: 440px; margin: 0 auto; }
.auth-wrap { padding-top: 28px; padding-bottom: 24px; } /* longhand: keeps .container's side padding */
.auth-title { text-align: center; font-size: 24px; font-weight: 800; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.label .opt { font-weight: 500; color: var(--muted); font-size: 13px; }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--input-border);
  background: var(--input-bg); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 18px, calc(100% - 15px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.select option { background: var(--card); color: var(--text); }
.textarea { height: auto; min-height: 120px; padding: 12px 18px; border-radius: 16px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft, rgba(226, 184, 98, .18)); }
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--danger); }
input[type="date"].input, input[type="time"].input { padding-right: 12px; }
[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator, [data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator,
:root:not([data-theme]) input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.85); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 48px; }
.input-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: none; color: var(--text-2); display: grid; place-items: center; border-radius: 50%; }
.field-error { color: var(--danger); font-size: 13px; font-weight: 600; margin-top: 6px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form-grid .span-2 { grid-column: span 2; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.divider-text { display: flex; align-items: center; gap: 14px; color: var(--text-2); margin: 26px 0 18px; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--line-strong); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 999px; background: #666b74; position: relative; transition: background .15s; margin: 0; flex: none; cursor: pointer; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(18px); }
.file-drop { border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 18px; text-align: center; color: var(--text-2); cursor: pointer; display: block; }
.file-drop:hover { border-color: var(--accent); }
.file-drop input { display: none; }
.img-preview { margin-top: 12px; border-radius: 10px; max-height: 320px; object-fit: contain; width: 100%; background: var(--card-2); }
.demo-accounts { margin-top: 28px; padding: 18px; border-radius: 14px; background: var(--card-2); border: 1px dashed var(--line-strong); }
.demo-accounts h4 { font-size: 14px; margin-bottom: 4px; }
.demo-accounts .row-wrap { margin-top: 12px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 12px 10px; border-bottom: 1px solid var(--line-strong); }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
/* The global img max-width:100% makes a table column think its photo is 0px wide, so the text beside it spills into the next column */
.table td img, .list-row > .row > img { max-width: none; flex: none; }
.table td .row > div { min-width: 6.5em; } /* the name beside a thumbnail keeps a readable width */
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--card-hover); }
.t-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.person { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.person .n { font-weight: 700; }
.person .e { font-size: 12px; color: var(--muted); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; flex: none; overflow: hidden; background: #555; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-lg { width: 84px; height: 84px; font-size: 28px; }
.avatar-xl { width: 112px; height: 112px; font-size: 36px; }
.seg { display: inline-flex; background: var(--card-2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--text-2); display: inline-flex; align-items: center; gap: 5px; }
.seg button.on-present { background: var(--success-bg); color: var(--success); }
.seg button.on-absent { background: var(--danger-bg); color: var(--danger); }
.seg .ico { width: 14px; height: 14px; }
.receipt-thumb { width: 52px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: zoom-in; }
.receipt-full { width: 100%; max-height: 64vh; object-fit: contain; border-radius: 10px; background: #fff; }

/* ---------- alerts, modal, toast ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 14px; background: var(--info-bg); color: var(--text); }
.alert .ico { color: var(--info); margin-top: 1px; }
.alert-success { background: var(--success-bg); } .alert-success .ico { color: var(--success); }
.alert-warning { background: var(--warning-bg); } .alert-warning .ico { color: var(--warning); }
.alert-danger { background: var(--danger-bg); } .alert-danger .ico { color: var(--danger); }
.alert b { color: var(--text); }
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .62); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 24px; overflow-y: auto; animation: fade .15s ease; }
.modal { width: 100%; max-width: 560px; background: var(--card); border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); animation: pop .18s ease; }
.modal-lg { max-width: 760px; }
.modal-sm { max-width: 420px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.modal-title { font-size: 18px; font-weight: 800; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
/* a pop-up taller than the screen keeps its buttons in view while the rest scrolls */
.modal-foot { position: sticky; bottom: 0; z-index: 1; background: var(--card); border-radius: 0 0 18px 18px; }
.modal .form-actions { position: sticky; bottom: 0; z-index: 1; background: var(--card); padding: 12px 0 4px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 10px; width: min(460px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; background: #111316; color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); font-weight: 600; font-size: 14px; animation: pop .2s ease; border-left: 4px solid var(--info); }
.toast-success { border-left-color: #22c55e; } .toast-success .ico { color: #22c55e; }
.toast-error { border-left-color: #ef4444; } .toast-error .ico { color: #ef4444; }
.toast-info .ico { color: #60a5fa; }

/* ---------- member area ---------- */
.account { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 32px; }
.account-side { background: var(--card); border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: calc(var(--header-h) + 20px); }
.account-user { padding: 24px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.account-user .avatar { margin: 0 auto 12px; }
.account-nav { padding: 8px; }
.account-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--text-2); }
.account-link:hover { background: var(--card-hover); color: var(--text); }
.account-link.active { background: var(--accent); color: var(--accent-ink); }
.account-link .badge { margin-left: auto; }
.panel { background: var(--card); border-radius: var(--radius-lg); padding: 22px; }
.panel + .panel { margin-top: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-title { font-size: 18px; font-weight: 800; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-card { background: var(--card); border-radius: var(--radius-lg); padding: 18px; }
.stat-card .k { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat-card .v { font-size: 30px; font-weight: 800; margin-top: 4px; line-height: 1.1; }
.stat-card .s { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.ratio-bar { height: 8px; border-radius: 999px; background: var(--card-2); overflow: hidden; margin-top: 10px; }
.ratio-bar span { display: block; height: 100%; background: var(--green); border-radius: inherit; }

/* ---------- mock inbox ---------- */
.inbox { display: grid; grid-template-columns: 360px minmax(0, 1fr); background: var(--card); border-radius: var(--radius-lg); overflow: hidden; min-height: 560px; }
.inbox-list { border-right: 1px solid var(--line); max-height: 72vh; overflow-y: auto; }
.mail-item { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; }
.mail-item:hover { background: var(--card-hover); }
.mail-item.active { background: var(--card-2); box-shadow: inset 3px 0 0 var(--accent); }
.mail-item .s { font-size: 14px; color: var(--text-2); }
.mail-item.unread .s { color: var(--text); font-weight: 800; }
.mail-item.unread .dot { display: inline-block; }
.mail-item .dot { display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: middle; }
.mail-item .t { font-size: 12px; color: var(--muted); margin-top: 4px; }
.mail-view { padding: 26px 30px; }
.mail-paper { background: #fff; color: #1f2937; border-radius: 12px; overflow: hidden; max-width: 620px; margin: 18px auto 0; box-shadow: 0 4px 16px rgba(0, 0, 0, .15); }
.mail-paper-head { background: #1b1d21; color: #fff; padding: 18px 24px; display: flex; align-items: center; gap: 12px; }
.mail-paper-head img { width: 40px; height: 40px; }
.mail-paper-body { padding: 24px; font-size: 15px; line-height: 1.65; }
.mail-paper-body p + p { margin-top: 12px; }
.mail-details { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; background: #f9fafb; border-radius: 10px; overflow: hidden; }
.mail-details td { padding: 9px 14px; border-bottom: 1px solid #e5e7eb; }
.mail-details tr:last-child td { border-bottom: 0; }
.mail-details td:first-child { color: #6b7280; width: 110px; }
.mail-details td:last-child { font-weight: 700; }
.mail-cta { display: inline-block; margin-top: 8px; padding: 12px 22px; border-radius: 999px; background: #1b1d21; color: #fff; font-weight: 700; }
.mail-cta:hover { color: var(--accent); }
.mail-paper-foot { padding: 14px 24px 20px; font-size: 12px; color: #9ca3af; border-top: 1px solid #f3f4f6; }

/* ---------- admin ---------- */
.admin { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--drawer); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; }
.admin-brand img { width: 40px; height: 40px; }
.admin-brand .n { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; }
.admin-brand .r { font-size: 11px; font-weight: 800; color: var(--accent-text); letter-spacing: .1em; text-transform: uppercase; }
.admin-nav { padding: 6px 10px; display: flex; flex-direction: column; gap: 2px; }
.admin-nav .grp { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 10px 6px; }
.admin-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--text-2); }
.admin-link:hover { background: var(--line); color: var(--text); }
.admin-link.active { background: var(--accent); color: var(--accent-ink); }
.admin-link .badge { margin-left: auto; }
.admin-link.active .badge { background: rgba(0, 0, 0, .18); color: inherit; }
.admin-side-foot { margin-top: auto; padding: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-top { height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 24px; background: var(--header); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.admin-top h1 { font-size: 18px; font-weight: 800; }
.admin-content { padding: 24px; max-width: 1320px; width: 100%; }
.admin-menu-btn { display: none; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { background: var(--card); border-radius: var(--radius-lg); padding: 18px; display: flex; gap: 14px; align-items: center; }
.kpi-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft, rgba(226, 184, 98, .15)); color: var(--accent-text); flex: none; }
.kpi-num { font-size: 26px; font-weight: 800; line-height: 1.1; }
.kpi-label { font-size: 13px; color: var(--text-2); }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar > p.grow { flex: 1 1 260px; } /* on a narrow screen the button drops below the text instead of squeezing it */
.search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.search .input { padding-left: 42px; height: 40px; }
.section-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.section-status:last-child { border-bottom: 0; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }

.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }

/* rich text editor */
.rte { border: 1px solid var(--input-border); border-radius: 16px; overflow: hidden; }
.rte-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); background: var(--card-2); }
.rte-btn { min-width: 34px; height: 32px; padding: 0 8px; border-radius: 8px; border: 0; background: transparent; font-weight: 800; font-size: 13px; color: var(--text-2); display: inline-grid; place-items: center; }
.rte-btn:hover { background: var(--card); color: var(--text); }
.rte-area { min-height: 320px; padding: 18px; outline: none; font-size: 16px; }

/* ---------- partners & footer ---------- */
.partners { padding: 80px 0 40px; }
.partners-title { text-align: center; font-size: 24px; font-weight: 700; margin-bottom: 44px; }
.partner-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 48px 72px; }
.plogo { min-width: 150px; height: 72px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-2); opacity: .92; }
.plogo img { max-height: 72px; max-width: 200px; }
.plogo:hover { opacity: 1; color: var(--text); }
.plogo .ico { width: 34px; height: 34px; }
.plogo.s1 { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.plogo.s1 .ico { color: #c08552; }
.plogo.s2 { font-weight: 900; font-size: 24px; font-style: italic; letter-spacing: -.03em; }
.plogo.s2 .ico { color: #e3504f; }
.plogo.s3 { font-weight: 800; font-size: 22px; color: #4ea3e3; }
.plogo.s4 { font-weight: 700; font-size: 21px; color: #3bb88a; }
.plogo.s4 .ico { color: #3bb88a; }
.plogo.s5 { font-family: Georgia, 'Times New Roman', serif; font-size: 25px; font-weight: 700; color: #d4a24c; }
.plogo.s6 { font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: .12em; border: 2px solid currentColor; padding: 0 14px; height: 52px; }
.footer-wrap { position: relative; margin-top: 88px; }
.footer-logo { position: absolute; left: 50%; top: -62px; transform: translateX(-50%); width: 124px; height: 124px; z-index: 2; }
.footer { background: var(--bg-2); color: #d5d7db; padding: 104px 32px 30px; }
.footer-cols { display: grid; grid-template-columns: 170px 210px minmax(260px, 360px) minmax(0, 1fr); gap: 32px; }
.footer h4 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.footer-col a { display: block; color: #c4c7cc; font-size: 14px; padding: 2px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-col p { font-size: 14px; color: #c4c7cc; }
.footer-col p + h5 { margin-top: 16px; }
.footer h5 { color: #d9dbdf; font-size: 14px; margin: 0 0 4px; }
.footer-social { display: flex; gap: 14px; margin-top: 4px; }
.social-ico { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: transparent; color: #fff; border: 0; }
.social-ico:hover { color: var(--accent); }
.social-ico .ico { width: 30px; height: 30px; }
.footer-legal { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 28px; font-size: 12px; }
.footer-legal a { padding: 6px 8px; color: #c4c7cc; border-left: 1px solid #56595f; }
.footer-legal a:first-child { border-left: 0; }
.footer-copy { text-align: center; color: #fff; font-size: 12px; margin-top: 18px; }

/* ---------- demo helper ---------- */
.demo-pill {
  position: fixed; left: 16px; bottom: 16px; z-index: 120; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--accent); background: rgba(20, 21, 24, .92); color: var(--accent); font-weight: 800; font-size: 13px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35); letter-spacing: .02em;
}
.demo-pill:hover { background: var(--accent); color: var(--accent-ink); }
.guide-list { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14px; }
.guide-list li + li { margin-top: 8px; }
.guide-list b { color: var(--text); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 3px solid transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .2); }
.swatch.on { border-color: var(--text); }
.admin-banner { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; }

/* ---------- responsive ----------
   Standard breakpoints (Tailwind's numbers — the same set the real Next.js build will use):
     Desktop ≥1280 · Tablet landscape 1024–1279 · Tablet portrait 768–1023 · Mobile landscape 640–767 · Mobile portrait <640
   Desktop-first: each block narrows the one above it. A phone on its side is as wide as a tablet,
   so short screens get their own height rule at the end. Smallest supported width: 320px.
   Checked by "1 Claude/tools/responsive.js". */

/* ≤1279 · tablet landscape and below */
@media (max-width: 1279.98px) {
  .hero { max-width: 1192px; }
  .hero-arrow.prev { left: 6px; } .hero-arrow.next { right: 6px; }
  .hero-arrow { color: #fff; text-shadow: 0 1px 6px #000; }
  .slider-track { grid-auto-columns: calc((100% - 3 * 28px) / 4); gap: 28px; }
  .kpis, .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-grid, .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* below 1280 tables become one card per row (tablets, and small laptops where the admin sidebar leaves ~700–950px): no sideways scrolling, every button in view (labels come from ui.labelTables) */
  .table-wrap { overflow-x: visible; }
  .table, .table tbody { display: block; }
  .table thead { display: none; }
  .table tr { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); grid-auto-flow: row dense; gap: 10px 16px; padding: 14px; border-bottom: 1px solid var(--line); }
  .table tr[hidden] { display: none; }
  .table tr:last-child { border-bottom: 0; }
  .table td { display: block; min-width: 0; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
  .table td.td-wide, .table td[colspan] { grid-column: 1 / -1; }
  .table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
  .table td:first-child::before, .table td[colspan]::before { content: none; }
  .table tbody tr:hover td { background: none; }
  .table .t-actions { justify-content: flex-start; flex-wrap: wrap; }
  .table .person { min-width: 0; }
}

/* ≤1023 · tablet portrait and below */
@media (max-width: 1023.98px) {
  .slider-track { grid-auto-columns: calc((100% - 2 * 24px) / 3); gap: 24px; }
  .detail, .session-detail { grid-template-columns: minmax(0, 1fr); }
  .book-card { position: static; }
  .news-layout { grid-template-columns: 1fr 1fr; }
  .news-layout .news-col-aside { grid-column: span 2; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .session-row { grid-template-columns: 76px 150px minmax(0, 1fr); }
  .session-row-img { width: 150px; }
  .session-row-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; min-width: 0; }
  .admin { grid-template-columns: minmax(0, 1fr); }
  .admin-side { position: fixed; z-index: 150; left: 0; top: 0; width: 270px; transform: translateX(-102%); transition: transform .25s; }
  body.admin-nav-open .admin-side { transform: none; box-shadow: var(--shadow); }
  body.admin-nav-open .drawer-backdrop { opacity: 1; pointer-events: auto; z-index: 140; }
  .admin-menu-btn { display: inline-grid; }
  .account { grid-template-columns: minmax(0, 1fr); }
  .account-side { position: static; }
  .account-nav { display: flex; overflow-x: auto; gap: 4px; }
  .account-link { white-space: nowrap; }
  .account-user { display: none; }
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .inbox-list { max-height: 300px; border-right: 0; border-bottom: 1px solid var(--line); }
  .about-hero, .contact-grid, .video-feature { grid-template-columns: minmax(0, 1fr); }
  .video-rows { grid-template-columns: minmax(0, 1fr); }
  .brand-sub { display: none; }
}

/* ≤767 · mobile, landscape and portrait */
@media (max-width: 767.98px) {
  .hide-sm { display: none; }
  body { font-size: 14px; }
  .topbar { padding: 0 10px; gap: 6px; }
  .brand-name { display: none; }
  .brand-logo { width: 40px; height: 40px; }
  .pill { height: 36px; padding: 0 14px; font-size: 14px; }
  .login-link span { display: none; }
  .theme-toggle { display: none; }
  .hero-frame { aspect-ratio: auto; height: 520px; }
  .hero-slide { display: flex; flex-direction: column; background: #000; }
  .hero-img { height: 58%; flex: none; }
  .hero-cap { position: static; flex: 1; flex-direction: column; align-items: flex-start; justify-content: center; background: #000; gap: 16px; padding: 16px; }
  .hero-title { font-size: 19px; flex: none; }
  .hero-arrow { top: 29%; }
  .hero-next { display: block; text-align: center; padding: 10px 16px 0; color: var(--text); font-size: 14px; }
  .promo { margin-top: 32px; min-height: 150px; }
  .promo-title { font-size: 30px; }
  .section { padding-top: 44px; }
  .section-title, .page-title, .aside-title { font-size: 26px; }
  .slider { padding: 0; }
  .slider-track { grid-auto-columns: calc((100% - 16px) / 2.3); gap: 16px; }
  .slider-btn { display: none; }
  .news-layout { grid-template-columns: minmax(0, 1fr); }
  .news-layout .news-col-aside { grid-column: auto; }
  .news-row { grid-template-columns: 120px minmax(0, 1fr); }
  .news-row img { width: 120px; }
  .video-row { grid-template-columns: 150px minmax(0, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .session-row { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .session-row-media { display: none; } /* hide the photo's link, not just the photo — an empty link still takes a grid cell */
  .date-block .d { font-size: 28px; }
  .banner-inner { padding: 24px 20px; }
  .rules-title { font-size: 32px; }
  .rule { width: 88px; }
  .article-title { font-size: 28px; }
  .session-cover-cap h1 { font-size: 24px; }
  .store-hero { min-height: 460px; }
  .store-glass { padding: 26px; }
  .store-title { font-size: 44px; }
  .headline { font-size: 32px; }
  .visit-banner { flex-direction: column; align-items: flex-start; padding: 24px; }
  .visit-banner .t2 { font-size: 34px; }
  .footer { padding: 90px 18px 90px; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-content { padding: 16px; }
  .mail-view { padding: 16px; }
  .partner-grid { gap: 28px 36px; }
  .plogo { min-width: 120px; transform: scale(.85); }
  .demo-pill { width: 42px; height: 42px; padding: 0; justify-content: center; font-size: 0; left: 12px; bottom: 12px; opacity: .92; }
  .demo-pill .ico { width: 20px; height: 20px; }
}

/* <640 · mobile portrait (down to 320px) */
@media (max-width: 639.98px) {
  .topbar { padding: 0 8px; gap: 4px; }
  .topbar-right { gap: 4px; }
  .topbar .icon-btn { width: 38px; height: 38px; }
  .brand-logo { width: 36px; height: 36px; }
  .pill { padding: 0 12px; font-size: 13px; }
  .pill-store { width: 38px; padding: 0; justify-content: center; } /* Store shrinks to its bag icon */
  .pill-store span { display: none; }
  .pill-store .ico { display: block; }
  .user-btn > .ico { display: none; }
  .slider-track { grid-auto-columns: 74%; }
  .grid-2, .grid-3, .grid-4, .form-grid, .info-list { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span-2 { grid-column: auto; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .kpis, .stat-grid { gap: 12px; }
  .kpi { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .kpi-icon { width: 36px; height: 36px; border-radius: 10px; }
  .kpi-num { font-size: 20px; }
  .stat-card { padding: 14px; }
  .stat-card .v { font-size: 24px; }
  .video-row { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
  .list-row, .section-status { flex-wrap: wrap; }
  .list-row > .row, .section-status > div:first-child { flex: 1 1 200px; min-width: 0; }
  .mail-paper-body { padding: 18px; }
  .mail-details, .mail-details tbody, .mail-details tr, .mail-details td { display: block; }
  .mail-details td:first-child { width: auto; padding-bottom: 0; border-bottom: 0; font-size: 12px; }
  .mail-details td:last-child { padding-top: 2px; }
}

/* Short screens: a phone on its side is only ~375–430px tall */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --header-h: 56px; }
  .brand-logo { width: 38px; height: 38px; }
  .hero-frame { aspect-ratio: auto; height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); min-height: 280px; }
  .store-hero { min-height: 0; padding: 32px 0; }
  .admin-top { height: 52px; }
  .drawer-head { height: 110px; }
  .drawer-head img { width: 76px; height: 76px; }
  .drawer-link, .drawer-group-btn { padding: 14px 16px; }
  .modal-backdrop { padding: 12px 16px; }
  .modal-head { padding: 12px 16px 10px; }
  .modal-body { padding: 14px 16px; }
  .modal-foot { padding: 10px 16px 12px; }
}
