/* ─────────────────────────────────────────
       ROOT & TOKENS
    ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* iOS Liquid Glass — deeply transparent with crystalline clarity */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-hover: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-border-subtle: rgba(255, 255, 255, 0.22);
  --glass-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  --glass-blur: blur(28px) saturate(240%);
  --glass-blur-heavy: blur(36px) saturate(260%);

  /* iOS text glass containers */
  --glass-pill-bg: rgba(255, 255, 255, 0.05);
  --glass-pill-border: rgba(255, 255, 255, 0.18);
  --glass-pill-strong-bg: rgba(255, 255, 255, 0.12);
  --glass-pill-strong-border: rgba(255, 255, 255, 0.35);

  --accent: #0a84ff;
  --accent2: #30d158;
  --accent3: #ff6b6b;
  --gold: #ffd60a;

  --text-primary: rgba(255, 255, 255, 0.97);
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-tertiary: rgba(255, 255, 255, 0.35);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 100px;

  --transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─────────────────────────────────────────
       BACKGROUND & LAYOUT
    ───────────────────────────────────────── */
html,
body {
  min-height: 100vh;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  background: #060614;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 0%,
      rgba(10, 132, 255, 0.4) 0%,
      transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 100%,
      rgba(48, 209, 88, 0.3) 0%,
      transparent 55%),
    radial-gradient(ellipse 50% 50% at 50% 50%,
      rgba(94, 92, 230, 0.2) 0%,
      transparent 65%),
    radial-gradient(ellipse 40% 40% at 70% 30%,
      rgba(255, 55, 95, 0.12) 0%,
      transparent 60%);
  min-height: 100vh;
}

/* Animated gradient orbs */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  animation: orbFloat 14s ease-in-out infinite;
  opacity: 0.6;
  will-change: transform;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle,
      rgba(10, 132, 255, 0.7),
      rgba(94, 92, 230, 0.3),
      transparent);
  top: -200px;
  left: -150px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle,
      rgba(48, 209, 88, 0.6),
      rgba(10, 132, 255, 0.2),
      transparent);
  bottom: -150px;
  right: -120px;
  animation-delay: -4s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle,
      rgba(94, 92, 230, 0.6),
      rgba(255, 55, 95, 0.2),
      transparent);
  top: 50%;
  left: 60%;
  animation-delay: -8s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(40px, -50px) scale(1.08);
  }

  66% {
    transform: translate(-30px, 30px) scale(0.92);
  }
}

/* ─────────────────────────────────────────
       APP CONTAINER
    ───────────────────────────────────────── */
.app-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 40px;
}

/* ─────────────────────────────────────────
       HEADER (always visible)
    ───────────────────────────────────────── */
.app-header {
  width: 100%;
  max-width: 480px;
  text-align: center;
  padding: 40px 0 28px;
}

.hotel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-pill-bg);
  border: 1px solid var(--glass-pill-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hotel-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--accent2);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}

.hotel-name {
  font-size: clamp(26px, 6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  /* Text gradient */
  background: linear-gradient(135deg,
      #fff 0%,
      rgba(255, 255, 255, 0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  position: relative;
}

/* Frosted glass box behind hotel name text */
.hotel-name::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-pill-strong-bg);
  border: 1.5px solid var(--glass-pill-strong-border);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.1);
  z-index: -1;
}

.hotel-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: var(--glass-pill-bg);
  border: 1px solid var(--glass-pill-border);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: opacity 0.2s ease;
}

/* ─────────────────────────────────────────
       PROGRESS INDICATOR
    ───────────────────────────────────────── */
.progress-bar-wrap {
  width: 100%;
  max-width: 480px;
  margin-bottom: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.progress-bar-wrap.visible {
  opacity: 1;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  font-weight: 500;
}

.progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(10, 132, 255, 0.6);
}

/* ─────────────────────────────────────────
       GLASS CARD (reusable)
    ───────────────────────────────────────── */
.glass-card {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--glass-border);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border-radius: var(--radius-xl);
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.1),
    0 0 80px rgba(10, 132, 255, 0.06);
  overflow: hidden;
  position: relative;
  transform: translateZ(0);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 40%,
      rgba(255, 255, 255, 0.03) 100%);
  pointer-events: none;
}

/* Animated edge shimmer */
.glass-card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -50%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), rgba(10, 132, 255, 0.4), transparent);
  animation: edgeShimmer 6s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}

@keyframes edgeShimmer {
  0% { left: -50%; opacity: 0; }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ─────────────────────────────────────────
       PAGE SYSTEM
    ───────────────────────────────────────── */
.page {
  display: none;
  width: 100%;
  max-width: 480px;
  animation: pageIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page.active {
  display: block;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pageOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-20px) scale(0.97);
  }
}

/* ─────────────────────────────────────────
       PAGE 1 — CHOOSE REVIEW TYPE
    ───────────────────────────────────────── */
.review-type-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.review-type-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--glass-border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.review-type-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.review-type-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--glass-border);
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.review-type-btn:hover::before {
  opacity: 1;
}

.review-type-btn:active {
  transform: translateY(1px) scale(0.95);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(10, 132, 255, 0.3);
  border-color: rgba(10, 132, 255, 0.4);
  transition-duration: 0.08s;
}

/* iOS-style ripple effect */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.35) 0%,
      rgba(10, 132, 255, 0.15) 40%,
      transparent 70%);
  transform: scale(0);
  animation: rippleExpand 0.55s ease-out forwards;
  pointer-events: none;
  z-index: 10;
}

@keyframes rippleExpand {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    transform: scale(4);
    opacity: 0;
  }
}

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

.btn-icon.food {
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4);
}

.btn-icon.mgmt {
  background: linear-gradient(135deg, #0a84ff, #5ac8fa);
  box-shadow: 0 4px 16px rgba(10, 132, 255, 0.4);
}

.btn-icon.hotel {
  background: linear-gradient(135deg, #30d158, #34c759);
  box-shadow: 0 4px 16px rgba(48, 209, 88, 0.4);
}

.btn-text {
  flex: 1;
}

.btn-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 3px;
}

.btn-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.btn-chevron {
  color: var(--text-tertiary);
  font-size: 16px;
  transition: transform 0.2s ease;
}

.review-type-btn:hover .btn-chevron {
  transform: translateX(4px);
}

.card-header {
  padding: 24px 24px 0;
}

.card-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 10px;
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--glass-pill-bg);
  border: 1px solid var(--glass-pill-border);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: var(--glass-pill-bg);
  border: 1px solid var(--glass-pill-border);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 4px;
}

/* ─────────────────────────────────────────
       FORM ELEMENTS
    ───────────────────────────────────────── */
.form-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--glass-pill-bg);
  border: 1px solid var(--glass-pill-border);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Checkboxes / Radios */
.option-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--glass-border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow:
    0 1px 6px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.option-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--glass-border);
}

.option-item:active {
  transform: scale(0.96);
  background: rgba(10, 132, 255, 0.1);
  border-color: rgba(10, 132, 255, 0.4);
  box-shadow: inset 0 0 16px rgba(10, 132, 255, 0.12);
  transition-duration: 0.06s;
}

.option-item input[type="checkbox"],
.option-item input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.option-item input[type="radio"] {
  border-radius: 50%;
}

.option-item input[type="checkbox"]:checked,
.option-item input[type="radio"]:checked {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(10, 132, 255, 0.4);
}

.option-item input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

.option-item input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.option-label {
  font-size: 15px;
  font-weight: 500;
}

/* Range Slider */
.slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.glass-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  position: relative;
}

.glass-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.3),
    0 0 0 3px rgba(10, 132, 255, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.glass-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.glass-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.slider-val {
  font-size: 20px;
  font-weight: 700;
  min-width: 36px;
  text-align: center;
  color: var(--accent);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-tertiary);
}

/* Star Rating */
.star-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.star-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--glass-border-subtle);
  border-radius: var(--radius-md);
  box-shadow:
    0 1px 6px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
}

/* Glass shimmer effect on hover */
.star-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    rgba(10, 132, 255, 0.04),
    transparent
  );
  transition: left 0.6s ease;
  pointer-events: none;
}

.star-row:hover::before {
  left: 100%;
}

.star-row:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(10, 132, 255, 0.3);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(10, 132, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.star-row-label {
  font-size: 14px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: var(--glass-pill-bg);
  border: 1px solid var(--glass-pill-border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  z-index: 1;
}

.stars {
  display: flex;
  gap: 6px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.star {
  font-size: 42px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.12);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.star:hover {
  transform: scale(1.35) rotate(5deg);
  color: var(--gold);
  filter: drop-shadow(0 0 14px rgba(255, 214, 10, 0.9));
}

.star.active {
  color: var(--gold);
  filter: drop-shadow(0 0 10px rgba(255, 214, 10, 0.7));
  text-shadow: 0 0 8px rgba(255, 214, 10, 0.3);
}

.star:active {
  transform: scale(1.5) rotate(-15deg);
  filter: drop-shadow(0 0 20px rgba(255, 214, 10, 1)) drop-shadow(0 0 40px rgba(255, 214, 10, 0.6));
  transition-duration: 0.1s;
}

.star.pop-animate {
  animation: starPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes starPop {
  0% {
    transform: scale(1.5) rotate(-8deg);
  }

  40% {
    transform: scale(0.85) rotate(4deg);
  }

  70% {
    transform: scale(1.12) rotate(-2deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* Textarea */
.glass-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--glass-border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  padding: 16px 18px;
  resize: vertical;
  min-height: 120px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  box-shadow:
    0 1px 6px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-textarea::placeholder {
  color: var(--text-tertiary);
  font-weight: 400;
}

.glass-textarea:focus {
  border-color: rgba(10, 132, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 3px rgba(10, 132, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 20px rgba(10, 132, 255, 0.12);
  transform: translateY(-1px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Select */
.glass-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid var(--glass-border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  padding: 13px 16px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: all 0.2s ease;
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.glass-select option {
  background: #1a1a2e;
  color: white;
}

.glass-select:focus {
  border-color: rgba(10, 132, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}

/* ─────────────────────────────────────────
       DIVIDER
    ───────────────────────────────────────── */
.glass-divider {
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      var(--glass-border-subtle),
      transparent);
  margin: 0 24px;
}

/* ─────────────────────────────────────────
       BUTTONS
    ───────────────────────────────────────── */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.15),
      transparent);
  pointer-events: none;
}

.btn-primary.accent {
  background: linear-gradient(135deg, #0a84ff, #0066cc);
  color: white;
  box-shadow:
    0 4px 20px rgba(10, 132, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary.accent:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(10, 132, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary.success {
  background: linear-gradient(135deg, #30d158, #25a244);
  color: white;
  box-shadow:
    0 4px 20px rgba(48, 209, 88, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary.success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(48, 209, 88, 0.55);
}

.btn-primary.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1.5px solid var(--glass-border-subtle);
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-primary.ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  border-color: var(--glass-border);
}

.btn-primary:active {
  transform: scale(0.94) translateY(2px) !important;
  transition-duration: 0.08s !important;
  filter: brightness(1.1);
}

.btn-primary.accent:active {
  box-shadow:
    0 2px 8px rgba(10, 132, 255, 0.6),
    0 0 32px rgba(10, 132, 255, 0.3),
    inset 0 0 16px rgba(255, 255, 255, 0.1) !important;
}

.btn-primary.success:active {
  box-shadow:
    0 2px 8px rgba(48, 209, 88, 0.6),
    0 0 32px rgba(48, 209, 88, 0.3),
    inset 0 0 16px rgba(255, 255, 255, 0.1) !important;
}

.btn-primary.ghost:active {
  background: rgba(10, 132, 255, 0.12) !important;
  border-color: rgba(10, 132, 255, 0.4) !important;
  box-shadow: 0 0 16px rgba(10, 132, 255, 0.15) !important;
}

/* Click flash burst */
.btn-click-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--click-x, 50%) var(--click-y, 50%),
      rgba(255, 255, 255, 0.4) 0%,
      transparent 60%);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  animation: flashBurst 0.45s ease-out forwards;
}

@keyframes flashBurst {
  0% {
    opacity: 1;
    transform: scale(0.8);
  }

  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

.btn-row {
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--glass-pill-bg);
  border: 1.5px solid var(--glass-pill-border);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px 7px 10px;
  cursor: pointer;
  margin-bottom: 14px;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  box-shadow:
    0 1px 6px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  transform: translateX(-2px);
}

.back-btn:active {
  transform: translateX(-1px) scale(0.94);
  background: rgba(10, 132, 255, 0.15);
  box-shadow: 0 0 16px rgba(10, 132, 255, 0.2);
  transition-duration: 0.06s;
}

/* ─────────────────────────────────────────
       THANK YOU PAGE
    ───────────────────────────────────────── */
.thankyou-body {
  padding: 40px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.thankyou-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #30d158, #34c759);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 8px 32px rgba(48, 209, 88, 0.5);
  animation: iconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes iconPop {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.thankyou-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius-lg);
  background: var(--glass-pill-strong-bg);
  border: 1px solid var(--glass-pill-strong-border);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.thankyou-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 300px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--glass-pill-bg);
  border: 1px solid var(--glass-pill-border);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  box-shadow:
    0 1px 6px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 4px;
}

.review-tag {
  background: var(--glass-pill-bg);
  border: 1px solid var(--glass-pill-border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* ─────────────────────────────────────────
       TOAST NOTIFICATION
    ───────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(30, 30, 50, 0.88);
  border: 1.5px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  z-index: 999;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ─────────────────────────────────────────
       FLOATING FOOTER
    ───────────────────────────────────────── */
.app-footer {
  margin-top: 28px;
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
  letter-spacing: 0.02em;
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--glass-pill-bg);
  border: 1px solid var(--glass-pill-border);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* ─────────────────────────────────────────
       SLIDER LABELS — frosted glass pill
    ───────────────────────────────────────── */
.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-tertiary);
}

.slider-labels span {
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: var(--glass-pill-bg);
  border: 1px solid var(--glass-pill-border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.progress-labels span {
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: var(--glass-pill-bg);
  border: 1px solid var(--glass-pill-border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ─────────────────────────────────────────
       LOADING SHIMMER
    ───────────────────────────────────────── */
@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }

  100% {
    background-position: 400px 0;
  }
}

/* ─────────────────────────────────────────
       RESPONSIVE
    ───────────────────────────────────────── */
@media (max-width: 400px) {
  .app-container {
    padding: 12px 10px 32px;
  }

  .card-title {
    font-size: 19px;
  }

  .review-type-btn {
    padding: 14px 16px;
  }

  .btn-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}