/* ARESS - odeme.aressmice.com
   Palet logodan: altin #C8A661, koyu antrasit #1C1C1C, fildisi zemin */
:root {
  --gold: #c8a661;
  --gold-dark: #a8853f;
  --gold-soft: #f4ecdb;
  --ink: #1c1c1c;
  --ink-2: #2a2a2a;
  --text: #2b2b2b;
  --muted: #6f6a60;
  --line: #e5dfd2;
  --bg: #f7f4ee;
  --card: #ffffff;
  --danger: #b3261e;
  --danger-bg: #fbeceb;
  --success: #1f7a4d;
  --success-bg: #e8f5ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 28, 28, .08);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; }
a { color: var(--gold-dark); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 3px solid var(--gold); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; flex: 0 1 auto; min-width: 0; }
.brand img { display: block; width: 256px; height: auto; }
.header-right { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }

.secure-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--gold-soft); color: #6d5524;
  font-size: 13px; font-weight: 600; white-space: nowrap;
}

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.lang-switch a {
  padding: 6px 12px; font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); text-decoration: none;
}
.lang-switch a.active { background: var(--ink); color: var(--gold); }
.lang-switch a:not(.active):hover { background: var(--gold-soft); color: var(--ink); }

/* ---------- Main ---------- */
main { flex: 1 0 auto; padding: 36px 0 56px; }

.page-title { margin: 0 0 6px; font-size: 28px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.page-sub { margin: 0 0 28px; color: var(--muted); }

.pay-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 24px; align-items: start; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 28px; }
.card-title { margin: 0 0 20px; font-size: 18px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.card-title::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: var(--gold); }

/* ---------- Ozet ---------- */
.summary { background: var(--ink); color: #eee9df; border: 0; position: sticky; top: 20px; overflow: hidden; }
.summary::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--gold-dark), var(--gold), #e3cb95, var(--gold)); }
.summary .card-title { color: #fff; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 15px; }
.sum-row .k { color: #b5ad9d; flex: 0 0 auto; }
.sum-row .v { color: #fff; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.sum-desc { padding: 0 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.sum-desc .k { display: block; color: #b5ad9d; font-size: 13px; margin-bottom: 4px; }
.sum-desc .v { color: #fff; font-weight: 600; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 18px; }
.sum-total .k { color: #d9d2c3; font-weight: 600; }
.sum-total .v { color: var(--gold); font-size: 28px; font-weight: 700; white-space: nowrap; }
.sum-total .cur { font-size: 16px; font-weight: 600; margin-left: 4px; }
[hidden] { display: none !important; }

/* ---------- Form ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.input {
  width: 100%; height: 50px; padding: 0 14px;
  border: 1.5px solid #d8d1c2; border-radius: 10px;
  background: #fff; color: var(--ink);
  font: inherit; font-size: 17px;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #b3ac9f; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 166, 97, .28); }
.input.invalid { border-color: var(--danger); }
.input-upper { text-transform: uppercase; }

.input-wrap { position: relative; }
.input-wrap .input { padding-right: 132px; letter-spacing: .04em; }
.card-logos { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; pointer-events: none; }
.card-logos img { height: 24px; width: auto; }
.card-info { min-height: 20px; margin-top: 6px; font-size: 13px; color: var(--muted); }

.inst-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.inst-hint { padding: 14px 16px; border: 1px dashed #d8d1c2; border-radius: 10px; background: #fbf9f4; color: var(--muted); font-size: 14px; }
.inst {
  position: relative; display: block; cursor: pointer;
  padding: 12px 14px 12px 42px; border: 1.5px solid #d8d1c2; border-radius: 10px; background: #fff;
  transition: border-color .15s, background .15s;
}
.inst:hover { border-color: var(--gold); }
.inst input { position: absolute; left: 14px; top: 16px; width: 18px; height: 18px; margin: 0; accent-color: var(--gold-dark); }
.inst.selected { border-color: var(--gold-dark); background: var(--gold-soft); }
.inst .t { display: block; font-weight: 700; color: var(--ink); }
.inst .m { display: block; font-size: 13px; color: var(--muted); }
.inst .tot { display: block; margin-top: 2px; font-weight: 700; color: var(--ink); }
.inst .fee { display: block; font-size: 12px; color: var(--gold-dark); }
.inst .fee.none { color: var(--success); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border: 0; border-radius: 10px;
  background: var(--gold); color: var(--ink);
  font: inherit; font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn:hover { background: #d4b574; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(28, 28, 28, .35); outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: var(--gold); }
.btn-dark:hover { background: #333; }

.ssl-note { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }

.alert { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; font-size: 15px; }
.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #f1c9c6; }
.alert-info { background: var(--gold-soft); color: #6d5524; border: 1px solid #e6d7b4; }

.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(28, 28, 28, .25); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Durum / sonuc kartlari ---------- */
.status-wrap { max-width: 560px; margin: 24px auto 0; }
.status-card { text-align: center; }
.status-card .card-body { padding: 44px 32px; }
.status-icon { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.status-icon svg { width: 38px; height: 38px; }
.status-icon.ok { background: var(--success-bg); color: var(--success); }
.status-icon.warn { background: var(--gold-soft); color: var(--gold-dark); }
.status-icon.err { background: var(--danger-bg); color: var(--danger); }
.status-card h1 { margin: 0 0 10px; font-size: 24px; color: var(--ink); }
.status-card p { margin: 0 0 8px; color: var(--muted); }
.status-card .btn { margin-top: 22px; }
.detail-list { margin: 22px 0 0; padding: 0; list-style: none; text-align: left; border: 1px solid var(--line); border-radius: 10px; }
.detail-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.detail-list li:last-child { border-bottom: 0; }
.detail-list .k { color: var(--muted); flex: 0 0 auto; }
.detail-list .v { color: var(--ink); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.bank-msg { margin-top: 18px; padding: 12px 16px; border-radius: 10px; background: #fbf9f4; border: 1px solid var(--line); text-align: left; font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.bank-msg .k { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }

/* ---------- Footer ---------- */
.site-footer { flex: 0 0 auto; background: #fff; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 14px; }
.footer-contact { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-contact a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-contact a:hover { color: var(--gold-dark); }
.footer-contact .sep { color: var(--gold); font-weight: 700; }
.footer-cards { display: block; width: 157px; height: 30px; }
.footer-note { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-note p { margin: 0; }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .pay-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 560px) {
  main { padding: 24px 0 40px; }
  .wrap { padding: 0 16px; }
  .brand img { width: 168px; }
  .secure-badge span { display: none; }
  .secure-badge { padding: 7px; }
  .header-right { gap: 8px; }
  .page-title { font-size: 23px; }
  .card-body { padding: 20px; }
  .status-card .card-body { padding: 32px 20px; }
  .sum-total .v { font-size: 24px; }
  .inst-list { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation-duration: 1.6s !important; }
}
