/* =====================================================================
   DREAM FITNESS — Luxury Dark Theme
   Nền than, điểm nhấn cam cháy và vàng chanh. Chuyển động tối giản.
   ===================================================================== */

:root,
[data-bs-theme="dark"] {
  --df-bg: #151515;
  --df-bg-2: #19191b;
  --df-surface: #212124;
  --df-surface-2: #262629;
  --df-surface-3: #222226;
  --df-line: rgba(255, 255, 255, 0.07);
  --df-line-2: rgba(255, 255, 255, 0.12);
  --df-text: #f5f3ef;
  --df-text-2: #c5beb1;
  --df-muted: #bab7b3;
  --df-gold: #ec792f;
  --df-gold-2: #f49559;
  --df-gold-3: #a24a23;
  --df-gold-soft: rgba(236, 121, 47, 0.12);
  --df-gold-line: rgba(236, 121, 47, 0.35);
  --df-success: #63bb8d;
  --df-warning: #e3a93f;
  --df-danger: #e36c66;
  --df-info: #72aad2;
  --df-radius: 16px;
  --df-radius-sm: 10px;
  --df-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.8);
  --df-font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --df-display: var(--df-font);
  --df-sidebar-w: 268px;

  --bs-body-bg: var(--df-bg);
  --bs-body-color: var(--df-text);
  --bs-body-font-family: var(--df-font);
  --bs-body-font-size: 0.935rem;
  --bs-body-line-height: 1.6;
  --bs-emphasis-color: #fff;
  --bs-secondary-color: var(--df-muted);
  --bs-secondary-bg: var(--df-surface-2);
  --bs-tertiary-bg: var(--df-surface);
  --bs-border-color: var(--df-line-2);
  --bs-border-color-translucent: var(--df-line);
  --bs-primary: var(--df-gold);
  --bs-primary-rgb: 236, 121, 47;
  --bs-link-color: var(--df-gold-2);
  --bs-link-color-rgb: 244, 149, 89;
  --bs-link-hover-color: #ffbe94;
  --bs-link-hover-color-rgb: 255, 190, 148;
  --bs-heading-color: #f4efe6;
  --bs-border-radius: 10px;
  --bs-border-radius-lg: 16px;
  --bs-focus-ring-color: rgba(236, 121, 47, 0.35);
  --bs-success-rgb: 99, 187, 141;
  --bs-danger-rgb: 227, 108, 102;
  --bs-warning-rgb: 227, 169, 63;
  --bs-info-rgb: 114, 170, 210;
}

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1200px 600px at -10% -10%, rgba(236, 121, 47, 0.06), transparent 60%),
    radial-gradient(900px 500px at 110% 0%, rgba(236, 121, 47, 0.035), transparent 60%),
    var(--df-bg);
  background-attachment: fixed;
  color: var(--df-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(236, 121, 47, 0.35); color: #fff; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -0.01em; }
.font-display { font-family: var(--df-display); letter-spacing: 0; }
.text-gold { color: var(--df-gold-2) !important; }
.text-muted-df { color: var(--df-muted) !important; }
.text-soft { color: var(--df-text-2) !important; }
.xsmall { font-size: 0.75rem; }
.min-w-0 { min-width: 0; }
.tabular { font-variant-numeric: tabular-nums; }
.divider { height: 1px; background: var(--df-line); margin: 1.25rem 0; }
a { text-decoration: none; }
a:hover { text-decoration: none; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--df-gold); color: #111; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--df-gold); outline-offset: 2px; }

/* ---------- Nút ---------- */
.btn { --bs-btn-font-weight: 500; --bs-btn-border-radius: 999px; --bs-btn-padding-x: 1.1rem; --bs-btn-padding-y: 0.5rem; transition: background-color 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s; }
.btn-sm { --bs-btn-padding-x: 0.85rem; --bs-btn-padding-y: 0.32rem; --bs-btn-font-size: 0.82rem; }
.btn-lg { --bs-btn-padding-x: 1.6rem; --bs-btn-padding-y: 0.75rem; --bs-btn-font-size: 1rem; }
.btn-gold {
  background: linear-gradient(135deg, #f6a66b 0%, #ec792f 55%, #cb6024 100%);
  color: #17130b; border: 0; font-weight: 600;
  box-shadow: 0 6px 20px -10px rgba(236, 121, 47, 0.7);
}
.btn-gold:hover, .btn-gold:focus-visible { color: #0f0c07; background: linear-gradient(135deg, #ffbe94 0%, #f58c48 55%, #d86728 100%); }
.btn-gold:disabled { opacity: 0.55; color: #17130b; }
.btn-outline-gold { --bs-btn-color: var(--df-gold-2); --bs-btn-border-color: var(--df-gold-line); --bs-btn-hover-bg: var(--df-gold-soft); --bs-btn-hover-color: #ffbe94; --bs-btn-hover-border-color: var(--df-gold); --bs-btn-active-bg: var(--df-gold-soft); --bs-btn-active-color: #ffbe94; --bs-btn-active-border-color: var(--df-gold); }
.btn-ghost { --bs-btn-color: var(--df-text-2); --bs-btn-border-color: var(--df-line-2); --bs-btn-hover-bg: var(--df-surface-3); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--df-line-2); --bs-btn-active-bg: var(--df-surface-3); --bs-btn-active-border-color: var(--df-line-2); }
.btn-danger-soft { --bs-btn-color: #f0928d; --bs-btn-border-color: rgba(227, 108, 102, 0.35); --bs-btn-hover-bg: rgba(227, 108, 102, 0.12); --bs-btn-hover-color: #ffb3ae; --bs-btn-hover-border-color: rgba(227, 108, 102, 0.6); }
.btn-success-soft { --bs-btn-color: #8fd5b0; --bs-btn-border-color: rgba(99, 187, 141, 0.35); --bs-btn-hover-bg: rgba(99, 187, 141, 0.12); --bs-btn-hover-color: #b5ecce; --bs-btn-hover-border-color: rgba(99, 187, 141, 0.6); }
.btn-icon { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 12px; color: var(--df-text-2); background: transparent; border: 1px solid transparent; }
.btn-icon:hover { background: var(--df-surface-3); color: #fff; border-color: var(--df-line); }

/* ---------- Form ---------- */
.form-label { font-size: 0.82rem; font-weight: 500; color: var(--df-text-2); margin-bottom: 0.35rem; }
.form-control, .form-select {
  background-color: var(--df-bg-2); border-color: var(--df-line-2); color: var(--df-text);
  border-radius: 10px; padding: 0.56rem 0.85rem; font-size: 0.92rem;
}
.form-control::placeholder { color: #6a655d; }
.form-control:focus, .form-select:focus { background-color: var(--df-bg-2); border-color: var(--df-gold); color: #fff; box-shadow: 0 0 0 0.22rem rgba(236, 121, 47, 0.16); }
.form-control-sm, .form-select-sm { padding: 0.36rem 0.7rem; font-size: 0.84rem; }
.form-control:disabled, .form-control[readonly] { background-color: var(--df-surface); color: var(--df-muted); }
.form-text { color: var(--df-muted); font-size: 0.78rem; }
.form-check-input { background-color: var(--df-bg-2); border-color: var(--df-line-2); }
.form-check-input:checked { background-color: var(--df-gold); border-color: var(--df-gold); }
.form-check-input:focus { box-shadow: 0 0 0 0.2rem rgba(236, 121, 47, 0.18); border-color: var(--df-gold); }
.input-group-text { background: var(--df-surface-2); border-color: var(--df-line-2); color: var(--df-muted); }
.form-select { --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23c9a24a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
input[type="date"]::-webkit-calendar-picker-indicator, input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(0.75) sepia(0.6) saturate(3) hue-rotate(5deg); cursor: pointer; }
.req::after { content: " *"; color: var(--df-gold); }

/* ---------- Khung ứng dụng ---------- */
.app-shell { display: flex; min-height: 100vh; }
.app-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.sidebar { --bs-offcanvas-width: 282px; --bs-offcanvas-bg: #0c0c0e; --bs-offcanvas-border-color: var(--df-line); display: flex; flex-direction: column; }
@media (min-width: 992px) {
  .sidebar { position: sticky; top: 0; height: 100vh; width: var(--df-sidebar-w); flex: 0 0 var(--df-sidebar-w); background: #0c0c0e !important; border-right: 1px solid var(--df-line); }
}
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; padding: 22px 20px 18px; border-bottom: 1px solid var(--df-line); }
.brand-mark { border-radius: 11px; flex-shrink: 0; }
.brand-mark.brand-lg { width: 54px; height: 54px; }
.brand-name { display: block; font-family: var(--df-display); font-size: 1.12rem; color: #f4efe6; line-height: 1.1; letter-spacing: 0.02em; }
.brand-sub { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--df-gold); margin-top: 3px; }
.sidebar-nav { flex: 1 1 auto; overflow-y: auto; padding: 10px 12px 18px; scrollbar-width: thin; scrollbar-color: #2a2a2e transparent; }
.nav-section { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.18em; color: #6e695f; padding: 16px 12px 6px; }
.nav-link-df { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin: 1px 0; border-radius: 10px; color: var(--df-text-2); font-size: 0.9rem; transition: background-color 0.15s, color 0.15s; }
.nav-link-df i { font-size: 1.05rem; color: #7f796f; width: 20px; text-align: center; transition: color 0.15s; }
.nav-link-df:hover { background: var(--df-surface-2); color: #fff; }
.nav-link-df:hover i { color: var(--df-gold-2); }
.nav-link-df.active { background: linear-gradient(90deg, rgba(236, 121, 47, 0.16), rgba(236, 121, 47, 0.04)); color: #f6e7c4; }
.nav-link-df.active i { color: var(--df-gold-2); }
.nav-link-df.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--df-gold); }
.nav-count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--df-gold); color: #17130b; font-size: 0.7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sidebar-foot { padding: 14px 16px; border-top: 1px solid var(--df-line); background: rgba(255, 255, 255, 0.015); }

.topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 10px 28px; background: rgba(10, 10, 11, 0.82); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--df-line); }
.topbar-title h1 { font-family: var(--df-display); font-weight: 600; font-size: 1.22rem; color: #f4efe6; }
.topbar-sub { font-size: 0.78rem; color: var(--df-muted); }
.topbar-search { position: relative; width: 260px; }
.topbar-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--df-muted); font-size: 0.85rem; }
.topbar-search .form-control { padding-left: 34px; border-radius: 999px; background: var(--df-surface); }
.content { padding: 28px; width: 100%; max-width: 1440px; margin: 0 auto; flex: 1 0 auto; }
.content-foot { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--df-line); font-size: 0.78rem; color: #66615a; }
@media (max-width: 575.98px) { .content { padding: 18px 14px; } .topbar { padding: 10px 14px; } }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }
.page-title { font-family: var(--df-display); font-size: 1.65rem; margin: 0; color: #f6f1e8; }
.page-sub { margin: 6px 0 0; color: var(--df-muted); font-size: 0.9rem; max-width: 720px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.section-title { font-family: var(--df-display); font-size: 1.15rem; color: #f4efe6; margin: 0; }
.eyebrow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.24em; color: var(--df-gold); font-weight: 600; }

/* ---------- Card ---------- */
.card-df { background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0)) , var(--df-surface); border: 1px solid var(--df-line); border-radius: var(--df-radius); padding: 22px; box-shadow: var(--df-shadow); }
.card-df + .card-df { margin-top: 0; }
.card-df.p-0 { padding: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head .section-title { font-size: 1.05rem; }
.card-pad { padding: 18px 22px; }
.card-gold { border-color: var(--df-gold-line); background: radial-gradient(500px 200px at 100% 0%, rgba(236, 121, 47, 0.12), transparent 70%), var(--df-surface); }
.kv { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 10px 16px; font-size: 0.9rem; margin: 0; }
.kv dt { color: var(--df-muted); font-weight: 400; }
.kv dd { margin: 0; color: var(--df-text); }

/* ---------- Thẻ thống kê ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 16px; }
.stat-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px 18px; background: var(--df-surface); border: 1px solid var(--df-line); border-radius: var(--df-radius); color: inherit; transition: border-color 0.18s, background-color 0.18s; }
a.stat-card:hover { border-color: var(--df-gold-line); background: var(--df-surface-2); color: inherit; }
.stat-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; background: var(--df-gold-soft); color: var(--df-gold-2); }
.stat-success .stat-icon { background: rgba(99, 187, 141, 0.12); color: #8fd5b0; }
.stat-warning .stat-icon { background: rgba(227, 169, 63, 0.13); color: #f0c26d; }
.stat-danger .stat-icon { background: rgba(227, 108, 102, 0.12); color: #f0928d; }
.stat-info .stat-icon { background: rgba(114, 170, 210, 0.12); color: #9ccbea; }
.stat-label { font-size: 0.78rem; color: var(--df-muted); }
.stat-value { font-size: 1.55rem; font-weight: 600; color: #fbf7ef; font-variant-numeric: tabular-nums; line-height: 1.25; margin-top: 2px; }
.stat-hint { font-size: 0.76rem; color: var(--df-text-2); margin-top: 2px; }

/* ---------- Bảng ---------- */
.table-df { --bs-table-bg: transparent; --bs-table-color: var(--df-text); --bs-table-hover-bg: rgba(255, 255, 255, 0.025); --bs-table-hover-color: #fff; --bs-table-border-color: var(--df-line); margin-bottom: 0; font-size: 0.89rem; }
.table-df > thead th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--df-muted); font-weight: 600; border-bottom: 1px solid var(--df-line-2); padding: 12px 14px; white-space: nowrap; background: transparent; }
.table-df > tbody td { padding: 13px 14px; vertical-align: middle; border-color: var(--df-line); }
.table-df > tbody tr:last-child td { border-bottom: 0; }
.table-df .cell-main { font-weight: 500; color: #f4efe6; }
.table-df .cell-sub { font-size: 0.78rem; color: var(--df-muted); }
.table-wrap { background: var(--df-surface); border: 1px solid var(--df-line); border-radius: var(--df-radius); overflow: hidden; }
.table-wrap .table-responsive { margin: 0; }
.table-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--df-line); }
.table-toolbar .form-control, .table-toolbar .form-select { max-width: 220px; }
.table-foot { padding: 12px 16px; border-top: 1px solid var(--df-line); }
.pager-info { font-size: 0.8rem; color: var(--df-muted); }
.pagination { --bs-pagination-bg: transparent; --bs-pagination-border-color: var(--df-line-2); --bs-pagination-color: var(--df-text-2); --bs-pagination-hover-bg: var(--df-surface-3); --bs-pagination-hover-color: #fff; --bs-pagination-hover-border-color: var(--df-line-2); --bs-pagination-active-bg: var(--df-gold); --bs-pagination-active-border-color: var(--df-gold); --bs-pagination-active-color: #17130b; --bs-pagination-disabled-bg: transparent; --bs-pagination-disabled-color: #55514b; --bs-pagination-disabled-border-color: var(--df-line); --bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(236, 121, 47, 0.2); }
.row-link { color: inherit; }
.row-link:hover .cell-main { color: var(--df-gold-2); }

/* ---------- Nhãn trạng thái ---------- */
.badge-soft { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 500; white-space: nowrap; border: 1px solid transparent; line-height: 1.5; }
.badge-soft::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.9; }
.badge-success { background: rgba(99, 187, 141, 0.11); color: #93d8b3; border-color: rgba(99, 187, 141, 0.22); }
.badge-warning { background: rgba(227, 169, 63, 0.11); color: #f2c674; border-color: rgba(227, 169, 63, 0.24); }
.badge-danger { background: rgba(227, 108, 102, 0.11); color: #f3a19c; border-color: rgba(227, 108, 102, 0.24); }
.badge-info { background: rgba(114, 170, 210, 0.11); color: #a7d1ee; border-color: rgba(114, 170, 210, 0.24); }
.badge-muted { background: rgba(255, 255, 255, 0.05); color: #a39d92; border-color: var(--df-line); }
.badge-gold { background: var(--df-gold-soft); color: var(--df-gold-2); border-color: var(--df-gold-line); }
.badge-gold::before, .badge-plain::before { display: none; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 0.74rem; background: var(--df-surface-3); color: var(--df-text-2); border: 1px solid var(--df-line); font-variant-numeric: tabular-nums; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; color: var(--df-gold-2); }

/* ---------- Avatar ---------- */
.avatar { display: inline-grid; place-items: center; border-radius: 50%; flex-shrink: 0; font-weight: 600; color: #f5e4bd; background: linear-gradient(145deg, #2b2416, #17140e); box-shadow: inset 0 0 0 1px var(--df-gold-line); overflow: hidden; letter-spacing: 0.02em; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xs { width: 26px; height: 26px; font-size: 0.62rem; }
.avatar-sm { width: 34px; height: 34px; font-size: 0.74rem; }
.avatar-md { width: 42px; height: 42px; font-size: 0.86rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.2rem; }
.avatar-xl { width: 96px; height: 96px; font-size: 1.7rem; }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }

/* ---------- Alerts, modal, dropdown, tabs ---------- */
.alert-df { border-radius: 12px; border: 1px solid; font-size: 0.9rem; padding: 0.8rem 1rem; }
.alert-df.alert-success { background: rgba(99, 187, 141, 0.09); border-color: rgba(99, 187, 141, 0.3); color: #b5e6cb; }
.alert-df.alert-danger { background: rgba(227, 108, 102, 0.09); border-color: rgba(227, 108, 102, 0.3); color: #f6c0bc; }
.alert-df.alert-warning { background: rgba(227, 169, 63, 0.09); border-color: rgba(227, 169, 63, 0.3); color: #f5d498; }
.alert-df.alert-info { background: rgba(114, 170, 210, 0.08); border-color: rgba(114, 170, 210, 0.28); color: #c3def1; }
.alert-df .btn-close { padding: 1rem; }
.modal { --bs-modal-bg: var(--df-surface); --bs-modal-border-color: var(--df-line-2); --bs-modal-border-radius: 18px; --bs-modal-header-border-color: var(--df-line); --bs-modal-footer-border-color: var(--df-line); }
.modal-title { font-family: var(--df-display); font-size: 1.2rem; }
.modal-backdrop { --bs-backdrop-opacity: 0.72; }
.dropdown-menu { --bs-dropdown-bg: var(--df-surface-2); --bs-dropdown-border-color: var(--df-line-2); --bs-dropdown-link-hover-bg: var(--df-surface-3); --bs-dropdown-link-active-bg: var(--df-gold-soft); --bs-dropdown-link-active-color: var(--df-gold-2); border-radius: 12px; }
.nav-tabs-df { display: flex; gap: 4px; border-bottom: 1px solid var(--df-line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.nav-tabs-df a { padding: 10px 14px; color: var(--df-muted); border-bottom: 2px solid transparent; white-space: nowrap; font-size: 0.9rem; margin-bottom: -1px; }
.nav-tabs-df a:hover { color: #fff; }
.nav-tabs-df a.active { color: var(--df-gold-2); border-bottom-color: var(--df-gold); }
.nav-tabs-df .count { font-size: 0.72rem; color: var(--df-muted); margin-left: 4px; }
.accordion { --bs-accordion-bg: transparent; --bs-accordion-border-color: var(--df-line); --bs-accordion-btn-bg: transparent; --bs-accordion-active-bg: transparent; --bs-accordion-active-color: var(--df-gold-2); --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-color: var(--df-text-2); }
.accordion-button { font-weight: 500; color: #f1ece3; }
.progress { --bs-progress-bg: var(--df-surface-3); --bs-progress-height: 8px; --bs-progress-border-radius: 99px; }
.progress-bar { background: linear-gradient(90deg, #cb6024, #f49559); }
.list-df { list-style: none; padding: 0; margin: 0; }
.list-df > li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--df-line); }
.list-df > li:last-child { border-bottom: 0; }
.list-df > li > :first-child { min-width: 0; }
.list-df > li > :last-child:not(:first-child) { flex-shrink: 0; white-space: nowrap; }
.stars { color: var(--df-gold); letter-spacing: 1px; font-size: 0.85rem; white-space: nowrap; }
.empty-state { text-align: center; padding: 42px 20px; }
.empty-icon { width: 58px; height: 58px; border-radius: 16px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--df-gold-soft); color: var(--df-gold-2); font-size: 1.5rem; }
.empty-title { font-weight: 600; color: #f1ece3; }
.empty-text { color: var(--df-muted); font-size: 0.88rem; margin: 6px auto 14px; max-width: 420px; }
.chart-box { position: relative; height: 280px; }
.chart-box.sm { height: 220px; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--df-line-2); }
.timeline li { position: relative; padding: 0 0 18px 28px; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--df-bg); border: 2px solid var(--df-gold); }
.timeline li.muted::before { border-color: #5a554e; }

/* ---------- Trang đăng nhập / lỗi ---------- */
.auth-page { min-height: 100vh; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 460px; background: var(--df-surface); border: 1px solid var(--df-line); border-radius: 22px; padding: 40px 36px; box-shadow: var(--df-shadow); }
.auth-split { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-art { position: relative; overflow: hidden; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--df-line);
  background: radial-gradient(700px 420px at 20% 20%, rgba(236, 121, 47, 0.18), transparent 65%), radial-gradient(600px 400px at 90% 100%, rgba(236, 121, 47, 0.1), transparent 60%), #0c0c0e; }
.auth-art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 75%); pointer-events: none; }
.auth-art > * { position: relative; z-index: 1; }
.auth-quote { font-family: var(--df-display); font-size: clamp(1.9rem, 3.2vw, 2.9rem); line-height: 1.2; color: #f6efe2; max-width: 520px; }
.auth-quote em { color: var(--df-gold-2); font-style: italic; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form { width: 100%; max-width: 420px; }
.demo-accounts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-acc { text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--df-surface); border: 1px solid var(--df-line); color: var(--df-text-2); font-size: 0.8rem; cursor: pointer; transition: border-color 0.15s; }
.demo-acc:hover, .demo-acc:focus-visible { border-color: var(--df-gold-line); color: #fff; }
.demo-acc b { display: block; color: #f4efe6; font-weight: 600; font-size: 0.84rem; }
.error-code { font-family: var(--df-display); font-size: 4.2rem; line-height: 1; color: var(--df-gold-2); margin-bottom: 8px; }
.error-detail { text-align: left; white-space: pre-wrap; font-size: 0.75rem; color: #f3a19c; background: rgba(227, 108, 102, 0.07); border: 1px solid rgba(227, 108, 102, 0.2); border-radius: 10px; padding: 10px 12px; max-height: 180px; overflow: auto; }
@media (max-width: 991.98px) { .auth-split { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* ---------- Check-in ---------- */
.scan-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; }
@media (max-width: 991.98px) { .scan-panel { grid-template-columns: 1fr; } }
#qr-reader { width: 100%; border-radius: 14px; overflow: hidden; background: #050506; border: 1px solid var(--df-line-2) !important; min-height: 260px; }
#qr-reader video { border-radius: 14px; }
#qr-reader__dashboard_section_csr button, #qr-reader button { background: var(--df-surface-3); color: var(--df-text); border: 1px solid var(--df-line-2); border-radius: 999px; padding: 6px 14px; margin: 6px 4px; font-size: 0.85rem; }
#qr-reader select { background: var(--df-bg-2); color: var(--df-text); border: 1px solid var(--df-line-2); border-radius: 8px; padding: 4px 8px; }
#qr-reader__dashboard_section_swaplink { color: var(--df-gold-2) !important; }
.scan-result { border-radius: 18px; padding: 26px; border: 1px solid var(--df-line-2); background: var(--df-surface); min-height: 100%; display: flex; flex-direction: column; justify-content: center; }
.scan-result.ok { border-color: rgba(99, 187, 141, 0.55); background: radial-gradient(500px 220px at 0% 0%, rgba(99, 187, 141, 0.14), transparent 70%), var(--df-surface); }
.scan-result.denied { border-color: rgba(227, 108, 102, 0.55); background: radial-gradient(500px 220px at 0% 0%, rgba(227, 108, 102, 0.14), transparent 70%), var(--df-surface); }
.scan-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; }
.ok .scan-icon { background: rgba(99, 187, 141, 0.15); color: #8fd5b0; }
.denied .scan-icon { background: rgba(227, 108, 102, 0.15); color: #f0928d; }
.scan-title { font-family: var(--df-display); font-size: 1.7rem; margin: 0; }
.kiosk-mode .sidebar, .kiosk-mode .topbar, .kiosk-mode .content-foot, .kiosk-mode .hide-kiosk { display: none !important; }
.kiosk-mode .content { max-width: 1200px; padding-top: 40px; }

/* ---------- Thẻ hội viên ---------- */
.member-card { position: relative; overflow: hidden; border-radius: 22px; padding: 26px; color: #f6efe2; border: 1px solid var(--df-gold-line);
  background: radial-gradient(420px 220px at 100% 0%, rgba(236, 121, 47, 0.32), transparent 65%), linear-gradient(145deg, #1c1912, #0f0e0b 60%, #16130d); box-shadow: 0 30px 60px -30px rgba(236, 121, 47, 0.35); }
.member-card::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(244, 149, 89, 0.18); box-shadow: 0 0 0 26px rgba(244, 149, 89, 0.04), 0 0 0 54px rgba(244, 149, 89, 0.025); }
.member-card > * { position: relative; z-index: 1; }
.member-card .mc-name { font-family: var(--df-display); font-size: 1.5rem; }
.member-card .mc-label { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(246, 239, 226, 0.55); }
.member-card .mc-value { font-weight: 600; font-variant-numeric: tabular-nums; }
.qr-box { background: #fff; padding: 14px; border-radius: 16px; display: inline-block; line-height: 0; }
.qr-box img, .qr-box canvas { width: 220px !important; height: 220px !important; }
.days-ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--df-gold) calc(var(--p) * 1%), var(--df-surface-3) 0); position: relative; }
.days-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--df-surface); }
.days-ring > div { position: relative; text-align: center; }
.days-ring .num { font-size: 2rem; font-weight: 600; line-height: 1; color: #fbf7ef; font-variant-numeric: tabular-nums; }
.days-ring .lbl { font-size: 0.72rem; color: var(--df-muted); }

/* ---------- Gói tập ---------- */
.pkg-card { position: relative; height: 100%; display: flex; flex-direction: column; padding: 26px 24px; border-radius: 20px; background: var(--df-surface); border: 1px solid var(--df-line); transition: border-color 0.2s; }
.pkg-card:hover { border-color: var(--df-gold-line); }
.pkg-card.featured { border-color: var(--df-gold-line); background: radial-gradient(400px 200px at 50% 0%, rgba(236, 121, 47, 0.14), transparent 70%), var(--df-surface); }
.pkg-ribbon { position: absolute; top: 18px; right: 18px; }
.pkg-name { font-family: var(--df-display); font-size: 1.35rem; color: #f6f0e5; margin: 0; }
.pkg-price { font-size: 1.9rem; font-weight: 600; color: var(--df-gold-2); font-variant-numeric: tabular-nums; margin: 14px 0 2px; line-height: 1.1; }
.pkg-price small { font-size: 0.85rem; color: var(--df-muted); font-weight: 400; }
.pkg-features { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; }
.pkg-features li { display: flex; gap: 10px; padding: 6px 0; color: var(--df-text-2); font-size: 0.9rem; }
.pkg-features li i { color: var(--df-gold); margin-top: 2px; }
.pkg-option { display: block; cursor: pointer; }
.pkg-option input { position: absolute; opacity: 0; }
.pkg-option .pkg-card { padding: 18px; }
.pkg-option input:checked + .pkg-card { border-color: var(--df-gold); box-shadow: 0 0 0 1px var(--df-gold) inset; }
.pkg-option input:focus-visible + .pkg-card { outline: 2px solid var(--df-gold); outline-offset: 2px; }

/* ---------- Đặt lịch ---------- */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; }
.slot label { display: block; text-align: center; padding: 9px 6px; border-radius: 10px; border: 1px solid var(--df-line-2); background: var(--df-bg-2); cursor: pointer; font-variant-numeric: tabular-nums; font-size: 0.88rem; transition: border-color 0.15s, background-color 0.15s; }
.slot label:hover { border-color: var(--df-gold-line); }
.slot input:checked + label { background: var(--df-gold-soft); border-color: var(--df-gold); color: var(--df-gold-2); font-weight: 600; }
.slot input:focus-visible + label { outline: 2px solid var(--df-gold); outline-offset: 2px; }
.slot input:disabled + label { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.trainer-pick { display: block; cursor: pointer; }
.trainer-pick input { position: absolute; opacity: 0; }
.trainer-pick .tp-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--df-line); background: var(--df-bg-2); transition: border-color 0.15s; }
.trainer-pick input:checked + .tp-card { border-color: var(--df-gold); background: var(--df-gold-soft); }
.trainer-pick input:focus-visible + .tp-card { outline: 2px solid var(--df-gold); outline-offset: 2px; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 991.98px) { .week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.day-col { background: var(--df-surface); border: 1px solid var(--df-line); border-radius: 14px; padding: 12px; min-height: 140px; }
.day-col.today { border-color: var(--df-gold-line); }
.day-col h6 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--df-muted); margin-bottom: 8px; }
.session-chip { display: block; padding: 8px 10px; border-radius: 10px; background: var(--df-surface-2); border-left: 3px solid var(--df-gold); margin-bottom: 6px; font-size: 0.8rem; color: var(--df-text); }
.session-chip.pending { border-left-color: var(--df-warning); }
.session-chip.completed { border-left-color: var(--df-success); opacity: 0.8; }

/* ---------- Thành tích ---------- */
.badge-tile { position: relative; padding: 20px 16px; text-align: center; border-radius: 18px; background: var(--df-surface); border: 1px solid var(--df-line); height: 100%; }
.badge-tile .medal { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: #2a2112; background: linear-gradient(145deg, #ffbe94, #ec792f 60%, #98441e); box-shadow: 0 10px 24px -12px rgba(236, 121, 47, 0.9); }
.badge-tile.tier-bronze .medal { background: linear-gradient(145deg, #f0c9a4, #b8784a 60%, #7a4a2a); }
.badge-tile.tier-silver .medal { background: linear-gradient(145deg, #f2f2f2, #b6b6b6 60%, #777); }
.badge-tile.tier-platinum .medal { background: linear-gradient(145deg, #e9f3ff, #a9c3d9 60%, #6b8399); }
.badge-tile.locked .medal { background: var(--df-surface-3); color: #5d5850; box-shadow: none; }
.badge-tile.locked { opacity: 0.85; }
.badge-tile .bt-name { font-weight: 600; color: #f4efe6; font-size: 0.92rem; }
.badge-tile .bt-desc { font-size: 0.78rem; color: var(--df-muted); margin: 4px 0 10px; min-height: 2.4em; }
.rank-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: 0.8rem; border: 1px solid var(--df-gold-line); color: var(--df-gold-2); background: var(--df-gold-soft); }

/* ---------- Hỗ trợ (chat) ---------- */
.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 16px; background: var(--df-surface-2); border: 1px solid var(--df-line); }
.msg.mine { align-self: flex-end; background: rgba(236, 121, 47, 0.1); border-color: var(--df-gold-line); }
.msg .meta { font-size: 0.72rem; color: var(--df-muted); margin-bottom: 4px; }
.msg .body { white-space: pre-wrap; color: var(--df-text); font-size: 0.9rem; }

/* =====================================================================
   TRANG CÔNG KHAI (landing)
   ===================================================================== */
.public-nav { position: sticky; top: 0; z-index: 1030; background: rgba(10, 10, 11, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--df-line); }
.public-nav .navbar { padding: 14px 0; }
.public-nav .nav-link { color: var(--df-text-2); font-size: 0.9rem; padding: 0.4rem 0.9rem !important; }
.public-nav .nav-link:hover, .public-nav .nav-link:focus { color: var(--df-gold-2); }
.navbar-toggler { border-color: var(--df-line-2); }
.navbar-toggler:focus { box-shadow: 0 0 0 0.2rem rgba(236, 121, 47, 0.2); }
.container-df { max-width: 1200px; }
.hero { position: relative; overflow: hidden; padding: 110px 0 96px; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 520px at 78% 30%, rgba(236, 121, 47, 0.17), transparent 62%), radial-gradient(600px 400px at 10% 90%, rgba(236, 121, 47, 0.07), transparent 60%); pointer-events: none; }
.hero-lines { position: absolute; right: -120px; top: 50%; width: 720px; height: 720px; transform: translateY(-50%); pointer-events: none; opacity: 0.65; }
.hero-title { font-family: var(--df-display); font-weight: 500; font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.07; color: #f7f1e6; letter-spacing: -0.01em; }
.hero-title em { font-style: italic; color: var(--df-gold-2); }
.hero-lead { font-size: 1.08rem; color: var(--df-text-2); max-width: 560px; line-height: 1.75; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 52px; }
.hero-stats .n { font-family: var(--df-display); font-size: 2.1rem; color: #f7f1e6; line-height: 1; }
.hero-stats .l { font-size: 0.8rem; color: var(--df-muted); margin-top: 8px; }
.section { padding: 96px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0)); border-top: 1px solid var(--df-line); border-bottom: 1px solid var(--df-line); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-family: var(--df-display); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: #f6f0e5; margin: 12px 0 14px; line-height: 1.15; }
.section-head p { color: var(--df-text-2); font-size: 1rem; margin: 0; }
.feature { padding: 26px; border-radius: 18px; border: 1px solid var(--df-line); background: var(--df-surface); height: 100%; }
.feature i { font-size: 1.5rem; color: var(--df-gold-2); }
.feature h3 { font-size: 1.05rem; margin: 16px 0 8px; color: #f4efe6; }
.feature p { color: var(--df-muted); font-size: 0.9rem; margin: 0; }
.trainer-card { border-radius: 20px; overflow: hidden; border: 1px solid var(--df-line); background: var(--df-surface); height: 100%; }
.trainer-card .tc-top { height: 150px; display: grid; place-items: center; background: radial-gradient(300px 160px at 50% 110%, rgba(236, 121, 47, 0.28), transparent 70%), linear-gradient(180deg, #17150f, #0f0f10); border-bottom: 1px solid var(--df-line); }
.trainer-card .tc-body { padding: 20px 20px 22px; }
.trainer-card h3 { font-family: var(--df-display); font-size: 1.2rem; margin: 0 0 4px; color: #f6f0e5; }
.review-card { padding: 24px; border-radius: 18px; border: 1px solid var(--df-line); background: var(--df-surface); height: 100%; display: flex; flex-direction: column; }
.review-card blockquote { color: var(--df-text-2); font-size: 0.95rem; line-height: 1.7; margin: 14px 0 18px; flex: 1; }
.cta-band { border-radius: 26px; padding: 56px 48px; border: 1px solid var(--df-gold-line); background: radial-gradient(600px 300px at 100% 0%, rgba(236, 121, 47, 0.2), transparent 65%), linear-gradient(145deg, #17140d, #0e0e0f); }
.cta-band h2 { font-family: var(--df-display); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.5rem); color: #f7f1e6; }
.public-footer { border-top: 1px solid var(--df-line); padding: 56px 0 32px; color: var(--df-muted); font-size: 0.88rem; }
.public-footer h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--df-gold); margin-bottom: 14px; font-weight: 600; }
.public-footer a { color: var(--df-text-2); }
.public-footer a:hover { color: var(--df-gold-2); }
.fade-up { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.in { opacity: 1; transform: none; }
@media (max-width: 767.98px) { .hero { padding: 72px 0 64px; } .section { padding: 68px 0; } .cta-band { padding: 36px 24px; } .hero-stats { gap: 26px; } }

/* ---------- Giảm chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .fade-up { opacity: 1; transform: none; }
}

/* ---------- In ấn (hóa đơn) ---------- */
@media print {
  body { background: #fff !important; color: #111 !important; }
  .sidebar, .topbar, .content-foot, .no-print, .alert-df { display: none !important; }
  .content { padding: 0 !important; max-width: none; }
  .card-df { box-shadow: none !important; border: 1px solid #ccc !important; background: #fff !important; color: #111 !important; }
  .card-df * { color: #111 !important; }
}

/* Không xuống dòng cho nút và số tiền trong bảng */
.table-df .btn { white-space: nowrap; }
.table-df .tabular { white-space: nowrap; }

/* Thẻ thống kê gọn hơn trên điện thoại */
@media (max-width: 575.98px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { flex-direction: column; gap: 10px; padding: 14px; }
  .stat-icon { width: 36px; height: 36px; font-size: 1rem; }
  .stat-value { font-size: 1.2rem; }
  .page-title { font-size: 1.4rem; }
  .card-df { padding: 18px; }
}
