:root {
  --radius-control: var(--lidia-radius-control, 10px);
  font-family: var(--font-body, 'Instrument Sans', system-ui, sans-serif);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  z-index: -1;
}
a { color: var(--text); }
h1, h2, h3 {
  font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
  line-height: 1.12;
  letter-spacing: -.025em;
  margin: 0 0 .55rem;
}
h1 {
  font-size: clamp(1.6rem, 2.7vw, 2.25rem);
  font-weight: 750;
}
h2 {
  font-size: 1.2rem;
  font-weight: 700;
}
h3 {
  font: 650 .72rem/1.3 var(--font-body, sans-serif);
  color: var(--muted);
  letter-spacing: .11em;
  text-transform: uppercase;
  margin-top: 1.5rem;
}
p {
  margin: 0 0 .8rem;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: .84rem;
}
.wrap {
  width: min(100% - 32px, 1200px);
  margin: 0 auto;
  padding: 32px 0 72px;
}
.wrap.narrow {
  max-width: 560px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 12px max(20px, calc((100% - 1200px) / 2));
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--line);
}
.logo {
  color: var(--text);
  font: 800 1.35rem/1 var(--font-display, sans-serif);
  letter-spacing: -.05em;
  text-decoration: none;
}
.logo .lidia-wordmark { color: var(--text); }
.logo .muted {
  color: var(--muted);
  font: 600 .76rem/1 var(--font-body, sans-serif);
  letter-spacing: .02em;
  margin-left: 6px;
}
.topbar .row {
  justify-content: flex-end;
}
.product-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.product-nav a {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
  text-decoration: none;
}
.product-nav a:hover, .product-nav a[aria-current="page"] {
  color: var(--text);
}
.demo-strip {
  padding: 6px 16px;
  background: var(--surface);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .03em;
  text-align: center;
}
.demo-badge {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.card {
  margin: 0 0 16px;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card > :last-child {
  margin-bottom: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.row.between {
  justify-content: space-between;
}
.stack > * + * {
  margin-top: 10px;
}
.center {
  text-align: center;
}
.hidden {
  display: none !important;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 14px;
}
.section-head h2 {
  margin: 0;
}
button, .btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  padding: 10px 15px;
  min-height: 44px;
  background: var(--brand);
  color: var(--brand-ink);
  font: 650 .9rem/1.2 var(--font-body, sans-serif);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
button:hover:not(:disabled), .btn:hover {
  background: color-mix(in srgb, var(--brand) 87%, white);
}
button:active:not(:disabled), .btn:active {
  transform: translateY(1px);
}
button:focus-visible, .btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
button:disabled {
  cursor: not-allowed;
  opacity: .48;
}
button.secondary, .btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
button.secondary:hover:not(:disabled), .btn.secondary:hover {
  background: var(--surface-2);
  border-color: var(--muted);
}
button.danger {
  background: var(--err);
  color: var(--brand-ink);
}
button.block, .btn.block {
  width: 100%;
}
button.link {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--brand);
}
button.link:hover:not(:disabled) {
  background: transparent;
  text-decoration: underline;
}
.option {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
  text-align: left;
  white-space: normal;
}
.option.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
}
label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 650;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 11px 12px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  transition: border-color .2s ease, background .2s ease;
}
input:hover, select:hover, textarea:hover {
  border-color: color-mix(in srgb, var(--muted) 60%, var(--line));
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  outline: none;
}
input::placeholder, textarea::placeholder {
  color: var(--muted);
  opacity: .78;
}
input[type=checkbox], input[type=radio] {
  width: auto;
  accent-color: var(--brand);
}
textarea {
  min-height: 90px;
  resize: vertical;
}
.field {
  margin-bottom: 14px;
}
.fields-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tabs {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
  padding: 0 2px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 2px 10px;
  margin-bottom: 0;
  background: transparent;
  color: var(--muted);
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}
.tabs button:hover:not(:disabled) {
  color: var(--text);
  background: transparent;
}
.tabs button.active {
  background: transparent;
  color: var(--text);
  border-bottom-color: var(--brand);
}
.tabs button:focus-visible { outline-offset: -4px; }
.tabs .count {
  min-width: 18px;
  padding: 1px 5px;
  margin-left: 4px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--text);
  font-size: .7rem;
  line-height: 18px;
}
.tabs .count:empty {
  display: none;
}
.notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: .88rem;
}
.panel-login-demo {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.code-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pill {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.pill.warn {
  background: color-mix(in srgb, var(--warn) 16%, transparent);
  color: var(--warn);
}
.pill.err {
  background: color-mix(in srgb, var(--err) 16%, transparent);
  color: var(--err);
}
.pill.muted {
  background: var(--surface-2);
  color: var(--muted);
}
.reward {
  color: var(--brand);
  font-weight: 700;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 4px;
}
.kpis-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.kpi, .stat, .stat-xl, .pkg-price, .big {
  font-family: var(--font-display, sans-serif);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
}
.kpi {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 750;
}
.stat {
  font-size: 1.7rem;
  font-weight: 750;
}
.stat-xl {
  font-size: 2.6rem;
  font-weight: 750;
  line-height: 1.1;
}
.stat-label, .kpi-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.3;
}
.meter {
  height: 7px;
  margin-top: 16px;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: 4px;
}
.meter > div {
  height: 100%;
  background: var(--brand);
  border-radius: inherit;
  transition: width .35s ease;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .86rem;
}
th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
tr:last-child td {
  border-bottom: 0;
}
th {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
td.num, th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
code {
  color: var(--brand);
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 700;
  letter-spacing: .12em;
}
details.fold {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
details.fold > summary {
  padding: 4px 0;
  color: var(--muted);
  cursor: pointer;
  font-weight: 650;
}
details.fold > summary:hover {
  color: var(--text);
}
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pkg {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 158px;
  padding: 16px;
  margin: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.pkg:hover {
  border-color: var(--muted);
}
.pkg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pkg:has(input:checked) {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.pkg:has(input:focus-visible) {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.pkg-name {
  color: var(--text);
  font: 700 1.02rem var(--font-display, sans-serif);
}
.pkg-price {
  font-size: 1.5rem;
  font-weight: 750;
}
.pkg.featured {
  border-color: var(--brand);
}
.result {
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.empty {
  padding: 24px 0;
  color: var(--muted);
  text-align: center;
}
.list {
  display: flex;
  flex-direction: column;
}
.item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
}
.item:last-child {
  border-bottom: 0;
}
.item-main {
  flex: 1;
  min-width: 0;
}
.item-title {
  overflow: hidden;
  color: var(--text);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-sub {
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: .8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-side {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.item-btn {
  padding: 7px 12px;
  font-size: .82rem;
}
.code {
  padding: 14px;
  background: var(--surface-2);
  border: 1px dashed var(--brand);
  border-radius: 10px;
  font: 800 2rem ui-monospace, monospace;
  letter-spacing: .2em;
  text-align: center;
}
.coupon {
  margin: 8px 0 12px;
  padding: 12px;
  border: 1px dashed var(--brand);
  border-radius: 12px;
}
.coupon .code {
  padding: 8px 0;
  border: 0;
  background: transparent;
}
.scanner {
  position: relative;
  margin-top: 10px;
  overflow: hidden;
  background: #050505;
  border-radius: 12px;
}
.scanner video {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.scan-frame {
  position: absolute;
  inset: 18%;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 12px;
  pointer-events: none;
}
.scanner button {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
}
.map {
  height: 220px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.ad-stage {
  position: relative;
  width: min(100%, calc(80svh * 9 / 16));
  aspect-ratio: 9 / 16;
  margin: 0 auto 12px;
  overflow: hidden;
  background: #050505;
  border-radius: 16px;
}
.ad-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ad-progress {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 4px;
  overflow: hidden;
  background: rgba(255,255,255,.3);
  border-radius: 3px;
}
.ad-progress > div {
  height: 100%;
  background: var(--brand);
}
.ad-sound {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 10px;
  padding: 6px 10px;
  background: rgba(0,0,0,.45);
  color: #fff;
  border-radius: 6px;
  font-size: .8rem;
}
.ad-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 56px 16px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  color: #fff;
}
.ad-caption h2 {
  color: #fff;
}
#toast {
  position: fixed;
  z-index: 20;
  bottom: 24px;
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 11px 16px;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
#toast.show {
  opacity: 1;
}
#toast.err {
  background: var(--err);
  color: var(--brand-ink);
}
.nearby {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 4px;
  background: var(--brand-soft);
  border: 0;
  border-radius: 8px;
  color: var(--brand);
  text-align: left;
}
.segmented {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  margin: 10px 0 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.segmented button {
  padding: 6px 12px;
  background: transparent;
  border: 0;
  color: var(--muted);
}
.segmented button.active {
  background: var(--brand);
  color: var(--brand-ink);
}
.bottom-nav {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border-top: 1px solid var(--line);
}
.bottom-nav button {
  flex: 1;
  max-width: 120px;
  padding: 6px 4px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: .72rem;
}
.bottom-nav button.active {
  color: var(--brand);
}
body.app {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 4px;
  background: var(--brand);
  border-radius: 50%;
  vertical-align: middle;
}
.print-only {
  display: none;
}
form.row input {
  min-width: 0;
  flex: 1 1 auto;
}
form.row button {
  flex: 0 0 auto;
}
section[data-tab-panel="till"] {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
  gap: 16px;
  align-items: start;
}
section[data-tab-panel="till"] > .card:first-child {
  max-width: none !important;
}
section[data-tab-panel="till"] > .card:nth-child(2) {
  height: 100%;
}
section[data-tab-panel="till"].hidden {
  display: none !important;
}
@media (max-width: 767px) { .wrap { width: min(100% - 24px, 640px); padding-top: 22px; }
.topbar {
  min-height: 60px;
  padding: 10px 12px;
}
.topbar .small.muted {
  display: none;
}
.product-nav {
  order: 3;
  width: 100%;
  justify-content: center;
  gap: 10px;
  margin: 2px 0 0;
}
.topbar {
  flex-wrap: wrap;
}
.topbar > .row, .topbar > .demo-badge, .topbar > button {
  margin-left: auto;
}
.grid, .fields-2, .pkg-grid, section[data-tab-panel="till"] {
  grid-template-columns: 1fr;
}
.kpis, .kpis-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
}
.kpi {
  font-size: 1.35rem;
}
.card {
  padding: 18px;
  border-radius: 16px;
}
.row.between {
  align-items: flex-start;
}
th, td {
  padding: 10px 11px;
}
.table-scroll {
  margin-inline: -2px;
}
}
@media (max-width: 400px) { .wrap { width: min(100% - 20px, 640px); }
.card {
  padding: 15px;
}
.kpis {
  gap: 14px 8px;
}
.kpi-label {
  font-size: .68rem;
}
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print { :root { color-scheme: light; --bg: #fff; --surface: #fff; --surface-2: #f6f7f5; --text: #161b18; --muted: #536057; --line: #d6ddd8; --brand: #c41d23; --brand-ink: #fff; }
body {
  background: #fff;
}
body::before {
  display: none;
}
.topbar button, .no-print, .demo-strip {
  display: none !important;
}
.print-only {
  display: block;
}
.card {
  break-inside: avoid;
  box-shadow: none;
}
}

/* İşletme başvurusu */
.wrap.narrow-form { max-width: 760px; }
.pick-map { height: 280px; border-radius: var(--lidia-radius-panel, 20px); border: 1px solid var(--line); overflow: hidden; margin: 6px 0 8px; z-index: 0; }
.otp-row { display: flex; align-items: flex-end; }
.check-row { gap: 10px; align-items: flex-start; margin: 6px 0 14px; font-weight: 400; }
.check-row input { width: auto; margin-top: 3px; }
.application { display: grid; gap: 6px; }
.application dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 6px 0 10px; font-size: .88rem; }
.application dt { color: var(--muted); }
.application dd { margin: 0; overflow-wrap: anywhere; }

/* Reklam videosu yükleme ve onayda önizleme (dikey) */
.video-field input[type=file] { padding: 10px; }
.video-field .meter { margin: 8px 0; }
.video-preview { display: block; width: min(220px, 60vw); aspect-ratio: 9 / 16; object-fit: cover; background: #000; border-radius: var(--lidia-radius-control, 10px); margin: 8px 0; }

/* İşletme paneli (public/isletme.html): mobildeki işletme uygulamasıyla aynı düzen. */
.pill.ok {
  background: color-mix(in srgb, var(--ok) 16%, transparent);
  color: var(--ok);
}
.biz-badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: var(--lidia-radius-small);
  background: var(--lidia-accent);
  color: var(--lidia-on-accent);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  vertical-align: middle;
}
.biz-tabs { border-bottom: 2px solid var(--lidia-accent); margin-bottom: 16px; }
.wallet-hero { border: 1px solid var(--lidia-accent); }
.wallet-label { color: var(--lidia-accent); font-weight: 700; font-size: .9rem; }
.wallet-amount { font-family: var(--font-display, 'Bricolage Grotesque', sans-serif); font-weight: 750; font-size: clamp(2.2rem, 7vw, 3rem); line-height: 1.15; margin: 4px 0 8px; }
.biz-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.biz-actions > * { flex: 1 1 180px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { padding: 16px; border-radius: var(--lidia-radius-panel); background: var(--surface); border: 1px solid var(--line); }
.stat-value { font-family: var(--font-display, 'Bricolage Grotesque', sans-serif); font-weight: 750; font-size: 1.9rem; line-height: 1.2; }
.stat-label { color: var(--muted); font-size: .85rem; }
.stat-note { color: var(--muted); font-size: .75rem; margin-top: 2px; }
.till-qr { max-width: 280px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 8px; }
.till-code { font-size: 2rem; font-weight: 800; letter-spacing: .3em; }
.till-done { border: 2px solid var(--ok); text-align: left; }
.seg { display: flex; gap: 4px; margin: 0 0 18px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; }
.seg > * { flex: 1; display: grid; place-items: center; min-height: 42px; color: var(--muted); font-weight: 650; text-decoration: none; border-radius: 10px; }
.seg > .on { color: var(--lidia-on-accent); background: var(--accent); }
