/* ============================================================
   danatel — Custom CSS
   Built on Bootstrap 5 dark theme with custom design tokens
   ============================================================ */

/* ── 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;

  --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;
}

/* 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: rgba(13, 15, 20, 0.9);
  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: 40px; height: 40px; }

.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); }

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

@media (max-width: 991.98px) {
  .dt-brand-img { width: 32px; height: 32px; }
  .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: rgba(255, 255, 255, 0.06);
}

.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: rgba(255,255,255,0.06);
  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: rgba(13, 15, 20, 0.94);
  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: 440px;
  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 */
.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);
}
.dt-social-btn:active { transform: scale(0.99); }

.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 i { font-size: 1.15rem; line-height: 1; }
.dt-social-apple:hover { background: #1a1a1a; }

/* allauth's own pages (Google/Apple errors, set a password), as a card */
.dt-allauth-page .dt-main {
  flex: none;
  width: calc(100% - 2rem);
  max-width: 440px;
  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);
}

/* ── 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: #6ee7b7; }
.alert-error,
.alert-danger  { background: rgba(239, 68, 68, 0.15);  color: #fca5a5; }
.alert-warning { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.alert-info    { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }

/* ── 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: 400px;
}

.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: rgba(255, 255, 255, 0.06); }

/* 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 */
.dt-quick-dial {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin: 0 -1.25rem;
  padding: 0.1rem 1.25rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.dt-quick-dial::-webkit-scrollbar { display: none; }
.dt-quick-dial:empty { display: none; }

.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: #fbbf24; 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::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: rgba(255,255,255,0.06); color: var(--dt-text); }
.dt-icon-btn .bi-star-fill { color: #fbbf24; }
.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: #fcd34d; }

.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: #fcd34d;
  font-size: 0.8rem;
  font-weight: 600;
  vertical-align: baseline;
}
.dt-dest-request:hover { background: rgba(252, 211, 77, 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);
}

.dt-call-status.status-idle      { color: var(--dt-text-muted); }
.dt-call-status.status-calling   { background: rgba(245,158,11,0.12); color: #fcd34d; }
.dt-call-status.status-ringing   { background: rgba(59,130,246,0.12); color: #93c5fd; animation: dt-pulse 1.5s ease-in-out infinite; }
.dt-call-status.status-connected { background: rgba(16,185,129,0.12); color: #6ee7b7; }
.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: #fca5a5; }

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

/* 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);
}

.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: #fcd34d;
  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;
}

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

.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 { margin: 0 -1rem; 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 .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: rgba(255, 255, 255, 0.06);
  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; }

.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), rgba(17, 21, 32, 0.9));
}
.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); }

/* 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; }

/* 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), rgba(17, 21, 32, 0.9));
}
.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); }

/* ── 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: 1.5rem 0 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;
}

.dt-section { padding: 3rem 0; }

/* ── 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-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dt-border);
  text-align: center;
}

@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 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 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); } }

/* ── 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; } }
