/* ==========================================================================
   VERIDIGITS — CORE STYLESHEET
   Design system: tokens, typography, layout primitives, shared components.
   ========================================================================== */

/* -------------------------------- Extra dashboard tokens --------------------------- */
:root{
  --sidebar-w: 252px;
  --sidebar-w-collapsed: 76px;
  --topbar-h: 72px;
  --nav-height: 96px;
  --danger: #DC2626;
  --danger-tint: #FDECEC;
  --warning: #D97706;
  --warning-tint: #FEF3E2;
  --info: #2563EB;
  --info-tint: #EAF1FE;
}

body.db-body{ background: var(--bg-section); }

/* Legacy hydration shell removed. Pages should render immediately. */
html,
body {
  opacity: 1 !important;
  visibility: visible !important;
}

body {
  transition: none !important;
}

/* -------------------------------- Dashboard shell --------------------------- */
.db-shell{ display: flex; min-height: 100vh; }
.db-sidebar{
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: transform .2s ease;
}
.db-sidebar-brand{
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--topbar-h);
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  flex-shrink: 0;
}
.db-sidebar-brand .brand-mark{ width: 32px; height: 32px; font-size: .9rem; flex-shrink: 0; }
.db-nav{ flex: 1; overflow-y: auto; padding: 18px 14px; display: flex; flex-direction: column; gap: 2px; }
.db-nav-item{ display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--radius-sm); color: var(--text-secondary); font-weight: 500; font-size: 0.92rem; position: relative; transition: background .15s ease, color .15s ease; }
.db-nav-item i{ width: 18px; text-align: center; font-size: 0.98rem; flex-shrink: 0; }
.db-nav-item:hover{ background: var(--bg-section); color: var(--text); }
.db-nav-item.active{ background: var(--green-tint); color: var(--green-dark); font-weight: 600; }
.db-nav-item.active i{ color: var(--green-dark); }
.db-nav-divider{ height: 1px; background: var(--border); margin: 12px 6px; }
.db-sidebar-footer{ padding: 14px; border-top: 1px solid var(--border); flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
.db-upgrade-card{ background: linear-gradient(160deg, var(--green-deep), #122D5F); border-radius: var(--radius-md); padding: 16px; color: #fff; margin-bottom: 4px; margin-top: 6px; }
.db-upgrade-card h4{ font-size: 0.85rem; font-weight: 700; margin: 0 0 4px; }
.db-upgrade-card p{ font-size: 0.78rem; color: #CFE8D8; margin: 0 0 12px; line-height: 1.4; }
.db-sidebar-overlay{ display: none; position: fixed; inset: 0; background: rgba(17,24,39,0.4); z-index: 190; }
.db-main{ flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.db-topbar{ height: var(--topbar-h); position: sticky; top: 0; z-index: 150; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 16px; padding: 0 28px; }
.db-topbar-toggle{ display: none; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; align-items: center; justify-content: center; color: var(--text); flex-shrink: 0; }
.db-page-title{ font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.db-page-title span{ display: none; font-size: 0.78rem; font-weight: 500; color: var(--text-secondary); margin-top: 1px; }
.db-topbar-search{ flex: 1; max-width: 360px; position: relative; }
.db-topbar-search input{ width: 100%; padding: 10px 14px 10px 38px; border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--bg-section); font-size: 0.88rem; color: var(--text); }
.db-topbar-search input:focus{ outline: none; border-color: var(--green); background: #fff; }
.db-topbar-search i{ position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9CA3AF; font-size: 0.85rem; }
.db-topbar-actions{ display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.db-topbar-actions > .db-wallet-chip{ order: 2; }
.db-topbar-actions > .db-dropdown-wrap{ order: 3; }
.db-topbar-actions > .db-user-trigger{ order: 4; }
.db-topbar-actions .db-wallet-chip{ padding: 8px 12px; }
.db-wallet-chip{ display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-full); background: var(--green-tint); color: var(--green-dark); font-weight: 700; font-size: 0.9rem; border: 1px solid transparent; transition: border-color .15s ease; }
.db-wallet-chip:hover{ border-color: #BBD7FE; }
.db-wallet-chip i{ font-size: 0.8rem; }
.db-icon-btn{ position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: border-color .15s ease, color .15s ease; flex-shrink: 0; }
.db-icon-btn:hover{ color: var(--text); border-color: var(--text); }
.db-topbar-actions .db-icon-btn{
  width: 40px;
  height: 40px;
  padding: 0;
}
.db-topbar-actions .db-icon-btn i.fa-bell,
.db-topbar-actions .db-icon-btn i.fa-bell:before,
.db-topbar-actions .db-icon-btn i.fa-bell:after{ font-size: 1.05rem !important; line-height: 1 !important; }
.db-icon-btn .dot{ position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); border: 2px solid #fff; }
.db-icon-btn .dot.has-count{
  width: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  top: 5px;
  right: 5px;
  background: var(--danger);
  border: 2px solid #fff;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.db-user-trigger{ display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: var(--radius-full); border: 1px solid var(--border); background: #fff; flex-shrink: 0; }
.db-avatar{
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.db-avatar.has-image{ background: #fff; color: transparent; }
.db-avatar-photo{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, visibility .15s ease;
  z-index: 0;
}
.db-avatar.has-image.image-loaded .db-avatar-photo{
  opacity: 1;
  visibility: visible;
}
.db-avatar-fallback{
  position: relative;
  z-index: 1;
  transition: opacity .15s ease, visibility .15s ease;
}
.db-avatar.has-image.image-pending .db-avatar-fallback{ opacity: 0; visibility: hidden; }
.db-avatar.has-image .db-avatar-fallback{ opacity: 1; visibility: visible; }
.db-avatar.has-image.image-loaded .db-avatar-fallback{ opacity: 0; visibility: hidden; }
.db-avatar:not(.has-image) .db-avatar-photo{ display: none; }
.db-avatar:not(.has-image) .db-avatar-fallback{ opacity: 1; visibility: visible; }
.db-avatar-fallback.is-hidden{ opacity: 0; visibility: hidden; }
.db-user-trigger .db-user-label{ font-size: 0.85rem; font-weight: 600; }
.db-user-trigger i.fa-chevron-down{ font-size: 0.65rem; color: #9CA3AF; }
.db-user-trigger .db-user-label{ display: none; }
.db-dropdown-wrap{ position: relative; }
.db-dropdown{ position: absolute; top: calc(100% + 10px); right: 0; width: 320px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); z-index: 300; display: none; overflow: hidden; }
.db-dropdown.open{ display: block; }
.db-dropdown-head{ padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 0.88rem; }
.db-dropdown-head a{ font-size: 0.78rem; font-weight: 600; color: var(--green-dark); }
.db-dropdown-list{ max-height: 320px; overflow-y: auto; }
.db-notif-item{ display: flex; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--border); transition: background .15s ease; }
.db-notif-item:last-child{ border-bottom: none; }
.db-notif-item:hover{ background: var(--bg-section); }
.db-notif-item .icon{ width: 34px; height: 34px; border-radius: 9px; background: var(--green-tint); color: var(--green-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.82rem; }
.db-notif-item.unread{ background: #F7FCF9; }
.db-notif-item p{ font-size: 0.82rem; color: var(--text); margin: 0; line-height: 1.4; }
.db-notif-item time{ font-size: 0.72rem; color: var(--text-secondary); }
.db-dropdown-foot{ padding: 11px 18px; text-align: center; border-top: 1px solid var(--border); }
.db-dropdown-foot a{ font-size: 0.8rem; font-weight: 600; color: var(--text); }
.db-menu-list{ padding: 8px; }
.db-menu-list a{ display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.86rem; font-weight: 500; color: var(--text); }
.db-menu-list a:hover{ background: var(--bg-section); }
.db-menu-list a i{ width: 16px; color: var(--text-secondary); text-align: center; }
.db-menu-list a.danger{ color: var(--danger); }
.db-menu-list a.danger i{ color: var(--danger); }
.db-menu-divider{ height: 1px; background: var(--border); margin: 6px 4px; }
.db-menu-user{ padding: 14px 16px; display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--border); }
.db-menu-user strong{ display: block; font-size: 0.86rem; }
.db-menu-user span{ font-size: 0.76rem; color: var(--text-secondary); }
.db-content{ padding: 28px 28px 60px; flex: 1; }
.db-content-header{ display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.db-content-header h1{ font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.db-content-header p{ margin-top: 4px; font-size: 0.92rem; }
.db-content-actions{ display: flex; gap: 10px; flex-wrap: wrap; }
body[data-page="dashboard"] .db-content-actions .btn-secondary{
  background: #fff;
  border: 1px solid rgba(34, 197, 94, 0.24);
  color: var(--green-dark);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
body[data-page="dashboard"] .db-content-actions .btn-secondary:hover{
  background: var(--green-tint);
  border-color: rgba(22, 163, 74, 0.32);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.09);
}
.db-stats{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat-card{ background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 20px 22px; }
.stat-card .top{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.stat-card .icon{ width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.stat-card .icon.green{ background: var(--green-tint); color: var(--green-dark); }
.stat-card .icon.info{ background: var(--info-tint); color: var(--info); }
.stat-card .icon.warning{ background: var(--warning-tint); color: var(--warning); }
.stat-card .icon.dark{ background: var(--green-deep); color: #fff; }
.stat-card .trend{ font-size: 0.74rem; font-weight: 700; color: var(--green-dark); display: flex; align-items: center; gap: 4px; }
.stat-card .trend.down{ color: var(--danger); }
.stat-card .value{ font-size: 1.6rem; font-weight: 800; font-family: var(--font-mono); letter-spacing: -0.01em; }
.stat-card .label{ font-size: 0.82rem; color: var(--text-secondary); margin-top: 2px; }
.db-section{ background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.db-section-head{ display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.db-section-head h3{ font-size: 1rem; font-weight: 700; }
.db-section-head .link{ font-size: 0.82rem; font-weight: 600; color: var(--green-dark); }
.db-section-body{ padding: 8px 22px 20px; }
.db-section-body.no-pad{ padding: 0; }
.db-two-col{ display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.db-quick-actions{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.db-quick-action{ background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; display: flex; align-items: center; gap: 12px; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.db-quick-action:hover{ box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #D6ECDD; }
.db-quick-action .icon{ width: 40px; height: 40px; border-radius: 10px; background: var(--green-tint); color: var(--green-dark); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.db-quick-action strong{ display: block; font-size: 0.88rem; }
.db-quick-action span{ font-size: 0.76rem; color: var(--text-secondary); }
.db-table-wrap{ overflow-x: auto; }
.db-table{ width: 100%; border-collapse: collapse; min-width: 640px; }
.db-table thead th{ text-align: left; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-secondary); background: var(--bg-section); padding: 12px 16px; white-space: nowrap; }
.db-table tbody td{ padding: 14px 16px; font-size: 0.88rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.db-table tbody tr:last-child td{ border-bottom: none; }
.db-table tbody tr:hover{ background: #FAFDFB; }
.db-cell-main{ display: flex; align-items: center; gap: 10px; }
.db-service-logo{ width: 32px; height: 32px; border-radius: 8px; background: var(--bg-section); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; color: var(--text); flex-shrink: 0; }
.db-cell-title{ font-weight: 600; font-size: 0.88rem; }
.db-cell-sub{ font-size: 0.76rem; color: var(--text-secondary); }
.badge-success{ background: var(--green-tint); color: var(--green-dark); }
.badge-warning{ background: var(--warning-tint); color: var(--warning); }
.badge-danger{ background: var(--danger-tint); color: var(--danger); }
.badge-info{ background: var(--info-tint); color: var(--info); }
.badge-neutral{ background: var(--bg-section); color: var(--text-secondary); }
.badge-logo{ display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; overflow: hidden; background: #fff; border: 1px solid var(--border); }
.badge-logo img{ width: 24px; height: 24px; object-fit: contain; display: block; }
.service-pill{ display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border-radius:999px; color:var(--text); font-weight:600; font-size:0.84rem; border:1px solid transparent; }
.service-pill img{ width:18px; height:18px; object-fit:contain; display:block; }
.service-pill.telegram{ background:#EAF6FE; color:#0088CC; border-color:#CDE9F8; }
  .service-pill.whatsapp{ background:#EAF2FF; color:#2563EB; border-color:#BBD7FE; }
.service-pill.google{ background:#F3F7FF; color:#4285F4; border-color:#DCE7FF; }
.service-pill.tiktok{ background:#FFF1F6; color:#FF0050; border-color:#FFDCE8; }
.service-card:hover{ transform:translateY(-2px); }
.badge-dot::before{ content:""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.db-countdown{ font-family: var(--font-mono); font-weight: 600; font-size: 0.85rem; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.db-countdown i{ font-size: 0.78rem; color: var(--text-secondary); }
.db-countdown.expiring{ color: var(--danger); }
.db-sms-code{ font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem; color: var(--green-dark); background: var(--green-tint); padding: 4px 10px; border-radius: var(--radius-sm); letter-spacing: 0.05em; display: inline-flex; align-items: center; gap: 8px; }
.db-sms-code .copy-btn{ color: var(--green-dark); cursor: pointer; font-size: 0.8rem; }
.db-sms-code.waiting{ background: var(--bg-section); color: var(--text-secondary); font-weight: 500; }
.db-sms-code.waiting i{ animation: dbSpin 1s linear infinite; }
@keyframes dbSpin{ to{ transform: rotate(360deg); } }
.db-row-actions{ display: flex; gap: 6px; }
.db-action-btn{ width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; transition: border-color .15s ease, color .15s ease; }
.db-action-btn:hover{ color: var(--text); border-color: var(--text); }
.db-action-btn.danger:hover{ color: var(--danger); border-color: var(--danger); }
.db-tabs{ display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding: 0 4px; overflow-x: auto; }
.db-tab-btn{ padding: 13px 18px; font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); border-bottom: 2px solid transparent; white-space: nowrap; background: none; border-top: none; border-left: none; border-right: none; }
.db-tab-btn:hover{ color: var(--text); }
.db-tab-btn.active{ color: var(--green-dark); border-bottom-color: var(--green); }
.db-tab-panel{ display: none; }
.db-tab-panel.active{ display: block; }
.db-form-row{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.select-wrap{ position: relative; }
.select-wrap select{ appearance: none; width: 100%; padding-right: 34px; }
.select-wrap i{ position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #9CA3AF; font-size: 0.75rem; pointer-events: none; }
.db-payment-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.db-payment-option{ border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: border-color .15s ease, background .15s ease; position: relative; }
.db-payment-option:hover{ border-color: #BBD7FE; }
.db-payment-option input{ position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.db-payment-option .icon{ width: 34px; height: 34px; border-radius: 8px; background: var(--bg-section); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0; }
.db-payment-option strong{ font-size: 0.84rem; display: block; }
.db-payment-option span{ font-size: 0.72rem; color: var(--text-secondary); }
.db-payment-option.selected{ border-color: var(--green); background: var(--green-tint); }
.db-payment-option.selected .icon{ background: #fff; }
.db-local-quote{
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.db-empty{ text-align: center; padding: 56px 20px; color: var(--text-secondary); }
.db-empty i{ font-size: 2rem; color: #D1D5DB; margin-bottom: 14px; display: block; }
.db-empty h4{ font-size: 0.98rem; color: var(--text); margin-bottom: 6px; }
.db-empty p{ font-size: 0.86rem; max-width: 320px; margin: 0 auto; }
.db-skeleton{ background: linear-gradient(90deg, var(--bg-section) 25%, #EFF3F0 37%, var(--bg-section) 63%); background-size: 400% 100%; animation: dbShimmer 1.4s ease infinite; border-radius: var(--radius-sm); }
@keyframes dbShimmer{ 0%{ background-position: 100% 50%; } 100%{ background-position: 0 50%; } }
.db-pagination{ display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-secondary); }
.db-page-btns{ display: flex; gap: 6px; }
.db-page-btn{ width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: #fff; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center; }
.db-page-btn.active{ background: var(--green-deep); color: #fff; border-color: var(--green-deep); }
.db-page-btn:hover:not(.active){ border-color: var(--text); color: var(--text); }
.db-modal-overlay{ position: fixed; inset: 0; background: rgba(17,24,39,0.45); display: none; align-items: center; justify-content: center; z-index: 400; padding: 20px; }
.db-modal-overlay.open{ display: flex; }
.db-modal{ background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; }
.db-modal-head{ display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.db-modal-head h3{ font-size: 1.02rem; font-weight: 700; }
.db-modal-close{ width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 0.8rem; }
.db-modal-body{ padding: 22px; }
.db-modal-foot{ padding: 16px 22px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }
.db-alert{ display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius-md); font-size: 0.86rem; margin-bottom: 20px; border: 1px solid transparent; }
.db-alert.success{ background: var(--green-tint); color: var(--green-dark); border-color: #BBD7FE; }
.db-alert.info{ background: var(--info-tint); color: var(--info); border-color: #CBDCFB; }
.db-alert.warning{ background: var(--warning-tint); color: var(--warning); border-color: #F6DFB4; }
.db-alert i{ margin-top: 2px; }
.db-toast-stack{ position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 500; }
.db-toast{ background: var(--green-deep); color: #fff; padding: 13px 18px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); font-size: 0.85rem; display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.db-toast.show{ opacity: 1; transform: translateY(0); }
.db-toast i{ color: var(--green); }
.db-ticket-item{ display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.db-ticket-item:last-child{ border-bottom: none; }
.db-ticket-item .num{ font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-secondary); width: 64px; flex-shrink: 0; }
.db-ticket-item .info{ flex: 1; min-width: 0; }
.db-ticket-item .info strong{ display: block; font-size: 0.9rem; margin-bottom: 2px; }
.db-ticket-item .info span{ font-size: 0.78rem; color: var(--text-secondary); }
.db-ticket-item .meta{ text-align: right; flex-shrink: 0; }
.db-ticket-item .meta time{ display: block; font-size: 0.76rem; color: var(--text-secondary); margin-top: 6px; }
.db-contact-card{ display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 12px; }
.db-contact-card .icon{ width: 42px; height: 42px; border-radius: 10px; background: var(--green-tint); color: var(--green-dark); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.db-contact-card strong{ display: block; font-size: 0.88rem; }
.db-contact-card span{ font-size: 0.78rem; color: var(--text-secondary); }
.db-switch{ position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.db-switch input{ opacity: 0; width: 0; height: 0; }
.db-switch .track{ position: absolute; inset: 0; background: var(--border); border-radius: var(--radius-full); transition: background .15s ease; cursor: pointer; }
.db-switch .track::before{ content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s ease; box-shadow: var(--shadow-sm); }
.db-switch input:checked + .track{ background: var(--green); }
.db-switch input:checked + .track::before{ transform: translateX(18px); }
.db-pref-row{ display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); }
.db-pref-row:last-child{ border-bottom: none; }
.db-pref-row strong{ display: block; font-size: 0.9rem; }
.db-pref-row span{ font-size: 0.78rem; color: var(--text-secondary); }
.text-danger{ color: var(--danger); }
.text-green{ color: var(--green-dark); }


/* -------------------------------- Floating support --------------------------- */
.support-float{
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 260;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.10) 18%, rgba(255,255,255,0.00) 28%),
    linear-gradient(135deg, rgba(20,84,224,0.96) 0%, rgba(13,63,192,0.90) 100%);
  color: #fff;
  box-shadow:
    0 18px 36px rgba(20, 84, 224, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.42),
    inset 0 -1px 0 rgba(10,31,92,0.18);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(14px) saturate(1.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, filter .2s ease;
  max-width: calc(100vw - 24px);
  overflow: visible;
}
.support-float::before{
  content:"";
  position:absolute;
  inset:1px 1px auto 1px;
  height:42%;
  border-radius:999px 999px 50% 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0.04));
  pointer-events:none;
}
.support-float:hover{
  transform: translateY(-2px);
  box-shadow:
    0 22px 42px rgba(20, 84, 224, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.48),
    inset 0 -1px 0 rgba(10,31,92,0.20);
  filter: saturate(1.12);
  color: #fff;
}
.support-float:focus-visible{
  outline: 3px solid rgba(20, 84, 224, 0.35);
  outline-offset: 3px;
}
.support-float.support-float--fallback{
  background:
    linear-gradient(135deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.10) 18%, rgba(255,255,255,0.00) 28%),
    linear-gradient(135deg, rgba(20,84,224,0.96) 0%, rgba(13,63,192,0.90) 100%);
  box-shadow:
    0 18px 36px rgba(20, 84, 224, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.42),
    inset 0 -1px 0 rgba(10,31,92,0.18);
}
  .support-float.support-float--fallback:hover{
  box-shadow:
    0 22px 42px rgba(20, 84, 224, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.48),
    inset 0 -1px 0 rgba(10,31,92,0.20);
}
.support-float .support-float-icon{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,255,255,0.10));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.62), inset 0 -1px 0 rgba(10,31,92,0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.support-float .support-float-icon img{
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
.support-float .support-float-title{
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 640px){
  .support-float{
    right: 14px;
    bottom: 14px;
    min-width: 0;
    min-height: 0;
    width: 56px;
    height: 56px;
    padding: 0;
    gap: 0;
    justify-content: center;
  }
  .support-float .support-float-icon{
    width: 56px;
    height: 56px;
    background: linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.10));
  }
  .support-float .support-float-icon img{ width: 22px; height: 22px; }
  .support-float .support-float-title{ display: none; }
}

/* -------------------------------- Fonts -------------------------------- */
/* Local system font stack only for faster page load. */

/* ------------------------------ Design tokens --------------------------- */

/* (debug override removed) */

:root{
  /* Brand */
  --green:        #2563EB;   /* primary brand blue */
  --green-dark:   #1E3A8A;   /* darker blue for text/accents */
  --green-deep:   #0B2545;   /* deep navy for dark surfaces */
  --green-tint:   #EAF2FF;   /* soft blue tint for chips and badges */

  /* Neutrals */
  --bg:           #FFFFFF;
  --bg-section:   #F8FAF8;
  --text:         #111827;
  --text-secondary:#6B7280;
  --border:       #E5E7EB;

  /* Type */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(17,24,39,0.04), 0 1px 1px rgba(17,24,39,0.03);
  --shadow-md: 0 8px 24px rgba(17,24,39,0.06), 0 2px 6px rgba(17,24,39,0.04);
  --shadow-lg: 0 24px 48px rgba(12,40,82,0.14), 0 8px 16px rgba(17,24,39,0.05);
  --shadow-green: 0 12px 28px rgba(59,130,246,0.28);

  --container: 1200px;
  --nav-height: 96px;
}

/* -------------------------------- Reset --------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
body:not(.db-body){
  padding-top: var(--nav-height);
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font-family: inherit; cursor: pointer; }
input, select, textarea{ font-family: inherit; font-size: 1rem; -webkit-text-size-adjust: 100%; touch-action: manipulation; }

:focus-visible{
  outline: 2px solid var(--green-dark);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Mobile bottom nav is shown only on smaller screens by the responsive stylesheet. */
@media (min-width: 900px) {
  .db-mobile-bottom-item {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------ Typography ------------------------------ */
h1, h2, h3, h4{ margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
h1{ font-size: clamp(2.4rem, 4vw + 1rem, 3.75rem); }
h2{ font-size: clamp(1.9rem, 2.4vw + 1rem, 2.6rem); }
h3{ font-size: 1.35rem; }
p{ margin: 0; color: var(--text-secondary); }

.mono{ font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.eyebrow::before{
  content: "";
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--green-tint);
}

/* -------------------------------- Layout --------------------------------- */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section{ padding: 96px 0; }
.section-alt{ background: var(--bg-section); }
.section-head{
  max-width: 620px;
  margin-bottom: 48px;
}
.section-head p{ margin-top: 14px; font-size: 1.05rem; }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }
body[data-page]:not([data-page="home"]) .section-head h1{
  font-size: clamp(1.95rem, 2.45vw + 0.75rem, 2.7rem);
  line-height: 1.08;
}
body[data-page]:not([data-page="home"]) .section-head h2{
  font-size: clamp(1.35rem, 1.7vw + 0.6rem, 1.95rem);
  line-height: 1.14;
}
body[data-page]:not([data-page="home"]) .section-head.center h1,
body[data-page]:not([data-page="home"]) .section-head.center h2{
  text-align: center;
}
body[data-page]:not([data-page="home"]) .section-head.center h1{
  font-size: clamp(2rem, 2.7vw + 0.8rem, 2.95rem);
}
body[data-page]:not([data-page="home"]) .section-head.center h2{
  font-size: clamp(1.45rem, 1.95vw + 0.65rem, 2.15rem);
}
.page-hero{
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background: linear-gradient(120deg,#0a1c6b,#123fc9,#1454e0,#2c6bff,#123fc9);
  background-size: 300% 300%;
  animation: heroShift 16s ease infinite;
  color: #fff;
}
.page-hero::before,
.page-hero::after{
  content:"";
  position:absolute;
  border-radius:50%;
  filter:blur(60px);
  z-index:0;
}
.page-hero::before{
  width: 360px;
  height: 360px;
  background: radial-gradient(circle,rgba(120,180,255,.55),transparent 70%);
  top: -120px;
  right: -120px;
}
.page-hero::after{
  width: 280px;
  height: 280px;
  background: radial-gradient(circle,rgba(140,90,255,.32),transparent 70%);
  left: -100px;
  bottom: -120px;
}
.page-hero .page-hero-inner{
  position: relative;
  z-index: 1;
}
.page-hero .section-head{
  max-width: 760px;
  margin-bottom: 0;
}
body[data-page]:not([data-page="home"]) .page-hero .section-head h1{
  font-size: clamp(2.05rem, 2.75vw + 0.8rem, 3rem);
}
body[data-page]:not([data-page="home"]) .page-hero .section-head h2{
  font-size: clamp(1.45rem, 2vw + 0.65rem, 2.2rem);
}
.page-hero .section-head h1{
  font-size: clamp(1.95rem, 2.8vw + 0.75rem, 2.7rem);
  line-height: 1.08;
}
.page-hero .section-head h2{
  font-size: clamp(1.45rem, 1.9vw + 0.7rem, 2rem);
  line-height: 1.12;
}
.page-hero .section-head p,
.page-hero .section-head h1,
.page-hero .section-head h2{
  color: #fff;
}
.page-hero .section-head .eyebrow{
  color: #9bbcff;
}
.page-hero .section-head p{
  color: #d3defa;
}
.page-hero .hero-subgrid{
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.page-hero .hero-subgrid .card{
  background: rgba(255,255,255,.96);
}
.page-hero .hero-subgrid .card h3,
.page-hero .hero-subgrid .card strong{
  color: var(--ink);
}
.page-hero .hero-subgrid .card p{
  color: var(--gray);
}
.plain-panels{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.plain-panel{
  padding: 24px 22px;
}
.plain-panel + .plain-panel{
  border-left: 1px solid var(--border);
}
.plain-panel h3{
  font-size: 1.08rem;
  margin-bottom: 10px;
}
.plain-panel p{
  font-size: 0.97rem;
  line-height: 1.65;
}
.plain-panel .eyebrow{
  margin-bottom: 12px;
}
.plain-list{
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.plain-list li{
  position: relative;
  padding-left: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.plain-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-tint);
}
.plain-note{
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.plain-note:last-child{
  border-bottom: 1px solid var(--border);
}
.plain-note h3,
.plain-note h4{
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.plain-note p{
  line-height: 1.7;
}
.text-block{
  max-width: 760px;
}
.text-block p,
.text-block li{
  font-size: 1rem;
  line-height: 1.7;
}
.text-block h2,
.text-block h3{
  margin-top: 34px;
}
.text-block h2:first-child,
.text-block h3:first-child{
  margin-top: 0;
}
.link-strip{
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 20px;
}
.link-strip a{
  color: var(--blue);
  font-weight: 600;
}
.article-list{
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}
.article-row{
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.article-row .meta{
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-dark);
  font-weight: 700;
}
.article-row h3{
  font-size: 1rem;
  margin-bottom: 8px;
}
.article-row p{
  line-height: 1.65;
}
.article-row .article-link{
  align-self: center;
  color: var(--blue);
  font-weight: 700;
  white-space: nowrap;
}
.contact-flow{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: start;
}
.contact-rail{
  display: grid;
  gap: 14px;
}
.contact-line{
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.contact-line:last-child{
  border-bottom: 1px solid var(--border);
}
.contact-line strong{
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}
.contact-line p,
.contact-line a{
  color: var(--text-secondary);
  line-height: 1.6;
}
.legal-page{
  max-width: 760px;
}
body[data-page]:not([data-page="home"]) .legal-page{
  text-align: left;
}
body[data-page]:not([data-page="home"]) .legal-page > .eyebrow,
body[data-page]:not([data-page="home"]) .legal-page > h1,
body[data-page]:not([data-page="home"]) .legal-page > p:first-of-type{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
body[data-page]:not([data-page="home"]) .legal-page h1{
  font-size: clamp(1.95rem, 2.35vw + 0.75rem, 2.65rem);
  line-height: 1.08;
}
.legal-page h1{
  font-size: clamp(2rem, 2.6vw + 0.8rem, 2.8rem);
  line-height: 1.08;
}
.legal-page h2{
  font-size: 1.16rem;
  margin-top: 34px;
}
.legal-page h3{
  font-size: 0.98rem;
  margin-top: 26px;
}
.legal-page p,
.legal-page li{
  line-height: 1.75;
}
.legal-page .plain-list{
  margin-top: 14px;
}
.api-table-wrap{
  overflow-x: auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.api-table-wrap table{
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.api-table-wrap thead tr{
  background: var(--bg-section);
}
.api-table-wrap th,
.api-table-wrap td{
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
}
.api-table-wrap tbody tr{
  border-top: 1px solid var(--border);
}
.steps-grid{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:24px; margin-top:8px; }
.step-card{ position:relative; background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); padding:28px 24px 24px; box-shadow:var(--shadow-sm); min-height:100%; }
.step-card .step-badge{ position:absolute; top:18px; right:18px; width:38px; height:38px; border-radius:50%; display:grid; place-items:center; background:var(--green-tint); color:var(--green-dark); font-size:0.8rem; font-weight:700; font-family:var(--font-mono); }
.step-card .step-icon{ width:48px; height:48px; border-radius:14px; display:grid; place-items:center; background:var(--green-deep); color:#fff; font-size:1.1rem; margin-bottom:16px; }
.step-card h3{ font-size:1.15rem; margin-bottom:10px; }
.step-card p{ font-size:0.95rem; line-height:1.6; }

@media (max-width: 900px){
  .steps-grid{ grid-template-columns:1fr; gap:16px; }
  .step-card{ padding:22px 20px; }
}

@media (max-width: 600px){
  .section-head{ margin-bottom: 20px; }
  .steps-grid{ gap:12px; }
  .step-card{ padding:16px 14px 14px; border-radius:14px; }
  .step-card .step-badge{ width:30px; height:30px; top:12px; right:12px; font-size:0.72rem; }
  .step-card .step-icon{ width:38px; height:38px; margin-bottom:12px; font-size:0.95rem; border-radius:10px; }
  .step-card h3{ font-size:0.98rem; margin-bottom:8px; }
  .step-card p{ font-size:0.84rem; line-height:1.45; }
  .service-card{ padding:14px !important; }
  .service-pill{ padding:6px 8px; font-size:0.78rem; gap:6px; }
  .service-pill img{ width:16px; height:16px; }
  .service-card .mono{ font-size:0.82rem; }
  .service-card p{ margin-top:10px !important; font-size:0.78rem !important; }
}

/* -------------------------------- Buttons --------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
  min-height: 44px;
}
.btn:active{ transform: scale(0.98); }
.btn-primary{
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-green);
}
.btn-primary img{
  filter: brightness(0) invert(1);
}
.btn-primary:hover{ box-shadow: 0 16px 32px rgba(34,197,94,0.36); transform: translateY(-1px); }
.btn-secondary{
  background: #fff;
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover{ border-color: #C6C9CC; background: var(--bg-section); }
.btn-dark{
  background: var(--green-deep);
  color: #fff;
}
.btn-block{ width: 100%; }
.btn-sm{
  padding: 9px 14px;
  font-size: 0.85rem;
  min-height: 36px;
}

/* -------------------------------- Header --------------------------------- */
.announce-bar{
  background: var(--green-deep);
  color: #EFFBF3;
  font-size: 0.8rem;
  text-align: center;
  padding: 9px 16px;
  letter-spacing: 0.01em;
}
.announce-bar a{ color: var(--green); font-weight: 600; border-bottom: 1px solid rgba(34,197,94,0.4); }

header{
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eceff6;
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  max-width: 1180px;
  margin: 0 auto;
  height: 96px;
  min-height: 96px;
  overflow: visible;
}
.logo{
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 18.5px;
  color: var(--text);
  letter-spacing: -.2px;
  margin-left: -60px;
}
.logo img{
  height: 84px;
  max-height: 84px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}
.logo b{ color: var(--blue); font-weight: 700; }
.nav-links{
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}
.nav-links a{
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.nav-links a::after{
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after{ transform: scaleX(1); }
.nav-links a:hover,
.nav-links a.active{ color: var(--text); background: var(--blue-pale); }
.nav-links a.nav-link-home{
  color: var(--blue);
  font-weight: 700;
  background: rgba(20, 84, 224, 0.06);
  border: 1px solid rgba(20, 84, 224, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}
.nav-links a.nav-link-home::after{ background: var(--blue); }
.nav-links a.nav-link-home:hover,
.nav-links a.nav-link-home.active{
  color: var(--blue-deep);
  background: rgba(20, 84, 224, 0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}
.nav-actions{ display: flex; gap: 10px; align-items: center; }
.nav-actions .btn{ min-height: 44px; box-shadow: 0 3px 10px rgba(16,20,35,.06); }
.nav-toggle{ display: none; background: transparent; border: none; padding: 8px; border-radius: 8px; color: var(--text); align-items: center; justify-content: center; }
.nav-toggle:hover{ background: var(--bg); }
.nav-toggle svg{ width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.nav-links-actions{ display: none; }
.nav-links-actions .btn.btn-primary{
  background: var(--blue);
  color: #fff;
}
.nav-links-actions .btn.btn-primary:hover{
  background: var(--blue-deep);
}
.nav-links-actions .btn.btn-ghost{
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--blue-line);
}
.nav-links-actions .btn.btn-ghost:hover{
  background: var(--bg);
}
footer{
  background: #0a0f24;
  color: #a9b6dd;
  padding: 52px 0 22px;
}
.footer-logo{
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  text-align: center;
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.footer-logo a{ display: inline-flex; align-items: center; justify-content: center; }
.footer-cols{
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  font-size: 13px;
  text-align: center;
}
.footer-cols > div > div:not(:first-child){
  padding: 4px 0;
  color: #8b98c2;
}
.footer-cols a{ color: #8b98c2; transition: color .15s ease; }
.footer-cols a:hover{ color: #fff; }
.footer-social{
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 22px;
}
.footer-social a{
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
  color: #fff;
}
.footer-social a img{
  width: 15px;
  height: 15px;
  display: block;
  object-fit: contain;
}
.footer-social a:hover{ background: rgba(255,255,255,.14); }
.footer-bottom{
  text-align: center;
  font-size: 12px;
  color: #6b76a0;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
}

/* -------------------------------- Cards --------------------------------- */
.card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}
.card-hover{ transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.card-hover:hover{ box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #D6ECDD; }

.badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--green-tint);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-dark{ background: rgba(255,255,255,0.12); color: #fff; }

/* -------------------------------- SMS Motif ------------------------------ */
/* The signature element: a mock incoming-SMS ticket used across pages       */
.sms-ticket{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.sms-ticket .avatar{
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-section);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--green-dark);
  flex-shrink: 0;
}
.sms-ticket .body{ flex: 1; min-width: 0; }
.sms-ticket .top-line{ display: flex; justify-content: space-between; gap: 8px; font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 3px; }
.sms-ticket .service-name{ font-weight: 600; color: var(--text); }
.sms-ticket .code{
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--green-dark);
  letter-spacing: 0.04em;
}
.sms-ticket .text-line{ font-size: 0.88rem; color: var(--text-secondary); margin-top: 2px; }

/* -------------------------------- Footer --------------------------------- */
footer{
  background: #0a0f24;
  color: #a9b6dd;
  padding: 52px 0 22px;
}
footer .footer-logo{
  color:#fff;
  font-weight:700;
  font-size:19px;
  text-align:center;
  margin-bottom:32px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
}
footer .footer-logo a{ display:inline-flex; align-items:center; justify-content:center; }
footer .footer-cols{
  display:flex;
  justify-content:center;
  gap:60px;
  flex-wrap:wrap;
  margin-bottom:32px;
  font-size:13px;
  text-align:center;
}
footer .footer-cols > div > div:not(:first-child){
  padding:4px 0;
  color:#8b98c2;
}
footer .footer-cols a{ color:#8b98c2; transition:color .15s ease; }
footer .footer-cols a:hover{ color:#fff; }
footer .footer-social{
  display:flex;
  gap:12px;
  justify-content:center;
  margin-bottom:22px;
}
footer .footer-social a{
  width:32px;
  height:32px;
  border-radius:8px;
  background:rgba(255,255,255,.06);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .2s ease;
  color:#fff;
}
footer .footer-social a img{
  width:15px;
  height:15px;
  display:block;
  object-fit:contain;
}
footer .footer-social a:hover{ background:rgba(255,255,255,.14); }
footer .footer-bottom{
  text-align:center;
  font-size:12px;
  color:#6b76a0;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:20px;
}
  padding-top: 24px;
  font-size: 0.82rem;
  color: #FFFFFF;
  flex-wrap: wrap;
  gap: 12px;
}
.social-icons{ display: flex; gap: 10px; }
.social-icons a{
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .15s ease;
}
.social-icons a img{ width:16px; height:16px; display:block; object-fit:contain; }
.social-icons a:hover{ background: var(--green); }

/* -------------------------------- Utilities ------------------------------ */
.grid{ display: grid; gap: 24px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
.flex{ display: flex; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.gap-8{ gap: 8px; } .gap-12{ gap: 12px; } .gap-16{ gap: 16px; } .gap-24{ gap: 24px; }
.text-center{ text-align: center; }
.mt-8{ margin-top: 8px; } .mt-16{ margin-top: 16px; } .mt-24{ margin-top: 24px; } .mt-32{ margin-top: 32px; } .mt-48{ margin-top: 48px; }

.input-group{ display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.input-group label{ font-size: 0.85rem; font-weight: 600; color: var(--text); }
.input-group input, .input-group select, .input-group textarea{
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-section);
  color: var(--text);
  transition: border-color .15s ease, background .15s ease;
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus{
  border-color: var(--green);
  background: #fff;
  outline: none;
}
.password-field{
  position: relative;
  border: 1.5px solid var(--blue-line);
  border-radius: 9px;
  background: var(--white);
  display: flex;
  align-items: center;
}
.auth-form .password-field input[type="password"],
.auth-form .password-field input[type="text"],
.input-group .password-field input[type="password"],
.input-group .password-field input[type="text"]{
  /* Input is borderless and fills the wrapper; wrapper now shows border */
  padding: 12px 2.75rem 12px 14px;
  width: 100%;
  box-sizing: border-box;
  border: none;
  background: transparent;
}
.password-field input[type="password"],
.password-field input[type="text"]{
  padding: 12px 2.75rem 12px 14px;
  width: 100%;
  box-sizing: border-box;
  border: none;
  background: transparent;
}
.password-toggle{
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2.5rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s ease;
  appearance: none;
  box-shadow: none;
  z-index: 1;
}
.password-toggle:hover,
.password-toggle:focus{
  color: var(--text);
  background: transparent;
}
.password-toggle:focus{
  outline: none;
}
.password-toggle i,
.password-toggle svg,
.password-toggle img{
  display: block;
  width: 1rem;
  height: 1rem;
}
.input-hint{ font-size: 0.78rem; color: var(--text-secondary); }

/* -------------------------------- Auth pages ------------------------------ */
.auth-section{
  padding: 40px 0 24px;
}
.auth-shell{
  width: 100%;
}
.auth-shell--single{
  max-width: 420px;
}
.auth-layout{
  width: 100%;
}
.auth-layout--register{
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 460px);
  align-items: stretch;
  gap: 24px;
  max-width: 1060px;
}
.auth-shell--split{
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  align-items: center;
  gap: 36px;
  max-width: 1040px;
}
.auth-panel{
  border-radius: 22px;
}
.auth-panel--intro{
  background:
    linear-gradient(160deg, rgba(20,84,224,.12), rgba(11,37,69,.04)),
    linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  border: 1px solid #e5ebfb;
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.auth-panel--intro .auth-copy{
  max-width: 500px;
}
.auth-panel--intro .auth-benefits{
  color: var(--ink);
}
.auth-panel--intro .auth-benefits li{
  position: relative;
  padding-left: 18px;
}
.auth-panel--intro .auth-benefits li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.auth-mini-card{
  margin-top: 18px;
  min-height: 82px;
  background: #fff;
  border: 1px solid #e6ebf7;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(16,20,35,.05);
}
.auth-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.auth-chip{
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--blue-pale);
  color: var(--blue-darker);
  border: 1px solid #d7e3ff;
  font-size: 0.8rem;
  font-weight: 700;
}
.auth-card{
  box-shadow: var(--shadow-md);
}
.auth-card--single{
  padding: 32px;
}
.auth-card--form{
  padding: 34px;
  align-self: stretch;
}
.auth-title{
  font-size: 1.6rem;
  line-height: 1.15;
}
.auth-copy{
  color: var(--text-secondary);
  font-size: 0.94rem;
}
.auth-copy--wide{
  max-width: 420px;
}
.auth-benefits{
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text);
}
.auth-form{
  width: 100%;
}
.auth-form-grid{
  gap: 16px;
}
.auth-meta-row{
  gap: 12px;
}
.auth-remember{
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.88rem;
}
.auth-link{
  color: var(--green-dark);
  font-weight: 600;
}
.auth-switch{
  font-size: 0.9rem;
}
.auth-terms{
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.45;
}
.auth-submit{
  min-height: 48px;
}

/* Searchable Select Dropdown */
.searchable-select{
  position: relative;
}
.searchable-input{
  padding: 12px 14px !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--bg-section) !important;
  color: var(--text) !important;
  width: 100% !important;
  font-size: 0.95rem !important;
  transition: border-color .15s ease, background .15s ease !important;
}
.searchable-input:focus{
  border-color: var(--green) !important;
  background: #fff !important;
  outline: none !important;
}
.search-results{
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}
.search-results.active{
  display: block;
}
.search-result-item{
  padding: 12px 14px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background .1s ease;
}
.search-result-item:last-child{
  border-bottom: none;
}
.search-result-item:hover,
.search-result-item.active{
  background: var(--green-tint);
  color: var(--green-dark);
}
.search-result-empty{
  padding: 12px 14px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
}

.divider{ height: 1px; background: var(--border); border: none; margin: 0; }

.skip-link{
  position: absolute; left: -9999px; top: 0;
  background: var(--green-deep); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 999;
}
.skip-link:focus{ left: 0; }
