/* =========================================================
   FoodName — "Mutfak Fişi" Design System
   Palette: ink charcoal page, receipt-paper cards, stamp-red accent
   Type: Fraunces (display) / IBM Plex Mono (data) / Inter (UI)
   ========================================================= */

:root{
  --ink:        #14110D;
  --ink-soft:   #201B14;
  --paper:      #F6F1E2;
  --paper-dim:  #EAE2CC;
  --line:       #D8CCA8;
  --stamp-red:  #C1272D;
  --stamp-red-dark: #921E23;
  --mint:       #3B7A57;
  --brass:      #C68A2E;
  --ink-70:     rgba(20,17,13,.7);
  --ink-45:     rgba(20,17,13,.45);
  --paper-70:   rgba(246,241,226,.7);

  --font-display: 'Fraunces', Georgia, serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --font-ui: 'Inter', system-ui, sans-serif;

  --radius: 3px;
}

*{ box-sizing: border-box; }

html,body{
  margin:0; padding:0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  min-height: 100vh;
}

body{
  background-image:
    radial-gradient(circle at 15% 10%, rgba(198,138,46,.08), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(59,122,87,.07), transparent 45%);
}

a{ color: inherit; }

.hidden{ display:none !important; }

/* ---------- Shell / topbar ---------- */
.app-shell{ max-width: 1240px; margin: 0 auto; padding: 24px 20px 60px; }

.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding-bottom: 18px; margin-bottom: 28px;
  border-bottom: 1px solid rgba(246,241,226,.16);
}

.brand{ display:flex; align-items:center; gap:12px; }
.brand-mark{
  width:40px; height:40px; border-radius:50%;
  background: var(--stamp-red);
  color: var(--paper);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-mono); font-weight:600; font-size:14px;
  letter-spacing: .5px;
  box-shadow: 0 0 0 3px rgba(193,39,45,.18);
}
.brand-text{ display:flex; flex-direction:column; line-height:1.15; }
.brand-title{ font-family: var(--font-display); font-weight:600; font-size:22px; }
.brand-sub{ font-family: var(--font-mono); font-size:11px; letter-spacing:.12em; text-transform:uppercase; color: var(--paper-70); }

.topnav{ display:flex; gap:6px; }
.nav-link{
  text-decoration:none;
  font-family: var(--font-mono); font-size:12.5px; letter-spacing:.06em; text-transform:uppercase;
  padding:9px 16px; border-radius: 999px;
  color: var(--paper-70);
  border: 1px solid transparent;
  transition: all .15s ease;
}
.nav-link:hover{ color: var(--paper); border-color: rgba(246,241,226,.25); }
.nav-link.active{ background: var(--paper); color: var(--ink); }

.user-box{ display:flex; align-items:center; gap:10px; margin-left:14px; }
.current-user-label{ font-family: var(--font-mono); font-size:12px; color: var(--paper-70); }
.small-btn{ padding: 6px 14px; font-size:12.5px; }
.user-box .ghost-btn{
  background: transparent; color: var(--paper); border-color: rgba(246,241,226,.35);
}
.user-box .ghost-btn:hover{ background: rgba(246,241,226,.08); border-color: rgba(246,241,226,.6); }

/* GENEL KURAL: .panel her zaman koyu zemin kullanıyor (var(--ink-soft)) —
   bu yüzden içindeki HERHANGİ bir ghost-btn (tablo hücreleri dahil, örn.
   "Cihazlar" butonu) otomatik olarak açık renkli olsun. Bundan sonra yeni
   eklenen panellerde aynı sorun tekrar yaşanmayacak. */
.panel .ghost-btn{
  background: transparent; color: var(--paper); border-color: rgba(246,241,226,.35);
}
.panel .ghost-btn:hover{ background: rgba(246,241,226,.08); border-color: rgba(246,241,226,.6); }

/* ---------- Layout ---------- */
.layout{
  display:grid;
  grid-template-columns: 1.35fr .9fr;
  gap: 26px;
  align-items:start;
}
@media (max-width: 880px){
  .layout{ grid-template-columns: 1fr; }
}

.slot-label{
  font-family: var(--font-mono); font-size:11px; letter-spacing:.14em;
  text-transform:uppercase; color: var(--brass);
}
.slot-label.small{ display:block; margin: 16px 0 8px; color: var(--paper-70); }

/* ---------- Search slot ---------- */
.search-slot{
  background: var(--ink-soft);
  border: 1px solid rgba(246,241,226,.14);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  position: relative;
  margin-bottom: 22px;
}
.search-slot input{
  width:100%; margin-top:10px;
  background: transparent;
  border: none; border-bottom: 2px dashed rgba(246,241,226,.3);
  color: var(--paper);
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
  padding: 8px 2px 12px;
  outline: none;
}
.search-slot input::placeholder{ color: rgba(246,241,226,.35); font-family: var(--font-ui); font-size:16px; }
.search-slot input:focus{ border-bottom-color: var(--stamp-red); }

.suggestions{
  list-style:none; margin: 8px 0 0; padding:0;
  max-height: 320px; overflow-y:auto;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
}
.suggestions li{
  padding: 11px 16px;
  font-family: var(--font-mono); font-size: 14px;
  cursor:pointer;
  border-bottom: 1px solid var(--line);
  display:flex; justify-content:space-between; gap:10px;
}
.suggestions li:last-child{ border-bottom:none; }
.suggestions li:hover, .suggestions li.active{ background: var(--paper-dim); }
.suggestions li .sub{ color: var(--ink-45); font-family: var(--font-ui); font-size:12.5px; }

/* ---------- Ticket card ---------- */
.ticket{
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  position: relative;
}
.ticket-perf{
  height: 14px;
  background-image: radial-gradient(circle at 12px 50%, var(--ink) 6px, transparent 7px);
  background-size: 24px 14px;
  background-repeat: repeat-x;
}
.ticket-body{ padding: 8px 30px 30px; }

.ticket-row.ticket-code{
  display:flex; align-items:center; justify-content:space-between;
  font-family: var(--font-mono); font-size:13px; color: var(--ink-45);
  padding: 10px 0 6px;
}
.stamp-btn{
  border: 1px solid var(--line); background: transparent;
  border-radius: 50%; width:34px; height:34px; cursor:pointer;
  font-size: 15px;
}
.stamp-btn:hover{ background: var(--paper-dim); }

.ticket-title{
  font-family: var(--font-display); font-weight:700; font-size: 40px;
  margin: 4px 0 22px; line-height:1.05;
  border-bottom: 3px solid var(--stamp-red);
  padding-bottom: 14px;
}

.lang-grid{ display:flex; flex-direction:column; gap:12px; margin-bottom: 22px; }
.lang-row{
  display:grid; grid-template-columns: 38px 1fr;
  align-items:baseline; gap: 12px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
}
.lang-code{
  font-family: var(--font-mono); font-weight:600; font-size:11px;
  color: var(--stamp-red-dark);
  border: 1px solid var(--stamp-red-dark);
  border-radius:4px; padding: 2px 5px; text-align:center;
}
.lang-value{ font-family: var(--font-ui); font-size: 18px; font-weight:600; }

.allergen-strip{ margin-bottom: 22px; }
.allergen-icons{
  display:flex; flex-wrap:wrap; gap:8px; margin-top:8px;
  font-size: 20px;
}
.allergen-chip{
  display:inline-flex; align-items:center; gap:6px;
  border: 1.5px solid var(--stamp-red);
  color: var(--stamp-red-dark);
  border-radius: 999px;
  padding: 3px 10px 3px 8px;
  font-family: var(--font-mono); font-size: 12px;
  transform: rotate(-1.2deg);
}
.allergen-chip-icon{ width:22px; height:22px; flex-shrink:0; }

.stamp-action{
  border: none; cursor:pointer;
  background: var(--stamp-red);
  color: var(--paper);
  font-family: var(--font-mono); font-weight:600; font-size:13px;
  letter-spacing:.06em; text-transform:uppercase;
  padding: 13px 20px; border-radius: 999px;
  width:100%;
  transition: transform .12s ease, background .15s ease;
}
.stamp-action:hover{ background: var(--stamp-red-dark); transform: translateY(-1px); }
.stamp-action.wide{ margin-top: 16px; }
.stamp-action.danger{ background: var(--stamp-red); }

.empty-state{
  border: 1.5px dashed rgba(246,241,226,.25);
  border-radius: var(--radius);
  padding: 60px 20px;
  text-align:center;
  color: var(--paper-70);
  font-family: var(--font-display); font-size: 17px;
}

/* ---------- Basket / side panels ---------- */
.panel{
  background: var(--ink-soft);
  border: 1px solid rgba(246,241,226,.14);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 20px;
}
.panel-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom: 12px; }
.count-pill{
  background: var(--stamp-red); color:var(--paper);
  font-family: var(--font-mono); font-size:12px; font-weight:600;
  border-radius: 999px; padding: 2px 10px;
}

.basket-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.basket-empty{ color: var(--paper-70); font-family: var(--font-mono); font-size:13px; }
.basket-item{
  display:flex; align-items:center; justify-content:space-between;
  background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 8px 8px 8px 16px;
  font-family: var(--font-ui); font-size: 14px; font-weight:600;
}
.basket-item button{
  border:none; background: rgba(193,39,45,.12); color: var(--stamp-red-dark);
  width:26px; height:26px; border-radius:50%; cursor:pointer; font-size:14px;
}

.select-input, .text-input{
  width:100%;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-family: var(--font-ui); font-size:14px;
  margin-bottom: 4px;
}

.toggle-row{
  display:flex; align-items:center; gap:8px; margin-top:8px;
  font-family: var(--font-ui); font-size:14px; cursor:pointer;
}
.toggle-row input[type="checkbox"]{ width:16px; height:16px; accent-color: var(--stamp-red); cursor:pointer; }

.frame-options-box{ margin-top:10px; padding: 12px; background: rgba(246,241,226,.04); border-radius: var(--radius); }
.frame-options-box .select-input{ margin-bottom:8px; }

.accent-row{ display:flex; flex-direction:column; }
.accent-row input[type="color"]{
  width:100%; height:34px; border:1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); cursor:pointer; padding:2px;
}

.panel-hint{
  font-family: var(--font-ui); font-size:12px; color: var(--paper-70);
  margin: 0 0 14px; line-height:1.5;
}

.lang-settings-box{ display:flex; flex-direction:column; gap:10px; }
.lang-setting-row{
  border: 1px solid rgba(246,241,226,.14); border-radius: var(--radius);
  padding: 10px 12px;
}
.lang-setting-head{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  font-family: var(--font-mono); font-size:12px; letter-spacing:.06em;
  margin-bottom:8px;
}
.lang-setting-head .lang-tag{ color: var(--brass); }
.lang-setting-fields{
  display:grid; grid-template-columns: 1.6fr .8fr .6fr; gap:8px;
  opacity:.4; pointer-events:none;
}
.lang-setting-row.active .lang-setting-fields{ opacity:1; pointer-events:auto; }
.lang-setting-fields select, .lang-setting-fields input[type="number"]{
  width:100%; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px 8px; font-size:12.5px; font-family: var(--font-ui);
}
.lang-setting-fields input[type="color"]{
  width:100%; height:32px; border:1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); cursor:pointer; padding:2px;
}

.logo-row{ display:flex; align-items:center; gap:12px; margin-top:6px; }
.logo-preview{
  width:44px; height:44px; border-radius:6px; object-fit:contain;
  background: var(--paper); border:1px solid var(--line);
}
.logo-row input[type="file"]{
  color: var(--paper-70); font-size:12px; max-width: 160px;
}

.visually-hidden{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip: rect(0,0,0,0); white-space:nowrap;
}
.upload-link{
  display:inline-block; margin-top:8px; cursor:pointer;
  font-family: var(--font-mono); font-size:12px; color: var(--brass);
  text-decoration: underline; text-underline-offset:3px;
}
.upload-link:hover{ color: var(--paper); }

.size-row{ display:flex; align-items:center; justify-content:space-between; }
.size-value{ font-family: var(--font-mono); font-size:12px; color: var(--paper-70); margin-top:10px; }
.size-input-row{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; margin-bottom:14px; }
input[type="range"]{
  width:100%; margin: 8px 0 4px; accent-color: var(--stamp-red);
  background: transparent;
}

/* ---------- Live preview panel ---------- */
.preview-container{
  display:flex; justify-content:center; align-items:flex-start;
  min-height: 160px;
  background: rgba(0,0,0,.15);
  border-radius: var(--radius);
  padding: 16px;
  overflow: visible;
}
.preview-scale-box{
  position: relative;
  overflow: hidden;
}
.preview-scale-box .print-card-frame{
  transform-origin: top left;
  position: absolute; top:0; left:0;
}
.preview-container .print-card{
  box-shadow: 0 10px 26px rgba(0,0,0,.4);
}
.preview-empty{
  color: var(--paper-70); font-family: var(--font-mono); font-size:12.5px;
  text-align:center; padding: 30px 10px;
}

/* ---------- Admin page ---------- */
.admin-layout{ display:flex; flex-direction:column; gap:20px; }
.admin-toolbar{ display:flex; gap:14px; align-items:center; flex-wrap: wrap; }
.admin-toolbar .ghost-btn{
  background: transparent; color: var(--paper); border-color: rgba(246,241,226,.35);
  white-space: nowrap;
}
.admin-toolbar .ghost-btn:hover{ background: rgba(246,241,226,.08); border-color: rgba(246,241,226,.6); }
.admin-toolbar input{
  flex: 1 1 220px;
  min-width: 180px;
  background: var(--paper); color: var(--ink);
  border:1px solid var(--line); border-radius: 999px;
  padding: 11px 18px; font-family: var(--font-ui); font-size:14px;
}
.admin-toolbar .stamp-action{ width:auto; white-space:nowrap; }
.admin-toolbar .count-badge{ white-space:nowrap; }

.table-panel{ overflow-x:auto; }
.food-table{ width:100%; border-collapse:collapse; font-family: var(--font-ui); font-size:14px; }
.food-table th{
  text-align:left; padding: 10px 12px;
  font-family: var(--font-mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase;
  color: var(--brass); border-bottom: 1px solid rgba(246,241,226,.18);
}
.food-table td{ padding: 12px; border-bottom: 1px solid rgba(246,241,226,.08); vertical-align:middle; }
.food-table tr:hover td{ background: rgba(246,241,226,.03); }
.loading-row{ text-align:center; color: var(--paper-70); font-family: var(--font-mono); padding: 30px 0; }

.row-allergens{ display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.inline-allergen-icon{ width:22px; height:22px; }
.row-actions{ display:flex; gap:8px; justify-content:flex-end; }
.icon-btn{
  border:1px solid rgba(246,241,226,.2); background:transparent; color:var(--paper);
  width:32px; height:32px; border-radius:6px; cursor:pointer;
}
.icon-btn:hover{ background: rgba(246,241,226,.08); }
.icon-btn.danger{ border-color: rgba(193,39,45,.5); color:#ff8a8a; }

/* ---------- Modal ---------- */
.modal-overlay{
  position:fixed; inset:0; background: rgba(20,17,13,.72);
  display:flex; align-items:center; justify-content:center;
  z-index: 50; padding: 20px;
}
.modal{
  background: var(--paper); color: var(--ink);
  width: 100%; max-width: 480px; border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  max-height: 90vh; display:flex; flex-direction:column;
}
.modal-sm{ max-width: 380px; }
.modal-lg{ max-width: 640px; }
.modal-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.modal-close{ border:none; background:transparent; font-size:16px; cursor:pointer; color: var(--ink-45); }
.modal-body{ padding: 16px 20px; overflow-y:auto; }
.field-label{ display:block; font-family: var(--font-mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase; color: var(--ink-45); margin: 12px 0 4px; }
.field-label:first-child{ margin-top:0; }
.allergen-checkboxes{ display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.allergen-checkboxes label{
  display:flex; align-items:center; gap:6px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 13px; cursor:pointer;
}
.modal-foot{ display:flex; justify-content:flex-end; gap:10px; padding: 14px 20px; border-top: 1px solid var(--line); }
.ghost-btn{
  background:transparent; border: 1px solid var(--ink-45); color: var(--ink);
  border-radius: 999px; padding: 10px 18px; cursor:pointer; font-family: var(--font-ui); font-size:14px;
}
.modal-foot .stamp-action{ width:auto; }

/* ---------- Print stage (offscreen, used for canvas capture) ---------- */
.print-stage{
  position: fixed; top:-9999px; left:-9999px;
  width: 440px;
}
/* Bağımsız çerçeve: dış sarmalayıcı çerçeveyi taşır, iç kart sabit boyutunu ve
   içerik yerleşimini asla değiştirmez (çerçeve içerikten tamamen bağımsızdır) */
.print-card-frame{
  display:inline-block; padding: 0; background: transparent;
}
.print-card-frame.frame-thin{ padding: 10px; border: 2px solid var(--pc-accent, var(--stamp-red)); border-radius: 10px; }
.print-card-frame.frame-double{ padding: 14px; border: 7px double var(--pc-accent, var(--stamp-red)); }
.print-card-frame.frame-custom{ padding: 0; }

.print-card{
  width: var(--pc-card-w, 380px); height: var(--pc-card-h, 520px);
  background: #FFFFFF; color: var(--ink);
  position:relative;
  font-family: var(--font-ui);
  display:flex; flex-direction:column;
  overflow: hidden;
}
.print-card .pc-border-strip{
  height: 42px; width:100%; flex-shrink:0;
  background-color: var(--ink);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.print-card .pc-content{ flex:1; padding: 18px 26px 22px; display:flex; flex-direction:column; }
.print-card .pc-header{
  display:flex; align-items:center; gap:10px; margin-bottom: 16px;
  justify-content: var(--pc-header-align, flex-start);
}
.print-card .pc-logo{
  width:44px; height:44px; object-fit:contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.print-card .pc-restaurant-name{
  font-family: var(--font-mono); font-weight:600; font-size:12px;
  letter-spacing:.14em; text-transform:uppercase; color: var(--ink-70);
  border-left: 2px solid var(--pc-accent, var(--stamp-red)); padding-left:8px;
}
.print-card .pc-lang-row{
  display:flex; align-items:baseline; gap:10px;
  font-family: var(--pc-font, var(--font-ui));
  /* Türkçe adı da dahil tüm diller aynı formatta ve aynı boyutta */
  font-size: var(--pc-title-size, 26px);
  margin-bottom:9px;
}
.print-card .pc-lang-code{
  font-family: var(--font-mono); font-weight:600; font-size:11px;
  color: var(--pc-accent, var(--stamp-red));
  border: 1px solid var(--pc-accent, var(--stamp-red));
  border-radius:4px; padding: 2px 5px; flex-shrink:0;
}
.print-card .pc-divider{
  height:2px; background: var(--pc-accent, var(--stamp-red));
  margin: 10px 0 16px; opacity:.85;
}
.print-card .pc-allergens{
  display:flex; flex-wrap:wrap; gap:10px;
  min-height: 38px; align-items:center;
  justify-content: space-between;
}
.print-card .pc-allergen-chip{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px;
  line-height:1;
}
.print-card .pc-allergen-chip img{ width:36px; height:36px; }
.print-card img.emoji{ width:1em; height:1em; vertical-align:-0.12em; }
.print-card .pc-qr-wrap{
  background:#fff; padding:3px; border-radius:4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15); flex-shrink:0;
  margin-left:auto; /* alerjen ikonu hiç yoksa bile QR sağda kalsın */
}
.print-card .pc-qr-wrap img{ display:block; width:44px; height:44px; }

/* ---------- PDF Önizleme Modalı ---------- */
.modal-pdf{ max-width: 720px; width:100%; height: 85vh; display:flex; flex-direction:column; }
.pdf-modal-body{ flex:1; padding:0; overflow:hidden; }
.pdf-preview-frame{ width:100%; height:100%; border:none; background:#525659; }

/* ---------- Reçete modalı ---------- */
.ingredient-rows{ display:flex; flex-direction:column; gap:8px; }
.ingredient-row-wrap{ display:flex; flex-direction:column; gap:6px; }
.ingredient-row{
  display:grid; grid-template-columns: 1.8fr .9fr .7fr .8fr auto auto;
  gap:8px; align-items:center;
}
.ingredient-row input, .ingredient-row select{
  width:100%; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 9px; font-family: var(--font-ui); font-size:13.5px;
}
.ingredient-row .remove-ingredient{
  border:none; background: rgba(193,39,45,.12); color: var(--stamp-red-dark);
  width:30px; height:30px; border-radius:50%; cursor:pointer; font-size:14px;
}
.ingredient-row .usda-search-btn{
  border:1px solid var(--line); background: var(--paper); color: var(--ink);
  width:30px; height:30px; border-radius:50%; cursor:pointer; font-size:13px;
}
.ingredient-row .usda-search-btn:hover{ background: var(--paper-dim); }
.usda-panel{
  background: rgba(0,0,0,.04); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 10px; display:none;
}
.usda-panel.open{ display:block; }
.usda-panel-search{ display:flex; gap:8px; margin-bottom:8px; }
.usda-panel-search input{
  flex:1; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 7px 9px; font-size:13px;
}
.usda-panel-search button{
  border:none; background: var(--stamp-red); color:#fff;
  border-radius: var(--radius); padding: 0 14px; cursor:pointer; font-size:12.5px;
}
.usda-results{ display:flex; flex-direction:column; gap:4px; max-height:160px; overflow-y:auto; }
.usda-result-item{
  display:flex; justify-content:space-between; gap:10px;
  padding: 6px 8px; border-radius:4px; cursor:pointer; font-size:12.5px;
}
.usda-result-item:hover{ background: rgba(0,0,0,.06); }
.usda-result-cal{ font-family: var(--font-mono); color: var(--stamp-red-dark); flex-shrink:0; }
.usda-panel-status{ font-family: var(--font-mono); font-size:12px; color: var(--ink-45); }
.ingredient-row-head{
  display:grid; grid-template-columns: 1.8fr .9fr .7fr .8fr auto auto;
  gap:8px; font-family: var(--font-mono); font-size:10.5px; letter-spacing:.06em;
  text-transform:uppercase; color: var(--ink-45); padding: 0 2px;
}
.total-calorie-row{
  display:flex; align-items:center; justify-content:space-between;
  background: var(--ink); color: var(--paper);
  border-radius: 6px; padding: 12px 16px; margin-top: 18px;
}
.total-calorie-value{ font-family: var(--font-display); font-weight:700; font-size:20px; }

/* ---------- Rapor tablosu ---------- */
.report-table{ width:100%; border-collapse:collapse; font-family: var(--font-ui); font-size:14px; }
.report-table th{
  text-align:left; padding: 8px 10px; font-family: var(--font-mono); font-size:10.5px;
  letter-spacing:.06em; text-transform:uppercase; color: var(--ink-45);
  border-bottom: 1px solid var(--line);
}
.report-table td{ padding: 9px 10px; border-bottom: 1px dashed var(--line); }
.report-empty{ font-family: var(--font-mono); font-size:13px; color: var(--ink-45); padding: 20px 0; text-align:center; }

.recipe-btn{ border:1px solid rgba(246,241,226,.2); background:transparent; color:var(--paper); width:32px; height:32px; border-radius:6px; cursor:pointer; }
.recipe-btn:hover{ background: rgba(246,241,226,.08); }

/* ---------- Toplam sayaç, ilerleme çubuğu, dil seçimi ---------- */
.count-badge{
  font-family: var(--font-mono); font-size:12px; color: var(--brass);
  white-space:nowrap; padding: 0 6px;
}
.basket-col .ghost-btn{
  background: transparent; color: var(--paper); border-color: rgba(246,241,226,.35);
}
.basket-col .ghost-btn:hover{ background: rgba(246,241,226,.08); border-color: rgba(246,241,226,.6); }
.progress-track{
  height: 8px; background: rgba(246,241,226,.1); border-radius: 999px; overflow:hidden;
}
.progress-fill{
  height:100%; width:0%; background: var(--stamp-red);
  transition: width .2s ease;
}
.lang-select-row{
  display:flex; flex-wrap:wrap; gap:8px; margin-top:6px;
}
.lang-select-row label{
  display:flex; align-items:center; gap:6px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size:13px; cursor:pointer;
  background: var(--paper); color: var(--ink);
}
.lang-select-row input[type="checkbox"]{ accent-color: var(--stamp-red); }
