/**
 * Cloudscape Design System adapted styles for A2Z Prints
 * Based on https://cloudscape.design/patterns/
 */

:root {
  /* Cloudscape Core Palette */
  --color-background-layout: #f2f3f3;
  --color-background-container: #ffffff;
  --color-background-container-header: #fafbfc;
  --color-border-divider: #eaeded;
  --color-border-control: #7d8998;
  --color-border-focus: #0972d3;
  --color-text-body: #000716;
  --color-text-heading: #000716;
  --color-text-secondary: #5f6b7a;
  --color-text-muted: #879596;

  /* Cloudscape Primary Interactive */
  --color-primary: #0972d3;
  --color-primary-hover: #035398;
  --color-primary-active: #013b6d;
  --color-primary-subtle: #e8f2fc;
  --color-primary-border: #b9d9f8;

  /* Cloudscape Navigation Dark Slate */
  --color-nav-bg: #0f1b2a;
  --color-nav-border: #232f3e;
  --color-nav-text: #d1d5db;
  --color-nav-text-hover: #ffffff;
  --color-sidebar-bg: #ffffff;
  --color-sidebar-border: #eaeded;

  /* Cloudscape Status Colors */
  --color-success: #037f0c;
  --color-success-bg: #edf7ee;
  --color-success-border: #c6e5c8;

  --color-warning: #8d6605;
  --color-warning-bg: #fff8e1;
  --color-warning-border: #fae4a7;

  --color-error: #d91515;
  --color-error-bg: #faecec;
  --color-error-border: #f5c6c6;

  --color-info: #0972d3;
  --color-info-bg: #e8f2fc;
  --color-info-border: #b9d9f8;

  /* Geometry & Elevation */
  --radius-container: 12px;
  --radius-control: 8px;
  --radius-badge: 999px;
  --shadow-container: 0 1px 1px 0 rgba(0, 7, 22, 0.08), 0 1px 3px 1px rgba(0, 7, 22, 0.04);
  --shadow-dropdown: 0 4px 20px 1px rgba(0, 7, 22, 0.15);
  --shadow-modal: 0 12px 32px 0 rgba(0, 7, 22, 0.28);
}

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; min-height: 100vh; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Open Sans", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-body);
  background-color: var(--color-background-layout);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--color-primary-hover); text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  background: #eef2f5;
  color: #1a202c;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}
.muted { color: var(--color-text-secondary); }
.block { display: block; }
.skip {
  position: absolute; left: -999px; top: 12px;
  background: #fff; padding: 10px 16px; z-index: 100;
  border: 2px solid var(--color-primary); border-radius: var(--radius-control);
}
.skip:focus { left: 16px; }

/* ==========================================================================
   App Shell & Navigation (Cloudscape Top Navigation & Side Navigation)
   ========================================================================== */

/* Top Navigation Bar: Full-width enterprise dark header */
.topbar {
  background: var(--color-nav-bg);
  color: #ffffff;
  border-bottom: 1px solid var(--color-nav-border);
  height: 56px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 7, 22, 0.15);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.topbar-brand:hover {
  text-decoration: none;
  opacity: 0.96;
}

.brand-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
  filter: drop-shadow(0 2px 8px rgba(14, 165, 233, 0.35));
}

.topbar-brand:hover .brand-logo-icon {
  transform: translateY(-1px) scale(1.05);
  filter: drop-shadow(0 4px 14px rgba(14, 165, 233, 0.55));
}

.brand-logo-svg {
  display: block;
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.3px;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.brand-letter-e {
  font-size: 23px;
  font-weight: 900;
  font-style: italic;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.65));
  margin-right: 1px;
  display: inline-block;
  transform: skewX(-7deg);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar-brand:hover .brand-letter-e {
  transform: skewX(-7deg) scale(1.08);
  filter: drop-shadow(0 0 16px rgba(0, 242, 254, 0.9));
}

.brand-text-print {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 19px;
  color: #ffffff;
  letter-spacing: -0.4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  display: inline-block;
}

.brand-text-store {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.2px;
  margin-left: 2px;
  background: linear-gradient(135deg, #f43f5e 0%, #fb923c 45%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 4px rgba(251, 146, 60, 0.35));
  display: inline-block;
  transition: filter 0.2s ease;
}

.topbar-brand:hover .brand-text-store {
  filter: drop-shadow(0 0 10px rgba(251, 146, 60, 0.7));
}

.brand-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #00f2fe;
  border-radius: 50%;
  margin-left: 3px;
  margin-bottom: 3px;
  box-shadow: 0 0 8px #00f2fe;
  align-self: center;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
    box-shadow: 0 0 8px #00f2fe;
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
    box-shadow: 0 0 12px #00f2fe, 0 0 18px rgba(0, 242, 254, 0.6);
  }
}

.brand-mark {
  background: linear-gradient(135deg, var(--color-primary), #035398);
  color: #ffffff;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 2px rgba(9, 114, 211, 0.3);
}

.brand.brand-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.brand-name-dark .brand-text-print {
  color: #0f172a;
}

.audience-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.user-chip::before {
  content: '👤';
  font-size: 12px;
  opacity: 0.85;
}

.header-signout {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 12px;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.header-signout:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.topbar .menu-btn {
  display: none;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  padding: 6px 10px;
}

/* App Shell (Sidebar + Main Content Canvas) */
.shell {
  display: flex;
  min-height: calc(100vh - 56px);
}

/* Side Navigation Bar */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--color-sidebar-bg);
  border-right: 1px solid var(--color-sidebar-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  z-index: 20;
}

.nav-section-title {
  padding: 20px 20px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #687076;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.sidebar nav {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  overflow-y: auto;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13.5px;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.sidebar nav a .nav-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  opacity: 0.75;
  flex-shrink: 0;
}

.sidebar nav a:hover {
  background: #f4f6f8;
  color: #000716;
  text-decoration: none;
}

.sidebar nav a:hover .nav-icon {
  opacity: 1;
}

.sidebar nav a[aria-current="page"] {
  border-left-color: var(--color-primary);
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  font-weight: 700;
}

.sidebar nav a[aria-current="page"] .nav-icon {
  stroke: var(--color-primary);
  opacity: 1;
}

.sidebar-bottom {
  padding: 16px;
  border-top: 1px solid var(--color-border-divider);
}

.sidebar .signout {
  width: 100%;
  justify-content: center;
  font-size: 13px;
}

/* Main Content Area */
.main {
  flex: 1;
  min-width: 0;
  background: var(--color-canvas-bg);
  display: flex;
  flex-direction: column;
}

/* Cloudscape Page Header with Breadcrumbs */
.page-header {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border-divider);
  padding: 20px 36px 18px;
}

.breadcrumb {
  font-size: 12px;
  font-weight: 500;
  color: #687076;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb a {
  color: #687076;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.page-title {
  margin: 0 0 4px 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #000716;
  line-height: 1.25;
}

.page-desc {
  margin: 0;
  font-size: 13.5px;
  color: #414d5c;
  line-height: 1.45;
  max-width: 860px;
}

#view {
  padding: 28px 36px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  outline: none;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}

/* ==========================================================================
   Cloudscape Container / Card Component Pattern
   ========================================================================== */

.card {
  background: var(--color-background-container);
  border: 1px solid var(--color-border-divider);
  border-radius: var(--radius-container);
  box-shadow: var(--shadow-container);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  min-width: 0;
}

.card.error {
  border-color: var(--color-error-border);
  background: var(--color-error-bg);
  color: var(--color-error);
  padding: 18px 22px;
}

.card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--color-background-container-header);
}

.card-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-heading);
  letter-spacing: -0.01em;
}

.card > form,
.card > .table-wrap,
.card > div:not(.card-head):not(.table-wrap),
.card > dl,
.card > ul,
.card > p {
  padding: 20px;
}

.card > p.muted {
  padding: 0 20px 16px;
  margin: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  align-items: start;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

/* ==========================================================================
   Cloudscape KPI Key-Metrics / Stats Cards
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.stat {
  background: #ffffff;
  border: 1px solid var(--color-border-divider);
  border-radius: var(--radius-container);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-container);
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-primary);
}

.stat span {
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat strong {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-text-heading);
  letter-spacing: -0.02em;
}

.stat small {
  color: var(--color-text-muted);
  font-size: 12px;
  margin-top: 2px;
}

/* Chart Bars */
.bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  height: 180px;
  align-items: end;
  padding: 10px 0 4px;
}

.bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.bar-track {
  flex: 1;
  width: 100%;
  max-width: 32px;
  background: #eaeded;
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.bar-fill {
  width: 100%;
  background: var(--color-primary);
  border-radius: 4px 4px 0 0;
  min-height: 3px;
  transition: height 0.3s ease;
}

.bar:hover .bar-fill {
  background: var(--color-primary-hover);
}

.bar-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-heading);
}

.bar-day {
  font-size: 11px;
  color: var(--color-text-secondary);
  font-weight: 600;
}

.list { list-style: none; margin: 0; padding: 0; }
.list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-divider);
  font-size: 13.5px;
}
.list li:last-child { border-bottom: none; }

/* ==========================================================================
   Cloudscape Form Controls (FormField, Input, Select, Button)
   ========================================================================== */

label {
  display: block;
  margin: 14px 0 4px;
  font-weight: 700;
  font-size: 13px;
  color: var(--color-text-heading);
}

input, select {
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--color-border-control);
  border-radius: var(--radius-control);
  background: #ffffff;
  color: var(--color-text-body);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:hover, select:hover {
  border-color: #414d5c;
}

input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: none;
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px rgba(9, 114, 211, 0.2);
}

.row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.row select { flex: 1; }

.hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}
.hint.warn { color: var(--color-warning); font-weight: 600; }

.consent {
  margin: 18px 0 0;
  border: 1px solid var(--color-border-divider);
  border-radius: var(--radius-control);
  padding: 14px 16px 16px;
  background: #fafbfc;
}
.consent legend {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--color-text-heading);
  padding: 0 6px;
}

label.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 13px;
  cursor: pointer;
  margin-top: 12px;
}
label.check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* Cloudscape Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 7, 22, 0.1);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  color: #ffffff;
  text-decoration: none;
}
.btn-primary:active {
  background: var(--color-primary-active);
}

.btn-ghost, .btn-secondary {
  background: #ffffff;
  border-color: var(--color-border-control);
  color: var(--color-text-heading);
}
.btn-ghost:hover, .btn-secondary:hover {
  background: #f2f3f3;
  color: var(--color-text-heading);
  text-decoration: none;
}

.btn-sm {
  height: 30px;
  padding: 0 12px;
  font-size: 12.5px;
}

.btn-xs {
  height: 24px;
  padding: 0 8px;
  font-size: 11.5px;
  border-radius: 4px;
}

.btn-block {
  width: 100%;
  margin-top: 18px;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
form .btn-primary:not(.btn-block) {
  margin-top: 16px;
}

.msg {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 13px;
}
.msg.error {
  color: var(--color-error);
  font-weight: 600;
}

/* ==========================================================================
   Lookup Workflow & Preview (Cloudscape 2-Column Split Pattern)
   ========================================================================== */

.lookup-page-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.lookup-layout-2col {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 28px;
  align-items: start;
  width: 100%;
}

.card-lookup-form {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-self: start;
}

.card-lookup-form .card-head {
  padding: 22px 28px;
  border-bottom: 1px solid var(--color-border-divider);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-lookup-form .card-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: #000716;
}

.fee-pill-box {
  background: #f0f7fd;
  border: 1px solid #cce4fc;
  border-radius: 8px;
  padding: 6px 14px;
  text-align: right;
}

.fee-pill-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #545b64;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fee-pill-amount {
  color: var(--color-primary);
  font-size: 17px;
  font-weight: 800;
}

.lookup-form {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-action-row {
  margin-top: 6px;
  padding-top: 4px;
}

/* Balance Strip */
.lookup-balance-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fafbfc;
  border: 1px solid var(--color-border-divider);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #414d5c;
}

.balance-icon { font-size: 15px; }
.balance-text { flex: 1; }
.balance-text.warn { color: var(--color-error); }
.balance-topup-link {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 12.5px;
  text-decoration: none;
}
.balance-topup-link:hover { text-decoration: underline; }

.select-service {
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--color-border-input);
  background: #ffffff;
  width: 100%;
}

/* Indian Vehicle Number Plate Styling */
.plate-input-wrap {
  display: flex;
  align-items: stretch;
  border: 2px solid #000716;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 7, 22, 0.08);
  transition: all 0.2s ease;
}

.plate-input-wrap:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(9, 114, 211, 0.25);
}

.plate-ind-badge {
  background: #002b66;
  color: #ffffff;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-right: 2px solid #000716;
  user-select: none;
}

.ind-emblem { font-size: 13px; line-height: 1; }
.ind-code { font-size: 10px; font-weight: 900; letter-spacing: 1px; color: #ffffff; }

input.input-plate {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-size: 20px;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #000716;
  background: #fafbfc;
}

input.input-plate:focus {
  outline: none;
  background: #ffffff;
}

.plate-hint {
  font-size: 12px;
  color: #687076;
  margin: 4px 0 0 0;
}

/* Consent Compliance Card */
.consent-compliance-card {
  background: #fafbfc;
  border: 1px solid var(--color-border-divider);
  border-radius: 8px;
  padding: 16px;
}

.consent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.consent-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  background: #e8f2fc;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.consent-title {
  font-size: 12px;
  font-weight: 600;
  color: #687076;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #000716;
  line-height: 1.4;
  cursor: pointer;
  margin: 0;
}

.consent-check input[type="checkbox"] {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.consent-accordion {
  margin-top: 10px;
  font-size: 12.5px;
  color: #545b64;
}

.consent-accordion summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
  outline: none;
}

.consent-accordion summary:hover {
  text-decoration: underline;
}

.consent-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-divider);
}

.consent-fields-grid label {
  font-size: 12px;
  font-weight: 600;
  color: #414d5c;
  margin-bottom: 3px;
  display: block;
}

.consent-fields-grid input,
.consent-fields-grid select {
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 5px;
}

.btn-submit-lookup {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(9, 114, 211, 0.25);
  cursor: pointer;
}

.btn-submit-lookup svg {
  transition: transform 0.15s ease;
}

.btn-submit-lookup:hover svg {
  transform: translateX(3px);
}

/* RIGHT COLUMN: Results & Showcase */
.lookup-result-column {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 20px;
}

/* Status Alert (only appears during search or on error) */
.status-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 4px;
}

.status-alert[hidden] {
  display: none !important;
}

.status-alert[data-mode="busy"] {
  background: #f0f7fd;
  border: 1px solid #99c7f4;
  color: #003b70;
}

.status-alert[data-mode="fail"] {
  background: #fef4f4;
  border: 1px solid #f7a9a9;
  color: #8c1010;
}

.status-alert[data-mode="ok"] {
  background: #f2f9f5;
  border: 1px solid #79d0a6;
  color: #0b5e32;
}

.alert-icon-ring {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid currentColor;
  border-top-color: transparent;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.status-alert[data-mode="busy"] .alert-icon-ring {
  animation: spin 1s linear infinite;
}

.status-alert[data-mode="ok"] .alert-icon-ring,
.status-alert[data-mode="fail"] .alert-icon-ring {
  border-top-color: currentColor;
  font-weight: 800;
  font-size: 12px;
}

.alert-body strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.alert-body p {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
}

/* Verified Summary Stats Grid */
.verified-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 14px 22px;
  background: #f8fafc;
  border-bottom: 1px solid var(--color-border-divider);
}

.summary-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-stat .stat-label {
  font-size: 11px;
  font-weight: 600;
  color: #687076;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-stat .stat-value {
  font-size: 13.5px;
  font-weight: 700;
  color: #000716;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Showcase Card & Form 23A PVC Mockup */
.showcase-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.showcase-card .card-head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--color-border-divider);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.showcase-card .card-head h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #000716;
}

/* Sample Form 23A PVC Card Graphic */
.sample-pvc-card {
  padding: 16px 24px;
  background: #f4f6f8;
  display: flex;
  justify-content: center;
}

.pvc-card-front {
  width: 100%;
  max-width: 440px;
  height: 250px;
  background: linear-gradient(135deg, #ffffff 0%, #f7f9fa 50%, #edf1f5 100%);
  border-radius: 12px;
  border: 1px solid #ced4da;
  box-shadow: 0 8px 24px rgba(0, 7, 22, 0.12), 0 2px 6px rgba(0, 7, 22, 0.06);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.pvc-card-front::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff9933 0%, #ff9933 33%, #ffffff 33%, #ffffff 66%, #138808 66%, #138808 100%);
}

.pvc-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #eaeded;
  padding-bottom: 8px;
}

.pvc-emblem {
  font-size: 22px;
  line-height: 1;
}

.pvc-titles {
  flex: 1;
}

.pvc-state {
  font-size: 16px;
  font-weight: 900;
  color: #002b66;
  letter-spacing: 0.9px;
  line-height: 1.25;
  text-transform: uppercase;
}

.pvc-form {
  font-size: 11px;
  font-weight: 900;
  color: #000716;
}

.pvc-chip {
  width: 32px;
  height: 24px;
  background: linear-gradient(135deg, #ffd166, #e09f3e);
  border: 1px solid #b87a20;
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.4);
}

.pvc-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

.pvc-reg-num {
  font-size: 24px;
  font-weight: 900;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 3px;
  color: #002b66;
}

.pvc-reg-sub {
  font-size: 11px;
  font-weight: 700;
  color: #545b64;
  margin-top: 3px;
}

.pvc-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pvc-qr-code {
  width: 60px;
  height: 60px;
  background: repeating-conic-gradient(#000 0% 25%, #fff 0% 50%) 50% / 8px 8px;
  border: 1px solid #eaeded;
  border-radius: 4px;
}

.pvc-qr-label {
  font-size: 9px;
  font-weight: 700;
  color: #687076;
}

.pvc-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  color: #687076;
  border-top: 1px solid #eaeded;
  padding-top: 8px;
}

/* Showcase Features */
.showcase-features {
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  flex: 1;
  gap: 14px;
  background: #ffffff;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-icon {
  font-size: 16px;
  line-height: 1;
  background: #f0f7fd;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.feature-item strong {
  display: block;
  font-size: 13.5px;
  color: #000716;
}

.feature-item span {
  font-size: 12px;
  color: #687076;
  line-height: 1.35;
}

/* Sidebar Brand Meta */
.sidebar-brand-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 8px;
}

.sidebar-brand-meta .meta-title {
  font-size: 12px;
  font-weight: 700;
  color: #000716;
}

.sidebar-brand-meta .meta-sub {
  font-size: 11px;
  color: #687076;
}
.status-card[data-mode="fail"] .ring {
  border-color: var(--color-error);
  color: var(--color-error);
  background: var(--color-error-bg);
}

@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .status-card[data-mode="busy"] .ring,
  .status-card[data-mode="busy"] .ring span { animation: none; }
}

/* Key Value Pairs (Cloudscape KeyValuePairs Pattern) */
.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 16px 0 0;
  text-align: left;
  font-size: 13.5px;
  width: 100%;
}
.kv dt {
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 12.5px;
}
.kv dd {
  margin: 0;
  font-weight: 700;
  color: var(--color-text-heading);
  word-break: break-word;
}

.preview-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.preview-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--color-border-divider);
  flex-wrap: nowrap;
}

.card-head h2.verification-title,
.preview-card-head .verification-title,
.verification-title {
  font-size: 15px;
  font-weight: 700;
  color: #0972d3 !important;
  margin: 0;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.preview-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.preview {
  height: 640px;
  min-height: 640px;
  border: 1px solid var(--color-border-divider);
  border-radius: var(--radius-control);
  overflow: hidden;
  background: #525659;
}

.preview iframe {
  width: 100%;
  height: 100%;
  min-height: 640px;
  border: 0;
  background: #525659;
  display: block;
}

/* View Mode Segmented Controls */
.view-mode-tabs {
  display: inline-flex;
  align-items: center;
  background: #eaeded;
  padding: 2px;
  border-radius: 6px;
  gap: 2px;
}

.view-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: none;
  background: transparent;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: #545b64;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  white-space: nowrap;
}

.view-tab-btn:hover {
  color: #000716;
  background: rgba(255, 255, 255, 0.6);
}

.view-tab-btn.active {
  background: #ffffff;
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 7, 22, 0.14);
}

.view-tab-icon {
  font-size: 13px;
  line-height: 1;
}

.preview-actions-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-download-compact {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 4px 11px !important;
  font-size: 12.5px !important;
  height: 28px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  border-radius: 5px !important;
  flex-shrink: 0 !important;
}

.btn-open-compact {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  border-radius: 5px !important;
  flex-shrink: 0 !important;
  border: 1px solid var(--color-border-divider) !important;
}

.placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  text-align: center;
  padding: 24px;
}
.placeholder span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 12px;
}

/* ==========================================================================
   Cloudscape Table Pattern
   ========================================================================== */

.table-wrap {
  overflow-x: auto;
  padding: 0 !important;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-divider);
  vertical-align: middle;
}

th {
  background: var(--color-background-container-header);
  color: var(--color-text-secondary);
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-bottom: 2px solid var(--color-border-divider);
}

tbody tr {
  transition: background-color 0.15s ease;
}
tbody tr:hover {
  background-color: #f8fafc;
}
tbody tr:last-child td {
  border-bottom: none;
}

td small {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.num { text-align: right; white-space: nowrap; }
.pos { color: var(--color-success); font-weight: 700; }
.neg { color: var(--color-error); font-weight: 700; }

/* Cloudscape Status Indicator Component */
.status-indicator, .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-badge);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.status-success, .pill-success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border-color: var(--color-success-border);
}
.status-success .status-dot { background: var(--color-success); }

.status-failed, .pill-failed {
  background: var(--color-error-bg);
  color: var(--color-error);
  border-color: var(--color-error-border);
}
.status-failed .status-dot { background: var(--color-error); }

.status-pending, .pill-pending {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border-color: var(--color-warning-border);
}
.status-pending .status-dot { background: var(--color-warning); }

.status-info {
  background: var(--color-info-bg);
  color: var(--color-info);
  border-color: var(--color-info-border);
}
.status-info .status-dot { background: var(--color-info); }

/* Table Filters & Pager */
.filters {
  display: grid;
  grid-template-columns: 1fr 180px 180px auto;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border-divider);
  background: #ffffff;
}
form.filters .btn.btn-primary { margin: 0; }

.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--color-border-divider);
  font-size: 13px;
  color: var(--color-text-secondary);
  background: var(--color-background-container-header);
}

.card-head input[type="search"] {
  max-width: 280px;
  height: 36px;
}

/* Badges */
.badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-badge);
  background: #eef2f5;
  color: var(--color-text-secondary);
  border: 1px solid #d5dbdb;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-warn {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border-color: var(--color-warning-border);
}
.badge-live {
  background: var(--color-success-bg);
  color: var(--color-success);
  border-color: var(--color-success-border);
}

/* Wallet Chip in Topbar */
.wallet-chip {
  background: rgba(3, 127, 12, 0.15);
  color: #a3e635;
  border: 1px solid rgba(163, 230, 53, 0.4);
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-badge);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

/* Cloudscape Flashbar Toast Notification */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 14px 20px;
  border-radius: var(--radius-control);
  color: #ffffff;
  font-weight: 600;
  font-size: 13.5px;
  box-shadow: var(--shadow-dropdown);
  z-index: 1000;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 5px solid rgba(255, 255, 255, 0.5);
  animation: slideUp 0.25s ease;
}
.toast-ok { background: #037f0c; }
.toast-error { background: #d91515; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Cloudscape Authentication (Login, Sign-up, Forgot Password)
   ========================================================================== */

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top left, #1e293b, #0f172a);
  padding: 24px;
}

.login-card {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-container);
  padding: 32px 28px;
  box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-card p.muted {
  text-align: center;
  margin: 6px 0 16px;
  font-size: 13px;
  line-height: 1.4;
}

/* Cloudscape Segmented Control Tabs */
.login-tabs {
  display: flex;
  background: #eaeded;
  border-radius: 8px;
  padding: 3px;
  margin: 16px 0 14px;
  gap: 3px;
}

.login-tab {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.login-tab:hover {
  color: var(--color-text-heading);
}

.login-tab.active {
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: 0 1px 3px rgba(0, 7, 22, 0.12);
}

/* Step Wizard Progress for Sign-up */
.steps {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 8px 0 16px;
  counter-reset: s;
}

.steps li {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-secondary);
  border-top: 3px solid var(--color-border-divider);
  padding-top: 6px;
  counter-increment: s;
}
.steps li::before { content: counter(s) ". "; }
.steps li.active { color: var(--color-primary); border-color: var(--color-primary); }
.steps li.done { color: var(--color-success); border-color: var(--color-success); }

.test-otp {
  margin: 12px 0;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning-border);
  color: var(--color-warning);
  font-weight: 700;
  font-size: 13.5px;
  text-align: center;
}

.row.between { justify-content: space-between; margin-top: 12px; }
.linkbtn {
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--color-primary);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.linkbtn:hover { color: var(--color-primary-hover); }
.linkbtn:disabled { color: var(--color-text-muted); cursor: default; text-decoration: none; }

.alt {
  margin: 20px 0 0;
  font-size: 13.5px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

/* ==========================================================================
   UPI QR Scanner Modal (Cloudscape Modal Pattern)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 7, 22, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
  animation: fadeIn 0.15s ease;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-container);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 460px;
  max-height: 94vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  border: 1px solid var(--color-border-divider);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scanner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.scanner-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-heading);
}

.scanner-qr-box {
  background: #fbfcfd;
  border: 2px dashed #cfd7df;
  border-radius: var(--radius-container);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 14px 0;
}

.scanner-qr-img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  display: block;
  background: #ffffff;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 7, 22, 0.08);
}

.scanner-amount {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-primary);
  margin-top: 12px;
}

.scanner-meta {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

.scanner-upi-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: #eef2f5;
  color: var(--color-text-heading);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 6px;
}

.scanner-upi-apps {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--color-text-secondary);
  font-weight: 600;
}
.scanner-upi-apps span {
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.scanner-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.pdf-links {
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
}

/* Misc Utilities */
.actions { white-space: nowrap; }
.actions .btn + .btn { margin-left: 6px; }
.btn.danger { color: var(--color-error); border-color: var(--color-error-border); }
.btn.danger:hover { background: var(--color-error-bg); }
.cred-card { border-color: var(--color-warning-border); background: var(--color-warning-bg); }
.kv.cred { max-width: 520px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; letter-spacing: 0.06em; }
.card.narrow { max-width: 480px; }
form.filters.filters-3 { grid-template-columns: 1fr 180px auto; }
#nav a[hidden] { display: none; }
.notice {
  border-left: 4px solid var(--color-primary);
  background: #ffffff;
  padding: 16px 20px;
}
.notice strong { color: var(--color-text-heading); display: block; margin-bottom: 2px; }

/* ==========================================================================
   Cloudscape Settings & Form Components Pattern
   ========================================================================== */

.settings-container {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Settings Tabs / Segmented Control */
.settings-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #eaeded;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.settings-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #545b64;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.settings-tab svg {
  stroke: currentColor;
  opacity: 0.8;
}

.settings-tab:hover {
  color: #000716;
  background: #eaeded;
}

.settings-tab.active {
  color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 7, 22, 0.1);
  font-weight: 700;
}

.settings-tab.active svg {
  stroke: var(--color-primary);
  opacity: 1;
}

.tab-panel[hidden] {
  display: none !important;
}

/* Card Setting Container */
.card-setting {
  background: #ffffff;
  border: 1px solid var(--color-border-divider);
  border-radius: 12px;
  box-shadow: var(--shadow-container);
  overflow: hidden;
}

.card-setting .card-head {
  padding: 22px 28px;
  border-bottom: 1px solid var(--color-border-divider);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-setting .card-head h2 {
  font-size: 18px;
  font-weight: 700;
  color: #000716;
  margin: 0 0 4px 0;
}

.card-setting .card-head p {
  font-size: 13.5px;
  color: #687076;
  margin: 0;
  line-height: 1.45;
}

.card-footer {
  padding: 18px 28px;
  background: #fafbfc;
  border-top: 1px solid var(--color-border-divider);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

/* Form Row Layout with Currency Addons */
.form-row-group {
  display: flex;
  flex-direction: column;
}

.form-row {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  border-bottom: 1px solid #f2f3f3;
}

.form-row:last-child {
  border-bottom: none;
}

.field-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #000716;
  margin-bottom: 3px;
}

.field-desc {
  display: block;
  font-size: 12.5px;
  color: #687076;
  line-height: 1.4;
}

.input-addon-group {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border-input);
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-addon-group:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(9, 114, 211, 0.2);
}

.addon-prefix {
  padding: 9px 12px;
  background: #f2f3f3;
  color: #545b64;
  font-weight: 700;
  font-size: 14px;
  border-right: 1px solid var(--color-border-divider);
}

.input-addon-group input.input-currency {
  border: none;
  padding: 9px 12px;
  font-size: 15px;
  font-weight: 700;
  color: #000716;
  width: 100%;
  text-align: right;
  background: transparent;
}

.input-addon-group input.input-currency:focus {
  outline: none;
  box-shadow: none;
}

.addon-suffix {
  padding: 9px 12px;
  background: #fafbfc;
  color: #687076;
  font-size: 12.5px;
  font-weight: 600;
  border-left: 1px solid var(--color-border-divider);
  white-space: nowrap;
}

/* Provider Selector & Dynamic Boxes */
.provider-selector-wrap {
  padding: 22px 28px;
  border-bottom: 1px solid var(--color-border-divider);
  background: #fafbfc;
}

.provider-select-main {
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--color-border-input);
  width: 100%;
  background: #ffffff;
}

.cloudscape-alert {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 28px;
  font-size: 13.5px;
  line-height: 1.45;
}

.cloudscape-alert.info {
  background: #f0f7fd;
  border: 1px solid #99c7f4;
  color: #003b70;
}

.cloudscape-alert strong {
  display: block;
  font-size: 14px;
  color: #000716;
  margin-bottom: 2px;
}

.cloudscape-alert p {
  margin: 0;
  color: #414d5c;
}

.alert-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.provider-credential-box {
  padding: 22px 28px;
  border-bottom: 1px solid var(--color-border-divider);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.provider-credential-box[hidden] {
  display: none !important;
}

.provider-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.provider-box-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #000716;
}

.provider-tag {
  font-size: 11.5px;
  font-weight: 700;
  background: #e8ecf0;
  color: #414d5c;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.form-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-field-wrap label {
  font-size: 13.5px;
  font-weight: 600;
  color: #000716;
  margin: 0;
}

.form-field-wrap input {
  padding: 9px 12px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid var(--color-border-input);
}

.form-field-wrap .hint {
  font-size: 12px;
  color: #687076;
  margin: 2px 0 0 0;
}

/* Responsive Overrides */
@media (max-width: 1080px) {
  .lookup-layout-2col { grid-template-columns: 1fr; }
  .lookup-grid { grid-template-columns: 1fr; }
  .preview-card { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .shell { flex-direction: column; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    height: 100vh;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-dropdown);
  }
  .sidebar.open { transform: none; }
  .topbar .menu-btn { display: inline-flex; }
  .lookup-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  form.filters.filters-3 { grid-template-columns: 1fr; }
  .filters input { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }
  .page-header { padding: 16px 20px; }
  #view { padding: 16px 20px 36px; }
  .preview { height: 460px; }
  .topbar-right #userName { display: none; }
}

/* Top up inline action buttons alignment */
.form-actions-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.form-actions-inline .btn {
  margin: 0 !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Low balance customers dashboard component */
.card-low-balance {
  display: flex;
  flex-direction: column;
}
.card-low-balance .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.low-balance-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.low-balance-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #fbfcfd;
  border: 1px solid var(--color-border-divider);
  border-radius: 8px;
  transition: all 0.15s ease;
}
.low-balance-item:hover {
  background: #f4f6f8;
  border-color: #cbd5e1;
}
.customer-cell-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.customer-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0972d3, #0284c7);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13.5px;
  flex-shrink: 0;
}
.customer-info-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.customer-name-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text-heading);
}
.customer-phone-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--color-text-secondary);
}
.balance-action-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.balance-pill-danger {
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 8px;
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  border-radius: 5px;
}
.balance-pill-warn {
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 8px;
  background: #fefce8;
  color: #ca8a04;
  border: 1px solid #fef08a;
  border-radius: 5px;
}
.btn-quick-topup {
  padding: 4px 10px !important;
  font-size: 12px !important;
  height: 28px !important;
  border-radius: 5px !important;
  margin: 0 !important;
}
.empty-low-balance {
  padding: 32px 16px;
  text-align: center;
  color: var(--color-text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.empty-icon-check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

