/* Ulakbot — ortak tasarım katmanı (tanıtım sitesi, giriş ekranları, panel) */
:root {
  --ink: #0c1a33;
  --text: #26364f;
  --muted: #5d6c83;
  --faint: #8a97aa;
  --line: #e1e6ee;
  --line-strong: #cfd7e3;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-sunk: #eef2f7;
  --navy: #10295a;
  --navy-600: #173a7a;
  --navy-500: #2453a6;
  --navy-50: #eef3fb;
  --red: #c8102e;
  --red-50: #fdeef0;
  --green: #12795a;
  --green-50: #e8f5ef;
  --amber: #a15c00;
  --amber-50: #fdf3e3;
  --violet: #5b3fb5;
  --violet-50: #f1edfb;
  --sky: #0b6b9e;
  --sky-50: #e7f3fa;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(12, 26, 51, .06);
  --shadow: 0 1px 2px rgba(12, 26, 51, .05), 0 4px 14px rgba(12, 26, 51, .06);
  --shadow-lg: 0 2px 6px rgba(12, 26, 51, .06), 0 18px 40px rgba(12, 26, 51, .10);
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15.5px; line-height: 1.6; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-500); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
small { font-size: .86em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
code, kbd, .mono { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 2px solid var(--navy-500); outline-offset: 2px; }
::selection { background: #cfe0ff; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .16s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .22s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(4px); } }

.ico { width: 18px; height: 18px; flex: none; }
.ico-sm { width: 15px; height: 15px; flex: none; }
.ico-lg { width: 22px; height: 22px; flex: none; }

/* Düğmeler */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: var(--radius); border: 1px solid transparent; font: 600 14.5px/1 var(--font); cursor: pointer;
  white-space: nowrap; transition: background .18s, border-color .18s, color .18s, box-shadow .18s, transform .18s;
  text-decoration: none; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-600); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--navy-500); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg-sunk); color: var(--ink); }
.btn-danger { background: #fff; color: var(--red); border-color: #f0c5cc; }
.btn-danger:hover { background: var(--red-50); color: var(--red); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #0e6249; color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--navy-50); color: var(--navy); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; gap: 6px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12.5px; gap: 5px; border-radius: var(--radius-sm); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::after {
  content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; transition: .18s;
}
.icon-btn:hover { color: var(--navy); border-color: var(--line-strong); background: var(--bg-soft); }

/* Formlar */
.field { margin-bottom: 18px; }
.field > label, .label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-size: 12.8px; color: var(--muted); margin: 6px 0 0; }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; color: var(--ink); font: 400 14.5px/1.4 var(--font); transition: border-color .18s, box-shadow .18s;
}
.textarea { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235d6c83' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(36, 83, 166, .14); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input-sm, .select-sm { height: 36px; font-size: 13.5px; }
.input-group { display: flex; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; height: 42px; }
.field-error { color: var(--red); font-size: 12.8px; margin: 6px 0 0; }
.has-error .input, .has-error .select, .has-error .textarea { border-color: #e59aa7; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 38px; height: 22px; border-radius: 11px; background: var(--line-strong); position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--navy-500); outline-offset: 2px; }

/* Rozetler */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; background: var(--bg-sunk); color: var(--text); white-space: nowrap; line-height: 1;
}
.badge-navy { background: var(--navy-50); color: var(--navy-600); }
.badge-green { background: var(--green-50); color: var(--green); }
.badge-amber { background: var(--amber-50); color: var(--amber); }
.badge-red { background: var(--red-50); color: var(--red); }
.badge-violet { background: var(--violet-50); color: var(--violet); }
.badge-sky { background: var(--sky-50); color: var(--sky); }
.badge-dark { background: #4b5668; color: #fff; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); position: relative; display: inline-block; flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--red); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .7; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.tag-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 3px; background: #4f5a6c; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .01em; }

/* Uyarılar */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); border: 1px solid; font-size: 14px; margin-bottom: 18px; }
.alert .ico { margin-top: 2px; }
.alert-info { background: var(--navy-50); border-color: #d3def3; color: var(--navy-600); }
.alert-success { background: var(--green-50); border-color: #c4e6d6; color: #0d5e46; }
.alert-warning { background: var(--amber-50); border-color: #f3dcb4; color: #7a4600; }
.alert-danger, .alert-error { background: var(--red-50); border-color: #f2c6ce; color: #9c0c24; }
.alert p:last-child { margin: 0; }

/* Tablolar */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg-soft); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: #fafbfd; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .sub { display: block; font-size: 12.5px; color: var(--muted); }

/* Yardımcılar */
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-amber { color: var(--amber); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.flex { display: flex; }
.items-center { align-items: center; }
.between { justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(12, 26, 51, .42); z-index: 80; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; opacity: 0; transition: opacity .2s; overflow-y: auto; }
.modal-backdrop.open { opacity: 1; }
.modal { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 620px; transform: translateY(10px); transition: transform .24s var(--ease); }
.modal-backdrop.open .modal { transform: none; }
.modal-lg { max-width: 860px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--bg-soft); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* Bildirim (toast) */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 36px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; background: var(--ink); color: #fff; padding: 12px 14px; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 14px; transform: translateY(8px); opacity: 0; transition: .25s var(--ease); }
.toast.show { transform: none; opacity: 1; }
.toast.error { background: #8f0d22; }
.toast.success { background: #0d5e46; }

/* Kaydırınca beliren öğeler (bir kez) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
}
.field > label.check { display: flex; font-weight: 400; color: var(--text); font-size: 14px; margin: 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 32px; height: 32px; flex: none; }
.logo-word { font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -.02em; }
.logo-light .logo-word { color: #fff; }
.table th.text-right, .table td.text-right { text-align: right; }
.table th.text-center, .table td.text-center { text-align: center; }

/* Seçim kutuları ve adet seçici (site ve panel ortak) */
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-in { display: block; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px; transition: border-color .18s, box-shadow .18s, background .18s; height: 100%; }
.choice-in strong { display: block; color: var(--ink); font-size: 15px; }
.choice-in span { font-size: 13px; color: var(--muted); }
.choice input:checked + .choice-in { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); background: var(--navy-50); }
.choice input:focus-visible + .choice-in { outline: 2px solid var(--navy-500); outline-offset: 2px; }
.addon-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.addon-row:last-child { border-bottom: 0; padding-bottom: 0; }
.addon-row strong { display: block; color: var(--ink); font-size: 14.5px; }
.addon-row small { color: var(--muted); font-size: 12.8px; }
.addon-price { font-size: 13.5px; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.stepper button { width: 32px; height: 32px; border: 0; background: #fff; color: var(--ink); font-size: 17px; cursor: pointer; transition: background .15s; }
.stepper button:hover { background: var(--bg-soft); }
.stepper input { width: 40px; height: 32px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font: 600 14px var(--font); color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
