/* Market: ana sitedeki (ThemeMetinsah) dogrulama baloncugu ve "Hata!" penceresi ile ayni gorunum.
   Degiskenler sabit degerlerle degistirildi, market CSS degiskenleriyle cakismaz. */
/* v125: Dogrulama baloncugu (bos birakilan / hatali alan) - tarayicinin kendi balonu yerine site tasarimi. */
.ms-field-bubble {
  position: absolute; z-index: 1000; display: none; align-items: flex-start; gap: 9px; box-sizing: border-box;
  max-width: min(320px, calc(100vw - 16px)); padding: 9px 14px 9px 11px;
  border: 1px solid rgba(205, 148, 66, .5); border-left: 2px solid #e07b5d;
  background: rgba(20, 9, 5, .98); box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
  color: #fff2d4; font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: 0; pointer-events: none;
}
.ms-field-bubble.is-visible { display: flex; animation: msBubbleIn .16s ease-out; }
.ms-field-bubble::before {
  content: ""; position: absolute; left: var(--arrow-x, 22px); top: -6px; width: 10px; height: 10px;
  transform: translateX(-50%) rotate(45deg); background: rgba(20, 9, 5, .98);
  border-left: 1px solid rgba(205, 148, 66, .5); border-top: 1px solid rgba(205, 148, 66, .5);
}
.ms-field-bubble.is-above::before { top: auto; bottom: -6px; border: 0; border-right: 1px solid rgba(205, 148, 66, .5); border-bottom: 1px solid rgba(205, 148, 66, .5); }
.ms-field-bubble__icon {
  flex: 0 0 16px; width: 16px; height: 16px; margin-top: 1px; display: grid; place-items: center; border-radius: 50%;
  background: #e07b5d; color: #1a0b06; font-size: 11px; font-weight: 800; line-height: 1;
}
@keyframes msBubbleIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
:is(input, select, textarea).is-invalid,
:is(input, select, textarea).is-invalid:hover,
:is(input, select, textarea).is-invalid:focus { border-color: rgba(224, 123, 93, .72) !important; }
:is(input, select, textarea).is-invalid:focus { box-shadow: 0 0 0 3px rgba(224, 123, 93, .14) !important; }

/* v92: theme-native SweetAlert feedback with intact icon geometry. */
body.market-alerts .swal2-container {
  padding: 18px;
  background: rgba(5, 3, 2, .84) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
body.market-alerts .swal2-popup {
  position: relative;
  width: min(372px, calc(100vw - 36px)) !important;
  padding: 27px 30px 23px !important;
  overflow: hidden;
  border: 1px solid rgba(235, 165, 51, .42) !important;
  border-radius: 4px !important;
  background:
    radial-gradient(circle at 50% -8%, rgba(229, 154, 33, .18), transparent 44%),
    linear-gradient(145deg, #1b1009 0%, #100906 58%, #090604 100%) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .72), 0 0 42px rgba(199, 119, 18, .12) !important;
  color: #b6a58e !important;
  font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
}
body.market-alerts .swal2-popup::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent 4%, rgba(229,154,33,.55) 30%, #ffd06b 50%, rgba(229,154,33,.55) 70%, transparent 96%);
  box-shadow: 0 0 18px rgba(255, 186, 62, .35);
}
body.market-alerts .swal2-popup::after {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 211, 123, .055);
  content: "";
  pointer-events: none;
}
body.market-alerts .swal2-header,
body.market-alerts .swal2-content,
body.market-alerts .swal2-actions { position: relative; z-index: 1; }
body.market-alerts .swal2-icon {
  width: 80px !important;
  height: 80px !important;
  margin: -5px auto -1px !important;
  border-width: 4px !important;
  background: radial-gradient(circle, rgba(255, 195, 82, .09), transparent 68%);
  transform: scale(.78);
  transform-origin: center;
}
body.market-alerts .swal2-icon.swal2-success { border-color: rgba(143, 189, 55, .58) !important; }
body.market-alerts .swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(143, 189, 55, .28) !important; }
body.market-alerts .swal2-icon.swal2-success [class^="swal2-success-line"] { background-color: #a8cf5a !important; }
body.market-alerts .swal2-icon.swal2-success [class^="swal2-success-circular-line"],
body.market-alerts .swal2-icon.swal2-success .swal2-success-fix { background: transparent !important; }
body.market-alerts .swal2-icon.swal2-error { border-color: rgba(200, 98, 77, .72) !important; }
body.market-alerts .swal2-icon.swal2-error [class^="swal2-x-mark-line"] { background-color: #d97a65 !important; }
body.market-alerts .swal2-icon.swal2-warning,
body.market-alerts .swal2-icon.swal2-info,
body.market-alerts .swal2-icon.swal2-question { border-color: rgba(255, 195, 82, .58) !important; color: #ffc352 !important; }
body.market-alerts .swal2-title {
  margin: 0 !important;
  color: #fff2d4 !important;
  font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: .015em;
  text-shadow: 0 2px 18px rgba(0,0,0,.62);
}
body.market-alerts .swal2-content {
  margin-top: 7px !important;
  color: #aa9b89 !important;
  font-size: 12px !important;
  line-height: 1.65 !important;
}
body.market-alerts .swal2-content br { display: block; content: ""; margin-top: 4px; }
body.market-alerts .swal2-actions { margin: 17px 0 0 !important; }
body.market-alerts .swal2-styled {
  min-width: 138px;
  min-height: 40px;
  margin: 0 5px !important;
  padding: 11px 22px !important;
  border: 1px solid rgba(255, 213, 128, .48) !important;
  border-radius: 2px !important;
  background: linear-gradient(135deg, #f2bd4d, #d89120) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255,255,255,.2) !important;
  color: #180e07 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
body.market-alerts .swal2-styled:hover { filter: brightness(1.08); transform: translateY(-2px); }
body.market-alerts .swal2-styled:focus { outline: 1px solid #ffe390 !important; outline-offset: 3px; box-shadow: 0 10px 28px rgba(0,0,0,.38) !important; }
body.market-alerts .swal2-cancel { background: linear-gradient(145deg, #24150d, #130b07) !important; color: #b6a58e !important; }

@media (max-width: 480px) {
  body.market-alerts .swal2-container { padding: 12px; }
  body.market-alerts .swal2-popup {
    width: calc(100vw - 32px) !important;
    max-width: 330px !important;
    padding: 23px 18px 19px !important;
  }
  body.market-alerts .swal2-icon { width: 80px !important; height: 80px !important; margin: -8px auto -5px !important; transform: scale(.72); }
  body.market-alerts .swal2-title { font-size: 18px !important; }
  body.market-alerts .swal2-content { font-size: 11px !important; }
  body.market-alerts .swal2-actions { margin-top: 15px !important; }
  body.market-alerts .swal2-styled { width: 100%; min-height: 39px; }
}

@media (prefers-reduced-motion: reduce) {
  body.market-alerts .swal2-styled { transition: none; }
  body.market-alerts .swal2-styled:hover { transform: none; }
}

body.market-alerts .swal2-styled:focus, body.market-alerts .swal2-styled:focus-visible { outline: 0 !important; }
