@charset "UTF-8";
:root {
  --tera-bg: #090909;
  --tera-card: #0C111B;
  --tera-border: #1B2333;
  --tera-blue: #446CD4;
  --tera-blue-soft: rgba(68, 108, 212, 0.25);
  --tera-text: #F4F4F5;
  --tera-muted: #A1A1AA;
  --tera-subtle: #52525B;
  --tera-green: #10B981;
  --tera-red: #EF4444;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: #141414;
  color: var(--tera-text);
  -webkit-font-smoothing: antialiased;
}
html { overflow-y: auto; }
body { min-height: 100vh; overflow-x: hidden; }

/* Prototype stage: center one phone, show the active screen */
.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 76px 16px 240px;
  position: relative;
  min-height: calc(100vh + 200px);
}

.stage-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 24px;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #71717A;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 100;
  gap: 12px;
}
.stage-header .flow-label {
  color: #D4D4D8;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.stage-header select {
  background: #1B2333;
  color: #F4F4F5;
  border: 1px solid #27272A;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  outline: none;
}
.stage-header .hint { color: #52525B; font-size: 11px; letter-spacing: 0.06em; }
.stage-header .hint-btn {
  background: #1B2333;
  color: #F4F4F5;
  border: 1px solid #27272A;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}
.stage-header .hint-btn:hover { background: #27272A; }

/* Active screen = visible, others hidden */
.screen { display: none; }
.screen.active { display: block; animation: screenIn 0.28s ease-out; }
@keyframes screenIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ PHONE FRAME ============ */
.phone {
  width: 390px;
  height: 844px;
  background: var(--tera-bg);
  border-radius: 44px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--tera-text);
}

/* Shrink phone to fit smaller preview panels so bottom CTAs remain reachable */
@media (max-height: 960px) { .phone { zoom: 0.88; } }
@media (max-height: 860px) { .phone { zoom: 0.78; } }
@media (max-height: 760px) { .phone { zoom: 0.68; } }
@media (max-height: 660px) { .phone { zoom: 0.58; } }

/* Ambient blue glow — signature Tera effect */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  background: var(--tera-blue);
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.phone::before {
  /* top-left glow */
  width: 240px;
  height: 380px;
  left: -140px;
  top: 60px;
  opacity: 0.55;
  transform: rotate(-60deg);
  border-radius: 50%;
}
.phone::after {
  /* bottom glow */
  width: 260px;
  height: 420px;
  left: -120px;
  bottom: -180px;
  opacity: 0.4;
  transform: rotate(14deg);
  border-radius: 50%;
}

.phone > * { position: relative; z-index: 1; }

/* ============ STATUS BAR ============ */
.status-bar {
  height: 54px;
  padding: 0 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--tera-text);
}
.status-bar .icons { display: flex; gap: 6px; align-items: center; }

/* ============ HOME INDICATOR ============ */
.home-indicator {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  border-radius: 2.5px;
  background: var(--tera-text);
  z-index: 10;
}

/* ============ NAV BAR ============ */
.nav-bar {
  height: 44px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
}
.nav-bar .nav-title {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.nav-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tera-text);
  background: transparent;
  border: none;
  cursor: pointer;
}

/* ============ USER AVATAR ============ */
.user-avatar {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(68,108,212,0.35), rgba(68,108,212,0.1) 65%, transparent 80%);
  border: 1.5px solid rgba(68,108,212,0.6);
  box-shadow: 0 0 32px -6px rgba(68,108,212,0.5), inset 0 0 24px rgba(68,108,212,0.18);
  color: var(--tera-text);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.user-avatar .swap {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--tera-bg);
  border: 1.5px solid var(--tera-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tera-text);
  cursor: pointer;
}

/* ============ BRAND LOGO ============ */
.tera-logo {
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--tera-text);
  text-align: center;
  font-weight: 300;
}
.tera-logo b { font-weight: 800; }

/* ============ CONTENT AREA ============ */
.content {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.heading-xl {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.heading-sm {
  font-size: 15px;
  font-weight: 400;
  color: var(--tera-muted);
  line-height: 1.4;
}

/* ============ INPUT ============ */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--tera-text);
}
.input {
  height: 56px;
  padding: 0 18px;
  background: rgba(12, 17, 27, 0.7);
  border: 1px solid var(--tera-border);
  border-radius: 14px;
  color: var(--tera-text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.input::placeholder { color: var(--tera-muted); opacity: 0.7; }
.input:focus {
  border-color: var(--tera-blue);
  box-shadow: 0 0 0 4px var(--tera-blue-soft);
}

.input-row { display: flex; gap: 10px; }

/* Error state */
.field.error .input,
.field.error .input-prefix,
.field.error .select-trigger {
  border-color: var(--tera-red);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}
.field-error {
  font-size: 12px;
  color: var(--tera-red);
  display: none;
  margin-top: -2px;
  line-height: 1.35;
  padding-left: 4px;
}
.field.error .field-error { display: flex; gap: 6px; align-items: flex-start; }
.field-error::before {
  content: "⚠";
  display: inline-block;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}
.input-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 56px;
  background: rgba(12, 17, 27, 0.7);
  border: 1px solid var(--tera-border);
  border-radius: 14px;
  font-size: 15px;
  color: var(--tera-text);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.country-select { position: relative; flex-shrink: 0; }
.country-select .input-prefix { width: 100%; }
.country-select.open .input-prefix {
  border-color: var(--tera-blue);
  box-shadow: 0 0 0 4px var(--tera-blue-soft);
}
.country-select .select-panel {
  min-width: 280px;
  left: 0;
  right: auto;
  max-height: 280px;
}
.country-select .select-arrow { transition: transform 0.2s; }
.country-select.open .select-arrow { transform: rotate(180deg); }
.country-option {
  display: flex !important;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 12px !important;
}
.country-option .flag {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.country-option .country-name {
  flex: 1;
  font-size: 14px;
  color: var(--tera-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.country-option .country-code { font-size: 13px; color: var(--tera-muted); }
.input-prefix .flag {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  overflow: hidden;
}

/* ============ CHECKBOX + ROW ============ */
.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tera-text);
  font-size: 14px;
  cursor: pointer;
}
.checkbox {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--tera-muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.checkbox { transition: all 0.15s; }
.checkbox svg { display: none; }
.checkbox.checked {
  border-color: var(--tera-blue);
  background: var(--tera-blue);
  box-shadow: 0 0 10px -2px var(--tera-blue);
}
.checkbox.checked svg { display: block; color: var(--tera-text); }
.link {
  font-size: 14px;
  color: var(--tera-text);
  text-decoration: none;
  cursor: pointer;
}

/* ============ BUTTONS ============ */
.btn {
  height: 56px;
  border-radius: 28px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--tera-blue);
  color: var(--tera-text);
  box-shadow: 0 0 0 1px rgba(68,108,212,0.6), 0 10px 30px -8px rgba(68,108,212,0.45);
}
.btn-primary:disabled,
.btn-primary.disabled {
  background: rgba(27, 35, 51, 0.7);
  color: var(--tera-muted);
  box-shadow: none;
  cursor: not-allowed;
}
.btn-secondary {
  background: rgba(27, 35, 51, 0.6);
  color: var(--tera-text);
  border: 1px solid var(--tera-border);
  box-shadow: none;
}
.btn-ghost {
  background: transparent;
  color: var(--tera-text);
}

/* ============ BOTTOM SHEET (modal) ============ */
.sheet {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: none;
  pointer-events: auto;
}
.sheet.open { display: block; }
.sheet .backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: sheetFade 0.2s ease-out;
}
.sheet .panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: #0C111B;
  border: 1px solid var(--tera-border);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  padding: 10px 24px 32px;
  box-shadow: 0 -20px 40px -8px rgba(0,0,0,0.6);
  animation: sheetSlide 0.22s cubic-bezier(.2,.8,.2,1);
}
.sheet .grabber {
  width: 42px; height: 4px; border-radius: 2px;
  background: var(--tera-border);
  margin: 0 auto 18px;
}
.sheet .title {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--tera-text);
  margin-bottom: 10px;
}
.sheet .body {
  text-align: center;
  font-size: 14px;
  color: var(--tera-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}
.sheet .link-row {
  text-align: center;
  margin-bottom: 12px;
}
.sheet .link-row a {
  color: var(--tera-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
@keyframes sheetFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes sheetSlide {
  from { transform: translateY(40%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Underlined info link (inline button) */
.info-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--tera-blue);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  margin-top: -6px;
}
.info-link:hover { opacity: 0.85; }

/* Uygunluk Testi quiz blocks */
.quiz-block {
  padding: 16px;
  background: rgba(12, 17, 27, 0.6);
  border: 1px solid var(--tera-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quiz-q {
  font-size: 14px;
  font-weight: 600;
  color: var(--tera-text);
  line-height: 1.4;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(9, 9, 9, 0.5);
  border: 1px solid var(--tera-border);
  border-radius: 12px;
  font-size: 13px;
  color: var(--tera-text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.quiz-option:hover {
  border-color: rgba(68, 108, 212, 0.4);
}
.quiz-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.quiz-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--tera-border);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.15s;
}
.quiz-option:has(input:checked) {
  border-color: var(--tera-blue);
  background: rgba(68, 108, 212, 0.12);
}
.quiz-option:has(input:checked) .quiz-dot {
  border-color: var(--tera-blue);
}
.quiz-option:has(input:checked) .quiz-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--tera-blue);
}

/* Profile list inside bottom sheet */
.profile-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.profile-row, .profile-add {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(12, 17, 27, 0.6);
  border: 1px solid var(--tera-border);
  border-radius: 14px;
  color: var(--tera-text);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.profile-row:hover, .profile-add:hover {
  background: rgba(68, 108, 212, 0.08);
  border-color: rgba(68, 108, 212, 0.35);
}
.profile-row.selected {
  border-color: var(--tera-blue);
  background: rgba(68, 108, 212, 0.12);
}
.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(68, 108, 212, 0.2);
  color: var(--tera-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  border: 1px solid rgba(68, 108, 212, 0.4);
}
.profile-avatar--add {
  background: transparent;
  color: var(--tera-muted);
  border-style: dashed;
}
.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.profile-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--tera-text);
}
.profile-sub {
  font-size: 12px;
  color: var(--tera-muted);
}
.profile-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--tera-border);
  color: var(--tera-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
}
.profile-row.selected .profile-check {
  border-color: var(--tera-blue);
  background: var(--tera-blue);
  opacity: 1;
}

/* ============ BOTTOM STACK ============ */
.bottom-stack {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}

/* ============ OTP ============ */
.otp-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.otp-cell {
  flex: 1;
  aspect-ratio: 1 / 1.15;
  max-width: 54px;
  background: rgba(12, 17, 27, 0.7);
  border: 1px solid var(--tera-border);
  border-radius: 14px;
  color: var(--tera-text);
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.otp-cell.active {
  border-color: var(--tera-blue);
  box-shadow: 0 0 0 4px var(--tera-blue-soft);
}

.resend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
  color: var(--tera-muted);
}
.resend-row .countdown { color: var(--tera-text); font-weight: 500; }

/* ============ STEPPER ============ */
.stepper {
  display: flex;
  gap: 6px;
  padding: 0 24px;
  margin-top: 4px;
}
.stepper .step {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--tera-border);
}
.stepper .step.active { background: var(--tera-blue); box-shadow: 0 0 10px -2px var(--tera-blue); }

/* ============ ID CARD FRAME ============ */
.id-frame {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1.58 / 1;
  margin: 0 auto;
  border-radius: 20px;
  position: relative;
  background: radial-gradient(circle at 30% 30%, rgba(68,108,212,0.22), rgba(68,108,212,0.04) 70%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 48px rgba(68,108,212,0.18);
}
.id-frame::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 20px;
  border: 1.5px dashed rgba(68,108,212,0.55);
}
.id-corners span {
  position: absolute;
  width: 24px; height: 24px;
  border: 2px solid var(--tera-blue);
  box-shadow: 0 0 8px -1px rgba(68,108,212,0.6);
}
.id-corners span:nth-child(1) { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.id-corners span:nth-child(2) { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.id-corners span:nth-child(3) { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.id-corners span:nth-child(4) { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.id-hint {
  color: var(--tera-text);
  opacity: 0.65;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============ VIDEO CALL ============ */
.call-frame {
  width: 100%;
  height: 420px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 65%, rgba(68,108,212,0.25), transparent 60%),
    linear-gradient(160deg, #0E1729, #050914);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--tera-border);
}
.call-frame .agent-avatar {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  width: 104px; height: 104px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(68,108,212,0.4), rgba(68,108,212,0.1) 60%);
  border: 1.5px solid rgba(68,108,212,0.6);
  display: flex; align-items: center; justify-content: center;
  color: var(--tera-text);
  font-size: 30px;
  font-weight: 600;
  box-shadow: 0 0 60px -6px rgba(68,108,212,0.5);
}
.call-frame .agent-meta {
  position: absolute;
  left: 0; right: 0;
  bottom: 72px;
  text-align: center;
  color: var(--tera-text);
}
.call-frame .agent-meta .name { font-size: 17px; font-weight: 600; }
.call-frame .agent-meta .role { font-size: 12px; color: var(--tera-muted); margin-top: 2px; }
.call-frame .self-pip {
  position: absolute;
  top: 14px; right: 14px;
  width: 72px; height: 96px;
  border-radius: 14px;
  background: radial-gradient(circle at center, rgba(68,108,212,0.35), rgba(68,108,212,0.05) 70%);
  border: 1.5px solid rgba(68,108,212,0.7);
  display: flex; align-items: center; justify-content: center;
  color: var(--tera-text);
  opacity: 0.75;
}
.call-frame .call-chip {
  position: absolute;
  top: 14px; left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.75);
  backdrop-filter: blur(10px);
  color: var(--tera-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex; gap: 8px; align-items: center;
}
.call-frame .call-chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tera-green);
  box-shadow: 0 0 8px rgba(16,185,129,0.7);
}

.call-controls {
  display: flex; gap: 18px; justify-content: center; padding-top: 8px;
}
.call-controls button {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--tera-border);
  background: rgba(12,17,27,0.85);
  color: var(--tera-text);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s;
}
.call-controls button:active { transform: scale(0.95); }
.call-controls .end {
  background: var(--tera-red);
  border-color: var(--tera-red);
  box-shadow: 0 0 20px -4px var(--tera-red);
}

/* ============ CAMERA ============ */
.camera-frame {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
  background: radial-gradient(circle at center, rgba(68,108,212,0.28), rgba(68,108,212,0.05) 65%, transparent 78%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 60px rgba(68,108,212,0.18);
}
.camera-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(68,108,212,0.55);
}
.camera-frame .ring-progress {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  transform: rotate(-90deg);
}
.camera-frame .face-ghost {
  color: var(--tera-text);
  opacity: 0.65;
}

.record-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 12px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: var(--tera-red);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.record-chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tera-red);
  box-shadow: 0 0 0 0 rgba(239,68,68,0.6);
  animation: pulseDot 1.2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

.pose-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.pose-dots .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tera-border);
}
.pose-dots .dot.done { background: var(--tera-blue); box-shadow: 0 0 8px -1px var(--tera-blue); }
.pose-dots .dot.active { background: var(--tera-text); box-shadow: 0 0 10px -1px var(--tera-text); }

/* ============ LOADER ============ */
.loader-ring {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 3px solid rgba(68,108,212,0.2);
  border-top-color: var(--tera-blue);
  animation: spin 0.9s linear infinite;
  margin: 0 auto;
  box-shadow: 0 0 40px -6px rgba(68,108,212,0.45);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ SUCCESS ============ */
.success-ring {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(68,108,212,0.35), rgba(68,108,212,0.05) 65%, transparent 75%);
  border: 1.5px solid var(--tera-blue);
  box-shadow: 0 0 48px -6px rgba(68,108,212,0.5), inset 0 0 36px rgba(68,108,212,0.25);
}
.success-ring svg { color: var(--tera-text); }

/* ============ LIST ROW ============ */
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px;
  background: rgba(12, 17, 27, 0.7);
  border: 1px solid var(--tera-border);
  border-radius: 16px;
  color: var(--tera-text);
  font-size: 15px;
  cursor: pointer;
}
.list-row .arrow { color: var(--tera-muted); }
.list-row .label-stack { display: flex; flex-direction: column; gap: 2px; }
.list-row .sub { font-size: 12px; color: var(--tera-muted); }

/* ============ SEGMENT ============ */
.segment {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  background: rgba(12,17,27,0.5);
  border: 1px solid var(--tera-border);
  border-radius: 999px;
}
.segment button {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--tera-muted);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}
.segment button.active {
  background: transparent;
  color: var(--tera-text);
  border: 1px solid var(--tera-blue);
  box-shadow: 0 0 0 1px rgba(68,108,212,0.3), inset 0 0 18px rgba(68,108,212,0.25);
}

/* ============ SUB-STEPPER (inside-screen) ============ */
.sub-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 4px 0 8px;
  color: var(--tera-muted);
  font-size: 13px;
  font-weight: 500;
}
.sub-stepper .title {
  color: var(--tera-text);
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}
.sub-stepper-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  width: 100%;
}
.sub-stepper-dots .line {
  flex: 1;
  height: 2px;
  max-width: 80px;
  background: var(--tera-border);
}
.sub-stepper-dots .line.done { background: var(--tera-blue); }
.sub-stepper-dots .node {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--tera-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--tera-muted);
  background: transparent;
  flex-shrink: 0;
}
.sub-stepper-dots .node.active {
  border-color: var(--tera-blue);
  background: var(--tera-blue);
  color: var(--tera-text);
  box-shadow: 0 0 10px -2px var(--tera-blue);
}
.sub-stepper-dots .node.done {
  border-color: var(--tera-blue);
  background: var(--tera-blue);
  color: var(--tera-text);
}

/* ============ QUIZ (Uygunluk Testi) ============ */
.quiz-question {
  padding: 16px;
  background: rgba(12, 17, 27, 0.7);
  border: 1px solid var(--tera-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-q-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--tera-blue);
  text-transform: uppercase;
}
.quiz-q-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--tera-text);
  line-height: 1.45;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.quiz-option {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid var(--tera-border);
  border-radius: 12px;
  color: var(--tera-text);
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
  transition: border-color 0.15s, background 0.15s;
}
.quiz-option:hover { border-color: rgba(68,108,212,0.45); }
.quiz-option.selected {
  background: rgba(68,108,212,0.12);
  border-color: var(--tera-blue);
  box-shadow: 0 0 14px -4px rgba(68,108,212,0.5);
}
.quiz-option .radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--tera-muted);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.quiz-option.selected .radio {
  border-color: var(--tera-blue);
}
.quiz-option.selected .radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tera-blue);
  box-shadow: 0 0 6px -1px var(--tera-blue);
}

/* ============ CONTRACT ROW ============ */
.contract-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contract-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(12, 17, 27, 0.7);
  border: 1px solid var(--tera-border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.contract-row:hover { border-color: rgba(68,108,212,0.4); }
.contract-row.checked {
  border-color: rgba(68,108,212,0.55);
  background: rgba(68,108,212,0.08);
}
.contract-row .cbox {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--tera-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.15s;
}
.contract-row.checked .cbox {
  background: var(--tera-blue);
  border-color: var(--tera-blue);
  color: var(--tera-text);
  box-shadow: 0 0 12px -2px var(--tera-blue);
}
.contract-row .info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.contract-row .info .name {
  color: var(--tera-text);
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contract-row .info .meta {
  color: var(--tera-muted);
  font-size: 12px;
}
.contract-row .read-link {
  color: var(--tera-muted);
  font-size: 12px;
  text-decoration: underline;
  flex-shrink: 0;
}
.contract-row.required .info .meta::after {
  content: " · Zorunlu";
  color: var(--tera-blue);
}

.contract-master {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(68,108,212,0.08);
  border: 1px solid rgba(68,108,212,0.35);
  border-radius: 14px;
  cursor: pointer;
  color: var(--tera-text);
  font-size: 14px;
  font-weight: 500;
}
.contract-master .cbox {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--tera-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.15s;
}
.contract-master.checked .cbox {
  background: var(--tera-blue);
  color: var(--tera-text);
  box-shadow: 0 0 14px -2px var(--tera-blue);
}
.contract-master.partial .cbox {
  background: transparent;
  color: var(--tera-blue);
}
.contract-master.partial .cbox::before {
  content: "";
  display: block;
  width: 10px; height: 2px;
  background: var(--tera-blue);
  border-radius: 1px;
}

/* Allow scroll inside phone content when needed */
.content.scrollable {
  max-height: 620px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 140px;
  -webkit-mask-image: linear-gradient(to bottom, black 92%, transparent);
}
.content.scrollable::-webkit-scrollbar { width: 0; }

/* ============ SELECT ============ */
.select { position: relative; }
.select-trigger {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  background: rgba(12, 17, 27, 0.7);
  border: 1px solid var(--tera-border);
  border-radius: 14px;
  color: var(--tera-text);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.select-trigger .select-value.placeholder { color: var(--tera-muted); }
.select-trigger .select-arrow { color: var(--tera-muted); transition: transform 0.2s, color 0.2s; }
.select.open .select-trigger {
  border-color: var(--tera-blue);
  box-shadow: 0 0 0 4px var(--tera-blue-soft);
}
.select.open .select-arrow { transform: rotate(180deg); color: var(--tera-text); }

.select-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #0C111B;
  border: 1px solid var(--tera-border);
  border-radius: 14px;
  padding: 6px;
  display: none;
  z-index: 20;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 22px 40px -12px rgba(0,0,0,0.7), 0 0 0 1px rgba(68,108,212,0.12);
  animation: dropIn 0.18s ease-out;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.select.open .select-panel { display: block; }

.select-option {
  display: block;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: none;
  color: var(--tera-text);
  font-size: 14px;
  text-align: left;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
}
.select-option:hover { background: rgba(68,108,212,0.18); }
.select-option.selected {
  background: rgba(68,108,212,0.18);
  color: var(--tera-text);
}

/* ============ LINK TEXT ============ */
.small-muted {
  font-size: 13px;
  color: var(--tera-muted);
  line-height: 1.5;
}
.small-muted a { color: var(--tera-text); text-decoration: underline; }

/* ============ CONSENT BLOCK ============ */
.consent-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.consent-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}
.consent-list .consent-row > .checkbox {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px;
  min-height: 22px;
  border-radius: 50% !important;
  border: 1.5px solid var(--tera-muted);
  flex-shrink: 0 !important;
  flex-grow: 0;
  flex-basis: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: all 0.15s;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  padding: 0;
}
.consent-row .checkbox svg { display: none; }
.consent-row .checkbox.checked {
  background: var(--tera-blue);
  border-color: var(--tera-blue);
  box-shadow: 0 0 10px -2px var(--tera-blue);
}
.consent-row .checkbox.checked svg { display: block; color: var(--tera-text); }
.consent-row .text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--tera-text);
  flex: 1;
}
.consent-row .text a,
.consent-row .text .link-inline {
  color: var(--tera-blue);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.consent-row .text a:hover,
.consent-row .text .link-inline:hover { text-decoration: underline; }
.consent-row .required-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(68,108,212,0.18);
  color: var(--tera-blue);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
