/* HibritDijital — koyu tema, Bootstrap ile uyumlu ekler */

:root {
  --hd-bg-deep: #07070c;
  --hd-accent: #8b5cf6;
  --hd-accent-2: #ec4899;
  --hd-glow: rgba(139, 92, 246, 0.35);
}

body.hd-app {
  font-family: "DM Sans", system-ui, sans-serif;
  background-color: var(--hd-bg-deep);
  color: var(--bs-body-color);
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 120% 80% at 15% -20%, rgba(139, 92, 246, 0.18), transparent 55%),
    radial-gradient(ellipse 100% 60% at 85% 110%, rgba(236, 72, 153, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(59, 130, 246, 0.06), transparent 60%);
  background-attachment: fixed;
}

.hd-brand {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #c4b5fd 0%, #f472b6 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hd-card {
  background: rgba(22, 22, 32, 0.72) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 1rem;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.08),
    0 24px 48px -12px rgba(0, 0, 0, 0.55);
}

.hd-card .card-title,
.hd-card h1,
.hd-card h2 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hd-btn-primary {
  --bs-btn-bg: #7c3aed;
  --bs-btn-border-color: #7c3aed;
  --bs-btn-hover-bg: #6d28d9;
  --bs-btn-hover-border-color: #6d28d9;
  --bs-btn-active-bg: #5b21b6;
  --bs-btn-active-border-color: #5b21b6;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hd-btn-primary:hover {
  box-shadow: 0 8px 24px var(--hd-glow);
  transform: translateY(-1px);
}

/* Django as_p çıktısı */
.auth-form p {
  margin-bottom: 1rem;
}

.auth-form p label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bs-secondary-color);
}

.auth-form p:has(input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.auth-form p:has(input[type="checkbox"]) label {
  display: inline;
  margin-bottom: 0;
  font-weight: 400;
}

.auth-form ul.errorlist {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--bs-danger);
}

.auth-form .form-text,
.auth-form helptext {
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
}

.hd-fieldset {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1rem 1.1rem 0.5rem;
  margin-bottom: 1.25rem;
  background: rgba(0, 0, 0, 0.2);
}

.hd-fieldset legend {
  float: none;
  width: auto;
  padding: 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bs-secondary-color);
}

.hd-ttl {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--hd-accent);
}

.navbar.hd-nav {
  background: rgba(7, 7, 12, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

footer.hd-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--bs-secondary-color);
  font-size: 0.8125rem;
}

/* Kurumsal onboarding adımları */
.hd-wizard {
  font-family: "Syne", sans-serif;
}

.hd-wizard-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  position: relative;
  padding: 0.5rem 0 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hd-wizard-track::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 1.15rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 0;
}

.hd-wizard-step {
  flex: 1 1 0;
  min-width: 4.5rem;
  max-width: 11rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hd-wizard-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: var(--bs-secondary-color);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease,
    box-shadow 0.25s ease;
}

.hd-wizard-step.is-done .hd-wizard-idx {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.55);
  color: #86efac;
}

.hd-wizard-step.is-active .hd-wizard-idx {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border-color: rgba(196, 181, 253, 0.6);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.hd-wizard-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: var(--bs-secondary-color);
}

.hd-wizard-step.is-active .hd-wizard-label {
  color: #e9d5ff;
}

.hd-wizard-step.is-done .hd-wizard-label {
  color: rgba(134, 239, 172, 0.85);
}

@media (min-width: 768px) {
  .hd-wizard-label {
    font-size: 0.7rem;
  }
}

/* Bot honeypot — görünmez alan; gerçek kullanıcı doldurmaz */
.hd-honeypot-wrap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.hd-honeypot-wrap input {
  opacity: 0;
  pointer-events: none;
}

/* Dashboard sol menü */
.hd-dashboard-shell {
  min-height: calc(100vh - 4.5rem);
}

.hd-dashboard-toolbar {
  background: rgba(7, 7, 12, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Menü genişliği animasyonu sırasında backdrop-filter her karede tüm alanı yeniden boyar; geçici kapat. */
.hd-dashboard-shell.hd-sidebar-layout-busy .hd-dashboard-sidebar,
.hd-dashboard-shell.hd-sidebar-layout-busy .hd-dashboard-toolbar {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.hd-dashboard-shell.hd-sidebar-layout-busy .hd-dashboard-sidebar {
  background: rgba(10, 10, 16, 0.94);
}

.hd-dashboard-shell.hd-sidebar-layout-busy .hd-dashboard-toolbar {
  background: rgba(7, 7, 12, 0.94);
}

/* GSAP ile genişlik animasyonu: CSS transition çakışmasın */
.hd-dashboard-shell.hd-focus-animating .hd-dashboard-sidebar {
  transition: none !important;
}

/* Odak modu — sol üst yüzen çubuk (menü + çıkış) */
.hd-focus-mode-floating {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top, 0px));
  left: max(0.75rem, env(safe-area-inset-left, 0px));
  z-index: 2100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  max-width: calc(100vw - 1.5rem);
}

.hd-focus-mode-floating[aria-hidden="true"] {
  pointer-events: none;
}

.hd-focus-mode-exit-btn {
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid rgba(15, 15, 22, 0.12);
}

.hd-focus-mode-sidebar-toggle {
  font-weight: 600;
}

@media (max-width: 479.98px) {
  .hd-focus-mode-exit-btn .hd-focus-mode-exit-label {
    display: none;
  }
}

/* Odak modu — tam ekran içerik, daha okunaklı tipografi, canlı ambient */
body.hd-dashboard-focus-mode {
  background-image:
    radial-gradient(ellipse 130% 90% at 12% -15%, rgba(167, 139, 250, 0.26), transparent 52%),
    radial-gradient(ellipse 110% 70% at 88% 108%, rgba(236, 72, 153, 0.2), transparent 48%),
    radial-gradient(ellipse 70% 50% at 50% 45%, rgba(99, 102, 241, 0.1), transparent 58%);
}

body.hd-dashboard-focus-mode main.flex-grow-1 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.hd-dashboard-focus-mode .hd-dashboard-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

body.hd-dashboard-focus-mode .hd-dashboard-main {
  font-size: 1.08rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

body.hd-dashboard-focus-mode .hd-dashboard-main .text-secondary {
  color: rgba(230, 228, 245, 0.9) !important;
}

body.hd-dashboard-focus-mode .hd-dashboard-main p,
body.hd-dashboard-focus-mode .hd-dashboard-main .lead {
  color: rgba(248, 250, 252, 0.96);
}

body.hd-dashboard-focus-mode .hd-dashboard-main h1,
body.hd-dashboard-focus-mode .hd-dashboard-main h2,
body.hd-dashboard-focus-mode .hd-dashboard-main h3 {
  font-weight: 700;
  letter-spacing: -0.025em;
}

body.hd-dashboard-focus-mode .hd-card {
  background: rgba(28, 28, 42, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.1),
    0 28px 56px -14px rgba(0, 0, 0, 0.6);
}

body.hd-dashboard-focus-mode .hd-dashboard-cursor-aura {
  background: radial-gradient(
    circle 300px at var(--hd-aura-x) var(--hd-aura-y),
    rgba(244, 114, 182, 0.68) 0%,
    rgba(192, 132, 252, 0.45) 28%,
    rgba(139, 92, 246, 0.22) 50%,
    transparent 72%
  );
}

body.hd-dashboard-focus-mode .hd-dashboard-ambient-bloom {
  opacity: 0.62;
  filter: blur(58px) saturate(1.35);
}

body.hd-dashboard-focus-mode .hd-dashboard-ambient::before {
  filter: blur(62px) saturate(1.2);
}

body.hd-dashboard-focus-mode .hd-dashboard-ambient::after {
  opacity: 0.2;
}

/* Ana sütun: soluk pembe–mor piksel ızgarası + yumuşak akış (yalnızca CSS, GPU dostu) */
.hd-dashboard-main-col {
  isolation: isolate;
  --hd-aura-x: 50%;
  --hd-aura-y: 50%;
}

.hd-dashboard-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* İmlecin gezdiği bölge — arka planı canlandıran takip eden ışık */
.hd-dashboard-cursor-aura {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(
    circle 220px at var(--hd-aura-x) var(--hd-aura-y),
    rgba(244, 114, 182, 0.55) 0%,
    rgba(192, 132, 252, 0.32) 32%,
    rgba(139, 92, 246, 0.14) 52%,
    transparent 68%
  );
  mix-blend-mode: screen;
}

.hd-dashboard-cursor-aura.is-on {
  opacity: 1;
}

.hd-dashboard-ambient-bloom {
  position: absolute;
  inset: -30%;
  display: block;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 38% at 70% 35%, rgba(244, 114, 182, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 48% 44% at 25% 75%, rgba(167, 139, 250, 0.5) 0%, transparent 50%);
  filter: blur(58px);
  mix-blend-mode: screen;
  opacity: 0.5;
  transform: translate3d(0, 0, 0);
  animation: hd-ambient-bloom-shift 18s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.hd-dashboard-ambient::before {
  content: "";
  position: absolute;
  inset: -28%;
  opacity: 1;
  background:
    radial-gradient(ellipse 58% 48% at 15% 30%, rgba(192, 132, 252, 0.62) 0%, transparent 50%),
    radial-gradient(ellipse 52% 46% at 88% 68%, rgba(244, 114, 182, 0.52) 0%, transparent 46%),
    radial-gradient(ellipse 45% 52% at 52% 12%, rgba(139, 92, 246, 0.38) 0%, transparent 42%);
  filter: blur(62px);
  transform: translate3d(0, 0, 0);
  animation: hd-ambient-drift 22s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.hd-dashboard-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 15px,
      rgba(216, 180, 254, 0.65) 15px,
      rgba(216, 180, 254, 0.65) 16px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 15px,
      rgba(244, 114, 182, 0.55) 15px,
      rgba(244, 114, 182, 0.55) 16px
    );
  background-size: 16px 16px;
  background-position: 0 0, 0 0;
  mix-blend-mode: screen;
  animation:
    hd-ambient-grid-flow 38s linear infinite,
    hd-ambient-grid-breathe 10s ease-in-out infinite;
}

.hd-dashboard-main-col-front {
  position: relative;
  z-index: 1;
}

@keyframes hd-ambient-drift {
  0% {
    transform: translate3d(-5%, -4%, 0) scale(1);
    opacity: 0.42;
  }
  22% {
    transform: translate3d(2%, 1%, 0) scale(1.06);
    opacity: 0.58;
  }
  48% {
    transform: translate3d(6%, 5%, 0) scale(1.12);
    opacity: 0.68;
  }
  72% {
    transform: translate3d(-1%, 4%, 0) scale(1.05);
    opacity: 0.52;
  }
  100% {
    transform: translate3d(-5%, -3%, 0) scale(1.03);
    opacity: 0.46;
  }
}

@keyframes hd-ambient-bloom-shift {
  0% {
    transform: translate3d(6%, -4%, 0) scale(1);
    opacity: 0.38;
  }
  30% {
    transform: translate3d(-4%, 5%, 0) scale(1.12);
    opacity: 0.62;
  }
  55% {
    transform: translate3d(-9%, -2%, 0) scale(1.06);
    opacity: 0.48;
  }
  80% {
    transform: translate3d(3%, 7%, 0) scale(1.1);
    opacity: 0.58;
  }
  100% {
    transform: translate3d(6%, -4%, 0) scale(1);
    opacity: 0.38;
  }
}

@keyframes hd-ambient-grid-flow {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 64px 40px, -48px 64px;
  }
}

@keyframes hd-ambient-grid-breathe {
  0%,
  100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.22;
  }
}

/* Özel imleç + iz (panel); ince işaretçi veya hareket azaltma: kapalı */
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #hd-dashboard-shell.hd-cursor-enabled,
  #hd-dashboard-shell.hd-cursor-enabled * {
    cursor: none !important;
  }

  #hd-dashboard-shell.hd-cursor-enabled input[type="text"],
  #hd-dashboard-shell.hd-cursor-enabled input[type="email"],
  #hd-dashboard-shell.hd-cursor-enabled input[type="password"],
  #hd-dashboard-shell.hd-cursor-enabled input[type="search"],
  #hd-dashboard-shell.hd-cursor-enabled input[type="url"],
  #hd-dashboard-shell.hd-cursor-enabled input[type="tel"],
  #hd-dashboard-shell.hd-cursor-enabled input[type="number"],
  #hd-dashboard-shell.hd-cursor-enabled textarea,
  #hd-dashboard-shell.hd-cursor-enabled select {
    cursor: text !important;
  }

  #hd-dashboard-shell.hd-cursor-enabled input[type="checkbox"],
  #hd-dashboard-shell.hd-cursor-enabled input[type="radio"] {
    cursor: pointer !important;
  }
}

.hd-cursor-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1035;
  overflow: hidden;
}

.hd-cursor-trail-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hd-cursor-dot,
.hd-cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hd-cursor-root.is-active .hd-cursor-dot,
.hd-cursor-root.is-active .hd-cursor-ring {
  opacity: 1;
}

.hd-cursor-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f9a8d4 0%, #f472b6 42%, #a78bfa 100%);
  box-shadow:
    0 0 4px rgba(244, 114, 182, 0.85),
    0 0 10px rgba(167, 139, 250, 0.45),
    0 0 16px rgba(139, 92, 246, 0.22);
}

.hd-cursor-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(196, 181, 253, 0.75);
  background: radial-gradient(
    circle,
    rgba(244, 114, 182, 0.08) 0%,
    transparent 65%
  );
  box-shadow:
    0 0 8px rgba(192, 132, 252, 0.4),
    inset 0 0 8px rgba(244, 114, 182, 0.12);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.2s ease;
}

.hd-cursor-ring.is-hover {
  border-color: rgba(244, 114, 182, 0.95);
  box-shadow:
    0 0 12px rgba(244, 114, 182, 0.5),
    0 0 20px rgba(167, 139, 250, 0.28),
    inset 0 0 10px rgba(244, 114, 182, 0.2);
}

.hd-cursor-trail-node {
  position: fixed;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  margin-top: -8px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(251, 207, 232, 0.45) 0%,
    rgba(244, 114, 182, 0.65) 32%,
    rgba(167, 139, 250, 0.3) 58%,
    transparent 75%
  );
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.55), 0 0 16px rgba(236, 72, 153, 0.22);
  animation: hd-cursor-trail-fade 0.72s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes hd-cursor-trail-fade {
  0% {
    transform: scale(0.65);
    opacity: 1;
  }
  100% {
    transform: scale(2.45);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hd-dashboard-ambient-bloom,
  .hd-dashboard-ambient::before,
  .hd-dashboard-ambient::after {
    animation: none;
  }

  .hd-dashboard-ambient-bloom {
    opacity: 0.28;
    transform: none;
  }

  .hd-dashboard-ambient::before {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.4;
    filter: blur(64px);
  }

  .hd-dashboard-ambient::after {
    opacity: 0.12;
  }
}

.hd-dashboard-sidebar {
  width: 100%;
  background: rgba(10, 10, 16, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    width 0.28s ease,
    min-width 0.28s ease,
    max-width 0.28s ease,
    opacity 0.22s ease,
    border-color 0.22s ease;
}

.hd-dashboard-sidebar-inner {
  max-width: 17.5rem;
  transition: opacity 0.2s ease;
}

@media (max-width: 991.98px) {
  .hd-dashboard-shell.hd-sidebar-collapsed .hd-dashboard-sidebar {
    display: none;
  }
}

@media (min-width: 992px) {
  .hd-dashboard-sidebar {
    width: 17.5rem;
    min-width: 17.5rem;
    max-width: 17.5rem;
    min-height: calc(100vh - 4.5rem);
    position: sticky;
    top: 0;
    align-self: flex-start;
  }

  .hd-dashboard-sidebar-inner {
    max-width: none;
  }

  .hd-dashboard-shell.hd-sidebar-collapsed .hd-dashboard-sidebar {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    opacity: 0;
    border-right-width: 0 !important;
    pointer-events: none;
  }

  .hd-dashboard-shell.hd-sidebar-collapsed .hd-dashboard-sidebar-inner {
    opacity: 0;
  }
}

.hd-sidebar-toggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.35);
}

.hd-dash-nav-link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hd-dash-nav-link:hover {
  color: #fff;
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.2);
}

.hd-dash-nav-link.active {
  color: #fff;
  background: rgba(124, 58, 237, 0.22);
  border-color: rgba(196, 181, 253, 0.35);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.15);
}

.hd-dash-nav-link .bi {
  opacity: 0.9;
}

/* Stüdyo formları — kurumsal preloader (giriş / landing ile aynı dil; kompakt) */
.hd-studio-async-btn {
  position: relative;
  overflow: hidden;
  min-width: 7.5rem;
  min-height: 2.125rem;
  transition: box-shadow 0.4s ease, border-color 0.25s ease, transform 0.2s ease;
}

.hd-studio-async-btn:disabled {
  opacity: 1;
  pointer-events: none;
  cursor: progress;
}

.hd-studio-async-btn__inner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 1.65rem;
}

.hd-studio-async-btn__label,
.hd-studio-async-btn__busy {
  grid-area: 1 / 1;
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.42s ease;
}

.hd-studio-async-btn__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.8125rem;
  line-height: 1.2;
}

.hd-studio-async-btn--primary .hd-studio-async-btn__label {
  font-size: inherit;
  letter-spacing: 0.02em;
}

.hd-studio-async-btn__busy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  padding: 0.1rem 0;
  opacity: 0;
  transform: scale(0.92) translateY(3px);
  filter: blur(3px);
  pointer-events: none;
}

.hd-studio-async-btn.is-sending .hd-studio-async-btn__label {
  opacity: 0;
  transform: scale(0.94) translateY(-4px);
  filter: blur(2px);
}

.hd-studio-async-btn.is-sending .hd-studio-async-btn__busy {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}

.hd-studio-async-btn__glow {
  position: absolute;
  width: 130%;
  height: 190%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 135deg,
    transparent,
    rgba(34, 211, 238, 0.3),
    rgba(59, 130, 246, 0.22),
    transparent 58%
  );
  animation: hd-studio-async-glow-spin 2.65s linear infinite;
  opacity: 0;
  pointer-events: none;
}

.hd-studio-async-btn.is-sending .hd-studio-async-btn__glow {
  opacity: 1;
}

@keyframes hd-studio-async-glow-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hd-studio-async-btn__waves {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.28rem;
  height: 1.05rem;
  z-index: 1;
}

.hd-studio-async-btn__wave {
  width: 4px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    #a5f3fc 0%,
    #38bdf8 52%,
    rgba(96, 165, 250, 0.92) 100%
  );
  transform-origin: center bottom;
  animation: hd-studio-async-wave 0.92s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.38);
}

.hd-studio-async-btn__wave:nth-child(2) {
  animation-delay: 0.11s;
}

.hd-studio-async-btn__wave:nth-child(3) {
  animation-delay: 0.22s;
}

@keyframes hd-studio-async-wave {
  0%,
  100% {
    transform: scaleY(0.32);
    opacity: 0.52;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.hd-studio-async-btn__hint {
  position: relative;
  z-index: 1;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(224, 242, 254, 0.95);
  animation: hd-studio-async-hint-pulse 1.55s ease-in-out infinite;
}

@keyframes hd-studio-async-hint-pulse {
  0%,
  100% {
    opacity: 0.68;
  }
  50% {
    opacity: 1;
  }
}

.hd-studio-async-btn--outline.is-sending.btn-outline-info {
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.38),
    0 6px 22px -8px rgba(14, 165, 233, 0.4);
}

/* Birincil gönder — marka mor / pembe dalga (hd-btn-primary) */
.hd-studio-async-btn--primary {
  min-width: 10rem;
  min-height: 2.85rem;
}

.hd-studio-async-btn--primary .hd-studio-async-btn__inner {
  min-height: 2.5rem;
}

.hd-studio-async-btn--primary .hd-studio-async-btn__glow {
  background: conic-gradient(
    from 120deg,
    transparent,
    rgba(167, 139, 250, 0.38),
    rgba(244, 114, 182, 0.26),
    transparent 55%
  );
}

.hd-studio-async-btn--primary .hd-studio-async-btn__wave {
  background: linear-gradient(
    180deg,
    #e9d5ff 0%,
    #f472b6 55%,
    rgba(147, 197, 253, 0.88) 100%
  );
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.35);
}

.hd-studio-async-btn--primary .hd-studio-async-btn__hint {
  color: rgba(255, 255, 255, 0.92);
}

.hd-studio-async-btn--primary.hd-btn-primary.is-sending {
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.4),
    0 10px 36px -8px rgba(139, 92, 246, 0.42),
    0 0 48px -12px rgba(236, 72, 153, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .hd-studio-async-btn__glow,
  .hd-studio-async-btn__wave,
  .hd-studio-async-btn__hint {
    animation: none !important;
  }

  .hd-studio-async-btn.is-sending .hd-studio-async-btn__busy {
    filter: none;
  }
}

/* Dashboard modalları body sonunda; panel / özel imleç katmanlarının üstünde kalsın */
body > .modal {
  z-index: 12050;
}

body > .modal-backdrop {
  z-index: 12040;
}

/* Stüdyodan ekle — önizleme; hover’da Ekle */
.hd-studio-attach-item {
  position: relative;
  min-height: 100%;
}

.hd-studio-attach-preview {
  position: relative;
  background: rgba(0, 0, 0, 0.35);
}

.hd-studio-attach-preview--video[data-hd-studio-video-preview] {
  cursor: pointer;
}

.hd-studio-attach-preview img,
.hd-studio-attach-preview video {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.hd-studio-attach-text {
  max-height: 120px;
  overflow: auto;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.hd-studio-attach-add {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 3;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  pointer-events: none;
}

.hd-studio-attach-item:hover .hd-studio-attach-add {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
