/* Ongjin Island Pass — app styles, overriding Brex tokens for KR brand */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Instrument+Serif&display=swap');

:root {
  /* ── 옹진 섬 패스 브랜드 컬러 시스템 ── */
  --primary: #0068f9;            /* 주컬러 (Electric Cobalt) */
  --primary-deep: #024bb1;       /* 부컬러 (Deep Cobalt) */
  --primary-soft: rgba(0, 104, 249, 0.08); /* 주컬러 8% 틴트 */

  --powder-blue: #EBF3FA;        /* Powder Blue Light Tint (밝은 블루 배경) */
  
  --sub-forest: #046645;          /* 서브컬러 1 (Forest) */
  --sub-forest-soft: rgba(4, 102, 69, 0.1);

  --sub-violet: #6736eb;          /* 서브컬러 2 (Vivid Violet) */
  --sub-violet-soft: rgba(103, 54, 235, 0.1);

  /* 호환성 변수 얼라이어스 매핑 */
  --accent: var(--primary);
  --accent-pressed: var(--primary-deep);
  --accent-soft: var(--powder-blue);
  --accent-deep: var(--primary-deep);

  /* Fonts: Pretendard KR first, Noto Sans SC for CJK fallback, Inter for latin */
  --font-sans: 'Pretendard Variable', 'Pretendard', 'Noto Sans SC',
               'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, ui-serif, serif;

  /* App-specific */
  --app-bg: #FAFAFB;
  --app-header-h: 64px;
}

/* ─────────────────────────────────────────────
   Page scaffold
   ───────────────────────────────────────────── */
html, body {
  margin: 0;
  padding: 0;
  background: var(--app-bg);
  font-family: var(--font-sans);
  color: var(--fg-strong);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

/* Production mobile web container (replaces .page + Phone shell) */
.app-container {
  width: 100%;
  max-width: var(--max-mobile);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--app-bg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-top: 0;
  padding-bottom: 80px; /* tab bar */
}
.scroll::-webkit-scrollbar { display: none; }

/* ─────────────────────────────────────────────
   Header
   ───────────────────────────────────────────── */
.header {
  padding: 10px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--app-bg);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
}
.logo-mark {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1.38) translateY(1.5px);
  transform-origin: center;
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.05;
  min-width: 0;
}
.logo-text .wm {
  font-family: var(--font-serif);
  font-size: 17.5px;
  letter-spacing: -0.01em;
  color: var(--fg-strong);
  font-weight: 500;
  white-space: nowrap;
}
.logo-text .sub {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: -0.02em;
  color: var(--fg-secondary);
  font-weight: 600;
  white-space: nowrap;
}
.head-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-nav);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--fg-strong);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  position: relative;
}
.icon-btn:active { background: var(--color-surface-pressed); }
.icon-btn .dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 6px;
  height: 6px;
  border-radius: 100px;
  background: var(--accent);
}

/* ─────────────────────────────────────────────
   Header Dropdown Popovers
   ───────────────────────────────────────────── */
.header-popover-wrap {
  position: relative;
}
.header-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: max-content;
  width: max-content;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.14), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: all 0.18s var(--ease-standard);
  z-index: 200;
}
.header-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #111827;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
  width: 100%;
  text-align: center;
}
.dropdown-item:hover, .dropdown-item:active, .dropdown-item.active {
  background: #F3F4F6;
  color: #111827;
  font-weight: 600;
}
.dropdown-item.primary {
  color: #111827;
  font-weight: 600;
}
.dropdown-item.danger {
  color: #EF4444;
  font-weight: 500;
}
.dropdown-item.danger:hover, .dropdown-item.danger:active {
  background: #FEE2E2;
  color: #DC2626;
}
.dropdown-divider {
  height: 1px;
  background: #EEF0F2;
  margin: 4px 0;
}

/* Search */
.search {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  background: #fff;
  color: var(--fg-tertiary);
  font-size: 14px;
  font-weight: 500;
}
.search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  color: var(--fg-strong);
  min-width: 0;
}
.search input::placeholder { color: var(--fg-tertiary); }

/* ─────────────────────────────────────────────
   Hero — featured island
   ───────────────────────────────────────────── */
.hero {
  padding: 4px 20px 8px;
}
.hero-card {
  position: relative;
  width: 100%;
  aspect-ratio: 5/4;
  border-radius: 20px;
  overflow: hidden;
  background: #15191e;
  isolation: isolate;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.2s ease-in-out;
  opacity: 0;
}
.hero-img.active {
  opacity: 1;
}
.hero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 0%, rgba(0,0,0,0) 30%,
    rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}
.hero-top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}
.hero-back {
  width: 36px;
  height: 36px;
  border-radius: 100px;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-strong);
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.92);
  color: var(--fg-strong);
  font-size: 12px;
  font-weight: 600;
}
.hero-glass-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 11px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 14px;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 10;
  pointer-events: none;
}
.hero-glass-badge .curr {
  font-weight: 700;
  color: #fff;
}
.hero-glass-badge .sep {
  opacity: 0.6;
  font-size: 12px;
  margin: 0 1px;
}
.hero-glass-badge .total {
  font-weight: 400;
  opacity: 0.85;
}
.hero-bottom {
  position: absolute;
  left: 25px;
  right: 25px;
  bottom: 25px;
  color: #fff;
  z-index: 2;
}
.hero-slogan {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero-slogan .sl-eng {
  font-family: var(--font-serif);
  font-size: 22px;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
  margin-bottom: 7px;
  line-height: 1.1;
  font-weight: 500;
}
.hero-slogan .sl-title {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 6px;
}
.hero-slogan .sl-sub {
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.02em;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.86);
  margin-bottom: 10px;
}
.hero-eyebrow .pin {
  width: 4px;
  height: 4px;
  border-radius: 100px;
  background: var(--accent);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1.04;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin-bottom: 6px;
  color: #fff;
}
.hero-title.kr {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.hero-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-meta .sep { opacity: 0.5; }
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 12px 14px 12px 16px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 14px;
}
.hero-cta-l {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-cta-l .l1 {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}
.hero-cta-l .l2 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.hero-cta-arrow {
  width: 32px;
  height: 32px;
  border-radius: 100px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* Hero variant: card-below */
.hero-card.below {
  aspect-ratio: 4/3;
  border-radius: 20px 20px 0 0;
}
.hero-card.below .hero-grad { display: none; }
.hero-card.below .hero-bottom { display: none; }
.hero-card.below + .hero-below {
  background: #fff;
  border: 1px solid #EEF0F2;
  border-top: 0;
  border-radius: 0 0 20px 20px;
  padding: 18px 20px 20px;
}
.hero-below .hero-eyebrow { color: var(--fg-secondary); margin-bottom: 8px; }
.hero-below .hero-title { color: var(--fg-strong); }
.hero-below .hero-meta { color: var(--fg-secondary); }
.hero-below .hero-cta {
  background: var(--accent);
  border: none;
  color: #fff;
  margin-top: 14px;
}
.hero-below .hero-cta-l .l1 { color: rgba(255,255,255,0.78); }

/* Hero variant: minimal */
.hero-card.minimal { aspect-ratio: 16/10; border-radius: 20px; }
.hero-card.minimal .hero-cta { display: none; }
.hero-card.minimal .hero-title.kr { font-size: 24px; }
.hero-card.minimal .hero-grad {
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 35%, rgba(0,0,0,0.6) 100%);
}

/* ─────────────────────────────────────────────
   Section header
   ───────────────────────────────────────────── */
.section { padding: 38px 0 4px; }
.section-head {
  padding: 0 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.section-head h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
  margin: 0;
}
.section-head p {
  font-size: 15px;
  color: var(--fg-secondary);
  letter-spacing: -0.02em;
  margin: 0;
}

/* ─────────────────────────────────────────────
   Island tabs
   ───────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  padding: 12px 20px 11px 20px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 100px;
  background: transparent;
  border: 1px solid #E5E7EB;
  color: var(--fg-secondary);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.03em;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-standard);
  user-select: none;
}
.tab[data-active="true"] {
  background: var(--fg-strong);
  border-color: var(--fg-strong);
  color: #fff;
  font-weight: 500;
}

/* ─────────────────────────────────────────────
   Island cards horizontal scroll
   ───────────────────────────────────────────── */
.cards-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  padding: 12px 20px 16px 20px;
  user-select: none;
  -webkit-user-select: none;
}
.cards-scroll::-webkit-scrollbar { display: none; }
.island-card {
  flex: 0 0 160px;
  cursor: pointer;
  user-select: none;
}
.island-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #d9dde2;
}
.island-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
  transition: transform 0.3s ease;
}
.island-card:hover .island-thumb img {
  transform: scale(1.08);
}
.island-info .island-title {
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
.island-card:hover .island-title {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--primary);
}
.island-thumb .bookmark {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 100px;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-strong);
}
.island-info {
  padding: 11px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.island-info .island-name {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.island-info .island-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-strong);
  letter-spacing: -0.01em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

/* ─────────────────────────────────────────────
   Service cards
   ───────────────────────────────────────────── */
.services {
  padding: 12px 20px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card,
.service-card *,
.service-card:hover,
.service-card:hover * {
  text-decoration: none !important;
}
.service-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid #EEF0F2;
  width: 100%;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.service-card:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 12px 28px -6px rgba(0, 104, 249, 0.32);
  transform: translateY(-2px);
}
.service-card .ico {
  width: 68px;
  height: 68px;
  border-radius: 18px !important;
  background: var(--powder-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  overflow: hidden;
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.service-card .ico img.ico-3d {
  width: 58px;
  height: 58px;
  object-fit: contain;
  mix-blend-mode: multiply !important;
  display: block;
  transition: transform 0.22s ease;
}
.service-card:hover .ico {
  background: #FFFFFF;
  border-radius: 18px !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transform: scale(1.04);
}
.service-card:hover .ico img.ico-3d {
  mix-blend-mode: multiply !important;
  transform: scale(1.05);
}
.service-card .stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
  margin-left: 10px;
}
.service-card .stack .t {
  font-size: 17px;
  font-weight: 700;
  color: var(--fg-strong);
  letter-spacing: -0.02em;
  transition: color 0.22s ease;
}
.service-card:hover .stack .t {
  color: #FFFFFF;
}
.service-card .stack .d {
  font-size: 13.5px;
  color: var(--fg-secondary);
  line-height: 1.4;
  letter-spacing: -0.01em;
  transition: color 0.22s ease;
}
.service-card:hover .stack .d {
  color: rgba(255, 255, 255, 0.88);
}
.service-card .chev {
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}
.service-card:hover .chev {
  transform: translateX(4px);
  color: #FFFFFF;
}

/* ─────────────────────────────────────────────
   Bottom tab bar
   ───────────────────────────────────────────── */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid #EEF0F2;
  padding: 10px 8px calc(env(safe-area-inset-bottom, 0px) + 10px);
  display: flex;
  align-items: center;
  z-index: 30;
  max-width: var(--max-mobile);
  margin: 0 auto;
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 2px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.15s ease;
}
.tab-item .label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.tab-item[data-active="true"] { color: var(--primary); font-weight: 600; }

/* ── 브랜드 서브 컬러 나열 유틸리티 (Forest & Vivid Violet) ── */
.badge-primary { background: var(--primary-soft); color: var(--primary); }
.badge-forest  { background: var(--sub-forest-soft); color: var(--sub-forest); }
.badge-violet  { background: var(--sub-violet-soft); color: var(--sub-violet); }

/* ─────────────────────────────────────────────
   Footer note
   ───────────────────────────────────────────── */
.cap {
  text-align: center;
  font-size: 12px;
  color: var(--fg-secondary);
  margin-top: 16px;
  max-width: 360px;
}
.cap strong { color: var(--fg-strong); font-weight: 600; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp var(--duration-base) var(--ease-standard); }

/* ─────────────────────────────────────────────
   Hero slogan (sl-eng 16px + sl-title 30px bold + sl-sub 14.5px)
   ───────────────────────────────────────────── */
.hero-slogan {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.hero-slogan .sl-eng {
  font-family: var(--font-serif);
  font-size: 16px;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.hero-slogan .sl-title {
  font-family: var(--font-sans);
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 1px 0 4px 0;
}
.hero-slogan .sl-sub {
  font-family: var(--font-sans);
  font-size: 15.5px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.hero-slogan .sl1 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-style: normal;
  color: rgba(255,255,255,0.90);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 2px;
}
.hero-slogan .sl2 {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.hero-slogan .sl1.dark { color: var(--fg-secondary); font-style: italic; }
.hero-slogan .sl2.dark { color: var(--fg-strong); }

/* ─────────────────────────────────────────────
   Coupon badge on merchant card
   ───────────────────────────────────────────── */
.coupon-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  height: 22px;
  padding: 0 8px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 2;
}

/* ─────────────────────────────────────────────
   My Page
   ───────────────────────────────────────────── */
.my-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  padding-top: 0;
  padding-bottom: 96px;
  background: #FFFFFF;
}
.my-scroll::-webkit-scrollbar { display: none; }

/* ─────────────────────────────────────────────
   My Page — Header
   ───────────────────────────────────────────── */
.my-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 64px;
  padding: 0 18px;
}
.my-header .my-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
  text-align: center;
}
.my-header .my-logout {
  position: absolute;
  right: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-secondary);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

/* ─────────────────────────────────────────────
   My Page — Balance Card (프리미엄 그래디언트)
   ───────────────────────────────────────────── */
.balance-card {
  margin: 8px 20px 0;
  padding: 24px 20px 20px;
  border-radius: 20px;
  background: var(--primary, #0068F9);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 104, 249, 0.25);
}
.balance-grid {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}
.balance-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.balance-divider {
  width: 1px;
  height: 52px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 16px;
  flex-shrink: 0;
}
.balance-label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  opacity: 0.92;
  margin-bottom: 6px;
}
.balance-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #FFFFFF;
  white-space: nowrap;
}
.balance-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}
.balance-action {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: none;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.balance-action:active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(0.98);
}
.balance-btn {
  flex: 1;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.balance-btn:active { background: rgba(255, 255, 255, 0.2); }

/* ─────────────────────────────────────────────
   My Page — Coupon Tabs (라운드 필 칩)
   ───────────────────────────────────────────── */
.coupon-tabs {
  margin: 34px 20px 10px;
  display: flex;
  gap: 8px;
}
.coupon-tab {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid #E5E7EB;
  border-radius: 100px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--fg-secondary);
  cursor: pointer;
  text-align: center;
  letter-spacing: -0.03em;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.coupon-tab[data-active="true"] {
  color: #fff;
  background: var(--fg-strong);
  border-color: var(--fg-strong);
  font-weight: 500;
}
.coupon-tabs-wrap {
  margin: 24px 20px 0;
  display: flex;
  gap: 6px;
}
.coupon-tab-btn {
  flex: 1;
  padding: 9px 0;
  background: #F4F5F7;
  border: none;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-tertiary);
  cursor: pointer;
  text-align: center;
  letter-spacing: -0.01em;
  transition: all var(--duration-fast);
}
.coupon-tab-btn[data-active="true"] {
  color: #fff;
  background: var(--fg-strong);
}

/* ─────────────────────────────────────────────
   My Page — Coupon List & Items
   ───────────────────────────────────────────── */
.coupon-list {
  padding: 16px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.coupon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #EEF0F2;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ci-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ci-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ci-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg-strong);
  letter-spacing: -0.02em;
}
.ci-name.muted { color: var(--fg-secondary); }
.ci-amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.ci-amount.muted { color: var(--fg-quiet); text-decoration: line-through; }
.ci-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ci-detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.4;
}
.ci-detail-label {
  color: var(--fg-tertiary);
  font-weight: 500;
  width: 48px;
  flex-shrink: 0;
}
.ci-detail-val {
  color: var(--fg-secondary);
  font-weight: 500;
}
.ci-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.coupon-use-btn-inline {
  padding: 9px 16px;
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 104, 249, 0.2);
  transition: background 0.15s ease, transform 0.15s ease;
}
.coupon-use-btn-inline:active {
  background: #004ecc;
  transform: scale(0.97);
}
.coupon-status-tag {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  background: #F3F4F6;
  color: #9CA3AF;
}

/* ─────────────────────────────────────────────
   My Page — Menu Section
   ───────────────────────────────────────────── */
.my-menu-section {
  padding: 28px 20px 0;
  display: flex;
  flex-direction: column;
}
.my-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 4px;
  background: none;
  border: none;
  border-top: 1px solid #F1F2F4;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
  text-decoration: none;
  color: inherit;
}
.my-menu-item:active { opacity: 0.7; }
.my-menu-ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: #EBF5FF;
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.my-menu-text { flex: 1; }
.my-menu-text .t {
  font-size: 15px; font-weight: 600;
  color: var(--fg-strong); letter-spacing: -0.01em;
  margin-bottom: 3px;
}
.my-menu-text .d { font-size: 12.5px; color: var(--fg-secondary); }

/* ─────────────────────────────────────────────
   My Page — Merchant Banner (가맹점 입점 CTA)
   ───────────────────────────────────────────── */
.merchant-banner {
  display: block;
  margin: 80px 20px 30px;
}
.merchant-banner-inner {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #F0F6FF;
  border: none;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.merchant-banner-deco1 {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(to right, transparent 50%, rgba(56, 189, 248, 0.08) 80%, rgba(0, 104, 249, 0.06) 100%);
  pointer-events: none;
  z-index: 1;
}
.merchant-banner-text {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 2;
  padding-left: 5px;
}
.merchant-banner-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg-strong);
  letter-spacing: -0.025em;
  margin-bottom: 5px;
}
.merchant-banner-desc {
  font-size: 14.5px;
  color: var(--fg-secondary);
  line-height: 1.4;
  letter-spacing: -0.015em;
}
.merchant-banner-cta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 104, 249, 0.2);
  transition: background 0.15s ease, transform 0.15s ease;
}
.merchant-banner:active .merchant-banner-cta {
  background: #004ecc;
  transform: scale(0.97);
}

/* ─────────────────────────────────────────────
   Map Page
   ───────────────────────────────────────────── */
.map-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 50px;
}
.map-top-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 20px 12px;
  background: var(--app-bg);
}
.map-top-row {
  display: flex;
  align-items: center;
}
.map-title-pill {
  font-size: 22px;
  font-weight: 700;
  color: var(--fg-strong);
  letter-spacing: -0.03em;
}
.map-filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.map-filter-row::-webkit-scrollbar { display: none; }
.map-chip {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid #E5E7EB;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-secondary);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all var(--duration-fast);
}
.map-chip[data-active="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.map-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.map-area {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.map-fab {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 44px; height: 44px;
  border-radius: 100px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,7,16,0.14);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  cursor: pointer; z-index: 5;
}

.map-sheet {
  background: #fff;
  border-top: 1px solid #EEF0F2;
  display: flex;
  flex-direction: column;
  height: 44%;
  flex-shrink: 0;
}
.map-sheet-handle {
  width: 36px; height: 4px;
  border-radius: 100px;
  background: #D9DDE2;
  margin: 10px auto 12px;
  flex-shrink: 0;
}
.map-sheet-head {
  padding: 0 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.map-sheet-title {
  font-size: 15px; font-weight: 700;
  color: var(--fg-strong); letter-spacing: -0.02em;
}
.map-sheet-count {
  font-size: 12px; font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px; border-radius: 100px;
}
.map-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 0 16px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.map-list::-webkit-scrollbar { display: none; }
.map-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--app-bg);
  cursor: pointer;
}
.map-list-item:active { background: var(--color-surface-pressed); }
.map-list-thumb {
  width: 46px; height: 46px;
  border-radius: 10px; overflow: hidden;
  flex-shrink: 0; background: #D9DDE2;
}
.map-list-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-list-info { flex: 1; min-width: 0; }
.map-list-name {
  font-size: 14px; font-weight: 600;
  color: var(--fg-strong); letter-spacing: -0.01em; margin-bottom: 2px;
}
.map-list-meta {
  font-size: 12px; color: var(--fg-tertiary);
  display: flex; align-items: center; gap: 4px;
}
.map-list-coupon {
  font-size: 12px; font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px; border-radius: 100px;
  flex-shrink: 0; white-space: nowrap;
}

/* ─────────────────────────────────────────────
   Merchant Registration Page
   ───────────────────────────────────────────── */
.reg-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  padding-top: 50px;
  padding-bottom: 96px;
}
.reg-scroll::-webkit-scrollbar { display: none; }

.reg-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 14px;
}
.reg-nav-back {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--fg-strong); border-radius: var(--radius-nav);
  flex-shrink: 0; margin-left: -4px;
}
.reg-nav-back:active { background: var(--color-surface-pressed); }
.reg-nav-title {
  font-size: 22px; font-weight: 700;
  color: var(--fg-strong); letter-spacing: -0.03em;
}

.reg-banner {
  margin: 4px 20px 20px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 100%);
  padding: 26px 20px 22px;
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.reg-banner::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}
.rb-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 6px;
}
.rb-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.rb-sub { font-size: 13px; color: rgba(255,255,255,0.78); }

.notice-box {
  margin: 0 20px 20px;
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid rgba(31,138,109,0.18);
}
.notice-ico { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.notice-text {
  font-size: 12.5px; line-height: 1.55;
  color: var(--accent-deep);
}
.notice-text strong { font-weight: 700; }

.reg-form {
  padding: 0;
  display: flex; flex-direction: column; gap: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 13px; font-weight: 600;
  color: var(--fg-strong); letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 3px;
}
.form-label .req { color: var(--accent); font-size: 15px; }
.form-input {
  height: 48px; padding: 0 14px;
  border: 1.5px solid #E5E7EB; border-radius: 12px;
  font-family: inherit; font-size: 14px; color: var(--fg-strong);
  background: #fff; outline: none; width: 100%;
  transition: border-color var(--duration-fast);
}
.form-input::placeholder { color: var(--fg-tertiary); }
.form-input:focus { border-color: var(--accent); }
.form-select {
  height: 48px; padding: 0 14px;
  border: 1.5px solid #E5E7EB; border-radius: 12px;
  font-family: inherit; font-size: 14px; color: var(--fg-strong);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2360646c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none; outline: none; width: 100%; cursor: pointer;
}
.form-select:focus { border-color: var(--accent); }
.reg-cta {
  margin: 24px 20px 0;
  height: 52px; border-radius: 14px;
  background: var(--accent); border: none;
  color: #fff; font-family: inherit;
  font-size: 16px; font-weight: 700;
  cursor: pointer; letter-spacing: -0.01em;
  width: calc(100% - 40px);
}
.reg-cta:active { background: var(--accent-pressed); }

.reg-section-title {
  font-size: 15px; font-weight: 700;
  color: var(--fg-strong); letter-spacing: -0.02em;
  padding-top: 8px; margin-top: 4px;
  border-top: 1px solid #EEF0F2;
}
.reg-form > .reg-section-title:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.lbl-sub { font-size: 11.5px; font-weight: 500; color: var(--fg-tertiary); }

.reg-time-row { display: flex; align-items: center; gap: 8px; }
.reg-time-row .form-select, .reg-time-row .form-input { flex: 1; min-width: 0; }
.reg-time-sep { color: var(--fg-tertiary); font-size: 14px; flex-shrink: 0; }

.reg-day-toggle { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.reg-day-btn {
  height: 40px; border-radius: 10px;
  border: 1.5px solid #E5E7EB; background: #fff;
  color: var(--fg-secondary); font-family: inherit;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all var(--duration-fast);
}
.reg-day-btn[data-active="true"] {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

.reg-upload {
  border: 1.5px dashed #D9DDE2; border-radius: 12px;
  background: #FAFAFB; padding: 26px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; cursor: pointer;
}
.reg-upload.small { padding: 16px; }
.reg-upload-text { font-size: 13px; color: var(--fg-secondary); line-height: 1.5; }
.reg-upload-text strong { color: var(--accent); font-weight: 600; }

.reg-footer-notice {
  margin: 24px 20px 0;
  padding: 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  text-align: center;
  font-size: 12.5px; font-weight: 500;
  color: var(--accent-deep);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   Coupon Register Bottom Sheet
   ───────────────────────────────────────────── */
.sheet-overlay {
  position: fixed;
  inset: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 430px;
  height: 100%;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.sheet {
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 0 20px 32px;
  animation: slideUp 0.26s var(--ease-standard);
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.sheet-handle {
  width: 36px; height: 4px;
  border-radius: 100px; background: #D9DDE2;
  margin: 12px auto 20px;
}
.sheet-title {
  font-size: 23px; font-weight: 700;
  letter-spacing: -0.03em; color: var(--fg-strong); margin-bottom: 6px;
}
.sheet-sub {
  font-size: 14.5px; color: var(--fg-secondary);
  line-height: 1.5; margin-bottom: 20px;
  padding-bottom: 20px;
  margin-left: -20px;
  margin-right: -20px;
  padding-left: 20px;
  padding-right: 20px;
  border-bottom: 3px solid #E5EFFB;
  word-break: keep-all;
}
.sheet-field-lbl {
  font-size: 15px; font-weight: 600;
  color: var(--fg-strong); margin-bottom: 8px;
}
.sheet-or {
  text-align: center; font-size: 12.5px;
  color: var(--fg-tertiary); font-weight: 500;
  margin: 14px 0; position: relative;
}
.sheet-or::before, .sheet-or::after {
  content: ''; position: absolute;
  top: 50%; width: 38%; height: 1px; background: #EEF0F2;
}
.sheet-or::before { left: 0; }
.sheet-or::after  { right: 0; }
.sheet-scan, .btn-scan-barcode {
  width: 100%; height: 50px; border-radius: 13px;
  border: 1.5px solid #E5E7EB; background: #fff;
  color: var(--fg-strong); font-family: inherit;
  font-size: 14.5px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 30px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.sheet-scan:hover, .btn-scan-barcode:hover {
  background: #F3F4F6;
  border-color: #D1D5DB;
  color: #111827;
}
.sheet-scan:active, .btn-scan-barcode:active { background: #E5E7EB; }

.sheet-register, .btn-submit-coupon {
  width: 100%; height: 52px; border-radius: 14px;
  border: none; background: var(--primary);
  color: #fff; font-family: inherit;
  font-size: 16.5px; font-weight: 700; cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.15s ease;
}
.sheet-register:hover, .btn-submit-coupon:hover {
  background: #0052c9;
}
.sheet-register:active, .btn-submit-coupon:active { background: #003ea3; }

.sheet-cancel, .btn-cancel-sheet {
  width: 100%; height: 50px; border-radius: 14px;
  border: none; background: #F3F4F6; color: #374151;
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.sheet-cancel:hover, .btn-cancel-sheet:hover {
  background: #E5E7EB;
  color: #111827;
}
.sheet-cancel:active, .btn-cancel-sheet:active { background: #D1D5DB; }

/* ─────────────────────────────────────────────
   Production Mobile Tabbar & Navigation
   ───────────────────────────────────────────── */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 430px;
  height: calc(72px + env(safe-area-inset-bottom));
  padding-top: 10px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid #EAEAEA;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  z-index: 100;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 2px 0 4px;
  text-decoration: none;
  color: #9CA3AF;
  cursor: pointer;
  transition: color 0.15s ease-in-out;
  -webkit-tap-highlight-color: transparent;
}

.tab-item svg {
  width: 28px;
  height: 28px;
  stroke: #9CA3AF;
  transition: stroke 0.15s ease-in-out, transform 0.15s ease-in-out;
  flex-shrink: 0;
}

.tab-item .label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: #9CA3AF;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

/* 활성 탭 (Active Tab) */
.tab-item[data-active="true"] {
  color: var(--primary);
}

.tab-item[data-active="true"] svg {
  stroke: var(--primary);
  transform: translateY(-1px);
}

.tab-item[data-active="true"] .label {
  font-weight: 700;
  color: var(--primary);
}

/* 쿠폰등록 탭 숨김 */
#tab-coupon-register { display: none; }

/* ─────────────────────────────────────────────
   Paper Coupon Registration Bottom Sheet Modal
   ───────────────────────────────────────────── */
.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.bottom-sheet-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.bottom-sheet-content {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 16px 20px 28px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
  box-sizing: border-box;
}
.bottom-sheet-overlay.active .bottom-sheet-content {
  transform: translateY(0);
}
.sheet-drag-handle {
  width: 36px;
  height: 4px;
  background: #E5E7EB;
  border-radius: 100px;
  margin: 0 auto 16px;
}
.sheet-header {
  margin-bottom: 20px;
}
.sheet-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--fg-strong);
  letter-spacing: -0.035em;
  margin-bottom: 6px;
}
.sheet-sub {
  font-size: 13.5px;
  color: var(--fg-secondary);
  letter-spacing: -0.02em;
  line-height: 1.45;
}
.sheet-divider-or {
  position: relative;
  text-align: center;
  margin: 20px 0;
}
.sheet-divider-or::before {
  content: '';
  position: absolute;
  left: 0; top: 50%; width: 100%;
  height: 1px; background: #EEF0F2;
}
.sheet-divider-or span {
  position: relative;
  background: #FFFFFF;
  padding: 0 14px;
  font-size: 13px;
  color: var(--fg-tertiary);
}
.btn-scan-barcode {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  color: var(--fg-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background 0.2s ease;
}
.btn-scan-barcode:hover {
  background: #F9FAFB;
}
.btn-submit-coupon {
  width: 100%;
  height: 54px;
  border-radius: 14px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 16.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(0, 104, 249, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-submit-coupon:active {
  transform: scale(0.98);
}
.btn-cancel-sheet {
  width: 100%;
  background: none;
  border: none;
  font-size: 14.5px;
  color: var(--fg-secondary);
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
}
