/* ===================================================================
   OxygenFit OS - Production CSS Stylesheet
   Design System: OLED Black (#000000), Dark Surfaces (#141416, #1C1C1E),
   Lime Green Accent (#A3FF00), Coral Red (#FF5252), iOS Native UI
   =================================================================== */

:root {
  --bg-black: #08090C;
  --bg-deep: #0D0E14;
  --surface-primary: #121319;
  --surface-secondary: #181A22;
  --surface-elevated: #222530;
  --accent-lime: #00F0B5; /* Precision Kinetic Mint */
  --accent-lime-dim: #00D19E;
  --accent-coral: #FF5252;
  --accent-orange: #FF6B00;
  --accent-titanium: #E2E4EC;
  --accent-blue: #3A86FF;
  --text-primary: #F5F6FA;
  --text-secondary: #9FA4B6;
  --text-muted: #5D6275;
  --border-color: #242733;
  --border-titanium: #313546;
  --font-display: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

html, body {
  font-family: var(--font-stack);
  background: var(--bg-black);
  color: var(--text-primary);
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

#app {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg-black);
  overflow-x: hidden;
}

/* Safe area for notch devices */
.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: env(safe-area-inset-top, 20px) 16px calc(env(safe-area-inset-bottom, 0px) + 70px) 16px;
  -webkit-overflow-scrolling: touch;
}

.main-content::-webkit-scrollbar {
  width: 4px;
}

.main-content::-webkit-scrollbar-track {
  background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
  background: #262629;
  border-radius: 4px;
}

/* ===== SCREENS ===== */
.screen {
  display: none;
  animation: screenFadeIn 0.15s ease-out;
}

.screen.active {
  display: block;
}

@keyframes screenFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===== LOGIN SCREEN ===== */
.login-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px;
  background: #000000;
}

.login-logo {
  text-align: center;
  margin-bottom: 48px;
}

.logo-icon {
  font-size: 48px;
  font-weight: 800;
  color: #A3FF00;
  margin-bottom: 8px;
  letter-spacing: -2px;
  line-height: 1;
}

.login-logo h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #FFFFFF;
}

.login-subtitle {
  color: #8E8E93;
  font-size: 14px;
  margin-top: 4px;
  font-weight: 400;
}

.login-form {
  width: 100%;
  max-width: 320px;
}

.login-label {
  color: #8E8E93;
  font-size: 13px;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.login-input {
  width: 100%;
  background: #1C1C1E;
  border: 1px solid #262629;
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 20px;
  padding: 14px 16px;
  text-align: center;
  letter-spacing: 8px;
  font-weight: 600;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s ease;
}

.login-input:focus {
  border-color: #A3FF00;
}

.login-input[type="password"] {
  letter-spacing: 4px;
}

.login-button {
  width: 100%;
  background: #A3FF00;
  color: #000000;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  padding: 14px;
  margin-top: 16px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.05s ease;
}

.login-button:active {
  opacity: 0.8;
  transform: scale(0.99);
}

.login-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.login-error {
  color: #FF5252;
  font-size: 13px;
  text-align: center;
  margin-top: 12px;
  min-height: 18px;
  font-weight: 500;
}

/* ===== TAB BAR (STRICTLY HIDDEN BY DEFAULT, ONLY SHOWN IN AUTHENTICATED OWNER OS) ===== */
.tab-bar {
  display: none !important;
}

.tab-bar.tab-bar-visible {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(18, 20, 28, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex !important;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0 calc(env(safe-area-inset-bottom, 8px) + 4px) 0;
  z-index: 999;
}

.tab-item {
  background: none;
  border: none;
  color: #48484A;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 12px;
  cursor: pointer;
  transition: color 0.15s;
  font-weight: 500;
  text-decoration: none;
}

.tab-item.active {
  color: #A3FF00;
}

.tab-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}

.tab-item.active .tab-icon svg {
  stroke: #A3FF00;
}

/* ===== SCREEN HEADER ===== */
.screen-header {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.screen-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: left;
  color: #FFFFFF;
  line-height: 1.15;
}

.screen-subtitle {
  color: #8E8E93;
  font-size: 15px;
  margin-top: 2px;
}

/* ===== DAY TABS ===== */
.day-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.day-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 8px;
  background: #1C1C1E;
  border: 1px solid #262629;
  color: #8E8E93;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.day-tab.active {
  background: #A3FF00;
  color: #000000;
  border-color: #A3FF00;
}

.day-tab.rest {
  border-color: #48484A;
}

.day-tab:active {
  opacity: 0.85;
}

/* ===== META TABLE ===== */
.meta-table {
  background: #141416;
  border-radius: 10px;
  padding: 2px 0;
  margin-bottom: 20px;
  border: 1px solid #262629;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #262629;
}

.meta-row:last-child {
  border-bottom: none;
}

.meta-label {
  color: #8E8E93;
  font-size: 14px;
}

.meta-value {
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
}

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

.section-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #FFFFFF;
}

.btn-start {
  background: #A3FF00;
  color: #000000;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-start:active {
  opacity: 0.8;
}

/* ===== EXERCISE LIST ===== */
.exercise-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.exercise-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #141416;
  padding: 14px 16px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid #262629;
  margin-bottom: 6px;
  transition: background-color 0.15s, border-color 0.15s;
}

.exercise-item:active {
  background: #1C1C1E;
}

.exercise-thumb {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #1C1C1E;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #262629;
}

.exercise-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
}

.exercise-info {
  flex: 1;
  min-width: 0;
}

.exercise-info-name {
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exercise-info-meta {
  font-size: 13px;
  color: #8E8E93;
  margin-top: 2px;
}

.exercise-arrow {
  color: #48484A;
  font-size: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* ===== EXERCISE DETAIL ===== */
.back-link {
  background: none;
  border: none;
  color: #A3FF00;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.back-link:active {
  opacity: 0.7;
}

.exercise-counter {
  color: #8E8E93;
  font-size: 14px;
  font-weight: 500;
}

.exercise-svg-container {
  width: 100%;
  max-width: 280px;
  margin: 16px auto;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #141416;
  border: 1px solid #262629;
  border-radius: 10px;
  padding: 12px;
  overflow: hidden;
}

.exercise-svg-container svg {
  width: 100%;
  height: 100%;
  display: block;
}

.exercise-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #FFFFFF;
  letter-spacing: -0.4px;
}

.exercise-note {
  color: #8E8E93;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.exercise-params {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.exercise-param {
  background: #1C1C1E;
  border: 1px solid #262629;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #8E8E93;
}

.exercise-param span {
  color: #FFFFFF;
  font-weight: 600;
  margin-left: 4px;
}

/* ===== SETS TABLE ===== */
.sets-header {
  display: grid;
  grid-template-columns: 50px 1fr 1fr 50px;
  gap: 8px;
  padding: 8px 12px;
  color: #48484A;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  text-align: center;
}

.sets-header > :first-child {
  text-align: center;
}

.sets-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.set-row {
  display: grid;
  grid-template-columns: 50px 1fr 1fr 50px;
  gap: 8px;
  padding: 8px 12px;
  align-items: center;
  background: #141416;
  border-radius: 10px;
  border: 1px solid #262629;
  transition: border-color 0.15s;
}

.set-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid #48484A;
  color: #48484A;
  background: transparent;
  transition: all 0.2s;
  margin: 0 auto;
}

.set-badge.completed {
  background: #A3FF00;
  border-color: #A3FF00;
  color: #000000;
}

.set-input {
  width: 100%;
  background: #1C1C1E;
  border: 1px solid #262629;
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 16px;
  padding: 8px 10px;
  text-align: center;
  outline: none;
  font-weight: 500;
  transition: border-color 0.2s;
}

.set-input:focus {
  border-color: #A3FF00;
}

.set-check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1C1C1E;
  border: 2px solid #48484A;
  color: transparent;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0 auto;
  user-select: none;
}

.set-check.checked {
  background: #A3FF00;
  border-color: #A3FF00;
  color: #000000;
}

/* ===== PROGRESSION BADGE ===== */
.progression-badge {
  background: rgba(163, 255, 0, 0.1);
  border: 1px solid #A3FF00;
  border-radius: 10px;
  padding: 12px 16px;
  color: #A3FF00;
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
  text-align: center;
  line-height: 1.4;
}

/* ===== EXERCISE NAVIGATION ===== */
.exercise-nav {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-bottom: 20px;
}

.btn-nav {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: #1C1C1E;
  border: 1px solid #262629;
  color: #FFFFFF;
  text-align: center;
  transition: background-color 0.15s, border-color 0.15s;
}

.btn-nav:active {
  background: #262629;
}

.btn-nav-primary {
  background: #A3FF00;
  color: #000000;
  border-color: #A3FF00;
}

.btn-nav-primary:active {
  opacity: 0.8;
}

/* ===== REST TIMER ===== */
.rest-timer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: screenFadeIn 0.2s ease-out;
}

.rest-timer-content {
  text-align: center;
  padding: 24px;
}

.rest-timer-label {
  color: #8E8E93;
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rest-timer-time {
  font-size: 72px;
  font-weight: 700;
  color: #A3FF00;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -1px;
}

.btn-timer-skip {
  background: none;
  border: 1px solid #48484A;
  border-radius: 10px;
  color: #8E8E93;
  font-size: 15px;
  padding: 10px 32px;
  margin-top: 24px;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s;
}

.btn-timer-skip:active {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

/* ===== MUSCLE MAP ===== */
.muscle-views {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.muscle-view-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  background: #1C1C1E;
  border: 1px solid #262629;
  color: #8E8E93;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.muscle-view-btn.active {
  background: #A3FF00;
  color: #000000;
  border-color: #A3FF00;
}

.muscle-map-container {
  max-width: 320px;
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.muscle-map-container svg {
  width: 100%;
  height: auto;
  display: block;
}

.muscle-map-container svg path {
  transition: fill 0.2s ease, opacity 0.2s ease;
}

.muscle-group-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.muscle-group-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 16px;
  background: #141416;
  border-radius: 10px;
  border: 1px solid #262629;
  margin-bottom: 6px;
}

.muscle-group-name {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
}

.muscle-group-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: #A3FF00;
}

.muscle-group-exercises {
  color: #8E8E93;
  font-size: 13px;
  margin-top: 4px;
}

/* ===== HISTORY / ANALYTICS ===== */
.history-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.history-tab {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  background: #1C1C1E;
  border: 1px solid #262629;
  color: #8E8E93;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.history-tab.active {
  background: #A3FF00;
  color: #000000;
  border-color: #A3FF00;
}

.htab-content {
  display: none;
}

.htab-content.active {
  display: block;
}

.month-header {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #8E8E93;
}

.analytics-cards {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.analytics-card {
  flex: 1;
  background: #141416;
  border-radius: 10px;
  border: 1px solid #262629;
  padding: 16px;
}

.analytics-label {
  color: #8E8E93;
  font-size: 13px;
  margin-bottom: 8px;
  font-weight: 500;
}

.analytics-value {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}

.analytics-green {
  color: #A3FF00;
}

.analytics-red {
  color: #FF5252;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 60px;
  margin-top: 12px;
}

.bar-chart-bar {
  flex: 1;
  background: #A3FF00;
  border-radius: 2px 2px 0 0;
  min-height: 2px;
  transition: height 0.3s;
}

.bar-chart-bar.empty {
  background: #262629;
}

/* Workout Log */
.workout-log-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.workout-log-item {
  background: #141416;
  border: 1px solid #262629;
  border-radius: 10px;
  padding: 14px 16px;
}

.workout-log-date {
  font-size: 14px;
  color: #8E8E93;
}

.workout-log-title {
  font-size: 16px;
  font-weight: 600;
  margin-top: 2px;
  color: #FFFFFF;
}

.workout-log-stats {
  font-size: 13px;
  color: #48484A;
  margin-top: 4px;
}

/* ===== CARDIO ===== */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  color: #8E8E93;
  font-size: 13px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
}

.form-input {
  width: 100%;
  background: #1C1C1E;
  border: 1px solid #262629;
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 16px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #A3FF00;
}

.form-input::placeholder {
  color: #48484A;
}

.form-select {
  width: 100%;
  background: #1C1C1E;
  border: 1px solid #262629;
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 16px;
  padding: 12px 14px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238E8E93' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.form-select:focus {
  border-color: #A3FF00;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

.cardio-calories-preview {
  background: #1C1C1E;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  color: #FF5252;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid #262629;
}

.btn-primary {
  width: 100%;
  background: #A3FF00;
  color: #000000;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  padding: 14px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-primary:active {
  opacity: 0.8;
}

.btn-secondary {
  flex: 1;
  background: #1C1C1E;
  color: #FFFFFF;
  border: 1px solid #262629;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s;
}

.btn-secondary:active {
  background: #262629;
}

.btn-danger {
  background: #FF5252;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  cursor: pointer;
  transition: opacity 0.15s;
  text-align: center;
}

.btn-danger:active {
  opacity: 0.8;
}

.cardio-history {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cardio-item {
  background: #141416;
  border: 1px solid #262629;
  border-radius: 10px;
  padding: 14px 16px;
}

.cardio-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cardio-item-type {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
}

.cardio-item-date {
  font-size: 13px;
  color: #8E8E93;
}

.cardio-item-stats {
  font-size: 13px;
  color: #48484A;
  margin-top: 4px;
}

.cardio-item-cal {
  color: #FF5252;
  font-weight: 600;
}

/* ===== SUPPLEMENTS ===== */
.supplement-daily {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.supplement-daily-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #141416;
  border: 1px solid #262629;
  border-radius: 10px;
  padding: 14px 16px;
}

.supp-check {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid #48484A;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
  color: transparent;
  font-size: 14px;
}

.supp-check.checked {
  background: #A3FF00;
  border-color: #A3FF00;
  color: #000000;
}

.supp-info {
  flex: 1;
}

.supp-name {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
}

.supp-dose {
  font-size: 13px;
  color: #8E8E93;
}

.supp-timing {
  font-size: 12px;
  color: #48484A;
}

.supp-streak {
  color: #A3FF00;
  font-size: 12px;
  font-weight: 600;
}

.supplement-inventory {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.supp-inv-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #141416;
  border: 1px solid #262629;
  border-radius: 10px;
  padding: 12px 16px;
}

.supp-inv-name {
  font-size: 15px;
  font-weight: 500;
  color: #FFFFFF;
}

.supp-inv-delete {
  background: none;
  border: none;
  color: #FF5252;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
}

.supp-inv-delete:active {
  opacity: 0.7;
}

/* ===== WATER TRACKER ===== */
.water-tracker {
  margin-bottom: 16px;
}

.water-progress {
  height: 12px;
  background: #1C1C1E;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #262629;
}

.water-bar {
  height: 100%;
  background: #2196F3;
  border-radius: 6px;
  transition: width 0.3s;
  width: 0%;
}

.water-label {
  text-align: center;
  color: #8E8E93;
  font-size: 14px;
  margin-top: 8px;
  font-weight: 500;
}

.water-buttons {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.water-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  background: #1C1C1E;
  border: 1px solid #262629;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}

.water-btn:active {
  background: #262629;
}

/* ===== PROTEIN TRACKER ===== */
.protein-tracker {
  margin-bottom: 16px;
}

.protein-value {
  font-size: 20px;
  font-weight: 700;
  color: #A3FF00;
  margin-bottom: 8px;
}

.protein-progress {
  height: 12px;
  background: #1C1C1E;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #262629;
}

.protein-bar {
  height: 100%;
  background: #A3FF00;
  border-radius: 6px;
  transition: width 0.3s;
  width: 0%;
}

/* ===== AI TRAINER ===== */
.ai-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ai-quick-btn {
  padding: 8px 14px;
  border-radius: 8px;
  background: #1C1C1E;
  border: 1px solid #262629;
  color: #A3FF00;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s;
}

.ai-quick-btn:active {
  background: #262629;
}

.ai-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  margin-bottom: 16px;
  padding-bottom: 60px;
}

.ai-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.5;
  word-wrap: break-word;
}

.ai-msg.user {
  align-self: flex-end;
  background: #A3FF00;
  color: #000000;
  border-bottom-right-radius: 2px;
}

.ai-msg.assistant {
  align-self: flex-start;
  background: #1C1C1E;
  border: 1px solid #262629;
  color: #FFFFFF;
  border-bottom-left-radius: 2px;
}

.ai-msg .ai-apply-btn {
  display: inline-block;
  margin-top: 8px;
  background: rgba(163, 255, 0, 0.15);
  border: 1px solid #A3FF00;
  border-radius: 8px;
  padding: 6px 12px;
  color: #A3FF00;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}

.ai-msg .ai-apply-btn:active {
  background: rgba(163, 255, 0, 0.3);
}

.ai-input-bar {
  position: fixed;
  bottom: 70px;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: #141416;
  border-top: 1px solid #262629;
  z-index: 90;
}

.ai-input {
  flex: 1;
  background: #1C1C1E;
  border: 1px solid #262629;
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 15px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
}

.ai-input:focus {
  border-color: #A3FF00;
}

.ai-input::placeholder {
  color: #48484A;
}

.ai-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #A3FF00;
  border: none;
  color: #000000;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.ai-send-btn:active {
  opacity: 0.8;
}

/* ===== ADMIN PANEL ===== */
.admin-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 32px;
}

.admin-section {
  background: #141416;
  border: 1px solid #262629;
  border-radius: 10px;
  padding: 20px 16px;
}

.admin-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.admin-sub-title {
  font-size: 15px;
  font-weight: 600;
  color: #8E8E93;
  margin: 16px 0 8px;
}

.generated-code {
  background: #1C1C1E;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  margin: 12px 0;
  border: 1px solid #A3FF00;
}

.generated-code-label {
  color: #8E8E93;
  font-size: 13px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.generated-code-value {
  font-size: 32px;
  font-weight: 700;
  color: #A3FF00;
  letter-spacing: 6px;
  font-family: monospace;
}

.codes-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.code-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #1C1C1E;
  border-radius: 8px;
  border: 1px solid #262629;
}

.code-item-code {
  font-family: monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #FFFFFF;
}

.code-item-role {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.code-item-role.admin {
  color: #A3FF00;
}

.code-item-role.viewer {
  color: #2196F3;
}

.code-item-status {
  font-size: 12px;
  color: #48484A;
  font-weight: 600;
}

.code-item-status.used {
  color: #FF5252;
}

.code-item-status.active {
  color: #A3FF00;
}

.devices-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.device-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #1C1C1E;
  border-radius: 8px;
  border: 1px solid #262629;
}

.device-item-info {
  font-size: 14px;
  color: #FFFFFF;
}

.device-item-role {
  font-size: 12px;
  color: #8E8E93;
  margin-top: 2px;
}

.device-revoke {
  background: none;
  border: 1px solid #FF5252;
  border-radius: 6px;
  color: #FF5252;
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s;
}

.device-revoke:active {
  background: #FF5252;
  color: #FFFFFF;
}

/* ===== ROUTINE EDITOR ===== */
.routine-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.re-day {
  margin-bottom: 16px;
  border: 1px solid #262629;
  border-radius: 10px;
  overflow: hidden;
  background: #141416;
}

.re-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #1C1C1E;
}

.re-day-title {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
}

.re-add-btn {
  background: none;
  border: 1px solid #A3FF00;
  border-radius: 6px;
  color: #A3FF00;
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s;
}

.re-add-btn:active {
  background: #A3FF00;
  color: #000000;
}

.re-exercise {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid #262629;
  background: #141416;
}

.re-exercise-name {
  font-size: 14px;
  flex: 1;
  color: #FFFFFF;
}

.re-exercise-actions {
  display: flex;
  gap: 8px;
}

.re-edit-btn, .re-delete-btn {
  background: none;
  border: none;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  font-weight: 500;
  transition: opacity 0.15s;
}

.re-edit-btn {
  color: #8E8E93;
}

.re-delete-btn {
  color: #FF5252;
}

.re-edit-btn:active, .re-delete-btn:active {
  opacity: 0.7;
}

/* ===== BACKUP ===== */
.backup-buttons {
  display: flex;
  gap: 12px;
}

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  width: 100%;
  max-width: 460px;
  background: #10121A;
  border-radius: 20px;
  padding: 28px 24px;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 240, 181, 0.1);
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-overflow-scrolling: touch;
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-small {
  border-radius: 18px;
  margin: auto;
  max-width: 340px;
  padding: 24px;
}

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

.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
}

.modal-close {
  background: none;
  border: none;
  color: #8E8E93;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:active {
  color: #FFFFFF;
}

.confirm-msg {
  font-size: 16px;
  text-align: center;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.4;
}

.confirm-buttons {
  display: flex;
  gap: 12px;
}

.confirm-buttons .btn-secondary,
.confirm-buttons .btn-danger {
  flex: 1;
}

/* ===== LOADING SPINNER ===== */
.loading-dots {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 20px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #48484A;
  animation: dotPulse 1.2s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {
  0%, 80%, 100% {
    background: #48484A;
    transform: scale(0.8);
  }
  40% {
    background: #A3FF00;
    transform: scale(1);
  }
}

/* ===== UTILITY ===== */
.hidden {
  display: none !important;
}

.text-green {
  color: #A3FF00 !important;
}

.text-red {
  color: #FF5252 !important;
}

.text-gray {
  color: #8E8E93 !important;
}

.text-muted {
  color: #48484A !important;
}

.mt-8 {
  margin-top: 8px !important;
}

.mt-16 {
  margin-top: 16px !important;
}

.mb-8 {
  margin-bottom: 8px !important;
}

.mb-16 {
  margin-bottom: 16px !important;
}

/* ===================================================================
   MINIMALIST CORPORATE LUXURY LANDING PAGE
   =================================================================== */

.landing-hero-wrapper {
  min-height: 100vh;
  width: 100%;
  background: radial-gradient(circle at 50% 0%, #151822 0%, #08090C 75%);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 60px;
}

.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 16px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-pill-o2 {
  background: #181A22;
  border: 1px solid var(--accent-lime);
  color: var(--accent-lime);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 16px rgba(0, 240, 181, 0.15);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  line-height: 1;
}

.brand-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cloud-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--accent-lime);
  background: rgba(0, 240, 181, 0.08);
  border: 1px solid rgba(0, 240, 181, 0.2);
  padding: 5px 10px;
  border-radius: 20px;
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-lime);
  box-shadow: 0 0 8px var(--accent-lime);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.btn-owner-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-titanium);
  color: var(--accent-titanium);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-owner-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-titanium);
}

.landing-hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px 60px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--accent-lime);
  background: rgba(0, 240, 181, 0.06);
  border: 1px solid rgba(0, 240, 181, 0.25);
  padding: 6px 16px;
  border-radius: 24px;
  margin-bottom: 24px;
}

.badge-dot-mint {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-lime);
}

.landing-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 18px;
  text-transform: uppercase;
  max-width: 820px;
}

.landing-hero-subtext {
  font-size: clamp(15px, 2.2vw, 18px);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 620px;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-metrics-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: rgba(24, 26, 34, 0.6);
  border: 1px solid var(--border-titanium);
  padding: 14px 28px;
  border-radius: 14px;
  backdrop-filter: blur(12px);
  margin-bottom: 44px;
}

.metric-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-titanium);
  letter-spacing: 0.5px;
}

.metric-tag {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  font-weight: 500;
}

.metric-divider {
  width: 1px;
  height: 28px;
  background: var(--border-titanium);
}

/* ===================================================================
   THE INTERACTIVE EXPANDING PIN MODULE
   =================================================================== */

.pin-interaction-container {
  width: 100%;
  max-width: 440px;
  margin-bottom: 56px;
  position: relative;
}

/* 1. Initial Collapsed Pill */
.pin-collapsed-pill {
  width: 100%;
  background: var(--surface-primary);
  border: 1px solid var(--border-titanium);
  border-radius: 36px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.pin-collapsed-pill:hover,
.pin-collapsed-pill:focus-visible {
  border-color: var(--accent-lime);
  background: #161822;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 240, 181, 0.15);
}

.pin-pill-icon {
  font-size: 20px;
}

.pin-pill-text-wrap {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
  margin-left: 14px;
}

.pin-pill-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.pin-pill-hint {
  font-size: 11px;
  color: var(--text-secondary);
}

.pin-pill-dots {
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--accent-lime);
  opacity: 0.8;
}

/* 2. Expanded Interactive PIN Card */
.pin-expanded-card {
  width: 100%;
  background: #14161F;
  border: 1px solid var(--border-titanium);
  border-radius: 18px;
  padding: 24px;
  text-align: left;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  animation: pinCardReveal 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pinCardReveal {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

.pin-card-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--accent-lime);
  background: rgba(0, 240, 181, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
}

.pin-card-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}

.pin-card-close-btn:hover {
  color: var(--text-primary);
}

.pin-card-heading {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.pin-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}

.pin-input-wrap {
  margin-bottom: 14px;
}

.pin-code-input {
  width: 100%;
  background: #090A0E;
  border: 2px solid var(--border-titanium);
  border-radius: 12px;
  padding: 16px;
  color: var(--accent-lime);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 12px;
  text-transform: uppercase;
  outline: none;
  transition: all 0.2s;
}

.pin-code-input:focus {
  border-color: var(--accent-lime);
  box-shadow: 0 0 20px rgba(0, 240, 181, 0.2);
}

.pin-error-text {
  font-size: 12px;
  color: var(--accent-coral);
  min-height: 18px;
  margin-bottom: 12px;
  text-align: center;
  font-weight: 500;
}

.btn-pin-submit {
  width: 100%;
  background: var(--accent-lime);
  color: #08090C;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  border: none;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-pin-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-pin-submit:active {
  transform: translateY(0);
}

/* Feature Grid Below Hero */
.corporate-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  width: 100%;
  text-align: left;
}

.corp-feature-card {
  background: rgba(18, 19, 25, 0.7);
  border: 1px solid var(--border-titanium);
  border-radius: 14px;
  padding: 22px;
  backdrop-filter: blur(8px);
  transition: transform 0.2s, border-color 0.2s;
}

.corp-feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
}

.corp-card-icon {
  font-size: 26px;
  margin-bottom: 12px;
}

.corp-feature-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.corp-feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===================================================================
   DEDICATED GUEST / VIEWER SCREEN
   =================================================================== */

.guest-container {
  min-height: 100vh;
  width: 100%;
  background: var(--bg-black);
  display: flex;
  flex-direction: column;
}

.guest-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--surface-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.guest-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guest-o2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--accent-lime);
  background: var(--surface-secondary);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--accent-lime);
}

.guest-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.guest-status {
  font-size: 11px;
  color: var(--accent-lime);
  font-weight: 500;
}

.btn-guest-exit {
  background: rgba(255, 82, 82, 0.1);
  border: 1px solid rgba(255, 82, 82, 0.3);
  color: var(--accent-coral);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-guest-exit:hover {
  background: rgba(255, 82, 82, 0.2);
}

.guest-content-body {
  flex: 1;
  padding: 16px 16px 80px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.guest-section {
  margin-bottom: 28px;
}

.guest-card-highlight {
  background: #141722;
  border: 1px solid var(--border-titanium);
  border-left: 4px solid var(--accent-lime);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-subtle);
}

.card-highlight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.highlight-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--accent-lime);
  background: rgba(0, 240, 181, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}

.highlight-date {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.highlight-heading {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.highlight-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.guest-last-workout-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guest-workout-exercise-row {
  background: #1B1E2C;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guest-ex-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

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

.guest-set-tag {
  background: rgba(0, 240, 181, 0.08);
  border: 1px solid rgba(0, 240, 181, 0.25);
  color: var(--accent-lime);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

/* ===================================================================
   DAILY AI BRIEFING CARD (TOP OF ROUTINE)
   =================================================================== */

.daily-briefing-box {
  background: #141620;
  border: 1px solid var(--border-titanium);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.daily-briefing-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-lime);
}

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

.briefing-badge {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-lime);
}

.btn-icon-subtle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.btn-icon-subtle:hover {
  opacity: 1;
}

.briefing-body {
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.55;
  font-weight: 400;
}

/* ===================================================================
   EXERCISE ANIMATED SVG CANVAS & MUSCLE MAP
   =================================================================== */

.exercise-svg-container {
  width: 100%;
  max-width: 380px;
  height: 200px;
  margin: 0 auto 18px;
  background: #0E1017;
  border: 1px solid var(--border-titanium);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.muscle-map-container {
  width: 100%;
  max-width: 340px;
  height: 480px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.muscle-elem {
  cursor: pointer;
  transition: fill 0.2s, filter 0.2s;
}

.muscle-elem:hover {
  filter: drop-shadow(0 0 6px var(--accent-lime));
  opacity: 0.9;
}

/* Post-Workout Analysis Modal */
.modal-large {
  max-width: 540px !important;
}

.analysis-headline {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.analysis-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
  background: #0B0D13;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  max-height: 360px;
  overflow-y: auto;
}

/* Magic Link Box */
.magic-link-box {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.code-share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

/* ===================================================================
   MINIMALIST CORPORATE LUXURY LANDING PAGE
   Apple Fitness+ Pro / Whoop / Equinox / Athletic Architecture
   =================================================================== */

.luxury-landing-wrapper {
  min-height: 100vh;
  width: 100%;
  background: #040406;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 240, 181, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 85% 30%, rgba(58, 134, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 15% 70%, rgba(0, 240, 181, 0.04) 0%, transparent 45%);
  color: #F5F6FA;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Executive Minimalist Top Navbar */
.luxury-nav {
  width: 100%;
  max-width: 1000px;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 4, 6, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.luxury-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge-o2 {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #12141D 0%, #1A1D2A 100%);
  border: 1.5px solid rgba(0, 240, 181, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--accent-lime);
  box-shadow: 0 0 16px rgba(0, 240, 181, 0.22);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #FFFFFF;
  line-height: 1.1;
}

.brand-facility {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.luxury-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cloud-sync-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 10px;
  border-radius: 999px;
}

.indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-lime);
  box-shadow: 0 0 8px var(--accent-lime);
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 12px var(--accent-lime); }
}

.btn-luxury-owner {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-luxury-owner:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.owner-badge-icon {
  font-size: 13px;
}

/* Executive Hero Section */
.luxury-hero {
  width: 100%;
  max-width: 680px;
  padding: 48px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-lime);
  background: rgba(0, 240, 181, 0.08);
  border: 1px solid rgba(0, 240, 181, 0.25);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.eyebrow-accent {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-lime);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 7.5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #FFFFFF 30%, #B8BAC8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 28px;
  font-weight: 400;
}

/* 3-Part Athletic Metrics Ribbon */
.hero-metrics-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 24px;
  gap: 20px;
  margin-bottom: 38px;
  backdrop-filter: blur(10px);
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.m-val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.5px;
}

.m-lbl {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 1px;
}

.m-sep {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.08);
}

/* ===================================================================
   THE COMPACT EXPANDING PIN COMPONENT ("мала и се зголемува")
   =================================================================== */

.expanding-pin-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

/* 1. Small Compact Trigger Pill */
.pin-pill-compact {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 22px;
  width: 250px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.pin-pill-compact:hover,
.pin-pill-compact:focus {
  background: rgba(0, 240, 181, 0.08);
  border-color: rgba(0, 240, 181, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 181, 0.25);
}

.pill-icon-key {
  font-size: 16px;
}

.pill-label {
  font-family: var(--font-stack);
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.3px;
}

.pill-arrow {
  font-size: 14px;
  color: var(--accent-lime);
  transition: transform 0.2s ease;
}

.pin-pill-compact:hover .pill-arrow {
  transform: translateX(3px);
}

/* 2. Expanded Luxury PIN Card */
.pin-card-expanded {
  width: 100%;
  max-width: 410px;
  background: rgba(16, 18, 26, 0.96);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1.5px solid rgba(0, 240, 181, 0.35);
  border-radius: 22px;
  padding: 26px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 240, 181, 0.12);
  text-align: left;
  animation: springExpand 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes springExpand {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.pin-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pin-badge {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-lime);
  background: rgba(0, 240, 181, 0.1);
  border: 1px solid rgba(0, 240, 181, 0.25);
  padding: 3px 10px;
  border-radius: 6px;
}

.pin-close-button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.15s ease;
}

.pin-close-button:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.pin-heading {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.pin-description {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

/* 6 Discrete Digit Boxes */
.pin-digits-container {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}

.pin-digit-box {
  width: 48px;
  height: 58px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-family: var(--font-display), monospace;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  caret-color: var(--accent-lime);
}

.pin-digit-box:focus {
  border-color: var(--accent-lime);
  background: rgba(0, 240, 181, 0.08);
  box-shadow: 0 0 16px rgba(0, 240, 181, 0.35);
  transform: translateY(-2px);
}

.pin-digit-box.filled {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--accent-lime);
}

.pin-error-alert {
  color: var(--accent-coral);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  min-height: 18px;
  margin-bottom: 10px;
}

.btn-pin-confirm {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #00F0B5 0%, #00C896 100%);
  color: #040406;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 20px rgba(0, 240, 181, 0.3);
}

.btn-pin-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 240, 181, 0.45);
  filter: brightness(1.05);
}

.btn-pin-confirm:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

/* Biomechanical Live Showcase Card */
.hero-live-preview-card {
  width: 100%;
  max-width: 580px;
  background: #0E1017;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.preview-card-header {
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.preview-badge {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-lime);
}

.preview-status {
  color: var(--text-secondary);
  font-weight: 500;
}

.preview-svg-box {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #08090E;
}

.preview-card-footer {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.doctor-tip-avatar {
  font-size: 22px;
  line-height: 1;
}

.doctor-tip-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: #C8CCD8;
}

/* ===================================================================
   DEDICATED GUEST / VIEWER PORTAL
   =================================================================== */

.guest-portal-wrapper {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px 60px;
  min-height: 100vh;
}

.guest-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.guest-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guest-brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #12141D;
  border: 1.5px solid var(--accent-lime);
  color: var(--accent-lime);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guest-brand-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #FFFFFF;
}

.guest-validity-text {
  font-size: 11px;
  color: var(--accent-lime);
  font-weight: 600;
}

.btn-exit-guest {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-exit-guest:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.guest-highlight-section {
  margin-bottom: 24px;
}

.guest-highlight-card {
  background: linear-gradient(145deg, #10131E 0%, #151926 100%);
  border: 1.5px solid rgba(0, 240, 181, 0.3);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 240, 181, 0.08);
}

.card-tag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 11px;
}

.tag-completed-badge {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-lime);
  background: rgba(0, 240, 181, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
}

.tag-completed-date {
  color: var(--text-secondary);
  font-weight: 500;
}

.highlight-card-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.highlight-card-sub {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.guest-workout-sets-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guest-logged-ex-row {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guest-ex-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.guest-ex-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.guest-ex-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.guest-logged-sets-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.guest-set-chip {
  background: rgba(0, 240, 181, 0.1);
  border: 1px solid rgba(0, 240, 181, 0.25);
  color: var(--accent-lime);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.guest-empty-notice {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
}

.guest-routine-section {
  margin-top: 24px;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.section-heading-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #FFFFFF;
}

.badge-cycle-indicator {
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Shake animation for invalid PIN */
@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.shake {
  animation: shakeError 0.35s ease-in-out;
}


