/* ===== Üretici portalı + kapı ekranı stilleri =====
   style.css'in değişkenlerini ve temel sınıflarını (.card .btn .form ...)
   kullanır; burada sadece portala özgü ekler var. */

/* ---- Kapı ekranı (giris.html) ---- */
.door-wrap {
  min-height: 100vh; background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.door-panel {
  width: 100%; max-width: 380px;
  margin: 0 auto;
  background: var(--bg-card); border-radius: 22px;
  padding: 22px 18px 20px;
}
.door-logobox {
  border: 1px solid var(--primary); border-radius: 14px;
  background: #fff; padding: 14px 12px; text-align: center;
  margin-bottom: 18px;
}
.door-logobox img { width: 210px; max-width: 78%; height: auto; display: block; margin: 0 auto; }
.door-view { max-width: 480px; margin: 0 auto; }
.door-intro {
  font-size: 14px; color: var(--text-mute);
  margin: 0 4px 16px;
}
.door-btn {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: 14px;
  padding: 16px 14px;
  margin: 12px 0;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, transform .05s, box-shadow .15s;
}
.door-btn:active { transform: scale(0.99); }
.door-btn:hover { border-color: var(--primary-dark); box-shadow: 0 4px 14px rgba(109,45,109,0.14); }
.door-emoji {
  font-size: 26px;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: #f2e8f2; border-radius: 10px;
  flex-shrink: 0;
}
.door-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.door-text b { font-size: 18px; font-weight: 700; color: var(--primary-dark); }
.door-text small { font-size: 12.5px; color: var(--text-mute); }
.door-arrow { font-size: 26px; color: var(--text-mute); }
.door-btn.solo { justify-content: center; font-size: 16px; font-weight: 700; color: var(--primary); }
.door-foot {
  text-align: center; font-size: 12px; color: var(--text-mute);
  margin-top: 20px;
}

/* ---- Genel portal ---- */
.u-wrap { max-width: 520px; margin: 0 auto; }

.u-link {
  background: transparent; border: none;
  color: var(--primary); font-size: 14px; font-weight: 600;
  cursor: pointer; padding: 8px; text-decoration: none;
}
.u-links {
  display: flex; flex-direction: column; gap: 4px;
  align-items: center; margin-top: 10px;
}
/* Giriş altı seçenek butonları */
.u-optbtns { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.u-optbtn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 46px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-card); color: var(--text);
  font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none;
}
.u-optbtn:active { transform: scale(0.99); }
.u-optbtn.primary { border-color: var(--primary); color: var(--primary); }
.u-optbtn.personel { border-color: var(--primary); color: var(--primary); background: #f2e8f2; margin-top: 14px; }
.u-back {
  display: inline-block; margin: 8px 0;
  color: var(--text-mute); font-size: 13px;
  background: none; border: none; cursor: pointer; text-decoration: none;
}

.u-info {
  font-size: 13px; color: var(--text-mute);
  background: #f8faf7; border: 1px solid #e1ebe2;
  border-radius: 10px; padding: 10px 12px; margin: 10px 0;
  line-height: 1.5;
}
.u-ok-box {
  background: #ecfdf5; border: 1px solid #a7f3d0; color: var(--success);
  border-radius: 10px; padding: 12px 14px; margin: 10px 0; font-size: 14px;
}
.u-pin-hint { font-size: 12px; color: var(--text-mute); }

/* PIN / numara girişleri büyük ve net */
.big-input input {
  font-size: 22px !important; font-weight: 600;
  text-align: center; letter-spacing: 0.06em;
}

/* ---- Topbar (portal) ---- */
.u-topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0 6px;
}
.u-topbar .who { flex: 1; }
.u-topbar .who .ad { font-size: 17px; font-weight: 700; }
.u-topbar .who .mno { font-size: 12px; color: var(--text-mute); }

/* Çıkış (logout) butonu — görünür, etiketli */
.btn-cikis {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 99px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn-cikis:active { transform: scale(0.97); }
.btn-cikis:hover { border-color: var(--error); color: var(--error); }

/* ---- Bakiye kartı ---- */
.balance-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; border: none;
  border-radius: 16px; padding: 20px;
  margin: 12px 0;
}
.balance-card .lbl {
  font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.08em; opacity: 0.85;
}
.balance-card .amount { font-size: 32px; font-weight: 800; margin: 4px 0 2px; }
.balance-card .sub { font-size: 12.5px; opacity: 0.85; }
.balance-mini {
  display: flex; gap: 10px; margin-top: 14px;
}
.balance-mini .bm {
  flex: 1; background: rgba(255,255,255,0.14);
  border-radius: 10px; padding: 8px 10px;
}
.balance-mini .bm .k { font-size: 11px; opacity: 0.85; }
.balance-mini .bm .v { font-size: 15px; font-weight: 700; }

/* ---- Ekstre listesi ---- */
.ekstre-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 16px 4px 8px;
}
.ekstre-head h3 { margin: 0; font-size: 15px; }
.ekstre-head .cnt { font-size: 12px; color: var(--text-mute); }
.ekstre-list { display: flex; flex-direction: column; }
.ek-row {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 11px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  font-size: 13.5px;
}
.ek-row:first-child { border-top: 1px solid var(--border); border-radius: 10px 10px 0 0; }
.ek-row:last-child { border-radius: 0 0 10px 10px; }
.ek-row .ek-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ek-row .ek-ac { font-weight: 600; word-break: break-word; }
.ek-row .ek-meta { font-size: 12px; color: var(--text-mute); }
.ek-row .ek-amt { text-align: right; white-space: nowrap; font-weight: 700; }
.ek-row .ek-amt.borc { color: var(--error); }
.ek-row .ek-amt.alacak { color: var(--success); }
.ek-empty {
  text-align: center; color: var(--text-mute); font-size: 13px;
  padding: 24px 8px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
}

/* ---- Profil / bilgiler ---- */
.profil-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; padding: 12px 0; border-top: 1px solid var(--border);
}
.profil-row:first-child { border-top: none; }
.profil-row .pr-k { font-size: 12px; color: var(--text-mute); }
.profil-row .pr-v { font-size: 15px; font-weight: 600; }

.iban-box {
  background: #f8faf7; border: 1px solid #e1ebe2;
  border-radius: 10px; padding: 12px; margin: 8px 0;
}
.iban-display {
  font-family: ui-monospace, monospace; font-size: 15px;
  font-weight: 600; letter-spacing: 0.04em; word-break: break-all;
}
.iban-check {
  font-size: 13px; margin-top: 6px; font-weight: 600;
}
.iban-check.ok { color: var(--success); }
.iban-check.bad { color: var(--error); }

.ocr-photo-preview {
  width: 100%; border-radius: 10px; margin: 8px 0;
  border: 1px solid var(--border); display: block;
}

/* ===== Eksik bilgi pop-up ===== */
#eksikModal { align-items: center; }
#eksikModal .modal-card { border-radius: 16px; max-width: 360px; }
.eksik-card { position: relative; }
.eksik-x {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border: none;
  background: #f0eef0; color: #555; border-radius: 50%;
  font-size: 15px; line-height: 1; cursor: pointer;
}
.eksik-title {
  font-size: 17px; font-weight: 700; color: #2b1a2b;
  margin: 2px 34px 16px 2px;
}
.eksik-btn {
  width: 100%; border: none; background: #d92d2d;
  border-radius: 12px; padding: 18px 15px; text-align: left;
  cursor: pointer; display: flex; align-items: center; gap: 11px;
}
.eksik-btn:active { background: #b52424; }
.eksik-btn-txt { display: flex; flex-direction: column; gap: 5px; }
.eksik-btn-alanlar { font-size: 16px; font-weight: 600; color: #fff; }
.eksik-btn-cta { font-size: 17px; font-weight: 700; color: #fff; }
.eksik-btn-ok { margin-left: auto; color: #fff; font-size: 22px; font-weight: 700; }

/* ===== KVKK onay kutuları ===== */
.kvkk-chk {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 12px; margin: 10px 0;
  font-size: 13.5px; color: var(--text); cursor: pointer;
}
.kvkk-chk input { margin-top: 2px; width: 18px; height: 18px; flex: 0 0 auto; }

/* ===== Profil: Güncelle → giriş kutusu ===== */
.edit-wrap { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.edit-actions { display: flex; gap: 8px; align-items: center; }
.edit-actions .btn.primary { flex: 1; }

.badge-durum {
  display: inline-block; padding: 2px 9px; border-radius: 99px;
  font-size: 11.5px; font-weight: 600;
}
.badge-durum.beklemede { background: #fff7ed; color: #c2410c; }
.badge-durum.onaylandi { background: #ecfdf5; color: var(--success); }
.badge-durum.reddedildi { background: #fef2f2; color: var(--error); }

.talep-row {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; margin: 6px 0;
  font-size: 13px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.talep-row .tr-meta { color: var(--text-mute); font-size: 12px; }

/* ---- Mesajlaşma ---- */
.msg-badge {
  display: inline-block; min-width: 20px; padding: 1px 6px;
  border-radius: 99px; background: var(--error, #d92d2d); color: #fff;
  font-size: 12px; font-weight: 700; text-align: center;
  margin-left: 6px; vertical-align: middle;
}
.msg-list {
  display: flex; flex-direction: column; gap: 8px;
  padding: 8px 0; margin: 4px 0;
  max-height: 60vh; overflow-y: auto;
}
.msg {
  max-width: 85%;
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.45;
}
.msg.them {
  align-self: flex-start;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #ddd);
  border-bottom-left-radius: 4px;
}
.msg.me {
  align-self: flex-end;
  background: #f3e7f3;
  border: 1px solid #e0cbe0;
  border-bottom-right-radius: 4px;
}
.msg.duyuru {
  background: #fff7ed; border-color: #fed7aa;
}
.msg .msg-kim { font-size: 11px; font-weight: 700; color: var(--text-mute, #777); margin-bottom: 2px; }
.msg .msg-icerik { white-space: pre-wrap; word-break: break-word; }
.msg .msg-ts { font-size: 10.5px; color: var(--text-mute, #777); margin-top: 3px; text-align: right; }
.msg-form {
  display: flex; gap: 8px; align-items: flex-end; margin-top: 6px;
}
.msg-form textarea {
  flex: 1; resize: none;
  border: 1px solid var(--border, #ddd); border-radius: 12px;
  padding: 10px 12px; font-size: 14px; font-family: inherit;
  background: var(--bg-card, #fff); color: var(--text, #222);
}
.msg-form button { flex-shrink: 0; }

/* Sohbet listesi (admin) */
.sohbet-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; margin: 6px 0;
  background: var(--bg-card, #fff); border: 1px solid var(--border, #ddd);
  border-radius: 10px; cursor: pointer;
}
.sohbet-row:hover, .sohbet-row.active { border-color: var(--primary, #6d2d6d); }
.sohbet-row .sh-main { min-width: 0; }
.sohbet-row .sh-kim { font-weight: 700; font-size: 14px; }
.sohbet-row .sh-kim small { font-weight: 400; color: var(--text-mute, #777); }
.sohbet-row .sh-son {
  font-size: 12.5px; color: var(--text-mute, #777);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw;
}
.sohbet-row .sh-sag { text-align: right; flex-shrink: 0; }
.sohbet-row .sh-ts { font-size: 11px; color: var(--text-mute, #777); }

/* Çoklu seçim: onay kutusu + alt çubuk + başvuru rozeti */
.sec-kutu {
  width: 20px; height: 20px; flex-shrink: 0;
  border: 2px solid var(--border, #ccc); border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; color: #fff; cursor: pointer; align-self: center;
}
.sec-kutu.on { background: #6d2d6d; border-color: #6d2d6d; }
.sohbet-row.secildi { border-color: #6d2d6d; background: #faf5fa; }
.sec-bar {
  display: flex; align-items: center; gap: 10px;
  background: #6d2d6d; border-radius: 10px;
  padding: 9px 12px; margin-top: 8px;
}
.sec-bar span { color: #fff; font-size: 13px; flex: 1; }
.sec-bar .sec-sil {
  background: #fff; color: #a32d2d; border: none; border-radius: 8px;
  padding: 6px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.sec-bar .sec-vazgec {
  background: transparent; color: #e0cbe0; border: none;
  font-size: 13px; cursor: pointer;
}
.badge-basvuru {
  display: inline-block; background: #fff7ed; color: #b06a10;
  border: 1px solid #fed7aa; border-radius: 99px;
  padding: 1px 8px; font-size: 11px; font-weight: 600; vertical-align: middle;
}

/* Okundu tikleri (✓ iletildi, ✓✓ mavi okundu) */
.msg-tik { font-size: 11px; color: var(--text-mute, #999); letter-spacing: -1px; }
.msg-tik.okundu { color: #34b7f1; }

/* Duyuru raporu */
.duyuru-rapor-kart {
  background: var(--bg-card, #fff); border: 1px solid var(--border, #ddd);
  border-radius: 10px; margin: 6px 0; overflow: hidden;
}
.duyuru-rapor-kart .dr-ust {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; cursor: pointer;
}
.duyuru-rapor-kart .dr-ust:hover { background: #faf7fa; }
.dr-metin { flex: 1; min-width: 0; }
.dr-icerik { font-size: 13.5px; }
.dr-meta { font-size: 12px; color: var(--text-mute, #888); margin-top: 2px; }
.dr-sayilar { text-align: right; flex-shrink: 0; }
.dr-alici { font-size: 13px; font-weight: 700; }
.dr-okuyan { font-size: 12px; color: #1d7a4d; font-weight: 600; }
.dr-ok { color: var(--text-mute, #aaa); font-size: 16px; flex-shrink: 0; }
.dr-alicilar { border-top: 1px solid var(--border, #eee); padding: 6px 12px; }
.dr-alici-satir {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 5px 0; font-size: 13px;
  border-bottom: 1px dashed #f0ecf0;
}
.dr-alici-satir:last-child { border-bottom: none; }
.dr-okudu { color: #1d7a4d; font-weight: 600; white-space: nowrap; }
.dr-okumadi { color: #b06a10; white-space: nowrap; }

/* Sohbet ekranı (WhatsApp gibi ayrı görünüm) */
.sohbet-head {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0 10px;
  border-bottom: 1px solid var(--border, #ddd);
  margin-bottom: 8px;
}

/* Mesaj satırı: balon + çöp simgesi yan yana */
.msg-satir { display: flex; align-items: center; gap: 6px; }
.msg-satir.sag { justify-content: flex-end; }
.msg-satir.sol { justify-content: flex-start; }
.msg-satir .msg { max-width: 80%; }
.msg-sil {
  background: transparent; border: none; cursor: pointer;
  font-size: 14px; opacity: 0.45; padding: 4px; flex-shrink: 0;
}
.msg-sil:hover { opacity: 1; }
.msg-list-tall { max-height: 65vh; min-height: 200px; }

/* Duyuru köy seçimi */
.duyuru-koyler {
  border: 1px solid var(--border, #ddd);
  border-radius: 10px; padding: 8px 10px; margin: 8px 0;
  background: var(--bg-card, #fff);
}
.dk-item {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; margin: 3px 10px 3px 0; cursor: pointer;
  white-space: nowrap;
}
.dk-tumu { display: flex; padding-bottom: 6px; margin-bottom: 6px;
  border-bottom: 1px dashed var(--border, #ddd); }
.dk-list { display: flex; flex-wrap: wrap; }
.dk-list input:disabled + * , .dk-list .dk-item:has(input:disabled) { opacity: 0.5; }

/* Duyuru sert onay kutusu */
.duyuru-onay {
  border: 2px solid #c2410c; background: #fff7ed;
  border-radius: 10px; padding: 12px; margin-top: 10px;
}

/* Şifre göster/gizle gözü */
.sifre-goz {
  flex-shrink: 0; width: 42px; height: 42px;
  border: 1px solid var(--border, #ddd); border-radius: 10px;
  background: var(--bg-card, #fff); font-size: 18px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Başvuru beklemede bandı */
.beklemede-bant {
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a5b1c;
  border-radius: 12px; padding: 12px 14px; margin: 10px 0;
  font-size: 14px; line-height: 1.5;
}

/* Bildirim izni çubuğu */
.bildirim-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #f3e7f3; border: 1px solid #e0cbe0;
  border-radius: 12px; padding: 10px 14px; margin: 10px 0;
  font-size: 13.5px;
}
.bildirim-bar span { flex: 1; min-width: 180px; }
.bildirim-bar .btn { flex-shrink: 0; padding: 8px 14px; }