/**
 * Global “Sorun bildir” — FAB + modal + toast (tema ile uyumlu değişkenler)
 */
:root {
  --dp-sb-accent: #6c5ce7;
  --dp-sb-accent2: #34f5c5;
  --dp-sb-surface: rgba(12, 12, 18, 0.97);
  --dp-sb-border: rgba(108, 92, 231, 0.28);
  --dp-sb-text: #e8edf5;
  --dp-sb-muted: #94a3b8;
}

.dp-sb-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 99980;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  color: #fff;
  font-size: 1.35rem;
  background: linear-gradient(145deg, var(--dp-sb-accent), #4338ca);
  box-shadow:
    0 8px 28px rgba(67, 56, 202, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.dp-sb-fab:hover {
  transform: scale(1.08);
  box-shadow:
    0 12px 36px rgba(52, 245, 197, 0.22),
    0 0 0 1px rgba(52, 245, 197, 0.25) inset;
}

.dp-sb-fab:focus-visible {
  outline: 2px solid var(--dp-sb-accent2);
  outline-offset: 3px;
}

.dp-sb-fab__hint {
  position: absolute;
  right: calc(100% + 12px);
  bottom: 50%;
  transform: translateY(50%);
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  background: var(--dp-sb-surface);
  border: 1px solid var(--dp-sb-border);
  color: var(--dp-sb-text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

@media (min-width: 900px) {
  .dp-sb-fab:hover .dp-sb-fab__hint,
  .dp-sb-fab:focus-visible .dp-sb-fab__hint {
    opacity: 1;
  }
}

.dp-sb-modal[hidden] {
  display: none !important;
}

.dp-sb-modal {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.dp-sb-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 10, 0.72);
  backdrop-filter: blur(8px);
}

.dp-sb-modal__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: min(92vh, 720px);
  overflow: auto;
  background: var(--dp-sb-surface);
  border: 1px solid var(--dp-sb-border);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.dp-sb-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dp-sb-modal__head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dp-sb-text);
}

.dp-sb-modal__sub {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--dp-sb-muted);
  line-height: 1.45;
}

.dp-sb-modal__x {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--dp-sb-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 8px;
}

.dp-sb-modal__x:hover {
  color: var(--dp-sb-text);
  background: rgba(255, 255, 255, 0.06);
}

.dp-sb-form {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dp-sb-field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dp-sb-muted);
  margin-bottom: 0.35rem;
}

.dp-sb-field input,
.dp-sb-field select,
.dp-sb-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(108, 92, 231, 0.22);
  background: rgba(6, 6, 12, 0.95);
  color: var(--dp-sb-text);
  font-family: inherit;
  font-size: 0.92rem;
}

.dp-sb-field input[readonly] {
  opacity: 0.85;
  cursor: default;
}

.dp-sb-field textarea {
  min-height: 110px;
  resize: vertical;
}

.dp-sb-field input:focus,
.dp-sb-field select:focus,
.dp-sb-field textarea:focus {
  outline: none;
  border-color: var(--dp-sb-accent2);
  box-shadow: 0 0 0 2px rgba(52, 245, 197, 0.15);
}

.dp-sb-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 520px) {
  .dp-sb-row2 {
    grid-template-columns: 1fr;
  }
}

.dp-sb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.dp-sb-btn {
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--dp-sb-text);
  font-family: inherit;
}

.dp-sb-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dp-sb-btn--primary {
  border: none;
  background: linear-gradient(135deg, var(--dp-sb-accent), #4338ca);
  color: #fff;
  box-shadow: 0 6px 22px rgba(67, 56, 202, 0.35);
}

.dp-sb-btn--primary:hover {
  filter: brightness(1.06);
}

.dp-sb-btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dp-sb-msg {
  display: none;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: 0.84rem;
}

.dp-sb-msg.is-err {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

/* Toast */
.dp-sb-toast-host {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  z-index: 99995;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 2rem));
}

.dp-sb-toast {
  pointer-events: auto;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  animation: dp-sb-toast-in 0.35s ease;
}

.dp-sb-toast--ok {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.98));
  color: #ecfdf5;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dp-sb-toast--err {
  background: linear-gradient(145deg, rgba(220, 38, 38, 0.95), rgba(153, 27, 27, 0.98));
  color: #fef2f2;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@keyframes dp-sb-toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.has-site-credit .dp-sb-fab {
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
}
