:root {
  --grad-1: #0f2027;
  --grad-2: #203a43;
  --grad-3: #2c5364;
  --accent: #ffb703;
  --accent-2: #fb8500;
  --glass-bg: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.22);
  --text: #f4f7fb;
  --text-muted: rgba(244, 247, 251, 0.72);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2), var(--grad-3));
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* Decorative floating orbs */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.40;
  z-index: 0;
  pointer-events: none;
}
body::before {
  width: 320px; height: 320px;
  background: var(--accent);
  top: -90px; right: -80px;
}
body::after {
  width: 380px; height: 380px;
  background: #00b4d8;
  bottom: -120px; left: -120px;
}

.app-wrap { position: relative; z-index: 1; }

/* Glass card */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 183, 3, 0.16);
  border: 1px solid rgba(255, 183, 3, 0.40);
  font-weight: 600;
  letter-spacing: .04em;
  font-size: .8rem;
  text-transform: uppercase;
}

.reg-logo {
  max-height: 110px;
  max-width: 80%;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}

.title-xl {
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.1;
}
.text-muted-glass { color: var(--text-muted) !important; }

/* Form controls on glass */
.form-label { font-weight: 600; font-size: .92rem; }
.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--text);
  border-radius: 13px;
  padding: .7rem .9rem;
}
.form-control::placeholder { color: rgba(244, 247, 251, 0.45); }
.form-control:focus,
.form-select:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem rgba(255, 183, 3, 0.25);
  color: var(--text);
}
.form-select option { color: #11212b; }

.input-group-text {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  border-radius: 13px 0 0 13px;
}

/* Accent button */
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #11212b;
  font-weight: 700;
  border-radius: 13px;
  padding: .8rem 1.2rem;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(251, 133, 0, 0.4);
  color: #11212b;
}
.btn-glass {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--glass-border);
  color: var(--text);
  border-radius: 11px;
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.20); color: var(--text); }

/* Tooltip-ish info icon */
.info-icon {
  display: inline-flex;
  width: 18px; height: 18px;
  align-items: center; justify-content: center;
  font-size: .7rem;
  border-radius: 50%;
  background: rgba(255, 183, 3, 0.25);
  border: 1px solid rgba(255, 183, 3, 0.5);
  cursor: help;
  margin-left: .35rem;
}

/* Disclaimer box */
.disclaimer-box {
  background: rgba(251, 133, 0, 0.10);
  border: 1px solid rgba(251, 133, 0, 0.40);
  border-radius: 14px;
  font-size: .9rem;
}

/* WhatsApp toggle group */
.toggle-pill .btn-check:checked + .btn {
  background: #25d366;
  border-color: #25d366;
  color: #06320f;
  font-weight: 700;
}

/* Admin table */
.table-glass {
  color: var(--text);
  border-color: var(--glass-border);
}
.table-glass > :not(caption) > * > * {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
}
.table-glass thead th {
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .05em;
  color: var(--accent);
}
.table-responsive { border-radius: 16px; }

.badge-status { font-size: .7rem; padding: .35em .6em; border-radius: 999px; }
.s-pending   { background: rgba(255,183,3,.2);  color: #ffd166; }
.s-reviewed  { background: rgba(0,180,216,.2);  color: #90e0ef; }
.s-confirmed { background: rgba(37,211,102,.2); color: #80ed99; }
.s-rejected  { background: rgba(255,99,99,.2);  color: #ff8585; }

a { color: var(--accent); }
a:hover { color: var(--accent-2); }

.tooltip-inner { background: #1b2a33; }

/* ---- intl-tel-input theming (glassmorphism dark) ---- */
/* Keep the phone field a single, full-width line (lib defaults to inline-block). */
.iti { display: block !important; width: 100%; }
.iti__tel-input { width: 100%; }

/* Theme via the library's own CSS variables so the mobile fullscreen popup
   (which is appended to <body>, outside .iti) is themed too. */
:root {
  --iti-dropdown-bg: #16242c;
  --iti-border-color: rgba(255, 255, 255, 0.18);
  --iti-dialcode-color: rgba(244, 247, 251, 0.65);
  --iti-text-gray: rgba(244, 247, 251, 0.65);
  --iti-hover-color: rgba(255, 183, 3, 0.18);
  --iti-arrow-color: var(--text);
}
.iti__dropdown-content {
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.iti__search-input {
  background: #16242c;
  color: var(--text);
  border-bottom: 1px solid var(--iti-border-color) !important;
}
.iti__search-input::placeholder { color: rgba(244, 247, 251, 0.5); }
.iti__selected-dial-code { color: var(--text); }
/* country names inherit the page's light text colour on the dark popup */
.iti--fullscreen-popup.iti--container { z-index: 1100; }

@media (max-width: 576px) {
  .title-xl { font-size: 1.6rem; }
  .glass { border-radius: 18px; }
}
