:root {
  --ink: #05070d;
  --ink-2: #0c121c;
  --panel: #101826;
  --panel-2: #172233;
  --line: rgba(214, 236, 255, 0.1);
  --line-strong: rgba(214, 236, 255, 0.18);
  --text: #eef6ff;
  --muted: #93a8c2;
  --faint: #6d819b;
  --lime: #3ad7ff;
  --lime-ink: #041018;
  --glow: rgba(58, 215, 255, 0.16);
  --violet: #7eb6ff;
  --coral: #ff5d73;
  --gold: #e2b657;
  --ok: #3ee0a2;
  --warn: #ffb020;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --header: rgba(5, 7, 13, 0.82);
  --bar: #04060b;
  --card: rgba(12, 18, 28, 0.92);
  --radius: 18px;
  --font: "Manrope", sans-serif;
  --display: "Syne", sans-serif;
  --max: 1180px;
}
html[data-theme="light"] {
  --ink: #f4f8fc;
  --ink-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #e7f0f8;
  --line: rgba(10, 28, 48, 0.1);
  --line-strong: rgba(10, 28, 48, 0.16);
  --text: #0c1828;
  --muted: #4c6078;
  --faint: #6b7f96;
  --lime: #0094d6;
  --lime-ink: #f4fbff;
  --glow: rgba(0, 148, 214, 0.14);
  --shadow: 0 18px 40px rgba(16, 48, 80, 0.08);
  --header: rgba(244, 248, 252, 0.9);
  --bar: #e7f1f8;
  --card: rgba(255, 255, 255, 0.94);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 480px at 0% -10%, var(--glow), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(80, 150, 255, 0.12), transparent 50%),
    var(--ink);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 75%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.topbar {
  background: var(--bar);
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.topbar .wrap, .site-header .wrap, .footer-grid, .section-head, .hero-grid, .split, .admin {
  position: relative;
  z-index: 1;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); background: var(--header); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; }
.mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: transparent;
  flex: none;
}
.mark img { width: 46px; height: 46px; object-fit: contain; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a, .drawer a.nav-link {
  padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px;
}
.nav a.active, .nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 14px; min-width: 240px; }
.search input { background: transparent; border: 0; outline: 0; width: 100%; }
.search button, .icon-btn {
  border: 0; background: var(--lime); color: var(--lime-ink); border-radius: 999px; height: 34px; cursor: pointer; font-weight: 800;
}
.search button { width: auto; padding: 0 12px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-btn {
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  border-radius: 999px; width: 34px; height: 34px; padding: 0; cursor: pointer;
  display: grid; place-items: center; flex: none;
}
.theme-btn svg { width: 16px; height: 16px; display: block; }
.when-light { display: none; }
html[data-theme="light"] .when-dark { display: none; }
html[data-theme="light"] .when-light { display: grid; }
.ghost-link { color: var(--muted); font-weight: 700; font-size: 14px; padding: 8px 10px; }
.cart-pill { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-weight: 700; }
.cart-pill b { background: var(--lime); color: var(--lime-ink); border-radius: 99px; min-width: 22px; text-align: center; font-size: 12px; padding: 2px 6px; }
.menu-btn { display: none; background: transparent; color: var(--text); border: 1px solid var(--line); width: 34px; height: 34px; border-radius: 999px; cursor: pointer; }

.hero { padding: 54px 0 20px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 42px; align-items: center; }
.kicker { display: inline-flex; gap: 8px; align-items: center; color: var(--lime); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; }
.kicker i { width: 8px; height: 8px; border-radius: 99px; background: var(--lime); display: block; }
h1, h2, h3, .display { font-family: var(--display); letter-spacing: -0.045em; margin: 0; }
.display { font-size: clamp(46px, 6vw, 78px); line-height: 0.92; font-weight: 800; max-width: 11ch; }
.lede { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 46ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 18px; border: 1px solid transparent; font-weight: 800; cursor: pointer; }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-line { border-color: var(--line-strong); background: transparent; color: var(--text); }
.btn-coral { background: var(--coral); color: white; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.stats { display: flex; gap: 22px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.stats b { display: block; font-family: var(--display); font-size: 22px; }
.stats span { color: var(--faint); font-size: 13px; }

.dossier {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 30%), var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}
.dossier header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pill { border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 800; background: var(--glow); color: var(--lime); }
.cover {
  border-radius: 20px; min-height: 210px; display: grid; align-content: end; padding: 18px;
  background:
    radial-gradient(300px 160px at 80% 20%, rgba(58, 215, 255, 0.35), transparent 60%),
    linear-gradient(160deg, #222636, #101218 70%);
  position: relative; overflow: hidden;
}
.cover.coral { background: radial-gradient(280px 160px at 80% 10%, rgba(255,93,115,0.45), transparent 60%), linear-gradient(160deg, #2a1a22, #120e12 70%); }
.cover.gold { background: radial-gradient(280px 160px at 80% 10%, rgba(226,182,87,0.4), transparent 60%), linear-gradient(160deg, #2a2416, #12110e 70%); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .rank { position: relative; z-index: 1; font-family: var(--display); font-size: 34px; line-height: 1; }
.meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; align-items: end; }
.meta p { margin: 4px 0 0; color: var(--muted); }
.price { font-family: var(--display); font-size: 28px; letter-spacing: -0.04em; }

.section { padding: 34px 0; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 16px; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tile {
  min-height: 230px; border-radius: 28px; padding: 22px; border: 1px solid var(--line);
  background: var(--ink-2); display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.tile::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -40px; top: -50px; background: var(--accent, var(--lime)); opacity: 0.18; filter: blur(8px); }
.tile svg { width: 42px; height: 42px; }
.tile strong { font-family: var(--display); font-size: 36px; letter-spacing: -0.05em; display: block; }
.tile span { color: var(--muted); display: block; margin-top: 8px; max-width: 42ch; line-height: 1.45; }

.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.product-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; min-height: 100%; transition: transform .2s ease, border-color .2s ease; }
.product-card:hover { transform: translateY(-4px); border-color: var(--lime); }
.product-card .cover { min-height: 150px; border-radius: 0; }
.product-card .body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.eyebrow { color: var(--faint); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.product-card h3 { font-size: 20px; line-height: 1.15; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; }
.product-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }

.slider-section { padding-top: 22px; padding-bottom: 8px; }
.slider { position: relative; height: 460px; border-radius: 28px; overflow: hidden; background: #101218; border: 1px solid var(--line); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.slide.is-on { opacity: 1; pointer-events: auto; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 28px 28px 26px;
  background: linear-gradient(transparent, rgba(5, 6, 10, 0.55) 28%, rgba(5, 6, 10, 0.88));
}
.slide-copy h2 { font-size: clamp(28px, 4vw, 46px); max-width: 16ch; margin: 8px 0; color: #f4f8ff; }
.slide-copy p { margin: 0 0 14px; color: #d7e4f2; max-width: 42ch; }
.slide-copy .kicker { color: #7ee7ff; }
.slider-btn {
  position: absolute; top: 16px; z-index: 3; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(8, 9, 14, 0.72); color: white; cursor: pointer; font-size: 22px;
}
.slider-btn.prev { right: 64px; }
.slider-btn.next { right: 16px; }
.slider-dots { position: absolute; right: 116px; top: 26px; z-index: 3; display: flex; gap: 8px; }
.slider-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.slider-dots button.is-on { width: 22px; background: var(--lime); }
.slide.coral, .slide.gold, .slide.violet, .slide.lime { background: #14161c; }
.banner { border-radius: 24px; padding: 22px; border: 1px solid var(--line); background: var(--panel); }
.banner.coral { background: linear-gradient(135deg, rgba(255,93,115,0.18), transparent 55%), var(--panel); }
.banner.gold { background: linear-gradient(135deg, rgba(226,182,87,0.18), transparent 55%), var(--panel); }
.banner.violet { background: linear-gradient(135deg, rgba(155,140,255,0.2), transparent 55%), var(--panel); }
.banner h3 { font-size: 30px; max-width: 16ch; margin: 8px 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { padding: 18px; border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line); }
.step em { font-family: var(--display); font-style: normal; color: var(--lime); font-size: 22px; }
.step p { color: var(--muted); line-height: 1.5; }

.site-footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 34px 0 24px; background: var(--bar); }
.footer-grid { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 22px; }
.site-footer a { display: block; color: var(--muted); padding: 4px 0; }
.site-footer a:hover { color: var(--text); }
.fine { color: var(--faint); font-size: 13px; margin-top: 22px; }

.page-hero { padding: 36px 0 10px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); }
.toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 8px 0 16px; color: var(--muted); }
select, input, textarea {
  background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px;
}
textarea { width: 100%; min-height: 140px; resize: vertical; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack { display: grid; gap: 12px; }

.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 22px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 18px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.spec { background: var(--ink); border-radius: 14px; padding: 10px 12px; }
.spec span { display: block; color: var(--faint); font-size: 12px; }
.prose { color: var(--muted); line-height: 1.7; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; color: var(--faint); font-weight: 700; }
.table th, .table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.qty { width: 72px; }
.flash { width: min(var(--max), calc(100% - 40px)); margin: 14px auto 0; padding: 12px 14px; border-radius: 14px; background: rgba(62,224,162,0.12); color: var(--ok); position: relative; z-index: 2; }
.flash.warn { background: rgba(255,176,32,0.12); color: var(--warn); }
.status { font-size: 12px; font-weight: 800; border-radius: 99px; padding: 4px 8px; background: rgba(255,255,255,0.06); }
.status.teslim { color: var(--ok); }
.status.iptal { color: var(--coral); }
.status.hazirlaniyor { color: var(--gold); }
.empty { padding: 28px; border: 1px dashed var(--line-strong); border-radius: 20px; color: var(--muted); }
.auth { width: min(460px, calc(100% - 40px)); margin: 40px auto 60px; }
.note { font-size: 13px; color: var(--faint); }

.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { padding: 22px 16px; border-right: 1px solid var(--line); background: var(--bar); position: sticky; top: 0; height: 100vh; }
.side nav { display: grid; gap: 4px; margin-top: 22px; }
.side a { padding: 10px 12px; border-radius: 12px; color: var(--muted); font-weight: 700; }
.side a.active, .side a:hover { background: var(--glow); color: var(--lime); }
.admin-main { padding: 28px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.stat { background: var(--panel); border-radius: 18px; padding: 16px; border: 1px solid var(--line); }
.stat b { font-family: var(--display); font-size: 28px; display: block; }
.check { display: flex; align-items: center; gap: 8px; }
.admin table a { color: var(--lime); }

.drawer { display: none; }

@media (max-width: 980px) {
  .hero-grid, .tiles, .banners, .steps, .split, .footer-grid, .grid-products, .stat-grid, .form-grid { grid-template-columns: 1fr 1fr; }
  .grid-products { grid-template-columns: 1fr 1fr; }
  .footer-grid, .steps, .stat-grid { grid-template-columns: 1fr 1fr; }
  .search { display: none; }
  .nav { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .admin { grid-template-columns: 1fr; }
  .side { position: relative; height: auto; }
  body.nav-open .drawer { display: grid; gap: 6px; padding: 8px 20px 16px; background: var(--bar); }
}
@media (max-width: 680px) {
  .hero-grid, .tiles, .banners, .steps, .split, .footer-grid, .grid-products, .stat-grid, .form-grid, .spec-grid { grid-template-columns: 1fr; }
  .display { max-width: none; }
  .topbar .wrap { display: none; }
  .wrap, .footer-grid, .flash { width: min(var(--max), calc(100% - 28px)); }
  .slider { height: 320px; }
  .slide-copy { padding: 18px 16px 36px; }
}

.boot {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: var(--ink);
}
.boot-mark { position: relative; width: 168px; height: 168px; display: grid; place-items: center; }
.boot img { width: 150px; height: 150px; object-fit: contain; }
.boot-ring {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid rgba(58, 215, 255, 0.2);
  border-top-color: var(--lime);
  animation: boot-spin 0.9s linear infinite;
}
.boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s ease, visibility .35s; }
@keyframes boot-spin { to { transform: rotate(360deg); } }
html[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(10, 28, 48, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 28, 48, 0.045) 1px, transparent 1px);
}
html[data-theme="light"] .nav a.active,
html[data-theme="light"] .nav a:hover { background: rgba(10, 28, 48, 0.06); }
html[data-theme="light"] .status { background: rgba(10, 28, 48, 0.06); }
