@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --bg-root: #050810;
  --bg-elevated: #0c1220;
  --bg-panel: #111a2e;
  --bg-card: #151d32;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f6fb;
  --text-muted: #9aa4bf;
  --accent-a: #e91e8c;
  --accent-b: #6c3fc5;
  --gradient: linear-gradient(135deg, var(--accent-a) 0%, var(--accent-b) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(233, 30, 140, 0.22) 0%, rgba(108, 63, 197, 0.22) 100%);
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-sm: 12px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --topbar-h: 64px;
  --touch-min: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(108, 63, 197, 0.18), transparent),
    radial-gradient(900px 500px at 100% 0%, rgba(233, 30, 140, 0.12), transparent),
    var(--bg-root);
}

a {
  color: #c4b5fd;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ——— Top bar ——— */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--topbar-h);
  background: rgba(8, 12, 22, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.topbar-inner {
  max-width: 1600px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.topbar__burger {
  display: none;
  width: var(--touch-min);
  height: var(--touch-min);
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}
.topbar__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  position: relative;
}
.topbar__burger span::before,
.topbar__burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text);
}
.topbar__burger span::before {
  top: -7px;
}
.topbar__burger span::after {
  top: 7px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  min-height: var(--touch-min);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.topbar-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.net-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.net-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}
.net-status.is-online .net-status__dot {
  background: var(--success);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
}
.net-status.is-offline .net-status__dot {
  background: var(--danger);
}

.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 0, 0, 0.55);
}
.drawer-backdrop.is-open {
  display: block;
}

@media (max-width: 1023px) {
  .topbar__burger {
    display: inline-flex;
  }
  .nav-links {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: auto;
    width: min(300px, 88vw);
    bottom: 0;
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 8px;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    z-index: 999;
    overflow-y: auto;
  }
  .nav-links.is-open {
    transform: translateX(0);
  }
  .nav-links a {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
  }
}

/* ——— Main shell ——— */
.main-wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: calc(var(--topbar-h) + 20px) 16px 32px;
}

.footer {
  text-align: center;
  padding: 20px 16px 28px;
  color: var(--text-muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
  background: rgba(5, 8, 16, 0.6);
}

.text-muted,
.muted {
  color: var(--text-muted);
}

/* ——— Admin layout ——— */
.admin-shell {
  max-width: 1600px;
  margin: 0 auto;
  padding: calc(var(--topbar-h) + 16px) 16px 40px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  box-shadow: var(--shadow-sm);
  padding: 16px 12px;
}

.admin-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-sidebar__link {
  display: flex;
  align-items: center;
  min-height: var(--touch-min);
  padding: 0 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.admin-sidebar__link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-decoration: none;
}
.admin-sidebar__link--accent {
  margin-top: 8px;
  border-color: rgba(233, 30, 140, 0.35);
  background: var(--gradient-soft);
  color: var(--text);
}

.admin-main {
  min-width: 0;
}

@media (max-width: 1023px) {
  .admin-shell {
    grid-template-columns: 1fr;
    padding-top: calc(var(--topbar-h) + 12px);
  }
  .admin-sidebar {
    position: relative;
    top: auto;
  }
}

/* ——— Cards & stacks ——— */
.stack {
  display: flex;
  flex-direction: column;
}
.gap-sm {
  gap: 8px;
}
.gap-md {
  gap: 14px;
}
.gap-lg {
  gap: 20px;
}

.card-pro {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(21, 29, 50, 0.95), rgba(12, 18, 32, 0.98));
  box-shadow: var(--shadow-sm);
  padding: 20px;
}
.card-pro__title {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.page-hero {
  margin-bottom: 20px;
}
.page-hero h1 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}
.page-hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ——— Buttons ——— */
.btn,
button.btn {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 8px 28px rgba(233, 30, 140, 0.35);
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-gradient:hover {
  filter: brightness(1.06);
  text-decoration: none;
  color: #fff;
}
.btn-gradient:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-ghost-pro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  text-decoration: none;
  cursor: pointer;
}
.btn-ghost-pro:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: var(--text);
}

.btn-green-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  color: #041208;
  background: linear-gradient(135deg, #4ade80, var(--success));
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.35);
}
.btn-green-pay:hover {
  filter: brightness(1.05);
}
.btn-green-pay:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-sm-pro {
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.85rem;
  border-radius: 10px;
}

.btn-danger-pro {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

/* ——— Forms ——— */
.form-grid {
  display: grid;
  gap: 12px;
}
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.input-pro {
  width: 100%;
  min-height: var(--touch-min);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.input-pro:focus {
  outline: none;
  border-color: rgba(233, 30, 140, 0.55);
  box-shadow: 0 0 0 3px rgba(108, 63, 197, 0.25);
}
.input-pro--sm {
  min-height: 40px;
  font-size: 0.85rem;
}

textarea.input-pro {
  min-height: 100px;
  resize: vertical;
}

select.input-pro {
  cursor: pointer;
}

.link-muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ——— Tables ——— */
.table-pro {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table-pro th,
.table-pro td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.table-pro th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table-assign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.table-assign {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.table-assign__no {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ——— Stats (rapor) ——— */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.stat-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px;
  background: var(--gradient-soft);
  box-shadow: var(--shadow-sm);
}
.stat-card__k {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-card__v {
  font-size: 1.45rem;
  font-weight: 700;
  margin-top: 6px;
}

/* ——— Auth ——— */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: min(420px, 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
  padding: 32px 28px;
}
.auth-card h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}
.auth-card .lead {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.auth-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gradient);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
}

/* ——— Salon layout ——— */
.salon-app {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr minmax(200px, 280px);
  gap: 18px;
  align-items: stretch;
  min-height: calc(100vh - var(--topbar-h) - 80px);
}

.salon-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.salon-left__scroll {
  flex: 1;
  min-height: 200px;
  max-height: calc(100vh - var(--topbar-h) - 100px);
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 12px;
}

.open-bill {
  display: block;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.12s;
}
.open-bill:hover {
  border-color: rgba(233, 30, 140, 0.45);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}
.open-bill__tables {
  font-weight: 600;
  font-size: 0.95rem;
}
.open-bill__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.open-bill__amt {
  margin-top: 8px;
  font-weight: 700;
  font-size: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.salon-center {
  min-width: 0;
}

.salon-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  align-items: center;
}

.tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
}

.table-card {
  position: relative;
  min-height: 110px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 14px 12px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition: transform 0.12s, box-shadow 0.15s;
}
.table-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}

.table-card--empty {
  background: linear-gradient(180deg, #1a2235, #121a2a);
  border-color: rgba(255, 255, 255, 0.06);
}
.table-card--busy {
  border: none;
  background: var(--gradient);
  box-shadow: 0 14px 40px rgba(233, 30, 140, 0.35);
  color: #fff;
}
.table-card--busy .table-card__sub,
.table-card--busy .table-card__meta {
  color: rgba(255, 255, 255, 0.88);
}

.table-card__name {
  font-weight: 700;
  font-size: 1.05rem;
}
.table-card__sub {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.table-card__meta {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.table-card__amt {
  margin-top: 8px;
  font-weight: 800;
  font-size: 1.1rem;
}

.salon-ciro-panel {
  min-width: 0;
  display: flex;
  align-items: stretch;
}

.salon-ciro-card {
  flex: 1;
  border-radius: var(--radius);
  border: 1px solid rgba(233, 30, 140, 0.35);
  background: var(--gradient-soft);
  box-shadow: var(--shadow);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  min-height: 200px;
}
.salon-ciro-card__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.salon-ciro-card__value {
  margin-top: 12px;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.salon-ciro-card__date {
  margin-top: 14px;
  font-size: 0.88rem;
}

@media (max-width: 1199px) {
  .salon-app {
    grid-template-columns: minmax(220px, 280px) 1fr minmax(160px, 220px);
  }
}

@media (max-width: 1023px) {
  .salon-app {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .salon-ciro-panel {
    order: -1;
  }
  .salon-ciro-card {
    min-height: auto;
    padding: 18px 16px;
  }
  .salon-left {
    display: none;
  }
  .salon-left.is-open {
    display: flex;
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    bottom: 0;
    width: min(320px, 90vw);
    z-index: 999;
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    padding: 16px;
    box-shadow: var(--shadow);
  }
}

/* ——— Adisyon (3 kolon, tam yükseklik) ——— */
body.page-adisyon {
  overflow: hidden;
  height: 100vh;
}
body.page-adisyon .footer {
  display: none;
}
body.page-adisyon .main-wrap {
  max-width: none;
  margin: 0;
  padding: calc(var(--topbar-h) + 6px) 10px 10px;
  height: calc(100vh - var(--topbar-h));
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.adisyon-app {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 25%) minmax(0, 57%) minmax(0, 18%);
  gap: 10px;
  align-items: stretch;
  overflow: hidden;
}

.adisyon-cart-wrap {
  display: flex;
  gap: 0;
  min-width: 0;
  min-height: 0;
  height: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.adisyon-iconbar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 8px;
  border-right: 1px solid var(--border);
  background: var(--bg-elevated);
  flex-shrink: 0;
}
.adisyon-iconbar a,
.adisyon-iconbar button {
  width: var(--touch-min);
  height: var(--touch-min);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  font-family: inherit;
}
.adisyon-iconbar a:hover,
.adisyon-iconbar button:hover {
  border-color: rgba(233, 30, 140, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.adisyon-cart {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.adisyon-cart__head {
  flex-shrink: 0;
  margin-bottom: 8px;
}
.adisyon-cart__head h2 {
  margin: 0;
  font-size: 1.02rem;
}
.adisyon-cart__head .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.adisyon-cart__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}

.adisyon-lines {
  margin: 0;
  padding: 0 0 6px;
}

body.page-adisyon .table-pro--adisyon {
  table-layout: fixed;
  width: 100%;
  max-width: 100%;
  font-size: 0.8rem;
}
body.page-adisyon .table-pro--adisyon col.table-pro--adisyon__col-name {
  width: 45%;
}
body.page-adisyon .table-pro--adisyon col.table-pro--adisyon__col-qty {
  width: 25%;
}
body.page-adisyon .table-pro--adisyon col.table-pro--adisyon__col-amt {
  width: 30%;
}
body.page-adisyon .table-pro--adisyon col.table-pro--adisyon__col-act {
  width: 0;
}
body.page-adisyon .table-pro--adisyon th,
body.page-adisyon .table-pro--adisyon td {
  padding: 8px 4px;
  vertical-align: middle;
  box-sizing: border-box;
}
body.page-adisyon .table-pro--adisyon th:nth-child(1),
body.page-adisyon .table-pro--adisyon td.adisyon-line-row__name {
  text-align: left;
  min-width: 0;
  overflow: hidden;
}
body.page-adisyon .table-pro--adisyon td.adisyon-line-row__name {
  vertical-align: top;
}
body.page-adisyon .table-pro--adisyon th:nth-child(2),
body.page-adisyon .table-pro--adisyon td.adisyon-line-row__qty,
body.page-adisyon .table-pro--adisyon .table-pro--adisyon__qty {
  text-align: center;
}
body.page-adisyon .table-pro--adisyon th:nth-child(3),
body.page-adisyon .table-pro--adisyon td.adisyon-line-row__line,
body.page-adisyon .table-pro--adisyon .table-pro--adisyon__amt {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
}
body.page-adisyon .table-pro--adisyon th:nth-child(4),
body.page-adisyon .table-pro--adisyon td.adisyon-line-row__del,
body.page-adisyon .table-pro--adisyon .table-pro--adisyon__act {
  width: 1%;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
  padding-left: 2px;
  padding-right: 2px;
}
body.page-adisyon .adisyon-line-name {
  font-weight: 600;
  line-height: 1.28;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
body.page-adisyon .adisyon-line-row__name .form-row {
  flex-wrap: wrap;
  gap: 6px;
}
body.page-adisyon .adisyon-line-qty {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
  margin: 0 auto;
}
body.page-adisyon .adisyon-line-qty form {
  flex-shrink: 0;
  margin: 0;
}
body.page-adisyon .adisyon-line-qty .btn-sm-pro {
  min-width: 28px;
  min-height: 28px;
  padding: 0 6px;
  font-size: 0.95rem;
  line-height: 1;
}
body.page-adisyon .adisyon-line-qty span {
  min-width: 1.1rem;
  text-align: center;
  font-weight: 700;
  flex-shrink: 0;
}

body.page-adisyon .adisyon-line-del-form {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
body.page-adisyon .adisyon-line-del-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
body.page-adisyon .adisyon-line-del-btn:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(248, 113, 113, 0.65);
  color: #fecaca;
}

.adisyon-discount {
  margin-top: 10px;
  padding: 12px !important;
}
.adisyon-discount .card-pro__title {
  margin-bottom: 8px;
}

.adisyon-note-form {
  margin-top: 12px;
}

.adisyon-cart__footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

body.page-adisyon .adisyon-cart__footer .totals-box {
  margin-top: 0;
  padding-top: 8px;
  border-top: none;
}

.adisyon-products {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  box-shadow: var(--shadow-sm);
}

.adisyon-products__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.adisyon-products__empty {
  padding: 12px 4px;
  margin: 0;
  font-size: 0.88rem;
}

body.page-adisyon .adisyon-app .product-grid-pro {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  justify-content: start;
  align-content: start;
}

body.page-adisyon .adisyon-app .product-card-pro {
  box-sizing: border-box;
  width: 100%;
  max-width: 180px;
  min-width: 160px;
  min-height: 200px;
  height: 200px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  border: 1px solid #2a2a4a;
  background: #1a1a2e;
  padding: 8px 8px 10px;
  text-align: center;
  font: inherit;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  overflow: hidden;
}
.product-card-pro--simple {
  cursor: pointer;
}
.product-card-pro--variants {
  cursor: default;
}
body.page-adisyon .adisyon-app .product-card-pro--simple:hover,
body.page-adisyon .adisyon-app .product-card-pro--variants:hover {
  border-color: rgba(233, 30, 140, 0.45);
  box-shadow: 0 0 0 1px rgba(233, 30, 140, 0.2), 0 8px 28px rgba(233, 30, 140, 0.18);
  transform: translateY(-1px);
}
.product-card-pro__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elevated);
  margin-bottom: 6px;
  flex-shrink: 0;
}
body.page-adisyon .adisyon-app .product-card-pro__media {
  width: 120px;
  height: 120px;
  max-width: 120px;
  max-height: 120px;
  margin: 0 auto 6px;
  border-radius: 10px;
  flex-shrink: 0;
}
body.page-adisyon .adisyon-app .product-card-pro--variants .product-card-pro__media {
  margin-left: auto;
  margin-right: auto;
}
.product-card-pro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.page-adisyon .adisyon-app .product-card-pro__media img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.product-card-pro__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-pro__media--empty::after {
  content: "";
  width: 46%;
  height: 46%;
  opacity: 0.45;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa4bf' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10.5' r='1.5'/%3E%3Cpath d='M21 15l-4-4-6 6'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
body.page-adisyon .adisyon-app .product-card-pro .name {
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.22;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-align: center;
}
body.page-adisyon .adisyon-app .product-card-pro .price {
  margin-top: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.2;
  flex-shrink: 0;
  text-align: center;
}
body.page-adisyon .adisyon-app .product-card-pro__var-btn {
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(233, 30, 140, 0.45);
  background: var(--gradient-soft);
  color: var(--text);
  font-weight: 600;
  font-size: 0.68rem;
  cursor: pointer;
  font-family: inherit;
}
body.page-adisyon .adisyon-app .product-card-pro__var-btn:hover {
  border-color: rgba(233, 30, 140, 0.65);
  background: rgba(255, 255, 255, 0.08);
}

.adisyon-add-form-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.variant-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}
@media (min-width: 720px) {
  .variant-modal {
    align-items: center;
    padding-bottom: 16px;
  }
}
.variant-modal[hidden] {
  display: none !important;
}
.variant-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}
.variant-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: min(70vh, 520px);
  overflow: auto;
  margin-bottom: 8px;
  animation: variant-pop 0.18s ease-out;
}
@keyframes variant-pop {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.variant-modal__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.variant-pick-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: var(--touch-min);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.variant-pick-btn:hover {
  border-color: rgba(233, 30, 140, 0.55);
  background: var(--gradient-soft);
}

.meal-pay-modal .meal-pay-modal__panel {
  background: linear-gradient(180deg, #16162a 0%, #12121f 100%);
  border: 1px solid #2a2a4a;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}
.meal-pay-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.meal-pay-brand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #2a2a4a;
  background: #1a1a2e;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.meal-pay-brand-btn:hover {
  border-color: rgba(233, 30, 140, 0.55);
  background: rgba(233, 30, 140, 0.12);
  box-shadow: 0 0 18px rgba(233, 30, 140, 0.22);
}

.variant-row-pro {
  display: grid;
  grid-template-columns: 1fr 120px 42px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
@media (max-width: 520px) {
  .variant-row-pro {
    grid-template-columns: 1fr 1fr;
  }
  .variant-row-pro [data-variant-rm] {
    grid-column: 1 / -1;
    justify-self: end;
    min-width: 44px;
  }
}

.adisyon-cats {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 10px 8px 10px 10px;
  box-shadow: var(--shadow-sm);
}
.adisyon-cats h3 {
  flex-shrink: 0;
  margin: 0 0 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 8px;
}
.adisyon-cats__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.cat-vertical {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.page-adisyon .cat-vertical a {
  display: flex;
  align-items: center;
  min-height: var(--touch-min);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 18px;
  text-decoration: none;
  border: 1px solid transparent;
}
.cat-vertical a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}
.cat-vertical a.is-active {
  background: var(--gradient-soft);
  border-color: rgba(233, 30, 140, 0.35);
  color: var(--text);
}

.totals-box {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}
.totals-box .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.totals-box .row--grand {
  margin-top: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.pay-box {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

/* ——— Alerts ——— */
.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin: 10px 0;
  font-size: 0.92rem;
}
.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
}
.alert-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

/* ——— Receipt ——— */
.receipt {
  max-width: 380px;
  margin: 0 auto;
  background: #fff;
  color: #111;
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid #e5e5e5;
}
.receipt h2 {
  color: #111;
}
.receipt .small {
  font-size: 0.85rem;
  color: #444;
}


@media (max-width: 767px) {
  body.page-adisyon .adisyon-app {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(200px, 32vh) minmax(0, 1fr) minmax(100px, 22vh);
    gap: 8px;
  }
  body.page-adisyon .adisyon-cart-wrap {
    min-height: 0;
  }
  body.page-adisyon .adisyon-products {
    min-height: 0;
  }
  body.page-adisyon .adisyon-cats {
    min-height: 0;
    max-height: none;
  }
  body.page-adisyon .adisyon-cats__scroll {
    max-height: 100%;
  }
  body.page-adisyon .cat-vertical {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
  }
  body.page-adisyon .adisyon-cats h3 {
    width: 100%;
    flex-shrink: 0;
  }
  body.page-adisyon .cat-vertical a {
    flex: 1 1 auto;
    min-width: min(140px, 44vw);
  }
}

.salon-toolbar .btn-salon-drawer {
  display: none;
}
@media (max-width: 1023px) {
  .salon-toolbar .btn-salon-drawer {
    display: inline-flex;
  }
}

@media print {
  .no-print,
  .topbar,
  .footer,
  .topbar__burger,
  .nav-links,
  .adisyon-iconbar,
  .drawer-backdrop {
    display: none !important;
  }
  body.print-receipt,
  body.print-receipt * {
    visibility: visible;
  }
  body.print-receipt {
    background: #fff !important;
  }
  .main-wrap {
    padding: 0 !important;
    max-width: none !important;
  }
  .receipt-print-area {
    box-shadow: none !important;
  }
  .adisyon-print-area,
  .adisyon-print-area * {
    visibility: visible;
  }
  body.adisyon-print .adisyon-iconbar,
  body.adisyon-print .adisyon-cats,
  body.adisyon-print .adisyon-products,
  body.adisyon-print .adisyon-discount,
  body.adisyon-print .topbar,
  body.adisyon-print .footer {
    display: none !important;
  }
  body.adisyon-print .adisyon-cart-wrap {
    border: none;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ——— Legacy class bridges (eski PHP sınıfları) ——— */
.panel {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.table-plain {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table-plain th,
.table-plain td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}
.table-plain th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
}
.lines th,
.lines td {
  border-color: var(--border);
}

.grid-tables {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.table-tile {
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  font-weight: 600;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: block;
  min-height: var(--touch-min);
}
.table-tile.bos {
  background: var(--bg-card);
}
.table-tile.dolu {
  background: var(--gradient);
  border: none;
  color: #fff;
}

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.cat-tab {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: none;
}
.cat-tab.active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}

/* Split helper for pages not yet migrated */
.split {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .split-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.page-hero h1 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}
.page-hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.admin-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.admin-tile {
  min-height: 96px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.12s, border-color 0.15s, box-shadow 0.15s;
}
.admin-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(233, 30, 140, 0.45);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  background: var(--gradient-soft);
}
.admin-tile--accent {
  background: var(--gradient);
  color: #fff;
  border: none;
}
.admin-tile--accent:hover {
  color: #fff;
  filter: brightness(1.05);
}

.btn {
  font-family: inherit;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  text-decoration: none;
}
.btn-primary,
.btn.btn-primary {
  background: var(--gradient);
  color: #fff;
}
.btn-ghost,
.btn.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-success,
.btn.btn-success {
  background: linear-gradient(135deg, #4ade80, var(--success));
  color: #041208;
}
.btn-warning,
.btn.btn-warning {
  background: linear-gradient(135deg, #fbbf24, var(--warning));
  color: #1a1204;
}
.btn-danger,
.btn.btn-danger {
  background: rgba(239, 68, 68, 0.25);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.45);
}
.btn-sm {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.85rem;
}
.btn-block {
  width: 100%;
}
