/* =================================================================
   Revive Spin Studio — booking platform UI styles
   Built 2026-06-02. Reuses the brand variables from style.css.
   ================================================================= */

:root {
  --bg-deep: #0A0A0A;
  --bg-card: #16161a;
  --bg-elev: #1d1d22;
  --border: #2a2a32;
  --purple: #7B2CBF;
  --purple-light: #9D4EDD;
  --orange: #FF6B35;
  --gold: #FFD60A;
  --text: #f4f4f6;
  --text-mute: #9ca3af;
  --text-dim: #6b7280;
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --warn: #f59e0b;
  --warn-bg: rgba(245, 158, 11, 0.12);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.12);
}

/* ===== APP SHELL ===== */
.app-body { background: var(--bg-deep); color: var(--text); font-family: 'Inter', -apple-system, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
.app-header { background: rgba(10,10,10,0.95); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(8px); }
.app-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 24px; }
.app-logo img { display: block; height: 52px; width: auto; filter: drop-shadow(0 2px 6px rgba(123,44,191,0.4)); }
.app-nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.app-nav-links a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.94rem; transition: color .15s; }
.app-nav-links a:hover { color: var(--orange); }
.app-nav-links .app-cta { background: linear-gradient(135deg, #7B2CBF 0%, #B23A92 35%, #E14E5C 68%, #FF6B35 100%); color: #fff; padding: 8px 18px; border-radius: 999px; font-weight: 700; }
.app-nav-links .app-cta:hover { color: #fff; opacity: 0.9; }
.app-nav-links .app-admin-link { color: var(--gold); }
.app-nav-links .app-logout { color: var(--text-mute); font-size: 0.85rem; }
@media (max-width: 720px) {
  .app-nav-links { gap: 12px; font-size: 0.86rem; }
  .app-nav-links .app-cta { padding: 6px 14px; }
  .app-logo img { height: 42px; }
}

.app-main { flex: 1; padding: 36px 0 80px; }
.app-main .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.app-footer-bar { background: var(--bg-card); border-top: 1px solid var(--border); padding: 18px 0; color: var(--text-mute); font-size: 0.86rem; }
.app-footer-bar .container { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; align-items: center; }
.app-footer-bar a { color: var(--text-mute); text-decoration: none; }
.app-footer-bar a:hover { color: var(--orange); }

/* ===== PAGE TITLES ===== */
.page-title { font-family: 'Bebas Neue', sans-serif; font-size: 2.4rem; letter-spacing: 1px; color: var(--text); margin: 0 0 6px; }
.page-sub { color: var(--text-mute); margin: 0 0 28px; font-size: 1rem; }

/* ===== FLASH MESSAGES ===== */
.flash { padding: 14px 20px; border-radius: 10px; margin: 0 auto 18px; max-width: 1200px; font-weight: 500; }
.flash-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.flash-error { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
.flash-info { background: var(--info-bg); color: var(--info); border: 1px solid rgba(59,130,246,0.3); }

/* ===== CARDS ===== */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 24px 28px; margin-bottom: 22px; }
.card h2 { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 1px; margin: 0 0 14px; color: var(--text); }
.muted { color: var(--text-mute); }

/* ===== AUTH CARDS (centered, narrow) ===== */
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 36px 38px; max-width: 460px; margin: 30px auto 60px; box-shadow: 0 12px 40px rgba(0,0,0,0.35); }
.auth-card h1 { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: 1px; margin: 0 0 6px; }
.auth-sub { color: var(--text-mute); margin: 0 0 24px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 0.92rem; color: var(--text-mute); }
.auth-alt a { color: var(--orange); text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }

/* ===== FORMS ===== */
label { display: block; margin-bottom: 14px; font-size: 0.92rem; font-weight: 500; color: var(--text); }
input, input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=datetime-local], select, textarea {
  width: 100%; padding: 11px 14px; margin-top: 6px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 8px; color: var(--text);
  font-family: inherit; font-size: 1rem; box-sizing: border-box; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple-light); }
input:disabled { background: #0d0d10; color: var(--text-dim); cursor: not-allowed; }
textarea { resize: vertical; min-height: 80px; }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 540px) { .form-row.two-col { grid-template-columns: 1fr; } }
.form-check { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; cursor: pointer; }
.form-check input { width: auto; margin: 4px 0 0; flex-shrink: 0; }
.form-error { background: var(--danger-bg); color: var(--danger); padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; border: 1px solid rgba(239,68,68,0.3); }
.form-hint { color: var(--text-mute); font-size: 0.86rem; margin-top: 8px; text-align: center; }
.form-hint a, .form-row a { color: var(--orange); text-decoration: none; }
.form-inline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; }
.form-inline-grid input, .form-inline-grid select { margin-top: 0; }
.form-inline-grid button { height: 41px; }

/* ===== BUTTONS — defined in style.css; tweaks for app context ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; border: 0; cursor: pointer; text-decoration: none; transition: transform .12s, opacity .12s, box-shadow .12s; font-family: inherit; }
.btn-primary { background: linear-gradient(135deg, #7B2CBF 0%, #B23A92 35%, #E14E5C 68%, #FF6B35 100%); color: #fff; box-shadow: 0 6px 20px rgba(123,44,191,0.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(123,44,191,0.45); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--purple-light); color: var(--purple-light); }
.btn-link { background: transparent; color: var(--orange); padding: 4px 10px; font-weight: 600; }
.btn-link:hover { text-decoration: underline; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
button[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ===== BANNERS / EMPTY STATES ===== */
.banner { padding: 14px 20px; border-radius: 10px; margin-bottom: 18px; }
.banner-info { background: var(--info-bg); border: 1px solid rgba(59,130,246,0.3); color: var(--info); }
.banner-warn { background: var(--warn-bg); border: 1px solid rgba(245,158,11,0.3); color: var(--warn); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-mute); }
.empty-state i { font-size: 3rem; display: block; margin-bottom: 14px; opacity: 0.5; }

/* ===== SCHEDULE PAGE ===== */
.schedule-day { margin-bottom: 36px; }
.schedule-day-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 1px; color: var(--orange); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.schedule-row-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.class-pill { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; transition: transform .15s, border-color .15s; display: flex; flex-direction: column; gap: 8px; }
.class-pill:hover { transform: translateY(-2px); border-color: var(--purple-light); }
.class-pill.is-full { opacity: 0.7; }
.class-pill-time { font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; letter-spacing: 1px; color: var(--gold); }
.class-pill-name { font-size: 0.9rem; color: var(--text-mute); }
.class-pill-stat { font-size: 0.85rem; }
.left-label { color: var(--success); font-weight: 700; }
.full-label { background: var(--danger); color: #fff; padding: 2px 9px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.ok-label { color: var(--success); font-weight: 700; }

/* ===== BOOKING / DETAIL ROWS ===== */
.booking-detail { margin-bottom: 18px; }
.booking-detail-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.booking-detail-row:last-child { border-bottom: 0; }
.booking-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); gap: 10px; flex-wrap: wrap; }
.booking-row:last-child { border-bottom: 0; }
.booking-row > div:last-child { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.booking-row small { color: var(--text-mute); }

/* ===== PILLS ===== */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; text-transform: capitalize; }
.pill-ok { background: var(--success-bg); color: var(--success); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-muted { background: var(--bg-elev); color: var(--text-mute); }

/* ===== DASH GRID (member + admin) ===== */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 28px; }
.dash-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 6px; transition: transform .15s, border-color .15s; }
.dash-card:hover { transform: translateY(-3px); border-color: var(--purple-light); color: var(--text); }
.dash-card i { font-size: 1.6rem; color: var(--orange); margin-bottom: 6px; }
.dash-card strong { font-size: 1.05rem; }
.dash-card span { color: var(--text-mute); font-size: 0.9rem; }
.dash-card .big-num { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; color: var(--gold); }
.dash-card-cta { background: linear-gradient(135deg, #7B2CBF 0%, #B23A92 35%, #E14E5C 68%, #FF6B35 100%); border: 0; }
.dash-card-cta i, .dash-card-cta span { color: rgba(255,255,255,0.92); }

/* ===== PACKAGE GRID ===== */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.pkg-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 28px; text-align: center; }
.pkg-name { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; letter-spacing: 1px; color: var(--gold); margin: 0 0 8px; }
.pkg-price { font-family: 'Bebas Neue', sans-serif; font-size: 2.6rem; color: var(--text); margin: 4px 0 10px; }
.pkg-per { font-size: 0.9rem; color: var(--text-mute); font-family: 'Inter', sans-serif; margin-left: 4px; }
.pkg-desc { color: var(--text-mute); min-height: 38px; margin: 0 0 16px; }
.pkg-period select { margin-bottom: 14px; }

/* ===== ADMIN TABLES ===== */
.filters-bar { display: flex; gap: 14px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.filters-bar label { margin-bottom: 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th { text-align: left; background: var(--bg-elev); color: var(--text-mute); font-size: 0.78rem; padding: 10px 12px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; border-bottom: 1px solid var(--border); }
.data-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:hover td { background: rgba(123,44,191,0.04); }
.data-table small { color: var(--text-mute); }
.data-table a { color: var(--purple-light); text-decoration: none; }
.data-table a:hover { color: var(--orange); text-decoration: underline; }
.data-table code { background: var(--bg-elev); padding: 1px 6px; border-radius: 3px; font-size: 0.82rem; }

/* ===== FAMILY LIST ===== */
.family-list { list-style: none; padding: 0; margin: 0; }
.family-list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.family-list li:last-child { border-bottom: 0; }

@media (max-width: 540px) {
  .data-table { font-size: 0.8rem; }
  .data-table th, .data-table td { padding: 8px 6px; }
  .page-title { font-size: 1.9rem; }
  .auth-card { padding: 26px 22px; margin: 14px auto 40px; }
  .pkg-price { font-size: 2.1rem; }
}

/* ===== Admin / Staff layout — on-brand reskin 2026-06-04 ===== */
.admin-body{background:var(--bg);color:var(--text);margin:0;font-family:'Inter',sans-serif}
.admin-topbar{position:sticky;top:0;z-index:50;display:flex;align-items:center;gap:14px;height:60px;padding:0 18px;background:rgba(20,20,20,.92);backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}
.admin-brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-family:'Bebas Neue',sans-serif;font-size:1.35rem;letter-spacing:2px}
.admin-brand span{background:linear-gradient(135deg,var(--purple-light) 0%,var(--orange) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.admin-brand b{font-weight:400;color:var(--gold);-webkit-text-fill-color:var(--gold)}
.admin-topbar-right{margin-left:auto;display:flex;align-items:center;gap:12px}
.admin-whoami{color:var(--text-mute);font-size:.85rem}
.admin-toplink{color:var(--text-mute);text-decoration:none;font-size:1rem;padding:7px 10px;border-radius:8px;transition:.15s}
.admin-toplink:hover{background:var(--bg-3);color:#fff}
.admin-burger{display:none;background:none;border:0;color:#fff;font-size:1.2rem;cursor:pointer}
.admin-shell{display:flex;min-height:calc(100vh - 60px)}
.admin-sidebar{width:230px;flex:0 0 230px;background:var(--bg-2);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:16px 12px}
.admin-sidebar nav{display:flex;flex-direction:column;gap:4px}
.admin-sidebar nav a{display:flex;align-items:center;gap:13px;padding:11px 14px;border-radius:11px;color:var(--text-mute);text-decoration:none;font-size:.93rem;font-weight:600;letter-spacing:.2px;transition:.15s}
.admin-sidebar nav a i{width:18px;text-align:center;color:var(--purple-light);transition:.15s}
.admin-sidebar nav a:hover{background:var(--bg-3);color:#fff;transform:translateX(2px)}
.admin-sidebar nav a:hover i{color:var(--orange)}
.admin-sidebar nav a.active{background:linear-gradient(135deg, #7B2CBF 0%, #B23A92 35%, #E14E5C 68%, #FF6B35 100%);color:#fff;box-shadow:0 6px 20px var(--purple-glow)}
.admin-sidebar nav a.active i{color:#fff}
.admin-sidebar-foot{margin-top:auto;padding-top:14px;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:2px}
.admin-sidebar-foot a{color:var(--text-mute);font-size:.82rem;text-decoration:none;padding:8px 14px;transition:.15s}
.admin-sidebar-foot a:hover{color:var(--orange)}
.admin-main{flex:1;padding:26px 30px;max-width:1150px;width:100%}
.admin-main .page-title{color:#fff;font-family:'Bebas Neue',sans-serif}
.admin-backdrop{display:none}
@media(max-width:860px){
  .admin-burger{display:block}
  .admin-sidebar{position:fixed;top:60px;left:0;bottom:0;transform:translateX(-100%);transition:transform .2s ease;z-index:60}
  .admin-sidebar-open .admin-sidebar{transform:translateX(0)}
  .admin-sidebar-open .admin-backdrop{display:block;position:fixed;inset:60px 0 0 0;background:rgba(0,0,0,.55);z-index:55}
  .admin-main{padding:18px 14px}
}

/* Monthly-limit popup on booking — on-brand */
.limit-popup{position:relative;background:linear-gradient(135deg,rgba(123,44,191,.30),rgba(255,107,53,.22));border:1px solid var(--purple-light);border-radius:14px;padding:18px 20px 18px 24px;margin:16px 0;box-shadow:0 8px 30px var(--purple-glow);overflow:hidden}
.limit-popup::before{content:"";position:absolute;top:0;bottom:0;left:0;width:4px;background:linear-gradient(180deg,var(--purple-light),var(--orange))}
.limit-popup h3{color:var(--gold);font-family:'Bebas Neue',sans-serif;letter-spacing:1px;font-size:1.4rem;margin:0 0 6px}
.limit-popup p{color:var(--text);margin:0 0 4px}

/* ── Client calendar (Stage 3) — on-brand ─────────────────────── */
.cal{margin-top:8px}
.cal-months{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.cal-month{background:var(--bg-card);border:0;box-shadow:inset 0 0 0 1px var(--border);color:var(--text-mute);font-family:'Bebas Neue',sans-serif;letter-spacing:1px;font-size:1.1rem;padding:9px 20px;border-radius:999px;cursor:pointer;transition:transform .12s,box-shadow .12s,border-color .12s,color .12s}
.cal-month:hover{box-shadow:inset 0 0 0 1px var(--purple-light);color:#fff;transform:translateY(-1px)}
.cal-month.is-active{background:linear-gradient(135deg,#7B2CBF 0%,#B23A92 35%,#E14E5C 68%,#FF6B35 100%);color:#fff;box-shadow:0 6px 20px var(--purple-glow)}
.cal-days{display:flex;gap:10px;overflow-x:auto;padding:6px 2px 14px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.cal-day{position:relative;flex:0 0 auto;width:64px;background:var(--bg-card);border:0;box-shadow:inset 0 0 0 1px var(--border);border-radius:16px;color:var(--text);padding:11px 0 12px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px;transition:transform .12s,box-shadow .12s,border-color .12s}
.cal-day:hover{box-shadow:inset 0 0 0 1px var(--purple-light);transform:translateY(-2px)}
.cal-day.is-active{background:linear-gradient(150deg,#7B2CBF 0%,#B23A92 35%,#E14E5C 68%,#FF6B35 100%);box-shadow:0 8px 22px var(--purple-glow);transform:translateY(-2px)}
.cal-day.is-empty{opacity:.32}
.cal-day.is-empty:hover{transform:none;box-shadow:inset 0 0 0 1px var(--border)}
.cal-day-dow{font-size:.72rem;text-transform:uppercase;letter-spacing:1px;color:var(--orange);font-weight:700}
.cal-day.is-active .cal-day-dow{color:#fff}
.cal-day-num{font-family:'Bebas Neue',sans-serif;font-size:1.7rem;line-height:1;color:var(--gold)}
.cal-day.is-active .cal-day-num{color:#fff}
.cal-day-badge{position:absolute;top:-7px;right:-5px;background:var(--orange);color:#fff;font-size:.7rem;font-weight:800;min-width:19px;height:19px;border-radius:10px;display:flex;align-items:center;justify-content:center;padding:0 5px;box-shadow:0 3px 8px rgba(255,107,53,.5)}
.cal-panel-title{font-family:'Bebas Neue',sans-serif;letter-spacing:1px;font-size:1.5rem;margin:6px 0 14px;color:var(--orange);padding-bottom:8px;border-bottom:2px solid var(--border)}
.cal-panel-empty{padding:28px 0;text-align:center}
.class-pill-trainer{font-size:.8rem;color:var(--text-mute);margin-top:2px}
.class-pill-trainer i{color:var(--purple-light)}

/* ── Branded scrollbars (2026-06-04) ──────────────────────────── */
.app-body, .admin-body { scrollbar-width: thin; scrollbar-color: var(--purple) var(--bg-2); }
.app-body ::-webkit-scrollbar, .admin-body ::-webkit-scrollbar,
.app-body::-webkit-scrollbar, .admin-body::-webkit-scrollbar { width: 11px; height: 11px; }
.app-body ::-webkit-scrollbar-track, .admin-body ::-webkit-scrollbar-track,
.app-body::-webkit-scrollbar-track, .admin-body::-webkit-scrollbar-track { background: var(--bg-2); }
.app-body ::-webkit-scrollbar-thumb, .admin-body ::-webkit-scrollbar-thumb,
.app-body::-webkit-scrollbar-thumb, .admin-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--purple) 0%, var(--orange) 100%);
  border-radius: 999px; border: 2px solid var(--bg-2);
}
.app-body ::-webkit-scrollbar-thumb:hover, .admin-body ::-webkit-scrollbar-thumb:hover,
.app-body::-webkit-scrollbar-thumb:hover, .admin-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--purple-light) 0%, var(--orange-light, #FF8C42) 100%);
}
.app-body ::-webkit-scrollbar-corner, .admin-body ::-webkit-scrollbar-corner { background: var(--bg-2); }
/* horizontal day strip — slim gradient thumb, no track */
.cal-days { scrollbar-color: var(--purple) transparent; }
.cal-days::-webkit-scrollbar { height: 8px; }
.cal-days::-webkit-scrollbar-track { background: transparent; }
.cal-days::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--purple) 0%, var(--orange) 100%);
  border-radius: 999px; border: 0;
}

/* Profile dashboard tiles (2026-06-04) */
.dash-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:24px; }
@media (max-width:900px){ .dash-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .dash-grid{ grid-template-columns:1fr; } }

/* 2026-06-05 credit balance badge in nav */
.nav-credit-badge{display:inline-block;background:var(--gold,#FFD60A);color:#0A0A0A;font-weight:700;font-size:0.72rem;border-radius:50px;padding:1px 7px;margin-left:3px;vertical-align:middle}
