@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Noto+Sans+KR:wght@400;500;700;900&family=Cinzel:wght@600;800&display=swap');

:root {
  --bg-dark: #070c16;
  --bg-panel: #0d1627;
  --bg-card: rgba(18, 28, 48, 0.75);
  --bg-card-hover: rgba(28, 42, 70, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: #38bdf8;

  --accent-gold: #fbbf24;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-purple: #8b5cf6;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --font-main: 'Plus Jakarta Sans', 'Noto Sans KR', sans-serif;
  --font-serif: 'Cinzel', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(6, 182, 212, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(251, 191, 36, 0.08) 0%, transparent 40%);
}

/* Header */
.medi-header {
  background: rgba(7, 12, 22, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand-icon {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.brand-title h1 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #38bdf8, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-title p {
  font-size: 11px;
  color: var(--text-secondary);
}

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

.currency-select {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  color: #38bdf8;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

/* Layout */
.app-layout {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  flex: 1;
}

@media (max-width: 960px) {
  .app-layout { grid-template-columns: 1fr; }
}

/* Procedure Picker Column */
.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.panel-header-row h2 {
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Category Filter Tabs */
.category-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-filter-row::-webkit-scrollbar { display: none; }

.cat-pill {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent-cyan);
  color: #38bdf8;
}

/* Procedure Items List */
.procedure-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
}

.procedure-item-card {
  background: rgba(13, 22, 39, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.procedure-item-card:hover, .procedure-item-card.active {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  transform: translateX(4px);
}

.proc-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.proc-info p {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.proc-price-tag {
  text-align: right;
  white-space: nowrap;
}

.proc-price-val {
  font-size: 15px;
  font-weight: 800;
  color: #38bdf8;
}

.proc-recovery {
  font-size: 10px;
  color: #34d399;
  margin-top: 2px;
}

/* Right Estimate & Hospital Match Column */
.estimate-summary-box {
  background: linear-gradient(135deg, rgba(13, 22, 39, 0.9), rgba(18, 28, 48, 0.95));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.estimate-title-area {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
}

.price-range-bar-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.price-bar-track {
  height: 8px;
  background: #1e293b;
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
}

.price-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #10b981, #38bdf8, #fbbf24);
}

/* Tax Refund Card */
.tax-refund-banner {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(245, 158, 11, 0.05));
  border: 1px dashed var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.refund-text h5 {
  font-size: 13px;
  font-weight: 800;
  color: #fde68a;
}

.refund-text p {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.refund-amount-pill {
  font-size: 15px;
  font-weight: 900;
  color: #fbbf24;
  text-align: right;
}

/* Hospital Match Cards */
.hospital-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hospital-card {
  background: rgba(13, 22, 39, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.hospital-card:hover {
  border-color: #38bdf8;
}

.hosp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.hosp-name {
  font-size: 14px;
  font-weight: 800;
  color: white;
}

.hosp-rating {
  font-size: 11px;
  color: #fbbf24;
  font-weight: 700;
}

.hosp-badge {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--accent-emerald);
  color: #34d399;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.amenities-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
}

.btn-book-vip {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
  align-self: flex-end;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .medi-header {
    padding: 12px 16px;
    gap: 8px;
  }
  .brand-title h1 {
    font-size: 16px;
  }
  .brand-title p {
    font-size: 10px;
  }
  .app-layout {
    padding: 12px;
    gap: 16px;
  }
  .panel-card {
    padding: 16px;
    gap: 14px;
  }
  .category-filter-row {
    padding-bottom: 4px;
  }
}
