/* akaturk feedback FAB — navy / emerald, stepped panel */
:root {
  --aka-fb-navy: #0f2347;
  --aka-fb-navy-mid: #16385f;
  --aka-fb-primary: #1a3a8f;
  --aka-fb-emerald: #0f766e;
  --aka-fb-emerald-l: #14b8a6;
  --aka-fb-ink: #1a2036;
  --aka-fb-muted: #64748b;
  --aka-fb-border: #e2e8f0;
  --aka-fb-surface: #f7f9fc;
  --aka-fb-radius: 16px;
}

.aka-fb-fab {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.72rem 1.1rem 0.72rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--aka-fb-navy) 0%, var(--aka-fb-primary) 72%, var(--aka-fb-emerald) 140%);
  color: #f8fafc;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    0 12px 28px rgba(15, 35, 71, 0.32),
    0 0 0 1px rgba(15, 35, 71, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.aka-fb-fab__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.aka-fb-fab:hover,
.aka-fb-fab:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 34px rgba(15, 35, 71, 0.38);
  outline: none;
}
.aka-fb-fab.is-open {
  filter: brightness(1.08);
}

.aka-fb-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 35, 71, 0.28);
  backdrop-filter: blur(2px);
  animation: aka-fb-fade 0.18s ease;
}
@keyframes aka-fb-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes aka-fb-rise {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.aka-fb-panel {
  position: fixed;
  right: 1.15rem;
  bottom: 4.35rem;
  z-index: 81;
  width: min(23.5rem, calc(100vw - 1.6rem));
  max-height: min(82vh, 40rem);
  overflow: auto;
  padding: 0 1.15rem 1.2rem;
  border: 1px solid rgba(15, 35, 71, 0.1);
  border-radius: var(--aka-fb-radius);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(20, 184, 166, 0.08), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--aka-fb-surface) 100%);
  box-shadow:
    0 22px 56px rgba(15, 35, 71, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.8) inset;
  color: var(--aka-fb-ink);
  animation: aka-fb-rise 0.22s ease;
}
.aka-fb-panel__accent {
  height: 3px;
  margin: 0 -1.15rem 0.95rem;
  border-radius: var(--aka-fb-radius) var(--aka-fb-radius) 0 0;
  background: linear-gradient(90deg, var(--aka-fb-navy), var(--aka-fb-primary) 55%, var(--aka-fb-emerald-l));
}
.aka-fb-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.aka-fb-panel__brand {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aka-fb-emerald);
}
.aka-fb-panel__title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--aka-fb-navy);
  line-height: 1.2;
}
.aka-fb-panel__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--aka-fb-border);
  border-radius: 999px;
  background: #fff;
  color: var(--aka-fb-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.aka-fb-panel__x:hover {
  background: var(--aka-fb-surface);
  color: var(--aka-fb-navy);
}
.aka-fb-panel__lead {
  margin: 0.55rem 0 0.85rem;
  font-size: 0.84rem;
  color: var(--aka-fb-muted);
  line-height: 1.5;
}
.aka-fb-panel__flash {
  margin: 0 0 0.85rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.4;
  border: 1px solid transparent;
}
.aka-fb-panel__flash.is-err {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}
.aka-fb-panel__flash.is-ok {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.aka-fb-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin: 0.75rem 0 0.15rem;
  padding: 0;
}
.aka-fb-steps.is-auth {
  grid-template-columns: 1fr;
}
.aka-fb-steps.is-auth .aka-fb-steps__item:not([data-step="2"]) {
  display: none;
}
.aka-fb-steps__item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.35rem 0.4rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--aka-fb-muted);
  background: rgba(15, 35, 71, 0.04);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aka-fb-steps__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  font-size: 0.65rem;
  background: #fff;
  border: 1px solid var(--aka-fb-border);
  flex: 0 0 auto;
}
.aka-fb-steps__item.is-active {
  color: var(--aka-fb-navy);
  background: rgba(26, 58, 143, 0.08);
}
.aka-fb-steps__item.is-active span {
  background: var(--aka-fb-navy);
  border-color: var(--aka-fb-navy);
  color: #fff;
}
.aka-fb-steps__item.is-done {
  color: var(--aka-fb-emerald);
}
.aka-fb-steps__item.is-done span {
  background: var(--aka-fb-emerald);
  border-color: var(--aka-fb-emerald);
  color: #fff;
}

.aka-fb-form { display: grid; gap: 0.78rem; }
.aka-fb-field {
  display: grid;
  gap: 0.32rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: #334155;
}
.aka-fb-field input,
.aka-fb-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--aka-fb-border);
  border-radius: 11px;
  padding: 0.68rem 0.78rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--aka-fb-ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.aka-fb-field textarea { resize: vertical; min-height: 5.5rem; }
.aka-fb-field input[readonly] {
  background: var(--aka-fb-surface);
  color: var(--aka-fb-muted);
  font-size: 0.78rem;
}
.aka-fb-field input:focus,
.aka-fb-field textarea:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}
.aka-fb-code {
  letter-spacing: 0.28em !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  text-align: center;
}

.aka-fb-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.18);
  color: var(--aka-fb-emerald);
  font-size: 0.75rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aka-fb-auth-pill__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--aka-fb-emerald-l);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
  flex: 0 0 auto;
}

.aka-fb-shot {
  display: grid;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  background: rgba(15, 35, 71, 0.03);
  border: 1px dashed rgba(15, 35, 71, 0.12);
}
.aka-fb-shot__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 650;
  color: #334155;
}
.aka-fb-shot__skip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  color: var(--aka-fb-muted);
  cursor: pointer;
}
.aka-fb-shot__hint {
  margin: 0;
  color: var(--aka-fb-muted);
  font-size: 0.74rem;
  line-height: 1.35;
}
.aka-fb-shot__preview {
  width: 100%;
  max-height: 7.2rem;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  border: 1px solid var(--aka-fb-border);
}

.aka-fb-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.aka-fb-submit,
.aka-fb-ghost {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  border-radius: 11px;
  padding: 0.72rem 1rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.aka-fb-submit {
  border: none;
  background: linear-gradient(135deg, var(--aka-fb-navy) 0%, var(--aka-fb-primary) 100%);
  color: #f8fafc;
  box-shadow: 0 8px 18px rgba(15, 35, 71, 0.2);
}
.aka-fb-submit:hover { filter: brightness(1.06); }
.aka-fb-submit:active { transform: translateY(1px); }
.aka-fb-ghost {
  border: 1px solid var(--aka-fb-border);
  background: #fff;
  color: #334155;
}
.aka-fb-ghost:hover { background: var(--aka-fb-surface); }
.aka-fb-actions {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
}
.aka-fb-actions .aka-fb-submit { flex: 1; }
.aka-fb-actions .aka-fb-ghost { flex: 0 0 auto; }

@media (max-width: 480px) {
  .aka-fb-fab {
    right: 0.75rem;
    bottom: 0.75rem;
    font-size: 0.82rem;
    padding: 0.62rem 0.95rem 0.62rem 0.78rem;
  }
  .aka-fb-panel {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: 3.85rem;
    padding: 0 1rem 1.05rem;
  }
  .aka-fb-panel__accent { margin: 0 -1rem 0.85rem; }
  .aka-fb-steps__item { font-size: 0.62rem; padding: 0.3rem 0.32rem; }
}
