/* ===== iSeam App CSS v1 ===== */

/* --- Design Tokens --- */
:root {
  --is-bg: #ffffff;
  --is-bg-soft: #F1F5F9;
  --is-text: #0F172A;
  --is-text-sub: #64748B;
  --is-text-hint: #94A3B8;
  --is-border: rgba(15,23,42,0.10);
  --is-border-strong: rgba(15,23,42,0.22);
  --is-primary: #6B8AF7;
  --is-primary-light: #EDF1FE;
  --is-info-bg: #EDF1FE;
  --is-info-text: #3B5BDB;
  --is-success-bg: #ECFDF5;
  --is-success-text: #065F46;
  --is-warning-bg: #FFFBEB;
  --is-warning-text: #92400E;
  --is-danger-bg: #FEF2F2;
  --is-danger-text: #991B1B;
  --is-accent: #A78BFA;
  --is-gold: #F59E0B;
  --is-radius: 14px;
  --is-nav-h: 72px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--is-bg);
  color: var(--is-text);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
body.has-nav { padding-bottom: calc(var(--is-nav-h) + env(safe-area-inset-bottom, 0px) + 12px); }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
[hidden] { display: none !important; }

/* --- App Header --- */
.is-header {
  position: sticky; top: 0; z-index: 50;
  background: #FFFFFF;
  color: var(--is-text);
  padding: 0 16px;
  height: 56px;
  display: flex; align-items: center;
  border-bottom: 1px solid var(--is-border);
}
.is-header-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700; letter-spacing: -0.5px;
  color: var(--is-text); text-decoration: none;
}
.is-header-center { flex: 1; display: flex; justify-content: center; }
.is-header-right { display: flex; align-items: center; gap: 8px; }
.is-header-btn {
  width: 36px; height: 36px;
  border: none; border-radius: 50%;
  background: var(--is-bg-soft);
  color: var(--is-text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.is-header-btn:active { background: var(--is-border); }

/* --- Language Picker (flag) --- */
.is-lang-picker { position: relative; }
.is-lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--is-bg-soft);
  border: 1px solid var(--is-border); border-radius: 20px;
  padding: 6px 14px; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--is-text);
  font-family: inherit; min-width: 80px; justify-content: center;
}
.is-lang-btn:active { background: var(--is-border); }
.is-flag { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; vertical-align: middle; }
.is-lang-dropdown {
  position: absolute; top: 38px; left: 50%; transform: translateX(-50%);
  background: #fff; border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  min-width: 240px; z-index: 200; overflow: hidden;
}
.is-lang-option {
  display: block; width: 100%; padding: 10px 16px;
  border: none; background: none; text-align: left;
  font-size: 14px; cursor: pointer; font-family: inherit;
  color: var(--is-text);
}
.is-lang-option:active, .is-lang-option:hover { background: var(--is-bg-soft); }
.is-lang-option + .is-lang-option { border-top: 1px solid var(--is-border); }

/* --- Screen Header --- */
.is-screen-header {
  padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
  margin: 12px 16px 0;
  border-radius: var(--is-radius);
}
.is-screen-header-icon { font-size: 22px; flex-shrink: 0; }
.is-screen-header-text { flex: 1; min-width: 0; }
.is-screen-header-title { font-size: 15px; font-weight: 600; }
.is-screen-header-sub { font-size: 12px; color: var(--is-text-sub); }
.is-screen-header-right { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.is-screen-header--primary { background: var(--is-info-bg); color: var(--is-info-text); }
.is-screen-header--success { background: var(--is-success-bg); color: var(--is-success-text); }
.is-screen-header--soft { background: var(--is-bg-soft); }

/* --- Container --- */
.is-container { padding: 16px; max-width: 480px; margin: 0 auto; overflow-x: hidden; }

/* --- Card --- */
.is-card {
  background: var(--is-bg);
  border: 1px solid var(--is-border);
  border-radius: var(--is-radius);
  padding: 16px;
}
.is-card + .is-card { margin-top: 12px; }
.is-card--soft { background: var(--is-bg-soft); border: none; }

/* --- Key-Value --- */
.is-kv { width: 100%; }
.is-kv-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 4px 0; font-size: 13px;
}
.is-kv-label { color: var(--is-text-sub); }
.is-kv-value { text-align: right; font-weight: 500; }
.is-kv-value--amount { font-size: 22px; font-weight: 600; color: var(--is-text); }
.is-kv-value--success { color: var(--is-success-text); }

/* --- Profile Card (My Page) --- */
.is-profile-header {
  text-align: center; padding: 20px 0 16px;
}
.is-profile-avatar {
  width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 10px;
  background: linear-gradient(135deg, #7C9DF7, #A78BFA);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; color: #fff;
  box-shadow: 0 4px 16px rgba(107,138,247,0.3);
}
.is-profile-name { font-size: 20px; font-weight: 700; color: var(--is-text); }
.is-profile-type {
  display: inline-block; margin-top: 4px; padding: 3px 12px;
  font-size: 11px; font-weight: 600; color: var(--is-primary);
  background: var(--is-primary-light); border-radius: 20px;
}
.is-profile-rows { margin-top: 8px; }
.is-profile-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--is-border);
}
.is-profile-row:last-child { border-bottom: none; }
.is-profile-icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
  background: var(--is-bg-soft); display: flex; align-items: center; justify-content: center;
  color: var(--is-text-hint);
}
.is-profile-row-body { flex: 1; min-width: 0; }
.is-profile-row-label { font-size: 11px; color: var(--is-text-hint); margin-bottom: 2px; }
.is-profile-row-value { font-size: 14px; font-weight: 500; color: var(--is-text); word-break: break-all; }
.is-profile-badge {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
}
.is-profile-badge--ok { background: #ECFDF5; color: #059669; }
.is-profile-badge--warn { background: #FEF2F2; color: #EF4444; }
html.dark-mode .is-profile-badge--ok { background: rgba(5,150,105,0.15); }
html.dark-mode .is-profile-badge--warn { background: rgba(239,68,68,0.15); }

/* --- Request Form Sections --- */
.is-req-section { margin-bottom: 16px; }
.is-req-section-label {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--is-text);
}
.is-req-step {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #7C9DF7, #A78BFA);
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.is-req-guide-btn {
  margin-left: auto; background: var(--is-primary); border: none; border-radius: 16px;
  color: #fff; font-size: 11px; padding: 4px 12px; cursor: pointer; font-weight: 600; font-family: inherit;
}
.is-req-summary {
  margin-top: 16px; padding: 16px;
  background: linear-gradient(135deg, rgba(124,157,247,0.08), rgba(167,139,250,0.08));
  border: 1px solid rgba(107,138,247,0.15); border-radius: var(--is-radius);
}
.is-req-grade-help {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--is-text-hint);
  background: none; color: var(--is-text-hint); font-size: 12px; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  margin-left: 6px; font-family: inherit; transition: all 0.15s;
}
.is-req-grade-help:active { border-color: var(--is-primary); color: var(--is-primary); }
html.dark-mode .is-req-summary { background: rgba(107,138,247,0.08); border-color: rgba(107,138,247,0.2); }

/* --- Chip Grid (Region selector) --- */
.is-chip-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.is-chip {
  padding: 7px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--is-border); background: var(--is-bg); color: var(--is-text);
  cursor: pointer; transition: all 0.15s; font-family: inherit;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.is-chip:active { transform: scale(0.95); }
.is-chip.active {
  border-color: var(--is-primary); background: var(--is-primary); color: #fff; font-weight: 600;
  box-shadow: 0 2px 8px rgba(107,138,247,0.3);
}
html.dark-mode .is-chip { border-color: var(--is-border); background: #1E293B; }
html.dark-mode .is-chip.active { background: var(--is-primary); border-color: var(--is-primary); }

/* --- History Card --- */
.is-history-card {
  background: var(--is-bg); border: 1px solid var(--is-border); border-radius: var(--is-radius);
  padding: 14px 16px; margin-bottom: 10px; cursor: pointer;
  transition: box-shadow 0.15s;
}
.is-history-card:active { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.is-history-card--dead { opacity: 0.5; border-style: dashed; }
.is-history-top { display: flex; justify-content: space-between; align-items: center; }
.is-history-lang {
  font-size: 13px; font-weight: 700; color: var(--is-primary);
  background: var(--is-primary-light); padding: 3px 10px; border-radius: 8px;
}
.is-history-info { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.is-history-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--is-text-sub);
}
.is-history-row svg { flex-shrink: 0; color: var(--is-text-hint); }
.is-history-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--is-border);
}
.is-history-amount { font-size: 18px; font-weight: 700; color: var(--is-text); }
.is-history-actions { display: flex; gap: 6px; }
html.dark-mode .is-history-card { background: #1E293B; border-color: var(--is-border); }

/* --- Buttons --- */
.is-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px; padding: 12px 16px;
  border-radius: 10px; border: none;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: opacity 0.15s;
}
.is-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.is-btn:active:not(:disabled) { opacity: 0.8; }
.is-btn--primary { background: var(--is-info-bg); color: var(--is-info-text); }
.is-btn--success { background: var(--is-success-bg); color: var(--is-success-text); }
.is-btn--ghost { background: transparent; border: 1px solid var(--is-border); color: var(--is-text); }
.is-btn--small { min-height: 36px; padding: 6px 12px; font-size: 13px; width: auto; }

/* --- CTA Button --- */
.is-cta {
  width: 100%; padding: 18px 0; border: none; border-radius: var(--is-radius);
  font-size: 15px; font-weight: 700; color: #fff; cursor: pointer;
  letter-spacing: 0.3px; transition: transform 0.15s, box-shadow 0.15s;
}
.is-cta:active { transform: scale(0.97); }
.is-cta:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.is-cta--primary {
  background: linear-gradient(135deg, #7C9DF7, #6B7BF7, #A78BFA);
  box-shadow: 0 4px 14px rgba(107,138,247,0.35);
}
.is-cta--green {
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 4px 14px rgba(16,185,129,0.3);
}

/* --- Badge --- */
.is-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
.is-badge--primary { background: var(--is-info-bg); color: var(--is-info-text); }
.is-badge--success { background: var(--is-success-bg); color: var(--is-success-text); }
.is-badge--warning { background: var(--is-warning-bg); color: var(--is-warning-text); }
.is-badge--sub { background: var(--is-bg-soft); color: var(--is-text-sub); }
.is-badge--open { background: #DBEAFE; color: #1E40AF; }
.is-badge--claimed { background: #FEF3C7; color: #92400E; }
.is-badge--paid { background: #D1FAE5; color: #065F46; }
.is-badge--done { background: var(--is-success-bg); color: var(--is-success-text); }
.is-badge--cancelled { background: #F3F4F6; color: #6B7280; }

/* --- Form --- */
.is-field { margin-bottom: 14px; }
.is-field-label { font-size: 13px; color: var(--is-text-sub); margin-bottom: 5px; display: block; font-weight: 500; }
.is-input, .is-select {
  width: 100%; max-width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid var(--is-border); border-radius: 10px;
  font-size: 14px; background: var(--is-bg); color: var(--is-text);
  transition: border-color 0.15s;
  -webkit-appearance: none; appearance: none;
}
.is-input:focus, .is-select:focus { border-color: var(--is-primary); outline: none; box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.is-row-2 { display: flex; gap: 8px; }
.is-row-2 > * { flex: 1; min-width: 0; }

/* --- Radar animation --- */
.is-radar {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 40px 0;
}
.is-radar-circle {
  position: relative; width: 160px; height: 160px;
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
}
.is-radar-circle::before, .is-radar-circle::after {
  content: ''; position: absolute; border-radius: 50%;
  border: 1.5px solid var(--is-primary);
  opacity: 0; animation: is-radar-wave 3s ease-out infinite;
}
.is-radar-circle::before { width: 100%; height: 100%; }
.is-radar-circle::after { width: 100%; height: 100%; animation-delay: 1.5s; }
.is-radar-ring1, .is-radar-ring2 {
  position: absolute; border-radius: 50%;
  border: 1.5px solid var(--is-primary);
  opacity: 0; animation: is-radar-wave 3s ease-out infinite;
}
.is-radar-ring1 { width: 70%; height: 70%; animation-delay: 0.6s; }
.is-radar-ring2 { width: 40%; height: 40%; animation-delay: 1.2s; }
@keyframes is-radar-wave {
  0% { transform: scale(0.5); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}
.is-radar-sweep {
  position: absolute; width: 50%; height: 50%;
  top: 0; left: 50%; transform-origin: bottom left;
  animation: is-sweep 2.5s linear infinite;
  background: linear-gradient(to top, transparent, rgba(99,102,241,0.12));
  border-radius: 0 100% 0 0;
}
@keyframes is-sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.is-radar-dot {
  width: 12px; height: 12px;
  background: var(--is-primary); border-radius: 50%; z-index: 2;
  animation: is-dot-pulse 1.5s ease-in-out infinite;
}
@keyframes is-dot-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99,102,241,0.4); }
  50% { transform: scale(1.2); box-shadow: 0 0 0 12px rgba(99,102,241,0); }
}
.is-radar-text {
  margin-top: 20px; font-size: 15px; font-weight: 600;
  color: var(--is-primary); animation: is-pulse 2s ease-in-out infinite;
}
.is-radar-sub { margin-top: 6px; font-size: 12px; color: var(--is-text-sub); }
@keyframes is-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

/* --- Notice --- */
.is-notice {
  background: var(--is-bg-soft); border-radius: 10px;
  padding: 12px 14px; font-size: 12px; line-height: 1.6;
  color: var(--is-text-sub);
}
.is-notice-icon { margin-right: 6px; }

/* --- Metrics --- */
.is-metrics { display: flex; gap: 12px; }
.is-metric {
  flex: 1; background: var(--is-bg-soft);
  border-radius: 10px; padding: 16px;
}
.is-metric-label { font-size: 12px; color: var(--is-text-sub); margin-bottom: 4px; }
.is-metric-value { font-size: 22px; font-weight: 600; }
.is-metric-value--success { color: var(--is-success-text); }
.is-metric-value--warning { color: var(--is-warning-text); }

/* --- PIN input --- */
.is-pin-wrap { display: flex; justify-content: center; gap: 8px; margin: 16px 0; }
.is-pin-box {
  width: 42px; height: 50px; text-align: center;
  font-size: 20px; font-weight: 600;
  border: 1px solid var(--is-border); border-radius: 10px;
  background: var(--is-bg); -webkit-text-security: disc;
  transition: border-color 0.15s;
}
.is-pin-box:focus { border-color: var(--is-primary); outline: none; box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }

/* --- QR Box --- */
.is-qr-box {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px; background: var(--is-bg-soft); border-radius: var(--is-radius);
}
.is-qr-code { font-size: 12px; color: var(--is-text-hint); margin-top: 8px; word-break: break-all; }

/* --- Sub Tabs --- */
.is-subtabs {
  display: flex; border-bottom: 1px solid var(--is-border);
  background: var(--is-bg); position: sticky; top: 56px; z-index: 40;
}
.is-subtab {
  flex: 1; padding: 12px 0; border: none; background: none;
  font-size: 14px; font-weight: 400; color: var(--is-text-sub);
  cursor: pointer; border-bottom: 2.5px solid transparent;
  transition: all 0.15s;
}
.is-subtab.active { color: var(--is-primary); font-weight: 600; border-bottom-color: var(--is-primary); }
.is-subtab-panel { display: none; }
.is-subtab-panel.active { display: block; }
.is-tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; font-size: 11px; font-weight: 600;
  background: var(--is-primary); color: #fff; margin-left: 4px;
}

/* --- Bottom Nav --- */
.is-nav {
  --nav-count: 4; --nav-idx: 0;
  position: fixed; bottom: 0; left: 0; right: 0;
  /* safe-area(iOS 홈 인디케이터)는 높이에 더한다 — border-box 라 padding 만 주면 72px 안쪽이 잠식되어
     Safari 툴바가 숨는 순간(스와이프 업) 아이콘·라벨이 깨짐 */
  height: calc(var(--is-nav-h) + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: stretch;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0,0,0,0.06);
  z-index: 100; padding-bottom: env(safe-area-inset-bottom, 0);
}
/* Sliding capsule */
.is-nav::before {
  content: ''; position: absolute;
  top: 12px;
  left: calc((100% / var(--nav-count)) * var(--nav-idx) + (100% / var(--nav-count) - 64px) / 2);
  width: 64px; height: 36px; border-radius: 18px;
  background: linear-gradient(135deg, #7C9DF7, #6B7BF7, #A78BFA);
  box-shadow: 0 2px 12px rgba(107,123,247,0.35);
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.is-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  height: var(--is-nav-h); /* safe-area 만큼 늘어난 nav 안에서 항목 높이는 고정 */
  padding: 12px 0 0; /* 아이콘 상단 = 12px = 캡슐(.is-nav::before top:12px) 과 정확히 일치. 라벨은 그 아래 */
  border: none; background: none; position: relative; z-index: 1;
  font-size: 11px; font-weight: 500; color: #94A3B8;
  cursor: pointer; transition: color 0.25s;
  text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.is-nav-item .is-nav-icon {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 36px; border-radius: 18px; /* 캡슐 64×36 과 같은 높이 */
  margin-bottom: 3px;
  transition: transform 0.25s;
}
.is-nav-item .is-nav-icon svg { width: 24px; height: 24px; transition: stroke 0.25s; }
.is-nav-item.active .is-nav-icon svg { stroke: #fff; }
.is-nav-item.active { color: var(--is-primary); font-weight: 700; }
.is-nav-item:active .is-nav-icon { transform: scale(0.88); }

/* --- Calendar --- */
.is-cal { background: var(--is-bg); border-radius: var(--is-radius); border: 1px solid var(--is-border); padding: 14px; }
.is-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.is-cal-title { font-size: 15px; font-weight: 600; }
.is-cal-nav {
  width: 36px; height: 36px;
  border: 1px solid var(--is-border); border-radius: 8px;
  background: none; font-size: 14px; cursor: pointer; color: var(--is-text);
}
.is-cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center; font-size: 12px; color: var(--is-text-hint); margin-bottom: 4px;
}
.is-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.is-cal-day {
  aspect-ratio: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: 8px; font-size: 13px; cursor: pointer;
  position: relative; transition: background 0.15s;
}
.is-cal-day:hover { background: var(--is-bg-soft); }
.is-cal-day.today { font-weight: 600; color: var(--is-primary); box-shadow: inset 0 0 0 1.5px var(--is-primary); }
.is-cal-day.selected { background: var(--is-info-bg); color: var(--is-info-text); font-weight: 600; }
.is-cal-day.other { color: var(--is-text-hint); }
.is-cal-day.has-upcoming { background: var(--is-info-bg); color: var(--is-info-text); font-weight: 500; }
.is-cal-day.has-done { background: var(--is-success-bg); color: var(--is-success-text); font-weight: 500; }
.is-cal-day.has-cancelled { background: #F3F4F6; color: #9CA3AF; text-decoration: line-through; }
.is-cal-day.holiday { color: #DC2626 !important; background: #FEF2F2; }
.is-cal-day.saturday { color: #2563EB !important; background: #EFF6FF; }

/* --- Modal --- */
.is-modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.5);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 200; backdrop-filter: blur(2px);
}
.is-modal {
  background: var(--is-bg); border-radius: 20px 20px 0 0;
  width: 100%; max-width: 480px; max-height: 85vh; overflow-y: auto;
  padding: 0;
  animation: is-slide-up 0.25s ease-out;
}
@keyframes is-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.is-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--is-border);
  position: sticky; top: 0; background: var(--is-bg); z-index: 1;
}
.is-modal-title { font-size: 16px; font-weight: 600; }
.is-modal-close { border: none; background: none; font-size: 22px; color: var(--is-text-sub); cursor: pointer; padding: 4px; }
.is-modal-body { padding: 20px; }

/* --- Toast --- */
.is-toast {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: var(--is-text); color: #fff;
  padding: 12px 24px; border-radius: var(--is-radius); font-size: 14px; font-weight: 500;
  z-index: 9999; opacity: 0; transition: opacity 0.3s, transform 0.3s;
  max-width: calc(100% - 32px); text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.is-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.is-toast--success { background: var(--is-success-text); }
.is-toast--warning { background: var(--is-warning-text); }

/* --- List Item --- */
.is-list-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--is-border);
}
.is-list-item:last-child { border-bottom: none; }
.is-list-title { font-size: 14px; font-weight: 500; }
.is-list-sub { font-size: 12px; color: var(--is-text-sub); }
.is-list-amount { font-size: 14px; font-weight: 600; text-align: right; }
.is-list-amount--plus { color: var(--is-success-text); }

/* --- Message --- */
.is-msg {
  padding: 10px 16px; border-radius: 10px; font-size: 13px;
  margin-top: 12px; display: none;
}
.is-msg.show { display: block; }
.is-msg--ok { background: var(--is-success-bg); color: var(--is-success-text); }
.is-msg--bad { background: var(--is-danger-bg); color: var(--is-danger-text); }

/* --- Interpreter Profile Card --- */
.is-profile-card {
  background: linear-gradient(135deg, #1E2A4A, #2E3B8B, #4A3B8B);
  border-radius: 16px; padding: 16px; color: #fff;
  position: relative; overflow: hidden; cursor: pointer;
  transition: box-shadow 0.2s;
}
.is-profile-card::after {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.is-profile-card:active { box-shadow: 0 0 0 3px rgba(139,92,246,0.4); transform: scale(0.98); }

/* --- Extend option --- */
.is-extend-option {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--is-border);
  cursor: pointer; font-size: 14px; font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.is-extend-option:has(input:checked) {
  border-color: var(--is-primary);
  background: rgba(99,102,241,0.06);
}
.is-extend-option input { accent-color: var(--is-primary); }

/* --- Rate buttons (2-row grid: 4 + 3) --- */
#rateBtnGroup { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.is-rate-btn {
  padding: 10px 0; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--is-border); background: var(--is-bg); color: var(--is-text);
  transition: all 0.15s;
}
.is-rate-btn.active {
  border-color: var(--is-primary); background: var(--is-primary); color: #fff;
}

/* --- Payment option button --- */
.is-pay-opt {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  background: var(--is-bg); border: 1.5px solid var(--is-border); border-radius: var(--is-radius);
  cursor: pointer; text-align: left; font-family: inherit; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.is-pay-opt:active { border-color: var(--is-primary); box-shadow: 0 0 0 3px rgba(107,138,247,0.1); }

/* --- Stepper (hours +/-) --- */
.is-stepper-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--is-border); background: var(--is-bg); color: var(--is-text);
  font-size: 22px; font-weight: 600; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; -webkit-appearance: none; appearance: none;
}
.is-stepper-btn:active { background: var(--is-primary); color: #fff; border-color: var(--is-primary); }

/* --- Interpreter Grade Badges --- */
.is-grade { display:inline-flex;align-items:center;gap:3px;padding:3px 8px;border-radius:6px;font-size:11px;font-weight:600;white-space:nowrap; }
.is-grade--general { background:#F1F5F9;color:#64748B; }
.is-grade--verified { background:#DBEAFE;color:#1D4ED8; }
.is-grade--professional { background:linear-gradient(135deg,#FEF3C7,#FDE68A);color:#78350F;border:1px solid rgba(245,158,11,0.3); }

/* --- Grade option cards --- */
.is-grade-option { overflow: hidden; word-break: break-word; min-width: 0; }

/* --- Disabled card --- */
.is-card--disabled { opacity: 0.5; border-style: dashed; }

/* --- Topbar button --- */
.is-topbar-btn {
  background: none; border: none; color: var(--is-text-hint);
  font-size: 13px; cursor: pointer; padding: 4px 8px;
}
.is-topbar-btn:hover { color: var(--is-text); }

/* --- Section title --- */
.is-section-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }

/* --- Status bar (pulse) --- */
.is-statusbar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 500;
}
.is-statusbar--warning { background: var(--is-warning-bg); color: var(--is-warning-text); }

/* --- Stars --- */
.is-stars { color: var(--is-gold); font-size: 16px; letter-spacing: 2px; }

/* --- Consent --- */
.is-consent-check {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 16px; padding: 12px; background: var(--is-bg-soft);
  border-radius: 10px; cursor: pointer;
}

/* --- FAQ Accordion --- */
.is-faq-item { border-bottom: 1px solid var(--is-border); }
.is-faq-q {
  width: 100%; padding: 14px 0; border: none; background: none;
  text-align: left; font-size: 14px; font-weight: 500; color: var(--is-text);
  cursor: pointer; font-family: inherit; display: flex; justify-content: space-between; align-items: center;
}
.is-faq-q::after { content: '+'; font-size: 18px; color: var(--is-text-hint); transition: transform 0.2s; }
.is-faq-q.open::after { content: '−'; color: var(--is-primary); }
.is-faq-a {
  font-size: 13px; line-height: 1.7; color: var(--is-text-sub);
  padding: 0 0 14px; margin: 0;
}

/* --- Global Notice Bar --- */
#globalNoticeBar {
  font-size: 13px; font-weight: 500; color: var(--is-info-text);
  display: flex; align-items: center; height: 36px; padding: 0 12px;
}
.is-notice-tag {
  font-size: 10px; font-weight: 700; background: var(--is-primary); color: #fff;
  padding: 2px 8px; border-radius: 4px; flex-shrink: 0; margin-right: 10px; margin-left: 4px;
}
.is-notice-titles {
  flex: 1; overflow: hidden; height: 20px; position: relative;
}
.is-notice-title {
  position: absolute; width: 100%; left: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 20px; font-size: 13px;
  animation: is-notice-in 0.4s ease forwards;
}
.is-notice-title.out { animation: is-notice-out 0.4s ease forwards; }
@keyframes is-notice-in { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes is-notice-out { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-100%); opacity: 0; } }
.is-notice-chevron { flex-shrink: 0; color: var(--is-text-hint); margin-left: 4px; }

/* --- Skeleton Loading --- */
.is-skeleton {
  background: linear-gradient(90deg, var(--is-bg-soft) 25%, #E2E8F0 50%, var(--is-bg-soft) 75%);
  background-size: 200% 100%;
  animation: is-shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes is-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.is-skeleton-card { height: 80px; margin-bottom: 10px; border-radius: 12px; }
.is-skeleton-line { height: 14px; margin-bottom: 8px; }
.is-skeleton-line--short { width: 60%; }
.is-skeleton-circle { width: 48px; height: 48px; border-radius: 50%; }

/* --- Empty State --- */
.is-empty { text-align: center; padding: 48px 20px; }
.is-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }
.is-empty-title { font-size: 15px; font-weight: 600; color: var(--is-text-sub); margin-bottom: 6px; }
.is-empty-desc { font-size: 13px; color: var(--is-text-hint); line-height: 1.6; }

/* --- Dark Mode (class-based) --- */
html.dark-mode {
  --is-bg: #0F172A;
  --is-bg-soft: #1E293B;
  --is-bg-card: #1E293B;
  --is-text: #F1F5F9;
  --is-text-sub: #94A3B8;
  --is-text-hint: #64748B;
  --is-border: rgba(241,245,249,0.1);
  --is-border-strong: rgba(241,245,249,0.2);
  --is-info-bg: rgba(99,102,241,0.15);
  --is-info-text: #93C5FD;
  --is-success-bg: rgba(16,185,129,0.15);
  --is-success-text: #6EE7B7;
  --is-warning-bg: rgba(245,158,11,0.15);
  --is-warning-text: #FCD34D;
  --is-danger-bg: rgba(239,68,68,0.15);
  --is-danger-text: #FCA5A5;
  --is-primary-light: rgba(107,138,247,0.15);
  color-scheme: dark;
}
html.dark-mode body { background: var(--is-bg); color: var(--is-text); }
html.dark-mode .is-header { background: #1E293B; border-bottom-color: var(--is-border); }
html.dark-mode .is-header-btn { background: rgba(255,255,255,0.08); }
html.dark-mode .is-lang-btn { background: rgba(255,255,255,0.08); border-color: var(--is-border); }
html.dark-mode .is-lang-dropdown { background: #1E293B; }
html.dark-mode .is-lang-option { color: var(--is-text); }
html.dark-mode .is-lang-option:hover { background: rgba(255,255,255,0.05); }
html.dark-mode .is-card { background: #1E293B; border-color: var(--is-border); }
html.dark-mode .is-card--soft { background: rgba(255,255,255,0.05); }
html.dark-mode .is-input, html.dark-mode .is-select { background: #1E293B; color: var(--is-text); border-color: var(--is-border); }
html.dark-mode .is-input:focus, html.dark-mode .is-select:focus { border-color: var(--is-primary); }
html.dark-mode .is-modal { background: #1E293B; }
html.dark-mode .is-nav { background: rgba(15,23,42,0.92); border-top-color: rgba(255,255,255,0.06); }
html.dark-mode .is-nav::before { box-shadow: 0 2px 16px rgba(107,123,247,0.4); }
html.dark-mode .is-nav-item { color: #475569; }
html.dark-mode .is-nav-item.active { color: #A5B4FC; }
html.dark-mode .is-subtabs { background: #0F172A; border-bottom-color: var(--is-border); }
html.dark-mode .is-notice { background: rgba(255,255,255,0.05); }
html.dark-mode .is-faq-q { color: var(--is-text); }
html.dark-mode .is-faq-a { color: var(--is-text-sub); }
html.dark-mode .is-dropdown-item { color: var(--is-text) !important; border-bottom-color: var(--is-border) !important; }
html.dark-mode .is-dropdown-item:active { background: rgba(255,255,255,0.05) !important; }
html.dark-mode #moreDropdown { background: #1E293B !important; }
html.dark-mode .is-skeleton { background: linear-gradient(90deg, #1E293B 25%, #334155 50%, #1E293B 75%); background-size: 200% 100%; }
/* Dark mode: badges */
html.dark-mode .is-badge--open { background: rgba(59,130,246,0.2); color: #93C5FD; }
html.dark-mode .is-badge--claimed { background: rgba(245,158,11,0.2); color: #FCD34D; }
html.dark-mode .is-badge--paid { background: rgba(16,185,129,0.2); color: #6EE7B7; }
html.dark-mode .is-badge--cancelled { background: rgba(107,114,128,0.2); color: #9CA3AF; }
/* Dark mode: grade badges */
html.dark-mode .is-grade--general { background: rgba(241,245,249,0.1); color: #94A3B8; }
html.dark-mode .is-grade--verified { background: rgba(59,130,246,0.2); color: #93C5FD; }
html.dark-mode .is-grade--professional { background: rgba(245,158,11,0.2); color: #FBBF24; border-color: rgba(245,158,11,0.4); }
/* Dark mode: calendar */
html.dark-mode .is-cal-day.has-cancelled { background: rgba(107,114,128,0.15); color: #9CA3AF; }
html.dark-mode .is-cal-day.holiday { background: rgba(220,38,38,0.15); color: #FCA5A5; }
html.dark-mode .is-cal-day.saturday { background: rgba(37,99,235,0.15); color: #93C5FD; }
/* Dark mode: inline-style overrides for hardcoded colors */
html.dark-mode [style*="background:#fff"], html.dark-mode [style*="background:#FFFFFF"],
html.dark-mode [style*="background: #fff"], html.dark-mode [style*="background: #FFFFFF"] { background: #1E293B !important; }
html.dark-mode [style*="color:#333"], html.dark-mode [style*="color:#444"],
html.dark-mode [style*="color: #333"], html.dark-mode [style*="color: #444"] { color: var(--is-text-sub) !important; }
html.dark-mode [style*="color:#666"], html.dark-mode [style*="color: #666"] { color: var(--is-text-hint) !important; }
html.dark-mode [style*="color:#0F172A"], html.dark-mode [style*="color: #0F172A"] { color: var(--is-text) !important; }
html.dark-mode [style*="border:1px solid #E2E8F0"], html.dark-mode [style*="border: 1px solid #E2E8F0"] { border-color: var(--is-border-strong) !important; }
html.dark-mode [style*="border:1px solid #e2e8f0"] { border-color: var(--is-border-strong) !important; }
html.dark-mode [style*="background:#F8FAFC"], html.dark-mode [style*="background: #F8FAFC"] { background: #0F172A !important; }
html.dark-mode [style*="background:#EEF2FF"], html.dark-mode [style*="background: #EEF2FF"] { background: rgba(99,102,241,0.15) !important; }
html.dark-mode [style*="border:2px solid #E0E7FF"] { border-color: rgba(99,102,241,0.3) !important; }
html.dark-mode [style*="border-bottom:1px solid #f0f0f0"] { border-bottom-color: var(--is-border) !important; }
html.dark-mode [style*="color:#64748B"], html.dark-mode [style*="color: #64748B"] { color: var(--is-text-hint) !important; }
html.dark-mode [style*="color:#CBD5E1"] { color: var(--is-text-hint) !important; }
html.dark-mode #splashScreen { background: #0F172A !important; }
html.dark-mode .is-logo-light { display: none !important; }
html.dark-mode .is-logo-dark { display: inline !important; }
html.dark-mode #splashScreen .is-splash-tagline { color: #64748B !important; }
/* Dark mode: theme toggle */
.is-theme-toggle { display: flex; gap: 4px; background: var(--is-bg-soft); border-radius: 10px; padding: 3px; }
.is-theme-opt { flex: 1; padding: 8px 0; border: none; background: none; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--is-text-hint); cursor: pointer; font-family: inherit; transition: all 0.2s; }
.is-theme-opt.active { background: var(--is-primary); color: #fff; font-weight: 600; }
.is-theme-toggle--mini { gap: 2px; padding: 2px; border-radius: 8px; }
.is-theme-toggle--mini .is-theme-opt { padding: 5px 0; font-size: 12px; border-radius: 6px; flex: 1; }
.is-dropdown-theme-wrap { border-bottom: 1px solid #F1F5F9; }
html.dark-mode .is-dropdown-theme-wrap { border-bottom-color: var(--is-border); }

/* --- Spinner --- */
.is-spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid var(--is-primary); border-top-color: transparent;
  border-radius: 50%; animation: is-spin 0.8s linear infinite;
}
@keyframes is-spin { to { transform: rotate(360deg); } }

/* ===== Banner (theme + pattern) ===== */
#homeBannerSwiper .swiper-slide {
  aspect-ratio: 2 / 1; background: #f5f6f8;
  border-radius: 12px; overflow: hidden;
}
.bn {
  display: flex; align-items: center;
  width: 100%; height: 100%; border-radius: 12px;
  text-decoration: none; color: #fff;
  position: relative; overflow: hidden;
}
.bn-bg { background-size: cover; background-position: center; }
.bn-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.1) 100%);
  z-index: 0;
}
.bn-inner { position: relative; z-index: 1; padding: 0 24px; width: 100%; }
.bn-bg .bn-inner { width: auto; margin-left: 16px; margin-right: auto; }
.bn-title { font-size: 18px; font-weight: 800; line-height: 1.3; }
.bn-sub {
  font-size: 12px; opacity: 0.85; margin-top: 5px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Colors */
.bn-c-navy    { background: linear-gradient(135deg, #0B1D3C, #1B3358); }
.bn-c-gold    { background: linear-gradient(135deg, #C8962E, #A67B20); }
.bn-c-emerald { background: linear-gradient(135deg, #0D9488, #065F56); }
.bn-c-indigo  { background: linear-gradient(160deg, #312E81, #4338CA, #6366F1); }
.bn-c-sunset  { background: linear-gradient(135deg, #F97316, #EC4899); }
.bn-c-ocean   { background: linear-gradient(135deg, #2563EB, #06B6D4); }
.bn-c-forest  { background: linear-gradient(135deg, #166534, #15803D, #22C55E); }
.bn-c-cherry  { background: linear-gradient(135deg, #9F1239, #E11D48); }
.bn-c-slate   { background: linear-gradient(135deg, #334155, #1E293B); }
.bn-c-violet  { background: linear-gradient(135deg, #7C3AED, #A855F7, #C084FC); }
/* Patterns */
.bn-p-circle::before {
  content: ''; position: absolute; top: -30%; right: -10%;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.bn-p-circle::after {
  content: ''; position: absolute; bottom: -20%; left: -5%;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.bn-p-stripe::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 12px,
    rgba(255,255,255,0.04) 12px, rgba(255,255,255,0.04) 24px
  );
}
.bn-p-dashed::after {
  content: ''; position: absolute; left: 68%;
  top: 8px; bottom: 8px; width: 0;
  border-left: 2px dashed rgba(255,255,255,0.25);
}
.bn-p-grid::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    90deg, transparent, transparent 30px,
    rgba(255,255,255,0.03) 30px, rgba(255,255,255,0.03) 31px
  ),
  repeating-linear-gradient(
    0deg, transparent, transparent 30px,
    rgba(255,255,255,0.03) 30px, rgba(255,255,255,0.03) 31px
  );
}
.bn-p-diamond::before {
  content: ''; position: absolute; right: -20px; top: -20px;
  width: 100px; height: 100px; border: 3px solid rgba(255,255,255,0.1);
  border-radius: 20px; transform: rotate(30deg);
}
.bn-p-diamond::after {
  content: ''; position: absolute; right: 30px; bottom: -10px;
  width: 60px; height: 60px; border: 3px solid rgba(255,255,255,0.07);
  border-radius: 14px; transform: rotate(15deg);
}
.bn-p-ticket::before {
  content: ''; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 48px; opacity: 0.15;
}
.bn-p-ticket::after {
  content: ''; position: absolute; left: 68%;
  top: 8px; bottom: 8px; width: 0;
  border-left: 2px dashed rgba(255,255,255,0.25);
}
