/* Local-only UI helpers (no external dependencies). */

/* Keep modals usable even if legacy scripts are removed. */
.local-hidden { display: none !important; }

/* Simple toast */
.local-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2147483647;
  background: rgba(0, 0, 0, 0.86);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.2;
  max-width: calc(100vw - 32px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Theme refresh (make it look different) */
:root {
  --brand: #6d28d9;
  --brand2: #06b6d4;
  --bg: #0b1220;
  --card: rgba(255,255,255,0.06);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);
  --ring: rgba(109,40,217,0.35);
  --shadow: 0 18px 60px rgba(0,0,0,0.45);
  --radius: 16px;
  --font: ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, Arial, \"Noto Sans\", \"Helvetica Neue\", sans-serif;
}

html, body {
  font-family: var(--font) !important;
}

body {
  background: radial-gradient(1200px 700px at 15% 10%, rgba(109,40,217,0.30), transparent 55%),
              radial-gradient(900px 600px at 85% 20%, rgba(6,182,212,0.22), transparent 60%),
              var(--bg) !important;
  color: var(--text) !important;
}

/* Make common containers/cards darker glassy */
.container, .container-fluid {
  color: inherit;
}

/* Buttons */
button, .btn-default, .btn-registration, .gallery-item-btn, .btn-registration-home {
  border-radius: 999px !important;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
button:hover, .btn-default:hover, .btn-registration:hover, .gallery-item-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.btn-bg-primary, .btn-registration, .btn-registration-home {
  background: linear-gradient(135deg, var(--brand), var(--brand2)) !important;
  border: 0 !important;
}
.btn-bg-secondary {
  background: rgba(255,255,255,0.10) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  color: var(--text) !important;
}

/* Links */
a { color: rgba(255,255,255,0.92) !important; }
a:hover { color: #fff !important; text-decoration: none !important; }

/* Local modal */
.local-modal { position: fixed; inset: 0; z-index: 2147483647; }
.local-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(6px);
}
.local-modal__panel {
  position: relative;
  width: min(520px, calc(100vw - 24px));
  margin: 10vh auto 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
}
.local-modal__close {
  position: absolute; top: 10px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.22);
  color: var(--text);
  font-size: 22px;
  line-height: 32px;
}
.local-modal__badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(109,40,217,0.20);
  border: 1px solid rgba(109,40,217,0.30);
}
.local-modal__title { margin: 10px 0 6px; font-size: 26px; }
.local-modal__subtitle { margin: 0 0 14px; color: var(--muted); }

.local-form { display: grid; gap: 12px; }
.local-field span { display:block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.local-field input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.18);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}
.local-field input:focus {
  border-color: rgba(109,40,217,0.55);
  box-shadow: 0 0 0 4px var(--ring);
}
.local-check { display:flex; gap: 10px; align-items:flex-start; color: var(--muted); font-size: 13px; }
.local-check input { margin-top: 3px; }
.local-form__actions { display:flex; gap: 10px; margin-top: 4px; }
.local-btn {
  flex: 1;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  color: var(--text);
}
.local-btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border: 0;
}
.local-btn--ghost { background: transparent; }
.local-form__success {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(6,182,212,0.35);
  background: rgba(6,182,212,0.10);
  color: rgba(255,255,255,0.92);
}

/* Prevent broken third-party placeholders from taking space */
[id^="onetrust-"], #onetrust-consent-sdk, #onetrust-banner-sdk, #ot-sdk-btn {
  display: none !important;
}

