@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;500;700&family=Kanit:wght@300;500;700&display=swap');

*, *::before, *::after, body, button, input, select, textarea {
  font-family: 'Alexandria', 'Kanit', sans-serif !important;
}

:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --primary-light: #42A5F5;
  --primary-pale: #E3F2FD;
  --accent: #00B0FF;
  --white: #ffffff;
  --bg: #F0F6FF;
  --bg2: #E8F1FB;
  --card: rgba(255,255,255,0.92);
  --border: rgba(21,101,192,0.12);
  --text: #1A2B4A;
  --text2: #5680A8;
  --shadow: 0 8px 40px rgba(21,101,192,0.10);
  --shadow-hover: 0 20px 60px rgba(21,101,192,0.18);
  --radius: 20px;
  --radius-sm: 12px;
  --nav-h: 72px;
  transition: background 0.3s, color 0.3s;
}

[data-theme="dark"] {
  --primary: #42A5F5;
  --primary-dark: #90CAF9;
  --primary-light: #BBDEFB;
  --primary-pale: rgba(66, 165, 245, 0.12);
  --accent: #00B0FF;
  --white: #1E293B;
  --bg: #0F172A;
  --bg2: #1E293B;
  --card: rgba(30, 41, 59, 0.95);
  --border: rgba(255, 255, 255, 0.1);
  --text: #F8FAFC;
  --text2: #94A3B8;
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Prompt', 'Sarabun', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}


/* Global Interactive Smoothing */
button, .btn, .nav-item, .card, .kpi-card, .client-card, .nav-bell, .user-avatar, .btn-theme-toggle {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

button:active, .btn:active, .nav-item:active, .nav-bell:active, .btn-theme-toggle:active {
  transform: scale(0.96);
}

.card:hover, .kpi-card:hover, .panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ===== WELCOME INTRO (Premium) ===== */
.welcome-intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at center, #1A2B4A 0%, #0F172A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}

.welcome-intro.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-content {
  text-align: center;
  color: white;
  max-width: 500px;
  padding: 40px;
  animation: introFadeIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes introFadeIn {
  from { opacity: 0; transform: translateY(40px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.intro-logo {
  margin-bottom: 24px;
  filter: drop-shadow(0 10px 25px rgba(21, 101, 192, 0.4));
  animation: introLogoPulse 3s ease-in-out infinite;
}

@keyframes introLogoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 10px 25px rgba(21, 101, 192, 0.4)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 15px 35px rgba(21, 101, 192, 0.6)); }
}

.intro-title {
  font-size: 18px;
  font-weight: 500;
  color: #94A3B8;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.intro-subtitle {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #E3F2FD 0%, #42A5F5 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.intro-motto {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  font-style: italic;
  font-family: 'Sarabun', sans-serif;
}

.intro-loader {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 40px;
  position: relative;
}

.loader-bar {
  position: absolute;
  top: 0; left: 0; height: 100%;
  width: 0;
  background: linear-gradient(90deg, #1565C0, #42A5F5);
  animation: loaderRun 2.5s ease-in-out forwards;
}

@keyframes loaderRun {
  0% { width: 0; }
  20% { width: 30%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

.btn-intro-start {
  padding: 14px 40px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-family: 'Prompt', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0;
  animation: btnReveal 0.5s ease 2.2s forwards;
}

.btn-intro-start:hover {
  background: white;
  color: #0D47A1;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.intro-footer {
  margin-top: 60px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  gap: 15px;
  justify-content: center;
  opacity: 0;
  animation: introFadeIn 1s ease 1s forwards;
}

/* ===== PARTICLES ===== */
.bg-particles {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66,165,245,0.25), transparent);
  animation: floatParticle linear infinite;
}
@keyframes floatParticle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 30px rgba(21,101,192,0.08);
  transition: all 0.3s;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 4px 40px rgba(21,101,192,0.14);
}
.nav-container {
  max-width: 1400px; margin: 0 auto;
  height: 100%; padding: 0 28px;
  display: flex; align-items: center; gap: 32px;
}
.nav-actions-bar {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-bell .notif-dropdown {
  width: 280px;
  max-width: calc(100vw - 24px);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.logo-icon { display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  box-shadow: 0 4px 16px rgba(21,101,192,0.25);
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,100% { box-shadow: 0 4px 16px rgba(21,101,192,0.25); }
  50% { box-shadow: 0 4px 28px rgba(21,101,192,0.45); }
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-size: 18px; font-weight: 700; color: var(--primary-dark); }
.logo-sub { font-size: 11px; font-weight: 400; color: var(--text2); }
.nav-links { display: flex; list-style: none; gap: 4px; margin-left: auto; }
.nav-link {
  display: block; padding: 8px 16px; border-radius: 10px;
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--text2);
  transition: all 0.25s; position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-pale); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 3px; border-radius: 2px; background: var(--primary);
}
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: 16px; }
.btn-logout {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1.5px solid #FFCDD2; background: #FFEBEE; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #C62828;
  transition: all 0.25s;
}
.btn-logout:hover { background: #EF5350; color: white; border-color: #EF5350; transform: scale(1.05); }
.btn-notify {
  position: relative; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--text2);
  transition: all 0.25s;
}
.btn-notify:hover { background: var(--primary-pale); color: var(--primary); }
.notify-badge {
  position: absolute; top: 6px; right: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #EF5350; color: white; font-size: 10px;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.user-info { display: flex; flex-direction: column; line-height: 1.3; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text); }
.user-role { font-size: 11px; color: var(--text2); }

/* ===== MAIN ===== */
.main-content {
  max-width: 1400px; margin: 0 auto;
  padding: calc(var(--nav-h) + 32px) 28px 48px;
  position: relative; z-index: 1;
}
.section { display: none; animation: sectionIn 0.5s ease forwards; }
.section.active { display: block; }
@keyframes sectionIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}
.section-title { font-size: 28px; font-weight: 800; color: var(--primary-dark); }
.section-subtitle { font-size: 14px; color: var(--text2); margin-top: 4px; }
.date-display { display: flex; flex-direction: column; align-items: flex-end; }
.date-display span:first-child { font-size: 15px; font-weight: 600; color: var(--primary); }
.date-display span:last-child { font-size: 22px; font-weight: 700; color: var(--primary-dark); }

/* ===== KPI CARDS ===== */
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 24px; }
.kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; align-items: flex-start; gap: 16px;
  box-shadow: var(--shadow);
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  opacity: 0; animation: cardIn 0.6s ease forwards;
  position: relative; overflow: hidden;
}
.kpi-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.kpi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.kpi-card:hover::before { transform: scaleX(1); }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.kpi-icon {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.kpi-icon.revenue { background: linear-gradient(135deg,#1565C0,#42A5F5); color: white; }
.kpi-icon.taxpayers { background: linear-gradient(135deg,#0277BD,#4FC3F7); color: white; }
.kpi-icon.pending { background: linear-gradient(135deg,#F57F17,#FFD54F); color: white; }
.kpi-icon.collected { background: linear-gradient(135deg,#1B5E20,#66BB6A); color: white; }
.kpi-content { flex: 1; }
.kpi-label { font-size: 12px; color: var(--text2); font-weight: 500; margin-bottom: 4px; }
.kpi-value { font-size: 24px; font-weight: 800; color: var(--text); }
.kpi-change { font-size: 12px; margin-top: 6px; display: flex; align-items: center; gap: 3px; font-weight: 500; }
.kpi-change.positive { color: #2E7D32; }
.kpi-change.negative { color: #F57F17; }
.kpi-chart { display: flex; align-items: flex-end; }

/* ===== CHARTS ROW ===== */
.charts-row { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 24px; }
.chart-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.chart-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.chart-title { font-size: 17px; font-weight: 700; color: var(--text); }
.chart-desc { font-size: 12px; color: var(--text2); margin-top: 2px; }
.chart-legend { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text2); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-dot.blue { background: var(--primary); }
.legend-dot.light-blue { background: var(--primary-light); }
/* Chart canvas wrappers - fixed height so Chart.js doesn't overflow */
.chart-canvas-wrap {
  position: relative;
  height: 240px;
  width: 100%;
}
.chart-canvas-wrap.donut-wrap {
  height: 200px;
}

.donut-legend { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.dl-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.dl-item span:last-child { margin-left: auto; }
.dl-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

/* ===== TABLE ===== */
.table-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.table-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.table-actions { display: flex; align-items: center; gap: 10px; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 14px;
}
.search-box input {
  border: none; background: transparent; outline: none;
  font-family: inherit; font-size: 14px; color: var(--text); width: 180px;
}
.btn-export {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 10px;
  border: 1px solid var(--primary); color: var(--primary);
  background: var(--primary-pale); cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 500;
  transition: all 0.25s;
}
.btn-export:hover { background: var(--primary); color: white; }
.table-wrapper { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 12px 16px; font-size: 12px; font-weight: 600;
  color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border); text-align: left; white-space: nowrap;
}
.data-table td {
  padding: 14px 16px; font-size: 14px; color: var(--text);
  border-bottom: 1px solid var(--border); transition: background 0.2s;
}
.data-table tr:hover td { background: var(--primary-pale); }
.data-table tr:last-child td { border-bottom: none; }
.tag {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: 20px; font-size: 12px; font-weight: 600;
}
.tag.paid { background: #E8F5E9; color: #2E7D32; }
.tag.pending { background: #FFF8E1; color: #F57F17; }
.tag.overdue { background: #FFEBEE; color: #C62828; }

/* ===== CALCULATOR ===== */
.calc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.calc-form-card, .calc-result-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.card-heading {
  font-size: 17px; font-weight: 700; color: var(--primary-dark);
  margin-bottom: 24px; padding-bottom: 14px;
  border-bottom: 2px solid var(--primary-pale);
}
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 8px; }
.form-input, .form-select {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--bg);
  font-family: inherit; font-size: 14px; color: var(--text); outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-input:focus, .form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(66,165,245,0.15);
}
.input-wrapper { position: relative; }
.input-prefix {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 15px; font-weight: 600; color: var(--primary);
}
.input-wrapper .form-input { padding-left: 32px; }
.radio-group { display: flex; gap: 12px; }
.radio-option {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border-radius: 12px; border: 1.5px solid var(--border);
  background: var(--bg); cursor: pointer; font-size: 14px; font-weight: 500;
  transition: all 0.25s;
}
.radio-option.active { border-color: var(--primary); background: var(--primary-pale); color: var(--primary); }
.radio-icon { font-size: 20px; }
.deduction-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.deduction-item label { font-size: 12px; color: var(--text2); display: block; margin-bottom: 4px; }
.form-input-sm {
  width: 100%; padding: 8px 12px; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--bg);
  font-family: inherit; font-size: 13px; color: var(--text); outline: none;
  transition: border-color 0.25s;
}
.form-input-sm:focus { border-color: var(--primary-light); }
.btn-calculate {
  width: 100%; padding: 14px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: white; border: none; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all 0.3s; box-shadow: 0 6px 24px rgba(21,101,192,0.35);
}
.btn-calculate:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(21,101,192,0.45); }
.btn-calculate:active { transform: translateY(0); }

/* Result */
.result-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 200px; gap: 12px; color: var(--text2);
}
.placeholder-icon { font-size: 52px; animation: float 3s ease-in-out infinite; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.result-card-inner { display: flex; flex-direction: column; gap: 12px; }
.res-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-radius: 10px; font-size: 14px;
}
.res-row:nth-child(odd) { background: var(--primary-pale); }
.res-row strong { color: var(--primary-dark); font-weight: 700; }
.res-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: white; font-size: 16px; font-weight: 700; margin-top: 8px;
}
.bracket-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 12px; }
.bracket-table th, .bracket-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.bracket-table th { color: var(--text2); font-weight: 600; font-size: 12px; }
.bracket-table tr.active-bracket td { background: var(--primary-pale); color: var(--primary); font-weight: 600; }

/* ===== PAYMENT ===== */
.payment-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; }
.payment-form-card, .payment-info-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.payment-steps { display: flex; align-items: center; margin-bottom: 32px; }
.p-step { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--text2); }
.p-step.active { color: var(--primary); }
.p-step.done { color: #2E7D32; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid currentColor; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; background: var(--white); transition: all 0.3s;
}
.p-step.active .step-num { background: var(--primary); color: white; border-color: var(--primary); }
.p-step.done .step-num { background: #2E7D32; color: white; border-color: #2E7D32; }
.step-divider { flex: 1; height: 2px; background: var(--border); margin: 0 12px; }
.step-panel { display: none; animation: sectionIn 0.4s ease; }
.step-panel.active { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.step-buttons { display: flex; gap: 12px; margin-top: 24px; }
.btn-next {
  flex: 1; padding: 13px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; border: none; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.25s; box-shadow: 0 4px 20px rgba(21,101,192,0.3);
}
.btn-next:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(21,101,192,0.4); }
.btn-back {
  padding: 13px 20px; border-radius: 12px;
  border: 1.5px solid var(--border); background: transparent;
  color: var(--text2); cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 600;
  transition: all 0.25s;
}
.btn-back:hover { background: var(--bg); }
.tax-amount-display {
  text-align: center; padding: 28px; border-radius: 16px;
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  border: 1px solid rgba(21,101,192,0.15); margin-bottom: 24px;
}
.tax-amount-display p { font-size: 13px; color: var(--text2); }
.big-amount { font-size: 40px; font-weight: 800; color: var(--primary-dark); margin: 8px 0; }
.amount-breakdown { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.ab-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text2); }
.ab-row.total { border-top: 1px solid var(--border); padding-top: 8px; font-weight: 700; color: var(--text); }
.payment-methods { display: flex; gap: 10px; flex-wrap: wrap; }
.pm-option {
  flex: 1; min-width: 90px; padding: 14px 10px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--bg);
  cursor: pointer; text-align: center; font-size: 13px; font-weight: 500;
  transition: all 0.25s;
}
.pm-option.active { border-color: var(--primary); background: var(--primary-pale); color: var(--primary); }
.pm-icon { font-size: 22px; margin-bottom: 4px; }
.confirm-box {
  text-align: center; padding: 28px; border-radius: 16px;
  background: var(--bg); border: 1px solid var(--border); margin-bottom: 24px;
}
.confirm-icon { font-size: 40px; margin-bottom: 12px; }
.confirm-box h3 { font-size: 18px; font-weight: 700; color: var(--text); }
.confirm-box p { font-size: 13px; color: var(--text2); margin-top: 4px; }
.confirm-details { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.cd-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.cd-row span { color: var(--text2); }
.text-primary { color: var(--primary) !important; font-size: 17px !important; }
.btn-pay {
  flex: 1; padding: 13px; border-radius: 12px;
  background: linear-gradient(135deg, #1B5E20, #43A047);
  color: white; border: none; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600;
  transition: all 0.25s; box-shadow: 0 4px 20px rgba(27,94,32,0.3);
}
.btn-pay:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(27,94,32,0.4); }

/* Payment Info */
.bank-info {
  display: flex; gap: 14px; align-items: center; padding: 16px;
  background: var(--primary-pale); border-radius: 14px; margin-bottom: 20px;
}
.bank-logo { font-size: 36px; }
.bank-name { font-size: 15px; font-weight: 700; color: var(--primary-dark); }
.bank-detail, .bank-account { font-size: 12px; color: var(--text2); margin-top: 2px; }
.payment-notice { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.notice-item { display: flex; gap: 10px; font-size: 13px; color: var(--text2); align-items: flex-start; }
.notice-icon { font-size: 16px; flex-shrink: 0; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr-inner {
  width: 140px; height: 140px; padding: 12px;
  background: white; border-radius: 12px;
  border: 2px solid var(--border); display: flex; align-items: center; justify-content: center;
}
.qr-grid { display: grid; grid-template-columns: repeat(10,1fr); gap: 2px; width: 100%; height: 100%; }
.qr-cell { border-radius: 1px; }
.qr-box p { font-size: 12px; color: var(--text2); }

/* ===== HISTORY ===== */
.header-filters { display: flex; gap: 10px; }
.filter-select {
  padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--white); font-family: inherit; font-size: 13px; color: var(--text); outline: none;
}
.history-timeline { display: flex; flex-direction: column; gap: 16px; }
.history-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px 24px;
  display: flex; align-items: center; gap: 20px; box-shadow: var(--shadow);
  transition: all 0.3s; animation: cardIn 0.5s ease forwards;
}
.history-item:hover { transform: translateX(6px); box-shadow: var(--shadow-hover); }
.history-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.history-icon.paid { background: #E8F5E9; }
.history-icon.pending { background: #FFF8E1; }
.history-icon.overdue { background: #FFEBEE; }
.history-info { flex: 1; }
.history-name { font-size: 15px; font-weight: 600; color: var(--text); }
.history-meta { font-size: 12px; color: var(--text2); margin-top: 3px; }
.history-amount { font-size: 18px; font-weight: 800; color: var(--primary-dark); }
.history-date { font-size: 12px; color: var(--text2); text-align: right; }

/* ===== REPORTS ===== */
.reports-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 24px; }
.report-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  cursor: pointer; transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: var(--shadow);
}
.report-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.report-icon { font-size: 36px; margin-bottom: 16px; }
.report-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.report-card p { font-size: 13px; color: var(--text2); }
.report-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; font-size: 12px; color: var(--text2); }
.report-arrow { font-size: 18px; color: var(--primary); transition: transform 0.25s; }
.report-card:hover .report-arrow { transform: translateX(6px); }
.report-stats-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.stats-bars { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.stat-bar-item { margin-bottom: 2px; }
.sb-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.sb-track { height: 10px; background: var(--bg2); border-radius: 20px; overflow: hidden; }
.sb-fill {
  height: 100%; border-radius: 20px; width: 0;
  animation: barFill 1.2s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes barFill { to { width: var(--w); } }

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 12px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-left: 4px solid var(--primary);
  font-size: 14px; color: var(--text);
  animation: toastIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 320px;
}
.toast.success { border-color: #2E7D32; }
.toast.error { border-color: #C62828; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(60px) scale(0.9); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(60px) scale(0.9); }
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: white; border-radius: 24px; padding: 40px;
  text-align: center; max-width: 420px; width: 90%;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  animation: modalIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}
.modal-success-icon { width: 80px; height: 80px; margin: 0 auto 20px; }
.modal-success-icon svg { width: 100%; height: 100%; }
.check-path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: drawCheck 0.8s 0.3s ease forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.modal-box h2 { font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.modal-box p { font-size: 14px; color: var(--text2); }
.receipt-no { margin: 16px 0; padding: 10px 16px; background: var(--primary-pale); border-radius: 8px; font-size: 14px; }
.btn-modal-close {
  padding: 12px 32px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; border: none; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600;
  transition: all 0.25s; margin-top: 8px;
}
.btn-modal-close:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(21,101,192,0.4); }

/* ===== TAX BRACKET TABLE ===== */
.tax-bracket-table { margin-top: 24px; }
.tax-bracket-table h4 { font-size: 14px; font-weight: 600; color: var(--text2); margin-bottom: 10px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .charts-row { grid-template-columns: 1fr; }
  .calc-layout, .payment-layout { grid-template-columns: 1fr; }
  .reports-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 700px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .reports-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 22px; }
}

/* ================================================================
   TAX CONSULTANT v2.0 — Premium UI Styles
================================================================ */
:root {
  --danger:       #C62828;
  --danger-pale:  #FFEBEE;
  --success:      #2E7D32;
  --success-pale: #E8F5E9;
  --warn:         #E65100;
  --warn-pale:    #FFF3E0;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-add {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 12px;
  background: linear-gradient(135deg, #1565C0, #42A5F5);
  color: white; border: none; cursor: pointer;
  font-family: 'Prompt', sans-serif; font-size: 13px; font-weight: 600;
  transition: all 0.25s; box-shadow: 0 4px 18px rgba(21,101,192,0.28);
  white-space: nowrap;
}
.btn-add:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(21,101,192,0.4); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 10px;
  border: 1.5px solid #1565C0; background: #E3F2FD;
  color: #1565C0; font-family: 'Prompt', sans-serif;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.22s;
}
.btn-secondary:hover { background: #1565C0; color: white; }

.btn-save {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 26px; border-radius: 12px;
  background: linear-gradient(135deg, #1565C0, #42A5F5);
  color: white; border: none; cursor: pointer;
  font-family: 'Prompt', sans-serif; font-size: 14px; font-weight: 700;
  transition: all 0.25s; box-shadow: 0 4px 18px rgba(21,101,192,0.28);
}
.btn-save:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(21,101,192,0.4); }

.btn-cancel {
  padding: 12px 22px; border-radius: 12px;
  border: 1.5px solid rgba(21,101,192,0.2); background: white;
  color: #5680A8; cursor: pointer;
  font-family: 'Prompt', sans-serif; font-size: 14px; font-weight: 600;
  transition: all 0.2s;
}
.btn-cancel:hover { background: #F0F6FF; }

.btn-logout {
  width: 40px; height: 40px; border-radius: 11px;
  border: 1.5px solid #FFCDD2; background: #FFEBEE; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #C62828;
  transition: all 0.25s; flex-shrink: 0;
}
.btn-logout:hover { background: #EF5350; color: white; border-color: #EF5350; transform: scale(1.05); }

/* ── Theme Toggle ─────────────────────────────────────────── */
.btn-theme-toggle {
  width: 40px; height: 40px; border-radius: 11px;
  border: 1.5px solid var(--border); background: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--primary);
  transition: all 0.25s; flex-shrink: 0;
}
.btn-theme-toggle:hover { background: var(--primary-pale); transform: scale(1.05); }

[data-theme="dark"] .navbar,
[data-theme="dark"] .sidebar,
[data-theme="dark"] .panel,
[data-theme="dark"] .modal,
[data-theme="dark"] .kpi-card {
  background: var(--card);
  backdrop-filter: blur(20px);
}

/* ── User avatar (navbar) ────────────────────────────────────── */
.user-avatar-wrap { position: relative; flex-shrink: 0; }
button.user-avatar {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 10px; border-radius: 12px;
  border: none; background: transparent; font: inherit; font-family: inherit;
  text-align: left; cursor: pointer; margin: 0; width: 100%;
  transition: background 0.25s;
}
button.user-avatar:hover { background: var(--primary-pale, #E3F2FD); }
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  z-index: 1001;
  padding: 6px;
}
.user-menu-item {
  display: block; width: 100%;
  text-align: left; border: none; background: none;
  font: inherit; font-family: 'Prompt', sans-serif;
  font-size: 13px; font-weight: 500; color: #1A2B4A;
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.user-menu-item:hover {
  background: var(--primary-pale, #E3F2FD);
  color: var(--primary, #1565C0);
}
.avatar-img {
  position: relative;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #1565C0, #42A5F5);
  color: white; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  overflow: hidden;
}
.avatar-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.avatar-img span { position: relative; z-index: 1; line-height: 1; }
.user-info { display: flex; flex-direction: column; line-height: 1.3; }
.user-name { font-size: 13px; font-weight: 600; color: #1A2B4A; }
.user-role { font-size: 11px; color: #5680A8; }
.logo-main { font-size: 17px; font-weight: 800; color: #0D47A1; }
.logo-sub  { font-size: 11px; color: #5680A8; }

/* ── Form fields ─────────────────────────────────────────────── */
.simple-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px; font-weight: 700; color: #5680A8;
  letter-spacing: 0.3px; text-transform: none;
}
.field input,
.field textarea,
.field select {
  padding: 11px 14px; border-radius: 10px;
  border: 1.5px solid rgba(21,101,192,0.15);
  background: #F5F9FF; font-family: 'Prompt', sans-serif;
  font-size: 13px; color: #1A2B4A; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  resize: vertical; width: 100%;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #42A5F5;
  box-shadow: 0 0 0 3px rgba(66,165,245,0.15);
  background: white;
}
.field input::placeholder,
.field textarea::placeholder { color: #B0C8E8; }

.row.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width: 520px) { .row.two-cols { grid-template-columns: 1fr; } }

/* ── Modal (dialog element) ──────────────────────────────────── */
dialog.modal {
  padding: 0;
  border: none;
  border-radius: 24px;
  box-shadow: 0 32px 90px rgba(0,0,0,0.18), 0 0 0 1px rgba(21,101,192,0.07);
  width: 90%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  font-family: 'Prompt', sans-serif;
  /* ── Perfect centering: inset+margin auto is most reliable ── */
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  /* ── Fade + scale animation only, no translate jumps ── */
  animation: modalPop 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
dialog.modal::backdrop {
  background: rgba(13,71,161,0.28);
  backdrop-filter: blur(5px);
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
.modal-head {
  padding: 28px 28px 6px;
  font-size: 19px; font-weight: 800; color: #0D47A1;
}
.modal-body { padding: 16px 28px 6px; }
.modal-foot {
  padding: 16px 28px 26px;
  display: flex; gap: 10px; justify-content: flex-end;
  border-top: 1px solid rgba(21,101,192,0.09); margin-top: 14px;
}

/* ── Panel ───────────────────────────────────────────────────── */
.panel {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(21,101,192,0.12);
  border-radius: 20px; padding: 24px;
  box-shadow: 0 8px 40px rgba(21,101,192,0.09);
}

/* ── KPI cards (dashboard) ───────────────────────────────────── */
.kpi-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(21,101,192,0.12); border-radius: 18px;
  padding: 20px 18px; display: flex; align-items: flex-start; gap: 14px;
  box-shadow: 0 8px 32px rgba(21,101,192,0.09);
  opacity: 0; animation: cardIn 0.5s ease forwards;
  position: relative; overflow: hidden; transition: all 0.3s;
}
.kpi-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3.5px;
  background: linear-gradient(90deg, #1565C0, #42A5F5);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s;
}
.kpi-card:hover { transform: translateY(-5px); box-shadow: 0 20px 56px rgba(21,101,192,0.16); }
.kpi-card:hover::before { transform: scaleX(1); }
@keyframes cardIn {
  from { opacity:0; transform: translateY(24px) scale(0.96); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}
.kpi-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.kpi-icon.revenue   { background: linear-gradient(135deg,#1565C0,#42A5F5); }
.kpi-icon.customers { background: linear-gradient(135deg,#0277BD,#4FC3F7); }
.kpi-icon.products  { background: linear-gradient(135deg,#6A1B9A,#AB47BC); }
.kpi-icon.invoices  { background: linear-gradient(135deg,#1B5E20,#66BB6A); }
.kpi-content { flex: 1; min-width: 0; }
.kpi-label { font-size: 12px; color: #5680A8; font-weight: 500; margin-bottom: 5px; }
.kpi-value { font-size: 28px; font-weight: 800; color: #1A2B4A; line-height: 1; }

/* ── Tags / Status ───────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap;
}
.tag.paid    { background: #E8F5E9; color: #2E7D32; }
.tag.pending { background: #FFF3E0; color: #E65100; }
.tag.overdue { background: #FFEBEE; color: #C62828; }

/* ── Toast notification ──────────────────────────────────────── */
#toast {
  position: fixed; bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9999; padding: 13px 28px; border-radius: 14px;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.14);
  border-left: 4px solid #1565C0;
  font-family: 'Prompt', sans-serif; font-size: 14px; font-weight: 600; color: #1A2B4A;
  opacity: 0; pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s;
  min-width: 220px; text-align: center;
}
#toast.show    { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
#toast.success { border-color: #2E7D32; }
#toast.error   { border-color: #C62828; }

/* ── Sidebar link icon spacing ───────────────────────────────── */
.sidebar-link span:first-child { font-size: 16px; width: 22px; text-align: center; flex-shrink: 0; }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(21,101,192,0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(21,101,192,0.4); }

/* ================================================================
   MOBILE RESPONSIVE — Full Support for Phone & Tablet
================================================================ */

/* ── Hamburger button (mobile only) ─────────────────────────── */
.hamburger-btn {
  display: none;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1.5px solid rgba(21,101,192,0.15);
  background: #E3F2FD; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  flex-shrink: 0;
}
.hamburger-btn span {
  display: block; width: 18px; height: 2px;
  background: #1565C0; border-radius: 2px;
  transition: all 0.3s;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile sidebar overlay ─────────────────────────────────── */
.sidebar-overlay {
  display: none; position: fixed; inset: 0; z-index: 49;
  background: rgba(13,71,161,0.3); backdrop-filter: blur(3px);
}
.sidebar-overlay.show { display: block; }

/* ── Bottom nav (mobile) ─────────────────────────────────────── */
.mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(21,101,192,0.12);
  box-shadow: 0 -4px 24px rgba(21,101,192,0.10);
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  justify-content: space-around; align-items: center;
}
.mob-nav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 12px; border-radius: 10px; border: none; background: none;
  cursor: pointer; font-family: 'Prompt', sans-serif;
  transition: all 0.2s; color: #90A4C8; min-width: 48px;
}
.mob-nav-btn.active { color: #1565C0; background: #E3F2FD; }
.mob-nav-btn .mob-icon { font-size: 20px; line-height: 1; }
.mob-nav-btn .mob-label { font-size: 10px; font-weight: 600; white-space: nowrap; }

/* ── Tablet (max 1024px) ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .deadline-grid { grid-template-columns: 1fr 1fr !important; }
  .report-grid   { grid-template-columns: 1fr !important; }
  .kpi4          { grid-template-columns: 1fr 1fr !important; }
  .page-area     { padding: 24px 20px 60px; }
}

/* ── Mobile (max 768px) ──────────────────────────────────────── */
@media (max-width: 768px) {
  /* Show hamburger, hide sidebar by default */
  .hamburger-btn { display: flex; flex-shrink: 0; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
    z-index: 200;
    box-shadow: 4px 0 32px rgba(21,101,192,0.2);
    top: var(--nav-h);
  }
  .sidebar.open { transform: translateX(0); }

  /* Adjust layout — ใช้ var(--nav-h) รวม safe-area แล้ว */
  .layout { padding-top: var(--nav-h); }
  .page-area {
    margin-left: 0 !important;
    padding: 12px max(12px, env(safe-area-inset-left)) max(88px, calc(72px + env(safe-area-inset-bottom, 0px)))
      max(12px, env(safe-area-inset-right));
    max-width: 100vw;
    box-sizing: border-box;
  }

  /* Navbar — notch: ความสูงรวม = 60px + safe-area (ไม่นับ safe ซ้ำ) */
  .navbar {
    box-sizing: border-box;
    height: calc(60px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
  }
  .nav-container {
    height: 60px;
    padding: 0 max(10px, env(safe-area-inset-left)) 0 max(10px, env(safe-area-inset-right));
    gap: 8px;
  }
  .nav-logo { flex: 1; min-width: 0; }
  .nav-actions-bar { gap: 4px; margin-left: auto; }
  .logo-sub { display: none; }
  .logo-main {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .logo-icon { width: 34px; height: 34px; flex-shrink: 0; }
  .logo-icon svg { width: 28px; height: 28px; }
  .user-info { display: none; }
  #clockDate { display: none !important; }

  .nav-bell { margin-right: 0 !important; }
  .btn-logout {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  button.user-avatar { padding: 4px 6px; }
  .avatar-img { width: 34px; height: 34px; }

  /* Show bottom nav */
  .mobile-bottom-nav {
    display: flex;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }

  /* Hide dev badge (covered by bottom nav) */
  #devBadgeBtn { bottom: 72px; }

  /* KPI — กะทัดรัดให้พอดีจอมือถือ */
  .kpi4 { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .kpi-card { padding: 12px 10px; gap: 10px; border-radius: 14px; }
  .kpi-card:hover { transform: none; }
  .kpi-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 20px; }
  .kpi-label { font-size: 10px; margin-bottom: 3px; line-height: 1.25; }
  .kpi-value { font-size: 20px; }
  .kpi-content { min-width: 0; }

  /* Deadline 1 col */
  .deadline-grid { grid-template-columns: 1fr !important; }

  /* Page header — เต็มความกว้าง ปุ่มกว้างเต็มจอ */
  .page-header { flex-direction: column; align-items: stretch; gap: 10px; }
  .page-title { font-size: 19px; letter-spacing: -0.02em; }
  .page-sub { font-size: 12px; line-height: 1.45; }
  .page-header .btn-add,
  .page-header .btn-secondary {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  /* Panel padding */
  .panel { padding: 16px 14px; }

  /* Calendar smaller */
  .cal-day { min-height: 56px; padding: 4px; }
  .cal-event { font-size: 9px; padding: 1px 3px; }
  .cal-header { font-size: 11px; padding: 6px 2px; }
  .day-num { font-size: 12px; }

  /* Report 1 col */
  .report-grid { grid-template-columns: 1fr !important; }

  /* Calculator tabs scroll */
  .calc-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .calc-tab { flex-shrink: 0; padding: 9px 14px; font-size: 12px; }

  /* Dashboard — กราฟซ้อนแนวตั้งบนมือถือ/แท็บเล็ก */
  .dash-charts-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .dash-chart-panel { padding: 14px 14px 16px; }
  .dash-chart-wrap {
    height: 240px;
    min-height: 200px;
  }

  /* เมนูโปรไฟล์ไม่ล้นขอบจอ */
  .user-menu-dropdown {
    min-width: min(240px, calc(100vw - 20px));
    max-width: calc(100vw - 16px);
  }

  .notif-dropdown {
    max-width: min(280px, calc(100vw - 16px));
    right: 0;
    left: auto;
  }

  #toast {
    bottom: max(96px, calc(84px + env(safe-area-inset-bottom, 0px)));
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    transform: none;
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0 auto;
    animation: toastMobileSlide 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}

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

/* ── Page Transitions ─────────────────────────────────────── */
.page-section {
  animation: pageEnter 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

#toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 12px;
  background: #1A2B4A;
  color: white;
  z-index: 10001;
  display: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  font-size: 14px;
  font-weight: 600;
}

#toast.show {
  display: block;
  animation: toastPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}


@keyframes toastPop {
  0% { opacity: 0; transform: translate(-50%, 60px) scale(0.9); }
  100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* ── Small mobile (max 480px) ────────────────────────────────── */
@media (max-width: 480px) {
  .kpi4 { grid-template-columns: 1fr 1fr !important; }
  .kpi-icon { width: 40px; height: 40px; font-size: 20px; }

  /* Modal full screen on tiny phones */
  dialog.modal {
    width: 96% !important;
    max-width: 96vw !important;
    border-radius: 18px;
  }
  .modal-head { padding: 20px 18px 4px; font-size: 17px; }
  .modal-body { padding: 12px 18px 4px; }
  .modal-foot { padding: 12px 18px 18px; }

  /* Two-col form cols stack */
  .row.two-cols { grid-template-columns: 1fr !important; gap: 12px; }

  .page-area {
    padding: 10px max(10px, env(safe-area-inset-left))
      max(88px, calc(72px + env(safe-area-inset-bottom, 0px))) max(10px, env(safe-area-inset-right));
  }
}

/* ── มือถือแคบมาก: KPI คอลัมน์เดียว ── */
@media (max-width: 400px) {
  .kpi4 { grid-template-columns: 1fr !important; gap: 10px !important; }
}

/* ─── Page-specific overrides ─── */
:root {
  --nav-h: 68px;
}
@media (max-width: 768px) {
  :root {
    --nav-h: calc(60px + env(safe-area-inset-top, 0px));
  }
}
/* Sidebar layout */
.layout { display: flex; min-height: 100vh; padding-top: var(--nav-h); }
.sidebar {
  width: 220px; flex-shrink: 0; position: fixed;
  top: var(--nav-h); left: 0; bottom: 0;
  background: white; border-right: 1px solid var(--border);
  padding: 20px 12px; display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto; z-index: 50;
  box-shadow: 2px 0 20px rgba(21,101,192,0.06);
}
.sidebar-group-label {
  font-size: 10px; font-weight: 700; color: #90A4C8;
  text-transform: uppercase; letter-spacing: 0.8px;
  padding: 10px 10px 4px; margin-top: 6px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 13px; font-weight: 500; color: var(--text2);
  cursor: pointer; text-decoration: none; border: none; background: none;
  width: 100%; font-family: inherit; text-align: left;
  transition: all 0.2s; position: relative;
}
.sidebar-link:hover { background: var(--primary-pale); color: var(--primary); }
.sidebar-link.active { background: var(--primary-pale); color: var(--primary); font-weight: 700; }
.sidebar-link.active::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--primary);
}
.sidebar-badge {
  margin-left: auto; min-width: 20px; height: 20px; border-radius: 10px;
  background: var(--danger); color: white;
  font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.sidebar-badge.warn { background: var(--warn); }
.page-area { margin-left: 220px; padding: 28px 32px 60px; flex: 1; }

/* KPI grid 4-col */
.kpi4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 20px; }

/* Dashboard — welcome + charts (สมดุล ไม่เอียง 2:1) */
.dash-welcome {
  margin-bottom: 18px;
  border-radius: 14px;
  border: 1px solid rgba(21, 101, 192, 0.14);
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fc 50%, #f5f9ff 100%);
  box-shadow: 0 4px 20px rgba(13, 71, 161, 0.06);
}
.dash-welcome__inner {
  padding: 16px 20px;
}
.dash-welcome__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #0d47a1;
  letter-spacing: -0.02em;
}
.dash-welcome__text {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #455a7a;
}
.dash-welcome__hint {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}
.dash-welcome__hint strong { color: #1565c0; font-weight: 700; }

.dash-charts-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 20px;
  align-items: stretch;
}
.dash-chart-panel { padding: 18px 20px 20px; }
.dash-chart-panel__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.dash-chart-panel__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: linear-gradient(135deg, #e3f2fd, #f5f9ff);
  border: 1px solid rgba(21, 101, 192, 0.12);
  flex-shrink: 0;
}
.dash-chart-panel__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text, #1a2b4a);
  letter-spacing: -0.02em;
}
.dash-chart-panel__sub {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--text2, #64748b);
  line-height: 1.4;
}
.dash-chart-wrap {
  position: relative;
  min-height: 248px;
  height: 260px;
  width: 100%;
}
.dash-chart-wrap canvas {
  display: block;
}
.chart-empty {
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(100, 116, 139, 0.35);
  background: linear-gradient(180deg, #fafbfd 0%, #f4f7fb 100%);
}
.chart-empty__icon {
  font-size: 36px;
  margin-bottom: 10px;
  opacity: 0.88;
}
.chart-empty__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #1e293b);
}
.chart-empty__text {
  margin: 0;
  max-width: 260px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text2, #64748b);
}

/* Deadline cards */
.deadline-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 20px; }
.dl-card {
  background: white; border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.dl-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--primary);
}
.dl-card.urgent::before { background: var(--danger); }
.dl-card.soon::before   { background: var(--warn); }
.dl-card.done::before   { background: var(--success); }
.dl-form { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 3px; }
.dl-name { font-size: 12px; color: var(--text2); margin-bottom: 8px; }
.dl-date { font-size: 12px; font-weight: 600; }
.dl-date.urgent { color: var(--danger); }
.dl-date.soon   { color: var(--warn); }
.dl-date.done   { color: var(--success); }
.dl-actions { display: flex; gap: 6px; margin-top: 8px; }
.btn-mark {
  padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600;
  cursor: pointer; border: none; font-family: inherit; transition: all 0.2s;
}
.btn-mark.done { background: var(--success-pale); color: var(--success); }
.btn-mark.done:hover { background: var(--success); color: white; }
.btn-mark.undo { background: #EEE; color: #888; }
.btn-mark.undo:hover { background: #DDD; color: #555; }

/* calendar */
.cal-grid {
  display: grid; grid-template-columns: repeat(7,1fr);
  gap: 2px; background: var(--border); border-radius: 12px; overflow: hidden;
}
.cal-header { background: var(--primary); color: white; text-align: center; padding: 8px 4px; font-size: 12px; font-weight: 600; }
.cal-day {
  background: white; min-height: 80px; padding: 6px; font-size: 11px;
  position: relative; cursor: default;
}
.cal-day.other-month { background: #FAFBFF; color: #C5D5EA; }
.cal-day.today { background: var(--primary-pale); }
.cal-day .day-num { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.cal-day.today .day-num { color: var(--primary); }
.cal-event {
  font-size: 10px; padding: 2px 5px; border-radius: 4px; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.cal-event.tax-form { background: #BBDEFB; color: #0D47A1; }
.cal-event.done     { background: var(--success-pale); color: var(--success); text-decoration: line-through; }

/* Task checklist */
.task-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: white; margin-bottom: 8px; transition: all 0.2s;
}
.task-item:hover { box-shadow: 0 4px 16px rgba(21,101,192,0.08); }
.task-item.done { opacity: 0.55; }
.task-cb { width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer; margin-top: 2px; flex-shrink: 0; }
.task-content { flex: 1; min-width: 0; }
.task-title { font-size: 13px; font-weight: 600; color: var(--text); }
.task-item.done .task-title { text-decoration: line-through; color: var(--text2); }
.task-meta { font-size: 11px; color: var(--text2); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.task-due   { color: var(--warn); }
.task-due.overdue { color: var(--danger); font-weight: 600; }
.task-actions { display: flex; gap: 4px; flex-shrink: 0; }
.task-actions button { padding: 4px 10px; border-radius: 7px; font-size: 11px; font-weight: 600; cursor: pointer; border: none; font-family: inherit; transition: 0.2s; }
.task-actions button.del { background: var(--danger-pale); color: var(--danger); }
.task-actions button.del:hover { background: var(--danger); color: white; }

/* Notes */
.note-item { border: 1px solid var(--border); background: white; border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
.note-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.note-client { font-size: 12px; font-weight: 700; color: var(--primary); }
.note-date { font-size: 11px; color: var(--text2); }
.note-topic { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.note-body { font-size: 13px; color: var(--text2); line-height: 1.6; white-space: pre-wrap; }
.note-del { background: none; border: none; color: #CCC; cursor: pointer; font-size: 16px; transition: color 0.2s; }
.note-del:hover { color: var(--danger); }

/* Calculator tabs */
.calc-tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.calc-tab {
  padding: 9px 18px; border-radius: 10px;
  border: 1.5px solid var(--border); background: white;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text2);
  cursor: pointer; transition: all 0.2s;
}
.calc-tab.active { background: var(--primary); color: white; border-color: var(--primary); }
.calc-panel { display: none; } .calc-panel.active { display: block; }
.calc-result {
  background: var(--primary-pale); border: 1px solid rgba(21,101,192,0.15);
  border-radius: 14px; padding: 20px 22px; margin-top: 18px;
}
.calc-result h3 { font-size: 16px; font-weight: 700; color: var(--primary-dark); margin-bottom: 14px; }
.calc-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-bottom: 1px solid rgba(21,101,192,0.1); }
.calc-row:last-child  { border-bottom: none; }
.calc-row.total { font-weight: 800; font-size: 16px; color: var(--primary-dark); padding-top: 10px; }
.calc-row.tax { color: var(--danger); font-weight: 700; }

/* Client list */
.client-card {
  background: white; border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow); transition: all 0.25s; cursor: pointer; margin-bottom: 10px;
}
.client-card:hover { transform: translateX(4px); box-shadow: var(--shadow-hover); }
.client-avatar {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg,var(--primary),var(--primary-light));
  color: white; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.client-info { flex: 1; min-width: 0; }
.client-name { font-size: 14px; font-weight: 700; color: var(--text); }
.client-tax-id { font-size: 12px; color: var(--text2); font-family: monospace; }
.client-tags { display: flex; gap: 5px; margin-top: 4px; flex-wrap: wrap; }
.client-type-badge {
  padding: 2px 8px; border-radius: 6px; font-size: 10px; font-weight: 600;
  background: var(--primary-pale); color: var(--primary);
}
.client-actions { display: flex; gap: 6px; }

/* Search bar */
.search-bar {
  width: 100%; max-width: 320px;
  padding: 9px 14px 9px 38px; border-radius: 10px;
  border: 1.5px solid var(--border); background: white;
  font-family: inherit; font-size: 13px; color: var(--text); outline: none;
  transition: border-color 0.2s; position: relative;
}
.search-bar:focus { border-color: var(--primary-light); }
.search-wrap { position: relative; display: inline-block; }
.search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #90A4C8; pointer-events: none; }

/* Empty state */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text2); }
.empty-state-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 13px; }

/* Modal */
/* Dialog modal styles handled by style.css */

/* Section page header */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.page-title { font-size: 24px; font-weight: 800; color: var(--primary-dark); }
.page-sub { font-size: 13px; color: var(--text2); margin-top: 3px; }

/* Responsive — handled by style.css mobile section */

/* WHT calc table */
.wht-table { width:100%; border-collapse:collapse; font-size:13px; margin-top:12px; }
.wht-table th { background:var(--bg); padding:8px 12px; text-align:left; color:var(--text2); font-weight:600; }
.wht-table td { padding:8px 12px; border-bottom:1px solid var(--border); }
.wht-table tr:last-child td { border-bottom:none; }
.wht-table .wht-total td { font-weight:800; color:var(--primary-dark); background:var(--primary-pale); }

/* Report */
.report-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.report-card { background:white; border:1px solid var(--border); border-radius:14px; padding:18px 20px; }
.report-card h4 { font-size:14px; font-weight:700; color:var(--text); margin-bottom:10px; }

/* ================================================================
   TEAM MODAL (เกี่ยวกับทีม) + SIDEBAR BRAND CARD
================================================================ */
.team-modal-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 900;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
    max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.team-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.team-modal-card {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55) inset,
    0 24px 48px -12px rgba(15, 23, 42, 0.35);
  width: min(720px, 96vw);
  max-height: min(calc(100dvh - 24px), 900px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: 'Prompt', sans-serif;
  animation: springIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes springIn {
  0% { opacity: 0; transform: scale(0.9) translateY(30px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
}

.team-modal-head {
  position: relative;
  padding: 22px 52px 20px 24px;
  background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 45%, #0d47a1 100%);
  color: #fff;
}
.team-modal-head__text { max-width: 42rem; }
.team-modal-overlay.open .team-modal-eyebrow {
  animation: riseIn 0.36s ease both;
}
.team-modal-overlay.open .team-modal-title {
  animation: riseIn 0.42s ease 0.05s both;
}
.team-modal-overlay.open .team-modal-lead {
  animation: riseIn 0.46s ease 0.09s both;
}
.team-modal-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 8px;
}
.team-modal-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.team-modal-lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}
.team-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.team-modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg);
}

.team-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px 20px 16px;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #eef2f6 0%, #e2e8f0 100%);
}

.tcard {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 28px -8px rgba(15, 23, 42, 0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  --mx: 50%;
  --my: 50%;
  --spot-opacity: 0;
  transform-style: preserve-3d;
}
.tcard::after {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(220px circle at var(--mx) var(--my),
      rgba(255, 255, 255, 0.34),
      rgba(255, 255, 255, 0.1) 35%,
      rgba(255, 255, 255, 0) 70%);
  opacity: var(--spot-opacity);
  transition: opacity 0.25s ease;
}
.team-modal-overlay.open .tcard {
  animation: cardLiftIn 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.team-modal-overlay.open .tcard:nth-child(2) {
  animation-delay: 0.08s;
}
.tcard:hover {
  transform: translateY(-4px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow: 0 18px 40px -10px rgba(13, 71, 161, 0.18);
  --spot-opacity: 1;
}
.tcard__banner { height: 68px; }
.tcard--decha .tcard__banner {
  background: linear-gradient(115deg, #0d47a1 0%, #1565c0 40%, #42a5f5 100%);
}
.tcard--archa .tcard__banner {
  background: linear-gradient(115deg, #1c2e45 0%, #2d4a6f 50%, #3d6fa8 100%);
}
.tcard__body {
  padding: 0 18px 20px;
  text-align: center;
  position: relative;
}
.tcard__avatar {
  width: 84px;
  height: 84px;
  margin: -46px auto 12px;
  border-radius: 50%;
  border: 4px solid #fff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
  background: #fff;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.tcard__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-modal-overlay.open .tcard__avatar {
  animation: avatarPop 0.48s cubic-bezier(0.34, 1.56, 0.64, 1) 0.18s both;
}
.tcard:hover .tcard__avatar {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.2);
}
.tcard__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1565c0;
  background: #e3f2fd;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.tcard:hover .tcard__badge {
  transform: translateY(-1px);
}
.tcard__badge--dev {
  color: #37474f;
  background: #eceff1;
}
.tcard__name {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}
.tcard__role {
  margin: 0 0 12px;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.tcard__desc {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.65;
  color: #475569;
}
.tcard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.tcard__tag {
  font-size: 10px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: #475569;
  border: 1px solid #e2e8f0;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.tcard:hover .tcard__tag {
  transform: translateY(-1px);
  border-color: #cbd5e1;
}

.team-modal-foot {
  padding: 14px 22px 20px;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: #fff;
}
.team-modal-hint {
  margin: 0 0 8px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.5;
}
.team-modal-copy {
  margin: 0;
  font-size: 10px;
  color: #94a3b8;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cardLiftIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes avatarPop {
  0% { transform: scale(0.85); opacity: 0; }
  70% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 640px) {
  .team-modal-card {
    width: min(96vw, 720px);
    max-height: calc(100dvh - 12px);
    border-radius: 18px;
  }
  .team-modal-head {
    padding: 18px 46px 14px 16px;
  }
  .team-modal-title { font-size: 1.15rem; }
  .team-modal-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 12px 20px;
  }
  .tcard__body {
    padding: 0 14px 16px;
  }
  .tcard__desc {
    font-size: 11.5px;
    line-height: 1.55;
    margin-bottom: 12px;
  }
  .team-modal-foot {
    padding: 12px 14px 14px;
  }
  .team-modal-hint {
    font-size: 10px;
    margin-bottom: 6px;
  }
  .team-modal-copy {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-modal-overlay { transition: none; }
  .team-modal-card { animation: none; }
  .tcard { transition: none; }
  .team-modal-overlay.open .tcard { animation: none; }
  .team-modal-overlay.open .team-modal-eyebrow,
  .team-modal-overlay.open .team-modal-title,
  .team-modal-overlay.open .team-modal-lead,
  .team-modal-overlay.open .tcard__avatar { animation: none; }
  .tcard:hover { transform: none; }
  .sidebar-brand-card { transition: none; }
  .sidebar-brand-card:hover { transform: none; }
  .team-fab { animation: none; }
}

/* Legacy sidebar team card removed: replaced by floating team FAB */
button.sidebar-brand-card { display: none !important; }

/* Floating team button (always front on PC + mobile) */
.team-fab {
  position: fixed;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 140;
  border: none;
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Prompt', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #0b3f8f 0%, #1565c0 55%, #42a5f5 100%);
  box-shadow: 0 10px 28px rgba(13, 71, 161, 0.38);
  cursor: pointer;
  animation: teamFabBounce 2.1s ease-in-out infinite;
}
.team-fab:hover {
  transform: translateY(-2px) scale(1.02);
}
.team-fab__avatars {
  display: inline-flex;
  align-items: center;
}
.team-fab__av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: #fff;
}
.team-fab__av + .team-fab__av { margin-left: -9px; }
.team-fab__av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-fab__label { white-space: nowrap; letter-spacing: 0.01em; }
@keyframes teamFabBounce {
  0%, 100% { transform: translateY(0); }
  12% { transform: translateY(-5px); }
  24% { transform: translateY(0); }
  36% { transform: translateY(-2px); }
}

@media (max-width: 768px) {
  .team-fab {
    bottom: max(78px, calc(70px + env(safe-area-inset-bottom, 0px)));
    right: max(10px, env(safe-area-inset-right, 0px));
    padding: 7px 12px 7px 9px;
    font-size: 11px;
  }
  .team-fab__av {
    width: 24px;
    height: 24px;
  }
}

/* ================================================================
   PRINT STYLES FOR 50 Tawi & INVOICE
================================================================ */
@media print {
  body * {
    visibility: hidden;
  }
  #print-wht-cert, #print-wht-cert *, #print-invoice, #print-invoice * {
    visibility: visible;
  }
  #print-wht-cert, #print-invoice {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    font-family: "Sarabun", "Prompt", sans-serif; /* Recommended for official docs */
  }
  
  .print-page {
    width: 210mm;
    min-height: 297mm;
    padding: 20mm;
    margin: 0 auto;
    background: white;
  }

  .print-header { text-align: center; font-weight: bold; font-size: 18px; margin-bottom: 20px; }
  .print-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 13px; }
  .print-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 12px; }
  .print-table th, .print-table td { border: 1px solid #000; padding: 6px; text-align: left; }
  .print-table th { text-align: center; }
  
  .signature-box { display: flex; justify-content: space-between; margin-top: 50px; font-size: 13px; }
  .signature-line { width: 200px; border-bottom: 1px dotted #000; text-align: center; padding-top: 30px; }
}

/* ================================================================
   CUSTOM CURSOR — Premium Glow Cursor
================================================================ */

/* Hide default cursor sitewide */
*, *::before, *::after {
  cursor: none !important;
}

/* Cursor core dot */
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary, #1565C0);
  box-shadow: 0 0 10px 4px rgba(21, 101, 192, 0.7), 0 0 22px 8px rgba(66, 165, 245, 0.35);
  pointer-events: none;
  z-index: 2147483647;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s, background 0.2s, box-shadow 0.2s;
  will-change: transform;
}

/* Cursor ring (outer) */
#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(66, 165, 245, 0.6);
  background: transparent;
  pointer-events: none;
  z-index: 2147483646;
  transform: translate(-50%, -50%);
  transition: width 0.18s cubic-bezier(0.25, 1, 0.5, 1),
              height 0.18s cubic-bezier(0.25, 1, 0.5, 1),
              background 0.2s, border-color 0.2s, opacity 0.2s;
  will-change: transform;
}

/* Hover state — expand ring */
body.cursor-hover #cursor-dot {
  width: 8px; height: 8px;
  background: var(--accent, #00B0FF);
  box-shadow: 0 0 14px 6px rgba(0, 176, 255, 0.7), 0 0 30px 12px rgba(0, 176, 255, 0.3);
}
body.cursor-hover #cursor-ring {
  width: 52px; height: 52px;
  border-color: rgba(0, 176, 255, 0.7);
  background: rgba(0, 176, 255, 0.05);
}

/* Click state */
body.cursor-click #cursor-dot {
  width: 14px; height: 14px;
  background: #42A5F5;
  box-shadow: 0 0 20px 8px rgba(66, 165, 245, 0.8), 0 0 40px 16px rgba(66, 165, 245, 0.4);
}
body.cursor-click #cursor-ring {
  width: 20px; height: 20px;
  border-color: rgba(66, 165, 245, 0.9);
}

/* Trail spark particles */
.cursor-trail {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2147483640;
  transform: translate(-50%, -50%);
  animation: cursorTrailFade 0.55s ease-out forwards;
  will-change: transform, opacity;
}
@keyframes cursorTrailFade {
  0%   { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0;    transform: translate(-50%, -50%) scale(0.1); }
}

/* Dark mode adjustments */
[data-theme="dark"] #cursor-dot {
  background: #42A5F5;
  box-shadow: 0 0 12px 5px rgba(66, 165, 245, 0.8), 0 0 28px 10px rgba(66, 165, 245, 0.4);
}
[data-theme="dark"] #cursor-ring {
  border-color: rgba(66, 165, 245, 0.7);
}

/* Hide cursor on touch/mobile */
@media (hover: none) and (pointer: coarse) {
  #cursor-dot, #cursor-ring { display: none !important; }
  *, *::before, *::after { cursor: auto !important; }
}

/* ── Dialog top-layer: cursor elements inside <dialog> ───────────────────
   Chrome/Edge: position:fixed inside a top-layer dialog is still fixed to
   the viewport IF the dialog doesn't create a new stacking/containing block.
   But some browsers may clip. We use JS offset correction + keep position:fixed.
   The dialog overflow must be visible so cursor can render outside the box. */
dialog {
  overflow: visible !important;  /* allow cursor elements to show outside dialog bounds */
}
dialog #cursor-dot,
dialog #cursor-ring {
  position: fixed !important;    /* keep fixed — JS supplies corrected left/top */
  z-index: 2147483647 !important;
}

/* ── Dialog top-layer: cursor elements inherit fixed positioning correctly ── */
/* When cursor-dot/ring are children of <dialog>, position:fixed still uses
   the viewport as reference — no extra styles needed.
   We just ensure dialog itself hides the system cursor too. */
dialog, dialog * {
  cursor: none !important;
}

/* Hover/click state selectors also apply when cursor is inside a dialog */
dialog.cursor-hover #cursor-dot,
body.cursor-hover #cursor-dot {
  width: 8px; height: 8px;
  background: var(--accent, #00B0FF);
  box-shadow: 0 0 14px 6px rgba(0, 176, 255, 0.7), 0 0 30px 12px rgba(0, 176, 255, 0.3);
}
dialog.cursor-hover #cursor-ring,
body.cursor-hover #cursor-ring {
  width: 52px; height: 52px;
  border-color: rgba(0, 176, 255, 0.7);
  background: rgba(0, 176, 255, 0.05);
}
dialog.cursor-click #cursor-dot,
body.cursor-click #cursor-dot {
  width: 14px; height: 14px;
  background: #42A5F5;
  box-shadow: 0 0 20px 8px rgba(66, 165, 245, 0.8), 0 0 40px 16px rgba(66, 165, 245, 0.4);
}
dialog.cursor-click #cursor-ring,
body.cursor-click #cursor-ring {
  width: 20px; height: 20px;
  border-color: rgba(66, 165, 245, 0.9);
}

/* ================================================================
   NEW CORE FEATURES STYLES (v3.0)
   - Knowledge Base
   - Consult Service
   ================================================================ */

/* Knowledge Base */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 10px;
}

.knowledge-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}

.knowledge-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.knowledge-img {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #eee;
}

.knowledge-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.4));
}

.knowledge-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  z-index: 2;
  text-transform: uppercase;
}

.knowledge-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.knowledge-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.4;
}

.knowledge-excerpt {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-read-more {
  margin-top: auto;
  padding: 10px 0;
  border: none;
  background: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}

.btn-read-more:hover {
  gap: 12px;
}

/* Consult Service */
.consult-welcome-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  border-radius: var(--radius);
  padding: 30px;
  color: white;
  margin-bottom: 30px;
  box-shadow: 0 15px 35px rgba(21, 101, 192, 0.25);
  position: relative;
  overflow: hidden;
}

.consult-welcome-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.consult-welcome-inner {
  display: flex;
  align-items: center;
  gap: 25px;
  position: relative;
  z-index: 2;
}

.consult-icon {
  font-size: 50px;
  background: rgba(255,255,255,0.2);
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.consult-text h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.consult-text p {
  font-size: 15px;
  opacity: 0.9;
  font-family: 'Sarabun', sans-serif;
}

.consult-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  background: var(--card);
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
}

.consult-item:hover {
  background: var(--primary-pale);
}

.consult-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot-pending { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.status-dot-active { background: var(--success); box-shadow: 0 0 10px var(--success); }
.status-dot-completed { background: #94A3B8; }

.consult-meta {
  flex-grow: 1;
}

.consult-topic {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
}

.consult-client-name {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 2px;
}

.consult-time {
  font-size: 12px;
  color: var(--text2);
}

.consult-badge {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-pending { background: var(--warn-pale); color: var(--warn); }
.badge-active { background: var(--success-pale); color: var(--success); }
.badge-completed { background: #F1F5F9; color: #64748B; }

/* Rich Content in Modals */
.content-rich h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 20px 0 10px;
}

.content-rich p {
  margin-bottom: 15px;
}

.content-rich ul, .content-rich ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.content-rich li {
  margin-bottom: 8px;
}

.content-rich b, .content-rich strong {
  color: var(--primary);
}

/* Role-Based Hiding */
body.role-customer .sidebar-group-label:nth-of-type(3),
body.role-customer .sidebar-group-label:nth-of-type(4),
body.role-customer [data-page="clients"],
body.role-customer [data-page="tasks"],
body.role-customer [data-page="notes"],
body.role-customer [data-page="wht-cert"],
body.role-customer [data-page="invoice"],
body.role-customer [data-page="calculator"],
body.role-customer [data-page="reports"] {
  display: none !important;
}

body.role-customer .sidebar-link[data-page="knowledge"],
body.role-customer .sidebar-link[data-page="consult"] {
  display: flex !important;
}

/* Contact Table Styles */
.contact-section {
  margin-top: 30px;
  background: var(--primary-pale, #f0f7ff);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border, rgba(21, 101, 192, 0.1));
}

.contact-table-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-dark, #0d47a1);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-table-title span:first-child {
  background: var(--primary, #1565C0);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.contact-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text, #1a2b4a);
  font-size: 14px;
  min-width: 500px;
}

.contact-table th {
  background: #f8f9fa;
  padding: 14px 16px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text2, #5680a8);
  border-bottom: 2px solid var(--border, rgba(0,0,0,0.05));
  text-align: left;
}

.contact-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border, rgba(0,0,0,0.05));
  font-family: 'Sarabun', sans-serif;
  vertical-align: middle;
}

.contact-table tr:last-child td {
  border-bottom: none;
}

.contact-info-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #f0f7ff;
  color: var(--primary, #1565C0);
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid rgba(21, 101, 192, 0.1);
  font-weight: 600;
}

[data-theme="dark"] .contact-section {
  background: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .contact-table-wrap {
  background: rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .contact-table {
  color: white;
}
[data-theme="dark"] .contact-table-title {
  color: white;
}
[data-theme="dark"] .contact-table th {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}
[data-theme="dark"] .contact-info-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #42A5F5;
  border-color: rgba(255, 255, 255, 0.1);
}






