:root {
  color-scheme: light;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Yüzeyler */
  --bg: #fffdfa;
  --bg-soft: #f8f2ea;
  --surface: #ffffff;
  --surface-2: #fff8f1;
  --surface-translucent: rgba(255, 255, 255, 0.74);
  --topbar-bg: rgba(255, 253, 250, 0.84);
  --mark-bg: #ffffff;

  /* Metin */
  --ink: #17120f;
  --ink-hover: #3a2c22;
  --on-ink: #fffaf6;
  --on-ink-soft: rgba(255, 255, 255, 0.2);
  --muted: #7c6d62;
  --placeholder: #8d7e72;

  /* Çizgiler */
  --line: #f1e6da;
  --line-strong: #e3d5c6;
  --line-hover: #d2bea8;

  /* Vurgu */
  --accent: #ff3f1f;
  --accent-deep: #d92f0d;
  --accent-2: #ff8a3d;
  --accent-soft: rgba(255, 63, 31, 0.08);
  --accent-soft-strong: rgba(255, 63, 31, 0.15);
  --code-border: rgba(255, 63, 31, 0.42);
  --gradient: linear-gradient(135deg, #ff9a3d 0%, #ff3f1f 58%, #ff2d55 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255, 154, 61, 0.16), rgba(255, 45, 85, 0.12));
  --green: #0b8f5f;
  --green-soft: rgba(11, 143, 95, 0.12);

  /* İndirim rozeti (beyaz yazı okunur kalsın) */
  --discount-bg: linear-gradient(135deg, #f2601f 0%, #c31f07 100%);
  --discount-ink: #ffffff;

  /* Ortam ışıkları */
  --ambient-1: radial-gradient(62% 44% at 16% -8%, rgba(255, 138, 61, 0.24), transparent 70%);
  --ambient-2: radial-gradient(48% 38% at 95% 2%, rgba(255, 45, 85, 0.15), transparent 72%);
  --ambient-3: radial-gradient(46% 40% at 52% 108%, rgba(96, 125, 255, 0.12), transparent 72%);

  /* Alt bilgi / bildirim */
  --footer-bg: #1a1310;
  --footer-ink: #e6dbd2;
  --footer-strong: #fffaf6;
  --footer-muted: #a89a90;
  --toast-bg: rgba(22, 17, 14, 0.95);
  --toast-ink: #fffaf6;

  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(60, 32, 12, 0.05);
  --shadow-md: 0 12px 30px rgba(74, 38, 12, 0.08);
  --shadow-lg: 0 24px 54px rgba(74, 38, 12, 0.14);
  --page: 1180px;
}

/* Açık tema seçildiğinde tarayıcının zorunlu karanlık modu devreye girmesin. */
html[data-theme="light"] {
  color-scheme: only light;
}

html[data-theme="dark"] {
  color-scheme: dark;

  --bg: #100d16;
  --bg-soft: #1a1622;
  --surface: #191420;
  --surface-2: #221b2b;
  --surface-translucent: rgba(25, 20, 32, 0.74);
  --topbar-bg: rgba(16, 13, 22, 0.84);
  --mark-bg: #f7f4ff;

  --ink: #f7f2ff;
  --ink-hover: #ffffff;
  --on-ink: #120e18;
  --on-ink-soft: rgba(18, 14, 24, 0.18);
  --muted: #a69cb8;
  --placeholder: #9a90ad;

  --line: #2a2235;
  --line-strong: #3a3048;
  --line-hover: #4f4263;

  --accent: #ff6b4a;
  --accent-deep: #ff9179;
  --accent-2: #ffb066;
  --accent-soft: rgba(255, 107, 74, 0.13);
  --accent-soft-strong: rgba(255, 107, 74, 0.22);
  --code-border: rgba(255, 107, 74, 0.46);
  --gradient: linear-gradient(135deg, #ffb066 0%, #ff6b4a 55%, #ff4d8d 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255, 176, 102, 0.18), rgba(255, 77, 141, 0.14));
  --green: #38d39f;
  --green-soft: rgba(56, 211, 159, 0.15);

  --discount-bg: linear-gradient(135deg, #ffc287 0%, #ff7a52 100%);
  --discount-ink: #24110a;

  --ambient-1: radial-gradient(62% 44% at 16% -8%, rgba(255, 138, 61, 0.2), transparent 70%);
  --ambient-2: radial-gradient(48% 38% at 95% 2%, rgba(255, 77, 141, 0.16), transparent 72%);
  --ambient-3: radial-gradient(46% 40% at 52% 108%, rgba(110, 130, 255, 0.18), transparent 72%);

  --footer-bg: #0a0810;
  --footer-ink: #d2c9df;
  --footer-strong: #ffffff;
  --footer-muted: #8f85a3;
  --toast-bg: rgba(26, 21, 34, 0.96);
  --toast-ink: #fffaf6;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--ambient-1), var(--ambient-2), var(--ambient-3);
  transition: background 0.4s ease;
}

img,
svg {
  display: block;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--topbar-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  width: min(var(--page), calc(100% - 48px));
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 77, 46, 0.28);
}

.brand-mark svg {
  width: 19px;
  height: 19px;
}

.brand-name,
.footer-brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand-dot {
  color: var(--accent);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.topbar-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}

.topbar-link:hover {
  color: var(--ink);
}

/* ---------- Tema düğmesi ---------- */

.theme-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.theme-toggle:hover {
  border-color: var(--line-hover);
  transform: translateY(-1px);
}

.theme-toggle:active {
  transform: scale(0.96);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

/* ---------- Hero ---------- */

main {
  width: min(var(--page), calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  padding: 66px 0 36px;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.15rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.03;
}

.accent-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin-top: 20px;
  max-width: 540px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--muted);
}

.search {
  position: relative;
  margin-top: 30px;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-md);
}

.search-icon {
  width: 19px;
  height: 19px;
  margin-left: 18px;
  color: var(--muted);
  flex-shrink: 0;
}

.search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 17px 12px;
  font-size: 15.5px;
}

.search input::placeholder {
  color: var(--placeholder);
}

.search input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  width: 30px;
  height: 30px;
  margin-right: 12px;
  border: none;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.search-clear:hover {
  background: var(--line);
  color: var(--ink);
}

.stats {
  display: flex;
  gap: 44px;
  margin-top: 34px;
}

.stat dt {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.stat dd {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Notice ---------- */

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 26px;
  padding: 15px 17px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  background: var(--accent-soft);
}

.notice-icon {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  color: var(--accent-deep);
}

.notice-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.notice-text {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.notice-text strong {
  color: var(--ink);
  font-weight: 650;
}

/* ---------- Filters ---------- */

.filters {
  padding-top: 6px;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 550;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.chip:hover {
  border-color: var(--line-hover);
  color: var(--ink);
}

.chip:active {
  transform: scale(0.97);
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}

.chip-count {
  font-size: 11.5px;
  font-weight: 650;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.chip[aria-pressed="true"] .chip-count {
  background: var(--on-ink-soft);
  color: var(--on-ink);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-bottom: 16px;
}

.result-count {
  font-size: 13.5px;
  color: var(--muted);
}

.result-count strong {
  color: var(--ink);
  font-weight: 650;
}

.selects {
  display: flex;
  gap: 10px;
}

.select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 12px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

.select span {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.select select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  font-weight: 550;
  padding-right: 18px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%237a6d63' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 10px;
}

/* ---------- Coupon grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}

.grid[hidden] {
  display: none;
}

.coupon {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  animation: rise 0.42s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 22ms);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.coupon:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.coupon-body {
  padding: 20px 20px 18px;
}

.coupon-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.store {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.store-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: color-mix(in srgb, var(--c, #7a6d63) 13%, var(--surface));
  color: var(--c, #7a6d63);
}

.store-mark.has-logo {
  background: var(--mark-bg);
  border: 1px solid color-mix(in srgb, var(--c, #7a6d63) 14%, var(--mark-bg));
  padding: 4px;
}

/* Logo, rozet kutusunun dışına asla taşmaz */
.store-mark img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.store-name {
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-cat {
  font-size: 11.5px;
  color: var(--muted);
}

.discount {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--discount-bg);
  color: var(--discount-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255, 77, 46, 0.24);
}

.coupon h3 {
  margin: 15px 0 6px;
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.coupon-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  min-height: 40px;
}

.coupon-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 13px;
  font-size: 11.5px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 6px;
  font-weight: 600;
}

.badge-min {
  background: var(--bg-soft);
  color: var(--muted);
}

.timer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--muted);
}

.timer::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.timer.is-urgent {
  color: var(--accent-deep);
}

.timer.is-urgent::before {
  background: var(--accent);
  opacity: 1;
  animation: pulse 1.6s ease-in-out infinite;
}

/* Ticket cut-out divider */

.coupon-foot {
  position: relative;
  margin-top: auto;
  padding: 14px 20px 18px;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  gap: 8px;
}

.coupon-foot::before,
.coupon-foot::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
}

.coupon-foot::before {
  left: -11px;
  clip-path: inset(0 0 0 50%);
}

.coupon-foot::after {
  right: -11px;
  clip-path: inset(0 50% 0 0);
}

.code-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px dashed var(--code-border);
  border-radius: 11px;
  background: var(--accent-soft);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.code-btn:hover {
  background: var(--accent-soft-strong);
  border-color: var(--accent);
}

.code-btn:active {
  transform: scale(0.985);
}

.code-btn:focus-visible,
.go-btn:focus-visible,
.chip:focus-visible,
.btn-reset:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.code-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent-deep);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.code-action svg {
  width: 12px;
  height: 12px;
}

.code-btn.is-copied {
  background: var(--green-soft);
  border-color: var(--green);
}

.code-btn.is-copied .code-value,
.code-btn.is-copied .code-action {
  color: var(--green);
}

.go-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  color: var(--on-ink);
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.go-btn:hover {
  background: var(--ink-hover);
  transform: translateY(-1px);
}

.go-btn svg {
  width: 15px;
  height: 15px;
}

/* ---------- Empty / error ---------- */

.empty,
.load-error {
  text-align: center;
  padding: 64px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-translucent);
}

.empty-title {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.empty-text {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
}

.btn-reset {
  margin-top: 18px;
  padding: 9px 18px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-reset:hover {
  background: var(--ink-hover);
}

/* ---------- How it works ---------- */

.how {
  margin: 72px 0 0;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.how h2 {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.how-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 26px;
}

.how-list li {
  display: flex;
  gap: 14px;
}

.how-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}

.how-list h3 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.how-list p {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.footer {
  margin-top: 80px;
  background: var(--footer-bg);
  color: var(--footer-ink);
  transition: background-color 0.25s ease;
}

.footer-inner {
  width: min(var(--page), calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  color: var(--footer-strong);
}

.footer-note {
  margin-top: 8px;
  max-width: 440px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--footer-muted);
}

.footer-meta {
  font-size: 12.5px;
  color: var(--footer-muted);
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--toast-bg);
  color: var(--toast-ink);
  font-size: 13px;
  font-weight: 550;
  box-shadow: 0 10px 30px rgba(23, 17, 14, 0.28);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .how-list {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 640px) {
  .topbar-inner,
  main,
  .footer-inner {
    width: calc(100% - 32px);
  }

  .topbar-inner {
    height: 62px;
  }

  .topbar-link {
    display: none;
  }

  .hero {
    padding: 42px 0 28px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 9vw, 2.7rem);
  }

  .lead {
    font-size: 15px;
  }

  .stats {
    gap: 30px;
    margin-top: 26px;
  }

  .stat dd {
    font-size: 22px;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .selects {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .select {
    justify-content: space-between;
  }

  .select select {
    flex: 1;
    min-width: 0;
    text-align: left;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .coupon-desc {
    min-height: 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 22px;
    padding: 36px 0 32px;
  }

  .footer-meta {
    text-align: left;
  }
}

/* ---------- Canlılık dokunuşları ---------- */

.search {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.stat dd {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.chip[aria-pressed="true"] {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 63, 31, 0.24);
}

.chip[aria-pressed="true"] .chip-count {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.notice {
  background: var(--gradient-soft);
  border-left-color: var(--accent);
}

.coupon:hover {
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent-soft-strong);
}

/* ---------- Klavye erişimi ve okunabilirlik ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 60;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 13px;
  font-weight: 600;
  transform: translate(-50%, -180%);
  transition: transform 0.18s ease;
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline-offset: 3px;
}

/* Tüm etkileşimli öğelerde görünür klavye odağı */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.search input:focus-visible,
.mini-search input:focus-visible {
  outline: none;
}

.select:focus-within,
.mini-search-inner:focus-within {
  border-color: var(--accent);
}

/* ---------- Yükleniyor iskeleti ---------- */

.skeleton-grid {
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}

.sk-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.sk-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sk {
  position: relative;
  display: block;
  height: 10px;
  border-radius: 6px;
  background: var(--bg-soft);
  overflow: hidden;
}

.sk::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--surface), transparent);
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

.sk-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
}

.sk-pill {
  width: 62px;
  height: 26px;
  margin-left: auto;
  border-radius: 10px;
  flex-shrink: 0;
}

.sk-row .sk-line {
  flex: 0 0 auto;
}

/* ---------- Acil kupon vurgusu (6 saatten az) ---------- */

.coupon.is-urgent {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 0 0 1px var(--accent-soft-strong), var(--shadow-sm);
}

.coupon.is-urgent:hover {
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent);
}

.timer[data-until] {
  letter-spacing: -0.01em;
}

/* ---------- Yapışkan mini arama ---------- */

.mini-search {
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  z-index: 19;
  display: none;
  padding: 8px 16px 10px;
  background: var(--topbar-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-115%);
  transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s;
}

.mini-search.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mini-search-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mini-search-inner:focus-within {
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.mini-search-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--muted);
}

.mini-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 4px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
}

.mini-search-clear {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Mobil: dokunma hedefleri ve mini arama ---------- */

@media (max-width: 640px) {
  .mini-search {
    display: block;
  }

  .chip {
    min-height: 44px;
    padding: 11px 16px;
    font-size: 14px;
  }

  .chip-count {
    font-size: 12px;
  }

  .search input {
    /* 16px altındaki yazı iOS'ta odaklanınca sayfayı büyütür */
    font-size: 16px;
    padding: 18px 12px;
  }

  .search-clear {
    width: 40px;
    height: 40px;
    font-size: 21px;
  }

  .select {
    min-height: 46px;
  }

  .select select {
    font-size: 15px;
  }

  .code-btn {
    min-height: 48px;
    padding: 12px;
  }

  .code-value {
    font-size: 13.5px;
  }

  .code-action {
    font-size: 11.5px;
  }

  .go-btn,
  .theme-toggle {
    width: 44px;
    height: 44px;
  }

  .mini-search-clear {
    width: 36px;
    height: 36px;
  }

  .btn-reset {
    min-height: 44px;
    padding: 11px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
