/* ==========================================================================
   Bubble Capy (泡泡卡比) - Official Gift Redemption Mini Site
   Theme: Bubble Capy 2168 Pinball Park Mecha & Cyber Arcade
   ========================================================================== */

:root {
  --primary: #ff5500;         /* Bubble Capy Electric Orange */
  --primary-hover: #e04a00;
  --primary-soft: #fff2eb;
  --primary-glow: rgba(255, 85, 0, 0.35);
  --secondary: #121216;       /* Mecha Obsidian Black */
  --secondary-soft: #f4f4f7;
  --accent-amber: #ffd000;    /* Qiuzai Guardian Yellow */
  --accent-gold: #ffb800;
  --accent-teal: #00cec9;     /* Laser Mint */
  --accent-orange-grad: linear-gradient(135deg, #ff7a00 0%, #ff5500 50%, #ff3000 100%);
  --accent-dark-grad: linear-gradient(135deg, #1f1f26 0%, #111114 100%);
  
  --bg-page: #f8f6f0;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.94);
  --border-color: #eae3d7;
  --border-light: #f3efe7;
  --border-primary: rgba(255, 85, 0, 0.28);
  
  --text-main: #14151a;
  --text-muted: #525665;
  --text-light: #848999;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(255, 85, 0, 0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 16px 36px rgba(255, 85, 0, 0.16), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 20px 42px rgba(255, 85, 0, 0.22);
  --shadow-orange-glow: 0 0 24px rgba(255, 85, 0, 0.35);

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

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background floating ambient bubbles (High-Energy Pinball Orbs) */
.ambient-bubbles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9), rgba(255, 208, 0, 0.35) 45%, rgba(255, 85, 0, 0.2) 75%, rgba(255, 85, 0, 0.05) 100%);
  box-shadow: 0 0 14px rgba(255, 120, 0, 0.22), inset 0 2px 6px rgba(255, 255, 255, 0.8);
  animation: floatBubble 18s infinite ease-in-out;
}

@keyframes floatBubble {
  0% { transform: translateY(105vh) scale(0.8) rotate(0deg); opacity: 0; }
  15% { opacity: 0.6; }
  85% { opacity: 0.6; }
  100% { transform: translateY(-15vh) scale(1.1) rotate(180deg); opacity: 0; }
}

/* Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-wrap {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #111114;
  padding: 2px;
  box-shadow: 0 0 16px rgba(255, 85, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2.5px solid #ff5500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-group:hover .brand-logo-wrap {
  transform: scale(1.06) rotate(3deg);
  box-shadow: 0 0 24px rgba(255, 85, 0, 0.65);
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ff7a00, #ff3300);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.brand-badge-tag {
  display: inline-block;
  background: #111114;
  color: #ffd000;
  border: 1px solid rgba(255, 85, 0, 0.5);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 6px rgba(255, 85, 0, 0.3);
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Header Middle Navigation */
.header-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s ease;
}

.header-nav-item:hover {
  background: var(--primary-soft);
  color: var(--primary);
  transform: translateY(-1px);
}

.header-nav-item.highlight-item {
  background: #111114;
  color: #ffd000;
  border: 1px solid rgba(255, 85, 0, 0.4);
}

.header-nav-item.highlight-item:hover {
  background: #1f1f26;
  color: #fff;
  border-color: #ff5500;
  box-shadow: 0 0 12px rgba(255, 85, 0, 0.35);
}

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

.btn-header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-main);
  background: #fff;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-header-link:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: rgba(255, 85, 0, 0.4);
  transform: translateY(-1px);
}

.btn-ig {
  background: linear-gradient(135deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.25);
}

.btn-ig:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 16px rgba(220, 39, 67, 0.35);
}

.btn-calculator-trigger {
  background: var(--accent-orange-grad);
  color: #fff;
  border: none;
  position: relative;
  box-shadow: 0 4px 14px rgba(255, 85, 0, 0.35);
}

.btn-calculator-trigger:hover {
  background: linear-gradient(135deg, #ff8c00, #ff4000);
  box-shadow: 0 6px 18px rgba(255, 85, 0, 0.45);
  transform: translateY(-1px);
}

.wishlist-count-badge {
  background: #111114;
  color: #ffd000;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  margin-left: 2px;
  border: 1.5px solid #ffd000;
}

/* ==========================================================================
   Brand Ticker Marquee Strip (Cyber / Security Caution Tape)
   ========================================================================== */
.brand-ticker-strip {
  background: #111114;
  color: #ffd000;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 36px;
  border-top: 1.5px solid #ff5500;
  border-bottom: 1.5px solid #ff5500;
  position: relative;
  user-select: none;
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 10;
}

.brand-ticker-strip.accent-orange {
  background: var(--accent-orange-grad);
  color: #111114;
  border-top: 1.5px solid #ffd000;
  border-bottom: 1.5px solid #ffd000;
}

.brand-ticker-strip.accent-orange .ticker-star {
  color: #ffffff;
}

.brand-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  animation: tickerScroll 28s linear infinite;
  will-change: transform;
}

.brand-ticker-track:hover {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.ticker-star {
  color: #ff5500;
  text-shadow: 0 0 8px rgba(255, 85, 0, 0.8);
}

.ticker-pill {
  background: #ff5500;
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Hero Banner Section
   ========================================================================== */
.hero-section {
  padding: 20px 0 16px;
}

.hero-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(255, 85, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1.5px solid rgba(255, 85, 0, 0.25);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.hero-banner-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
  background: #111114;
}

.hero-banner-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-card:hover .hero-banner-img-wrap img {
  transform: scale(1.03);
}

.hero-content {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-season-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #111114;
  border: 1px solid rgba(255, 85, 0, 0.6);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 800;
  color: #ffd000;
  align-self: flex-start;
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.25);
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.2;
  color: #111114;
  letter-spacing: -0.5px;
}

.hero-title .title-accent {
  background: var(--accent-orange-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .title-sub {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0;
}

/* Slogans Callout Box */
.hero-slogan-box {
  background: linear-gradient(135deg, #18181f 0%, #111114 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  border-left: 4px solid #ff5500;
  border-right: 1px solid rgba(255, 85, 0, 0.3);
  border-top: 1px solid rgba(255, 85, 0, 0.2);
  border-bottom: 1px solid rgba(255, 85, 0, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hero-slogan-primary {
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffd000;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-slogan-secondary {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ff9d66;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.hero-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ff5500;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* Hero CTA Group */
.hero-cta-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--accent-orange-grad);
  color: #fff !important;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(255, 85, 0, 0.4);
  transition: all 0.25s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 85, 0, 0.55);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: #111114;
  color: #ffd000 !important;
  border: 1px solid rgba(255, 85, 0, 0.5);
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary:hover {
  background: #1d1d24;
  border-color: #ff5500;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 85, 0, 0.3);
}

.hero-location-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 14px;
  background: #fbfbfb;
  border-radius: var(--radius-sm);
  border: 1px solid #eaeaea;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-location-bar a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

/* Quick Notice Strip */
.quick-notice-strip {
  margin: 14px 0 20px;
  background: #fff8f5;
  border: 1px solid #ffd4c2;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  gap: 12px;
}

.notice-text {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9a3412;
  font-weight: 600;
}

.notice-link-btn {
  background: none;
  border: none;
  color: #ea580c;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  white-space: nowrap;
}

/* ==========================================================================
   Main Catalog Controls (Search, Categories, Filters)
   ========================================================================== */
.catalog-section {
  padding-bottom: 80px;
}

.controls-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Search and Sort Row */
.search-sort-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.95rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: #fbfbfb;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-main);
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.15);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.85rem;
  cursor: pointer;
  display: none;
}

.sort-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-select-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.custom-select {
  padding: 9px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: #fff;
  font-size: 0.85rem;
  color: var(--text-main);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}

.custom-select:focus {
  border-color: var(--primary);
}

/* Category Tabs (Horizontal Scrollable) */
.category-tabs-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: #ffd2b3 transparent;
}

.category-tabs-container::-webkit-scrollbar {
  height: 5px;
}

.category-tabs-container::-webkit-scrollbar-thumb {
  background: #ffd2b3;
  border-radius: 4px;
}

.cat-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: #f8f6f2;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.cat-tab-btn .tab-count {
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 7px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.cat-tab-btn:hover {
  background: #fff;
  border-color: #ffaa40;
  color: var(--primary);
  transform: translateY(-1px);
}

.cat-tab-btn.active {
  background: linear-gradient(135deg, #ff7f50, #ffaa40);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(255, 127, 80, 0.3);
}

.cat-tab-btn.active .tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Secondary Filters (Tags & Ticket range) */
.sub-filters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

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

.filter-pill {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary);
}

.filter-pill[data-tag="ip"] {
  background: #111114;
  color: #ffd000;
  border-color: rgba(255, 85, 0, 0.6);
  box-shadow: 0 0 8px rgba(255, 85, 0, 0.2);
}

.filter-pill[data-tag="ip"]:hover,
.filter-pill[data-tag="ip"].active {
  background: var(--accent-orange-grad);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(255, 85, 0, 0.45);
}

.ticket-range-select-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Catalog Results Summary */
.catalog-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 4px;
}

.results-category-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.results-counter {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Gifts Grid & Cards
   ========================================================================== */
.gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.gift-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.gift-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #ffd0b5;
}

.gift-image-box {
  position: relative;
  width: 100%;
  padding-top: 85%; /* 4:3.4 Aspect Ratio */
  background: #fbf7f0;
  overflow: hidden;
  cursor: pointer;
}

.gift-image-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gift-card:hover .gift-image-box img {
  transform: scale(1.06);
}

.gift-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
  z-index: 2;
  letter-spacing: 0.5px;
}

.gift-badge.badge-ip {
  background: var(--accent-orange-grad);
  border: 1px solid #ffd000;
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 85, 0, 0.5);
  font-weight: 900;
}

.gift-stock-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ed573;
}

.stock-dot.low {
  background: #ffa502;
}

/* Card Body */
.gift-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gift-code-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 6px;
  font-weight: 600;
}

.gift-card-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
  cursor: pointer;
  transition: color 0.2s;
}

.gift-card-title:hover {
  color: var(--primary);
}

.gift-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.9em;
}

/* Ticket Price Box (Arcade Ticket Voucher Style) */
.ticket-price-box {
  background: linear-gradient(135deg, #fff7ed, #fffaf5);
  border: 1px dashed #fdba74;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: auto;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
}

.ticket-primary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.ticket-amount {
  font-size: 1.3rem;
  font-weight: 900;
  color: #ea580c;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ticket-unit {
  font-size: 0.8rem;
  font-weight: 700;
  color: #c2410c;
}

.vip-price-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary);
  background: #f1f0fd;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Card Actions */
.gift-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-card-detail {
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-card-detail:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.btn-card-add {
  padding: 8px 12px;
  background: linear-gradient(135deg, #ff7f50, #ffaa40);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 3px 10px rgba(255, 127, 80, 0.2);
}

.btn-card-add:hover {
  background: linear-gradient(135deg, #ff6348, #ff9f1a);
  transform: translateY(-1px);
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   Modals & Drawers
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
  transform: rotate(90deg);
}

/* Gift Detail Modal Content */
.modal-detail-hero {
  position: relative;
  width: 100%;
  max-height: 340px;
  overflow: hidden;
  background: #fbf7f0;
}

.modal-detail-hero img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.modal-body {
  padding: 28px;
}

.modal-title-row {
  margin-bottom: 12px;
}

.modal-gift-code {
  font-size: 0.78rem;
  color: var(--secondary);
  font-weight: 700;
  background: var(--secondary-soft);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}

.modal-gift-title {
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.3;
}

.modal-pricing-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff8f0;
  border: 1px dashed #ff9f43;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin: 16px 0 20px;
}

.modal-tickets-huge {
  font-size: 1.7rem;
  font-weight: 900;
  color: #ea580c;
}

.modal-vip-badge {
  background: linear-gradient(135deg, #6c5ce7, #8c82ff);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.modal-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 18px 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.specs-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
}

.specs-table td.spec-key {
  color: var(--text-muted);
  width: 25%;
  font-weight: 600;
  background: #faf8f5;
}

.specs-table td.spec-val {
  color: var(--text-main);
  font-weight: 600;
}

.modal-location-reminder {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.82rem;
  color: #166534;
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.modal-footer-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-modal-add-wishlist {
  flex: 1;
  padding: 14px;
  background: linear-gradient(135deg, #ff7f50, #ffaa40);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 127, 80, 0.3);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-modal-add-wishlist:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 127, 80, 0.4);
}

/* ==========================================================================
   Wishlist & Ticket Calculator Drawer
   ========================================================================== */
.wishlist-modal .modal-container {
  max-width: 600px;
}

.wishlist-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wishlist-items-list {
  max-height: 280px;
  overflow-y: auto;
  padding: 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wishlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #fbf9f5;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.wishlist-item-img {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.wishlist-item-info {
  flex: 1;
  min-width: 0;
}

.wishlist-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wishlist-item-tickets {
  font-size: 0.8rem;
  color: #ea580c;
  font-weight: 800;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: #f1f5f9;
}

.qty-val {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.remove-wish-btn {
  background: none;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 4px;
  font-size: 1rem;
}

.remove-wish-btn:hover {
  color: #ef4444;
}

/* Calculator calculation box */
.calculator-box {
  padding: 18px 28px 24px;
  background: #fff;
  border-top: 1px solid var(--border-color);
}

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.calc-row.total-tickets {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ea580c;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-color);
}

.my-balance-input-wrap {
  margin: 14px 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.balance-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.balance-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #cbd5e1;
  font-size: 1rem;
  font-weight: 800;
  color: var(--secondary);
  font-family: inherit;
}

.balance-input:focus {
  outline: none;
  border-color: var(--secondary);
}

.balance-status-alert {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  display: none;
}

.balance-status-alert.enough {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.balance-status-alert.not-enough {
  display: block;
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

.calc-footer-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.btn-calc-action {
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-copy-list {
  background: #f1f5f9;
  color: var(--text-main);
}

.btn-copy-list:hover {
  background: #e2e8f0;
}

.btn-counter-voucher {
  background: linear-gradient(135deg, #6c5ce7, #8c82ff);
  color: #fff;
}

.btn-counter-voucher:hover {
  background: linear-gradient(135deg, #5b4cc4, #7469ff);
}

/* ==========================================================================
   Terms & Info Modals
   ========================================================================== */
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0;
}

.rule-item {
  background: #fdfbf7;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.rule-item-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #d97706;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rule-item-content {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Floating Wishlist Pill (Mobile Sticky Bottom)
   ========================================================================== */
.floating-wishlist-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(30, 41, 59, 0.94);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 90;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  max-width: 90%;
  width: auto;
}

.floating-wishlist-bar.visible {
  transform: translateX(-50%) translateY(0);
}

.floating-info {
  display: flex;
  flex-direction: column;
}

.floating-count {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}

.floating-tickets {
  font-size: 1rem;
  font-weight: 900;
  color: #ffaa40;
}

.btn-floating-view {
  background: linear-gradient(135deg, #ff7f50, #ffaa40);
  border: none;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Admin / Staff Quick Edit Drawer
   ========================================================================== */
.staff-badge-trigger {
  font-size: 0.72rem;
  color: var(--text-light);
  cursor: pointer;
  text-decoration: underline;
  margin-top: 10px;
  display: inline-block;
}

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

.admin-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.admin-input,
.admin-select,
.admin-textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 0.88rem;
}

.admin-textarea {
  min-height: 70px;
  resize: vertical;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-notice {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #1e293b;
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 48px 0 32px;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-col-brand h4 {
  font-size: 1.2rem;
  font-weight: 900;
  color: #2d3436;
  margin-bottom: 10px;
}

.footer-col-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-list a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links-list a:hover {
  color: var(--primary);
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 990px) {
  .header-nav-links {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-card {
    grid-template-columns: 1fr;
  }
  
  .hero-banner-img-wrap {
    min-height: 240px;
    height: 280px;
  }
  
  .hero-content {
    padding: 24px 20px;
  }
  
  .hero-title {
    font-size: 1.7rem;
  }
  
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .header-actions .btn-text-hide {
    display: none;
  }
  
  .btn-header-link {
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  .brand-ticker-strip {
    height: 32px;
    font-size: 0.72rem;
  }
  
  .gifts-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }
  
  .gift-card-body {
    padding: 12px;
  }
  
  .gift-card-title {
    font-size: 0.88rem;
    height: 2.6em;
  }
  
  .gift-card-desc {
    display: none;
  }
  
  .ticket-amount {
    font-size: 1.1rem;
  }
  
  .gift-card-actions {
    grid-template-columns: 1fr;
  }
  
  .btn-card-detail {
    display: none;
  }
  
  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
