:root {
  --bg-primary: #0b0f19;
  --bg-card: #151c2e;
  --bg-card-hover: #1e2842;
  --border-color: #2a3652;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-blue: #3b82f6;
  --accent-blue-hover: #2563eb;
  --accent-green: #10b981;
  --accent-green-bg: rgba(16, 185, 129, 0.15);
  --accent-red: #ef4444;
  --accent-red-bg: rgba(239, 68, 68, 0.15);
  --accent-orange: #f59e0b;
  --accent-orange-bg: rgba(245, 158, 11, 0.15);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard Variable", Pretendard, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom, 24px);
}

.app-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 28px;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.logo-text h1 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

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

/* iOS Banner */
.ios-banner {
  display: none;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid #3b82f6;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.4;
  color: #bfdbfe;
}
.ios-banner.show {
  display: block;
}

/* Navigation Tabs */
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.badge-count {
  background: rgba(255, 255, 255, 0.25);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 20px;
}

/* Card Container */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Form Styles */
.station-input-group {
  flex: 1;
}

/* Station Input Row (Unified Station Touch Cards) */
.station-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.station-touch-card {
  flex: 1;
  background: linear-gradient(145deg, #1e293b, #152033);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.station-touch-card:hover {
  border-color: var(--accent-blue);
  background: linear-gradient(145deg, #24344d, #1b2840);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
}

.station-touch-card:active {
  transform: translateY(0);
}

.station-touch-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.station-touch-name {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.station-touch-hint {
  font-size: 11px;
  color: #60a5fa;
  font-weight: 500;
  margin-top: 2px;
}

.station-select, .form-input, select {
  width: 100%;
  height: 48px;
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 0 12px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.station-select:focus, .form-input:focus, select:focus {
  border-color: var(--accent-blue);
}

.swap-btn {
  background: #1e2842;
  border: 1px solid var(--border-color);
  color: var(--accent-blue);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s, background 0.2s;
}

.swap-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-blue);
}

.swap-btn:active {
  transform: rotate(180deg);
  background: #2b395b;
}

/* Quick Station Pills */
.quick-stations {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.quick-stations::-webkit-scrollbar {
  display: none;
}

.station-chip {
  background: #1e2842;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
}
.station-chip:hover, .station-chip:active {
  color: #fff;
  border-color: var(--accent-blue);
}

/* Nearby Toggle Card */
.nearby-toggle-card {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.toggle-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.toggle-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-blue);
  cursor: pointer;
}

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

.toggle-title {
  font-size: 13px;
  font-weight: 700;
  color: #93c5fd;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-active {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.toggle-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Two Column Grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  width: 100%;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: #1e2842;
  color: #f1f5f9;
  border: 1px solid var(--border-color);
  width: 100%;
}

.btn-success {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-sm {
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

/* Train Search Results List */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Quick Dates Row */
.quick-dates-row {
  display: flex;
  gap: 5px;
  margin-top: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.quick-dates-row::-webkit-scrollbar {
  display: none;
}
.date-chip {
  background: #1e2842;
  border: 1px solid var(--border-color);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.date-chip:hover {
  border-color: var(--accent-blue);
  color: #fff;
}
.date-chip.active {
  background: rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
  color: #93c5fd;
  font-weight: 600;
}

/* Auto Refresh Button */
.auto-refresh-box {
  display: flex;
  align-items: center;
}
.auto-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e2842;
  border: 1px solid var(--border-color);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.auto-refresh-btn:hover {
  border-color: #3b82f6;
  color: #fff;
}
.auto-refresh-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #34d399;
}
.refresh-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748b;
  display: inline-block;
  transition: all 0.2s;
}
.auto-refresh-btn.active .refresh-indicator {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.train-item {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}

.train-item.available {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05), #0f172a);
}

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

.train-name-badge {
  font-size: 13px;
  font-weight: 700;
  color: #60a5fa;
  display: flex;
  align-items: center;
  gap: 6px;
}

.train-duration {
  font-size: 12px;
  color: var(--text-muted);
}

.train-times {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.time-box {
  display: flex;
  flex-direction: column;
}

.time-val {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.station-name {
  font-size: 12px;
  color: var(--text-muted);
}

.time-arrow {
  color: var(--text-muted);
  font-size: 16px;
}

.seat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.seat-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-green {
  background: var(--accent-green-bg);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-red {
  background: var(--accent-red-bg);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.badge-orange {
  background: var(--accent-orange-bg);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.train-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* Monitor Cards */
.monitor-card {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.monitor-card.found {
  border-color: #10b981;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.monitor-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.monitor-route {
  font-size: 17px;
  font-weight: 700;
}

.monitor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.meta-tag {
  background: #1e2842;
  color: var(--text-muted);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}

.found-banner {
  background: var(--accent-green-bg);
  border: 1px solid #10b981;
  color: #34d399;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.monitor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

/* Alerts List */
.alert-item {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-green);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
}

.alert-item-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.alert-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #34d399;
  margin-bottom: 2px;
}

.alert-item-body {
  font-size: 13px;
  color: var(--text-main);
  margin-bottom: 6px;
}

/* Notification Bar */
.notification-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1e2842;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.empty-state-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid #3b82f6;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9999;
  white-space: nowrap;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Station Label Row & Search Triggers */
.station-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.btn-search-stn-link {
  background: none;
  border: none;
  color: #60a5fa;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background 0.15s;
}

.btn-search-stn-link:hover {
  background: rgba(59, 130, 246, 0.15);
  text-decoration: underline;
}

.btn-full-station-picker {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(30, 41, 59, 0.6);
  border: 1px dashed rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-top: -6px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-full-station-picker:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: var(--accent-blue);
  color: #fff;
}

.badge-picker-action {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
}

/* Station Picker Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow-y: auto;
  animation: fadeIn 0.2s ease-out;
}

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

.modal-content.station-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  height: 85vh;
  max-height: 700px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-wrap h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.station-count-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

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

.modal-close-btn:hover {
  color: #fff;
}

/* Modal Target Switch (출발역 / 도착역) */
.modal-target-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.5);
  flex-shrink: 0;
}

.target-switch-btn {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.target-switch-btn strong {
  color: #fff;
}

.target-switch-btn.active {
  background: rgba(59, 130, 246, 0.18);
  border-color: var(--accent-blue);
  color: #93c5fd;
  font-weight: 700;
}

/* Modal Search Box */
.modal-search-box {
  position: relative;
  margin: 8px 16px 6px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.search-box-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.modal-search-box input {
  width: 100%;
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13px;
  padding: 10px 34px 10px 34px;
  outline: none;
  transition: border-color 0.2s;
}

.modal-search-box input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  background: #334155;
  border: none;
  color: #94a3b8;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Chosung Filter Bar (2줄 자동 래핑, 모바일/데스크톱 완벽 대응, 절대 잘리지 않음) */
.chosung-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px 16px 8px;
  background: rgba(15, 23, 42, 0.4);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  box-sizing: border-box;
}

.chosung-btn {
  flex: 1 1 calc(12.5% - 4px);
  min-width: 32px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(71, 85, 105, 0.4);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s;
  box-sizing: border-box;
}

.chosung-btn:hover, .chosung-btn.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
  font-weight: 700;
}

/* Modal Scrollable Body (주요역 + 전체역 스크롤 영역) */
.modal-scrollable-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-section-box {
  padding: 0;
}

.section-sub-title {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.modal-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.modal-station-chip {
  background: #1e293b;
  border: 1px solid rgba(71, 85, 105, 0.5);
  color: #e2e8f0;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.modal-station-chip:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-blue);
  color: #fff;
}

.modal-station-chip.selected {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
  font-weight: 700;
}

/* Full Station Grid */
.modal-station-list-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.modal-station-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 6px;
}

.station-grid-item {
  background: #0f172a;
  border: 1px solid rgba(51, 65, 85, 0.8);
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: #cbd5e1;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.station-grid-item:hover {
  background: rgba(59, 130, 246, 0.18);
  border-color: var(--accent-blue);
  color: #fff;
  transform: translateY(-1px);
}

.station-grid-item.selected {
  background: rgba(59, 130, 246, 0.25);
  border-color: var(--accent-blue);
  color: #93c5fd;
  font-weight: 700;
}

.station-grid-item .stn-tag {
  font-size: 9px;
  color: #64748b;
  line-height: 1;
}

/* Responsive Modal for Mobile */
@media (max-width: 640px) {
  .modal-overlay {
    padding: 6px;
    align-items: flex-end;
  }

  .modal-content.station-modal-content {
    height: 92vh;
    max-height: 92vh;
    border-radius: 16px 16px 8px 8px;
  }

  .chosung-btn {
    height: 30px;
    font-size: 12px;
  }
}

/* Notification Criteria Panel */
.criteria-panel {
  background: linear-gradient(145deg, #131c2e, #0f172a);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.criteria-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.criteria-title {
  font-size: 14px;
  font-weight: 700;
  color: #93c5fd;
  display: flex;
  align-items: center;
  gap: 6px;
}

.criteria-hint {
  font-size: 11px;
  color: #94a3b8;
}

.criteria-checkbox-box {
  margin-top: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.badge-same-car {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}


