/* ==========================================================================
   잘보여유 Premium CSS Stylesheet
   ========================================================================== */

/* 1. Global Reset & Theme Variables */
:root {
  /* Color Palette (HSL based for fine tuning) - Default Dark Mode */
  --bg-app: #080a0f;
  --bg-card: #121620;
  --bg-card-hover: #1b212f;
  --bg-input: #1b202e;
  --bg-header: rgba(8, 10, 15, 0.85);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(59, 130, 246, 0.5);

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --accent-blue: #2563eb;
  --accent-purple: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --accent-gradient-hover: linear-gradient(135deg, #4f46e5 0%, #a855f7 100%);
  
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);

  /* Seat background variables for dark mode */
  --bg-seat-default: #1e293b;
  --border-seat-default: rgba(255, 255, 255, 0.05);
  --bg-seat-blocked: #1e293b;
  --text-seat-blocked: #4b5563;

  --font-display: 'Outfit', 'Noto Sans KR', sans-serif;
  --font-body: 'Noto Sans KR', sans-serif;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-body);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden; /* Prevent body scrolling, scroll inside phone container */
}

body.modal-open .app-content {
  overflow-y: hidden !important;
}

/* Blocks the mobile long-press "이미지 저장" menu; the desktop-side
   right-click/drag guard lives in setupListeners() in app_v6.js. Not real
   protection (DevTools/view-source always gets around it) — just friction. */
img {
  -webkit-touch-callout: none;
}

/* 2. Desktop Outer Container & Phone Frame Simulator */
.app-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background: radial-gradient(circle at 80% 20%, #1e1b4b 0%, #030712 100%);
  padding: 20px;
}

.phone-frame {
  width: 100%;
  max-width: 430px; /* iPhone 15 Pro Max width */
  height: 100%;
  max-height: 880px;
  background-color: var(--bg-app);
  border-radius: 40px;
  border: 8px solid #27272a; /* Device border */
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Responsive adjustment for actual mobile screens */
@media (max-width: 480px) {
  .app-container {
    padding: 0;
    height: auto;
    min-height: 100dvh;
    display: block;
  }

  /* Real phone browsers only auto-hide their own address bar when the
     actual page/document scrolls — never when an inner div scrolls, which
     is what trapping everything inside a fixed-height .app-content did.
     Let the page scroll normally on mobile instead (desktop keeps the
     boxed "floating phone" preview look, which has no such issue).
     overscroll-behavior-y prevents that from re-introducing the native
     rubber-band bounce, which showed as a gap opening above the header
     while scrolling. */
  body {
    overflow: auto;
    overscroll-behavior-y: none;
  }
  body.modal-open {
    overflow: hidden;
  }

  /* position:sticky + backdrop-filter has known jitter/gap bugs on mobile
     Chromium (Samsung Internet included) during fast or continuous scroll.
     Pin the header to the viewport instead, same as .app-nav/.modal below.
     (.app-header's base rule comes later in this file, hence !important.) */
  .app-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
  }
  .phone-frame {
    border-radius: 0;
    border: none;
    height: auto;
    min-height: 100dvh;
    max-height: none;
    overflow: visible;
  }
  .app-content {
    /* .app-content's base rule (flex:1; overflow-y:auto;) is declared later
       in this file than this media query, so it would win the cascade on
       these two properties without !important. */
    flex: none !important;
    overflow-y: visible !important;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    /* Header is now position:fixed instead of sitting in flow above this
       flex sibling, so its height has to be reserved here instead. */
    padding-top: calc(56px + env(safe-area-inset-top));
  }

  /* .phone-frame can now be taller than the viewport (it grows with page
     content since real mobile scrolls the page, not an inner div). .modal
     is position:absolute against .phone-frame, so with align-items:flex-end
     it was aligning to the bottom of that taller box — off-screen below
     the fold — instead of the bottom of what's actually visible. Anchor
     modals to the real viewport instead. (.modal's base rule is declared
     later in this file, hence !important.) */
  .modal {
    position: fixed !important;
  }

  /* Real phone browsers show/hide their address bar as you scroll, which
     makes 100dvh-based flex layouts unreliable for keeping the nav bar
     pinned (seen clipped on Samsung Internet). Pin it to the viewport
     directly instead — the same pattern most mobile web apps use. */
  .app-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }

  /* Same .phone-frame-can-be-taller-than-viewport issue as .modal above —
     an absolute-positioned toast container would anchor to the bottom of
     the (possibly much taller) page instead of the visible screen.
     (.toast-container's base rule is declared later in this file, hence
     !important.) */
  .toast-container {
    position: fixed !important;
    bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

/* 3. Status Bar Simulation */
.status-bar {
  height: 38px;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg-app);
  z-index: 10;
  user-select: none;
}

.status-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.status-icon {
  width: 14px;
  height: 14px;
}

/* 4. App Header */
.app-header {
  height: 56px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-header);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 9;
}

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

.header-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.header-logo-img {
  height: 26px;
  width: auto;
  display: block;
}

.header-logo .logo-text {
  font-family: 'Do Hyeon', var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.header-logo .logo-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  margin-left: 3px;
  border-radius: 15px 15px 15px 3px;
  background: var(--accent-gradient);
  font-family: 'Gamja Flower', cursive;
  font-size: 1.25rem;
  line-height: 1;
  color: #fff;
}

.header-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0;
}

.app-header .back-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.app-header .back-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.app-header .back-btn svg {
  width: 22px;
  height: 22px;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn .badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--danger);
}

.profile-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
  border: 1.5px solid var(--accent-blue);
}

.profile-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 5. App Navigation (Glassmorphic Footer) */
.app-nav {
  height: 64px;
  border-top: 1px solid var(--border-color);
  background-color: rgba(18, 22, 32, 0.85);
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: 8px; /* Safe area space */
  z-index: 10;
}

.nav-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  width: 20%;
  height: 100%;
  justify-content: center;
  transition: var(--transition-fast);
  text-decoration: none;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform var(--transition-fast);
}

.nav-item span {
  font-size: 0.72rem;
  font-weight: 500;
}

.nav-item.active {
  color: var(--text-primary);
}

.nav-item.active svg {
  color: var(--accent-blue);
  transform: translateY(-2px);
}

.app-nav .nav-item {
  width: 25%;
}

.badge-wrapper {
  position: relative;
}

.badge-wrapper .badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--accent-gradient);
  color: white;
  font-size: 0.65rem;
  font-weight: bold;
  height: 15px;
  min-width: 15px;
  border-radius: 10px;
  padding: 0 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* 6. Main Scroll Area & Router Views */
.app-content {
  flex: 1;
  overflow-y: auto;
  position: relative;
  scrollbar-width: none; /* Hide scrollbar for clean app experience */
}

.app-content::-webkit-scrollbar {
  display: none;
}

.view {
  display: none;
  padding: 16px 12px;
  animation: fadeIn var(--transition-normal) forwards;
}

@media (min-width: 400px) {
  .view {
    padding: 20px 16px;
  }
}

.view.active {
  display: block;
}

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

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

.view-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.back-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.back-btn:hover {
  background-color: var(--bg-card-hover);
}

.back-btn svg {
  width: 18px;
  height: 18px;
}

/* 7. Main Page View Specifics */
.hero-section {
  padding: 10px 0 10px 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.search-bar-container {
  display: flex;
  align-items: center;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 0 16px;
  height: 48px;
  transition: var(--transition-fast);
}

.search-bar-container:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  margin-right: 12px;
}

.search-bar-container input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1;
  width: 100%;
  height: 100%;
  outline: none;
}

.search-bar-container input::placeholder {
  font-size: 0.84rem;
  line-height: 1;
}

.section-container {
  margin-top: 14px;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.category-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-card {
  height: 118px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-normal);
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
}

.card-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  transition: var(--transition-slow);
}

.category-card:hover .card-bg-overlay {
  transform: scale(1.05);
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 10, 15, 0.9) 20%, rgba(8, 10, 15, 0.3) 100%);
  z-index: 1;
}

.category-info {
  position: relative;
  z-index: 2;
  width: 100%;
}

.category-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 6px;
  background-color: var(--accent-blue);
  color: white;
  z-index: 3;
}

.category-tag.red {
  background-color: var(--danger);
}

.category-tag.green {
  background-color: var(--success);
}

.category-tag.blue {
  background-color: var(--accent-blue);
}

.category-tag.gray {
  background-color: var(--text-muted);
}

.category-tag.yellow {
  background-color: var(--warning);
}

.category-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.category-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.category-card.disabled {
  background-color: rgba(255, 255, 255, 0.02);
  border-style: dashed;
  cursor: not-allowed;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.category-card.disabled::after {
  display: none;
}

.category-card.disabled .category-tag {
  position: static;
  display: inline-block;
  margin-bottom: 8px;
}

.category-card.disabled .category-name {
  color: var(--text-muted);
}

.banner-card {
  margin-top: 24px;
  background: var(--accent-gradient);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.15);
}

.banner-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.banner-content p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.banner-btn {
  background: white;
  color: var(--accent-blue);
  border: none;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.banner-btn:hover {
  background: #f3f4f6;
  transform: translateX(2px);
}

.banner-btn svg {
  width: 14px;
  height: 14px;
}

.promo-card {
  margin-top: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.promo-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  display: flex;
  justify-content: center;
  align-items: center;
}

.promo-icon-box svg {
  width: 20px;
  height: 20px;
}

.promo-text h5 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.promo-text p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* 8. Stadium Selection View Specifics */
.stadium-intro {
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.stadium-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Venue list has far fewer entries than the stadium list right now — 2
   columns leaves an awkward empty-looking row. Single column until there
   are enough venues for 2-up to look intentional. */
#venue-grid-container {
  grid-template-columns: 1fr;
}

.stadium-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100px;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.stadium-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 10, 15, 0.95) 30%, rgba(8, 10, 15, 0.3) 100%);
  z-index: 1;
  transition: opacity var(--transition-normal);
}

.stadium-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stadium-card:hover::before {
  background: linear-gradient(to top, rgba(8, 10, 15, 0.98) 40%, rgba(8, 10, 15, 0.4) 100%);
}

/* Seat data not set up yet for this stadium/venue — shown dimmed with a
   centered "준비중" overlay label in the list, and blocked from opening
   (see loadStadiumDetail / loadVenueDetail's status guard) rather than
   silently hidden. Strong grayscale + dark tint so it visually reads as
   "not clickable" at a glance, distinct from the open cards next to it. */
.stadium-card.preparing {
  filter: grayscale(1);
  cursor: default;
}

.stadium-card.preparing::before {
  background: none;
}

.stadium-card.preparing:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-color);
}

.stadium-card-preparing-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  z-index: 4;
  color: var(--text-secondary);
  text-align: center;
  padding: 0 12px;
}

.stadium-card-preparing-overlay i {
  width: 18px;
  height: 18px;
  margin-bottom: 2px;
}

.stadium-card-preparing-overlay .preparing-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.stadium-card-preparing-overlay .preparing-name {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.stadium-card-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 2;
}

.stadium-card-team {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  align-self: flex-start;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stadium-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.stadium-card-location {
  font-size: 0.7rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.stadium-card-location svg {
  width: 11px;
  height: 11px;
}

.stadium-card-arrow {
  display: none;
}

/* 9. Stadium Detail View Specifics */
.stadium-detail-profile {
  height: 140px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  margin-bottom: 16px;
}

.profile-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
}

.stadium-detail-profile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 10, 15, 0.95), transparent);
  z-index: 1;
}

.profile-info {
  position: relative;
  z-index: 2;
}

.stadium-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent-gradient);
  color: white;
  display: inline-block;
  margin-bottom: 6px;
}

.stadium-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stadium-meta svg {
  width: 12px;
  height: 12px;
}

.detail-tabs {
  display: flex;
  background-color: var(--bg-card);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn.active {
  background-color: var(--text-primary);
  color: var(--bg-card);
  font-weight: 700;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

#tab-content-map.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-bottom: 12px;
}

#tab-content-map.active.detailed-active {
  display: block;
  padding-bottom: 0;
}

/* 10. Seating Map & Amenity Toggle UI */
.stadium-map-wrapper {
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 8px auto 12px auto; /* centered horizontally, reduced bottom margin */
  width: 94%; /* bounds checking to prevent side clipping */
  max-width: 94%;
  position: relative;
  box-sizing: border-box;
}

.map-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 12px;
}

/* Stadium Vector/Interactive Visual Container */
.stadium-svg-container {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.stadium-svg-container > svg {
  width: 100%;
  height: 100%;
}

/* Stadium Map Interactive Path Classes */
.stadium-zone {
  fill: #1e293b;
  stroke: var(--bg-card);
  stroke-width: 2.5;
  cursor: pointer;
  transition: fill var(--transition-fast), transform var(--transition-fast);
}

.stadium-zone:hover {
  fill: #3b82f6 !important;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

.stadium-zone.active-zone {
  fill: var(--accent-purple) !important;
  stroke: #ffffff;
  stroke-width: 3;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.7));
}

/* Amenity Markers on SVG Map */
.amenity-marker {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  font-size: 0.6rem;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.amenity-marker.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: markerBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes markerBounce {
  0% { transform: translate(-50%, -50%) scale(0); }
  70% { transform: translate(-50%, -50%) scale(1.2); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.amenity-marker.toilet { background-color: var(--success); }
.amenity-marker.snack { background-color: var(--warning); }
.amenity-marker.exit { background-color: var(--danger); }
.amenity-marker.medical { background-color: var(--accent-blue); }

.amenity-bar {
  margin-top: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.amenity-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.amenity-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.amenity-pill {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.amenity-pill svg {
  width: 12px;
  height: 12px;
}

.amenity-pill:hover {
  border-color: var(--text-secondary);
}

.amenity-pill.active {
  background-color: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
}

.amenity-pill.active[data-amenity="toilet"] { background-color: var(--success); border-color: var(--success); }
.amenity-pill.active[data-amenity="snack"] { background-color: var(--warning); border-color: var(--warning); }
.amenity-pill.active[data-amenity="exit"] { background-color: var(--danger); border-color: var(--danger); }
.amenity-pill.active[data-amenity="medical"] { background-color: var(--accent-blue); border-color: var(--accent-blue); }

.block-seats-section {
  /* Styled by .step-card */
}

.block-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.block-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-purple);
  background-color: rgba(139, 92, 246, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 4px;
}

.block-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.seat-grid-container {
  container-type: inline-size;
  overflow-x: auto;
  padding-bottom: 8px;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.4) rgba(30, 41, 59, 0.4);
}

/* Custom Scrollbar for Seat Grid Container */
.seat-grid-container::-webkit-scrollbar {
  height: 6px;
}

.seat-grid-container::-webkit-scrollbar-track {
  background: rgba(30, 41, 59, 0.4);
  border-radius: 10px;
}

.seat-grid-container::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.seat-grid-container::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

.seat-grid-legend {
  display: flex;
  gap: 12px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.legend-box {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 0.5rem;
}

.legend-box.camera {
  background-color: rgba(59, 130, 246, 0.2);
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
}

.legend-box.empty {
  background-color: #1e293b;
  border: 1px solid rgba(255,255,255,0.05);
}

.seat-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 100%;
  width: max-content;
}

.seat-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.row-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 30px;
}

.row-seats {
  display: flex;
  gap: 3px;
  flex: 1 0 auto;
}

.seat-item {
  flex: 0 0 calc((100cqw - 36px - (var(--visible-seats, 14) - 1) * 3px) / var(--visible-seats, 14));
  aspect-ratio: 1;
  min-width: 0;
  background-color: var(--bg-seat-default);
  border: 1px solid var(--border-seat-default);
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(6px, 1.8vw, 10px);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.seat-item:hover {
  transform: scale(1.15);
  border-color: var(--text-secondary);
  z-index: 10;
}

.seat-item.has-camera {
  background-color: var(--accent-blue) !important;
  border: 1px solid var(--accent-blue) !important;
  color: #ffffff !important;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
  font-weight: 700;
}

.seat-item.has-camera:hover {
  background-color: var(--accent-purple) !important;
  border-color: var(--accent-purple) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
  transform: scale(1.15);
  z-index: 10;
}

.seat-item.blocked {
  background-color: var(--bg-seat-blocked) !important;
  border: 1px solid var(--border-color);
  color: var(--text-seat-blocked);
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.7;
}

.seat-item.gap {
  opacity: 0;
  pointer-events: none;
}


.info-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
}

.info-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.info-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* 12. 1:1 Side-by-Side Comparison UI */
.compare-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compare-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--bg-card);
  border: 1.5px dashed var(--border-color);
  border-radius: 24px;
}

.compare-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.compare-empty h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.compare-empty p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  max-width: 220px;
  line-height: 1.4;
  margin-bottom: 16px;
}

.compare-split-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: auto;
  max-height: none;
}

.compare-column {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}

.compare-header-info {
  padding: 12px;
  padding-right: 44px;
  border-bottom: 1px solid var(--border-color);
}

.compare-seat-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-blue);
  background-color: rgba(59, 130, 246, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 2px;
}

.compare-seat-name {
  font-size: 0.9rem;
  font-weight: 700;
}

.compare-image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background-color: #000;
  touch-action: pan-y;
}

.compare-image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.compare-content {
  padding: 12px;
  background-color: var(--bg-card-hover);
  font-size: 0.72rem;
  height: 100px;
  overflow: hidden;
}

.compare-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.compare-tag {
  background-color: var(--bg-input);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.compare-tag.warning {
  border-color: var(--warning);
  color: var(--warning);
  background-color: var(--warning-bg);
}

.compare-comment h5 {
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.compare-comment p {
  color: var(--text-secondary);
  line-height: 1.35;
}

.compare-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 3;
}

.compare-remove-btn svg {
  width: 16px;
  height: 16px;
}

.clear-compare-btn {
  background: transparent;
  border: none;
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

/* 13. My Ticketbook View Specifics */
.ticketbook-stats {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-progress-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-purple);
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.win-rate-val {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.win-rate-lbl {
  font-size: 0.6rem;
  color: var(--text-secondary);
}

.stat-summary-text h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.stat-summary-text p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.stat-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.stat-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-sub-label {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.stat-sub-val {
  font-size: 0.8rem;
  font-weight: 700;
}

.stat-sub-val.text-accent {
  color: var(--accent-purple);
}

.add-ticket-btn {
  background: var(--accent-gradient);
  border: none;
  color: white;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tickets-archive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-bottom: 20px;
}

.tickets-archive.view-list {
  grid-template-columns: 1fr;
}

.ticket-stadium-name {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-date {
  font-size: 0.6rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ticket-seat-info {
  font-size: 0.66rem;
  color: var(--text-secondary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-comment-preview {
  margin: 0;
  font-size: 0.62rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

/* List mode (1열): image loses the square crop in favor of a short banner
   so a single entry doesn't fill the whole screen, and text scales up since
   there's a full-width row to work with instead of a half-width tile. */
.tickets-archive.view-list .ticket-img-header {
  aspect-ratio: unset;
  height: 140px;
}

.tickets-archive.view-list .ticket-body {
  padding: 14px;
  gap: 6px;
}

.tickets-archive.view-list .ticket-stadium-name {
  font-size: 0.92rem;
}

.tickets-archive.view-list .ticket-date {
  font-size: 0.7rem;
}

.tickets-archive.view-list .ticket-seat-info {
  font-size: 0.8rem;
}

.tickets-archive.view-list .ticket-comment-preview {
  font-size: 0.76rem;
}

.ticket-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
}

.ticket-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
}

.ticket-img-header {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
}

.ticket-img-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticket-result-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  color: white;
}

.ticket-result-badge.win { background-color: var(--success); }
.ticket-result-badge.lose { background-color: var(--danger); }
.ticket-result-badge.draw { background-color: var(--text-muted); }
.ticket-result-badge.other-record { background-color: #64748b; }

.ticket-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ticket-meta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket-match-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ticket-score {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  background-color: var(--bg-input);
  padding: 2px 8px;
  border-radius: 6px;
}

.ticket-seat-name {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 2px;
}

.ticket-stadium {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.ticket-comment {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  margin-top: 4px;
}

.delete-ticket-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  border: none;
  color: var(--danger);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2;
}

/* 14. Modals Structure */
.modal {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-end;
  overflow: hidden;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  animation: fadeInBackdrop 0.25s forwards;
}

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

.modal-content {
  position: relative;
  width: 100%;
  background-color: var(--bg-card);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px 28px 0 0;
  z-index: 101;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  animation: slideUp 0.3s cubic-bezier(0.1, 0.76, 0.55, 0.94) forwards;
}

@keyframes slideUp {
  to { transform: translateY(0); }
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.modal-subtitle {
  font-size: 0.75rem;
  color: var(--accent-blue);
  font-weight: 700;
  text-transform: uppercase;
}

.close-btn {
  background: var(--bg-input);
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.close-btn:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-primary);
}

.close-btn svg {
  width: 16px;
  height: 16px;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: none;
  /* Bounds .modal-body to whatever space .modal-content's max-height
     leaves it, so it scrolls internally instead of pushing .modal-actions
     (now a sibling, always visible) past the bottom of the screen. */
  flex: 1;
  min-height: 0;
}

.modal-body::-webkit-scrollbar {
  display: none;
}

.modal-image-wrapper {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  position: relative;
  margin-bottom: 12px;
  background-color: #000;
  touch-action: pan-y;
}

.modal-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Direction overlay badge */
.direction-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(15, 23, 42, 0.7); /* Dark slate */
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10;
}

/* Carousel navigation arrows */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.carousel-nav-btn:hover {
  background-color: rgba(15, 23, 42, 0.85);
  scale: 1.05;
}

.carousel-nav-btn.prev {
  left: 12px;
}

.carousel-nav-btn.next {
  right: 12px;
}

.carousel-nav-btn svg {
  width: 20px;
  height: 20px;
}

/* Thumbnails row container */
.modal-thumbnails-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px 0;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.modal-thumbnails-container::-webkit-scrollbar {
  display: none;
}

/* Single thumbnail */
.thumb-item {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background-color: #1e293b;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-item:hover {
  scale: 1.05;
}

.thumb-item.active {
  border-color: #3b82f6; /* Premium blue accent */
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge-tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 8px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.badge-tag.highlight-warn {
  border-color: var(--warning);
  color: var(--warning);
  background-color: var(--warning-bg);
}

.badge-tag.highlight-ok {
  border-color: var(--success);
  color: var(--success);
  background-color: var(--success-bg);
}

.modal-desc-box {
  background-color: var(--bg-input);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 20px;
  height: 128px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-desc-box h4 {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-desc-box p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
  overflow: hidden;
  flex: 1;
}

.modal-actions {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

/* 15. Buttons System */
.btn {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border: none;
  transition: var(--transition-fast);
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--text-secondary);
}

.btn-full-width {
  width: 100%;
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 6px;
}

.form-group select,
.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a8f98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.form-group select option {
  background-color: var(--bg-input);
  color: var(--text-primary);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Photo Upload Simulation Box */
.photo-upload-box {
  width: 100%;
  height: 120px;
  border: 1.5px dashed var(--border-color);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: var(--transition-fast);
}

.photo-upload-box:hover {
  border-color: var(--accent-blue);
  background-color: rgba(59, 130, 246, 0.02);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.upload-placeholder svg {
  width: 24px;
  height: 24px;
}

.photo-upload-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* Toast Notifications */
.toast-container {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
  pointer-events: none;
}

.toast {
  background-color: rgba(18, 22, 32, 0.95);
  backdrop-filter: blur(8px);
  border-left: 4px solid var(--accent-blue);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: slideInUp 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

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

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--accent-blue); }

.toast svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Uploader & Vote Bar Styles */
.modal-vote-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-input);
  padding: 12px 16px;
  border-radius: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
}

.uploader-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.uploader-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-blue);
}

.uploader-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  padding: 2px 6px;
  border-radius: 4px;
}

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

.vote-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.vote-btn svg {
  width: 13px;
  height: 13px;
}

.vote-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.vote-btn.active.upvote {
  background-color: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

.vote-btn.active.downvote {
  background-color: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}

/* Profile / Login Simulation Modal Styles */
.profile-card-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 0;
  gap: 12px;
}

.profile-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--accent-purple);
  object-fit: cover;
}

.profile-username {
  font-size: 1.1rem;
  font-weight: 700;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  gap: 12px;
  margin-top: 12px;
}

.profile-stat-box {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.profile-stat-val {
  font-size: 1rem;
  font-weight: 700;
}

.login-promo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px;
  gap: 12px;
}

.login-promo-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-promo-icon svg {
  width: 22px;
  height: 22px;
}

.login-promo-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.login-promo-box p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.login-btn-social {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: none;
}

.login-btn-social.kakao {
  background-color: #fee500;
  color: #191919;
}

.login-btn-social.naver {
  background-color: #03c75a;
  color: white;
}

/* OCR Scanner Animation styles */
.ocr-scanning-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(8, 10, 15, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--accent-blue);
  font-weight: 700;
  z-index: 5;
}

.scan-bar {
  width: 80%;
  height: 2px;
  background-color: var(--accent-blue);
  box-shadow: 0 0 8px var(--accent-blue);
  animation: scanAction 1.5s ease-in-out infinite;
}

@keyframes scanAction {
  0% { transform: translateY(-40px); }
  50% { transform: translateY(40px); }
  100% { transform: translateY(-40px); }
}

.ocr-autofill-section {
  animation: borderGlow 2s infinite alternate;
}

@keyframes borderGlow {
  from { border-color: rgba(59, 130, 246, 0.2); }
  to { border-color: rgba(59, 130, 246, 0.6); }
}

/* Depth 4 Detailed Block Map View Styles */
.detailed-zone-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0 16px;
}

.detailed-zone-header .zone-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-blue);
  background-color: rgba(59, 130, 246, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
}

.detailed-zone-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.cheer-stage-banner {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(15, 23, 42, 0.4));
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 16px;
  padding: 14px;
  margin: 0 16px 20px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.cheer-stage-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--danger), var(--warning));
}

.cheer-stage-banner .stage-icon {
  width: 28px;
  height: 28px;
  color: var(--warning);
}

.cheer-stage-banner .stage-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.cheer-stage-banner .stage-desc {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.ground-direction-banner {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  padding: 10px;
  margin: 0 16px 16px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.ground-direction-banner .ground-icon {
  width: 14px;
  height: 14px;
}

.blocks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px;
}

.block-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.block-card:hover {
  border-color: var(--border-focus);
  background-color: var(--bg-card-hover);
  transform: translateY(-2px);
}

.block-card::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background-color: var(--block-color, var(--text-muted));
}

.block-card.cheer::before {
  background-color: var(--warning);
}

.block-card.premium::before {
  background-color: var(--accent-purple);
}

.block-card.outfield::before {
  background-color: var(--accent-green);
}

.block-card-category {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  align-self: flex-start;
  background-color: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
}

.block-card.cheer .block-card-category {
  color: var(--warning);
  background-color: rgba(249, 115, 22, 0.1);
}

.block-card.premium .block-card-category {
  color: var(--accent-purple);
  background-color: rgba(139, 92, 246, 0.1);
}

.block-card.outfield .block-card-category {
  color: var(--accent-green);
  background-color: rgba(34, 197, 94, 0.1);
}

.block-card-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.block-card-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-top: 4px;
}

.block-card-action svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.block-card:hover .block-card-action svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Light / Dark Mode switching system
   ========================================================================== */
:root[data-theme="light"] {
  --bg-app: #f1f5f9; /* Slate 100 - soft off-white background */
  --bg-card: #ffffff; /* Pure white cards */
  --bg-card-hover: #f8fafc; /* Slate 50 */
  --bg-input: #f8fafc;
  --bg-header: rgba(255, 255, 255, 0.9);
  
  --border-color: #cbd5e1; /* Slate 300 - clear borders */
  --border-focus: rgba(37, 99, 235, 0.5);

  --text-primary: #0f172a; /* Slate 900 */
  --text-secondary: #475569; /* Slate 600 */
  --text-muted: #94a3b8; /* Slate 400 */

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);

  /* Seat background variables for light mode */
  --bg-seat-default: #e2e8f0;
  --border-seat-default: #cbd5e1;
  --bg-seat-blocked: #f1f5f9;
  --text-seat-blocked: #cbd5e1;
}

:root[data-theme="light"] .app-container {
  background: radial-gradient(circle at 80% 20%, #e2e8f0 0%, #cbd5e1 100%);
}

:root[data-theme="light"] .phone-frame {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(0, 0, 0, 0.05);
}
}

/* Ensure high text contrast in specific elements with background images or dark gradient overlays */
.category-card {
  color: #f3f4f6 !important;
}
.category-card .category-sub {
  color: #9ca3af !important;
}
.stadium-detail-profile {
  color: #f3f4f6 !important;
}
.stadium-detail-profile .stadium-meta {
  color: #9ca3af !important;
}

/* ==========================================================================
   Seat Grade Filter Bar & Precise SVG Sector Highlight
   ========================================================================== */
.grade-filter-container {
  position: relative;
  margin: 0;
  padding: 0;
}

.grade-filter-container::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, rgba(255,255,255,0), var(--bg-card));
  pointer-events: none;
  z-index: 2;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.grade-filter-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 4px;
}

/* Step Cards style */
.step-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.4s ease, box-shadow 0.3s ease;
  overflow: hidden;
  max-height: 1000px;
}
.step-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.step-card.disabled-step {
  opacity: 0.35;
  pointer-events: none;
  max-height: 52px;
}

.step-card.disabled-step .step-title {
  border-bottom-color: transparent;
  margin-bottom: 0;
}

.step-card.disabled-step > *:not(.step-title) {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Special adjustments for sub components inside step-card */
.step-card.map-guide-card {
  padding: 12px;
}
.step-card.block-selector-wrapper {
  margin-bottom: 16px;
}

.step-card.block-seats-section {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
}

/* Step Titles */
.step-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}
.step-number {
  background: var(--accent-gradient);
  color: #ffffff !important;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}
.step-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.grade-pill {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 20px;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.grade-pill:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-primary);
}

.grade-pill.active {
  background-color: var(--text-primary);
  color: var(--bg-card);
  border-color: var(--text-primary);
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Stadium sector styles on SVG overall map */
.stadium-sector {
  stroke: var(--bg-card);
  stroke-width: 1.5;
  cursor: pointer;
  transition: opacity 0.3s ease, fill 0.3s ease, filter 0.3s ease, transform 0.2s ease;
  transform-origin: 200px 120px;
}

.stadium-sector:hover {
  filter: brightness(1.25) drop-shadow(0 0 6px rgba(255, 255, 255, 0.45));
  transform: scale(1.02);
}

.stadium-sector.active-sector {
  stroke: #ffffff;
  stroke-width: 2.5;
  filter: brightness(1.35) drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
  transform: scale(1.03);
}

.stadium-sector.dimmed {
  opacity: 0.18;
}

/* Image Map Pro Container styles */
#image-map-pro-653 {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

#image-map-pro-653 .imp-container {
  position: relative;
  width: 100%;
  height: 100%;
}

#image-map-pro-653 .imp-ui-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

#image-map-pro-653 .imp-canvas-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

#image-map-pro-653 .imp-canvas {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1230 / 1486.73 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

#image-map-pro-653 .imp-translate,
#image-map-pro-653 .imp-scale {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

#image-map-pro-653 .imp-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

#image-map-pro-653 .imp-objects {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

#image-map-pro-653 .imp-object {
  position: absolute;
  display: block;
  cursor: pointer;
  transition: fill 0.2s, opacity 0.2s, filter 0.2s;
  pointer-events: auto;
}

/* Dimming/filtering state for image map */
#image-map-pro-653 .imp-object.dimmed {
  opacity: 0.15 !important;
  pointer-events: none;
}

/* Override aspect-ratio when Jamsil image map is loaded to prevent layout overlap */
.stadium-svg-container:has(#image-map-pro-653) {
  aspect-ratio: 1230 / 1486.73;
}

/* Dynamic hover overrides via CSS variables */
#image-map-pro-653 .imp-object-highlighted {
  fill: var(--hover-fill, rgba(255, 255, 255, 0.4)) !important;
  stroke: var(--hover-stroke, rgba(255, 255, 255, 0.75)) !important;
  stroke-width: var(--hover-stroke-width, 0px) !important;
}

/* --- Redesigned Single-Page Layout Styles --- */
.map-collapse-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 8px;
}

.map-collapse-btn:hover {
  background-color: var(--border-color);
}

.map-collapse-btn .collapse-icon {
  width: 15px;
  height: 15px;
  transition: transform 0.3s ease;
}

.map-collapse-btn.expanded .collapse-icon {
  transform: rotate(180deg);
}

.stadium-static-map-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 16px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  background-color: transparent;
  border: 1.5px solid var(--border-color);
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, margin-bottom 0.35s ease, border-width 0.35s ease;
  max-height: 400px;
  opacity: 1;
}

.stadium-static-map-wrapper.collapsed {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  border-width: 0px;
  box-shadow: none;
}

.stadium-static-map {
  width: 100%;
  max-height: 380px;
  height: auto;
  display: block;
  object-fit: contain;
}

.block-selector-wrapper {
  margin: 16px auto;
}

.block-selector-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.block-selector-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

/* Group sections inside block selector (1B, 3B, outfield etc.) */
.block-selector-group {
  width: 100%;
  margin-bottom: 6px;
}

.block-selector-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8; /* unified soft slate-400 */
  margin-top: 10px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.03em;
}

.block-selector-group-title i {
  color: #64748b; /* slate-500 for subtle icon visibility */
}

.block-selector-group-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  width: 100%;
}

.block-selector-group-list.has-long-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.block-selector-group-list.has-long-labels .block-pill-btn {
  width: auto;
  flex: 1 1 calc(50% - 6px);
  padding: 6px 12px;
  white-space: nowrap;
}

.block-pill-btn {
  padding: 5px 4px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-body);
  color: var(--text-secondary);
  text-align: center;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.block-pill-btn:hover {
  background-color: var(--border-color);
  transform: translateY(-1px);
}

.block-pill-btn.active {
  background-color: var(--accent-blue) !important;
  border-color: var(--accent-blue) !important;
  color: #ffffff !important;
  box-shadow: 0 0 8px var(--accent-blue);
  transform: scale(1.03);
}

/* Grade-based border accents for inactive block pills */
.block-pill-btn[data-grade="premium"] { border-left: 3.5px solid #a3e635; }
.block-pill-btn[data-grade="table"] { border-left: 3.5px solid #db2777; }
.block-pill-btn[data-grade="exciting"] { border-left: 3.5px solid #eab308; }
.block-pill-btn[data-grade="blue"] { border-left: 3.5px solid #2563eb; }
.block-pill-btn[data-grade="orange"] { border-left: 3.5px solid #ea580c; }
.block-pill-btn[data-grade="red"] { border-left: 3.5px solid #dc2626; }
.block-pill-btn[data-grade="navy"] { border-left: 3.5px solid #1e3a8a; }
.block-pill-btn[data-grade="green"] { border-left: 3.5px solid #16a34a; }
.block-pill-btn[data-grade="outfield_cheer"] { border-left: 3.5px solid #059669; }
.block-pill-btn[data-grade="wheelchair"] { border-left: 3.5px solid #64748b; }

/* Event Banner Card in Ticketbook */
.ticketbook-event-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.3);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.08);
}
.ticketbook-event-icon {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ticketbook-event-icon svg {
  width: 24px;
  height: 24px;
}
.ticketbook-event-content h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.ticketbook-event-content p {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.ticketbook-event-content .highlight {
  color: #c084fc;
  font-weight: 700;
}

/* Locked State for Delete Button */
.delete-ticket-btn.disabled {
  background-color: rgba(255, 255, 255, 0.04) !important;
  color: var(--text-muted) !important;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: not-allowed;
}
.delete-ticket-btn.disabled:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
  scale: 1 !important;
}

/* Center Centered Modal overrides */
.modal-center {
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-center .modal-content {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: scale(0.85);
  opacity: 0;
  animation: zoomInModal 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes zoomInModal {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Date Input Styling */
input[type="date"] {
  background-color: var(--bg-input);
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: var(--transition-normal);
  width: 100%;
}
input[type="date"]:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

/* Site Footer — home screen only, sits inside the scrollable .app-content
   area so it never overlaps the sticky header or bottom nav. */
.site-footer {
  margin-top: 28px;
  padding: 20px 0 8px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.site-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.site-footer-links a {
  font-size: 0.76rem;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
}

.site-footer-links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.site-footer-divider {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.site-footer-business {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.site-footer-copy {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0;
}
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(0.6);
  cursor: pointer;
}
[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0) opacity(0.6);
}

/* Required Fields Asterisk */
.required-asterisk {
  color: var(--accent-red);
  margin-left: 4px;
  font-weight: 700;
}

/* Searchable Dropdown Options Hover Effects */
.dropdown-options {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: opacity 0.2s ease;
}
.dropdown-item:hover {
  background-color: rgba(168, 85, 247, 0.12) !important;
  color: #fff !important;
}

#form-comment::placeholder {
  font-size: 0.72rem;
  color: var(--text-muted);
}


