/* Olcuvar: acik zemin (gunes altinda okunur), buyuk dokunma alanlari (en az 48 px), tek elle alt kisim */
:root {
  --zemin: #f1f5f4; --kart: #ffffff; --yazi: #14201e; --soluk: #5b6b68; --cizgi: #d5dfdc;
  --ana: #0f5f58; --ana-acik: #e0f0ed; --uyari: #9a5800; --uyari-zemin: #fff4df; --tehlike: #b42318; --tehlike-zemin: #fdecea; --iyi: #157a3c;
  --golge: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--zemin); color: var(--yazi); font: 17px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
a { color: var(--ana); }
button, input, select, textarea { font: inherit; color: inherit; }
#ust { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; background: var(--ana); color: #fff; padding: 8px 12px; min-height: 56px; }
#ust h1 { flex: 1; margin: 0; font-size: 19px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ikon-dugme { background: transparent; border: 0; color: #fff; font-size: 26px; width: 44px; height: 44px; border-radius: 10px; }
.esit { background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 999px; padding: 6px 12px; font-size: 14px; min-height: 36px; }
.esit.tamam::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7ee2a8; margin-right: 6px; }
.esit.bekliyor::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ffd27a; margin-right: 6px; }
#ekran { max-width: 760px; margin: 0 auto; padding: 12px 16px 24px; }
#alt { position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; display: flex; background: var(--kart); border-top: 1px solid var(--cizgi); padding-bottom: env(safe-area-inset-bottom); }
#alt a { flex: 1; text-align: center; padding: 18px 0; text-decoration: none; color: var(--soluk); font-weight: 600; font-size: 16px; }
#alt a.secili { color: var(--ana); box-shadow: inset 0 3px 0 var(--ana); }
.kart { background: var(--kart); border-radius: 14px; box-shadow: var(--golge); padding: 14px; margin: 0 0 12px; }
.kart h2 { font-size: 17px; margin: 0 0 10px; }
.kart h3 { font-size: 15px; margin: 12px 0 6px; color: var(--soluk); text-transform: uppercase; letter-spacing: .03em; }
.dugme { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--cizgi); background: var(--kart); font-weight: 600; text-decoration: none; color: var(--yazi); cursor: pointer; }
.dugme.ana { background: var(--ana); border-color: var(--ana); color: #fff; }
.dugme.tehlike { color: var(--tehlike); border-color: #f1b8b2; }
.dugme.genis { width: 100%; }
.dugme.buyuk { min-height: 58px; font-size: 18px; }
.dugme:disabled { opacity: .45; }
.sira { display: flex; gap: 8px; flex-wrap: wrap; }
.sira > .dugme { flex: 1 1 140px; }
.ust-bosluk { margin-top: 12px; }
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { border-bottom: 1px solid var(--cizgi); }
.liste li:last-child { border-bottom: 0; }
.satir { display: flex; align-items: center; gap: 12px; padding: 12px 2px; text-decoration: none; color: var(--yazi); min-height: 56px; }
.satir .govde { flex: 1; min-width: 0; }
.satir .ad { font-weight: 650; }
.satir .alt-yazi { color: var(--soluk); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.satir .tutar { font-weight: 650; white-space: nowrap; }
.rozet { display: inline-block; font-size: 12.5px; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--ana-acik); color: var(--ana); }
.rozet.uyari { background: var(--uyari-zemin); color: var(--uyari); }
.rozet.tehlike { background: var(--tehlike-zemin); color: var(--tehlike); }
.rozet.iyi { background: #e3f5ea; color: var(--iyi); }
.kutu { border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; font-size: 15.5px; }
.kutu.uyari { background: var(--uyari-zemin); color: #6b3d00; border: 1px solid #f3d29a; }
.kutu.tehlike { background: var(--tehlike-zemin); color: #7a1610; border: 1px solid #f1b8b2; }
.kutu.bilgi { background: var(--ana-acik); color: #0b3f3a; }
.kutu ul { margin: 6px 0 0; padding-left: 20px; }
.kutu .dugme { margin-top: 10px; }
label.alan { display: block; margin: 0 0 12px; }
label.alan > span { display: block; font-size: 14px; font-weight: 600; color: var(--soluk); margin-bottom: 4px; }
label.alan small { display: block; color: var(--soluk); font-size: 13px; margin-top: 3px; }
input[type=text], input[type=tel], input[type=search], input[type=password], input[type=number], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--cizgi); border-radius: 10px; background: #fff; }
textarea { min-height: 72px; }
input:focus, select:focus, textarea:focus, .dugme:focus-visible { outline: 3px solid #8fd1c7; outline-offset: 1px; }
.ikili { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.uclu { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; align-items: end; }
.secim { display: flex; gap: 6px; flex-wrap: wrap; }
.secim button { flex: 1 1 auto; min-height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--cizgi); background: #fff; font-weight: 600; font-size: 15px; }
.secim button.secili { background: var(--ana); border-color: var(--ana); color: #fff; }
.sablonlar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sablonlar button { border: 2px solid var(--cizgi); background: #fff; border-radius: 12px; padding: 6px 4px; font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.sablonlar button svg { display: block; margin: 0 auto 4px; height: 52px; width: auto; }
.sablonlar button.secili { border-color: var(--ana); background: var(--ana-acik); }
.sablonlar button.kilitli { opacity: .55; position: relative; }
.sablonlar button .kilit { display: block; font-size: 10.5px; color: var(--tehlike); font-weight: 700; margin-top: 2px; }
.sablonlar + h3 { margin-top: 14px; }
.fotolar { display: flex; flex-wrap: wrap; gap: 8px; }
.foto { width: 84px; height: 84px; border-radius: 10px; border: 1px solid var(--cizgi); background: #fff; padding: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto.ekle { border-style: dashed; color: var(--ana); font-weight: 650; font-size: 14px; text-align: center; cursor: pointer; }
.cizim { text-align: center; }
.cizim svg { width: 100%; max-width: 420px; height: auto; touch-action: manipulation; }
.cizim .olcu-dugme { cursor: pointer; }
.adet { display: flex; align-items: center; gap: 8px; }
.adet button { width: 56px; height: 52px; border-radius: 12px; border: 1px solid var(--cizgi); background: #fff; font-size: 26px; font-weight: 700; }
.adet output { min-width: 56px; text-align: center; font-size: 24px; font-weight: 700; }
.sonuc dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.sonuc dt { color: var(--soluk); font-size: 14.5px; }
.sonuc dd { margin: 0; font-weight: 650; }
.sonuc .neden { grid-column: 1 / -1; font-size: 13px; color: var(--soluk); margin: -2px 0 6px; font-weight: 400; }
.fiyat-satir { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--cizgi); }
.fiyat-satir .neden { display: block; font-size: 13px; color: var(--soluk); }
.fiyat-satir b { white-space: nowrap; }
.toplam { display: flex; justify-content: space-between; font-size: 20px; font-weight: 750; padding-top: 10px; }
.tablo { width: 100%; border-collapse: collapse; font-size: 15px; }
.tablo th { text-align: left; font-size: 13px; color: var(--soluk); border-bottom: 2px solid var(--cizgi); padding: 6px 4px; }
.tablo td { border-bottom: 1px solid var(--cizgi); padding: 8px 4px; }
.tablo .sag { text-align: right; }
.kaydir { overflow-x: auto; }
.boy { display: flex; height: 26px; border-radius: 6px; overflow: hidden; background: #e9eeed; border: 1px solid var(--cizgi); margin: 4px 0 8px; }
.boy span { background: #9ccfc6; border-right: 2px solid #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #0b3f3a; }
.yuzer { position: fixed; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 4; min-height: 60px; padding: 0 24px; border-radius: 30px; font-size: 18px; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.bos { text-align: center; color: var(--soluk); padding: 32px 8px; }
/* sayi klavyesi: alttan acilir, basparmak alaninda */
.klavye { position: fixed; inset: 0; z-index: 20; background: rgba(10,20,18,.45); display: flex; flex-direction: column; justify-content: flex-end; }
.klavye[hidden] { display: none; }
.klavye .panel { background: var(--kart); border-radius: 18px 18px 0 0; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); max-width: 520px; width: 100%; margin: 0 auto; }
.klavye .ust { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.klavye .ust b { font-size: 18px; }
.noktalar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.noktalar button { border: 2px solid var(--cizgi); border-radius: 12px; background: #fff; padding: 6px 4px; min-height: 66px; }
.noktalar button small { display: block; font-size: 12.5px; color: var(--soluk); }
.noktalar button span { display: block; font-size: 24px; font-weight: 750; min-height: 30px; }
.noktalar button.aktif { border-color: var(--ana); background: var(--ana-acik); }
.klavye .durum { min-height: 22px; font-size: 14.5px; margin-bottom: 8px; color: var(--soluk); }
.klavye .durum.egri { color: var(--tehlike); font-weight: 650; }
.tuslar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tuslar button { min-height: 60px; border-radius: 12px; border: 1px solid var(--cizgi); background: #f7faf9; font-size: 26px; font-weight: 650; }
.tuslar button.yan { font-size: 16px; background: #eef3f2; }
.tuslar button.tamam { background: var(--ana); color: #fff; border-color: var(--ana); font-size: 18px; }
.bildirim { position: fixed; left: 16px; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 30; background: #1d2b29; color: #fff; padding: 14px 16px; border-radius: 12px; text-align: center; max-width: 520px; margin: 0 auto; }
@media (min-width: 900px) {
  #ekran { max-width: 980px; }
  .poz-duzen { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
}
/* 08.11 kurucu: "kalipera hic web tarafi yok" - masaustu (1000px+): soldaki menu, genis icerik, fare ile kullanim.
   Telefon gorunumu DEGISMEZ (bu blok yalniz genis ekranda). */
@media (min-width: 1000px) {
  body { padding: 0 0 0 232px; font-size: 16px; }
  #ust { min-height: 64px; padding: 8px 28px; }
  #ust h1 { font-size: 21px; }
  #alt { top: 0; bottom: 0; right: auto; width: 232px; flex-direction: column; justify-content: flex-start; gap: 4px;
    border-top: 0; border-right: 1px solid var(--cizgi); padding: 84px 12px 20px; background: var(--kart); }
  #alt::before { content: "Kalipera"; position: absolute; top: 0; left: 0; right: 0; height: 64px; display: flex; align-items: center; gap: 10px;
    padding: 0 20px 0 64px; background: var(--ana) url("/ikon.svg") 18px center / 34px no-repeat; color: #fff; font-weight: 750; font-size: 20px; }
  #alt a { flex: none; text-align: left; padding: 12px 14px; border-radius: 10px; font-size: 16px; }
  #alt a:hover { background: var(--ana-acik); color: var(--ana); }
  #alt a.secili { background: var(--ana-acik); box-shadow: inset 4px 0 0 var(--ana); }
  #ekran { max-width: 1180px; padding: 24px 32px 48px; }
  .kart { padding: 18px 20px; }
  .liste .satir { padding: 12px 8px; border-radius: 8px; }
  .liste .satir:hover { background: #f4f8f7; }
  .dugme { cursor: pointer; } .dugme:hover { filter: brightness(.97); } .dugme.ana:hover { filter: brightness(1.08); }
  .sira > .dugme { flex: 0 1 auto; }
  .dugme.genis { width: auto; min-width: 240px; }
  .ikili { gap: 16px; }
  .sablonlar { grid-template-columns: repeat(6, 1fr); }
  .yuzer { bottom: 28px; right: 32px; }
  .bildirim { bottom: 28px; left: 248px; }
  .klavye { justify-content: center; }
  .klavye .panel { border-radius: 18px; padding: 16px; }
  .cizim svg { max-width: 560px; }
}
@media (min-width: 1400px) {
  #ekran { max-width: 1280px; }
}
.renk-kutu { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(0,0,0,.35); margin-right: 6px; vertical-align: -2px; }
.uc-kaydir { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; font-size: 14px; color: var(--soluk); }
.uc-kaydir input { flex: 1; }
.uc-bilgi { font-size: 14.5px; background: #f4f8f7; border: 1px solid var(--cizgi); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
.uc-bilgi b { display: block; margin-bottom: 4px; }
.uc-k { color: var(--soluk); }
