/* ============================================================
   QR Kumbaram — UI Design System
   Dark Premium Mobile-First | Inter 16px | Gold + Purple
   ============================================================ */

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  /* Backgrounds — saf siyah taban, kartlar hafif yükseltilmiş */
  --bg:              #000000;
  --bg-base:         #000000;
  --bg-elevated:     #0a0a0a;
  --bg-card:         rgba(255, 255, 255, 0.05);
  --bg-card-hover:   rgba(255, 255, 255, 0.08);
  --bg-input:        rgba(255, 255, 255, 0.06);
  --bg-glass:        rgba(0, 0, 0, 0.94);

  /* Gold / Orange */
  --gold:            #F5A623;
  --gold-light:      #FFB830;
  --gold-dark:       #C87A10;
  --gold-glow:       rgba(245, 166, 35, 0.45);
  --gold-ring:       rgba(255, 184, 48, 0.55);

  /* Purple */
  --purple:          #7C3AED;
  --purple-dark:     #2D1B69;
  --purple-mid:      #4C1D95;
  --purple-banner:   #241060;
  --purple-glow:     rgba(124, 58, 237, 0.35);

  /* Semantic */
  --green:           #10B981;
  --red:             #EF4444;
  --blue:            #3B82F6;

  /* Text */
  --text:            #FFFFFF;
  --text-primary:    #FFFFFF;
  --text-secondary:  rgba(255, 255, 255, 0.65);
  --text-muted:      rgba(255, 255, 255, 0.38);

  /* Borders */
  --border:          rgba(255, 255, 255, 0.08);
  --border-gold:     rgba(245, 166, 35, 0.28);

  /* Radius */
  --radius-sm:       10px;
  --radius:          16px;
  --radius-md:       18px;
  --radius-lg:       20px;
  --radius-xl:       24px;
  --radius-full:     9999px;

  /* Shadows */
  --shadow-card:     0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-gold:     0 4px 24px rgba(245, 166, 35, 0.35);
  --shadow-purple:   0 8px 32px rgba(89, 28, 220, 0.28);

  /* Layout */
  --font:            'Inter', system-ui, -apple-system, sans-serif;
  --transition:      0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-bar-height:  76px;
  --nav-float-gap:   max(10px, env(safe-area-inset-bottom));
  --nav-clearance:   calc(var(--nav-bar-height) + var(--nav-float-gap) + 22px);
  --nav-height:      var(--nav-clearance);
  --header-height:   60px;
  --page-max:        480px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-bottom: var(--nav-clearance);
  background: var(--bg);
  overflow-x: hidden;
  width: 100%;
}

html.pwa-standalone {
  min-height: 100%;
  min-height: 100dvh;
}

html.pwa-standalone body {
  min-height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100dvh;
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* Scroll hide utility */
.scroll-x,
.filter-chips,
.prof-badges,
.spin-cat-scroll,
.spin-winners-scroll,
.cat-scroll,
.cat-grid,
.biz-chips {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroll-x::-webkit-scrollbar,
.filter-chips::-webkit-scrollbar,
.prof-badges::-webkit-scrollbar,
.spin-cat-scroll::-webkit-scrollbar,
.spin-winners-scroll::-webkit-scrollbar,
.cat-scroll::-webkit-scrollbar,
.cat-grid::-webkit-scrollbar,
.biz-chips::-webkit-scrollbar {
  display: none;
}

/* ── App Background ──────────────────────────────────────── */
.app-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 85% 60% at 50% -8%, rgba(89, 28, 220, 0.16) 0%, transparent 62%),
    radial-gradient(ellipse 50% 40% at 95% 90%, rgba(245, 166, 35, 0.05) 0%, transparent 58%),
    #000000;
}

/* ── Page Layout ─────────────────────────────────────────── */
.page-wrapper {
  max-width: var(--page-max);
  width: 100%;
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

.page-content {
  padding: 16px 16px 20px;
}

@media (min-width: 481px) {
  .page-wrapper {
    box-shadow:
      0 0 80px rgba(89, 28, 220, 0.1),
      0 0 0 1px rgba(255, 255, 255, 0.04);
  }
}

/* ═══════════════════════════════════════════════════════════
   COMMON PAGE HEADER (logo + sayfa açıklaması)
═══════════════════════════════════════════════════════════ */
.app-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.app-page-header__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: 1;
}

.app-page-header__logo {
  flex-shrink: 0;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}

.app-page-header__info {
  min-width: 0;
}

.app-page-header__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

.app-page-header__desc {
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-page-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.app-header-cards {
  display: flex;
  gap: 8px;
}

.app-header-card {
  min-width: 68px;
  min-height: 58px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  padding: 6px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 21, 34, 0.82);
  color: var(--text-primary);
  text-align: center;
  text-decoration: none;
}

.app-header-card > span:first-child {
  font-size: 16px;
  line-height: 1;
}

.app-header-card strong {
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}

.app-header-card strong em {
  color: var(--gold-light);
  font-style: normal;
}

.app-header-card small {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
}

/* Legacy home header alias */
.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 20px 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.app-header-logo { line-height: 1; }

.app-header-greet {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

.app-header-btns {
  display: flex;
  gap: 10px;
  margin-top: 2px;
}

.app-header-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  position: relative;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.app-header-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
}

.app-header-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg-base);
  box-shadow: 0 0 8px var(--gold-glow);
}

.app-header-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #1a0f00;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-base);
}

.app-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.app-logo--header {
  height: 36px;
  max-width: 190px;
}

/* ═══════════════════════════════════════════════════════════
   BOTTOM NAVIGATION — stable app tab bar
═══════════════════════════════════════════════════════════ */
.bnav {
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 9999;
  width: min(calc(100% - 24px), 430px);
  height: 78px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 0 8px;
  border-radius: 26px;
  background: rgba(10, 11, 17, 0.94);
  border: 1px solid rgba(245, 158, 11, 0.32);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(245, 158, 11, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  overflow: hidden;
  box-sizing: border-box;
}

.bnav--ready {
  animation: bnavSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bnavSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Spacer — reserves scroll space below content */
.bnav-spacer {
  height: calc(78px + max(10px, env(safe-area-inset-bottom)) + 14px);
  flex-shrink: 0;
  pointer-events: none;
}

/* Each tab item — all 5 are equal-height, centered */
.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 62px;
  min-width: 0;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.38);
  font-size: clamp(8px, 2.1vw, 9.5px);
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 16px;
  transition: transform 0.14s;
  -webkit-tap-highlight-color: transparent;
  /* NO margin-top, NO absolute, NO negative values */
}

.bn-item:active { transform: scale(0.86); }

/* Icon shell (regular items) */
.bn-ico-shell {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 19px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.38);
  transition: width 0.2s, height 0.2s, border-radius 0.2s,
              background 0.2s, border 0.2s, box-shadow 0.2s, color 0.2s;
}

/* Active state */
.bn-item.active {
  color: #f5a623;
}

.bn-item.active .bn-ico-shell {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: radial-gradient(circle at 50% 40%, rgba(245, 158, 11, 0.26), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.40);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.22);
  color: #f5a623;
}

/* Label */
.bn-label {
  display: block;
  font-size: inherit;
  font-weight: 700;
  line-height: 1;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}

/* ── Center (Çark) item — stays within the nav, no overflow ── */
.bn-center {
  /* identical layout to other items — no special sizing */
}

.bn-spin-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(245, 158, 11, 0.48);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bn-center.active .bn-spin-wrap {
  border-color: rgba(245, 158, 11, 0.88);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.bn-center:active .bn-spin-wrap { transform: scale(0.9); }

.bn-spin__icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Body bottom padding so content isn't hidden behind nav */
body {
  padding-bottom: calc(78px + max(10px, env(safe-area-inset-bottom)) + 14px);
}

@media (prefers-reduced-motion: reduce) {
  .bnav, .bnav--ready { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   HOME — SPIN BANNER
═══════════════════════════════════════════════════════════ */
.spin-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #2a1570 0%, var(--purple-banner) 55%, #150840 100%);
  border: 1px solid rgba(124, 58, 237, 0.42);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-purple);
}

.spin-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.06) 50%, transparent 60%);
  pointer-events: none;
}

.spin-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(89, 28, 220, 0.38);
}

.spin-banner-icon,
.spin-banner-visual {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.spin-banner-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spin-banner-text {
  flex: 1;
  min-width: 0;
}

.spin-banner-text strong,
.spin-banner-text .spin-banner-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
}

.spin-banner-text span,
.spin-banner-text .spin-banner-sub {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.52);
  margin-top: 3px;
}

.spin-banner-cta {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #1a0f00;
  font-size: 12px;
  font-weight: 900;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: var(--shadow-gold);
  letter-spacing: 0.2px;
}

.spin-banner-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 22px;
}

.spin-banner-empty-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.spin-banner-empty-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════
   HOME — SECTIONS & CATEGORIES
═══════════════════════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  flex-shrink: 0;
}

.section-title--spark::after {
  content: '✨';
  font-size: 14px;
  margin-left: 4px;
}

.section-title--pin::after {
  content: '📍';
  font-size: 14px;
  margin-left: 4px;
}

.section-title .section-icon { display: none; }

.section-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.section-link {
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
}

.section-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* Kategori — yatay kaydırma (referans2) */
.cat-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin-bottom: 24px;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.cat-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin-bottom: 24px;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.cat-scroll .cat-card,
.cat-grid .cat-card {
  width: 118px;
  min-width: 118px;
  flex-shrink: 0;
  scroll-snap-align: start;
  height: 148px;
  min-height: 148px;
  box-shadow: 0 10px 28px var(--cat-glow, rgba(76, 46, 154, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cat-card {
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
  text-decoration: none;
}

.cat-card:active { transform: scale(0.96); }

.cat-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.cat-card-bg img,
.cat-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--cat-img-y, 50%);
  display: block;
}

.cat-card--photo { overflow: hidden; }

.cat-card--photo .cat-card-overlay {
  background: linear-gradient(165deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.72) 100%);
}

.cat-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.62) 100%);
  pointer-events: none;
}

.cat-card-emoji {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 72px;
  line-height: 1;
  z-index: 2;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
  pointer-events: none;
  user-select: none;
}

.cat-card-emoji-img {
  top: 4px;
  right: 4px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-card-emoji-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
}

.cat-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 12px 12px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.cat-card-name {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.3px;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.cat-card-count {
  display: none;
}

.cat-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.cat-card-badge--zero {
  opacity: 0.55;
}

.cat-card-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #12121c;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

/* Günün fırsatı */
.deal-info { flex: 1; min-width: 0; }

.deal-gem {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ff8800, #e05000);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 6px 20px rgba(255, 136, 0, 0.35);
  border: 1px solid rgba(255, 184, 48, 0.35);
}

.deal-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.4px;
}

.deal-sub {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

.deal-pct {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-top: 2px;
}

.deal-biz {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deal-btn {
  flex-shrink: 0;
  border: 1.5px solid rgba(245, 166, 35, 0.5);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  padding: 9px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  background: transparent;
  transition: var(--transition);
}

.deal-card:hover .deal-btn {
  background: var(--gold);
  color: #1a0f00;
  border-color: var(--gold);
}

.explore-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  line-height: 1.2;
  max-width: 68px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-arrow { display: none; }

.page-home__content {
  padding: 0 16px 20px;
}

.page-home .spin-banner {
  margin-top: 4px;
}

.nearby-card {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px 10px 10px;
  text-decoration: none;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.nearby-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.nearby-loc {
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nearby-loc::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.nearby-km {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

.nearby-img-fallback {
  font-size: 28px;
}

.nearby-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.nearby-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nearby-info {
  flex: 1;
  min-width: 0;
}

.nearby-name {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nearby-pct {
  font-size: 14px;
  font-weight: 900;
  color: var(--gold);
  margin-top: 2px;
}

.nearby-tag {
  display: inline-block;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-full);
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

.nearby-go {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(124, 58, 237, 0.22);
  border: 1px solid rgba(124, 58, 237, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  margin-left: 4px;
}

/* Deal card */
.deal-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(18, 18, 28, 0.98) 0%, rgba(30, 20, 50, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.deal-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.deal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(245, 166, 35, 0.12);
}

.explore-row {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.explore-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.explore-box {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  border-radius: 16px;
  position: relative;
  transition: transform 0.2s ease;
  overflow: hidden;
  box-shadow: 0 8px 22px var(--explore-glow, rgba(0, 0, 0, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.explore-box--photo {
  padding: 0;
  display: block;
  background: #1a1f2e;
}

.explore-box--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.explore-box-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.42) 100%);
  pointer-events: none;
}

.explore-item--spin .explore-box {
  width: 68px;
  height: 68px;
  border: 2px solid var(--gold);
  box-shadow:
    0 0 0 2px rgba(245, 166, 35, 0.2),
    0 10px 28px rgba(245, 166, 35, 0.45);
}

.explore-item:hover .explore-box { transform: translateY(-3px); }
.explore-item:active .explore-box { transform: scale(0.92); }

.explore-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a0f00;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--bg-base);
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.4);
}

/* Nearby list */
.nearby-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.nearby-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ═══════════════════════════════════════════════════════════
   BUSINESSES PAGE — referans2/isletmeler.png
═══════════════════════════════════════════════════════════ */
.page-businesses__content {
  padding: 4px 16px 20px;
}

.page-businesses .app-page-header {
  padding-bottom: 10px;
}

/* Arama */
.biz-search-form {
  margin-bottom: 14px;
}

.biz-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.biz-search-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
}

.biz-search-field__icon {
  font-size: 15px;
  opacity: 0.45;
  flex-shrink: 0;
}

.biz-search-field input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  padding: 0;
}

.biz-search-field input::placeholder { color: var(--text-muted); }
.biz-search-field input:focus { outline: none; }

.biz-search-bar:focus-within .biz-search-field {
  border-color: rgba(124, 58, 237, 0.4);
}

.biz-search-filter {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Kategori chip */
.page-businesses .biz-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin: 0 -16px 14px;
  padding-left: 16px;
  padding-right: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-businesses .biz-chip {
  scroll-snap-align: start;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  transition: var(--transition);
}

.page-businesses .biz-chip.is-active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #1a0f00;
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}

.page-businesses .biz-chip.is-active .cat-icon-img {
  filter: none;
}

/* Toolbar */
.biz-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}

.biz-toolbar__count {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  margin: 0;
}

.biz-toolbar__sort {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  cursor: pointer;
  padding: 8px 11px;
  white-space: nowrap;
  transition: var(--transition);
}

.biz-toolbar__sort:not(:disabled):active {
  transform: scale(0.96);
}

.biz-toolbar__sort:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Liste */
.biz-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.biz-card {
  background: #161821;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 12px;
  transition: border-color var(--transition);
}

.biz-card__row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.biz-card__thumb {
  width: 96px;
  min-height: 96px;
  align-self: stretch;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.biz-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.biz-card__thumb-fallback {
  font-size: 34px;
}

.biz-card__discount {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  background: #5856d6;
  box-shadow: 0 2px 8px rgba(88, 86, 214, 0.45);
  white-space: nowrap;
  line-height: 1.2;
}

.biz-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-top: 1px;
}

.biz-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.biz-card__name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.25;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.biz-card__status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #2ecc71;
}

.biz-card__status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2ecc71;
}

.biz-card__cats {
  margin: 5px 0 0;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.biz-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
}

.biz-card__meta-pills {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.biz-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.52);
  white-space: nowrap;
  flex-shrink: 0;
}

.biz-pill--campaign {
  color: rgba(255, 255, 255, 0.58);
}

.biz-pill--loc {
  color: rgba(255, 255, 255, 0.48);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72px;
}

.biz-card__km {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.38);
}

.biz-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.biz-card__cta {
  flex: 1;
  min-width: 0;
  display: block;
  text-align: center;
  padding: 10px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  color: #1a0f00;
  background: linear-gradient(135deg, #ffb830 0%, #e67e22 100%);
  box-shadow: 0 4px 16px rgba(230, 126, 34, 0.32);
  text-decoration: none;
  transition: transform 0.15s ease;
  white-space: nowrap;
}

.biz-card__cta:active {
  transform: scale(0.98);
}

.biz-card__fav {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.biz-card__fav:hover,
.biz-card__fav.is-active {
  border-color: rgba(245, 166, 35, 0.35);
  color: var(--gold);
}

.biz-empty {
  text-align: center;
  padding: 48px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.biz-empty__icon {
  font-size: 44px;
  margin-bottom: 12px;
}

.biz-empty p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 14px;
}

/* Eski sınıflar — geriye dönük (business-detail vb.) */
.biz-page-search { margin-bottom: 14px; }
.biz-search-row { display: flex; gap: 10px; align-items: center; }
.biz-list-v2 { display: flex; flex-direction: column; gap: 12px; }
.panel-empty { text-align: center; padding: 48px 24px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.panel-empty__icon { font-size: 48px; margin-bottom: 12px; }
.panel-empty p { color: var(--text-secondary); margin-bottom: 16px; font-size: 14px; }

/* ═══════════════════════════════════════════════════════════
   BUSINESS DETAIL
═══════════════════════════════════════════════════════════ */
.biz-detail-hero {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple-dark), var(--bg-base));
}

.biz-detail-hero-wrap {
  position: relative;
  margin-bottom: 52px;
}

.biz-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.biz-detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, transparent 35%, rgba(0, 0, 0, 0.88) 100%);
  pointer-events: none;
}

.biz-detail-back {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  transition: var(--transition);
}

.biz-detail-back:hover { background: rgba(0, 0, 0, 0.6); }

.biz-detail-logo {
  width: 76px;
  height: 76px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 3px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  position: absolute;
  bottom: -38px;
  left: 20px;
  z-index: 10;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.biz-detail-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.biz-detail-discount-float {
  position: absolute;
  bottom: 48px;
  right: 16px;
  z-index: 5;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a0f00;
  font-size: 13px;
  font-weight: 900;
  padding: 7px 15px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-gold);
}

.biz-detail-head {
  padding: 0 0 4px;
}

.biz-detail-head h1 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.biz-action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0 20px;
}

.biz-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  color: inherit;
}

.biz-action-btn span {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.2;
}

.biz-action-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.biz-action-btn--primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}

.biz-action-btn--primary span { color: rgba(26, 15, 0, 0.75); }

.biz-promo-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #2a1570 0%, #1a0f45 100%);
  border: 1px solid rgba(124, 58, 237, 0.35);
  margin-bottom: 16px;
  box-shadow: var(--shadow-purple);
}

.biz-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 20px;
  scrollbar-width: none;
}

.biz-gallery::-webkit-scrollbar { display: none; }

.biz-gallery img {
  width: 140px;
  height: 100px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.biz-info-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}

.biz-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
}

.biz-info-row:last-child { border-bottom: none; }

.biz-info-row .biz-info-icon {
  font-size: 18px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
}

.biz-info-row .biz-info-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.biz-info-row .biz-info-value {
  font-size: 14px;
  font-weight: 600;
  margin-top: 3px;
}

.biz-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.biz-about-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.biz-about-card h3 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
}

.biz-about-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════
   COUPONS
═══════════════════════════════════════════════════════════ */
.coupon-page-head {
  padding: 18px 20px 8px;
}

.coupon-page-head h1 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.coupon-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 20px;
}

.coupon-tab {
  flex: 1;
  padding: 10px 8px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  transition: var(--transition);
  border: none;
  background: transparent;
  cursor: pointer;
}

.coupon-tab.active {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  box-shadow: none;
}

.coupon-section {
  margin-bottom: 24px;
}

.coupon-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-secondary);
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.coupon-ticket {
  display: flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  transition: transform var(--transition), background var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.coupon-ticket:hover {
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.coupon-ticket-stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  min-width: 76px;
  border-left: 1.5px dashed rgba(255, 255, 255, 0.1);
  position: relative;
  flex-shrink: 0;
}

.coupon-ticket-stub::before,
.coupon-ticket-stub::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-base);
  left: -7px;
}

.coupon-ticket-stub::before { top: -7px; }
.coupon-ticket-stub::after { bottom: -7px; }

.coupon-ticket-stub .coupon-rate {
  font-size: 24px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.coupon-ticket-stub .coupon-rate-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.coupon-ticket-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  min-width: 0;
}

.coupon-ticket-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
}

.coupon-ticket-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coupon-ticket-info { flex: 1; min-width: 0; }

.coupon-ticket-name {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coupon-ticket-discount {
  font-size: 17px;
  font-weight: 900;
  color: var(--gold);
  margin: 2px 0 6px;
}

.coupon-ticket-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  color: var(--text-secondary);
}

.coupon-ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: 10px;
  color: var(--text-muted);
}

.coupon-ticket-status {
  font-size: 9px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.coupon-ticket.status-active {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.12);
}

.coupon-ticket.status-active .coupon-ticket-status {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
}

.coupon-ticket.status-used {
  border-color: rgba(16, 185, 129, 0.25);
  opacity: 0.85;
}

.coupon-ticket.status-used .coupon-ticket-status {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.coupon-ticket.status-expired {
  border-color: rgba(239, 68, 68, 0.25);
  opacity: 0.75;
}

.coupon-ticket.status-expired .coupon-ticket-status {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
}

.coupon-stub-action {
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
  background: linear-gradient(135deg, #6d28d9, #7c3aed);
  color: #fff;
  border: none;
  cursor: pointer;
}

.coupon-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.coupon-history-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.coupon-tab-count {
  margin-left: 4px;
  opacity: 0.75;
  font-size: 10px;
}

.coupon-promo-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #2a1570, var(--purple-banner));
  border: 1px solid rgba(124, 58, 237, 0.4);
  margin-bottom: 20px;
  box-shadow: var(--shadow-purple);
}

.coupon-promo-banner strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.coupon-promo-banner span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
}

/* ═══════════════════════════════════════════════════════════
   PROFILE — referans2/profilim.png
═══════════════════════════════════════════════════════════ */
.page-profile__content {
  padding: 4px 16px 20px;
}

.page-profile .app-page-header {
  padding-bottom: 10px;
}

/* Hero kart */
.prof-hero {
  position: relative;
  background: linear-gradient(145deg, rgba(88, 28, 220, 0.22) 0%, rgba(36, 16, 96, 0.35) 45%, rgba(245, 166, 35, 0.06) 100%);
  border: 1px solid rgba(124, 58, 237, 0.28);
  border-radius: 20px;
  padding: 16px 14px 18px;
  margin-bottom: 14px;
  overflow: hidden;
}

.prof-hero::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
  top: -60px;
  right: -40px;
  pointer-events: none;
}

.prof-points {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  min-width: 0;
}

.prof-points__ico {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.prof-points__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.prof-points__num {
  font-size: 16px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.1;
}

.prof-points__lbl {
  font-size: 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.prof-points__chev {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.prof-hero__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-right: 88px;
}

.prof-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.prof-avatar-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, var(--gold-light), #7c3aed);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.4);
}

.prof-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #1a1528;
  border: 3px solid #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  overflow: hidden;
}

.prof-avatar--photo {
  padding: 0;
}

.prof-avatar-img,
.prof-avatar .user-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  border: 0;
  background: #111;
}

.prof-avatar-crown {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(245, 166, 35, 0.45));
}

.prof-hero__info {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.prof-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.prof-name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prof-verified {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #1a0f00;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prof-tier {
  display: inline-flex;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(124, 58, 237, 0.4);
  font-size: 9px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.3px;
}

.prof-tier--gold {
  background: linear-gradient(135deg, rgba(255, 184, 48, 0.25), rgba(245, 166, 35, 0.15));
  border-color: rgba(245, 166, 35, 0.45);
  color: var(--gold-light);
}

.prof-level {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #a78bfa;
}

.prof-xp {
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  margin-top: 8px;
  overflow: hidden;
}

.prof-xp__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.prof-xp-hint {
  margin: 6px 0 0;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.4;
}

.prof-xp-hint strong {
  color: rgba(255, 255, 255, 0.65);
}

/* İstatistikler */
.prof-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.prof-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 12px 6px;
  text-align: center;
}

.prof-stat__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
}

.prof-stat__ico img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.prof-stat__num {
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.prof-stat__lbl {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.25;
}

/* Bölüm başlıkları */
.prof-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

.prof-section-head--tight {
  margin-bottom: 10px;
}

.prof-section-head h2 {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
}

.prof-section-head a {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.prof-month__date {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}

/* Rozetler */
.prof-badges {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin: 0 -16px 16px;
  padding-left: 16px;
  padding-right: 16px;
  scroll-snap-type: x mandatory;
}

.prof-badge {
  flex-shrink: 0;
  width: 68px;
  text-align: center;
  scroll-snap-align: start;
}

.prof-badge__circle {
  width: 52px;
  height: 52px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prof-badge__circle img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.prof-badge__name {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.2;
}

.prof-badge__sub {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
}

.prof-badge.is-locked {
  opacity: 0.45;
}

.prof-badge.is-locked .prof-badge__circle img {
  opacity: 0.55;
  filter: grayscale(0.85);
}

.prof-badge.is-locked .prof-badge__circle {
  box-shadow: none;
}

/* İkili kartlar */
.prof-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.prof-daily,
.prof-invite {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 14px 12px;
  overflow: hidden;
  min-height: 148px;
}

.prof-daily {
  background: linear-gradient(160deg, rgba(36, 16, 96, 0.45) 0%, rgba(20, 18, 32, 0.9) 100%);
  text-align: left;
}

.prof-daily::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 130px;
  height: 130px;
  background: url('../images/profile/wheel-watermark.png') no-repeat center / contain;
  opacity: 0.35;
  pointer-events: none;
}

.prof-daily__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}

.prof-daily__info {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prof-daily__status {
  margin: 10px 0 0;
}

.prof-daily__ready {
  font-size: 18px;
  font-weight: 900;
  color: #2ecc71;
  letter-spacing: -0.3px;
}

.prof-daily__tickets {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.prof-daily__tickets img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.prof-daily__foot {
  margin: 10px 0 0;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.35;
}

.prof-invite {
  background: linear-gradient(160deg, rgba(245, 166, 35, 0.08) 0%, rgba(20, 18, 32, 0.95) 100%);
  text-align: left;
}

.prof-invite__title {
  font-size: 11px;
  font-weight: 800;
  margin: 0;
  color: #fff;
  line-height: 1.3;
}

.prof-invite__text {
  margin: 6px 0 0;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.35;
}

.prof-invite__stats {
  margin: 8px 0 0;
  font-size: 9px;
  font-weight: 700;
  color: rgba(245, 166, 35, 0.85);
  line-height: 1.35;
}

.prof-invite__btn {
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1.5px solid rgba(245, 166, 35, 0.55);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

.prof-invite__btn:active {
  transform: scale(0.97);
}

/* Menü */
.prof-menu {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

.prof-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.prof-menu-item:last-child {
  border-bottom: none;
}

.prof-menu-item:active {
  background: rgba(255, 255, 255, 0.04);
}

.prof-menu-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prof-menu-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.prof-menu-body {
  flex: 1;
  min-width: 0;
}

.prof-menu-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.prof-menu-desc {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prof-menu-arrow {
  flex-shrink: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.28);
}

.prof-menu-item--danger .prof-menu-title {
  color: var(--red);
}

/* Aylık özet */
.prof-month {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.prof-month__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.prof-month__cell {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.prof-month__ico {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-bottom: 6px;
}

.prof-month__cell strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.2;
}

.prof-month__cell span:last-child {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.3;
}

.prof-version {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
  margin: 0 0 8px;
}

/* Modal */
.prof-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: flex-end;
  justify-content: center;
}

.prof-modal__sheet {
  width: 100%;
  max-width: 480px;
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.prof-modal__title {
  font-weight: 900;
  margin: 0 0 20px;
  font-size: 18px;
}

.prof-modal__label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.prof-modal__input {
  width: 100%;
  margin-bottom: 16px;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.prof-modal__actions {
  display: flex;
  gap: 12px;
}

.prof-modal__actions .btn {
  flex: 1;
}

/* Geriye dönük */
.biz-detail-verified { color: var(--gold); font-size: 14px; }

.biz-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.biz-detail-verified {
  color: var(--gold);
  font-size: 14px;
}

.biz-detail-share {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.biz-promo-banner__btn {
  margin-left: auto;
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #1a0f00;
  font-size: 12px;
  font-weight: 800;
  border: none;
  white-space: nowrap;
}

.biz-info-row .biz-info-chevron {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 14px;
}

.biz-highlights-list {
  list-style: none;
  margin-top: 8px;
}

.biz-highlights-list li {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 0;
}

.biz-highlights-list li::before {
  content: '✓ ';
  color: var(--green);
  font-weight: 800;
}

.spin-top-util {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 14px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.spin-util-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.spin-grand-prize__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.spin-grand-prize__gift {
  font-size: 40px;
  flex-shrink: 0;
}

.spin-grand-prize__btn {
  margin-left: auto;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.35);
  border: 1px solid rgba(124, 58, 237, 0.5);
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}


/* ═══════════════════════════════════════════════════════════
   SPIN PAGE
═══════════════════════════════════════════════════════════ */
.spin-page-head {
  padding: 16px 20px 4px;
  text-align: left;
}

.spin-page-head h1 {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.4px;
}

.spin-page-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.spin-page-head .spin-top-util {
  margin-top: 12px;
  padding: 0;
  justify-content: flex-start;
}

.spin-daily-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(124, 58, 237, 0.35);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.spin-grand-prize {
  text-align: center;
  padding: 14px 18px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(45, 25, 85, 0.95), rgba(20, 12, 40, 0.98));
  border: 1px solid rgba(124, 58, 237, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.spin-grand-prize .prize-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.spin-grand-prize .prize-value {
  font-size: 32px;
  font-weight: 900;
  margin-top: 4px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.spin-cat-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 18px;
}

.spin-wheel-area {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 16px 0 8px;
}

.spin-wheel-area::before {
  content: '';
  position: absolute;
  width: min(100%, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.2) 0%, rgba(124, 58, 237, 0.12) 42%, transparent 68%);
  filter: blur(16px);
  animation: spinAuraPulse 3.5s ease-in-out infinite;
}

@keyframes spinAuraPulse {
  0%, 100% { opacity: 0.7; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

.spin-ticker {
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 0;
  margin: 16px 0;
}

.spin-ticker-track {
  display: flex;
  gap: 24px;
  animation: tickerScroll 18s linear infinite;
  white-space: nowrap;
  padding: 0 16px;
}

.spin-ticker-track span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.spin-winners-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
}

.spin-winners-scroll .winner-card {
  flex-shrink: 0;
  width: 140px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-align: center;
}

.spin-winners-scroll .winner-name {
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
}

.spin-winners-scroll .winner-prize {
  font-size: 11px;
  color: var(--gold);
  font-weight: 800;
  margin-top: 2px;
}

.spin-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 0;
}

.spin-trust-row .trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   SHARED COMPONENTS
═══════════════════════════════════════════════════════════ */
.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
}

.chip {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.chip:hover { background: var(--bg-card-hover); }

.chip.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #1a0f00;
  border-color: rgba(255, 184, 48, 0.45);
  box-shadow: var(--shadow-gold);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #1a0f00;
  box-shadow: var(--shadow-gold);
  transition: transform var(--transition), box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(245, 166, 35, 0.5);
}

.btn-gold:active { transform: scale(0.97); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.btn-ghost:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-block { width: 100%; }

.btn-sm {
  padding: 10px 16px;
  font-size: 13px;
}

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-xs { font-size: 11px; }
.text-secondary { color: var(--text-secondary); }

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0 16px;
  margin-bottom: 14px;
  transition: var(--transition);
}

.search-bar:focus-within {
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.search-bar .search-icon {
  font-size: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  padding: 13px 0;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
}

.search-bar input::placeholder { color: var(--text-muted); }
.search-bar input:focus { outline: none; }

.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #1a0f00;
  box-shadow: var(--shadow-gold);
}

/* ── Safe Area (PWA) ─────────────────────────────────────── */
@supports (padding-top: env(safe-area-inset-top)) {
  .app-page-header,
  .app-header,
  .page-hero-head {
    padding-top: max(14px, env(safe-area-inset-top));
  }

  .bnav {
    bottom: var(--nav-float-gap);
  }
}

/* ═══════════════════════════════════════════════════════════
   SPLASH / LOGIN LANDING (index.php)
═══════════════════════════════════════════════════════════ */
.splash-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

/* All direct children constrained to 430px */
.splash-screen > * {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  box-sizing: border-box;
}

.splash-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.splash-orb-1 {
  width: 280px; height: 280px;
  background: rgba(89, 28, 220, 0.38);
  top: -80px; left: -80px;
  animation: orbFloat 6s ease-in-out infinite;
}
.splash-orb-2 {
  width: 180px; height: 180px;
  background: rgba(245, 166, 35, 0.20);
  bottom: 100px; right: -50px;
  animation: orbFloat 8s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-24px) scale(1.04); }
}

.splash-logo {
  margin-bottom: 20px;
  text-align: center;
}

.app-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.app-logo--splash {
  width: min(80vw, 280px);
  max-height: 80px;
  margin: 0 auto 4px;
}
.app-logo--header { height: 38px; width: auto; max-width: 200px; }
.app-logo--top    { height: 30px; width: auto; max-width: 170px; }
.app-logo--admin  { height: 42px; width: auto; max-width: 220px; }

.splash-slogan {
  font-size: clamp(14px, 3.8vw, 17px);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 8px;
  line-height: 1.4;
}

.splash-desc {
  font-size: clamp(13px, 3.5vw, 15px);
  color: var(--text-secondary);
  margin-top: 10px;
  line-height: 1.6;
  padding: 0 4px;
}

/* 3-step grid — always 3 equal columns */
.splash-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
  width: 100%;
}

.splash-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-sizing: border-box;
  min-width: 0;
}

.splash-step-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.splash-step p {
  font-size: clamp(9px, 2.5vw, 11px);
  color: var(--text-secondary);
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
  margin: 0;
}

.splash-brand {
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 900;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  margin-top: 14px;
}

.splash-logo-circle {
  width: 90px; height: 90px;
  background: linear-gradient(135deg, var(--purple-light), var(--purple-dark));
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  font-size: 46px;
  margin: 0 auto;
  box-shadow: 0 0 0 1px var(--border), 0 0 50px var(--purple-glow);
}
