/* ==============================================
   BRIEF CRM — style.css
   Sürüm: 1.0  |  Temiz, PHP-uyumlu
   ============================================== */

/* ── Değişkenler ─────────────────────────────── */
:root {
  --c-bg:          #0f0f13;
  --c-surface:     #17171d;
  --c-surface-2:   #1e1e27;
  --c-border:      #2a2a38;
  --c-border-2:    #363648;
  --c-text:        #e2e2ea;
  --c-text-2:      #8e8ea8;
  --c-text-3:      #555568;
  --c-accent:      #e8611a;
  --c-accent-2:    #ff7c38;
  --c-accent-bg:   rgba(232,97,26,.08);
  --c-accent-bdr:  rgba(232,97,26,.25);
  --c-success:     #22c55e;
  --c-success-bg:  rgba(34,197,94,.08);
  --c-danger:      #ef4444;
  --c-danger-bg:   rgba(239,68,68,.08);
  --c-warn:        #f59e0b;
  --c-sector:      #7c3aed;
  --c-sector-bg:   rgba(124,58,237,.1);
  --c-sector-bdr:  rgba(124,58,237,.3);
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-xl:     20px;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.3);
  --shadow-md:     0 6px 24px rgba(0,0,0,.4);
  --font-head:     'Instrument Serif', serif;
  --font-body:     'DM Sans', sans-serif;
  --transition:    .2s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ──────────────────────────────────── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(15,15,19,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  background: var(--c-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  line-height: 1.1;
}

.brand-sub {
  font-size: 11px;
  color: var(--c-text-3);
  letter-spacing: .03em;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Progress Ring */
.progress-ring-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  cursor: default;
}

.progress-ring {
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: var(--c-border);
  stroke-width: 3;
}

.ring-fill {
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset .6s cubic-bezier(.4,0,.2,1);
}

.ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--c-text-2);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--c-text-2);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-warn   { background: var(--c-warn); }
.dot-ok     { background: var(--c-success); }
.dot-danger { background: var(--c-danger); }

.header-progress-bar {
  height: 2px;
  background: var(--c-border);
  overflow: hidden;
}

.header-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-2));
  transition: width .5s cubic-bezier(.4,0,.2,1);
}

/* ── Step Nav ─────────────────────────────────── */
.step-nav {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 69px;
  z-index: 100;
}

.step-nav-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
}

.step-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--c-text-3);
  transition: color var(--transition);
  white-space: nowrap;
  flex: 1;
}

.step-btn:hover  { color: var(--c-text-2); }
.step-btn.active { color: var(--c-accent); }
.step-btn.done   { color: var(--c-success); }

.step-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
}

.step-lbl {
  font-size: 10px;
  letter-spacing: .03em;
}

.step-divider {
  width: 1px;
  height: 28px;
  background: var(--c-border);
  flex-shrink: 0;
}

/* ── Main Layout ──────────────────────────────── */
.main-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* ── Step Panels ──────────────────────────────── */
.step-panel {
  display: none;
  animation: fadeInUp .3s ease both;
}

.step-panel.active {
  display: block;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Panel Head ───────────────────────────────── */
.panel-head {
  margin-bottom: 28px;
}

.panel-eyebrow {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--c-accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.panel-title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
}

.panel-desc {
  font-size: 14px;
  color: var(--c-text-2);
  max-width: 480px;
}

/* ── Cards ────────────────────────────────────── */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 16px;
  transition: border-color var(--transition);
}

.card:hover {
  border-color: var(--c-border-2);
}

.card-label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text-2);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Collapsible cards */
.card.collapsible {
  padding: 0;
  overflow: hidden;
}

.card-header-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
}

.card-header-toggle:hover {
  background: var(--c-surface-2);
}

.card-header-toggle .card-label {
  margin-bottom: 0;
}

.toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--c-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
}

.toggle-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--c-text-3);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-header-toggle.open .toggle-icon {
  transform: rotate(180deg);
  background: var(--c-accent-bg);
}

.card-header-toggle.open .toggle-icon svg {
  stroke: var(--c-accent);
}

.card-body {
  padding: 4px 24px 24px;
  display: none;
  border-top: 1px solid var(--c-border);
}

.card-body.open {
  display: block;
}

/* ── Grid ─────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid-1 {
  display: grid;
  gap: 16px;
}

.span-2 {
  grid-column: 1 / -1;
}

/* ── Form Fields ──────────────────────────────── */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.field-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text-2);
  letter-spacing: .02em;
}

.req {
  color: var(--c-accent);
}

.field-input {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--c-text);
  background: var(--c-surface-2);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  width: 100%;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.field-input::placeholder { color: var(--c-text-3); }

.field-input:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-bg);
}

.field-input:hover:not(:focus) {
  border-color: var(--c-border-2);
}

textarea.field-input {
  resize: vertical;
  min-height: 80px;
}

select.field-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath stroke='%238e8ea8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round' d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
  cursor: pointer;
}

.field-input.error {
  border-color: var(--c-danger);
  box-shadow: 0 0 0 3px var(--c-danger-bg);
}

.field-error {
  font-size: 11px;
  color: var(--c-danger);
  display: none;
}

.field-error.visible {
  display: block;
}

.field-desc-sm {
  font-size: 12px;
  color: var(--c-text-3);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Input prefix */
.input-prefix-wrap {
  display: flex;
  align-items: center;
  background: var(--c-surface-2);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input-prefix-wrap:focus-within {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-bg);
}

.input-prefix {
  font-size: 11px;
  color: var(--c-text-3);
  background: var(--c-border);
  padding: 10px 10px;
  white-space: nowrap;
  border-right: 1px solid var(--c-border);
  line-height: 1;
}

.prefix-input {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  flex: 1;
  min-width: 0;
}

.prefix-input:focus {
  border: none;
  box-shadow: none;
}

/* ── Upload Zone ──────────────────────────────── */
.upload-zone {
  border: 1.5px dashed var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: var(--c-surface-2);
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--c-accent);
  background: var(--c-accent-bg);
}

.upload-zone.has-file {
  border-style: solid;
  border-color: var(--c-accent);
  background: var(--c-accent-bg);
}

.upload-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
}

.upload-icon svg {
  width: 44px;
  height: 44px;
  stroke: var(--c-text-3);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-zone:hover .upload-icon svg,
.upload-zone.drag-over .upload-icon svg,
.upload-zone.has-file .upload-icon svg {
  stroke: var(--c-accent);
}

.upload-text {
  font-size: 14px;
  color: var(--c-text-2);
  margin-bottom: 4px;
}

.upload-link {
  color: var(--c-accent);
  text-decoration: underline;
  text-decoration-style: dotted;
}

.upload-hint {
  font-size: 11px;
  color: var(--c-text-3);
}

.upload-preview {
  margin-top: 12px;
}

.file-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-surface);
  border: 1px solid var(--c-accent-bdr);
  border-radius: var(--radius-md);
  padding: 5px 10px;
  font-size: 12px;
  color: var(--c-accent);
  margin: 3px;
}

.file-item button {
  background: none;
  border: none;
  color: var(--c-text-3);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
  transition: color var(--transition);
}

.file-item button:hover { color: var(--c-danger); }

.file-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ── Radio Cards ──────────────────────────────── */
.radio-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.radio-card {
  position: relative;
  cursor: pointer;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-body {
  background: var(--c-surface-2);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
}

.radio-card:hover .radio-body {
  border-color: var(--c-border-2);
}

.radio-card input:checked + .radio-body {
  border-color: var(--c-accent);
  background: var(--c-accent-bg);
}

.radio-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--c-text);
  margin-bottom: 4px;
}

.radio-sub {
  font-size: 11px;
  color: var(--c-text-3);
}

/* ── Menu Builder ─────────────────────────────── */
.menu-list {
  margin-bottom: 10px;
}

.menu-item {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  user-select: none;
}

.menu-item.dragging {
  opacity: .4;
  cursor: grabbing;
}

.menu-item.drag-target {
  border-color: var(--c-accent);
  border-style: dashed;
}

.menu-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.drag-handle {
  cursor: grab;
  color: var(--c-text-3);
  flex-shrink: 0;
  padding: 2px;
  line-height: 0;
  transition: color var(--transition);
}

.drag-handle:hover { color: var(--c-text-2); }

.drag-handle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.menu-item-input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text);
  background: transparent;
  border: none;
  outline: none;
  min-width: 0;
}

.menu-item-input::placeholder { color: var(--c-text-3); }

.menu-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.icon-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-3);
  transition: background var(--transition), color var(--transition);
}

.icon-btn:hover { background: var(--c-surface); color: var(--c-text-2); }
.icon-btn.danger:hover { background: var(--c-danger-bg); color: var(--c-danger); }

.icon-btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sub-menu {
  padding: 0 12px 10px 36px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sub-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-prefix {
  font-size: 12px;
  color: var(--c-text-3);
  flex-shrink: 0;
  line-height: 1;
}

.sub-input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--c-text-2);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  outline: none;
  transition: border-color var(--transition);
}

.sub-input:focus { border-color: var(--c-accent); }

.sub-remove {
  width: 22px;
  height: 22px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--c-text-3);
  font-size: 15px;
  line-height: 1;
  transition: color var(--transition);
  flex-shrink: 0;
}

.sub-remove:hover { color: var(--c-danger); }

/* ── URL List ─────────────────────────────────── */
.url-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.url-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.url-num {
  width: 24px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--c-text-3);
  flex-shrink: 0;
}

.url-inputs {
  flex: 1;
  display: grid;
  gap: 6px;
}

.url-remove {
  width: 38px;
  height: 38px;
  border: 1px solid var(--c-border);
  background: var(--c-surface-2);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-3);
  flex-shrink: 0;
  transition: all var(--transition);
}

.url-remove:hover {
  border-color: var(--c-danger);
  background: var(--c-danger-bg);
  color: var(--c-danger);
}

.url-remove svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* ── Hizmet List ──────────────────────────────── */
.hizmet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.hizmet-item {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.hizmet-row {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 10px;
  align-items: flex-start;
}

.hizmet-desc-wrap {
  margin-top: 8px;
}

/* ── Badges ───────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
}

.badge-required {
  background: rgba(239,68,68,.12);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,.25);
}

.badge-opt {
  background: rgba(245,158,11,.1);
  color: var(--c-warn);
  border: 1px solid rgba(245,158,11,.25);
}

.badge-sector {
  background: var(--c-sector-bg);
  color: #a78bfa;
  border: 1px solid var(--c-sector-bdr);
}

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background: var(--c-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--c-accent-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: var(--c-surface-2);
  color: var(--c-text-2);
  border: 1.5px solid var(--c-border);
}

.btn-ghost:hover {
  border-color: var(--c-border-2);
  color: var(--c-text);
}

.btn-send {
  background: var(--c-success);
  color: #fff;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 15px;
}

.btn-send:hover {
  background: #16a34a;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(34,197,94,.3);
}

.btn-send:disabled {
  background: #1a3a22;
  color: #2d6a3f;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost.btn-ghost-sm {
  font-size: 12px;
  padding: 7px 14px;
}

/* btn-ghost standalone (add items) */
button.btn-ghost {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--c-text-3);
  background: transparent;
  border: 1.5px dashed var(--c-border);
  border-radius: var(--radius-md);
  padding: 9px 16px;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  transition: all var(--transition);
}

button.btn-ghost svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

button.btn-ghost:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: var(--c-accent-bg);
}

/* ── Step Actions ─────────────────────────────── */
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
}

/* ── Info Note ────────────────────────────────── */
.info-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: rgba(245,158,11,.06);
  border: 1px solid rgba(245,158,11,.18);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 12px;
  color: rgba(245,158,11,.9);
  margin-top: 14px;
}

.info-note svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Lock / Unlock Bar ────────────────────────── */
.lock-bar,
.unlock-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 13px;
}

.lock-bar {
  background: var(--c-danger-bg);
  border: 1.5px solid rgba(239,68,68,.25);
  color: #fca5a5;
}

.unlock-bar {
  background: var(--c-success-bg);
  border: 1.5px solid rgba(34,197,94,.25);
  color: #86efac;
}

.lock-icon,
.unlock-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lock-icon {
  background: rgba(239,68,68,.15);
}

.lock-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--c-danger);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.unlock-icon {
  background: var(--c-success-bg);
}

.unlock-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--c-success);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.lock-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lock-text strong {
  font-weight: 600;
}

.lock-text span {
  font-size: 12px;
  opacity: .75;
}

/* ── Summary Panel ────────────────────────────── */
.summary-section {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  margin-bottom: 14px;
}

.summary-title {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
}

.summary-row {
  display: flex;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(42,42,56,.6);
  align-items: flex-start;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-key {
  font-size: 12px;
  color: var(--c-text-3);
  flex: 0 0 160px;
  padding-top: 1px;
}

.summary-val {
  font-size: 13px;
  color: var(--c-text);
  flex: 1;
  word-break: break-word;
}

.summary-val.missing {
  color: var(--c-danger);
  font-style: italic;
}

.summary-val.ok {
  color: var(--c-success);
}

/* ── Sector Fields ────────────────────────────── */
.sector-field {
  display: none;
}

.sector-field.visible {
  display: block;
}

/* ── Success Overlay ──────────────────────────── */
.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.success-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  animation: scaleIn .35s cubic-bezier(.34,1.56,.64,1);
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
}

.success-icon svg {
  width: 72px;
  height: 72px;
  stroke: var(--c-success);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-icon svg circle {
  fill: var(--c-success-bg);
  stroke: var(--c-success);
}

.success-card h2 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.success-card p {
  font-size: 14px;
  color: var(--c-text-2);
  margin-bottom: 24px;
  line-height: 1.7;
}

.success-meta {
  background: var(--c-surface-2);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.success-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 12px;
}

.success-meta-row span:first-child { color: var(--c-text-3); }
.success-meta-row span:last-child  { color: var(--c-text); font-weight: 500; }

/* ── Scrollbar ────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-border-2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-text-3); }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 640px) {
  .header-inner { padding: 12px 16px; }
  .main-wrap    { padding: 20px 16px 60px; }
  .grid-2       { grid-template-columns: 1fr; }
  .span-2       { grid-column: 1; }
  .radio-group  { grid-template-columns: 1fr; }
  .panel-title  { font-size: 22px; }
  .step-lbl     { display: none; }
  .step-btn     { padding: 12px 6px; }
  .card         { padding: 18px; }
  .card-body    { padding: 4px 16px 18px; }
  .hizmet-row   { grid-template-columns: 1fr; }
}
