:root {
  --primary-red: #e52636;
  --primary-red-dark: #b81520;
  --gold: #f2b63b;
  --gold-glow: rgba(242, 182, 59, 0.5);
  --bg-dark: #0b0c10;
  --text-white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
  --input-bg-dark: rgba(255, 255, 255, 0.08);
  --input-border-dark: rgba(255, 255, 255, 0.18);
  --card-glass: rgba(26, 26, 30, 0.82);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==============================================
   DARK THEME LOGIN SCREEN (FULL SCREEN RESPONSIVE)
   ============================================== */
body.login-body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 0 24px;
  position: relative;
}

/* Halftone dots overlays - Full window corners on any screen */
.bg-dots-top-right {
  position: fixed;
  top: 0;
  right: 0;
  width: min(60vw, 600px);
  height: min(60vh, 600px);
  background-image: radial-gradient(circle, #e52636 3.5px, transparent 3.5px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 100% 0%, black 15%, rgba(0,0,0,0.6) 45%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 100% 0%, black 15%, rgba(0,0,0,0.6) 45%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.bg-dots-bottom-left {
  position: fixed;
  bottom: 0;
  left: 0;
  width: min(60vw, 600px);
  height: min(60vh, 600px);
  background-image: radial-gradient(circle, #e52636 3.5px, transparent 3.5px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 0% 100%, black 15%, rgba(0,0,0,0.6) 45%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 0% 100%, black 15%, rgba(0,0,0,0.7) 45%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Login Container */
.login-container {
  width: 100%;
  max-width: 480px;
  padding: 12px 14px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

/* Brand Header */
.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 16px;
}

.logo-badge-container {
  width: 90px;
  height: 90px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.logo-badge-container::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 182, 59, 0.65) 0%, rgba(229, 38, 54, 0.35) 50%, transparent 72%);
  filter: blur(10px);
  z-index: 1;
}

.logo-badge {
  width: 84px;
  height: 84px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 12px rgba(242, 182, 59, 0.65));
}

.brand-text-1 {
  color: var(--gold);
  font-size: 18.5px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.brand-text-2 {
  color: #ffffff;
  font-size: 22.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.25;
  margin-bottom: 4px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.brand-text-3 {
  color: var(--gold);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Glassmorphic Login Card */
.login-card {
  width: 100%;
  background: var(--card-glass);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--input-border-dark);
  border-radius: 26px;
  padding: 30px 24px 28px;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
}

.card-title {
  color: #ffffff;
  font-size: 21px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 18px;
}

.title-line {
  width: 44px;
  height: 3px;
  background-color: var(--primary-red);
  border-radius: 3px;
  margin: 6px auto 24px;
}

.form-group {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon-left {
  position: absolute;
  left: 14px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.input-icon-left svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.input-icon-right {
  position: absolute;
  right: 14px;
  color: #9ca3af;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color 0.2s;
}

.input-icon-right:hover {
  color: #ffffff;
}

.input-icon-right svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.dark-input {
  width: 100%;
  height: 52px;
  background-color: var(--input-bg-dark);
  border: 1px solid var(--input-border-dark);
  border-radius: 13px;
  padding: 0 44px 0 46px;
  color: #ffffff;
  font-size: 15.5px;
  font-family: inherit;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.dark-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.dark-input:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 2px rgba(229, 38, 54, 0.25);
}

.options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 22px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox {
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff;
  transition: all 0.2s;
}

.custom-checkbox.unchecked {
  background-color: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.custom-checkbox.unchecked svg {
  display: none;
}

.custom-checkbox svg {
  width: 12px;
  height: 12px;
  color: #b81520;
  stroke-width: 3.5;
}

.checkbox-text {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.forgot-link {
  color: var(--gold);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}

.forgot-link:hover {
  opacity: 0.85;
}

.btn-primary-red {
  width: 100%;
  height: 52px;
  background: #8b0000;
  border: none;
  border-radius: 9999px;
  color: #ffffff;
  font-size: 17.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(139, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.2s;
}

.btn-primary-red:hover {
  background: #a30814;
  box-shadow: 0 6px 22px rgba(139, 0, 0, 0.55);
}

.btn-primary-red:active {
  transform: scale(0.98);
}

.card-footer-text {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.card-footer-text a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
  transition: opacity 0.2s;
}

.card-footer-text a:hover {
  opacity: 0.85;
}

/* VNeID Electronic Identification Login (matching media_1789378921638.png) */
.vneid-login-action {
  width: 100%;
  margin-top: 22px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s, opacity 0.2s;
}

.vneid-login-action:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

.vneid-login-action:active {
  transform: scale(0.98);
}

.vneid-action-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.vneid-action-line {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.vneid-app-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

/* Bottom Register Prompt (matching media_1789378921638.png) */
.login-register-prompt {
  text-align: center;
  font-size: 15.5px;
  color: #ffffff;
  margin-bottom: 24px;
  font-weight: 500;
}

.login-register-prompt a {
  color: #facc15;
  font-weight: 700;
  text-decoration: none;
  margin-left: 5px;
  transition: opacity 0.2s;
}

.login-register-prompt a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* Login Bottom Navigation (matching media_1789376797112.png) */
.login-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(180deg, rgba(11, 12, 16, 0.75) 0%, rgba(11, 12, 16, 0.98) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-bottom-nav-inner {
  width: 100%;
  max-width: 440px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 12px;
}

.login-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 10px;
  transition: all 0.15s ease;
  user-select: none;
}

.login-nav-item svg {
  color: #f2b63b; /* Gold accent color matching media_1789376797112.png */
  transition: transform 0.15s, color 0.15s;
}

.login-nav-item span {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.2px;
}

.login-nav-item:hover svg {
  transform: scale(1.15);
  color: #ff4d4f;
}

.login-nav-item:hover span {
  color: #ffffff;
}

/* ==============================================
   LIGHT THEME REGISTRATION SCREEN (FULL SCREEN RESPONSIVE)
   ============================================== */
body.register-body {
  background-color: #ffffff;
  color: #111827;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.register-container {
  width: 100%;
  max-width: 480px;
  padding: 36px 20px 40px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.reg-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 18px;
}

.reg-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  margin-bottom: 8px;
}

.reg-brand-title {
  color: var(--primary-red);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.reg-main-title {
  color: #111827;
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 8px;
}

.reg-subtitle {
  color: var(--primary-red);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 16px;
  align-self: flex-start;
  padding-left: 2px;
}

.reg-input-group {
  margin-bottom: 12px;
  width: 100%;
}

.reg-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.light-input {
  width: 100%;
  height: 46px;
  background-color: #ffffff;
  border: 1.5px solid #d9383a;
  border-radius: 8px;
  padding: 0 14px;
  color: #111827;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.light-input.has-right-icon {
  padding-right: 42px;
}

.light-input::placeholder {
  color: #888888;
  font-size: 14px;
}

.light-input:focus {
  border-color: #b81520;
  box-shadow: 0 0 0 2px rgba(217, 56, 58, 0.2);
}

.reg-icon-right {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #71717a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.reg-icon-right svg {
  width: 20px;
  height: 20px;
}

.reg-helper-note {
  font-size: 11.5px;
  color: #4b5563;
  line-height: 1.4;
  margin-top: 4px;
  margin-bottom: 6px;
  padding-left: 2px;
}

.reg-guide-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin: 8px 0 6px;
  padding-left: 2px;
}

.reg-gender-row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 4px 0 12px;
  padding-left: 2px;
}

.gender-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 500;
  color: #111827;
  user-select: none;
}

.custom-radio {
  width: 18px;
  height: 18px;
  border: 2px solid #d9383a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.custom-radio.checked::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #d9383a;
}

/* Bank Selection Dropdown / Modal */
.bank-select-modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bank-select-modal.open {
  display: flex;
}

.bank-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  max-height: 80vh;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.bank-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.bank-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}

.bank-modal-close {
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #4b5563;
}

.bank-search-box {
  margin-bottom: 12px;
  position: relative;
}

.bank-search-input {
  width: 100%;
  height: 42px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}

.bank-list-scroll {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 55vh;
}

.bank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background 0.15s;
}

.bank-item:hover {
  background-color: #fef2f2;
  border-color: #fecaca;
}

.bank-item-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #f3f4f6;
  padding: 2px;
}

.bank-item-info {
  display: flex;
  flex-direction: column;
}

.bank-item-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
}

.bank-item-code {
  font-size: 12px;
  color: #6b7280;
}

/* Registration Commitment Checkbox Box */
.reg-commitment-box {
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0 10px;
}

.commitment-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.commitment-checkbox {
  width: 22px;
  height: 22px;
  border: 1.5px solid #374151;
  border-radius: 4px;
  background-color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: #e52636;
}

.commitment-text {
  font-size: 14px;
  color: #1f2937;
  line-height: 1.45;
  font-weight: 500;
}

.reg-submit-btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(180deg, #e52636 0%, #b81520 100%);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 14px;
  box-shadow: 0 4px 14px rgba(229, 38, 54, 0.35);
  transition: opacity 0.2s, transform 0.1s;
}

.reg-submit-btn:hover {
  opacity: 0.95;
}

.reg-submit-btn:active {
  transform: scale(0.98);
}

.reg-footer-link {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: #4b5563;
}

.reg-footer-link a {
  color: var(--primary-red);
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(20, 20, 24, 0.94);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-notice.success {
  border-left: 4px solid #10b981;
}

.toast-notice.error {
  border-left: 4px solid #ef4444;
}

/* ==============================================
   DASHBOARD SCREEN
 (ENHANCED, BOLD, HIGH CONTRAST)
   ============================================== */
html, body.dashboard-body {
  overflow-x: hidden;
  width: 100%;
}
body.dashboard-body {
  background-color: #1a1a1e;
  background-image: url('./assets/background-C60agDj0.png');
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 100% auto;
  color: #0f172a;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   SIDE DRAWER MENU (matching media_1789382861641.png - slides from right)
   ========================================================================== */
.side-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.side-drawer {
  position: fixed;
  top: 0;
  right: 0; /* Nằm phía bên tay phải */
  bottom: 0;
  width: 290px;
  max-width: 84vw;
  background: #ffffff;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%); /* Slide in from right */
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}

.side-drawer-overlay.open .side-drawer {
  transform: translateX(0);
}

/* Header with dark bokeh graphic and circular emblem */
.drawer-header-banner {
  width: 100%;
  height: 175px;
  background-image: url('./assets/backlogo-XnVZhbKH.png');
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
}

.drawer-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background-color 0.15s, opacity 0.15s;
  z-index: 2;
}

.drawer-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Crimson Welcome Bar */
.drawer-welcome-bar {
  background: #ba1728;
  color: #ffffff;
  text-align: center;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}

/* Menu Items List */
.drawer-menu-list {
  background: #ffffff;
  flex: 1;
  padding: 16px 14px 28px;
  display: flex;
  flex-direction: column;
}

.drawer-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-bottom: 6px;
  transition: background-color 0.15s ease;
  text-align: left;
  font-family: inherit;
}

.drawer-menu-item:hover {
  background-color: #f3f4f6;
}

/* Item 1: Active Card Style matching media_1789382861641.png */
.drawer-menu-item.active-card {
  background-color: #eaedf0;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.drawer-item-icon-box {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #374151;
}

.drawer-item-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #6b7280;
}

.drawer-item-text {
  font-size: 15px;
  font-weight: 500;
  color: #111827;
  letter-spacing: -0.1px;
}

/* Golden Logout Capsule Button */
.drawer-logout-capsule {
  margin-top: 28px;
  width: 100%;
  height: 48px;
  border-radius: 9999px;
  background: #facc15;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.15s, transform 0.1s;
  box-shadow: 0 3px 10px rgba(250, 204, 21, 0.35);
  font-family: inherit;
}

.drawer-logout-capsule:hover {
  background: #eab308;
}

.drawer-logout-capsule:active {
  transform: scale(0.98);
}

/* Full Width Header Bar */
.dash-red-header {
  width: 100%;
  background: linear-gradient(180deg, #99000a 0%, #800007 100%);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.dash-header-inner {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.dash-screen {
  width: 100%;
  max-width: 480px;
  min-height: calc(100vh - 70px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.dash-menu-icon, .dash-bell-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  color: #ffffff;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.dash-menu-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.dash-bell-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.dash-menu-icon:hover, .dash-bell-icon:hover {
  opacity: 0.85;
}

.bell-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #facc15;
  color: #7f1d1d;
  font-size: 11px;
  font-weight: 900;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #99000a;
}

.dash-header-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dash-header-emblem {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5));
}

.dash-header-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Body Content */
.dash-body-content {
  padding: 16px 14px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Cards with Trống Đồng Watermark */
.dash-card {
  background-color: #ffffff;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.profile-card-watermark {
  position: absolute;
  inset: 0;
  background-image: url('./assets/trongdong-B7jFCpOw.png');
  background-position: center;
  background-size: 380px auto;
  background-repeat: no-repeat;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.features-card-watermark {
  position: absolute;
  inset: 0;
  background-image: url('./assets/trongdong-B7jFCpOw.png');
  background-position: center 48%;
  background-size: 380px 380px;
  background-repeat: no-repeat;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.services-card-watermark {
  position: absolute;
  inset: 0;
  background-image: url('./assets/trongdong-B7jFCpOw.png');
  background-position: center 60px;
  background-size: 400px 400px;
  background-repeat: repeat-y;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

/* Card 1: Profile Info */
.profile-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  min-width: 0;
  width: 100%;
}

.profile-avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2.5px solid #b91c1c;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.25);
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  min-width: 0;
  flex: 1;
  word-break: break-word;
}

.profile-tax-code {
  font-size: 15px;
  font-weight: 800;
  color: #000000;
  letter-spacing: 0.2px;
}

.profile-tax-code span {
  font-weight: 900;
  color: #000000;
}

.profile-company-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #000000;
  line-height: 1.35;
}

.profile-company-name span {
  font-weight: 900;
  color: #000000;
}

.profile-owner-label {
  font-size: 13px;
  font-weight: 900;
  color: #b91c1c;
  letter-spacing: 0.3px;
  margin-top: 3px;
}

.profile-owner-name {
  font-size: 17px;
  font-weight: 900;
  color: #b91c1c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Card 2: Features Grid (Quick Actions matching media_1789381477001.png) */
.features-card {
  background-color: #fffdf9;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.features-card-inner {
  position: relative;
  z-index: 1;
  padding: 16px 12px 18px;
}

.features-card-inner .card-section-heading {
  font-size: 15.5px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
  margin-left: 4px;
  letter-spacing: -0.2px;
}

.features-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  text-align: center;
  align-items: start;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
  padding: 2px;
  border-radius: 12px;
  transition: transform 0.15s, background-color 0.15s;
}

.feature-item:active {
  transform: scale(0.96);
}

.feature-icon-box {
  width: 48px;
  height: 38px;
  border-radius: 12px;
  background: #a3130d;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s, filter 0.15s;
}

.feature-item:hover .feature-icon-box {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.feature-label {
  font-size: 12px;
  font-weight: 500;
  color: #111827;
  margin-top: 8px;
  line-height: 1.25;
  text-align: center;
  min-height: 32px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  letter-spacing: -0.1px;
}

/* Card 3: Services Grid (18 items) */
.services-card-inner {
  position: relative;
  z-index: 1;
  padding: 16px 10px 20px;
}

.services-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 6px;
  text-align: center;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
  padding: 6px 3px;
  border-radius: 12px;
  transition: transform 0.15s, background-color 0.15s;
}

.service-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.service-item:active {
  transform: scale(0.96);
}

.service-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
  transition: transform 0.15s, box-shadow 0.15s;
}

.service-icon-box svg {
  width: 22px;
  height: 22px;
  color: #800000;
}

.service-item:hover .service-icon-box {
  transform: scale(1.06);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.service-label {
  font-size: 12.5px;
  font-weight: 500;
  color: #111827;
  margin-top: 6px;
  line-height: 1.25;
  text-align: center;
}

/* Feature Detail Modal */
.feature-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1001;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.feature-modal-overlay.open {
  display: flex;
}

.feature-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 460px;
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.feature-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #f1f5f9;
}

.feature-modal-title {
  font-size: 17.5px;
  font-weight: 800;
  color: #0f172a;
}

.feature-modal-close {
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  color: #475569;
  transition: background 0.15s;
}

.feature-modal-close:hover {
  background: #e2e8f0;
}

.feature-modal-body {
  overflow-y: auto;
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
}

/* Modal Subpage Components */
.modal-form-group {
  margin-bottom: 12px;
}

.modal-form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 5px;
}

.modal-form-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background-color: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s;
}

.modal-form-input:focus {
  border-color: #b91c1c;
  background-color: #ffffff;
}

.modal-form-input[readonly] {
  background-color: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
}

.modal-btn-primary {
  width: 100%;
  height: 44px;
  background: linear-gradient(135deg, #e52636 0%, #b91c1c 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 14px;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.3);
  transition: transform 0.15s, opacity 0.15s;
}

.modal-btn-primary:active {
  transform: scale(0.98);
  opacity: 0.92;
}

/* Bank Selection Grid in Modal */
.bank-grid-modal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
}

.bank-grid-item {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.bank-grid-item:hover, .bank-grid-item.selected {
  border-color: #b91c1c;
  background-color: #fef2f2;
}

.bank-grid-item img {
  height: 32px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 4px;
}

.bank-grid-item span {
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .bank-grid-modal {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .bank-grid-item {
    padding: 6px 2px;
    min-width: 0;
  }
  .bank-grid-item img {
    height: 24px;
  }
  .bank-grid-item span {
    font-size: 9.5px;
  }
}

/* CCCD Upload Box */
.cccd-upload-box {
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background-color: #f8fafc;
  cursor: pointer;
  margin-bottom: 12px;
  transition: border-color 0.15s, background-color 0.15s;
}

.cccd-upload-box:hover {
  border-color: #b91c1c;
  background-color: #fef2f2;
}

.cccd-upload-box svg {
  color: #b91c1c;
}

.cccd-upload-box .upload-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.cccd-upload-box .upload-sub {
  font-size: 12px;
  color: #64748b;
}

/* Notification Item */
.notice-list-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-left: 4px solid #b91c1c;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}

.notice-list-item.read {
  border-left-color: #94a3b8;
}

.notice-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.notice-date {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 3px;
}

.notice-body {
  font-size: 12.5px;
  color: #334155;
  margin-top: 6px;
  line-height: 1.45;
}
