/* ════════════════════════════════════════════════
   PLATINUM HF — Production CSS
   Premium · Mobile-first · Polished
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand */
  --blue:        #00ABFF;
  --blue-bright: #1ab8ff;
  --blue-dark:   #0080cc;
  --blue-deep:   #006bb0;
  --blue-dim:    rgba(0,171,255,0.12);
  --blue-glow:   rgba(0,171,255,0.25);
  --blue-soft:   rgba(0,171,255,0.06);
  --blue-line:   rgba(0,171,255,0.2);

  /* Neutrals */
  --bg:          #07090c;
  --surface-1:   #0d1014;
  --surface-2:   #131820;
  --surface-3:   #1a2029;
  --surface-4:   #222a35;
  --surface-5:   #2a3441;

  /* Lines */
  --line:        rgba(255,255,255,0.06);
  --line-strong: rgba(255,255,255,0.1);

  /* Text */
  --t1:          #f0f4f8;
  --t2:          #a7b2bd;
  --t3:          #6b7785;
  --t4:          #424d5a;

  /* States */
  --success:     #22d47a;
  --success-dim: rgba(34,212,122,0.13);
  --warning:     #f59e0b;
  --danger:      #ef4444;
  --danger-dim:  rgba(239,68,68,0.13);

  /* Sizing */
  --bar-h:       58px;
  --nav-h:       72px;
  --pad:         18px;
  --r-sm:        10px;
  --r-md:        14px;
  --r-lg:        18px;
  --r-xl:        24px;
  --r-2xl:       28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  height: 100%; min-height: 100dvh;
  background: var(--bg);
  color: var(--t1);
  font-family: 'Outfit', sans-serif;
  font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  overflow: hidden;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; outline: none; }
a { color: inherit; text-decoration: none; }

/* ════════════════════════════════════════════════
   SPLASH
════════════════════════════════════════════════ */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.splash-rings { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.splash-ring { position: absolute; border-radius: 50%; border: 1px solid var(--blue-line); animation: ringPulse 2.4s ease-out infinite; opacity: 0; }
.splash-ring:nth-child(1) { width: 140px; height: 140px; animation-delay: 0s; }
.splash-ring:nth-child(2) { width: 220px; height: 220px; animation-delay: 0.4s; }
.splash-ring:nth-child(3) { width: 320px; height: 320px; animation-delay: 0.8s; }
.splash-ring:nth-child(4) { width: 440px; height: 440px; animation-delay: 1.2s; }
@keyframes ringPulse {
  0% { opacity: 0; transform: scale(0.85); }
  30% { opacity: 0.7; }
  100% { opacity: 0; transform: scale(1.1); }
}
.splash-glow {
  position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,171,255,0.22) 0%, transparent 70%);
  filter: blur(36px); animation: glowPulse 2s ease-in-out infinite alternate;
}
@keyframes glowPulse { from { opacity: 0.5; transform: scale(0.9); } to { opacity: 1; transform: scale(1.1); } }
.splash-logo { position: relative; z-index: 2; animation: splashLogoIn 0.7s cubic-bezier(0.34,1.56,0.64,1) 0.3s both; }
@keyframes splashLogoIn { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
.splash-logo img { width: 110px; height: 110px; object-fit: contain; filter: drop-shadow(0 0 28px rgba(0,171,255,0.65)); }
.splash-text { position: relative; z-index: 2; text-align: center; margin-top: 24px; animation: splashTextIn 0.6s ease 0.8s both; }
@keyframes splashTextIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.splash-title { font-family: 'Bebas Neue', sans-serif; font-size: 48px; letter-spacing: 0.18em; color: #fff; line-height: 1; }
.splash-sub { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--blue); margin-top: 6px; font-weight: 600; }
.splash-bar { position: absolute; bottom: 70px; width: 140px; height: 2px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.splash-bar-fill { height: 100%; background: linear-gradient(90deg, var(--blue-dark), var(--blue), var(--blue-bright)); border-radius: 2px; animation: loadBar 1.6s cubic-bezier(0.4,0,0.2,1) 0.6s both; }
@keyframes loadBar { from { width: 0%; } to { width: 100%; } }
#splash.hide { animation: splashOut 0.5s ease forwards; }
@keyframes splashOut { to { opacity: 0; pointer-events: none; } }

/* ════════════════════════════════════════════════
   LOGIN
════════════════════════════════════════════════ */
#login {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: none; flex-direction: column;
  padding: env(safe-area-inset-top) var(--pad) env(safe-area-inset-bottom);
  overflow-y: auto;
}
#login.show { display: flex; animation: fadeIn 0.4s ease both; }
.login-bg-glow { position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(0,171,255,0.12), transparent 70%); pointer-events: none; }
.login-content { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 420px; width: 100%; margin: 0 auto; padding: 40px 0; position: relative; z-index: 1; }
.login-brand { text-align: center; margin-bottom: 40px; }
.login-brand img { width: 76px; height: 76px; margin-bottom: 16px; filter: drop-shadow(0 0 20px rgba(0,171,255,0.4)); }
.login-brand-title { font-family: 'Bebas Neue', sans-serif; font-size: 42px; letter-spacing: 0.16em; color: #fff; line-height: 1; }
.login-brand-sub { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--blue); margin-top: 6px; font-weight: 600; }

.login-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: 28px 24px;
  position: relative; overflow: hidden;
}
.login-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-glow), transparent);
}
.login-greet { font-size: 22px; font-weight: 700; color: var(--t1); margin-bottom: 4px; letter-spacing: -0.01em; }
.login-greet-sub { font-size: 13px; color: var(--t3); margin-bottom: 24px; }

.input-wrap { margin-bottom: 16px; position: relative; }
.input-label { font-size: 11px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; display: block; }
.text-input {
  width: 100%; height: 52px;
  background: var(--surface-3);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  color: var(--t1);
  font-size: 15px; font-weight: 500;
  padding: 0 16px;
  transition: border-color 0.2s, background 0.2s;
}
.text-input:focus { border-color: var(--blue-line); background: var(--surface-3); }
.text-input::placeholder { color: var(--t4); }

.btn-primary {
  width: 100%; height: 56px;
  background: linear-gradient(145deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-bright) 100%);
  color: #fff;
  border-radius: var(--r-lg);
  font-size: 16px; font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 32px rgba(0,171,255,0.4), 0 1px 0 rgba(255,255,255,0.18) inset;
  transition: transform 0.15s, box-shadow 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  position: relative; overflow: hidden;
}
.btn-primary:active { transform: scale(0.98); box-shadow: 0 4px 16px rgba(0,171,255,0.25); }
.btn-primary::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.btn-primary span { position: relative; z-index: 1; }

.login-meta { text-align: center; margin-top: 18px; font-size: 13px; color: var(--t3); }
.login-meta a { color: var(--blue); font-weight: 600; }

.login-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.login-divider span { font-size: 11px; color: var(--t4); text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; }

.btn-secondary {
  width: 100%; height: 50px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: var(--t1);
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-secondary:active { background: var(--surface-4); }

.login-footer { text-align: center; margin-top: 24px; font-size: 12px; color: var(--t4); }

/* ════════════════════════════════════════════════
   APP SHELL
════════════════════════════════════════════════ */
#app {
  position: fixed; inset: 0;
  display: none; flex-direction: column;
  opacity: 0; transition: opacity 0.4s ease;
}
#app.visible { display: flex; opacity: 1; }

/* Top bar */
.top-bar {
  height: var(--bar-h);
  padding-top: env(safe-area-inset-top);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding-left: var(--pad); padding-right: var(--pad);
  flex-shrink: 0; position: relative; z-index: 10;
}
.top-logo { display: flex; align-items: center; gap: 11px; }
.top-logo img { width: 32px; height: 32px; object-fit: contain; }
.top-logo-text { line-height: 1; }
.top-name { font-family: 'Bebas Neue', sans-serif; font-size: 21px; letter-spacing: 0.13em; color: #fff; }
.top-tag { font-size: 8.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--blue); font-weight: 700; margin-top: 2px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.notif-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 16px; position: relative; }
.notif-dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); border: 2px solid var(--bg); }
.top-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-dark), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  border: 1.5px solid rgba(0,171,255,0.4);
  box-shadow: 0 0 14px rgba(0,171,255,0.3);
}

/* Screens */
.screens { flex: 1; overflow: hidden; position: relative; }
.screen {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + 12px);
  display: none; flex-direction: column;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.screen.active { display: flex; }

/* Bottom nav */
.bottom-nav {
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; align-items: flex-start;
  padding-top: 10px;
  flex-shrink: 0; position: relative; z-index: 10;
}
.nav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 4px 14px; user-select: none;
}
.nav-icon-box {
  width: 46px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  transition: background 0.2s;
}
.nav-btn.active .nav-icon-box { background: var(--blue-dim); }
.nav-icon { font-size: 21px; opacity: 0.3; transition: opacity 0.2s; }
.nav-btn.active .nav-icon { opacity: 1; }
.nav-label { font-size: 10px; font-weight: 700; color: var(--t4); text-transform: uppercase; letter-spacing: 0.1em; }
.nav-btn.active .nav-label { color: var(--blue); }

/* ════════════════════════════════════════════════
   SHARED COMPONENTS
════════════════════════════════════════════════ */
.sec-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--pad) 10px;
}
.sec-label { font-size: 11px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: 0.14em; }
.sec-link { font-size: 12px; font-weight: 600; color: var(--blue); }

.card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  margin: 0 var(--pad) 12px;
  padding: 18px;
  position: relative; overflow: hidden;
}
.card-glow::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-glow), transparent);
}

/* Avatars */
.av {
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-dark), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; flex-shrink: 0;
  border: 1.5px solid rgba(0,171,255,0.35);
}
.av-xl { width: 88px; height: 88px; font-size: 30px; box-shadow: 0 0 32px rgba(0,171,255,0.35); border-width: 2.5px; }
.av-lg { width: 60px; height: 60px; font-size: 21px; box-shadow: 0 0 22px rgba(0,171,255,0.28); border-width: 2px; }
.av-md { width: 44px; height: 44px; font-size: 16px; }
.av-sm { width: 38px; height: 38px; font-size: 14px; }
.av-xs { width: 32px; height: 32px; font-size: 12px; border-width: 1px; }
.av-a { background: linear-gradient(145deg, #f97316, #dc2626); border-color: rgba(249,115,22,0.3); }
.av-b { background: linear-gradient(145deg, #7c3aed, #2563eb); border-color: rgba(124,58,237,0.3); }
.av-c { background: linear-gradient(145deg, #059669, #0891b2); border-color: rgba(5,150,105,0.3); }
.av-d { background: linear-gradient(145deg, #d97706, #ea580c); border-color: rgba(217,119,6,0.3); }
.av-e { background: linear-gradient(145deg, #db2777, #be185d); border-color: rgba(219,39,119,0.3); }

/* Tags */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
  padding: 4px 10px; border-radius: 20px;
}
.tag-blue    { background: var(--blue-dim); color: var(--blue); border: 1px solid var(--blue-line); }
.tag-green   { background: var(--success-dim); color: var(--success); border: 1px solid rgba(34,212,122,0.25); }
.tag-neutral { background: var(--surface-3); color: var(--t2); border: 1px solid var(--line); }
.tag-warn    { background: rgba(245,158,11,0.13); color: var(--warning); border: 1px solid rgba(245,158,11,0.25); }

/* Progress */
.prog-track { height: 6px; background: var(--surface-4); border-radius: 6px; overflow: hidden; margin: 8px 0 5px; }
.prog-fill { height: 100%; background: linear-gradient(90deg, var(--blue-dark), var(--blue), var(--blue-bright)); border-radius: 6px; transition: width 1s cubic-bezier(0.4,0,0.2,1); position: relative; }
.prog-fill::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 14px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4)); border-radius: 6px; }
.prog-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--t3); font-weight: 500; }

/* ════════════════════════════════════════════════
   HOME
════════════════════════════════════════════════ */
.greet-row { padding: 22px var(--pad) 0; display: flex; justify-content: space-between; align-items: center; }
.greet-day { font-size: 12px; color: var(--t3); font-weight: 500; letter-spacing: 0.04em; }
.greet-name { font-size: 24px; font-weight: 700; color: var(--t1); margin-top: 2px; letter-spacing: -0.02em; }

/* Streak */
.streak-card {
  background: linear-gradient(145deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line); border-radius: var(--r-xl);
  margin: 16px var(--pad) 0; padding: 18px;
  display: flex; align-items: center; gap: 16px;
  position: relative; overflow: hidden;
}
.streak-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--blue-glow), transparent); }
.streak-card::after { content: ''; position: absolute; top: -30px; left: -20px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(0,171,255,0.1), transparent 70%); pointer-events: none; }
.streak-fire { font-size: 38px; line-height: 1; position: relative; z-index: 1; animation: fireFlicker 2s ease-in-out infinite alternate; }
@keyframes fireFlicker { from { transform: scale(1); } to { transform: scale(1.06); } }
.streak-num-wrap { position: relative; z-index: 1; }
.streak-num { font-family: 'Bebas Neue', sans-serif; font-size: 44px; color: var(--blue); letter-spacing: 0.02em; line-height: 1; }
.streak-lbl { font-size: 11px; color: var(--t3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }
.streak-vdiv { width: 1px; height: 44px; background: var(--line-strong); }
.streak-week { text-align: right; position: relative; z-index: 1; }
.streak-week-num { font-family: 'Bebas Neue', sans-serif; font-size: 30px; color: var(--t1); line-height: 1; }
.streak-week-lbl { font-size: 11px; color: var(--t3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }

/* Big check-in button */
.checkin-btn {
  margin: 14px var(--pad) 0;
  background: linear-gradient(145deg, var(--blue-deep) 0%, var(--blue) 50%, var(--blue-bright) 100%);
  border-radius: var(--r-xl);
  padding: 22px 22px;
  display: flex; align-items: center; gap: 16px;
  width: calc(100% - var(--pad) * 2);
  box-shadow: 0 10px 40px rgba(0,171,255,0.45), 0 1px 0 rgba(255,255,255,0.2) inset;
  position: relative; overflow: hidden;
  transition: transform 0.15s, box-shadow 0.2s;
  min-height: 84px;
}
.checkin-btn:active { transform: scale(0.97); box-shadow: 0 4px 18px rgba(0,171,255,0.25); }
.checkin-btn::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent); border-radius: var(--r-xl) var(--r-xl) 0 0; }
.checkin-btn::after { content: ''; position: absolute; bottom: -40px; right: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,0.07); }
.ci-emoji { font-size: 36px; position: relative; z-index: 1; flex-shrink: 0; line-height: 1; }
.ci-text { flex: 1; position: relative; z-index: 1; text-align: left; }
.ci-title { font-size: 19px; font-weight: 700; color: #fff; display: block; letter-spacing: -0.02em; }
.ci-sub { font-size: 13px; color: rgba(255,255,255,0.75); display: block; margin-top: 4px; font-weight: 400; }
.ci-arrow { font-size: 30px; color: rgba(255,255,255,0.6); position: relative; z-index: 1; font-weight: 300; }
.checkin-done {
  background: var(--surface-2) !important;
  border: 2px solid rgba(34,212,122,0.4) !important;
  box-shadow: 0 4px 24px rgba(34,212,122,0.15) !important;
  cursor: default;
}
.checkin-done:active { transform: none !important; }

/* Today's workout card */
.workout-card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-xl);
  margin: 0 var(--pad); padding: 18px;
  display: flex; align-items: center; gap: 14px;
  position: relative; overflow: hidden;
}
.workout-card::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: linear-gradient(180deg, var(--blue-dark), var(--blue)); }
.wc-icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  background: var(--blue-dim); border: 1px solid var(--blue-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.wc-name { font-size: 16px; font-weight: 700; color: var(--t1); letter-spacing: -0.01em; }
.wc-meta { font-size: 12px; color: var(--t3); margin-top: 4px; font-weight: 500; }
.wc-go {
  font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 12px 18px; border-radius: var(--r-md);
  flex-shrink: 0; box-shadow: 0 4px 14px rgba(0,171,255,0.35);
  transition: transform 0.1s;
}
.wc-go:active { transform: scale(0.95); }

/* Stats grid */
.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 var(--pad); }
.stat-box {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 14px;
  position: relative; overflow: hidden;
}
.stat-box::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--blue-glow), transparent); opacity: 0.6; }
.stat-emoji { font-size: 18px; margin-bottom: 8px; }
.stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 34px; color: var(--t1); line-height: 1; letter-spacing: 0.01em; }
.stat-label { font-size: 10px; color: var(--t3); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }

/* Coach card */
.coach-card {
  background: var(--surface-2); border: 1px solid var(--blue-line);
  border-radius: var(--r-xl);
  margin: 0 var(--pad) 12px; padding: 18px;
  position: relative; overflow: hidden;
}
.coach-card::before { content: ''; position: absolute; top: -30px; right: -30px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, rgba(0,171,255,0.14), transparent 70%); pointer-events: none; }
.coach-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--blue-glow), transparent); }
.coach-head { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; position: relative; }
.coach-name { font-size: 15px; font-weight: 700; color: var(--t1); letter-spacing: -0.01em; }
.coach-role { font-size: 10px; color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; margin-top: 2px; }
.coach-msg-lbl { font-size: 10px; color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 8px; position: relative; }
.coach-msg-text { font-size: 14px; color: var(--t2); line-height: 1.7; font-style: italic; position: relative; }

/* ════════════════════════════════════════════════
   TRAIN
════════════════════════════════════════════════ */
.screen-header { padding: 22px var(--pad) 0; }
.screen-h1 { font-family: 'Bebas Neue', sans-serif; font-size: 36px; letter-spacing: 0.05em; color: var(--t1); line-height: 1; }
.screen-h-sub { font-size: 12px; color: var(--t3); margin-top: 4px; font-weight: 500; }

.start-hero {
  margin: 18px var(--pad) 0;
  background: linear-gradient(145deg, var(--surface-3), var(--surface-2));
  border-radius: var(--r-2xl);
  border: 2px solid rgba(0,171,255,0.4);
  padding: 32px 24px;
  text-align: center;
  position: relative; overflow: hidden;
  box-shadow: 0 12px 50px rgba(0,171,255,0.22);
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.3s;
}
.start-hero:active { transform: scale(0.97); }
.start-glow { position: absolute; top: -50px; left: 50%; transform: translateX(-50%); width: 280px; height: 140px; background: radial-gradient(ellipse, var(--blue-glow), transparent 70%); pointer-events: none; transition: background 0.3s; }
.start-logo { width: 48px; height: 48px; object-fit: contain; margin-bottom: 12px; position: relative; z-index: 1; opacity: 0.92; }
.start-big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 68px; letter-spacing: 0.16em;
  background: linear-gradient(135deg, #fff 25%, var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; position: relative; z-index: 1;
}
.start-sub { font-size: 13px; color: var(--t3); margin-top: 6px; position: relative; z-index: 1; font-weight: 500; }

.start-hero.active-go { border-color: rgba(34,212,122,0.5); box-shadow: 0 12px 50px rgba(34,212,122,0.22); }
.start-hero.active-go .start-glow { background: radial-gradient(ellipse, rgba(34,212,122,0.3), transparent 70%); }
.start-hero.active-go .start-big { background: linear-gradient(135deg, #fff 25%, var(--success)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Active workout banner */
.active-banner {
  margin: 12px var(--pad) 0;
  background: linear-gradient(135deg, rgba(34,212,122,0.14), rgba(34,212,122,0.05));
  border: 1.5px solid rgba(34,212,122,0.4);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.active-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); animation: pulseDot 1.5s ease-in-out infinite; flex-shrink: 0; }
@keyframes pulseDot { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,212,122,0.6); } 50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(34,212,122,0); } }
.active-text { flex: 1; }
.active-title { font-size: 14px; font-weight: 700; color: var(--success); }
.active-sub { font-size: 11px; color: var(--t3); margin-top: 2px; font-weight: 500; }
.stop-btn { font-size: 12px; font-weight: 700; color: var(--danger); background: var(--danger-dim); border: 1px solid rgba(239,68,68,0.25); padding: 10px 16px; border-radius: var(--r-md); }

/* Quick programs */
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 var(--pad); }
.quick-card {
  background: var(--surface-2); border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 16px;
  position: relative; overflow: hidden;
  transition: border-color 0.2s, background 0.2s, transform 0.1s;
}
.quick-card:active { border-color: var(--blue-line); background: var(--surface-3); transform: scale(0.97); }
.quick-emoji { font-size: 30px; margin-bottom: 10px; display: block; }
.quick-name { font-size: 14px; font-weight: 700; color: var(--t1); letter-spacing: -0.01em; }
.quick-dur { font-size: 12px; color: var(--t3); margin-top: 4px; font-weight: 500; }

/* Workout logging card */
.log-card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-xl);
  margin: 0 var(--pad) 12px; padding: 18px;
}
.log-title { font-size: 16px; font-weight: 700; color: var(--t1); margin-bottom: 4px; letter-spacing: -0.01em; }
.log-sub { font-size: 12px; color: var(--t3); margin-bottom: 14px; font-weight: 500; }
.log-exercise {
  background: var(--surface-3); border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  margin-bottom: 10px;
}
.log-ex-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.log-ex-name { font-size: 14px; font-weight: 700; color: var(--t1); }
.log-ex-muscle { font-size: 10px; color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 1px; }
.log-sets { display: flex; flex-direction: column; gap: 8px; }
.log-set-row { display: grid; grid-template-columns: 36px 1fr 1fr 36px; gap: 8px; align-items: center; }
.log-set-num { font-family: 'Bebas Neue', sans-serif; font-size: 18px; color: var(--t3); text-align: center; }
.log-input {
  height: 40px; background: var(--surface-4); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 0 10px; font-size: 14px; font-weight: 600;
  color: var(--t1); text-align: center; width: 100%;
}
.log-input:focus { border-color: var(--blue-line); }
.log-set-check {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-4); border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--t3);
  transition: all 0.2s;
}
.log-set-check.done {
  background: var(--success-dim); border-color: var(--success);
  color: var(--success);
}
.log-set-labels { display: grid; grid-template-columns: 36px 1fr 1fr 36px; gap: 8px; padding: 0 0 6px; }
.log-set-labels span { font-size: 10px; color: var(--t4); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; text-align: center; }

/* Timer */
.timer-card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-xl);
  margin: 0 var(--pad); padding: 22px;
}
.timer-row { display: flex; align-items: flex-end; gap: 22px; }
.timer-lbl { font-size: 10px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 3px; }
.timer-time { font-family: 'Bebas Neue', sans-serif; font-size: 56px; color: var(--blue); letter-spacing: 0.04em; line-height: 1; transition: color 0.3s; }
.timer-rest-time { font-family: 'Bebas Neue', sans-serif; font-size: 32px; color: var(--t3); letter-spacing: 0.04em; line-height: 1; }
.timer-btns { display: flex; gap: 10px; margin-left: auto; }
.t-btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface-3); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--t1);
  transition: transform 0.1s;
}
.t-btn:active { transform: scale(0.9); }
.t-btn.play { background: var(--blue-dim); border-color: var(--blue-line); font-size: 20px; }
.timer-set-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.t-sel-lbl { font-size: 10px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.t-sel {
  width: 100%; background: var(--surface-3); border: 1px solid var(--line);
  border-radius: var(--r-sm); color: var(--t1);
  font-size: 14px; font-weight: 600;
  padding: 11px 14px; appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%2300ABFF" stroke-width="2.5"><polyline points="6 9 12 15 18 9"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ════════════════════════════════════════════════
   COMMUNITY
════════════════════════════════════════════════ */
.challenge-card {
  margin: 18px var(--pad) 0;
  background: linear-gradient(145deg, var(--surface-3), var(--surface-2));
  border: 1px solid var(--blue-line);
  border-radius: var(--r-xl);
  padding: 20px;
  position: relative; overflow: hidden;
}
.challenge-card::before { content: ''; position: absolute; top: -30px; right: -30px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(0,171,255,0.2), transparent 70%); }
.challenge-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--blue-glow), transparent); }
.ch-eyebrow { font-size: 10px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 6px; position: relative; }
.ch-name { font-size: 18px; font-weight: 700; color: var(--t1); margin-bottom: 14px; position: relative; letter-spacing: -0.01em; }

.feed-card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin: 0 var(--pad) 10px; padding: 16px;
}
.feed-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.feed-who { font-size: 14px; font-weight: 700; color: var(--t1); letter-spacing: -0.01em; }
.feed-when { font-size: 11px; color: var(--t3); margin-top: 1px; font-weight: 500; }
.feed-text { font-size: 14px; color: var(--t2); line-height: 1.55; }
.feed-tags { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }

.ms-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 var(--pad) 14px; }
.ms-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 20px; padding: 6px 12px; color: var(--t2);
}

/* ════════════════════════════════════════════════
   PROFILE
════════════════════════════════════════════════ */
.profile-photo-card {
  margin: 16px var(--pad) 0;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-2xl); overflow: hidden; position: relative;
}
.profile-photo-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 200px; background: radial-gradient(ellipse at 50% 0%, rgba(0,171,255,0.18), transparent 70%); pointer-events: none; }
.photo-area {
  height: 180px; background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.photo-placeholder { text-align: center; position: relative; z-index: 1; }
.photo-circle {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--surface-4);
  border: 2.5px dashed rgba(0,171,255,0.4);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.photo-hint { font-size: 13px; color: var(--t3); font-weight: 600; }
.photo-hint-sub { font-size: 11px; color: var(--t4); margin-top: 2px; }

.profile-info { padding: 22px 20px; text-align: center; position: relative; }
.profile-name { font-size: 24px; font-weight: 700; color: var(--t1); letter-spacing: -0.02em; }
.profile-role { font-size: 11px; color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; margin-top: 4px; }
.profile-edit-btn { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 14px; }

.p-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; margin-top: 18px; background: var(--line); border-radius: var(--r-md); overflow: hidden; }
.p-stat { background: var(--surface-3); padding: 14px 6px; text-align: center; }
.p-stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--t1); line-height: 1; }
.p-stat-num.blue { color: var(--blue); }
.p-stat-label { font-size: 9px; color: var(--t3); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-top: 4px; }

/* Goals */
.goal-card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin: 0 var(--pad) 9px; padding: 16px;
  display: flex; align-items: center; gap: 14px;
}
.goal-emoji { font-size: 24px; }
.goal-text { flex: 1; min-width: 0; }
.goal-title { font-size: 14px; font-weight: 700; color: var(--t1); letter-spacing: -0.01em; }
.goal-sub { font-size: 11px; color: var(--t3); margin-top: 3px; font-weight: 500; }
.goal-pct { font-family: 'Bebas Neue', sans-serif; font-size: 30px; color: var(--blue); flex-shrink: 0; }

/* Progress chart */
.chart-card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-xl);
  margin: 0 var(--pad) 12px; padding: 18px;
  position: relative; overflow: hidden;
}
.chart-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--blue-glow), transparent); }
.chart-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.chart-title { font-size: 14px; font-weight: 700; color: var(--t1); }
.chart-sub { font-size: 11px; color: var(--t3); margin-top: 2px; font-weight: 500; }
.chart-num { font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--blue); line-height: 1; }
.chart-num-sub { font-size: 10px; color: var(--success); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 100px; padding: 0 4px; }
.chart-bar { flex: 1; background: linear-gradient(180deg, var(--blue), var(--blue-deep)); border-radius: 4px 4px 0 0; opacity: 0.8; min-height: 6px; position: relative; transition: opacity 0.2s; animation: barGrow 1s cubic-bezier(0.4,0,0.2,1) both; }
@keyframes barGrow { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); } }
.chart-bar.peak { opacity: 1; box-shadow: 0 0 12px rgba(0,171,255,0.4); }
.chart-labels { display: flex; gap: 6px; padding: 8px 4px 0; border-top: 1px solid var(--line); margin-top: 6px; }
.chart-label-day { flex: 1; text-align: center; font-size: 10px; color: var(--t4); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* Coach card on profile (bigger version) */
.profile-coach-card {
  background: var(--surface-2); border: 1px solid var(--blue-line);
  border-radius: var(--r-xl);
  margin: 0 var(--pad) 12px;
  position: relative; overflow: hidden;
}
.profile-coach-card::before { content: ''; position: absolute; top: -30px; right: -30px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(0,171,255,0.18), transparent 70%); pointer-events: none; }
.profile-coach-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--blue-glow), transparent); }
.pcc-head { padding: 20px 20px 16px; display: flex; align-items: center; gap: 16px; position: relative; }
.pcc-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-deep), var(--blue));
  border: 2px solid rgba(0,171,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: #fff;
  box-shadow: 0 0 24px rgba(0,171,255,0.3);
  flex-shrink: 0;
}
.pcc-info { flex: 1; min-width: 0; }
.pcc-name { font-size: 19px; font-weight: 700; color: var(--t1); letter-spacing: -0.01em; }
.pcc-role { font-size: 11px; color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; margin-top: 3px; }
.pcc-switch {
  display: block; width: 100%;
  background: var(--surface-3); border: 1px solid var(--line);
  border-radius: var(--r-sm); color: var(--t2);
  font-size: 12px; font-weight: 600;
  padding: 8px 32px 8px 12px; margin-top: 10px;
  appearance: none; cursor: pointer;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%2300ABFF" stroke-width="2.5"><polyline points="6 9 12 15 18 9"/></svg>');
  background-repeat: no-repeat; background-position: right 10px center;
}
.pcc-divider { height: 1px; background: var(--line); margin: 0 20px; }
.pcc-msg-area { padding: 16px 20px 20px; }
.pcc-msg-lbl { font-size: 10px; color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 8px; }
.pcc-msg-text { font-size: 14px; color: var(--t2); line-height: 1.7; font-style: italic; }

/* Activity feed */
.activity-list {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-xl);
  margin: 0 var(--pad) 14px;
  overflow: hidden;
}
.act-row {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.act-row:last-child { border-bottom: none; }
.act-row:active { background: var(--surface-3); }
.act-icon {
  width: 46px; height: 46px; border-radius: var(--r-md); flex-shrink: 0;
  background: var(--blue-dim); border: 1px solid var(--blue-line);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.act-text { flex: 1; min-width: 0; }
.act-title-row { display: flex; align-items: baseline; gap: 6px; }
.act-title { font-size: 14px; font-weight: 700; color: var(--t1); letter-spacing: -0.01em; }
.act-time { font-size: 10px; color: var(--t3); font-weight: 500; }
.act-detail { font-size: 11px; color: var(--t3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-loc { font-size: 10px; color: var(--blue); font-weight: 600; margin-top: 4px; }
.act-right { text-align: right; flex-shrink: 0; }
.act-date { font-size: 10px; color: var(--t3); font-weight: 600; }
.act-cal { font-size: 11px; color: var(--success); font-weight: 700; margin-top: 4px; }

/* Logout button */
.logout-btn {
  width: calc(100% - var(--pad) * 2); margin: 4px var(--pad) 12px;
  background: var(--surface-2); border: 1px solid rgba(239,68,68,0.2);
  color: var(--danger);
  border-radius: var(--r-md);
  padding: 14px;
  font-size: 14px; font-weight: 600;
}

/* ════════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════════ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.screen.active > * { animation: fadeUp 0.32s ease both; }
.screen.active > *:nth-child(1) { animation-delay: 0.00s; }
.screen.active > *:nth-child(2) { animation-delay: 0.05s; }
.screen.active > *:nth-child(3) { animation-delay: 0.09s; }
.screen.active > *:nth-child(4) { animation-delay: 0.13s; }
.screen.active > *:nth-child(5) { animation-delay: 0.17s; }
.screen.active > *:nth-child(6) { animation-delay: 0.21s; }
.screen.active > *:nth-child(7) { animation-delay: 0.25s; }
.screen.active > *:nth-child(8) { animation-delay: 0.28s; }
.screen.active > *:nth-child(9) { animation-delay: 0.31s; }
.screen.active > *:nth-child(10) { animation-delay: 0.34s; }
.screen.active > *:nth-child(11) { animation-delay: 0.37s; }
.screen.active > *:nth-child(12) { animation-delay: 0.40s; }

/* ════════════════════════════════════════════════
   ADMIN PANEL
════════════════════════════════════════════════ */
.admin-body {
  padding: 16px var(--pad);
  padding-bottom: 40px;
}
.admin-tabs { display: flex; gap: 6px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  padding: 10px 16px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 600; color: var(--t2);
  white-space: nowrap;
}
.admin-tab.active { background: var(--blue-dim); border-color: var(--blue-line); color: var(--blue); }

.admin-section {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 20px;
  margin-bottom: 14px;
  display: none;
}
.admin-section.active { display: block; animation: fadeUp 0.3s ease; }
.admin-h { font-size: 17px; font-weight: 700; color: var(--t1); margin-bottom: 4px; letter-spacing: -0.01em; }
.admin-h-sub { font-size: 12px; color: var(--t3); margin-bottom: 16px; font-weight: 500; }

.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .admin-form-grid { grid-template-columns: 1fr; } }

.ai-button {
  width: 100%;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 16px 20px;
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 6px 24px rgba(124,58,237,0.35);
  margin-bottom: 14px;
  position: relative; overflow: hidden;
}
.ai-button:active { transform: scale(0.98); }
.ai-button.generating { pointer-events: none; }
.ai-spark { animation: sparkRotate 2s linear infinite; display: inline-block; }
@keyframes sparkRotate { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.member-list { display: flex; flex-direction: column; gap: 8px; }
.member-row {
  background: var(--surface-3); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
}
.member-info { flex: 1; min-width: 0; }
.member-name { font-size: 14px; font-weight: 700; color: var(--t1); }
.member-meta { font-size: 11px; color: var(--t3); margin-top: 1px; font-weight: 500; }
.member-actions { display: flex; gap: 6px; }
.icon-btn { width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--surface-4); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.icon-btn.danger { color: var(--danger); border-color: rgba(239,68,68,0.2); background: var(--danger-dim); }

/* ════════════════════════════════════════════════
   PUBLIC LANDING (join.php)
════════════════════════════════════════════════ */
.land-hero {
  padding: env(safe-area-inset-top) 0 0;
  min-height: 100dvh;
  background: var(--bg);
  position: relative; overflow: hidden;
}
.land-bg-glow {
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,171,255,0.18), transparent 70%);
  pointer-events: none;
}
.land-content { max-width: 460px; margin: 0 auto; padding: 40px 24px; position: relative; z-index: 1; }
.land-logo { text-align: center; margin-bottom: 32px; }
.land-logo img { width: 80px; height: 80px; margin-bottom: 14px; filter: drop-shadow(0 0 22px rgba(0,171,255,0.45)); }
.land-logo-title { font-family: 'Bebas Neue', sans-serif; font-size: 44px; letter-spacing: 0.16em; color: #fff; line-height: 1; }
.land-logo-sub { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--blue); margin-top: 6px; font-weight: 600; }

.land-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px; letter-spacing: 0.02em; color: var(--t1);
  line-height: 1.05; text-align: center; margin-bottom: 14px;
}
.land-headline span { color: var(--blue); }
.land-sub {
  font-size: 15px; color: var(--t2); line-height: 1.6;
  text-align: center; margin-bottom: 32px;
}

.land-price-card {
  background: linear-gradient(145deg, var(--surface-2), var(--surface-1));
  border: 1.5px solid var(--blue-line);
  border-radius: var(--r-2xl);
  padding: 28px 24px;
  margin-bottom: 22px;
  position: relative; overflow: hidden;
  text-align: center;
}
.land-price-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--blue-glow), transparent); }
.land-price-card::after { content: ''; position: absolute; top: -40px; right: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(0,171,255,0.16), transparent 70%); }
.land-tier { font-size: 11px; color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 8px; position: relative; }
.land-price { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin-bottom: 6px; position: relative; }
.land-price-num { font-family: 'Bebas Neue', sans-serif; font-size: 64px; color: var(--t1); letter-spacing: 0.02em; line-height: 1; }
.land-price-per { font-size: 14px; color: var(--t3); font-weight: 600; }
.land-price-sub { font-size: 12px; color: var(--t3); position: relative; }

.land-features { margin-bottom: 26px; }
.land-feat { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.land-feat:last-child { border-bottom: none; }
.land-feat-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue-dim); border: 1px solid var(--blue-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
  color: var(--blue);
}
.land-feat-text { flex: 1; }
.land-feat-title { font-size: 14px; font-weight: 700; color: var(--t1); letter-spacing: -0.01em; }
.land-feat-desc { font-size: 12px; color: var(--t3); margin-top: 3px; line-height: 1.4; font-weight: 500; }

.land-trust { text-align: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.land-trust-text { font-size: 11px; color: var(--t4); font-weight: 500; letter-spacing: 0.05em; }
.land-trust-icons { display: flex; justify-content: center; gap: 10px; margin-top: 10px; font-size: 10px; color: var(--t3); }
.land-trust-icons span { display: inline-flex; align-items: center; gap: 4px; }

/* ════════════════════════════════════════════════
   MULTI-PAGE MODE (production)
   When each screen is its own PHP file
═══════════════════════════════════════════════ */
body.app-page {
  overflow: hidden;
}
body.app-page #page-shell {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
}
body.app-page .page-content {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + 12px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
body.app-page .page-content::-webkit-scrollbar { display: none; }
body.app-page .page-content > * { animation: fadeUp 0.32s ease both; }
body.app-page .page-content > *:nth-child(1)  { animation-delay: 0.00s; }
body.app-page .page-content > *:nth-child(2)  { animation-delay: 0.05s; }
body.app-page .page-content > *:nth-child(3)  { animation-delay: 0.09s; }
body.app-page .page-content > *:nth-child(4)  { animation-delay: 0.13s; }
body.app-page .page-content > *:nth-child(5)  { animation-delay: 0.17s; }
body.app-page .page-content > *:nth-child(6)  { animation-delay: 0.21s; }
body.app-page .page-content > *:nth-child(7)  { animation-delay: 0.25s; }
body.app-page .page-content > *:nth-child(8)  { animation-delay: 0.28s; }
body.app-page .page-content > *:nth-child(9)  { animation-delay: 0.31s; }
body.app-page .page-content > *:nth-child(10) { animation-delay: 0.34s; }

/* Flash messages */
.flash {
  margin: 12px var(--pad) 0;
  padding: 13px 16px;
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.flash-success { background: var(--success-dim); color: var(--success); border: 1px solid rgba(34,212,122,0.25); }
.flash-error   { background: var(--danger-dim);  color: var(--danger);  border: 1px solid rgba(239,68,68,0.25); }


/* ════════════════════════════════════════════════
   PHOTO OVERFLOW HARD FIX — overrides any earlier rules
   Append to BOTTOM of app.css
═══════════════════════════════════════════════ */

/* Force the entire profile photo card to clip everything inside it */
.profile-photo-card,
body .profile-photo-card {
  overflow: hidden !important;
  position: relative !important;
}

/* The photo area: fixed height, hard-clipped */
.profile-photo-card .photo-area,
body .profile-photo-card .photo-area {
  position: relative !important;
  width: 100% !important;
  height: 240px !important;
  max-height: 240px !important;
  overflow: hidden !important;
  background: var(--surface-3) !important;
  display: block !important;
}

/* The actual photo image — forced to fit, never overflow */
.profile-photo-img,
body .profile-photo-img,
.profile-photo-card img.profile-photo-img,
.profile-photo-card .photo-area img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
}

/* The Change Photo overlay button stays anchored to bottom-right */
.photo-edit-overlay,
body .photo-edit-overlay {
  position: absolute !important;
  bottom: 12px !important;
  right: 12px !important;
  top: auto !important;
  left: auto !important;
  z-index: 5 !important;
  background: rgba(0,0,0,0.65) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 22px !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 14px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  width: auto !important;
  max-width: calc(100% - 24px) !important;
}

