/* ============================================================
   license.css — YtaPOS kurulum & lisans ekranı (v2 tasarım)
   Renkler css/app.css değişkenlerinden gelir.
   ============================================================ */
.setup-overlay {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(99, 102, 241, .28), transparent 60%),
              radial-gradient(900px 500px at 110% 110%, rgba(124, 58, 237, .22), transparent 60%),
              var(--bg);
  animation: fade-in .4s ease;
  overflow: auto;
}
.setup-card {
  width: 100%; max-width: 500px; padding: 34px 38px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  animation: rise .45s var(--ease) both;
}

.setup-logo { display: flex; align-items: center; justify-content: center; gap: 11px; margin-bottom: 18px; }
.setup-logo-icon {
  width: 46px; height: 46px; border-radius: 14px; background: var(--brand-grad);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff;
  box-shadow: 0 10px 22px -10px rgba(99, 102, 241, .8);
}
.setup-logo-text { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.setup-logo-text span { color: var(--brand-600); }

.setup-welcome { text-align: center; margin-bottom: 24px; }
.setup-welcome h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); margin: 0 0 6px; }
.setup-welcome p { font-size: .875rem; color: var(--text-3); margin: 0; line-height: 1.5; }

.setup-steps { display: flex; align-items: center; justify-content: center; margin-bottom: 26px; }
.setup-step {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-3); border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800; color: var(--text-3);
  transition: all .3s var(--ease);
}
.setup-step.active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; box-shadow: 0 0 0 5px rgba(99, 102, 241, .18); transform: scale(1.06); }
.setup-step.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.setup-step-line { flex: 1; height: 2px; background: var(--line); min-width: 40px; max-width: 80px; }

.setup-pane-title { font-size: 1.02rem; font-weight: 800; color: var(--text); margin: 0 0 4px; }
.setup-pane-sub { font-size: .84rem; color: var(--text-3); margin: 0 0 20px; line-height: 1.5; }

.setup-form { display: grid; gap: 14px; margin-bottom: 16px; }
.setup-field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.setup-field > input, .setup-field > select {
  width: 100%; height: 42px; padding: 0 13px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-size: .9rem; transition: border-color .2s, box-shadow .2s; box-sizing: border-box;
}
.setup-field > input:focus, .setup-field > select:focus { outline: none; border-color: var(--brand-400); box-shadow: var(--ring); }
.setup-field-hint { font-size: 11.5px; color: var(--text-3); margin-top: 5px; display: block; }

.setup-phone-wrap { display: flex; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.setup-phone-wrap:focus-within { border-color: var(--brand-400); box-shadow: var(--ring); }
.setup-phone-prefix {
  display: flex; align-items: center; gap: 6px; padding: 0 12px;
  background: var(--surface-3); border-right: 1px solid var(--line);
  font-size: .875rem; font-weight: 600; color: var(--text-2); white-space: nowrap;
}
.setup-phone-wrap input { height: 42px; padding: 0 13px; font-size: .9rem; color: var(--text); outline: none; border: none !important; box-shadow: none !important; background: transparent; border-radius: 0; flex: 1; min-width: 0; }
.setup-phone-prefix option, #setup-lang option { background-color: var(--surface); color: var(--text); }

.setup-actions { display: flex; gap: 10px; margin-top: 20px; }
.setup-btn {
  flex: 1; min-height: 48px; padding: 12px 20px; border-radius: var(--r); border: none;
  line-height: 1.3; text-align: center; text-decoration: none;
  font-size: .92rem; font-weight: 700; cursor: pointer; transition: all .2s var(--ease);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.setup-btn:disabled { opacity: .5; cursor: not-allowed; }
.setup-btn:active:not(:disabled) { transform: scale(.98); }
.setup-btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 10px 22px -10px rgba(99, 102, 241, .8); }
.setup-btn-primary:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.setup-btn-trial { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-200); }
.setup-btn-trial:hover:not(:disabled) { background: var(--brand-100); }
.setup-btn-ghost { background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line); }
.setup-btn-ghost:hover:not(:disabled) { color: var(--text); }
.setup-arrow { font-size: 1rem; }
.setup-actions[style*="column"] .setup-btn { flex: none; width: 100%; }
:root[data-theme="dark"] .setup-btn-trial { color: var(--brand-300); border-color: var(--brand-200); }
:root[data-theme="dark"] .setup-btn-trial:hover:not(:disabled) { color: #fff; }

.setup-error { background: var(--danger-bg); border: 1px solid transparent; color: var(--danger); border-radius: var(--r-sm); padding: 10px 14px; font-size: .84rem; margin-bottom: 8px; animation: shake .4s ease; }

.setup-loading { display: flex; align-items: center; gap: 10px; color: var(--brand-600); font-size: .85rem; margin-bottom: 10px; }
.setup-spinner { width: 18px; height: 18px; border: 2px solid var(--brand-100); border-top-color: var(--brand-600); border-radius: 50%; animation: spin .8s linear infinite; }

.setup-info-box { background: var(--ok-bg); border: 1px solid transparent; border-radius: var(--r); padding: 14px 16px; font-size: .875rem; color: var(--text-2); line-height: 1.6; text-align: left; margin-top: 16px; }
.setup-info-box strong { color: var(--ok); }

.setup-uzak-link { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--text-3); }
.setup-uzak-link button { border: 0; background: none; color: var(--brand-500); font: 700 13px var(--font); cursor: pointer; padding: 4px; }
.setup-key-chip { margin: 4px 4px 0 0; padding: 4px 9px; border-radius: 8px; border: 1px solid var(--brand-200); background: var(--brand-50); color: var(--brand-700); font: 600 12px var(--mono); cursor: pointer; }

@media (max-width: 520px) {
  .setup-card { padding: 60px 20px 24px; }
  .setup-actions { flex-direction: column; }
  .setup-btn { flex: none; width: 100%; }
}
