/* ===========================
   FAMILY GYM APP — DESIGN SYSTEM
   =========================== */

:root {
  /* Brand Colors */
  --fg-black: #111111;
  --fg-black-deep: #0A0A0A;
  --fg-yellow: #F5D24A;
  --fg-yellow-light: #FAE27A;
  --fg-yellow-dark: #D4B020;
  --fg-white: #FFFFFF;
  --fg-off-white: #F8F8F6;
  
  /* Neutral Scale */
  --gray-50: #FAFAFA;
  --gray-100: #F4F4F5;
  --gray-200: #E4E4E7;
  --gray-300: #D1D1D6;
  --gray-400: #A1A1AA;
  --gray-500: #71717A;
  --gray-600: #52525B;
  --gray-700: #3F3F46;
  --gray-800: #27272A;
  --gray-900: #18181B;
  
  /* Semantic */
  --success: #22C55E;
  --success-light: #DCFCE7;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --error: #EF4444;
  --error-light: #FEE2E2;
  --info: #3B82F6;
  --info-light: #DBEAFE;
  
  /* Typography */
  --font-primary: 'Sora', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;
  
  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-full: 999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-yellow: 0 4px 20px rgba(245, 210, 74, 0.35);
  --shadow-yellow-lg: 0 8px 32px rgba(245, 210, 74, 0.45);
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: #0D0D0D;
  min-height: 100vh;
  color: var(--fg-black);
  overflow: hidden;
}

/* ===========================
   PRESENTER LAYOUT
   =========================== */
.presenter {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

.presenter-header {
  background: #161616;
  border-bottom: 1px solid #2A2A2A;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  z-index: 100;
}

.presenter-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fg-logo-icon {
  background: var(--fg-black);
  border-radius: 12px;
  padding: 4px;
  border: 1px solid #2A2A2A;
}

.presenter-brand {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
}

.presenter-sub {
  font-size: 11px;
  color: #666;
  margin-top: 2px;
}

.presenter-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.prev-btn, .next-btn {
  background: #2A2A2A;
  border: none;
  color: #FFF;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background 0.2s;
}

.prev-btn:hover, .next-btn:hover { background: var(--fg-yellow); color: var(--fg-black); }

.screen-counter {
  font-size: 13px;
  color: #888;
  min-width: 50px;
  text-align: center;
}

.screen-title-bar {
  font-size: 12px;
  color: var(--fg-yellow);
  font-weight: 600;
  background: rgba(245,210,74,0.1);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(245,210,74,0.2);
}

/* ===========================
   THUMBNAILS SIDEBAR
   =========================== */
.screens-thumbnails {
  position: fixed;
  left: 0;
  top: 63px;
  bottom: 0;
  width: 140px;
  background: #111111;
  border-right: 1px solid #222;
  overflow-y: auto;
  z-index: 50;
  padding: 8px;
}

.screens-thumbnails::-webkit-scrollbar { width: 4px; }
.screens-thumbnails::-webkit-scrollbar-track { background: transparent; }
.screens-thumbnails::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

.thumb-item {
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}

.thumb-item:hover { border-color: rgba(245,210,74,0.4); transform: scale(1.02); }
.thumb-item.active { border-color: var(--fg-yellow); }

.thumb-preview {
  width: 100%;
  height: 72px;
  overflow: hidden;
  position: relative;
  background: #1A1A1A;
}

.thumb-preview iframe {
  width: 375px;
  height: 812px;
  border: none;
  transform: scale(0.333);
  transform-origin: 0 0;
  pointer-events: none;
}

.thumb-label {
  background: #1A1A1A;
  padding: 4px 6px;
  font-size: 9px;
  color: #888;
  line-height: 1.2;
  text-align: center;
}

.thumb-item.active .thumb-label { color: var(--fg-yellow); }

/* ===========================
   PHONE FRAME
   =========================== */
.phone-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 20px 160px;
  position: relative;
}

.phone-frame {
  width: 375px;
  height: 812px;
  background: #000;
  border-radius: 50px;
  box-shadow: 
    0 0 0 2px #333,
    0 0 0 4px #1A1A1A,
    0 30px 80px rgba(0,0,0,0.8),
    0 0 60px rgba(245,210,74,0.08);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.notch-pill {
  width: 120px;
  height: 34px;
  background: #000;
  border-radius: 0 0 20px 20px;
}

.status-bar-notch {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #FFF;
  z-index: 1001;
}

.status-icons {
  display: flex;
  gap: 6px;
  font-size: 11px;
}

.phone-screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  background: var(--gray-50);
}

.phone-home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 5px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
  z-index: 1000;
}

/* ===========================
   SCREEN BASE
   =========================== */
.screen {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--gray-50);
  font-family: var(--font-body);
  display: none;
  padding-top: 0;
}

.screen.active { display: block; }
.screen::-webkit-scrollbar { display: none; }

/* ===========================
   SCREEN 1: SPLASH
   =========================== */
.splash-screen {
  background: var(--fg-black-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.splash-bg-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,210,74,0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.splash-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(245,210,74,0.06);
}

.splash-ring-1 { width: 280px; height: 280px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.splash-ring-2 { width: 380px; height: 380px; top: 50%; left: 50%; transform: translate(-50%, -50%); border-color: rgba(245,210,74,0.04); }
.splash-ring-3 { width: 480px; height: 480px; top: 50%; left: 50%; transform: translate(-50%, -50%); border-color: rgba(245,210,74,0.02); }

.splash-logo-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.splash-logo-icon {
  width: 100px;
  height: 100px;
  background: #1A1A1A;
  border-radius: 28px;
  border: 1px solid #2A2A2A;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(245,210,74,0.2);
  margin-bottom: 20px;
}

.splash-brand-name {
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  text-align: center;
}

.splash-brand-name span {
  color: var(--fg-yellow);
}

.splash-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  text-align: center;
  letter-spacing: 0.5px;
  margin-top: -12px;
}

.splash-loader {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.splash-loader-bar {
  width: 120px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.splash-loader-fill {
  width: 70%;
  height: 100%;
  background: var(--fg-yellow);
  border-radius: 2px;
}

.splash-loader-text {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.splash-yellow-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--fg-yellow), transparent);
}

/* ===========================
   SCREEN 2-4: ONBOARDING
   =========================== */
.onboarding-screen {
  background: #0F0F0F;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.onboarding-visual {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.onboarding-bg-shape {
  position: absolute;
  inset: 0;
  opacity: 0.08;
}

.onboarding-illus {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.onboarding-icon-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
}

.onboarding-content {
  padding: 32px 28px;
  background: #161616;
  border-radius: 32px 32px 0 0;
  flex-shrink: 0;
}

.onboarding-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 24px;
}

.onboarding-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.2);
  transition: all 0.3s;
}

.onboarding-dot.active {
  width: 20px;
  background: var(--fg-yellow);
}

.onboarding-title {
  font-family: var(--font-primary);
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 12px;
}

.onboarding-title span { color: var(--fg-yellow); }

.onboarding-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 32px;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  background: var(--fg-yellow);
  color: var(--fg-black);
  border: none;
  border-radius: var(--r-lg);
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-yellow);
  transition: all 0.2s;
  letter-spacing: 0.2px;
}

.btn-primary:hover { background: var(--fg-yellow-light); transform: translateY(-1px); box-shadow: var(--shadow-yellow-lg); }

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  background: transparent;
  color: rgba(255,255,255,0.4);
  border: none;
  border-radius: var(--r-lg);
  font-size: 14px;
  cursor: pointer;
  margin-top: 8px;
  transition: color 0.2s;
}

.btn-secondary:hover { color: rgba(255,255,255,0.7); }

/* ===========================
   SCREEN 5: LOGIN
   =========================== */
.login-screen {
  background: #0F0F0F;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 54px 0 0;
}

.login-header {
  padding: 32px 28px 24px;
}

.login-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.login-logo-icon {
  width: 44px;
  height: 44px;
  background: #1A1A1A;
  border-radius: 12px;
  border: 1px solid #2A2A2A;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-logo-text {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  color: #FFF;
}

.login-title {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 800;
  color: #FFF;
  line-height: 1.2;
  margin-bottom: 8px;
}

.login-title span { color: var(--fg-yellow); }

.login-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
}

.login-body {
  flex: 1;
  padding: 0 28px;
}

.login-tabs {
  display: flex;
  background: #1A1A1A;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
}

.login-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
}

.login-tab.active {
  background: var(--fg-yellow);
  color: var(--fg-black);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  display: block;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-input-wrap {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: #1A1A1A;
  border: 1.5px solid #2A2A2A;
  border-radius: var(--r-md);
  color: #FFF;
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus { border-color: var(--fg-yellow); }
.form-input::placeholder { color: rgba(255,255,255,0.25); }

.form-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.3);
  font-size: 16px;
}

.form-input-action {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.3);
  font-size: 14px;
  cursor: pointer;
}

.login-forgot {
  text-align: right;
  margin-top: 8px;
}

.login-forgot a {
  font-size: 13px;
  color: var(--fg-yellow);
  text-decoration: none;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.login-divider-line {
  flex: 1;
  height: 1px;
  background: #2A2A2A;
}

.login-divider-text {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.biometric-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: #1A1A1A;
  border: 1.5px solid #2A2A2A;
  border-radius: var(--r-md);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.biometric-btn:hover { border-color: rgba(245,210,74,0.4); color: var(--fg-yellow); }
.biometric-btn i { font-size: 20px; }

.login-signup {
  text-align: center;
  margin-top: 20px;
  padding-bottom: 32px;
  font-size: 14px;
  color: rgba(255,255,255,0.4);
}

.login-signup a {
  color: var(--fg-yellow);
  font-weight: 600;
  text-decoration: none;
}

/* ===========================
   SCREEN 6: HOME
   =========================== */
.home-screen {
  background: #F4F4F5;
  min-height: 100%;
  padding-bottom: 90px;
}

.home-header {
  background: var(--fg-black-deep);
  padding: 56px 20px 24px;
  position: relative;
  overflow: hidden;
}

.home-header-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(245,210,74,0.15) 0%, transparent 60%);
}

.home-header-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.home-greeting-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-greeting {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 800;
  color: #FFF;
  line-height: 1.2;
}

.home-greeting span { color: var(--fg-yellow); }

.home-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--fg-yellow);
  background: #2A2A2A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.home-notif-btn {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 16px;
  position: relative;
  cursor: pointer;
}

.notif-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--fg-yellow);
  border-radius: 50%;
  border: 1.5px solid var(--fg-black-deep);
}

.home-top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Checkin card */
.checkin-card {
  flex: 1;
  background: var(--fg-yellow);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.checkin-card::before {
  content: '';
  position: absolute;
  right: -10px;
  top: -10px;
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
}

.checkin-card-icon { font-size: 22px; color: var(--fg-black); }

.checkin-card-text { flex: 1; }
.checkin-card-label { font-size: 10px; font-weight: 600; color: rgba(0,0,0,0.5); text-transform: uppercase; letter-spacing: 0.5px; }
.checkin-card-value { font-family: var(--font-primary); font-size: 14px; font-weight: 800; color: var(--fg-black); }

.plano-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  cursor: pointer;
}

.plano-badge-label { font-size: 9px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.5px; }
.plano-badge-value { font-size: 12px; font-weight: 700; color: #FFF; margin-top: 2px; }

/* Section */
.section {
  padding: 20px 16px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg-black);
}

.section-link {
  font-size: 13px;
  color: var(--gray-500);
  text-decoration: none;
  font-weight: 500;
}

/* Status card */
.status-card {
  background: var(--fg-black);
  border-radius: var(--r-xl);
  padding: 18px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.status-card-accent {
  position: absolute;
  right: -20px;
  top: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(245,210,74,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.status-card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.status-card-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.status-card-value {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 800;
  color: #FFF;
}

.status-card-tag {
  background: rgba(34,197,94,0.15);
  color: var(--success);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(34,197,94,0.2);
}

.status-card-progress {
  margin-top: 14px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill {
  height: 100%;
  background: var(--fg-yellow);
  border-radius: 3px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

/* Quick actions */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 4px;
}

.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.quick-action-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.2s;
}

.quick-action-icon:hover { transform: scale(1.05); }
.quick-action-icon.yellow { background: rgba(245,210,74,0.15); color: var(--fg-yellow-dark); }
.quick-action-icon.dark { background: var(--fg-black); color: #FFF; }
.quick-action-icon.blue { background: rgba(59,130,246,0.12); color: var(--info); }
.quick-action-icon.green { background: rgba(34,197,94,0.12); color: var(--success); }
.quick-action-icon.red { background: rgba(239,68,68,0.12); color: var(--error); }
.quick-action-icon.purple { background: rgba(168,85,247,0.12); color: #A855F7; }
.quick-action-icon.orange { background: rgba(249,115,22,0.12); color: #F97316; }

.quick-action-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-600);
  text-align: center;
  line-height: 1.3;
}

/* Next class card */
.next-class-card {
  background: #FFF;
  border-radius: var(--r-lg);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
}

.next-class-time-badge {
  background: var(--fg-black);
  color: var(--fg-yellow);
  padding: 8px 10px;
  border-radius: 12px;
  text-align: center;
  flex-shrink: 0;
  min-width: 56px;
}

.next-class-time {
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-primary);
}

.next-class-period { font-size: 10px; color: rgba(255,255,255,0.5); }

.next-class-info { flex: 1; }
.next-class-name { font-size: 14px; font-weight: 700; color: var(--fg-black); margin-bottom: 2px; }
.next-class-meta { font-size: 12px; color: var(--gray-500); display: flex; gap: 8px; align-items: center; }
.next-class-meta i { font-size: 10px; }

.class-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.class-status-dot.confirmed { background: var(--success); }
.class-status-dot.pending { background: var(--warning); }

/* Alert card */
.alert-card {
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.alert-card.warning { background: var(--warning-light); border-left: 3px solid var(--warning); }
.alert-card.info { background: var(--info-light); border-left: 3px solid var(--info); }
.alert-card.success { background: var(--success-light); border-left: 3px solid var(--success); }

.alert-card-icon { font-size: 16px; margin-top: 1px; flex-shrink: 0; }
.alert-card.warning .alert-card-icon { color: var(--warning); }
.alert-card.info .alert-card-icon { color: var(--info); }
.alert-card.success .alert-card-icon { color: var(--success); }

.alert-card-text .alert-title { font-size: 13px; font-weight: 700; color: var(--fg-black); }
.alert-card-text .alert-desc { font-size: 12px; color: var(--gray-600); margin-top: 2px; }

/* Motivational card */
.motivation-card {
  background: linear-gradient(135deg, var(--fg-black) 0%, #2A2A1A 100%);
  border-radius: var(--r-xl);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.motivation-card::after {
  content: '"';
  position: absolute;
  right: 16px;
  top: -10px;
  font-size: 100px;
  color: rgba(245,210,74,0.08);
  font-family: Georgia, serif;
  line-height: 1;
}

.motivation-quote {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  color: #FFF;
  line-height: 1.4;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.motivation-quote span { color: var(--fg-yellow); }

.motivation-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.motivation-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.motivation-stat i { color: var(--fg-yellow); font-size: 11px; }
.motivation-stat strong { color: #FFF; font-weight: 700; }

/* ===========================
   BOTTOM NAV
   =========================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: #FFF;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px 12px;
  z-index: 500;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 56px;
}

.bottom-nav-item i {
  font-size: 20px;
  color: var(--gray-400);
  transition: color 0.2s;
}

.bottom-nav-item span {
  font-size: 10px;
  color: var(--gray-400);
  font-weight: 500;
  transition: color 0.2s;
}

.bottom-nav-item.active i { color: var(--fg-black); }
.bottom-nav-item.active span { color: var(--fg-black); font-weight: 700; }
.bottom-nav-item.active { background: rgba(0,0,0,0.04); }

.bottom-nav-fab {
  width: 52px;
  height: 52px;
  background: var(--fg-yellow);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--shadow-yellow);
  transition: transform 0.2s;
  margin-top: -8px;
}

.bottom-nav-fab:hover { transform: scale(1.05); }

/* ===========================
   INNER SCREEN HEADER
   =========================== */
.inner-header {
  background: #FFF;
  padding: 56px 20px 16px;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.inner-header-dark {
  background: var(--fg-black);
  padding: 56px 20px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.inner-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.back-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--fg-black);
  cursor: pointer;
  flex-shrink: 0;
}

.back-btn-dark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #FFF;
  cursor: pointer;
  flex-shrink: 0;
}

.inner-header-title {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg-black);
  flex: 1;
}

.inner-header-title-white {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  color: #FFF;
  flex: 1;
}

.inner-header-action {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--gray-600);
  cursor: pointer;
  flex-shrink: 0;
}

/* ===========================
   CARDS GENERIC
   =========================== */
.card {
  background: #FFF;
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.card-dark {
  background: var(--fg-black);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg-black);
  margin-bottom: 4px;
}

.card-title-white {
  font-size: 15px;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 4px;
}

.card-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ===========================
   SCREEN 7: AVALIAÇÃO INTEGRADA
   =========================== */
.avaliacao-hero {
  background: var(--fg-black);
  padding: 56px 20px 32px;
  position: relative;
  overflow: hidden;
}

.avaliacao-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(245,210,74,0.12) 0%, transparent 60%);
}

.avaliacao-hero-content { position: relative; z-index: 1; }

.avaliacao-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.avaliacao-title {
  font-family: var(--font-primary);
  font-size: 26px;
  font-weight: 800;
  color: #FFF;
  line-height: 1.2;
  margin-bottom: 12px;
}

.avaliacao-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.pilar-cards-wrap {
  padding: 20px 16px;
}

.pilar-card {
  border-radius: var(--r-xl);
  padding: 20px;
  margin-bottom: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}

.pilar-card:hover { transform: translateY(-2px); }

.pilar-card.fisico { background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%); border: 1px solid rgba(59,130,246,0.2); }
.pilar-card.emocional { background: linear-gradient(135deg, #1A1A2E 0%, #2D1B2E 100%); border: 1px solid rgba(168,85,247,0.2); }
.pilar-card.nutricional { background: linear-gradient(135deg, #1A2E1A 0%, #1B2E1B 100%); border: 1px solid rgba(34,197,94,0.2); }

.pilar-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.pilar-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.pilar-icon-wrap.blue { background: rgba(59,130,246,0.15); }
.pilar-icon-wrap.purple { background: rgba(168,85,247,0.15); }
.pilar-icon-wrap.green { background: rgba(34,197,94,0.15); }

.pilar-status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.pilar-status.complete { background: rgba(34,197,94,0.15); color: var(--success); }
.pilar-status.partial { background: rgba(245,158,11,0.15); color: var(--warning); }
.pilar-status.pending { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.4); }

.pilar-card-title {
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 6px;
}

.pilar-card-desc { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 14px; }

.pilar-mini-progress {
  display: flex;
  gap: 4px;
}

.pilar-prog-dot {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
}

.pilar-prog-dot.filled.blue { background: var(--info); }
.pilar-prog-dot.filled.purple { background: #A855F7; }
.pilar-prog-dot.filled.green { background: var(--success); }

.plano-gerado-card {
  background: var(--fg-yellow);
  border-radius: var(--r-xl);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  margin: 0 16px 16px;
  box-shadow: var(--shadow-yellow);
}

.plano-gerado-icon {
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.plano-gerado-text { flex: 1; }
.plano-gerado-label { font-size: 11px; font-weight: 600; color: rgba(0,0,0,0.5); text-transform: uppercase; letter-spacing: 0.5px; }
.plano-gerado-title { font-family: var(--font-primary); font-size: 16px; font-weight: 800; color: var(--fg-black); }

/* ===========================
   SCREEN: PLANO PERSONALIZADO
   =========================== */
.plano-hero {
  background: var(--fg-black);
  padding: 56px 20px 24px;
  position: relative;
  overflow: hidden;
}

.plano-hero-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245,210,74,0.2) 0%, transparent 70%);
  top: 20px;
  right: -40px;
}

.plano-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

.plano-hero-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.plano-hero-name {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 800;
  color: #FFF;
}

.plano-score-ring {
  position: relative;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.plano-score-ring svg { transform: rotate(-90deg); }

.plano-score-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.plano-score-num {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 800;
  color: var(--fg-yellow);
  line-height: 1;
}

.plano-score-label { font-size: 9px; color: rgba(255,255,255,0.4); }

.plano-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 16px 0;
  background: var(--fg-black);
  overflow-x: auto;
}

.plano-tabs::-webkit-scrollbar { display: none; }

.plano-tab {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.plano-tab.active {
  background: var(--fg-yellow);
  color: var(--fg-black);
}

/* ===========================
   TREINO SCREEN
   =========================== */
.treino-day-header {
  background: var(--fg-black);
  padding: 56px 20px 24px;
  position: relative;
  overflow: hidden;
}

.treino-day-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 100% 50%, rgba(245,210,74,0.15) 0%, transparent 50%);
}

.treino-day-label {
  font-size: 11px;
  color: var(--fg-yellow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.treino-day-title {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.treino-day-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.treino-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px;
}

.treino-stat-item {
  background: #FFF;
  border-radius: var(--r-md);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.treino-stat-value {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 800;
  color: var(--fg-black);
}

.treino-stat-label { font-size: 11px; color: var(--gray-500); margin-top: 2px; }

.exercicio-item {
  background: #FFF;
  border-radius: var(--r-lg);
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.exercicio-item.done {
  opacity: 0.7;
}

.exercicio-item.done::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  border: 2px solid var(--success);
}

.exercicio-thumb {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.exercicio-info { flex: 1; }
.exercicio-name { font-size: 14px; font-weight: 700; color: var(--fg-black); margin-bottom: 4px; }
.exercicio-details { font-size: 12px; color: var(--gray-500); margin-bottom: 8px; }

.exercicio-sets {
  display: flex;
  gap: 6px;
}

.set-badge {
  background: var(--gray-100);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-600);
}

.set-badge.done { background: var(--success-light); color: var(--success); }

.exercicio-check {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.exercicio-check.done { background: var(--success); border-color: var(--success); color: #FFF; }

.btn-start-treino {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  padding: 16px;
  background: var(--fg-black);
  color: var(--fg-yellow);
  border: none;
  border-radius: var(--r-lg);
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

/* ===========================
   AGENDA SCREEN
   =========================== */
.agenda-calendar {
  background: #FFF;
  padding: 16px;
  margin-bottom: 0;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cal-month {
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 700;
  color: var(--fg-black);
}

.cal-nav {
  display: flex;
  gap: 8px;
}

.cal-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--gray-100);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  color: var(--gray-600);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.cal-weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  padding: 4px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.cal-day:hover { background: var(--gray-100); }
.cal-day.today { background: var(--fg-black); color: #FFF; font-weight: 700; }
.cal-day.has-event::after { content: ''; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--fg-yellow); }
.cal-day.today.has-event::after { background: var(--fg-yellow); }
.cal-day.other-month { color: var(--gray-300); }
.cal-day.selected { background: var(--fg-yellow); color: var(--fg-black); font-weight: 700; }

/* ===========================
   MODALIDADES SCREEN
   =========================== */
.modalidades-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}

.modalidade-card {
  border-radius: var(--r-xl);
  padding: 20px 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s;
}

.modalidade-card:hover { transform: translateY(-2px); }

.modalidade-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.modalidade-name {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 4px;
}

.modalidade-count {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.modalidade-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

.modalidade-badge.matriculado { background: var(--fg-yellow); color: var(--fg-black); }
.modalidade-badge.disponivel { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); }

/* ===========================
   FINANCEIRO SCREEN
   =========================== */
.financeiro-header {
  background: var(--fg-black);
  padding: 56px 20px 32px;
  position: relative;
  overflow: hidden;
}

.financeiro-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 100%, rgba(245,210,74,0.12) 0%, transparent 60%);
}

.financeiro-balance {
  position: relative;
  z-index: 1;
}

.financeiro-balance-label { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }

.financeiro-balance-value {
  font-family: var(--font-primary);
  font-size: 36px;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 8px;
}

.financeiro-vencimento {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,158,11,0.15);
  color: var(--warning);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(245,158,11,0.2);
}

.pagamento-item {
  background: #FFF;
  border-radius: var(--r-lg);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

.pagamento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.pagamento-icon.pago { background: var(--success-light); color: var(--success); }
.pagamento-icon.pendente { background: var(--warning-light); color: var(--warning); }

.pagamento-info { flex: 1; }
.pagamento-desc { font-size: 14px; font-weight: 600; color: var(--fg-black); }
.pagamento-data { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

.pagamento-valor { font-family: var(--font-primary); font-size: 16px; font-weight: 800; }
.pagamento-valor.pago { color: var(--success); }
.pagamento-valor.pendente { color: var(--warning); }

/* ===========================
   FREQUÊNCIA SCREEN
   =========================== */
.frequencia-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px;
}

.freq-stat {
  background: #FFF;
  border-radius: var(--r-lg);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.freq-stat-value {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 800;
  color: var(--fg-black);
  line-height: 1;
}

.freq-stat-label { font-size: 11px; color: var(--gray-500); margin-top: 4px; }

.freq-calendar-mini {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 0 16px;
  margin-bottom: 16px;
}

.freq-day-dot {
  aspect-ratio: 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
}

.freq-day-dot.present { background: var(--fg-yellow); color: var(--fg-black); }
.freq-day-dot.absent { background: var(--gray-100); color: var(--gray-400); }
.freq-day-dot.today { background: var(--fg-black); color: #FFF; }
.freq-day-dot.future { background: var(--gray-50); color: var(--gray-200); border: 1px dashed var(--gray-200); }

.streak-card {
  background: linear-gradient(135deg, var(--fg-black) 0%, #1A1A1A 100%);
  border-radius: var(--r-xl);
  padding: 20px;
  margin: 0 16px 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.streak-fire {
  font-size: 40px;
  flex-shrink: 0;
}

.streak-info { flex: 1; }
.streak-label { font-size: 12px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.streak-value { font-family: var(--font-primary); font-size: 28px; font-weight: 800; color: var(--fg-yellow); line-height: 1; }
.streak-sub { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* ===========================
   CHECK-IN SCREEN
   =========================== */
.checkin-screen {
  background: var(--fg-black);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: 90px;
}

.qr-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
}

.qr-title {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 800;
  color: #FFF;
  text-align: center;
  margin-bottom: 8px;
}

.qr-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-bottom: 32px;
}

.qr-code-wrap {
  background: #FFF;
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: 0 0 60px rgba(245,210,74,0.2);
  margin-bottom: 24px;
  position: relative;
}

.qr-code-inner {
  width: 200px;
  height: 200px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
}

.qr-cell {
  border-radius: 2px;
  background: var(--fg-black);
}

.qr-cell.w { background: #FFF; }

.qr-valid-badge {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--success);
  color: #FFF;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.carteirinha {
  background: #1A1A1A;
  border-radius: var(--r-xl);
  padding: 20px;
  border: 1px solid #2A2A2A;
  width: 100%;
  margin-top: 24px;
}

.carteirinha-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.carteirinha-logo {
  width: 40px;
  height: 40px;
  background: var(--fg-black);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2A2A2A;
}

.carteirinha-brand { font-family: var(--font-primary); font-size: 14px; font-weight: 700; color: #FFF; }
.carteirinha-type { font-size: 11px; color: var(--fg-yellow); }

.carteirinha-divider { height: 1px; background: #2A2A2A; margin-bottom: 16px; }

.carteirinha-info-row { display: flex; justify-content: space-between; align-items: flex-end; }

.carteirinha-name { font-family: var(--font-primary); font-size: 18px; font-weight: 700; color: #FFF; }
.carteirinha-plan { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.carteirinha-valid { font-size: 12px; color: rgba(255,255,255,0.4); text-align: right; }
.carteirinha-valid strong { color: var(--fg-yellow); display: block; font-size: 14px; }

/* ===========================
   ATENDIMENTO / CHAT
   =========================== */
.chat-screen {
  background: var(--gray-50);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background: #FFF;
  padding: 56px 16px 16px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.chat-avatar {
  width: 42px;
  height: 42px;
  background: var(--fg-yellow);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.chat-contact-info { flex: 1; }
.chat-contact-name { font-size: 15px; font-weight: 700; color: var(--fg-black); }
.chat-contact-status { font-size: 12px; color: var(--success); display: flex; align-items: center; gap: 4px; }
.chat-online-dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%; }

.chat-messages {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.chat-msg {
  max-width: 80%;
  position: relative;
}

.chat-msg.received { align-self: flex-start; }
.chat-msg.sent { align-self: flex-end; }

.chat-msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.chat-msg.received .chat-msg-bubble {
  background: #FFF;
  color: var(--fg-black);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.chat-msg.sent .chat-msg-bubble {
  background: var(--fg-black);
  color: #FFF;
  border-bottom-right-radius: 4px;
}

.chat-msg-time {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 4px;
  text-align: right;
}

.chat-msg.received .chat-msg-time { text-align: left; }

.chat-quick-replies {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 16px;
}

.chat-quick-replies::-webkit-scrollbar { display: none; }

.quick-reply-chip {
  padding: 8px 14px;
  background: #FFF;
  border: 1.5px solid var(--gray-200);
  border-radius: 20px;
  font-size: 13px;
  color: var(--fg-black);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.quick-reply-chip:hover { border-color: var(--fg-yellow); color: var(--fg-black); background: rgba(245,210,74,0.05); }

.chat-input-wrap {
  background: #FFF;
  border-top: 1px solid var(--gray-200);
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.chat-input {
  flex: 1;
  background: var(--gray-100);
  border: none;
  border-radius: 22px;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  color: var(--fg-black);
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  background: var(--fg-yellow);
  border-radius: 12px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  color: var(--fg-black);
  box-shadow: var(--shadow-yellow);
}

/* ===========================
   PERFIL SCREEN
   =========================== */
.perfil-screen {
  background: var(--gray-50);
  min-height: 100%;
  padding-bottom: 90px;
}

.perfil-cover {
  background: var(--fg-black);
  height: 180px;
  position: relative;
  overflow: hidden;
}

.perfil-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(245,210,74,0.12) 0%, transparent 60%);
}

.perfil-avatar-wrap {
  position: absolute;
  bottom: -36px;
  left: 20px;
  z-index: 2;
}

.perfil-avatar {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  border: 3px solid #FFF;
  background: var(--gray-200);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: var(--shadow-md);
}

.perfil-edit-btn-abs {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #FFF;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.perfil-info {
  padding: 52px 20px 16px;
}

.perfil-name {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 800;
  color: var(--fg-black);
  margin-bottom: 4px;
}

.perfil-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-500);
}

.perfil-plan-badge {
  background: var(--fg-black);
  color: var(--fg-yellow);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.perfil-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.perfil-stat {
  background: #FFF;
  border-radius: var(--r-md);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.perfil-stat-value { font-family: var(--font-primary); font-size: 20px; font-weight: 800; color: var(--fg-black); }
.perfil-stat-label { font-size: 11px; color: var(--gray-500); margin-top: 2px; }

.menu-list { padding: 0 16px; }

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #FFF;
  border-radius: var(--r-md);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.menu-item:hover { transform: translateX(2px); box-shadow: var(--shadow-md); }

.menu-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.menu-item-icon.yellow { background: rgba(245,210,74,0.15); color: var(--fg-yellow-dark); }
.menu-item-icon.dark { background: var(--gray-100); color: var(--gray-700); }
.menu-item-icon.blue { background: var(--info-light); color: var(--info); }
.menu-item-icon.green { background: var(--success-light); color: var(--success); }
.menu-item-icon.red { background: var(--error-light); color: var(--error); }

.menu-item-text { flex: 1; }
.menu-item-label { font-size: 14px; font-weight: 600; color: var(--fg-black); }
.menu-item-desc { font-size: 12px; color: var(--gray-500); margin-top: 1px; }

.menu-item-arrow { font-size: 12px; color: var(--gray-400); }

/* ===========================
   NOTIFICAÇÕES
   =========================== */
.notif-item {
  background: #FFF;
  border-radius: var(--r-lg);
  padding: 14px;
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}

.notif-item:hover { transform: translateX(2px); }

.notif-item.unread { border-left: 3px solid var(--fg-yellow); }

.notif-unread-dot {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  background: var(--fg-yellow);
  border-radius: 50%;
}

.notif-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.notif-icon.treino { background: rgba(59,130,246,0.1); color: var(--info); }
.notif-icon.pagamento { background: rgba(245,158,11,0.1); color: var(--warning); }
.notif-icon.aula { background: rgba(245,210,74,0.15); color: var(--fg-yellow-dark); }
.notif-icon.aviso { background: rgba(239,68,68,0.1); color: var(--error); }
.notif-icon.conquista { background: rgba(34,197,94,0.1); color: var(--success); }

.notif-content { flex: 1; }
.notif-title { font-size: 14px; font-weight: 700; color: var(--fg-black); margin-bottom: 4px; }
.notif-desc { font-size: 13px; color: var(--gray-500); line-height: 1.4; }
.notif-time { font-size: 11px; color: var(--gray-400); margin-top: 6px; }

/* ===========================
   GRADE HORÁRIA
   =========================== */
.grade-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px;
}

.grade-filters::-webkit-scrollbar { display: none; }

.filter-chip {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--gray-200);
  background: #FFF;
  color: var(--gray-600);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.filter-chip.active { background: var(--fg-black); color: #FFF; border-color: var(--fg-black); }
.filter-chip:hover { border-color: var(--fg-black); }

.aula-horario-item {
  background: #FFF;
  border-radius: var(--r-lg);
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.aula-time-col {
  text-align: center;
  flex-shrink: 0;
  min-width: 52px;
}

.aula-time { font-family: var(--font-primary); font-size: 16px; font-weight: 700; color: var(--fg-black); }
.aula-duration { font-size: 11px; color: var(--gray-400); }

.aula-info-col { flex: 1; }
.aula-name { font-size: 14px; font-weight: 700; color: var(--fg-black); margin-bottom: 4px; }
.aula-professor { font-size: 12px; color: var(--gray-500); margin-bottom: 8px; }

.aula-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.aula-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.aula-tag.vagas { background: var(--success-light); color: var(--success); }
.aula-tag.lotado { background: var(--error-light); color: var(--error); }
.aula-tag.matriculado { background: var(--fg-black); color: var(--fg-yellow); }
.aula-tag.reposicao { background: var(--info-light); color: var(--info); }
.aula-tag.sala { background: var(--gray-100); color: var(--gray-600); }

/* ===========================
   REPOSIÇÃO DE AULAS
   =========================== */
.reposicao-falta-item {
  background: #FFF;
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

.reposicao-falta-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.reposicao-falta-aula { font-size: 14px; font-weight: 700; color: var(--fg-black); }
.reposicao-falta-data { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

.reposicao-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--info-light);
  color: var(--info);
}

.reposicao-options { display: flex; flex-direction: column; gap: 8px; }

.reposicao-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--gray-50);
  border-radius: var(--r-md);
  border: 1.5px solid var(--gray-100);
  cursor: pointer;
  transition: all 0.2s;
}

.reposicao-option:hover { border-color: var(--fg-yellow); background: rgba(245,210,74,0.03); }
.reposicao-option.selected { border-color: var(--fg-yellow); background: rgba(245,210,74,0.05); }

.reposicao-option-time { font-size: 13px; font-weight: 700; color: var(--fg-black); min-width: 90px; }
.reposicao-option-info { flex: 1; font-size: 12px; color: var(--gray-500); }
.reposicao-option-vagas { font-size: 12px; color: var(--success); font-weight: 600; }

/* ===========================
   EVOLUÇÃO
   =========================== */
.evolucao-ring-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 20px 16px;
}

.evolucao-ring-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.ring-wrap {
  position: relative;
  width: 80px;
  height: 80px;
}

.ring-wrap svg { transform: rotate(-90deg); }

.ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-pct {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 800;
  color: var(--fg-black);
  line-height: 1;
}

.ring-label-small { font-size: 9px; color: var(--gray-400); }
.ring-label { font-size: 12px; font-weight: 600; color: var(--gray-700); text-align: center; }

.conquista-item {
  background: #FFF;
  border-radius: var(--r-lg);
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

.conquista-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.conquista-info { flex: 1; }
.conquista-name { font-size: 14px; font-weight: 700; color: var(--fg-black); }
.conquista-desc { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.conquista-date { font-size: 11px; color: var(--gray-400); margin-top: 4px; }

/* ===========================
   SEGURANÇA
   =========================== */
.security-item {
  background: #FFF;
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.security-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.security-item-info { flex: 1; }
.security-item-label { font-size: 14px; font-weight: 600; color: var(--fg-black); }
.security-item-desc { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

.toggle-switch {
  width: 44px;
  height: 26px;
  background: var(--success);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 4px;
  width: 18px;
  height: 18px;
  background: #FFF;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.toggle-switch.off { background: var(--gray-300); }
.toggle-switch.off::after { right: auto; left: 4px; }

/* ===========================
   BIBLIOTECA
   =========================== */
.biblioteca-card {
  background: #FFF;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.biblioteca-card-thumb {
  height: 100px;
  background: var(--fg-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}

.biblioteca-card-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(245,210,74,0.1) 0%, transparent 70%);
}

.biblioteca-play-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: var(--fg-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--fg-black);
}

.biblioteca-card-info { padding: 12px; }
.biblioteca-card-title { font-size: 14px; font-weight: 700; color: var(--fg-black); margin-bottom: 4px; }
.biblioteca-card-meta { font-size: 12px; color: var(--gray-500); display: flex; gap: 8px; }

/* ===========================
   EMOCIONAL SCREEN
   =========================== */
.mood-selector {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 20px 16px;
}

.mood-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.mood-item:hover { transform: scale(1.1); }
.mood-item.selected .mood-emoji-wrap { border-color: var(--fg-yellow); box-shadow: var(--shadow-yellow); }

.mood-emoji-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #FFF;
  border: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.mood-label { font-size: 11px; color: var(--gray-500); font-weight: 500; }

/* ===========================
   NUTRICIONAL SCREEN
   =========================== */
.nutri-macro-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px;
}

.nutri-macro-item {
  background: #FFF;
  border-radius: var(--r-md);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.nutri-macro-value { font-family: var(--font-primary); font-size: 18px; font-weight: 800; }
.nutri-macro-unit { font-size: 11px; color: var(--gray-500); font-weight: normal; }
.nutri-macro-label { font-size: 11px; color: var(--gray-500); margin-top: 4px; }

.nutri-macro-item.carbs .nutri-macro-value { color: var(--info); }
.nutri-macro-item.proteina .nutri-macro-value { color: var(--error); }
.nutri-macro-item.gordura .nutri-macro-value { color: var(--warning); }

.refeicao-item {
  background: #FFF;
  border-radius: var(--r-lg);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

.refeicao-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.refeicao-name { font-size: 14px; font-weight: 700; color: var(--fg-black); display: flex; align-items: center; gap: 8px; }
.refeicao-kcal { font-size: 12px; color: var(--gray-500); }
.refeicao-status { width: 8px; height: 8px; border-radius: 50%; }
.refeicao-status.done { background: var(--success); }
.refeicao-status.pending { background: var(--gray-300); }

.refeicao-alimentos { display: flex; flex-wrap: wrap; gap: 6px; }
.alimento-chip { background: var(--gray-100); border-radius: 6px; padding: 4px 10px; font-size: 12px; color: var(--gray-600); }

/* ===========================
   SCROLL HELPERS
   =========================== */
.scrollable-screen {
  overflow-y: auto;
  height: 100%;
}

.scrollable-screen::-webkit-scrollbar { display: none; }

.spacer { height: 20px; }
.spacer-sm { height: 10px; }

/* ===========================
   TYPOGRAPHY UTILITIES
   =========================== */
.text-yellow { color: var(--fg-yellow); }
.text-white { color: #FFF; }
.text-muted { color: var(--gray-500); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 800; }

/* ===========================
   ANIMATE
   =========================== */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen.active > * {
  animation: fadeSlideIn 0.25s ease forwards;
}

/* ===========================
   RESPONSIVE PRESENTER
   =========================== */
@media (max-width: 900px) {
  .screens-thumbnails { display: none; }
  .phone-stage { padding: 20px; }
  .presenter-sub { display: none; }
}

@media (max-height: 780px) {
  .phone-frame {
    width: 340px;
    height: 720px;
  }
}
