:root {
  --phone-scale: 0.8; /* Default scale for desktop */
}

/* Responsive scale for desktop screens — based on viewport height
   (phone frame is 844px tall, scale to leave breathing room).
   Mirrors the rules in playroom.css so both views match. */
@media (min-width: 1025px) and (max-height: 800px) {
  :root { --phone-scale: 0.7; }
}
@media (min-width: 1025px) and (min-height: 801px) and (max-height: 900px) {
  :root { --phone-scale: 0.78; }
}
@media (min-width: 1025px) and (min-height: 901px) and (max-height: 1050px) {
  :root { --phone-scale: 0.85; }
}
@media (min-width: 1025px) and (min-height: 1051px) {
  :root { --phone-scale: 0.95; }
}

/* iPad-sized screens (768–1024px) — scale up for a bigger phone */
@media (min-width: 768px) and (max-width: 1024px) {
  :root { --phone-scale: 1.1; }
}

/* Small iPad mini (portrait) */
@media (min-width: 600px) and (max-width: 767px) {
  :root { --phone-scale: 1; }
}

/* Phones — keep at real-device size */
@media (max-width: 599px) {
  :root { --phone-scale: 1; }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #2c2c2c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, 'PingFang SC', 'SF Pro Display', sans-serif;
}

/* ===== iPad Container ===== */
.ipad-container {
  width: 100vw;
  height: 100vh;
  background: #1a1a1e;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ===== iPhone Frame ===== */
.iphone-frame {
  width: 390px;
  height: 844px;
  border-radius: 47px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 11px #1a1a1a,
    0 0 0 13px #333,
    0 30px 80px rgba(0, 0, 0, 0.6);
  background: linear-gradient(to bottom, #181b23, #0f1115);
  transform: scale(var(--phone-scale));
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Dynamic Island ===== */
.dynamic-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 35px;
  background: #000;
  border-radius: 20px;
  z-index: 100;
}

/* ===== Page System ===== */
.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.page.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.page.exit-left {
  opacity: 0;
  transform: translateX(-30%);
  pointer-events: none;
}

.page.exit-right {
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
}

/* ===== Status Bar ===== */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  height: 44px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000; /* Above all pages — global status bar */
  pointer-events: none; /* Don't block clicks through the bar */
}

.status-time {
  font-size: 15px;
  font-weight: 600;
  color: white;
  letter-spacing: -0.3px;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 1px;
}

.signal-bars span {
  width: 3px;
  background: white;
  border-radius: 1px;
}

.signal-bars span:nth-child(1) { height: 4px; }
.signal-bars span:nth-child(2) { height: 6px; }
.signal-bars span:nth-child(3) { height: 8px; }
.signal-bars span:nth-child(4) { height: 10px; }

.wifi-icon, .battery-icon {
  height: 12px;
  display: block;
}

.wifi-icon { width: 16px; }
.battery-icon { width: 26px; }

/* ===== Background Paw Decorations ===== */
.paw-decoration {
  position: absolute;
  opacity: 0.04;
  pointer-events: none;
}

.paw-top-right {
  width: 209px;
  height: 209px;
  top: 408px;
  right: -55px;
  transform: rotate(-34.66deg);
}

.paw-bottom-left {
  width: 209px;
  height: 209px;
  top: 574px;
  left: -72px;
  transform: rotate(-145.34deg) scaleY(-1);
}

/* ===== Cat Logo (Page 1) ===== */
.logo-container {
  position: absolute;
  top: 206px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 150px;
}

.logo-bg {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 130px;
  background: #161920;
  border: 1px solid #ff9f1c;
  border-radius: 30px;
}

.logo-img {
  position: relative;
  width: 150px;
  height: 150px;
  object-fit: cover;
  z-index: 2;
}

/* ===== Title & Subtitle (Page 1) ===== */
.app-title {
  position: absolute;
  top: 355px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  font-weight: 600;
  color: white;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.app-subtitle {
  position: absolute;
  top: 397px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #989eab;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

/* ===== Login Button ===== */
.login-btn {
  position: absolute;
  bottom: 40px;
  left: 20px;
  width: 350px;
  height: 60px;
  background: #ff9f1c;
  border: none;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.login-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 159, 28, 0.3);
}

.login-btn:active {
  transform: scale(0.97);
}

.login-btn span {
  font-size: 16px;
  font-weight: 600;
  color: #0f1115;
  letter-spacing: -0.3px;
}

/* ===== Button Paw Decorations ===== */
.btn-paw {
  position: absolute;
  opacity: 0.12;
  width: 26px;
  height: 26px;
}

.btn-paw-right {
  right: 25px;
  top: 50%;
  transform: translateY(-50%) rotate(-30deg);
}

.btn-paw-left {
  left: 37px;
  bottom: 32px;
  transform: rotate(28deg);
  opacity: 0.12;
}

/* ===== Home Indicator ===== */
.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

/* ======================================
   Page 2: Onboarding
   ====================================== */

/* Navigation bar with Skip */
.nav-bar {
  position: absolute;
  top: 44px;
  left: 0;
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 6px 20px;
  z-index: 10;
}

.skip-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.28px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease;
}

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

/* Onboarding Illustration */
.onboarding-illustration {
  position: absolute;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 400px;
  overflow: hidden;
}

.onboarding-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bottom gradient overlay */
.onboarding-gradient {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 389px;
  height: 518px;
  background: linear-gradient(
    to bottom,
    rgba(15, 17, 21, 0) 0%,
    rgba(15, 17, 21, 0.9) 22.6%
  );
  pointer-events: none;
}

/* Onboarding Title */
.onboarding-title {
  position: absolute;
  top: 486px;
  left: 22px;
  font-size: 30px;
  font-weight: 600;
  color: white;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

/* Onboarding Description */
.onboarding-desc {
  position: absolute;
  top: 536px;
  left: 23px;
  font-size: 16px;
  font-weight: 600;
  color: #989eab;
  line-height: 30px;
  width: 344px;
  text-align: justify;
}

/* Page Indicator Dots */
.page-indicator {
  position: absolute;
  top: 771px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-indicator .dot {
  width: 8px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  transition: width 0.3s ease, background 0.3s ease;
}

.page-indicator .dot.active {
  width: 24px;
  background: #00c2ff;
}

/* ===== Start Button (Page 4) ===== */
.start-btn {
  position: absolute;
  top: 744px;
  left: 20px;
  width: 350px;
  height: 60px;
  background: #ff9f1c;
  border: none;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.start-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 159, 28, 0.3);
}

.start-btn:active {
  transform: scale(0.97);
}

.start-btn span {
  font-size: 16px;
  font-weight: 500;
  color: #0f1115;
  letter-spacing: -0.3px;
}

/* ======================================
   Page 5: Dashboard
   ====================================== */

.dash-nav {
  position: absolute;
  top: 44px;
  left: 0;
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px;
  z-index: 10;
}

.dash-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.36px;
  text-transform: uppercase;
}

.settings-btn {
  width: 38px;
  height: 38px;
  background: rgba(40, 42, 48, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.settings-btn:hover {
  background: rgba(60, 62, 68, 0.8);
}

.settings-btn img,
.settings-btn svg {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Dashboard scrollable content */
.dash-content {
  position: absolute;
  top: 112px;
  left: 0;
  right: 0;
  bottom: 20px;
  overflow-y: auto;
  padding: 0 20px 40px;
  -webkit-overflow-scrolling: touch;
}

.dash-content::-webkit-scrollbar {
  display: none;
}

/* Dashboard Cards */
.dash-card {
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.dash-card.clickable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dash-card.clickable:hover {
  transform: scale(1.02);
}

.dash-card.clickable:active {
  transform: scale(0.97);
}

/* Active Card */
.active-card {
  position: relative;
  height: 140px;
}

.active-card-accent {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ff9f1c;
  border-radius: 20px;
}

.active-card-inner {
  position: relative;
  width: calc(100% - 4px);
  height: 136px;
  margin-left: 4px;
  background: #181a20;
  border: 1px solid #2a2c31;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.active-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.active-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.green-dot {
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
}

.active-label {
  font-size: 18px;
  font-weight: 600;
  color: #ff9f1c;
  letter-spacing: 0.36px;
  text-transform: uppercase;
}

.active-text {
  font-size: 14px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.28px;
}

.active-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

.active-cat-img {
  position: absolute;
  right: 20px;
  top: 10px;
  width: 100px;
  height: 100px;
  object-fit: cover;
}

/* Playroom Card */
.playroom-card {
  height: 150px;
  background: #121212;
  border: 1px solid #00484d;
  display: flex;
  align-items: flex-start;
  padding: 30px 20px;
}

.playroom-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.playroom-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.green-dot-sm {
  width: 6px;
  height: 6px;
  background: #4caf50;
  border-radius: 50%;
}

.playroom-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: #989eab;
  letter-spacing: 0.24px;
}

.playroom-img {
  position: absolute;
  right: -10px;
  top: -20px;
  width: 156px;
  height: 156px;
  object-fit: cover;
  transform: rotate(8.16deg);
}

/* Activity & Routine Row */
.dash-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.small-card {
  flex: 1;
  height: 150px;
  background: #181a20;
  border: 1px solid #2a2c31;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0;
}

.small-card-img {
  width: 78px;
  height: 78px;
  object-fit: cover;
}

.small-card-title {
  font-size: 20px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Album Card */
.album-card {
  height: 110px;
  background: #181a20;
  border: 1px solid #2a2c31;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 20px 44px;
}

.album-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.album-subtitle {
  font-size: 16px;
  font-weight: 500;
  color: #989eab;
  letter-spacing: 0.32px;
}

.album-img {
  width: 95px;
  height: 95px;
  object-fit: cover;
}

/* Version text */
.version-text {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: rgba(152, 158, 171, 0.3);
  letter-spacing: 0.24px;
  margin-top: 10px;
}

/* ======================================
   Page 6: Routine
   ====================================== */

.routine-content {
  position: absolute;
  top: 116px;
  left: 0;
  right: 0;
  bottom: 20px;
  padding: 0 20px;
}

.routine-card {
  position: relative;
  background: #181a20;
  border: 1px solid #2a2c31;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
}

.slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.slider-row:not(:first-child) {
  margin-top: 16px;
}

.slider-label {
  font-size: 16px;
  font-weight: 600;
  color: #979eaa;
  letter-spacing: -0.3px;
}

.slider-value {
  font-size: 16px;
  font-weight: 500;
  color: #00f0ff;
  letter-spacing: -0.3px;
}

.slider-value small {
  font-size: 12px;
  text-transform: uppercase;
}

/* Range Slider Styling */
.routine-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, #00f0ff 0%, #00f0ff var(--slider-fill, 17%), rgba(255,255,255,0.2) var(--slider-fill, 17%), rgba(255,255,255,0.2) 100%);
  border-radius: 5px;
  outline: none;
  margin-bottom: 4px;
}

.routine-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #00f0ff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.5);
  margin-top: -4px;
}

.routine-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #00f0ff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.5);
}

.routine-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 5px;
  background: inherit;
}

.routine-slider::-moz-range-track {
  height: 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.2);
}

.routine-slider::-moz-range-progress {
  height: 6px;
  border-radius: 5px;
  background: #00f0ff;
}

/* Repeat Days Card */
.repeat-card {
  margin-top: 0;
}

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

.repeat-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.36px;
  text-transform: uppercase;
}

/* Toggle Switch */
.toggle-switch {
  width: 60px;
  height: 30px;
  background: #333;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
  padding: 0;
}

.toggle-switch.active {
  background: #00f0ff;
}

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #0f1115;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.toggle-switch.active .toggle-knob {
  transform: translateX(30px);
}

/* Day Buttons */
.days-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.day-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
  background: #333;
  color: #666;
}

.day-btn.active {
  background: #00f0ff;
  color: #0f1115;
}

.day-btn:active {
  transform: scale(0.9);
}

.days-row.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* ======================================
   Page 7: Album
   ====================================== */

.album-tabs {
  position: absolute;
  top: 116px;
  left: 20px;
  display: flex;
  gap: 10px;
}

.album-tab {
  padding: 6px 16px;
  border-radius: 20px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.28px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  background: #2f3139;
  color: white;
}

.album-tab.active {
  background: #00f0ff;
  color: #0f1115;
}

.album-grid {
  position: absolute;
  top: 168px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: grid;
  grid-template-columns: 170px 170px;
  grid-auto-rows: 200px;
  gap: 5px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.album-grid::-webkit-scrollbar {
  display: none;
}

.album-photo {
  width: 170px;
  height: 200px;
  border-radius: 20px;
  overflow: hidden;
}

.album-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Playroom styles moved to playroom.css */

/* ======================================
   Page 10: Settings (System)
   ====================================== */

/* Cooldown Ring */
.cooldown-ring-container {
  position: absolute;
  top: 130px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 150px;
}

.cooldown-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.cooldown-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2;
}

.cooldown-ring-fill {
  fill: none;
  stroke: #00f0ff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 439.8;
  stroke-dashoffset: 219.9; /* Half-circle (top arc) */
}

.cooldown-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.cooldown-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.cooldown-num {
  font-size: 30px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.6px;
}

.cooldown-unit {
  font-size: 16px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.32px;
}

.cooldown-label {
  font-size: 14px;
  font-weight: 600;
  color: #878e98;
  letter-spacing: 0.28px;
  text-transform: uppercase;
}

/* Toggle Cards */
.settings-toggle-card {
  position: absolute;
  top: 322px;
  left: 20px;
  right: 20px;
  background: #181a20;
  border: 1px solid #2a2c31;
  border-radius: 20px;
  overflow: hidden;
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 21px;
  border-bottom: 1px solid #2a2c31;
}

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

.settings-toggle-label {
  font-size: 16px;
  font-weight: 600;
  color: #979eaa;
  letter-spacing: -0.3px;
}

.settings-toggle {
  position: relative;
  width: 60px;
  height: 30px;
  background: #2a2c31;
  border-radius: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.settings-toggle.active {
  background: #00f0ff;
}

.settings-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #1a1a1e;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.settings-toggle.active .settings-toggle-knob {
  transform: translateX(30px);
}

/* Status Card (Battery + Wi-Fi) */
.settings-status-card {
  position: absolute;
  top: 502px;
  left: 20px;
  right: 20px;
  background: #0d272d;
  border: 1px solid #00effe;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.settings-status-label {
  font-size: 16px;
  font-weight: 600;
  color: #00f0ff;
  letter-spacing: -0.3px;
}

.settings-status-value {
  font-size: 16px;
  font-weight: 500;
  color: white;
  letter-spacing: -0.3px;
}

/* ======================================
   Page 9: Activity
   ====================================== */

/* Page Navigation (with back button) */
.page-nav {
  position: absolute;
  top: 44px;
  left: 0;
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px;
  z-index: 10;
}

.page-nav-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.36px;
  text-transform: uppercase;
}

.back-btn {
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.2s;
}

.back-btn:hover {
  opacity: 0.7;
}

.back-btn svg {
  width: 16px;
  height: 16px;
}

.back-btn-spacer {
  width: 34px;
}

/* Progress Ring */
.progress-ring-container {
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 150px;
}

.progress-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: #2a2c31;
  stroke-width: 10;
}

.ring-fill {
  fill: none;
  stroke: #00f0ff;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 408.4;
  stroke-dashoffset: 102.1;
}

.progress-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.progress-value {
  font-size: 30px;
  font-weight: 600;
  color: #00f0ff;
  letter-spacing: 0.6px;
}

.progress-label {
  font-size: 14px;
  font-weight: 600;
  color: #878e98;
  letter-spacing: 0.28px;
}

/* Stats Row */
.stats-row {
  position: absolute;
  top: 342px;
  left: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.stat-card {
  flex: 1;
  height: 130px;
  background: #181a20;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card-cyan {
  border: 1px solid #115a63;
}

.stat-card-orange {
  border: 1px solid #5e421e;
}

.stat-card-label {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.32px;
  text-transform: uppercase;
}

.cyan-text { color: #00f0ff; }
.orange-text { color: #ff9f1c; }

.stat-card-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-number {
  font-size: 30px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.6px;
}

.stat-unit {
  font-size: 20px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.4px;
}

.stat-bar {
  position: relative;
  height: 6px;
  width: 100%;
}

.stat-bar-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

.stat-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 58%;
  height: 6px;
  border-radius: 5px;
}

.cyan-bar { background: #00f0ff; }
.orange-bar { background: #ff9f1c; }

/* Summary Card */
.summary-card {
  position: absolute;
  top: 492px;
  left: 20px;
  right: 20px;
  height: 120px;
  background: #181a20;
  border: 1px solid #2a2c31;
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary-title {
  font-size: 20px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.summary-text {
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
  letter-spacing: 0.28px;
  line-height: 1.4;
}
