/* RamcodeX Hal — yaşlı dostu sade arayüz: büyük düğmeler, büyük yazı, tek ekranda tek soru.
   Yazı boyutu (Normal / Büyük / Çok büyük) html'in font-size'ı ile ölçeklenir; burada her şey rem. */
html { font-size: 17px; }
html[data-yazi="buyuk"] { font-size: 20px; }
html[data-yazi="cokbuyuk"] { font-size: 23px; }
body.hal { font-size: 1rem; line-height: 1.4; }
body.hal .toast { font-size: 1.05rem; padding: .9rem 1.1rem; border-radius: 14px; }

.h-app { min-height: 100vh; display: flex; flex-direction: column; }
.h-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: .7rem; padding: .6rem 1rem;
  background: var(--panel); border-bottom: 1px solid var(--line); }
.h-brand { display: flex; align-items: center; gap: .6rem; min-width: 0; cursor: pointer; }
.h-brand .lg { width: 2.3rem; height: 2.3rem; border-radius: .7rem; flex: none; display: grid; place-items: center; font-size: 1.3rem;
  background: linear-gradient(135deg, var(--brand-500), var(--cyan-600)); color: #fff; font-weight: 800; }
.h-brand b { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.h-brand b i { font-style: normal; color: var(--cyan-600); }
:root:not([data-theme="light"]) .h-brand b i { color: var(--cyan); }
.h-brand small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.15; white-space: nowrap; }
.h-brand small.ver { font-size: .68rem; }
.h-top .sp { flex: 1; }
.h-user { font-weight: 650; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
.h-ibtn { border: 0; background: var(--panel-2); color: var(--text); border-radius: .8rem; padding: .55rem .8rem; font: 600 .95rem var(--font);
  cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line); }
.h-ibtn:hover { background: var(--hover); }
.h-ibtn svg { width: 1.2rem; height: 1.2rem; }
.h-sync { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); cursor: pointer; }

.h-main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 1rem 1rem 2.5rem; }
.h-main.genis { max-width: 1100px; }

/* Üst başlık (alt sayfalar) */
.h-bas { display: flex; align-items: center; gap: .6rem; margin: .2rem 0 1rem; }
.h-geri { border: 0; background: var(--panel); border: 1px solid var(--line); color: var(--text); font: 800 1.15rem var(--font);
  border-radius: .9rem; padding: .65rem 1rem; cursor: pointer; flex: none; }
.h-geri:hover { background: var(--hover); }
.h-bas h1 { font-size: 1.45rem; font-weight: 800; flex: 1; min-width: 0; }
.h-adim { color: var(--muted); font-weight: 700; font-size: .95rem; flex: none; }
.h-soru { font-size: 1.6rem; font-weight: 800; margin: .3rem 0 .8rem; line-height: 1.2; }
.h-bilgi { color: var(--text-2); font-size: 1rem; margin: -.3rem 0 .8rem; }
.h-bilgi b { color: var(--text); }

/* Ana ekran düğmeleri */
.h-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (min-width: 700px) { .h-tiles { grid-template-columns: repeat(3, 1fr); } }
.h-tile { border: 0; border-radius: 1.2rem; padding: 1.1rem .6rem; min-height: 8.2rem; color: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; text-align: center;
  font: 800 1.3rem/1.15 var(--font); box-shadow: 0 6px 18px rgba(15,23,42,.14); transition: transform .08s; }
.h-tile:active { transform: scale(.97); }
.h-tile .e { font-size: 2.4rem; line-height: 1; }
.h-tile small { font-weight: 600; font-size: .8rem; opacity: .9; }
.t-gel { background: #0e7490; } .t-sat { background: #047857; } .t-al { background: #4338ca; }
.t-ver { background: #b45309; } .t-def { background: #be123c; } .t-gun { background: #334155; }
.h-mini-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-top: .8rem; }
.h-mini { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 1rem; padding: .9rem; cursor: pointer;
  font: 700 1.05rem var(--font); display: flex; align-items: center; justify-content: center; gap: .5rem; }
.h-mini:hover { background: var(--hover); }

.h-uyari { display: block; width: 100%; border: 0; text-align: left; cursor: pointer; background: #f59e0b; color: #1c1917; border-radius: 1rem;
  padding: .85rem 1rem; font: 800 1.1rem var(--font); margin-bottom: .8rem; }
.h-uyari.kirmizi { background: #e11d48; color: #fff; }
.h-uyari small { display: block; font-weight: 600; font-size: .85rem; opacity: .9; }
.h-kart { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: .9rem 1rem; }
.h-kart + .h-kart { margin-top: .7rem; }
.h-satir { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; padding: .25rem 0; font-size: 1.05rem; }
.h-satir b { font-size: 1.15rem; white-space: nowrap; }
.h-satir.buyuk b { font-size: 1.5rem; }
.h-kasa { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: .8rem; }
.h-kasa .h-kart { margin: 0; text-align: center; }
.h-kasa .h-kart small { display: block; color: var(--muted); font-size: .9rem; }
.h-kasa .h-kart b { font-size: 1.45rem; }
.yesil { color: #059669 !important; } .kirmizi-y { color: #e11d48 !important; } .amber-y { color: #b45309 !important; }
:root:not([data-theme="light"]) .yesil { color: #34d399 !important; }
:root:not([data-theme="light"]) .kirmizi-y { color: #fb7185 !important; }
:root:not([data-theme="light"]) .amber-y { color: #fbbf24 !important; }

/* Seçim listeleri */
.h-ara { width: 100%; font: 1.15rem var(--font); padding: .8rem 1rem; border-radius: 1rem; border: 2px solid var(--ink-600);
  background: var(--field); color: var(--text); margin-bottom: .7rem; }
.h-ara:focus { outline: 0; border-color: var(--brand-500); }
.h-liste { display: grid; gap: .55rem; }
.h-sec { width: 100%; border: 2px solid var(--line); background: var(--panel); color: var(--text); border-radius: 1rem; padding: .85rem 1rem;
  font: 700 1.2rem var(--font); display: flex; align-items: center; justify-content: space-between; gap: .8rem; cursor: pointer; text-align: left; }
.h-sec:hover, .h-sec:focus { border-color: var(--brand-500); outline: 0; }
.h-sec small { display: block; font-weight: 550; font-size: .85rem; color: var(--muted); margin-top: .1rem; }
.h-sec .sag { text-align: right; flex: none; font-size: 1.1rem; }
.h-sec.yeni { border-style: dashed; color: var(--brand-600); justify-content: center; }
:root:not([data-theme="light"]) .h-sec.yeni { color: var(--brand-300); }
.h-sec.pasif { justify-content: center; color: var(--text-2); }
.h-urunler { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.2rem, 1fr)); gap: .6rem; }
.h-urun { border: 2px solid var(--line); background: var(--panel); color: var(--text); border-radius: 1rem; padding: .8rem .4rem; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: .2rem; font: 750 1.1rem var(--font); text-align: center; min-height: 6.5rem; justify-content: center; }
.h-urun:hover, .h-urun:focus { border-color: var(--brand-500); outline: 0; }
.h-urun .e { font-size: 2.1rem; line-height: 1.1; }
.h-urun small { font-weight: 550; font-size: .78rem; color: var(--muted); }

/* Sayı girişi */
.h-deger { display: flex; align-items: center; gap: .6rem; background: var(--field); border: 3px solid var(--brand-500); border-radius: 1rem;
  padding: .55rem 1rem; margin-bottom: .6rem; }
.h-deger input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: 800 2.2rem var(--font); text-align: right; outline: 0; }
.h-deger span { font: 800 1.4rem var(--font); color: var(--text-2); flex: none; }
.h-ipucu { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.h-ipucu button { border: 1px solid var(--line); background: var(--panel-2); color: var(--text); border-radius: .8rem; padding: .5rem .8rem;
  font: 650 .95rem var(--font); cursor: pointer; }
.h-onizle { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: .6rem 1rem; margin-bottom: .6rem; font-size: 1.05rem; }
.h-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .7rem; }
.h-keys button { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: .9rem; padding: .7rem 0;
  font: 800 1.6rem var(--font); cursor: pointer; }
.h-keys button:active { background: var(--hover); transform: scale(.97); }
.h-go { width: 100%; border: 0; border-radius: 1.1rem; padding: 1rem; font: 800 1.35rem var(--font); color: #fff; background: #047857; cursor: pointer; }
.h-go:disabled { opacity: .45; pointer-events: none; }
.h-go.mavi { background: var(--brand-600); }
.h-go.gri { background: var(--ink-600); color: var(--text); }
:root[data-theme="light"] .h-go.gri { background: #e2e8f0; color: #0f172a; }
.h-go + .h-go { margin-top: .6rem; }
.h-go.yapis { position: sticky; bottom: .6rem; z-index: 3; box-shadow: 0 8px 24px rgba(15,23,42,.25); }

/* Ödeme */
.h-pay { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: .8rem; }
.h-pay button { border: 3px solid transparent; border-radius: 1.1rem; padding: 1rem .4rem; color: #fff; font: 800 1.35rem/1.2 var(--font); cursor: pointer; }
.h-pay button .e { display: block; font-size: 1.9rem; }
.h-pay button.sec { border-color: var(--text); box-shadow: 0 0 0 4px rgba(99,102,241,.35); }
.p-nakit { background: #047857; } .p-kart { background: #0e7490; } .p-ver { background: #b45309; } .p-par { background: #475569; }
.h-secenek { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 .7rem; }
.h-secenek button { flex: 1 1 6.5rem; border: 2px solid var(--line); background: var(--panel); color: var(--text); border-radius: .9rem; padding: .7rem .5rem;
  font: 700 1.05rem var(--font); cursor: pointer; }
.h-secenek button.sec { border-color: var(--brand-500); background: rgba(99,102,241,.12); }
.h-alan { display: grid; gap: .3rem; margin-bottom: .6rem; }
.h-alan span { font-weight: 700; font-size: 1rem; color: var(--text-2); }
.h-alan input, .h-alan select, .h-alan textarea { font: 700 1.25rem var(--font); padding: .7rem .9rem; border-radius: .9rem; border: 2px solid var(--ink-600);
  background: var(--field); color: var(--text); width: 100%; }
.h-alan input:focus, .h-alan select:focus, .h-alan textarea:focus { outline: 0; border-color: var(--brand-500); }

/* Başarı */
.h-basari { text-align: center; padding: 1.5rem 0 1rem; }
.h-basari .tik { width: 5.5rem; height: 5.5rem; border-radius: 50%; background: #047857; color: #fff; display: grid; place-items: center;
  font-size: 3rem; margin: 0 auto .8rem; }
.h-basari h2 { font-size: 1.6rem; font-weight: 800; }
.h-basari p { font-size: 1.1rem; color: var(--text-2); margin: .4rem 0 1.2rem; }

/* Sekmeler */
.h-sekme { display: flex; gap: .5rem; margin-bottom: .9rem; flex-wrap: wrap; }
.h-sekme button { flex: 1 1 auto; border: 2px solid var(--line); background: var(--panel); color: var(--text); border-radius: .9rem; padding: .65rem .8rem;
  font: 750 1.05rem var(--font); cursor: pointer; }
.h-sekme button.on { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

/* Hareket / kişi satırları */
.h-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; background: var(--panel); border: 1px solid var(--line);
  border-radius: 1rem; padding: .8rem 1rem; cursor: pointer; width: 100%; color: var(--text); font: inherit; text-align: left; }
.h-row + .h-row { margin-top: .5rem; }
.h-row:hover { background: var(--hover); }
.h-row b.ad { font-size: 1.15rem; }
.h-row small { display: block; color: var(--muted); font-size: .85rem; margin-top: .1rem; }
.h-row .t { font-weight: 800; font-size: 1.2rem; white-space: nowrap; text-align: right; }
.h-row.iptal { opacity: .5; text-decoration: line-through; }
.h-row .gerial { border: 1px solid var(--line); background: var(--panel-2); color: var(--text); border-radius: .7rem; padding: .45rem .7rem;
  font: 700 .9rem var(--font); cursor: pointer; margin-left: .6rem; white-space: nowrap; }
.h-toplam { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .8rem; }
.h-toplam div { border-radius: 1rem; padding: .8rem; color: #fff; text-align: center; font-weight: 700; }
.h-toplam div b { display: block; font-size: 1.35rem; }
.h-bos { text-align: center; color: var(--muted); padding: 2rem 1rem; font-size: 1.1rem; }
.h-butonlar { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .8rem 0; }
.h-butonlar .h-go { margin: 0; font-size: 1.1rem; padding: .9rem .5rem; }
.h-bolum { font-size: 1.15rem; font-weight: 800; margin: 1.2rem 0 .6rem; }
.h-tablo { width: 100%; border-collapse: collapse; font-size: .98rem; }
.h-tablo th, .h-tablo td { padding: .5rem .4rem; border-bottom: 1px solid var(--line); text-align: right; }
.h-tablo th:first-child, .h-tablo td:first-child { text-align: left; }
.h-tablo th { color: var(--muted); font-weight: 650; font-size: .85rem; }
.h-not { color: var(--muted); font-size: .9rem; margin-top: .6rem; }
.h-ayar { display: grid; gap: .55rem; }

/* Gelişmiş sayfalar (eski arayüz bileşenleri) sade kabuğun içinde */
.h-main .page { padding: 0; }
.h-main #ic > .page > .page-head:first-child h1 { display: none; }

/* Modal içi büyük yazı */
body.hal .modal .f span { font-size: .95rem; }
body.hal .modal .in { font-size: 1.05rem; padding: .7rem .85rem; }
body.hal .modal .btn { font-size: 1rem; padding: .7rem 1rem; }

.h-tile small, .h-uyari small, .h-pay small, .h-toplam small { color: inherit; opacity: .88; }
@media (max-width: 520px) {
  .h-sync span:last-child { display: none; }
  .h-main { padding: .7rem .7rem 2rem; }
  .h-user { display: none; }
  .h-brand small:not(.ver) { display: none; }
  .h-tile { min-height: 7.2rem; font-size: 1.15rem; }
  .h-soru { font-size: 1.4rem; }
}
@media print {
  .h-top, .h-geri, .h-butonlar, .h-go { display: none !important; }
}
