/* Design System & Variable Tokens */
:root {
  --bg-color: #0b0c10;
  --bg-grid: #13151c;
  --card-bg: rgba(22, 24, 33, 0.7);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --primary-blue: #00d2ff;
  --primary-orange: #ff6b35;
  --accent-cyan: #00f5d4;
  --accent-yellow: #ffb703;
  --success-green: #03c75a;
  --naver-green: #03c75a;
  --coupang-orange: #e52528;
  
  --font-family: 'Outfit', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background glowing visual effects */
.glow-bg {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.07) 0%, rgba(255, 107, 53, 0.04) 50%, rgba(11, 12, 16, 0) 100%);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
  animation: pulse-bg 15s infinite alternate;
}

@keyframes pulse-bg {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(5%, 5%); }
}

/* Header */
header {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 16px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.logo:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-blue);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
  transform: translateY(-1px);
}

.logo .icon {
  font-size: 28px;
  filter: drop-shadow(0 0 8px var(--primary-orange));
}

.logo h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, var(--primary-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.install-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.install-btn:hover {
  background: var(--primary-blue);
  color: #000;
  border-color: var(--primary-blue);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

/* Main Layout */
main {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Categories selector */
.categories {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none; /* Hide scrollbar Firefox */
  -webkit-overflow-scrolling: touch;
}

.categories::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.category-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
  flex-shrink: 0; /* Prevent shrinking on mobile */
}

.category-tab.active {
  color: var(--primary-blue);
}

.category-tab.active::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
  box-shadow: 0 0 8px var(--primary-blue);
}

.category-tab.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge {
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

/* Glassmorphism main card */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

/* Progress indicator */
.progress-bar-container {
  margin-bottom: 24px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.step-indicator {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.step-indicator.active {
  color: var(--primary-orange);
  text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.step-indicator.completed {
  color: var(--primary-blue);
}

.progress-line {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 33.33%;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange));
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Wizard step container transitions */
.wizard-steps {
  position: relative;
}

.wizard-step {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.wizard-step.active {
  display: block;
}

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

/* Titles */
.step-title {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.step-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 20px;
}

/* Options Grid layout */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.option-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: inherit;
}

.option-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 210, 255, 0.1);
}

.option-card.selected {
  background: rgba(255, 107, 53, 0.05);
  border-color: var(--primary-orange);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.15);
}

.option-icon-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 38px;
  margin-bottom: 6px;
}

.option-svg {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.15));
  transition: var(--transition-smooth);
}

.option-card:hover .option-svg {
  transform: scale(1.08);
}

.option-title {
  font-size: 15px;
  font-weight: 700;
}

.option-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Navigation buttons */
.step-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-main);
}

/* Recommendation Results layout */
.result-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.result-header-card {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

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

.badge-result {
  align-self: flex-start;
  background: var(--primary-orange);
  color: #000;
  font-weight: 800;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.result-main-info h3 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.result-main-info p {
  color: var(--text-muted);
  font-size: 13px;
}

.result-icon-container {
  font-size: 48px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.result-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.spec-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.result-card-sub {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
}

.result-card-sub h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary-blue);
  border-left: 3px solid var(--primary-blue);
  padding-left: 8px;
}

/* Custom current/ampere table */
.current-tables {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.current-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.current-label {
  font-size: 13px;
  color: var(--text-muted);
}

.current-val {
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-cyan);
}

/* Guide lists */
.guide-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-list li {
  font-size: 13px;
  line-height: 1.5;
  position: relative;
  padding-left: 18px;
}

.guide-list li::before {
  content: '•';
  color: var(--primary-orange);
  position: absolute;
  left: 5px;
  font-size: 16px;
}

/* Purchase Links section */
.purchase-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
}

.purchase-section h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.purchase-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

.buy-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.coupang-btn {
  background-color: var(--coupang-orange);
  color: #ffffff;
}

.coupang-btn:hover {
  background-color: #d11e21;
  box-shadow: 0 4px 15px rgba(229, 37, 40, 0.3);
  transform: translateY(-2px);
}

.shopping-icon {
  background: rgba(255, 255, 255, 0.2);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 11px;
}

/* Footer */
footer {
  max-width: 900px;
  width: 100%;
  margin: auto auto 0;
  padding: 12px 16px 16px;
  text-align: center;
}

footer p {
  color: var(--text-muted);
  font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .options-grid {
    grid-template-columns: 1fr;
  }
}

/* Legal notice block (쿠팡 파트너스 고지 + 면책 + 참고 출처) */
.legal-notice-block {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.legal-partners,
.legal-disclaimer,
.legal-reference {
  font-size: 10.5px;
  line-height: 1.5;
  margin: 0;
}

.legal-partners {
  color: rgba(0, 210, 255, 0.7);
}

.legal-disclaimer {
  color: rgba(255, 193, 7, 0.7);
}

.legal-reference {
  color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 500px) {
  /* 1. Header & Containers compact styling */
  header {
    padding: 12px 16px 8px;
  }
  
  .logo h1 {
    font-size: 23px;
  }
  
  .logo .icon {
    font-size: 24px;
  }
  
  main {
    padding: 0 10px 20px;
    gap: 14px;
  }
  
  .glass-card {
    padding: 14px 16px;
  }
  
  /* 2. Step Title & Subtitle */
  .step-title {
    font-size: 17px;
    margin-bottom: 4px;
  }
  
  .step-subtitle {
    font-size: 12px;
    margin-bottom: 16px;
  }
  
  /* 3. Category Tabs - All visible without scroll */
  .categories {
    justify-content: space-between;
    gap: 4px;
    padding-bottom: 4px;
    overflow-x: visible; /* Disable scroll */
  }
  
  .category-tab {
    padding: 6px 2px;
    font-size: 13px; /* Enlarged for visibility */
    flex: 1;
    text-align: center;
    font-weight: 700;
    white-space: normal; /* Allow text to wrap to next line! */
    word-break: keep-all;
    line-height: 1.25;
  }
  
  .tech-acronym {
    display: block; /* Show acronyms on the second line! */
    font-size: 10.5px; /* Enlarged for visibility */
    font-weight: 550;
    opacity: 0.85;
    margin-top: 2px;
  }
  
  .category-tab.active::after {
    bottom: -5px;
  }
  
  /* 4. Compact Option Cards */
  .option-card {
    padding: 12px 16px;
    gap: 4px;
  }
  
  .option-icon-container {
    height: 32px;
    margin-bottom: 0;
  }
  
  .option-svg {
    width: 32px;
    height: 32px;
  }
  
  .option-title {
    font-size: 14px;
  }
  
  .option-desc {
    font-size: 11px;
    line-height: 1.3;
  }
  
  /* 5. Compact Results Page Layout */
  .rod-tabs-container {
    padding: 12px;
    margin-bottom: 6px;
  }
  
  .rod-tabs-container h4 {
    font-size: 11px;
    margin-bottom: 8px;
  }
  
  .rod-tab {
    padding: 8px 12px;
    border-radius: 8px;
  }
  
  .rod-tab .tab-spec {
    font-size: 12px;
  }
  
  .rod-tab .tab-label {
    font-size: 9px;
  }
  
  .result-header-card {
    padding: 14px 18px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .result-main-info {
    width: 100%;
  }
  
  .result-main-info h3 {
    font-size: 18px; /* Make AWS spec fit in single line */
    word-break: keep-all;
  }
  
  .result-main-info p {
    font-size: 13px;
  }
  
  .res-brands-text {
    font-size: 11px !important;
    white-space: nowrap !important;
    display: block !important;
    text-align: center !important;
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px !important;
    margin-top: 8px;
  }
  
  .quick-buy-container {
    margin-top: -4px;
    margin-bottom: 4px;
  }
  
  .quick-buy-container .buy-btn {
    padding: 12px 14px;
    font-size: 13px;
    border-radius: 10px;
  }
  
  .result-specs-grid {
    grid-template-columns: 1fr; /* Stack vertically for clear key-value layout */
    gap: 6px;
    margin-bottom: 6px;
  }
  
  .spec-item {
    padding: 10px 14px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    border-radius: 8px;
  }
  
  .spec-label {
    font-size: 11px;
    letter-spacing: 0;
    margin-bottom: 0;
  }
  
  .spec-value {
    font-size: 12px;
    font-weight: 700;
  }
  
  .result-card-sub {
    padding: 12px 14px;
    border-radius: 12px;
  }
  
  .result-card-sub h4 {
    font-size: 13px;
    margin-bottom: 10px;
  }
  
  .current-row {
    padding: 8px 10px;
  }
  
  .current-label {
    font-size: 12px;
  }
  
  .current-val {
    font-size: 12px;
  }
  
  .guide-list li {
    font-size: 12px;
    padding-left: 14px;
  }
  
  /* 6. Navigation Buttons */
  .step-navigation {
    margin-top: 16px;
    padding-top: 12px;
  }
  
  .nav-btn {
    padding: 10px 18px;
    font-size: 13px;
    border-radius: 10px;
  }
}

.rod-tabs-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 8px;
}

.rod-tabs-container h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rod-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rod-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.rod-tab .tab-spec {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.rod-tab .tab-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.rod-tab:hover {
  background: rgba(255, 255, 255, 0.08);
}

.rod-tab:hover .tab-spec {
  color: var(--primary-blue);
}

.rod-tab.active {
  background: var(--primary-orange);
  border-color: var(--primary-orange);
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.rod-tab.active .tab-spec {
  color: #0b0c10;
}

.rod-tab.active .tab-label {
  color: rgba(11, 12, 16, 0.7);
}

.result-card-full {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  grid-column: 1 / -1;
}

.result-card-full h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary-blue);
  border-left: 3px solid var(--primary-blue);
  padding-left: 8px;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-step-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 16px;
}

.guide-step-block h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.guide-step-block p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.res-brands-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-orange);
  margin-top: 8px;
  background: rgba(255, 107, 53, 0.08);
  padding: 6px 12px;
  border-radius: 8px;
  border-left: 3px solid var(--primary-orange);
  display: inline-block;
}

.result-vertical-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.result-navigation {
  display: flex;
  justify-content: space-between !important;
  width: 100%;
}

.quick-buy-container {
  margin-top: 4px;
  margin-bottom: 12px;
  width: 100%;
}

.quick-buy-container .buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #ff9f43 0%, #ff5252 100%);
  color: #ffffff !important;
  font-weight: 800;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(255, 82, 82, 0.4);
  font-size: 15px;
  padding: 18px 24px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
  animation: gentle-pulse 2s infinite ease-in-out;
  cursor: pointer;
}

.quick-buy-container .buy-btn .shopping-icon {
  font-size: 18px;
}

.quick-buy-container .buy-btn .arrow-icon {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.quick-buy-container .buy-btn:hover {
  background: linear-gradient(135deg, #ff8c1a 0%, #e63946 100%);
  box-shadow: 0 8px 25px rgba(255, 82, 82, 0.6);
  transform: translateY(-2px);
}

.quick-buy-container .buy-btn:hover .arrow-icon {
  transform: translateX(4px);
}

@keyframes gentle-pulse {
  0% { transform: scale(1); box-shadow: 0 6px 20px rgba(255, 82, 82, 0.4); }
  50% { transform: scale(1.02); box-shadow: 0 8px 25px rgba(255, 82, 82, 0.65); }
  100% { transform: scale(1); box-shadow: 0 6px 20px rgba(255, 82, 82, 0.4); }
}

.hidden {
  display: none !important;
}

/* Modal Overlay & Content */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 22, 30, 0.95);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: modal-fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes modal-fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-blue);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.close-btn:hover {
  color: var(--primary-orange);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.pwa-instruction {
  text-align: left;
}

.inst-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.pwa-instruction ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pwa-instruction li {
  font-size: 12px;
  color: var(--text-main);
  line-height: 1.4;
}

.modal-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.confirm-btn {
  width: 100%;
  background: var(--primary-blue);
  color: #0b0c10;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.confirm-btn:hover {
  background: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.3);
}
