/* ============================================================
   danatel — Custom CSS
   Built on Bootstrap 5 with custom design tokens: dark by default,
   light when <html data-bs-theme="light"> (set in base.html)
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --dt-bg: #0a0d14;
  --dt-bg-card: #111520;
  --dt-bg-card-hover: #181d2e;
  --dt-bg-input: #181d2e;
  --dt-border: rgba(255, 255, 255, 0.07);
  --dt-border-focus: rgba(0, 119, 221, 0.55);

  --dt-primary: #0077dd;
  --dt-primary-light: #3399ff;
  --dt-primary-dark: #005bb5;
  --dt-primary-glow: rgba(0, 119, 221, 0.22);

  --dt-success: #10b981;
  --dt-warning: #f59e0b;
  --dt-danger:  #ef4444;
  --dt-info:    #0077dd;

  --dt-text: #eef2ff;
  --dt-text-muted: #8896ae;
  --dt-text-placeholder: #4d5b73;

  /* Status text on a tinted background: alerts, call status, warnings */
  --dt-text-success: #6ee7b7;
  --dt-text-danger: #fca5a5;
  --dt-text-warning: #fcd34d;
  --dt-text-info: #93c5fd;
  --dt-star: #fbbf24;

  --dt-nav-bg: rgba(13, 15, 20, 0.9);
  --dt-tabbar-bg: rgba(13, 15, 20, 0.94);
  --dt-wash: rgba(255, 255, 255, 0.06);  /* hover on menu items and icon buttons, icon circles */
  --dt-glass: rgba(17, 21, 32, 0.9);     /* where the blue balance gradients fade to */

  --dt-gradient-hero: linear-gradient(135deg, #0077dd 0%, #00b4d8 100%);
  --dt-gradient-card: linear-gradient(145deg, #111520, #181d2e);

  --dt-radius: 12px;
  --dt-radius-lg: 20px;
  --dt-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  --dt-shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.7);

  --dt-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  --dt-nav-h: 76px;
  --dt-tabbar-h: 0px;
}

/* Light theme. Every text colour is at least 4.5:1 (WCAG AA) on the white cards it sits on;
   the brighter blue and green of the dark theme are too faint on white. */
[data-bs-theme="light"] {
  --dt-bg: #f4f6fa;
  --dt-bg-card: #ffffff;
  --dt-bg-card-hover: #eef2f8;
  --dt-bg-input: #f1f4f9;
  --dt-border: rgba(15, 23, 42, 0.1);

  --dt-primary-light: #0066c2;
  --dt-primary-glow: rgba(0, 119, 221, 0.18);

  --dt-success: #047857;
  --dt-danger:  #dc2626;

  --dt-text: #0f172a;
  --dt-text-muted: #556274;
  --dt-text-placeholder: #667085;  /* also form help text, e.g. the password rules */

  --dt-text-success: #065f46;
  --dt-text-danger: #991b1b;
  --dt-text-warning: #92400e;
  --dt-text-info: #1e40af;
  --dt-star: #d97706;

  --dt-nav-bg: rgba(255, 255, 255, 0.88);
  --dt-tabbar-bg: rgba(255, 255, 255, 0.94);
  --dt-wash: rgba(15, 23, 42, 0.05);
  --dt-glass: rgba(255, 255, 255, 0.9);

  --dt-gradient-hero: linear-gradient(135deg, #0077dd 0%, #0891b2 100%);
  --dt-gradient-card: linear-gradient(145deg, #ffffff, #eef2f8);

  --dt-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --dt-shadow-lg: 0 8px 40px rgba(15, 23, 42, 0.1);
}

/* Phones and tablets: compact top bar, and a bottom tab bar when signed in */
@media (max-width: 991.98px) {
  :root { --dt-nav-h: 60px; }
  body.dt-has-tabbar { --dt-tabbar-h: calc(60px + env(safe-area-inset-bottom, 0px)); }
  body.dt-in-call { --dt-tabbar-h: 0px; }
  /* The dial card has its own balance and Top up, so the dialer gets the whole screen */
  body.dt-page-dial { --dt-nav-h: 0px; }
  body.dt-page-dial .dt-navbar { display: none; }
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--dt-bg);
  color: var(--dt-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--dt-tabbar-h);
}

/* ── Navigation ─────────────────────────────────────────────── */
.dt-navbar {
  height: var(--dt-nav-h);
  padding: 0 env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px);
  background: var(--dt-nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dt-border);
  transition: transform 0.3s ease;
}
.dt-navbar-hidden { transform: translateY(-100%); }
.dt-navbar .navbar-brand { padding: 0; margin-right: 1.5rem; }
.dt-brand-img { width: 30px; height: 30px; }

.dt-nav-text-link {
  padding: 0.4rem 0.75rem;
  color: var(--dt-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}
.dt-nav-text-link:hover { color: var(--dt-text); }

/* Sun/moon button: shows the theme a tap switches to */
.dt-theme-toggle {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--dt-text-muted);
  font-size: 1.05rem;
  transition: var(--dt-transition);
}
.dt-theme-toggle:hover { color: var(--dt-text); background: var(--dt-wash); }
.dt-theme-toggle > span { display: inline-flex; }
[data-bs-theme="dark"] .dt-theme-to-dark,
[data-bs-theme="light"] .dt-theme-to-light { display: none; }

/* Phones: keep the logo, sun/moon, Sign in and Start calling on one line */
@media (max-width: 575.98px) {
  .dt-navbar .navbar-brand { margin-right: 0.5rem; }
  .dt-nav-text-link { padding-left: 0.5rem; padding-right: 0.5rem; }
  .dt-theme-toggle { width: 32px; }
}
/* Narrower than 360px and signed out (no tab bar): the logo without the name, so they still fit */
@media (max-width: 359.98px) {
  body:not(.dt-has-tabbar) .dt-navbar .dt-brand-text { display: none; }
}

.dt-user-toggle { display: flex; align-items: center; gap: 0.5rem; }

@media (max-width: 991.98px) {
  .dt-brand-img { width: 26px; height: 26px; }
  .dt-navbar .dt-brand-text { font-size: 1.15rem; }
}

.dt-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--dt-text) !important;
}

.dt-brand-text {
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--dt-gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav .nav-link {
  color: var(--dt-text-muted) !important;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--dt-transition);
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--dt-text) !important;
  background: var(--dt-wash);
}

.dt-balance-pill {
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--dt-success);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  transition: var(--dt-transition);
}

.dt-balance-pill:hover {
  background: rgba(16, 185, 129, 0.25);
}

.dt-dropdown {
  background: var(--dt-bg-card);
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius);
  box-shadow: var(--dt-shadow-lg);
}

.dt-dropdown .dropdown-item {
  color: var(--dt-text-muted);
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  transition: var(--dt-transition);
}

.dt-dropdown .dropdown-item:hover {
  background: var(--dt-wash);
  color: var(--dt-text);
}

/* ── Main Content ────────────────────────────────────────────── */
.dt-main {
  flex: 1;
  padding-top: var(--dt-nav-h);
}

/* ── Bottom tab bar (phones, signed in) ─────────────────────── */
.dt-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  display: flex;
  height: var(--dt-tabbar-h);
  padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  background: var(--dt-tabbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--dt-border);
}
.dt-in-call .dt-tabbar { display: none; }

.dt-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--dt-text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.dt-tab i { font-size: 1.3rem; line-height: 1; }
.dt-tab:hover { color: var(--dt-text); }
.dt-tab.active { color: var(--dt-primary-light); }

/* ── Cards ──────────────────────────────────────────────────── */
.dt-card {
  background: var(--dt-bg-card);
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius-lg);
  box-shadow: var(--dt-shadow);
  transition: var(--dt-transition);
}

.dt-card:hover {
  border-color: rgba(0, 119, 221, 0.3);
  box-shadow: var(--dt-shadow-lg);
}

.dt-card-header {
  padding: 1.5rem 1.5rem 0;
  border-bottom: none;
}

.dt-card-body {
  padding: 1.5rem;
}

/* ── Auth pages ─────────────────────────────────────────────── */
.dt-auth-wrapper {
  min-height: calc(100vh - var(--dt-nav-h) - var(--dt-tabbar-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.dt-auth-card {
  width: 100%;
  max-width: 500px;
  background: var(--dt-bg-card);
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--dt-shadow-lg);
  position: relative;
  overflow: hidden;
}

.dt-auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--dt-gradient-hero);
}

.dt-auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.dt-auth-subtitle {
  color: var(--dt-text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Icon badge used on auth pages */
.dt-auth-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 119, 221, 0.1);
  border: 1px solid rgba(0, 119, 221, 0.2);
  margin: 0 auto;
}

.dt-auth-icon-badge--success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}

.dt-auth-icon-badge--danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
}

/* Divider with 'or' label */
.dt-auth-divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--dt-text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dt-auth-divider::before,
.dt-auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--dt-border);
}

.dt-auth-divider::before { left: 0; }
.dt-auth-divider::after  { right: 0; }

/* Continue with Google / Apple / Facebook / Microsoft, in each brand's colours */
.dt-social-login {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.dt-social-btn {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--dt-transition);
  /* A provider without its own colours below */
  border: 1px solid var(--dt-border);
  background: var(--dt-bg-card);
  color: var(--dt-text);
}
.dt-social-btn:active { transform: scale(0.99); }
.dt-social-btn i { font-size: 1.15rem; line-height: 1; }

.dt-social-google {
  border: 1px solid #dadce0;
  background: #fff;
  color: #1f1f1f;
}
.dt-social-google:hover { background: #f2f2f2; }

.dt-social-apple {
  border: 1px solid #fff;
  background: #000;
  color: #fff;
}
.dt-social-apple:hover { background: #1a1a1a; }

.dt-social-facebook {
  border: 1px solid #1877f2;
  background: #1877f2;
  color: #fff;
}
.dt-social-facebook:hover { background: #166fe5; }

.dt-social-microsoft {
  border: 1px solid #8c8c8c;
  background: #fff;
  color: #5e5e5e;
}
.dt-social-microsoft:hover { background: #f2f2f2; }

/* allauth's own pages (sign-in errors, set a password), as a card */
.dt-allauth-page .dt-main {
  flex: none;
  width: calc(100% - 2rem);
  max-width: 500px;
  margin: calc(var(--dt-nav-h) + 2rem) auto 2rem;
  padding: 1.75rem;
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius-lg);
  background: var(--dt-bg-card);
  box-shadow: var(--dt-shadow-lg);
}
.dt-allauth-page .dt-main h1 { margin-bottom: 0.75rem; font-size: 1.5rem; font-weight: 700; }
.dt-allauth-page .dt-main p { color: var(--dt-text-muted); }
.dt-allauth-page .dt-main label { display: block; margin-bottom: 0.35rem; font-size: 0.85rem; color: var(--dt-text-muted); }
.dt-allauth-page .dt-main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--dt-border);
  border-radius: 10px;
  background: var(--dt-bg-input);
  color: var(--dt-text);
}
.dt-allauth-page .dt-main button[type="submit"],
.dt-allauth-page .dt-main button:not([type]) {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 12px;
  background: var(--dt-primary);
  color: #fff;
  font-weight: 600;
}

/* Subtle back link */
.dt-auth-back-link {
  display: inline-flex;
  align-items: center;
  color: var(--dt-text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--dt-transition);
}

.dt-auth-back-link:hover {
  color: var(--dt-primary);
}

/* Info box for tips/notes on auth pages */
.dt-info-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 119, 221, 0.07);
  border: 1px solid rgba(0, 119, 221, 0.15);
  border-radius: var(--dt-radius);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--dt-text-muted);
  text-align: left;
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dt-text-muted);
  margin-bottom: 0.4rem;
}

.form-control, .form-select {
  background: var(--dt-bg-input);
  border: 1px solid var(--dt-border);
  border-radius: 10px;
  color: var(--dt-text);
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  transition: var(--dt-transition);
}

.form-control:focus, .form-select:focus {
  background: var(--dt-bg-input);
  border-color: var(--dt-primary);
  box-shadow: 0 0 0 3px var(--dt-primary-glow);
  color: var(--dt-text);
  outline: none;
}

.form-control::placeholder {
  color: var(--dt-text-placeholder);
}

.form-control.is-invalid {
  border-color: var(--dt-danger);
}

.form-text, .form-control + small {
  font-size: 0.8rem;
  color: var(--dt-text-placeholder);
}

/* Sign-up field only bots fill in. Not shown, so browsers and password managers don't fill it either */
.dt-trap {
  display: none !important;
}

/* The 6-digit code emailed to confirm an account */
.form-control.dt-code-input {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.form-control.dt-code-input::placeholder { letter-spacing: 0.4em; opacity: 0.35; }

/* Eye button inside a password field that shows or hides it (static/js/password-toggle.js) */
.dt-password { display: block; position: relative; }
.dt-password .form-control,
.dt-allauth-page .dt-main .dt-password input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  padding-right: 3rem;
}
.dt-password .form-control.is-invalid {  /* Bootstrap's warning icon moves left of the eye */
  padding-right: calc(1.5em + 0.75rem + 2.25rem);
  background-position: right calc(0.375em + 0.1875rem + 2.25rem) center;
}
.dt-password .form-control::-ms-reveal { display: none; }  /* Edge's own eye, else there'd be two */
.dt-password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0 10px 10px 0;
  background: none;
  color: var(--dt-text-muted);
  font-size: 1.15rem;
}
.dt-password-toggle:hover { color: var(--dt-text); }
.dt-password-toggle:focus-visible { outline: 2px solid var(--dt-primary); outline-offset: -2px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  font-weight: 600;
  border-radius: 10px;
  transition: var(--dt-transition);
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--dt-primary);
  border-color: var(--dt-primary);
  box-shadow: 0 4px 12px var(--dt-primary-glow);
}

.btn-primary:hover {
  background: var(--dt-primary-dark);
  border-color: var(--dt-primary-dark);
  box-shadow: 0 6px 20px rgba(0, 119, 221, 0.4);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-success {
  background: var(--dt-success);
  border-color: var(--dt-success);
}

.btn-danger {
  background: var(--dt-danger);
  border-color: var(--dt-danger);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: 12px;
}

/* ── Alerts ─────────────────────────────────────────────────── */
.dt-alert {
  border-radius: var(--dt-radius);
  border: none;
  font-size: 0.9rem;
}

.alert-success { background: rgba(16, 185, 129, 0.15); color: var(--dt-text-success); }
.alert-error,
.alert-danger  { background: rgba(239, 68, 68, 0.15);  color: var(--dt-text-danger); }
.alert-warning { background: rgba(245, 158, 11, 0.15); color: var(--dt-text-warning); }
.alert-info    { background: rgba(59, 130, 246, 0.15); color: var(--dt-text-info); }

/* ── Page headers ────────────────────────────────────────────── */
.dt-page-header {
  padding: 2.5rem 0 1.5rem;
}

.dt-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.dt-page-subtitle {
  color: var(--dt-text-muted);
  font-size: 0.95rem;
}

/* ── Dial Page ───────────────────────────────────────────────── */
.dt-dial-wrapper {
  min-height: calc(100vh - var(--dt-nav-h) - var(--dt-tabbar-h));
  min-height: calc(100dvh - var(--dt-nav-h) - var(--dt-tabbar-h));
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.25rem 1rem 1.5rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(0,119,221,0.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0,180,216,0.05) 0%, transparent 50%),
    var(--dt-bg);
}

.dt-dial-column {
  width: 100%;
  max-width: 450px;
}

.dt-dial-card {
  background: var(--dt-bg-card);
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius-lg);
  padding: 1rem 1.25rem 1.1rem;
  box-shadow: var(--dt-shadow-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.dt-dial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--dt-gradient-hero);
}

/* Idle vs in-call: .dt-idle-only / .dt-call-only, keypad toggled during a call */
.dt-dial-card:not(.dt-mode-call) .dt-call-only { display: none !important; }
.dt-dial-card.dt-mode-call .dt-idle-only { display: none !important; }
.dt-dial-card.dt-mode-call:not(.dt-show-keypad) .dt-keypad { display: none; }

/* Add to home screen banner */
.dt-install-banner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
  padding: 0.55rem 0.5rem 0.55rem 0.65rem;
  border: 1px solid rgba(0, 119, 221, 0.3);
  border-radius: var(--dt-radius);
  background: linear-gradient(135deg, rgba(0, 119, 221, 0.16), rgba(17, 21, 32, 0.95));
}
.dt-install-banner[hidden],
.dt-in-call .dt-install-banner { display: none; }
.dt-install-banner img { flex-shrink: 0; border-radius: 9px; }
.dt-install-banner .btn[hidden] { display: none; }

.dt-install-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.dt-install-text strong { font-size: 0.85rem; }
.dt-install-text span { font-size: 0.75rem; color: var(--dt-text-muted); }

.dt-install-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--dt-text-muted);
}
.dt-install-close:hover { color: var(--dt-text); background: var(--dt-wash); }

/* Very short screens: keep Call in view, the banner goes under the card */
@media (max-height: 600px) {
  .dt-dial-column { display: flex; flex-direction: column; }
  .dt-install-banner { order: 1; margin: 0.75rem 0 0; }
  .dt-dial-column .dt-recent-calls { order: 2; }
}

/* Balance row */
.dt-dial-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dt-dial-balance {
  color: var(--dt-text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.dt-dial-balance-label {
  color: var(--dt-text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 0.35rem;
}

.dt-dial-topup-link {
  color: var(--dt-primary-light);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Favourites and recent numbers: one row that scrolls sideways. A fade and an
   arrow mark each side with more chips (.dt-more-left / .dt-more-right, set by JS). */
.dt-quick-dial-wrap {
  position: relative;
  margin: 0 -1.25rem;
}
.dt-quick-dial {
  --fade-left: 0px;
  --fade-right: 0px;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.1rem 1.25rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-left), #000 calc(100% - var(--fade-right)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--fade-left), #000 calc(100% - var(--fade-right)), transparent);
}
.dt-quick-dial::-webkit-scrollbar { display: none; }
.dt-more-left .dt-quick-dial { --fade-left: 3.5rem; }
.dt-more-right .dt-quick-dial { --fade-right: 3.5rem; }

.dt-quick-dial-arrow {
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--dt-border);
  border-radius: 50%;
  background: var(--dt-bg-card-hover);
  color: var(--dt-text);
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transform: translateY(-50%);
}
.dt-quick-dial-arrow:hover { border-color: rgba(0,119,221,0.4); }
.dt-quick-dial-prev { left: 0.35rem; }
.dt-quick-dial-next { right: 0.35rem; }
.dt-more-left .dt-quick-dial-prev,
.dt-more-right .dt-quick-dial-next { display: flex; }

.dt-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--dt-border);
  background: var(--dt-bg-card-hover);
  color: var(--dt-text);
  font-size: 0.85rem;
  white-space: nowrap;
}
.dt-chip:hover { border-color: rgba(0,119,221,0.4); }
.dt-chip-saved { border-color: rgba(0,119,221,0.35); }
.dt-chip .bi-star-fill { color: var(--dt-star); font-size: 0.7rem; }

/* Number */
.dt-number-row {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  min-height: 3rem;
}

.dt-number-input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--dt-text);
  caret-color: transparent;
  text-align: center;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.dt-number-input.is-flash { animation: dt-number-flash 0.8s ease-out; }
@keyframes dt-number-flash {
  from { color: var(--dt-primary-light); text-shadow: 0 0 18px var(--dt-primary-light); }
}
.dt-number-input::placeholder {
  color: var(--dt-text-placeholder);
  font-size: 1.05rem;
  font-weight: 400;
}

.dt-icon-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: none;
  color: var(--dt-text-muted);
  font-size: 1.15rem;
  transition: var(--dt-transition);
}
.dt-icon-btn:hover { background: var(--dt-wash); color: var(--dt-text); }
.dt-icon-btn .bi-star-fill { color: var(--dt-star); }
.dt-icon-btn[hidden] { display: none; }

.dt-dest-line {
  margin-top: -0.4rem;
  min-height: 1.3em;
  text-align: center;
  font-size: 0.85rem;
  color: var(--dt-text-muted);
}
.dt-dest-line.is-warning { color: var(--dt-text-warning); }

.dt-dest-request {
  margin-left: 0.4rem;
  padding: 0.1rem 0.65rem;
  border: 1px solid rgba(252, 211, 77, 0.45);
  border-radius: 999px;
  background: rgba(252, 211, 77, 0.1);
  color: var(--dt-text-warning);
  font-size: 0.8rem;
  font-weight: 600;
  vertical-align: baseline;
}
.dt-dest-request:hover { background: rgba(252, 211, 77, 0.2); }
.dt-dest-save {
  border-color: rgba(51, 153, 255, 0.45);
  background: rgba(51, 153, 255, 0.1);
  color: var(--dt-primary-light);
}
.dt-dest-save:hover { background: rgba(51, 153, 255, 0.2); }
.dt-dest-request[hidden] { display: none; }
.dt-dest-request:disabled { opacity: 0.6; }

/* Keypad */
.dt-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.dt-key {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dt-border);
  border-radius: 16px;
  background: var(--dt-bg-card-hover);
  color: var(--dt-text);
  font-size: 1.55rem;
  font-weight: 500;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.dt-key:hover { background: rgba(0,119,221,0.12); border-color: rgba(0,119,221,0.35); }
.dt-key:active { transform: scale(0.95); background: rgba(0,119,221,0.22); border-color: var(--dt-primary); }
.dt-key-sym { color: var(--dt-text-muted); }

/* Status */
.dt-call-status {
  align-self: center;
  min-height: 1.9rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--dt-transition);
}
/* A call's length and cost go on a line of their own after a reason */
.dt-call-status > span { white-space: pre-line; }

.dt-call-status.status-idle      { color: var(--dt-text-muted); }
.dt-call-status.status-calling   { background: rgba(245,158,11,0.12); color: var(--dt-text-warning); }
.dt-call-status.status-ringing   { background: rgba(59,130,246,0.12); color: var(--dt-text-info); animation: dt-pulse 1.5s ease-in-out infinite; }
.dt-call-status.status-connected { background: rgba(16,185,129,0.12); color: var(--dt-text-success); }
.dt-call-status.status-ending    { background: rgba(245,158,11,0.12); color: var(--dt-text-warning); }
.dt-call-status.status-ended     { background: rgba(148,163,184,0.08); color: var(--dt-text-muted); }
.dt-call-status.status-failed    { background: rgba(239,68,68,0.12); color: var(--dt-text-danger); }

@keyframes dt-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* After a call: "How was the call?" under its summary. What went wrong, or an idea, takes the
   keypad's place so Call stays where it was. */
.dt-feedback { display: flex; flex-direction: column; }
.dt-feedback[hidden],
.dt-feedback [hidden] { display: none !important; }
.dt-dial-card.dt-feedback-open .dt-keypad { display: none; }

/* On phones the buttons go on a line of their own, under the question */
.dt-feedback-ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.85rem;
  color: var(--dt-text-muted);
}
.dt-feedback-choices { display: inline-flex; align-items: center; gap: 0.4rem; }

.dt-feedback-btn,
.dt-feedback-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0.25rem 0.8rem;
  border: 1px solid var(--dt-border);
  border-radius: 999px;
  background: var(--dt-bg-card-hover);
  color: var(--dt-text);
  font-size: 0.85rem;
}
.dt-feedback-btn:hover,
.dt-feedback-chip:hover { border-color: rgba(0,119,221,0.4); }

.dt-feedback-close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--dt-text-muted);
}
.dt-feedback-close:hover { color: var(--dt-text); background: var(--dt-wash); }

.dt-feedback-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.9rem;
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius);
}
.dt-feedback-title { font-size: 0.95rem; font-weight: 600; outline: none; }

.dt-feedback-problems {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
/* The tick box stays for keyboards and screen readers; the chip shows it */
.dt-feedback-check { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dt-feedback-chip { margin: 0; font-size: 0.8rem; cursor: pointer; user-select: none; -webkit-user-select: none; }
.dt-feedback-check:checked + .dt-feedback-chip {
  border-color: var(--dt-primary);
  background: var(--dt-primary-glow);
  color: var(--dt-primary-light);
}
.dt-feedback-check:focus-visible + .dt-feedback-chip { outline: 2px solid var(--dt-border-focus); outline-offset: 2px; }

.dt-feedback-comment { font-size: 0.9rem; resize: vertical; }

.dt-feedback-actions { display: flex; align-items: center; gap: 0.5rem; }
.dt-feedback-actions .btn-primary { min-width: 6.5rem; }
.dt-feedback-skip { color: var(--dt-text-muted); text-decoration: none; }
.dt-feedback-skip:hover { color: var(--dt-text); }

.dt-feedback-thanks {
  text-align: center;
  font-size: 0.85rem;
  color: var(--dt-text-success);
}

/* Call / Top up / End */
.dt-call-btn {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--dt-transition);
}
.dt-call-btn:active { transform: scale(0.98); }
.dt-call-btn[hidden] { display: none !important; }

.dt-dial-note {
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--dt-text-muted);
}

/* Under a short call's summary: the other side ended it, so call again */
.dt-ended-note {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--dt-text-muted);
}

.dt-mic-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 12px;
  background: rgba(245,158,11,0.1);
  color: var(--dt-text-warning);
  font-size: 0.8rem;
}
.dt-mic-warning[hidden] { display: none; }

/* In a call */
.dt-incall-name {
  padding-top: 0.75rem;
  text-align: center;
  font-size: 1rem;
  color: var(--dt-text-muted);
}
.dt-dial-card.dt-mode-call .dt-number-input { font-size: 1.5rem; }

.dt-incall-meta { text-align: center; }

.dt-call-timer {
  font-size: 2.75rem;
  font-weight: 300;
  line-height: 1.1;
  color: var(--dt-success);
  font-variant-numeric: tabular-nums;
}

/* Until the call is answered (.dt-call-waiting), rings spread from a phone where the timer will be:
   amber while the call connects, blue once it rings (.dt-call-ringing). The timer then takes the
   same space, so nothing moves when the call is answered. */
.dt-dial-card { --dt-rings-size: 6rem; }
.dt-dial-card.dt-show-keypad { --dt-rings-size: 2rem; }  /* the timer's height with the keypad open */

.dt-call-rings {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--dt-rings-size);
  height: var(--dt-rings-size);
  margin: 0 auto;
  color: var(--dt-warning);
  transition: color 0.3s;
}
.dt-dial-card.dt-call-waiting .dt-call-rings { display: flex; }
.dt-dial-card.dt-call-ringing .dt-call-rings { color: #3b82f6; }

.dt-call-rings span {
  position: absolute;
  inset: 23%;  /* the phone's circle, which each ring grows out of */
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  animation: dt-ring-out 2.1s ease-out infinite;
}
.dt-call-rings span:nth-child(2) { animation-delay: 0.7s; }
.dt-call-rings span:nth-child(3) { animation-delay: 1.4s; }

.dt-call-rings i {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54%;
  height: 54%;
  border-radius: 50%;
  background: currentColor;
  font-size: calc(var(--dt-rings-size) / 4);
}
.dt-call-rings i::before { color: var(--dt-bg-card); }

@keyframes dt-ring-out {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(1.85); opacity: 0; }
}

.dt-dial-card.dt-mode-call .dt-call-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--dt-rings-size);
}
.dt-dial-card.dt-call-waiting .dt-call-timer { display: none; }

@media (prefers-reduced-motion: reduce) {
  .dt-call-rings span { animation: none; opacity: 0.3; transform: scale(1.4); }
  .dt-call-rings span + span { opacity: 0.15; transform: scale(1.8); }
}

.dt-incall-cost {
  min-height: 1.3em;
  font-size: 0.9rem;
  color: var(--dt-text-muted);
}

/* The last minute before the balance or the country's longest call ends it (the status says which) */
.dt-call-ending {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dt-text-warning);
  font-variant-numeric: tabular-nums;
}

.dt-dtmf {
  min-height: 1.4em;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--dt-text);
}

.dt-incall-controls {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.25rem 0;
}

.dt-round-btn {
  width: 72px;
  height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  border: 1px solid var(--dt-border);
  border-radius: 50%;
  background: var(--dt-bg-card-hover);
  color: var(--dt-text);
  font-size: 0.72rem;
  transition: var(--dt-transition);
}
.dt-round-btn i { font-size: 1.35rem; }
.dt-round-btn[aria-pressed="true"] { background: var(--dt-text); color: var(--dt-bg); }

/* Keypad open during a call: compact the header so End stays on screen */
.dt-dial-card.dt-show-keypad .dt-incall-name { padding-top: 0; }
.dt-dial-card.dt-show-keypad .dt-call-timer { font-size: 1.75rem; }
.dt-dial-card.dt-show-keypad .dt-key { height: 50px; }
.dt-dial-card.dt-show-keypad .dt-incall-controls { padding: 0; }

.dt-modal {
  background: var(--dt-bg-card);
  border: 1px solid var(--dt-border);
}

/* Slim footer on the dial page */
.dt-footer-slim {
  padding: 0.75rem 1rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--dt-text-muted);
}
.dt-footer-slim a { color: var(--dt-text-muted); text-decoration: none; }
.dt-footer-slim a:hover { color: var(--dt-text); text-decoration: underline; }
.dt-footer-slim span[aria-hidden] { margin: 0 0.35rem; opacity: 0.5; }

@media (max-width: 576px) {
  .dt-dial-wrapper { padding: 0.75rem 0.75rem 1rem; }
  .dt-dial-card { padding: 0.9rem 1rem 1rem; }
  .dt-quick-dial-wrap { margin: 0 -1rem; }
  .dt-quick-dial { padding: 0.1rem 1rem; }
  /* In a call, keep End near the bottom of the screen */
  .dt-dial-card.dt-mode-call { min-height: calc(100dvh - var(--dt-nav-h) - 1.75rem); }
  .dt-dial-card.dt-mode-call #hangup-btn { margin-top: auto; }
}

/* Short phones (e.g. iPhone SE): tighten so Call stays on screen */
@media (max-height: 700px) {
  .dt-dial-wrapper { padding-top: 0.5rem; }
  .dt-dial-card { gap: 0.5rem; }
  .dt-key { height: 50px; font-size: 1.4rem; }
  .dt-number-input { font-size: 1.6rem; }
  .dt-call-btn { height: 52px; }
}

/* Very short screens (e.g. iPhone SE in Safari) */
@media (max-height: 600px) {
  .dt-dial-card { gap: 0.4rem; padding-top: 0.8rem; padding-bottom: 0.8rem; }
  .dt-keypad { gap: 0.45rem; }
  .dt-key { height: 44px; font-size: 1.3rem; border-radius: 14px; }
  .dt-call-btn { height: 48px; }
  .dt-number-row { min-height: 2.6rem; }
}

/* ── Recent Calls (Dial Page Quick Redial) ──────────────────── */
.dt-recent-calls {
  width: 100%;
  margin-top: 1.25rem;
}

.dt-recent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dt-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
  padding: 0 0.15rem;
}

.dt-recent-viewall {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--dt-primary);
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  transition: color 0.2s;
}
.dt-recent-viewall:hover {
  color: var(--dt-primary-light, #3399ff);
}

.dt-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: var(--dt-bg-card);
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius);
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.dt-recent-item:hover {
  border-color: rgba(0, 119, 221, 0.25);
  background: var(--dt-bg-card-hover, rgba(255,255,255,0.03));
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.dt-recent-item:last-child {
  margin-bottom: 0;
}

.dt-recent-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.dt-recent-flag {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.dt-recent-info {
  min-width: 0;
}

.dt-recent-number {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

.dt-recent-meta {
  font-size: 0.72rem;
  color: var(--dt-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.1rem;
}

.dt-recent-sep {
  margin: 0 0.25rem;
  opacity: 0.4;
}

.dt-recent-redial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: var(--dt-success);
  font-size: 0.9rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.dt-recent-redial:hover {
  background: var(--dt-success);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

/* ── App pages (history, wallet, top up, account) ─────────── */
.dt-page {
  max-width: 720px;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}
.dt-page--narrow { max-width: 540px; }
.dt-page--full { max-width: none; }  /* inside a .container, which sets the width (guides) */

.dt-page .dt-page-header { padding: 0.5rem 0 1.25rem; }
.dt-page .dt-page-title { margin: 0; }
.dt-page .dt-page-subtitle { margin-top: 0.25rem; }

.dt-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0 0 0.5rem -0.2rem;
  color: var(--dt-primary-light);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}
.dt-back-link:hover { color: var(--dt-text); }

.dt-section-label {
  margin: 2rem 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dt-text);
}

.dt-hint {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--dt-text-muted);
}
.dt-hint a { color: var(--dt-primary-light); }

/* Grouped lists: statement, history, account settings */
.dt-list-heading {
  margin: 1.25rem 0 0.5rem 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dt-text-muted);
}

.dt-list {
  overflow: hidden;
  background: var(--dt-bg-card);
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius);
}

.dt-list-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 60px;
  padding: 0.65rem 1rem;
  border: none;
  background: none;
  color: var(--dt-text);
  text-align: left;
  text-decoration: none;
}
.dt-list-item + .dt-list-item { border-top: 1px solid var(--dt-border); }
.dt-list-item[hidden] { display: none; }

.dt-list-item--link { cursor: pointer; transition: background 0.15s; }
.dt-list-item--link:hover,
.dt-list-item--link:focus-visible { background: var(--dt-bg-card-hover); color: var(--dt-text); }
.dt-list-item--link:active { background: rgba(0, 119, 221, 0.12); }

.dt-list-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--dt-wash);
  color: var(--dt-text-muted);
  font-size: 1rem;
}
.dt-list-icon--green { background: rgba(16, 185, 129, 0.14); color: var(--dt-success); }
.dt-list-icon--flag { background: rgba(255, 255, 255, 0.04); font-size: 1.35rem; }

.dt-list-body { flex: 1; min-width: 0; }

.dt-list-title {
  overflow: hidden;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.dt-list-meta {
  overflow: hidden;
  margin-top: 0.1rem;
  font-size: 0.78rem;
  color: var(--dt-text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dt-list-end {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.dt-list-amount { color: var(--dt-text-muted); font-size: 0.85rem; font-weight: 500; }
.dt-amount-in { color: var(--dt-success); }
.dt-chevron { flex-shrink: 0; color: var(--dt-text-placeholder); }

.dt-call-ok { color: var(--dt-success); }
.dt-call-missed { color: var(--dt-danger); }
.dt-redial-icon { color: var(--dt-success); font-size: 1rem; }

/* Contacts: the row calls, the pencil edits */
.dt-contact-row { gap: 0.25rem; padding-right: 0.5rem; }
.dt-contact-call {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-right: 0.5rem;
  color: inherit;
  text-decoration: none;
}
.dt-contact-call:hover .dt-list-title { color: var(--dt-primary-light); }

.dt-recent-picks { margin-top: 0.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dt-recent-picks-label { width: 100%; font-size: 0.8rem; color: var(--dt-text-muted); }

.dt-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--dt-text-muted);
}
.dt-empty > i { display: block; margin-bottom: 0.75rem; font-size: 2.5rem; opacity: 0.35; }

.dt-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.dt-pager-label { font-size: 0.8rem; color: var(--dt-text-muted); }

/* Wallet balance */
.dt-balance-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid rgba(0, 119, 221, 0.25);
  border-radius: var(--dt-radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 180, 216, 0.18) 0%, transparent 55%),
    linear-gradient(135deg, rgba(0, 119, 221, 0.16), var(--dt-glass));
}
.dt-balance-card-label { font-size: 0.85rem; color: var(--dt-text-muted); }
.dt-balance-card-amount {
  margin: 0.15rem 0 0.35rem;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.dt-balance-card-note { font-size: 0.85rem; color: var(--dt-text-muted); }

/* Promo code box under the balance */
.dt-promo { margin-top: 1rem; }
.dt-promo summary {
  display: inline-block;
  list-style: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dt-primary-light);
}
.dt-promo summary::-webkit-details-marker { display: none; }
.dt-promo-row { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.dt-promo-row .form-control { text-transform: uppercase; }
.dt-promo-row .form-control::placeholder { text-transform: none; }
.dt-promo-row .btn { flex-shrink: 0; }

/* /redeem/<code>/: the offer, big enough to read at a glance on a phone */
.dt-promo-page { padding-top: 1.5rem; padding-bottom: 3rem; }
.dt-promo-card { margin: 0 auto; }
.dt-promo-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 119, 221, 0.12);
  border: 1px solid rgba(0, 119, 221, 0.3);
  color: var(--dt-text-info);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.dt-promo-amount {
  margin: 1.25rem 0 0.75rem;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.dt-promo-amount-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.dt-promo-lead { color: var(--dt-text-muted); font-size: 1rem; line-height: 1.55; margin-bottom: 1.5rem; }
.dt-promo-alt {
  display: block;
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--dt-text-muted);
  text-decoration: none;
}
a.dt-promo-alt:hover { color: var(--dt-text); }
.dt-promo-steps {
  list-style: none;
  counter-reset: step;
  margin: 1.75rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--dt-border);
}
.dt-promo-steps li { display: flex; align-items: center; gap: 0.75rem; padding: 0.3rem 0; font-size: 0.95rem; counter-increment: step; }
.dt-promo-steps li::before {
  content: counter(step);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(0, 119, 221, 0.12);
  color: var(--dt-text-info);
  font-size: 0.8rem;
  font-weight: 700;
}
.dt-promo-terms { margin: 1.5rem 0 0; font-size: 0.8rem; line-height: 1.5; color: var(--dt-text-muted); }
.dt-promo-terms a { color: inherit; }

@media (min-width: 992px) {
  .dt-promo-page { padding-top: 3rem; padding-bottom: 4rem; }
}

/* A promo code opened before signing in: on the sign-up and sign-in forms… */
.dt-promo-offer {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--dt-radius);
  background: rgba(0, 119, 221, 0.1);
  border: 1px solid rgba(0, 119, 221, 0.35);
  text-align: left;
}
.dt-promo-offer > i { font-size: 1.4rem; line-height: 1; color: var(--dt-primary-light); }
.dt-promo-offer strong { display: block; font-size: 1rem; color: var(--dt-text); }
.dt-promo-offer span { font-size: 0.875rem; color: var(--dt-text-muted); }

/* …and a reminder on other public pages */
.dt-promo-bar {
  padding: 0.6rem 0;
  background: rgba(0, 119, 221, 0.14);
  border-bottom: 1px solid rgba(0, 119, 221, 0.3);
  font-size: 0.875rem;
  text-align: center;
  color: var(--dt-text);
}
.dt-promo-bar a { font-weight: 600; color: var(--dt-primary-light); white-space: nowrap; }

/* Top up */
.dt-page fieldset legend { float: none; margin-top: 0; margin-bottom: 0.75rem; }

.dt-amount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dt-amount-option { position: relative; display: block; cursor: pointer; }

.dt-amount-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dt-amount-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 1rem 0.5rem;
  border: 2px solid var(--dt-border);
  border-radius: var(--dt-radius);
  background: var(--dt-bg-card);
  transition: var(--dt-transition);
}
.dt-amount-option:hover .dt-amount-tile { border-color: rgba(0, 119, 221, 0.5); }
.dt-amount-radio:focus-visible + .dt-amount-tile { box-shadow: 0 0 0 3px var(--dt-primary-glow); }
.dt-amount-radio:checked + .dt-amount-tile {
  border-color: var(--dt-primary);
  background: rgba(0, 119, 221, 0.12);
}

.dt-amount-check {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  color: var(--dt-primary-light);
  opacity: 0;
  transition: opacity 0.15s;
}
.dt-amount-radio:checked + .dt-amount-tile .dt-amount-check { opacity: 1; }

.dt-amount-tile-value { font-size: 1.75rem; font-weight: 700; line-height: 1.1; }

/* PayPal's own button colours: gold with dark text, in both themes */
.dt-btn-paypal {
  --bs-btn-color: #111;
  --bs-btn-bg: #ffc439;
  --bs-btn-border-color: #ffc439;
  --bs-btn-hover-color: #111;
  --bs-btn-hover-bg: #f2b630;
  --bs-btn-hover-border-color: #f2b630;
  --bs-btn-active-color: #111;
  --bs-btn-active-bg: #e5aa26;
  --bs-btn-active-border-color: #e5aa26;
  --bs-btn-disabled-color: #111;
  --bs-btn-disabled-bg: #ffc439;
  --bs-btn-disabled-border-color: #ffc439;
}

/* Account */
.dt-avatar {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dt-gradient-hero);
  color: #fff;
  font-weight: 700;
}
.dt-avatar-sm { width: 28px; height: 28px; font-size: 0.8rem; }
.dt-avatar-lg { width: 60px; height: 60px; font-size: 1.6rem; }

.dt-account-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0 1.25rem;
}
.dt-account-name { margin: 0; font-size: 1.4rem; font-weight: 700; }
.dt-account-email {
  overflow: hidden;
  font-size: 0.9rem;
  color: var(--dt-text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.min-w-0 { min-width: 0; }

.dt-balance-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(0, 119, 221, 0.25);
  border-radius: var(--dt-radius);
  background: linear-gradient(135deg, rgba(0, 119, 221, 0.14), var(--dt-glass));
}
.dt-balance-strip > a:first-child { color: var(--dt-text); text-decoration: none; }
.dt-balance-strip-label { display: block; font-size: 0.8rem; color: var(--dt-text-muted); }
.dt-balance-strip-amount { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.dt-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.dt-stat {
  padding: 0.8rem 0.5rem;
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius);
  background: var(--dt-bg-card);
  text-align: center;
}
.dt-stat strong { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.dt-stat span { font-size: 0.75rem; color: var(--dt-text-muted); }

.dt-section { padding-top: 3rem; padding-bottom: 3rem; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 576px) {
  .dt-auth-wrapper { align-items: flex-start; padding-top: 1.5rem; }
  .dt-auth-card { padding: 1.75rem 1.25rem; }
  .dt-auth-title { font-size: 1.5rem; }
  .dt-auth-subtitle { margin-bottom: 1.5rem; }
  .dt-page { padding-top: 1rem; }
  .dt-page-title { font-size: 1.5rem; }
  .dt-section { padding-top: 1.5rem; padding-bottom: 2.5rem; }
  .dt-page-header { padding: 0.5rem 0 1rem; }
  .dt-amount-grid { gap: 0.5rem; }
}

.dt-auth-logo {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 14px;
}

/* ── Utility ─────────────────────────────────────────────────── */
.text-gradient {
  background: var(--dt-gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Landing Page ───────────────────────────────────────────── */
.dt-hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 119, 221, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(0, 180, 216, 0.10) 0%, transparent 45%);
}

.dt-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(0, 119, 221, 0.3);
  border-radius: 999px;
  background: rgba(0, 119, 221, 0.1);
  color: var(--dt-primary-light);
  font-size: 0.8rem;
  font-weight: 500;
}

.dt-hero-title {
  margin: 1.25rem 0 0;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.dt-hero-title .text-gradient { display: block; }

.dt-hero-subtitle {
  max-width: 540px;
  margin: 1.25rem auto 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--dt-text-muted);
}

.dt-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}
.dt-hero-actions .btn { min-width: 170px; }

.dt-hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.dt-hero-stats div { display: flex; flex-direction: column; }
.dt-hero-stats strong { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.dt-hero-stats span { font-size: 0.8rem; color: var(--dt-text-muted); }

.dt-hero-device {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 119, 221, 0.25));
}

@media (min-width: 992px) {
  .dt-hero { padding: 5rem 0; min-height: calc(100vh - var(--dt-nav-h)); display: flex; align-items: center; }
  .dt-hero > .container { width: 100%; }
  .dt-hero-subtitle { margin-left: 0; }
  .dt-hero-actions, .dt-hero-stats { justify-content: flex-start; }
}

@media (max-width: 991.98px) {
  .dt-hero-device { max-width: 240px; }
}

@media (max-width: 576px) {
  .dt-hero { padding: 2rem 0 2.5rem; }
  .dt-hero-subtitle { font-size: 1rem; }
  .dt-hero-actions { flex-direction: column; }
  .dt-hero-actions .btn { width: 100%; }
  .dt-hero-stats { gap: 1.5rem; }
  .dt-hero-stats strong { font-size: 1.25rem; }
}

.dt-landing-section { padding: 5rem 0; }

.dt-landing-section--alt {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid var(--dt-border);
  border-bottom: 1px solid var(--dt-border);
}

.dt-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dt-text);
  letter-spacing: -0.02em;
}

.dt-section-subtitle {
  font-size: 1.05rem;
  color: var(--dt-text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Rates */
.dt-rate-search {
  position: relative;
  max-width: 420px;
  margin: 0 auto 1.25rem;
}
.dt-rate-search i {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--dt-text-muted);
}
.dt-rate-search .form-control { padding-left: 2.6rem; }

.dt-rate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto;
}

.dt-rate-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius);
  background: var(--dt-bg-card);
}
.dt-rate-card[hidden] { display: none; }
.dt-rate-flag { font-size: 1.9rem; line-height: 1; }
.dt-rate-country { flex: 1; min-width: 0; }
.dt-rate-name { font-weight: 600; }
.dt-rate-code { font-size: 0.8rem; color: var(--dt-text-muted); }
.dt-rate-price { text-align: right; white-space: nowrap; }
.dt-rate-price strong { font-size: 1.3rem; color: var(--dt-text); }
.dt-rate-price span { font-size: 0.8rem; color: var(--dt-text-muted); }
.dt-rate-fee { font-size: 0.72rem; color: var(--dt-text-muted); }

/* Steps */
.dt-step-card {
  display: flex;
  gap: 1rem;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius-lg);
  background: var(--dt-bg-card);
}
.dt-step-card p { margin: 0; font-size: 0.9rem; color: var(--dt-text-muted); }
.dt-step-title { margin: 0.4rem 0 0.35rem; font-size: 1.05rem; font-weight: 700; }

.dt-step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--dt-gradient-hero);
  color: #fff;
  font-weight: 800;
}

/* Benefits */
.dt-benefit-card {
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius);
  background: var(--dt-bg-card);
}
.dt-benefit-card p { margin: 0; font-size: 0.875rem; color: var(--dt-text-muted); }
.dt-benefit-title { margin-bottom: 0.4rem; font-size: 1rem; font-weight: 700; }

.dt-benefit-icon {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  color: var(--dt-primary-light);
}

/* FAQ */
.dt-faq { max-width: 760px; }

.dt-faq-item {
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius);
  background: var(--dt-bg-card);
}
.dt-faq-item + .dt-faq-item { margin-top: 0.75rem; }

.dt-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.dt-faq-item summary::-webkit-details-marker { display: none; }
.dt-faq-item summary::after {
  content: '\F282'; /* bi-chevron-down */
  font-family: 'bootstrap-icons';
  color: var(--dt-text-muted);
  transition: transform 0.2s;
}
.dt-faq-item[open] summary::after { transform: rotate(180deg); }

.dt-faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.1rem;
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--dt-text-muted);
}

/* CTA Card */
.dt-cta-card {
  background: var(--dt-bg-card);
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius-lg);
  padding: 3.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.dt-cta-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--dt-gradient-hero);
}

/* Footer */
.dt-footer {
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--dt-border);
  background: rgba(0, 0, 0, 0.2);
}

.dt-footer-brand {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  color: var(--dt-text);
}

.dt-footer-heading {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dt-text-muted);
  margin-bottom: 0.75rem;
}

.dt-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dt-footer-links li {
  margin-bottom: 0.4rem;
}

.dt-footer-links a {
  color: var(--dt-text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.dt-footer-links a:hover {
  color: var(--dt-primary);
}

.dt-footer-links a.dt-footer-more {
  color: var(--dt-text);
  font-weight: 500;
}

.dt-footer-social {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.dt-footer-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dt-border);
  border-radius: 50%;
  color: var(--dt-text-muted);
  font-size: 1.05rem;
  text-decoration: none;
  transition: var(--dt-transition);
}

.dt-footer-social a:hover {
  color: var(--dt-text);
  border-color: rgba(0, 119, 221, 0.4);
  background: rgba(0, 119, 221, 0.12);
}

.dt-footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dt-border);
  text-align: center;
}

.dt-footer-bottom a {
  color: inherit;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.dt-footer-bottom a:hover {
  color: var(--dt-primary);
}

/* Danadata's lion, in both footers. The file is black, so it's turned white on the dark theme */
.dt-footer-company {
  display: block;
  width: fit-content;
  margin: 0 auto 0.6rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.dt-footer-company:hover { opacity: 1; }
.dt-footer-company img { display: block; filter: invert(1); }
.dt-footer-slim .dt-footer-company { margin: 0.6rem auto 0; }

@media (max-width: 768px) {
  .dt-section-title { font-size: 1.6rem; }
  .dt-landing-section { padding: 3rem 0; }
  .dt-cta-card { padding: 2.5rem 1.25rem; }
}

/* ── Legal pages (Privacy / Terms) ───────────────────────────── */
.dt-legal-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: rgba(0, 119, 221, 0.07);
  border: 1px solid rgba(0, 119, 221, 0.15);
  border-radius: var(--dt-radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--dt-text-muted);
  line-height: 1.6;
}

.dt-legal-body h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dt-text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--dt-border);
}

.dt-legal-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dt-text);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.dt-legal-body p,
.dt-legal-body li {
  font-size: 0.9rem;
  color: var(--dt-text-muted);
  line-height: 1.75;
}

.dt-legal-body ul {
  padding-left: 1.25rem;
}

.dt-legal-body a {
  color: var(--dt-primary);
  text-decoration: none;
}

.dt-legal-body a:hover {
  text-decoration: underline;
}

/* ── Error Pages (404, 500, 403) ────────────────────────────── */
.dt-error-page {
  min-height: calc(100vh - var(--dt-nav-h) - var(--dt-tabbar-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at 30% 30%, rgba(0,119,221,0.06) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(239,68,68,0.04) 0%, transparent 50%),
    var(--dt-bg);
}

.dt-error-card {
  text-align: center;
  max-width: 480px;
  padding: 3rem 2rem;
  background: var(--dt-bg-card);
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius-lg);
  box-shadow: var(--dt-shadow-lg);
}

.dt-error-code {
  font-size: 6rem;
  font-weight: 800;
  line-height: 1;
  background: var(--dt-gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.dt-error-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dt-text);
  margin-bottom: 0.75rem;
}

.dt-error-message {
  font-size: 0.9rem;
  color: var(--dt-text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ── Marketing pages: shared pieces ─────────────────────────── */
.dt-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--dt-text-muted);
}
.dt-checks li { display: flex; align-items: center; gap: 0.35rem; }
.dt-checks i { color: var(--dt-success); }
.dt-checks--hero { justify-content: center; margin-top: 1.5rem; }
@media (min-width: 992px) { .dt-checks--hero { justify-content: flex-start; } }

.dt-benefit-strip {
  border-top: 1px solid var(--dt-border);
  border-bottom: 1px solid var(--dt-border);
  background: rgba(255, 255, 255, 0.015);
}
.dt-benefit-strip ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 1.25rem 0;
  list-style: none;
}
@media (min-width: 768px) { .dt-benefit-strip ul { grid-template-columns: repeat(4, 1fr); } }
.dt-benefit-strip li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.8rem; color: var(--dt-text-muted); }
.dt-benefit-strip i { font-size: 1.25rem; color: var(--dt-primary-light); line-height: 1.2; }
.dt-benefit-strip strong { display: block; font-size: 0.9rem; color: var(--dt-text); }

.dt-rate-card--link { color: inherit; text-decoration: none; transition: border-color 0.15s, background 0.15s; }
.dt-rate-card--link:hover { border-color: rgba(0, 119, 221, 0.45); background: var(--dt-bg-card-hover); color: inherit; }

.dt-invite-note {
  padding: 0.65rem 0;
  background: rgba(16, 185, 129, 0.12);
  border-bottom: 1px solid rgba(16, 185, 129, 0.25);
  color: #a7f3d0;
  font-size: 0.875rem;
  text-align: center;
}

.dt-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--dt-text-muted);
}
.dt-breadcrumbs li + li::before { content: '›'; margin-right: 0.25rem; opacity: 0.6; }
.dt-breadcrumbs a { color: var(--dt-text-muted); text-decoration: none; }
.dt-breadcrumbs a:hover { color: var(--dt-text); text-decoration: underline; }

.dt-prose-width { max-width: 760px; }
.dt-lead { font-size: 1.05rem; line-height: 1.7; color: var(--dt-text-muted); }
.dt-lead strong { color: var(--dt-text); }

.dt-table {
  width: 100%;
  max-width: 480px;
  border-collapse: collapse;
  font-size: 0.925rem;
  font-variant-numeric: tabular-nums;
}
.dt-table th, .dt-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--dt-border); text-align: left; }
.dt-table th { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dt-text-muted); }

.dt-info-card {
  padding: 1.25rem;
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius);
  background: var(--dt-bg-card);
}
.dt-info-card h2, .dt-info-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; }
.dt-info-card p { margin-bottom: 0.5rem; font-size: 0.9rem; line-height: 1.6; color: var(--dt-text-muted); }
.dt-info-card p:last-child { margin-bottom: 0; }
.dt-number-format { font-size: 1.1rem !important; font-weight: 600; color: var(--dt-text) !important; font-variant-numeric: tabular-nums; }

.dt-prose { font-size: 0.975rem; line-height: 1.75; color: var(--dt-text-muted); }
.dt-prose h2 { margin: 2rem 0 0.75rem; font-size: 1.3rem; font-weight: 700; color: var(--dt-text); }
.dt-prose strong { color: var(--dt-text); }
.dt-prose a, .dt-guide-link a { color: var(--dt-primary-light); }
.dt-prose ul, .dt-prose ol { padding-left: 1.25rem; }
.dt-prose li { margin-bottom: 0.4rem; }
.dt-prose .dt-table { margin: 0.5rem 0 1rem; max-width: 100%; }
.dt-prose-list { padding-left: 1.1rem; line-height: 1.7; color: var(--dt-text-muted); }
.dt-prose-list li { margin-bottom: 0.5rem; }
.dt-prose-list strong { color: var(--dt-text); }

.dt-faq-answer p { margin: 0; padding: 0 1.25rem 1.1rem; font-size: 0.925rem; line-height: 1.65; color: var(--dt-text-muted); }

.dt-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}
.dt-link-grid a { color: var(--dt-text-muted); text-decoration: none; }
.dt-link-grid a:hover { color: var(--dt-text); text-decoration: underline; }
.dt-guide-link { font-size: 0.95rem; color: var(--dt-text-muted); }

/* ── Country pages ──────────────────────────────────────────── */
.dt-country-hero {
  padding: 1.5rem 0 2.5rem;
  background: radial-gradient(circle at 15% 10%, rgba(0, 119, 221, 0.14) 0%, transparent 45%);
}
.dt-country-title {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.dt-country-flag { margin-right: 0.5rem; }
.dt-country-intro p { font-size: 1.05rem; line-height: 1.65; color: var(--dt-text-muted); }

.dt-price-card {
  position: relative;
  padding: 1.5rem;
  border: 1px solid rgba(0, 119, 221, 0.3);
  border-radius: var(--dt-radius-lg);
  background: var(--dt-bg-card);
  box-shadow: var(--dt-shadow);
}
.dt-price-card--off { border-color: var(--dt-border); color: var(--dt-text-muted); }
.dt-price-card-label { font-size: 0.85rem; color: var(--dt-text-muted); }
.dt-price-card-rate strong { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dt-price-card-rate span { margin-left: 0.2rem; color: var(--dt-text-muted); }
.dt-price-card-fee { font-size: 0.9rem; color: var(--dt-text-muted); }
.dt-price-card-list { margin: 1rem 0 1.25rem; padding: 0; list-style: none; font-size: 0.875rem; color: var(--dt-text-muted); }
.dt-price-card-list li { position: relative; padding-left: 1.4rem; margin-bottom: 0.35rem; }
.dt-price-card-list li::before {
  content: '\F26E'; /* bi-check-lg */
  position: absolute;
  left: 0;
  font-family: 'bootstrap-icons';
  color: var(--dt-success);
}
.dt-price-card .btn-link { color: var(--dt-text-muted); font-size: 0.9rem; }

.dt-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 2rem 0 0;
}
@media (min-width: 768px) { .dt-facts { grid-template-columns: repeat(4, 1fr); } }
.dt-facts > div { padding: 0.85rem 1rem; border: 1px solid var(--dt-border); border-radius: var(--dt-radius); background: rgba(255, 255, 255, 0.02); }
.dt-facts dt { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dt-text-muted); }
.dt-facts dd { margin: 0.2rem 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── Guides ─────────────────────────────────────────────────── */
.dt-guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem; }
.dt-guide-card {
  display: block;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius);
  background: var(--dt-bg-card);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.dt-guide-card:hover { border-color: rgba(0, 119, 221, 0.45); background: var(--dt-bg-card-hover); color: inherit; }
.dt-guide-card h3 { margin: 0 0 0.35rem; font-size: 1rem; font-weight: 700; }
.dt-guide-card p { margin: 0; font-size: 0.85rem; color: var(--dt-text-muted); }
@media (min-width: 992px) { .dt-aside { position: sticky; top: calc(var(--dt-nav-h) + 1rem); } }

/* ── Stories, bylines, numbers to call, offers and sharing (content/guide.html) ── */
.dt-occasion { margin: 0 0 0.4rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dt-primary-light); }
.dt-guide-card .dt-occasion { margin-bottom: 0.35rem; font-size: 0.7rem; color: var(--dt-primary-light); }
.dt-guide-card .dt-guide-card-meta { margin-top: 0.6rem; font-size: 0.8rem; }
.dt-guide-group { margin: 1.5rem 0 0.75rem; font-size: 0.95rem; font-weight: 700; color: var(--dt-text); }
.dt-byline { font-size: 0.85rem; line-height: 1.6rem; color: var(--dt-text-muted); }
.dt-byline .dt-avatar { margin-right: 0.35rem; vertical-align: middle; }
.dt-byline a { color: var(--dt-text); font-weight: 600; text-decoration: none; }
.dt-byline a:hover { text-decoration: underline; }
.dt-byline-sep { margin: 0 0.4rem; }
.dt-byline time { white-space: nowrap; }
.dt-avatar {
  display: inline-flex; flex: none; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--dt-gradient-hero); color: #fff; font-weight: 700;
}
.dt-avatar--sm { width: 1.6rem; height: 1.6rem; font-size: 0.8rem; }
.dt-avatar--lg { width: 4.5rem; height: 4.5rem; font-size: 1.8rem; }
.dt-author-box, .dt-author-head { display: flex; gap: 1rem; align-items: flex-start; }
.dt-author-box { margin-top: 2rem; padding: 1.1rem 1.25rem; border: 1px solid var(--dt-border); border-radius: var(--dt-radius); background: var(--dt-bg-card); }
.dt-author-box-name { margin: 0 0 0.2rem; }
.dt-author-box-name a { color: var(--dt-text); font-weight: 700; text-decoration: none; }
.dt-author-box-name a:hover { text-decoration: underline; }
.dt-author-box-name span { margin-left: 0.4rem; font-size: 0.85rem; color: var(--dt-text-muted); }
.dt-author-head { align-items: center; max-width: 760px; }

.dt-number-card {
  margin: 0 0 1.5rem; border: 1px solid rgba(0, 119, 221, 0.3); border-radius: var(--dt-radius-lg);
  background: var(--dt-bg-card); box-shadow: var(--dt-shadow); overflow: hidden;
}
.dt-number-card > * { margin-left: 1.4rem; margin-right: 1.4rem; }
.dt-number-card-label { margin-top: 1.25rem; margin-bottom: 0.15rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: var(--dt-text-muted); }
.dt-number-card-number { margin-bottom: 1rem; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.dt-number-card-number a { color: var(--dt-text); text-decoration: none; }
.dt-number-card-facts { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.6rem 1rem; margin-bottom: 1.25rem; font-size: 0.9rem; }
.dt-number-card-facts dt { font-weight: 600; color: var(--dt-text-muted); white-space: nowrap; }
.dt-number-card-facts dt .bi { margin-right: 0.45rem; color: var(--dt-primary-light); }
.dt-number-card-facts dd { margin: 0; color: var(--dt-text); }
.dt-number-card-local, .dt-number-card-note { display: block; color: var(--dt-text-muted); }
.dt-number-card-ready { margin: 0; padding: 0; list-style: none; }
.dt-number-card-ready li { position: relative; padding-left: 1.3rem; margin-bottom: 0.2rem; }
.dt-number-card-ready li::before { content: '\F26E'; position: absolute; left: 0; font-family: 'bootstrap-icons'; color: var(--dt-success); } /* bi-check-lg */
.dt-number-card-call {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem;
  margin: 0; padding: 1rem 1.4rem; border-top: 1px solid var(--dt-border); background: var(--dt-wash);
}
.dt-number-card-price { font-size: 0.9rem; color: var(--dt-text-muted); }
.dt-number-card-price strong { color: var(--dt-text); }
.dt-number-card-price span { display: block; font-size: 0.8rem; }
.dt-number-card-source { margin-top: 0.85rem; margin-bottom: 1rem; font-size: 0.78rem; color: var(--dt-text-muted); }
@media (max-width: 575.98px) {
  .dt-number-card-facts { grid-template-columns: 1fr; gap: 0.2rem; }
  .dt-number-card-facts dd { margin-bottom: 0.6rem; }
  .dt-number-card-call .btn { width: 100%; }
}

.dt-article-offer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
  margin: 2rem 0; padding: 1.4rem 1.5rem;
  border: 1px solid rgba(0, 119, 221, 0.35); border-radius: var(--dt-radius-lg);
  background: linear-gradient(135deg, rgba(0, 119, 221, 0.12), rgba(0, 180, 216, 0.05)), var(--dt-bg-card);
}
.dt-article-offer-text { flex: 1 1 16rem; font-size: 0.9rem; color: var(--dt-text-muted); }
.dt-article-offer-title { margin: 0.6rem 0 0.25rem; font-size: 1.15rem; font-weight: 700; color: var(--dt-text); }
.dt-article-offer-title .text-gradient { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.dt-prose .dt-article-offer .btn { color: #fff; text-decoration: none; }  /* not the article's link colour */
@media (max-width: 575.98px) { .dt-article-offer .btn { width: 100%; } }

.dt-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--dt-border); }
.dt-share-label { margin-right: 0.35rem; font-size: 0.85rem; font-weight: 600; color: var(--dt-text-muted); }
.dt-share-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--dt-border); border-radius: 50%; background: transparent;
  color: var(--dt-text-muted); font-size: 1.05rem; text-decoration: none; transition: var(--dt-transition);
}
.dt-share-btn:hover { color: var(--dt-text); border-color: rgba(0, 119, 221, 0.4); background: rgba(0, 119, 221, 0.12); }
.dt-share-done { font-size: 0.85rem; color: var(--dt-text-success); }
.dt-preview-banner { padding: 0.6rem 1rem; text-align: center; font-size: 0.9rem; background: var(--dt-warning); color: #1a1300; }

/* ── Cookie choice ──────────────────────────────────────────── */
.dt-consent {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(var(--dt-tabbar-h) + 0.75rem);
  z-index: 1040;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  max-width: 640px;
  margin: 0 auto;
  padding: 0.9rem 1rem;
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius);
  background: #151a28;
  box-shadow: var(--dt-shadow-lg);
}
.dt-consent[hidden] { display: none; }
.dt-consent-text { flex: 1 1 280px; margin: 0; font-size: 0.8rem; line-height: 1.5; color: var(--dt-text-muted); }
.dt-consent-text a { color: var(--dt-primary-light); }
.dt-consent-actions { display: flex; gap: 0.5rem; flex: 1 1 auto; justify-content: flex-end; }
.dt-consent-actions .btn { min-width: 96px; }
@media (max-width: 576px) { .dt-consent-actions .btn { flex: 1; } }
.dt-in-call .dt-consent { display: none; }

/* ── Invite a friend ────────────────────────────────────────── */
.dt-invite-link-row { display: flex; gap: 0.5rem; }
.dt-invite-link-row .form-control { font-size: 0.9rem; }
.dt-invite-link-row .btn { flex-shrink: 0; }
.dt-invite-link .btn[hidden] { display: none; }

/* ── First call guide (dial page, until the first paid call) ── */
.dt-first-call {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(0, 119, 221, 0.25);
  border-radius: var(--dt-radius);
  background: rgba(0, 119, 221, 0.06);
  font-size: 0.875rem;
}
.dt-first-call-title { margin-bottom: 0.5rem; font-weight: 700; }
.dt-first-call ol { margin: 0 0 0.6rem; padding-left: 1.25rem; color: var(--dt-text-muted); }
.dt-first-call li { margin-bottom: 0.3rem; }
.dt-first-call li strong { color: var(--dt-text); }
.dt-first-call li.is-done { color: var(--dt-success); text-decoration: line-through; }
.dt-first-call a { color: var(--dt-primary-light); }
.dt-first-call-help { font-size: 0.8rem; }
.dt-in-call .dt-first-call { display: none; }
@media (max-height: 600px) { .dt-dial-column .dt-first-call { order: 2; } }
.dt-first-call .dt-link-btn { padding: 0; border: 0; background: none; color: var(--dt-primary-light); font-weight: 600; }
.dt-first-call .dt-link-btn:hover { text-decoration: underline; }

/* ── Sound check (dial page; static/js/sound-check.js) ──────── */
.dt-sound-check-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.4rem 0.5rem;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--dt-primary-light);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--dt-transition);
}
.dt-sound-check-btn:hover,
.dt-sound-check-btn:focus-visible { background: var(--dt-wash); }
.dt-sound-check-btn i { font-size: 1rem; }
.dt-sound-check-btn small { font-weight: 400; color: var(--dt-text-muted); }

.dt-sc .modal-body { padding: 1.25rem; }
.dt-sc-intro { margin-bottom: 1.1rem; text-align: center; }
.dt-sc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 0.65rem;
  border-radius: 50%;
  background: var(--dt-gradient-hero);
  box-shadow: 0 8px 24px var(--dt-primary-glow);
  color: #fff;
  font-size: 1.6rem;
}
.dt-sc-lead { margin: 0; font-size: 1.05rem; font-weight: 700; }
.dt-sc-sub { max-width: 42ch; margin: 0.3rem auto 0; font-size: 0.85rem; color: var(--dt-text-muted); }

.dt-sc-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius);
  background: var(--dt-bg-input);
  overflow: hidden;
}
.dt-sc-step { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.85rem 0.95rem; }
.dt-sc-step + .dt-sc-step { border-top: 1px solid var(--dt-border); }
.dt-sc-step-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--dt-wash);
  color: var(--dt-text-muted);
  font-size: 1.05rem;
  transition: var(--dt-transition);
}
.dt-sc-step[data-state="active"] .dt-sc-step-icon { background: var(--dt-primary-glow); color: var(--dt-primary-light); }
.dt-sc-step[data-state="ok"] .dt-sc-step-icon { background: rgba(16, 185, 129, 0.14); color: var(--dt-success); }
.dt-sc-step[data-state="warn"] .dt-sc-step-icon { background: rgba(245, 158, 11, 0.14); color: var(--dt-warning); }
.dt-sc-step[data-state="fail"] .dt-sc-step-icon { background: rgba(239, 68, 68, 0.14); color: var(--dt-danger); }
.dt-sc-step[data-state="skipped"] { opacity: 0.6; }

.dt-sc-step-body { flex: 1; min-width: 0; }
.dt-sc-step-title { display: flex; align-items: baseline; gap: 0.45rem; min-width: 0; font-size: 0.92rem; font-weight: 600; }
.dt-sc-device { min-width: 0; overflow: hidden; font-size: 0.75rem; font-weight: 400; color: var(--dt-text-muted); text-overflow: ellipsis; white-space: nowrap; }
.dt-sc-step-detail { margin-top: 0.1rem; font-size: 0.82rem; color: var(--dt-text-muted); }
.dt-sc-step[data-state="ok"] .dt-sc-step-detail { color: var(--dt-text-success); }
.dt-sc-step[data-state="warn"] .dt-sc-step-detail { color: var(--dt-text-warning); }
.dt-sc-step[data-state="fail"] .dt-sc-step-detail { color: var(--dt-text-danger); }

/* Level meter: a bar that grows with the sound, cut into segments */
.dt-sc-meter { position: relative; height: 8px; margin-top: 0.5rem; border-radius: 4px; background: var(--dt-wash); overflow: hidden; }
.dt-sc-meter[hidden] { display: none; }
.dt-sc-meter > span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #10b981 0%, #34d399 65%, #f59e0b 100%);
  transform: scaleX(0);
  transform-origin: left center;
}
.dt-sc-meter--back > span { background: linear-gradient(90deg, #0077dd 0%, #3399ff 65%, #00b4d8 100%); }
.dt-sc-meter::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 7px, var(--dt-bg-input) 7px 9px);
}

/* State on the right: a spinner while it runs, then a tick, a cross or a dash */
.dt-sc-step-state {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 8px;
  border: 2px solid var(--dt-border);
  border-radius: 50%;
  font-size: 0.75rem;
  color: #fff;
}
.dt-sc-step-state i { line-height: 1; }
.dt-sc-step[data-state="active"] .dt-sc-step-state {
  border-color: var(--dt-primary-glow);
  border-top-color: var(--dt-primary-light);
  animation: dt-sc-spin 0.8s linear infinite;
}
.dt-sc-step[data-state="ok"] .dt-sc-step-state { border-color: var(--dt-success); background: var(--dt-success); }
.dt-sc-step[data-state="warn"] .dt-sc-step-state { border-color: var(--dt-warning); background: var(--dt-warning); }
.dt-sc-step[data-state="fail"] .dt-sc-step-state { border-color: var(--dt-danger); background: var(--dt-danger); }
.dt-sc-step[data-state="skipped"] .dt-sc-step-state { color: var(--dt-text-muted); }
@keyframes dt-sc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .dt-sc-step[data-state="active"] .dt-sc-step-state { animation: none; border-color: var(--dt-primary-light); }
}

.dt-sc-question { margin-top: 1rem; text-align: center; }
.dt-sc-question[hidden] { display: none; }
.dt-sc-question-text { margin-bottom: 0.65rem; font-weight: 600; }
.dt-sc-question-actions { display: flex; justify-content: center; gap: 0.5rem; }

.dt-sc-result {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid;
  border-radius: var(--dt-radius);
}
.dt-sc-result[hidden] { display: none; }
.dt-sc-result[data-kind="pass"] { border-color: rgba(16, 185, 129, 0.35); background: rgba(16, 185, 129, 0.08); }
.dt-sc-result[data-kind="warn"] { border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.08); }
.dt-sc-result[data-kind="fail"] { border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.07); }
.dt-sc-result-icon { font-size: 1.4rem; line-height: 1.2; }
.dt-sc-result[data-kind="pass"] .dt-sc-result-icon { color: var(--dt-success); }
.dt-sc-result[data-kind="warn"] .dt-sc-result-icon { color: var(--dt-warning); }
.dt-sc-result[data-kind="fail"] .dt-sc-result-icon { color: var(--dt-danger); }
.dt-sc-result-title { font-weight: 700; }
.dt-sc-result-text { margin-top: 0.15rem; font-size: 0.85rem; color: var(--dt-text-muted); }

.dt-sc-privacy { margin: 1rem 0 0; font-size: 0.75rem; text-align: center; color: var(--dt-text-muted); }
.dt-sc .modal-footer .btn[hidden] { display: none; }
@media (max-width: 575.98px) {
  .dt-sc .modal-footer { flex-wrap: nowrap; }
  .dt-sc .modal-footer .btn { flex: 1; }
}

/* ── Light theme: one-off adjustments ───────────────────────── */
/* Most colours switch through the tokens at the top; these are the rest. */
[data-bs-theme="light"] .dt-install-banner { background: linear-gradient(135deg, rgba(0, 119, 221, 0.1), var(--dt-bg-card)); }
[data-bs-theme="light"] .dt-quick-dial-arrow { box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15); }
[data-bs-theme="light"] .dt-dest-request:not(.dt-dest-save) { border-color: rgba(180, 83, 9, 0.35); background: rgba(245, 158, 11, 0.1); }
[data-bs-theme="light"] .dt-dest-request:not(.dt-dest-save):hover { background: rgba(245, 158, 11, 0.18); }
[data-bs-theme="light"] .dt-recent-number { color: var(--dt-text); }
[data-bs-theme="light"] .dt-list-icon--flag { background: var(--dt-wash); }
[data-bs-theme="light"] .dt-landing-section--alt,
[data-bs-theme="light"] .dt-benefit-strip { background: rgba(15, 23, 42, 0.025); }
[data-bs-theme="light"] .dt-footer { background: rgba(15, 23, 42, 0.03); }
[data-bs-theme="light"] .dt-footer-company img { filter: none; }
[data-bs-theme="light"] .dt-facts > div { background: var(--dt-bg-card); }
[data-bs-theme="light"] .dt-invite-note { color: var(--dt-text-success); }
[data-bs-theme="light"] .dt-consent { background: var(--dt-bg-card); }
[data-bs-theme="light"] .dt-social-apple { border-color: #000; }

/* btn-outline-light is the "contrast" outline button: dark on the light theme */
[data-bs-theme="light"] .btn-outline-light {
  --bs-btn-color: var(--dt-text);
  --bs-btn-border-color: var(--dt-text);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--dt-text);
  --bs-btn-hover-border-color: var(--dt-text);
  --bs-btn-focus-shadow-rgb: 15, 23, 42;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--dt-text);
  --bs-btn-active-border-color: var(--dt-text);
  --bs-btn-disabled-color: var(--dt-text-muted);
  --bs-btn-disabled-border-color: var(--dt-border);
}

/* ── Contact page ── */
.dt-contact { max-width: 640px; }
.dt-contact-card {
  padding: 2rem;
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius-lg);
  background: var(--dt-bg-card);
}
@media (max-width: 575.98px) { .dt-contact-card { padding: 1.25rem; } }
.dt-contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── Messages (apps/messaging): a conversation reads like a chat, but replies take a while ── */
.dt-conversation-status {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--dt-wash);
  color: var(--dt-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.dt-conversation-status--open,
.dt-conversation-status--awaiting { background: rgba(245, 158, 11, 0.14); color: var(--dt-text-warning); }
.dt-conversation-status--replied { background: rgba(16, 185, 129, 0.14); color: var(--dt-text-success); }
.dt-conversation--unread .dt-list-title { font-weight: 700; }
.dt-unread-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dt-primary);
  box-shadow: 0 0 0 3px var(--dt-primary-glow);
}
/* On the Account tab and the menu: a reply they haven't read */
.dt-tab-dot { position: relative; }
.dt-tab-dot::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -6px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--dt-bg);
  border-radius: 50%;
  background: var(--dt-primary);
}
.dt-menu-count {
  margin-left: 0.4rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--dt-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.dt-thread { display: flex; flex-direction: column; gap: 0.75rem; margin: 0.5rem 0 1rem; }
.dt-thread-day {
  align-self: center;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dt-text-muted);
}
.dt-bubble-row { display: flex; align-items: flex-end; gap: 0.5rem; max-width: 88%; }
.dt-bubble-row--mine { align-self: flex-end; flex-direction: row-reverse; }
.dt-bubble-row--theirs { align-self: flex-start; }
.dt-bubble-avatar { flex-shrink: 0; margin-bottom: 1.3rem; border-radius: 50%; }
.dt-bubble-wrap { min-width: 0; }
.dt-bubble {
  padding: 0.65rem 0.9rem;
  border-radius: 18px;
  background: var(--dt-bg-card);
  border: 1px solid var(--dt-border);
  color: var(--dt-text);
  font-size: 0.95rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.dt-bubble a { color: inherit; text-decoration: underline; }
.dt-bubble-row--theirs .dt-bubble { border-bottom-left-radius: 6px; }
.dt-bubble-row--mine .dt-bubble {
  border-color: transparent;
  border-bottom-right-radius: 6px;
  background: var(--dt-primary);
  color: #fff;
}
.dt-bubble-meta { margin-top: 0.25rem; padding: 0 0.4rem; font-size: 0.72rem; color: var(--dt-text-muted); }
.dt-bubble-row--mine .dt-bubble-meta { text-align: right; }
.dt-thread-notice {
  align-self: center;
  max-width: 420px;
  padding: 0.5rem 0.9rem;
  border-radius: var(--dt-radius);
  background: var(--dt-wash);
  color: var(--dt-text-muted);
  font-size: 0.8rem;
  text-align: center;
}

.dt-composer {
  position: sticky;
  bottom: calc(var(--dt-tabbar-h) + 0.75rem);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--dt-border);
  border-radius: 24px;
  background: var(--dt-bg-card);
  box-shadow: var(--dt-shadow);
}
.dt-composer-input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  max-height: 220px;
  padding: 0.55rem 0.9rem;
  border: none;
  border-radius: 18px;
  background: var(--dt-bg-input);
  resize: none;
}
.dt-composer-send {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
}

/* The messages of a conversation are laid out with its notices (messages.js adds new ones to the list) */
.dt-thread > [data-thread-messages] { display: contents; }

/* What a conversation is about: a call or a top-up */
.dt-about-card {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius);
  background: var(--dt-wash);
  font-size: 0.82rem;
  color: var(--dt-text);
}
.dt-about-card > i { margin-top: 0.1rem; color: var(--dt-primary-light); }
.dt-about-label { font-weight: 600; color: var(--dt-text-muted); }

/* ── Message us: the button in the corner and its panel ── */
.dt-launcher {
  position: fixed;
  right: 1.25rem;
  bottom: calc(var(--dt-tabbar-h) + 1.25rem);
  z-index: 1035;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 52px;
  padding: 0 1.25rem 0 1.1rem;
  border: none;
  border-radius: 999px;
  background: var(--dt-gradient-hero);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 6px 24px rgba(0, 119, 221, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.dt-launcher:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 119, 221, 0.45); }
.dt-launcher:focus-visible { outline: 3px solid var(--dt-primary-glow); outline-offset: 2px; }
.dt-launcher > .bi { font-size: 1.2rem; }
.dt-launcher-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid var(--dt-bg);
  border-radius: 999px;
  background: var(--dt-danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
@media (max-width: 991.98px) {
  /* A round button on phones, out of the way of the page */
  .dt-launcher { right: 1rem; bottom: calc(var(--dt-tabbar-h) + 1rem); width: 52px; padding: 0; justify-content: center; }
  .dt-launcher-label { display: none; }
  /* The dial page's keypad fills the screen: Message us is in the Account tab there */
  .dt-page-dial .dt-launcher { display: none; }
}
body.dt-in-call .dt-launcher,
body:has(.dt-consent:not([hidden])) .dt-launcher { display: none; }

.dt-panel.offcanvas {
  --bs-offcanvas-width: 420px;
  --bs-offcanvas-bg: var(--dt-bg);
  --bs-offcanvas-color: var(--dt-text);
  border-left: 1px solid var(--dt-border);
}
@media (max-width: 575.98px) { .dt-panel.offcanvas { --bs-offcanvas-width: 100vw; } }
.dt-panel-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  padding-top: calc(0.9rem + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid var(--dt-border);
  background: var(--dt-bg-card);
}
.dt-panel-head > img { border-radius: 40%; }
.dt-panel-head-text { flex: 1; min-width: 0; }
.dt-panel-head-title { font-weight: 700; font-size: 1.05rem; }
.dt-panel-head-sub { font-size: 0.75rem; color: var(--dt-text-muted); }
.dt-panel-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.dt-panel-loading { display: flex; flex: 1; align-items: center; justify-content: center; color: var(--dt-text-muted); }
.dt-panel-view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.dt-panel-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem; overscroll-behavior: contain; }
.dt-panel-intro { margin-bottom: 1rem; }
.dt-panel-hello { margin: 0 0 0.35rem; font-size: 1.35rem; font-weight: 700; }
.dt-panel-intro p { margin: 0; font-size: 0.9rem; color: var(--dt-text-muted); }
.dt-panel-label {
  margin: 1.1rem 0 0.5rem 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dt-text-muted);
}
.dt-panel-more { display: inline-block; margin-top: 0.5rem; font-size: 0.85rem; color: var(--dt-primary-light); text-decoration: none; }
.dt-panel-card {
  padding: 1rem;
  border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius);
  background: var(--dt-bg-card);
}
.dt-panel-card .form-label { font-size: 0.85rem; }
.dt-panel-foot { margin: 1rem 0 0; font-size: 0.8rem; color: var(--dt-text-muted); text-align: center; }
.dt-panel-foot a { color: var(--dt-primary-light); }
.dt-panel-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--dt-border);
}
.dt-panel-bar-title { flex: 1; font-weight: 600; }
.dt-panel-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--dt-text);
  text-decoration: none;
}
.dt-panel-icon-btn:hover { background: var(--dt-wash); color: var(--dt-text); }
.dt-panel-sent {
  margin-bottom: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--dt-radius);
  background: rgba(16, 185, 129, 0.12);
  color: var(--dt-text-success);
  font-size: 0.85rem;
}
.dt-panel-composer {
  padding: 0.75rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--dt-border);
}
.dt-panel-composer .dt-composer { position: static; box-shadow: none; }
.dt-panel .dt-thread { margin: 0; }
.dt-panel .dt-bubble-row { max-width: 92%; }

/* Instead of the contact form, while messages from visitors who aren't signed in are switched off */
.dt-sign-in-first { padding: 0.5rem 0; text-align: center; color: var(--dt-text-muted); }
.dt-sign-in-first > i { display: block; margin-bottom: 0.5rem; font-size: 2rem; color: var(--dt-primary-light); }

/* A guest's emailed code, in place of the reply box until they enter it */
.dt-code-card {
  padding: 1rem;
  border: 1px solid var(--dt-border-focus);
  border-radius: var(--dt-radius);
  background: var(--dt-bg-card);
}
.dt-code-title { margin-bottom: 0.35rem; font-weight: 700; }
.dt-code-text { margin-bottom: 0.75rem; font-size: 0.88rem; color: var(--dt-text-muted); }
.dt-code-text strong { color: var(--dt-text); overflow-wrap: anywhere; }
.dt-code-input { flex: 1 1 9rem; min-width: 9rem; max-width: 13rem; font-size: 1.2rem; letter-spacing: 0.2em; font-variant-numeric: tabular-nums; }
