/* ============================================================
   TRINITY AUTO PARTS — BILLING & QUOTATION PORTAL
   Design: Glassmorphism, White/Magenta Theme, Rainbow Flow Glow
   ============================================================ */

:root {
  --bg-dark: #07000e;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.09);
  --bg-glass-input: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glass-bright: rgba(255, 255, 255, 0.28);
  
  --primary-magenta: #e91e8c;
  --magenta-glow: #ff2db4;
  --magenta-light: #ff77d2;
  --cyan-accent: #00f2fe;
  --emerald-accent: #10b981;
  --amber-accent: #f59e0b;
  --indigo-accent: #6366f1;

  --text-white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-dim: rgba(255, 255, 255, 0.45);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;

  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-magenta: 0 0 25px rgba(233, 30, 140, 0.35);
  --shadow-rainbow: 0 0 30px rgba(255, 45, 180, 0.25);
  
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', var(--font-main);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-white);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Fluid Animated Background Mesh */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background: radial-gradient(circle at 10% 20%, rgba(233, 30, 140, 0.18) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(0, 242, 254, 0.15) 0%, transparent 45%),
              radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 80% 10%, rgba(255, 105, 180, 0.14) 0%, transparent 35%);
  pointer-events: none;
}

.rainbow-mesh {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: -1;
  background: conic-gradient(from 180deg at 50% 50%, 
    rgba(233, 30, 140, 0.08) 0deg,
    rgba(147, 51, 234, 0.07) 60deg,
    rgba(59, 130, 246, 0.08) 120deg,
    rgba(16, 185, 129, 0.06) 180deg,
    rgba(245, 158, 11, 0.07) 240deg,
    rgba(233, 30, 140, 0.08) 360deg);
  animation: rotateMesh 35s linear infinite;
  pointer-events: none;
  filter: blur(80px);
}

@keyframes rotateMesh {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Rainbow Glow Animation Utility */
@keyframes rainbowGlow {
  0% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(180deg); }
  100% { filter: hue-rotate(360deg); }
}

.rainbow-flow-border {
  position: relative;
}

.rainbow-flow-border::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff007f, #7928ca, #0070f3, #00dfd8, #ff007f);
  background-size: 300% 300%;
  animation: rainbowBorder 6s ease infinite;
  z-index: -1;
  opacity: 0.8;
}

@keyframes rainbowBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glassmorphic Container */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(233, 30, 140, 0.3);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45), 0 0 20px rgba(233, 30, 140, 0.2);
  transform: translateY(-2px);
}

.glass-card-interactive {
  cursor: pointer;
}

/* App Header & Employee Bar */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 0, 14, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-magenta), #7928ca);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 0 20px rgba(233, 30, 140, 0.5);
  animation: rainbowGlow 12s linear infinite;
}

.brand-info h1 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-info h1 span {
  background: linear-gradient(90deg, #fff, var(--magenta-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(233, 30, 140, 0.2);
  border: 1px solid rgba(233, 30, 140, 0.4);
  color: var(--magenta-light);
}

/* Employee Quick Switcher */
.employee-session-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 40px;
  transition: border-color 0.3s;
}

.employee-session-box:hover {
  border-color: var(--primary-magenta);
}

.emp-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-magenta), #00dfd8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.emp-details {
  display: flex;
  flex-direction: column;
}

.emp-code-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.emp-name-select {
  background: transparent;
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.emp-name-select option {
  background: #140420;
  color: #fff;
}

/* Nav Menu Bar */
.nav-tab-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid var(--border-glass);
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.nav-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-magenta), #9333ea);
  box-shadow: 0 0 20px rgba(233, 30, 140, 0.4);
}

/* Main Layout Grid */
.portal-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

.view-section {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.view-section.active {
  display: block;
}

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

/* Dashboard Metrics Row */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.metric-card {
  padding: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.metric-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.metric-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.metric-icon-magenta {
  background: rgba(233, 30, 140, 0.15);
  color: var(--magenta-light);
  border: 1px solid rgba(233, 30, 140, 0.3);
}

.metric-icon-cyan {
  background: rgba(0, 242, 254, 0.15);
  color: var(--cyan-accent);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.metric-icon-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-accent);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.metric-icon-amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-accent);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Two Column Form & Calculator Layout */
.grid-2col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

@media (max-width: 1024px) {
  .grid-2col {
    grid-template-columns: 1fr;
  }
}

/* Form Styles */
.form-section-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 10px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

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

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.glass-input {
  width: 100%;
  background: var(--bg-glass-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.glass-input:focus {
  border-color: var(--primary-magenta);
  box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.25);
  background: rgba(255, 255, 255, 0.09);
}

.glass-input::placeholder {
  color: var(--text-dim);
}

select.glass-input option {
  background: #140420;
  color: #fff;
}

/* VIN Lookup Bar */
.vin-input-group {
  display: flex;
  gap: 10px;
}

.btn-vin-decode {
  background: linear-gradient(135deg, #7928ca, var(--primary-magenta));
  color: #fff;
  border: none;
  padding: 0 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-vin-decode:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(233, 30, 140, 0.4);
}

/* Screenshot Upload Area */
.screenshot-dropzone {
  border: 2px dashed rgba(233, 30, 140, 0.4);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.02);
  margin-top: 8px;
}

.screenshot-dropzone:hover {
  border-color: var(--primary-magenta);
  background: rgba(233, 30, 140, 0.05);
}

.screenshot-preview-box {
  margin-top: 14px;
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.screenshot-preview-box img {
  max-height: 180px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.btn-remove-img {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: #fff;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
}

/* Live Financial Calculator Box */
.calc-card {
  padding: 26px;
  background: linear-gradient(145deg, rgba(233, 30, 140, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(233, 30, 140, 0.3);
  position: sticky;
  top: 90px;
}

.calc-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.calc-breakdown-row.highlight {
  background: rgba(233, 30, 140, 0.12);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border-bottom: none;
  margin: 10px 0;
  font-weight: 700;
  font-size: 15px;
}

.calc-breakdown-row.net-min {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin: 12px 0;
}

.calc-breakdown-row.final-total {
  background: linear-gradient(135deg, rgba(233, 30, 140, 0.25), rgba(121, 40, 202, 0.25));
  border: 1px solid var(--primary-magenta);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-top: 16px;
  font-size: 17px;
  font-weight: 800;
}

.calc-num {
  font-family: var(--font-heading);
  font-weight: 700;
}

.margin-status-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-green { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid #10b981; }
.badge-yellow { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid #f59e0b; }
.badge-red { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid #ef4444; }

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-magenta), #ff007f);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 25px rgba(233, 30, 140, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(233, 30, 140, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-glass-bright);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-action-icon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action-icon:hover {
  background: var(--primary-magenta);
  border-color: var(--primary-magenta);
  box-shadow: 0 0 10px var(--primary-magenta);
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
}

.glass-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.glass-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 16px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-glass);
  white-space: nowrap;
}

.glass-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
}

.glass-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Status Badges */
.status-pill {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-pill.draft { background: rgba(156, 163, 175, 0.2); color: #d1d5db; border: 1px solid #6b7280; }
.status-pill.sent { background: rgba(59, 130, 246, 0.2); color: #93c5fd; border: 1px solid #3b82f6; }
.status-pill.accepted { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border: 1px solid #10b981; }
.status-pill.declined { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid #ef4444; }
.status-pill.completed { background: rgba(233, 30, 140, 0.25); color: #ff77d2; border: 1px solid var(--primary-magenta); }
.status-pill.paid { background: rgba(16, 185, 129, 0.25); color: #6ee7b7; border: 1px solid #10b981; }
.status-pill.unpaid { background: rgba(245, 158, 11, 0.25); color: #fde68a; border: 1px solid #f59e0b; }

/* Filter & Search Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  min-width: 280px;
  flex: 1;
}

/* Modal Overlay & Invoice Print Template */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-backdrop.open {
  display: flex;
}

.modal-sheet {
  background: #0f021c;
  border: 1px solid rgba(233, 30, 140, 0.4);
  border-radius: var(--radius-xl);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(233, 30, 140, 0.3);
  position: relative;
}

/* Printable Bill Document Format */
.printable-bill {
  background: #fff;
  color: #1a1a1a;
  border-radius: var(--radius-md);
  padding: 32px;
  margin: 16px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-size: 14px;
}

.bill-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #e91e8c;
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.bill-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #07000e;
}

.bill-brand-name {
  color: #e91e8c;
  font-weight: 800;
  font-size: 22px;
}

.bill-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.bill-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.bill-table th {
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  padding: 10px;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
}

.bill-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #eee;
}

.bill-totals-box {
  margin-left: auto;
  width: 300px;
  margin-top: 16px;
}

.bill-total-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

.bill-total-row.grand {
  border-top: 2px solid #e91e8c;
  padding-top: 10px;
  font-size: 18px;
  font-weight: 800;
  color: #e91e8c;
}

/* Charts Grid */
.charts-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  padding: 24px;
}

.chart-container {
  position: relative;
  height: 320px;
  width: 100%;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(15, 2, 28, 0.95);
  border: 1px solid var(--primary-magenta);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(233, 30, 140, 0.3);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideToast 0.3s ease;
}

@keyframes slideToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Print Only Styles */
@media print {
  body * {
    visibility: hidden;
  }
  .printable-bill, .printable-bill * {
    visibility: visible;
  }
  .printable-bill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
  }
}

/* ── Sales Tax Toggle ───────────────────────────────────────── */
.tax-toggle {
  display: flex;
  margin-top: 8px;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
}

.tax-toggle input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  margin: 0;
  border-radius: 4px;
  border: 1px solid rgba(233, 30, 140, 0.5);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.tax-toggle input[type="checkbox"]:checked {
  background: var(--primary-magenta);
  border-color: var(--magenta-glow);
}

.tax-toggle input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}

.tax-toggle input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--cyan-accent);
  outline-offset: 2px;
}

.tax-toggle label {
  cursor: pointer;
  user-select: none;
}

.glass-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Accessibility: honour the OS "reduce motion" setting ───── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
