/* Coupon Rasul — front-end styles */

:root {
  --ink-950: #0a0b0d;
  --ink-900: #101216;
  --ink-850: #15181e;
  --ink-800: #1b1f27;
  --line: #262b34;
  --line-soft: #1f242c;
  --neon: #ccf23a;
  --neon-bright: #dcff62;
  --neon-dim: rgba(204, 242, 58, 0.12);
  --text: #f2f5f8;
  --muted: #93a0b1;
  --muted-dim: #6b7686;
  --danger: #f4685e;
  --radius: 14px;
  --radius-lg: 20px;
  --shell: 1240px;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 .5em;
}

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 20px; }

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--neon); color: #0b0c0e; padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 11, 13, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-row {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--neon); color: #0b0c0e;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.1; }
.brand-tag { font-size: 11.5px; color: var(--muted-dim); }

.search-form { flex: 1; min-width: 0; position: relative; }
.search-form input {
  width: 100%; padding: 12px 16px 12px 42px;
  background: var(--ink-850); border: 1px solid var(--line);
  border-radius: 12px; color: var(--text); font: inherit; font-size: 14.5px;
}
.search-form input::placeholder { color: var(--muted-dim); }
.search-form input:focus { border-color: var(--neon); outline: none; }
.search-form .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted-dim); pointer-events: none; font-size: 15px;
}

.region-select {
  display: flex; align-items: center; gap: 8px;
  background: var(--ink-850); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px; color: var(--text);
  font: inherit; font-size: 14px; cursor: pointer;
}

.main-nav { display: flex; gap: 22px; align-items: center; }
.main-nav a {
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.is-active { color: var(--neon); border-bottom-color: var(--neon); }

.nav-toggle {
  display: none; background: var(--ink-850); border: 1px solid var(--line);
  color: var(--text); border-radius: 10px; padding: 9px 12px; cursor: pointer; font-size: 16px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px;
  cursor: pointer; transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-neon { background: var(--neon); color: #0b0c0e; }
.btn-neon:hover { background: var(--neon-bright); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ---------- Hero slider ---------- */

.hero { padding: 26px 0 8px; }
.hero-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--ink-900);
  min-height: 460px;
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .55s ease;
  display: flex; align-items: center;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,9,11,.95) 0%, rgba(8,9,11,.82) 45%, rgba(8,9,11,.35) 100%);
}
.hero-body { position: relative; padding: 56px; max-width: 640px; }
.eyebrow {
  display: inline-block; background: var(--neon); color: #0b0c0e;
  font-family: var(--font-display); font-weight: 700; font-size: 11.5px;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 8px; margin-bottom: 20px;
}
.hero-title { font-size: clamp(2.3rem, 5.2vw, 4rem); margin-bottom: 16px; }
.hero-text { color: #cbd5e1; font-size: 17px; max-width: 470px; margin: 0 0 28px; }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(20, 22, 27, .82); border: 1px solid var(--line);
  color: var(--text); display: grid; place-items: center; cursor: pointer; font-size: 17px;
}
.hero-arrow:hover { border-color: var(--neon); color: var(--neon); }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }

.hero-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
}
.hero-dots button {
  width: 9px; height: 9px; padding: 0; border-radius: 999px; border: none;
  background: #4a525f; cursor: pointer; transition: width .25s, background .25s;
}
.hero-dots button.is-active { width: 34px; background: var(--neon); }

/* ---------- Section headers ---------- */

.section { padding: 46px 0; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 26px; flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0;
  display: flex; align-items: center; gap: 12px;
}
.section-head h2 .spark { color: var(--neon); font-size: .85em; }
.section-link { color: var(--neon); font-weight: 600; font-size: 14.5px; }
.section-link:hover { color: var(--neon-bright); }
.section-sub { color: var(--muted); margin: -14px 0 26px; max-width: 620px; }

/* ---------- Deal cards ---------- */

.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}

.deal-card {
  background: var(--ink-850); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .18s ease, transform .18s ease;
}
.deal-card:hover { border-color: rgba(204,242,58,.45); transform: translateY(-3px); }

.deal-top { display: flex; align-items: flex-start; gap: 12px; }
.store-logo {
  width: 48px; height: 48px; border-radius: 11px; flex-shrink: 0;
  background: var(--ink-800); border: 1px solid var(--line-soft);
  object-fit: cover;
}
.store-logo.placeholder {
  display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 700; color: var(--neon); font-size: 16px;
}
.deal-store { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; }
.deal-cat { font-size: 12.5px; color: var(--muted-dim); }
.discount-badge {
  margin-left: auto; flex-shrink: 0;
  background: var(--neon-dim); color: var(--neon);
  border: 1px solid rgba(204,242,58,.3);
  border-radius: 999px; padding: 8px 13px;
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
  text-align: center; line-height: 1.2;
}

.deal-title { font-size: 16.5px; margin: 0; }
.deal-desc { color: var(--muted); font-size: 13.8px; margin: 0; }

.countdown { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.countdown .unit {
  background: var(--ink-800); border: 1px solid var(--line-soft);
  border-radius: 6px; padding: 3px 7px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12.5px; color: var(--neon); font-weight: 600;
}
.countdown.is-over .unit { color: var(--muted-dim); }

.deal-actions { display: flex; gap: 10px; margin-top: auto; }
.code-box {
  flex: 1; border: 1px dashed rgba(204,242,58,.45); border-radius: 10px;
  background: rgba(204,242,58,.05); color: var(--neon);
  font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; font-weight: 600;
  padding: 11px 8px; text-align: center; cursor: pointer; letter-spacing: .06em;
}
.code-box:hover { background: rgba(204,242,58,.12); }
.code-box.copied { border-style: solid; }

.verified-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--neon); font-weight: 600;
}

/* ---------- Carousel rail ---------- */

.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(268px, 1fr);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.rail-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(20,22,27,.94); border: 1px solid var(--line);
  color: var(--text); cursor: pointer; display: grid; place-items: center;
}
.rail-btn:hover { border-color: var(--neon); color: var(--neon); }
.rail-btn.prev { left: -14px; }
.rail-btn.next { right: -14px; }

/* ---------- Store & category tiles ---------- */

.store-tile {
  background: var(--ink-850); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-align: center; transition: border-color .18s, transform .18s;
}
.store-tile:hover { border-color: rgba(204,242,58,.45); transform: translateY(-3px); }
.store-tile .store-logo { width: 62px; height: 62px; margin: 0 auto 12px; }
.store-tile h3 { font-size: 15.5px; margin: 0 0 4px; }
.store-tile p { color: var(--muted-dim); font-size: 12.5px; margin: 0; }

.cat-tile {
  display: flex; align-items: center; gap: 13px;
  background: var(--ink-850); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
  transition: border-color .18s, transform .18s;
}
.cat-tile:hover { border-color: rgba(204,242,58,.45); transform: translateY(-2px); }
.cat-icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--neon-dim);
  display: grid; place-items: center; font-size: 19px; flex-shrink: 0;
}
.cat-tile h3 { margin: 0; font-size: 15px; }
.cat-tile span { font-size: 12.5px; color: var(--muted-dim); }

/* ---------- Blog ---------- */

.post-card {
  background: var(--ink-850); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: border-color .18s, transform .18s;
}
.post-card:hover { border-color: rgba(204,242,58,.45); transform: translateY(-3px); }
.post-card .thumb { aspect-ratio: 16/9; background: var(--ink-800); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 18px; display: flex; flex-direction: column; gap: 9px; }
.post-card h3 { margin: 0; font-size: 17px; }
.post-card p { margin: 0; color: var(--muted); font-size: 13.8px; }
.post-meta { font-size: 12.5px; color: var(--muted-dim); }

/* ---------- Article / page content ---------- */

.prose { max-width: 760px; color: #d5dde6; font-size: 16.5px; }
.prose h2 { font-size: 1.7rem; margin: 1.8em 0 .5em; }
.prose h3 { font-size: 1.3rem; margin: 1.6em 0 .4em; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--neon); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.prose blockquote {
  margin: 1.4em 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--neon); color: var(--muted);
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--ink-850); }

.page-head { padding: 46px 0 10px; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.page-head p { color: var(--muted); max-width: 640px; font-size: 16px; }

.breadcrumb { font-size: 13px; color: var(--muted-dim); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--neon); }

/* ---------- Filters ---------- */

.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: 16px 0 26px;
}
.chip {
  border: 1px solid var(--line); background: var(--ink-850); color: var(--muted);
  border-radius: 999px; padding: 8px 15px; font-size: 13.5px; cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--muted-dim); }
.chip.is-active { background: var(--neon); color: #0b0c0e; border-color: var(--neon); font-weight: 600; }

/* ---------- Empty state ---------- */

.empty {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 48px 24px; text-align: center; color: var(--muted);
}
.empty h3 { color: var(--text); }

/* ---------- Newsletter + footer ---------- */

.newsletter { border-top: 1px solid var(--line-soft); padding: 52px 0; text-align: center; }
.newsletter .icon {
  width: 50px; height: 50px; border-radius: 50%; background: var(--neon-dim);
  display: grid; place-items: center; margin: 0 auto 16px; font-size: 21px;
}
.newsletter h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.newsletter p { color: var(--muted); margin: 0 auto 24px; max-width: 460px; }
.newsletter form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.newsletter input {
  flex: 1; padding: 12px 16px; background: var(--ink-850);
  border: 1px solid var(--line); border-radius: 12px; color: var(--text); font: inherit;
}
.newsletter input:focus { border-color: var(--neon); outline: none; }

.site-footer { background: #08090b; border-top: 1px solid var(--line-soft); margin-top: 40px; }
.footer-grid {
  display: grid; gap: 32px; padding: 48px 0;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.footer-grid h4 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text); margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a, .footer-grid li { color: var(--muted); font-size: 14px; }
.footer-grid a:hover { color: var(--neon); }
.footer-about { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.footer-bottom {
  border-top: 1px solid var(--line-soft); padding: 20px 0;
  text-align: center; color: var(--muted-dim); font-size: 13px;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--neon); color: #0b0c0e; font-weight: 600; font-size: 14px;
  padding: 12px 20px; border-radius: 12px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 90;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .main-nav { gap: 16px; }
  .brand-tag { display: none; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; margin-left: auto; }
  .header-row { flex-wrap: wrap; }
  .search-form { order: 3; flex-basis: 100%; }
  .region-select { order: 4; }
  .main-nav {
    order: 5; flex-basis: 100%; flex-direction: column; align-items: flex-start;
    gap: 2px; padding: 8px 0 4px; display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
  .main-nav a.is-active { border-bottom-color: var(--neon); }
  .hero-body { padding: 34px 24px; }
  .hero-frame { min-height: 400px; }
  .rail-btn { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .grid { grid-template-columns: 1fr; }
  .newsletter form { flex-direction: column; }
  .hero-arrow { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
