/* ==========================================================================
   হিসাব খাতা - কম্পোনেন্ট ও ইন্টারফেস উপাদান (Components & UI Elements)
   ========================================================================== */

/* Summary Grid & Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card.full-width {
  grid-column: span 2;
}

.stat-card.income {
  border-left: 5px solid var(--income);
  background: linear-gradient(145deg, var(--bg-surface), var(--income-bg));
}

.stat-card.expense {
  border-left: 5px solid var(--expense);
  background: linear-gradient(145deg, var(--bg-surface), var(--expense-bg));
}

.stat-card.profit {
  border-left: 5px solid var(--primary);
  background: linear-gradient(135deg, #064e3b, #047857);
  color: white;
}

body.dark-mode .stat-card.income {
  background: linear-gradient(145deg, #0a1711, #030805);
  border: 1px solid #143525;
  border-left: 5px solid var(--income);
}

body.dark-mode .stat-card.expense {
  background: linear-gradient(145deg, #1a0b0b, #0a0404);
  border: 1px solid #381616;
  border-left: 5px solid var(--expense);
}

body.dark-mode .stat-card.profit {
  background: linear-gradient(135deg, #053b27, #021a11);
  border: 1px solid #0d5f3f;
  border-left: 5px solid #10b981;
}

body.dark-mode .stat-card.bank {
  background: linear-gradient(145deg, #0a1120, #04070e);
  border: 1px solid #172847;
  border-left: 5px solid var(--bank);
}

body.dark-mode .stat-card.due {
  background: linear-gradient(145deg, #1b1307, #0a0702);
  border: 1px solid #3b2c0f;
  border-left: 5px solid var(--warning);
}

.stat-card.profit .stat-label,
.stat-card.profit .stat-sub {
  color: #a7f3d0;
}

.stat-card.profit .stat-number {
  color: #ffffff;
}

.stat-card.bank {
  border-left: 5px solid var(--bank);
  background: linear-gradient(145deg, var(--bg-surface), var(--bank-bg));
}

.stat-card.due {
  border-left: 5px solid var(--warning);
  background: linear-gradient(145deg, var(--bg-surface), var(--warning-bg));
}

/* Voice Assistant Banner */
.voice-assistant-banner {
  background: linear-gradient(135deg, #065f46, #047857);
  color: white;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.25);
  cursor: pointer;
  border: 1px solid rgba(52, 211, 153, 0.3);
  transition: all 0.25s ease;
}

.voice-assistant-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(4, 120, 87, 0.35);
  background: linear-gradient(135deg, #047857, #059669);
}

.voice-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.voice-wave-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  animation: pulse-wave 2s infinite ease-in-out;
}

@keyframes pulse-wave {
  0%, 100% { transform: scale(1); background: rgba(255, 255, 255, 0.2); }
  50% { transform: scale(1.08); background: rgba(255, 255, 255, 0.35); }
}

.voice-banner-text h4 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
}

.voice-banner-text p {
  font-size: 0.82rem;
  color: #d1fae5;
  line-height: 1.2;
}

.voice-play-pill {
  flex-shrink: 0;
  background: #ffffff !important;
  color: #065f46 !important;
  font-weight: 700 !important;
  border-radius: var(--radius-full) !important;
  padding: 8px 14px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.dark-mode .voice-assistant-banner {
  background: linear-gradient(135deg, #043b2c, #02261c);
  border-color: #0d5f3f;
}
body.dark-mode .voice-play-pill {
  background: #34d399 !important;
  color: #000000 !important;
}

.voice-btn {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5) !important;
  color: #059669 !important;
  border-color: #10b981 !important;
}
body.dark-mode .voice-btn {
  background: #062b1e !important;
  color: #34d399 !important;
  border-color: #059669 !important;
}

.stat-card.purple {
  border-left: 5px solid var(--purple);
  background: linear-gradient(145deg, var(--bg-surface), var(--purple-bg));
}

.stat-card.cyan {
  border-left: 5px solid #06b6d4;
  background: linear-gradient(145deg, var(--bg-surface), #ecfeff);
}

body.dark-mode .stat-card.purple {
  background: linear-gradient(145deg, #180b26, #0c0514);
  border: 1px solid #351854;
  border-left: 5px solid var(--purple);
}

body.dark-mode .stat-card.cyan {
  background: linear-gradient(145deg, #081a20, #040e11);
  border: 1px solid #103440;
  border-left: 5px solid #06b6d4;
}

.badge-purple {
  background: var(--purple-bg);
  color: var(--purple);
}

/* Distinct Colorful Bank Account Cards */
.bank-card-islami {
  border-left: 5px solid #10b981 !important;
  background: linear-gradient(145deg, var(--bg-surface), #f0fdf4) !important;
}
.bank-card-islami .item-avatar { background: #dcfce7 !important; color: #15803d !important; }

.bank-card-sonali {
  border-left: 5px solid #f59e0b !important;
  background: linear-gradient(145deg, var(--bg-surface), #fffbeb) !important;
}
.bank-card-sonali .item-avatar { background: #fef3c7 !important; color: #b45309 !important; }

.bank-card-brac {
  border-left: 5px solid #2563eb !important;
  background: linear-gradient(145deg, var(--bg-surface), #eff6ff) !important;
}
.bank-card-brac .item-avatar { background: #dbeafe !important; color: #1d4ed8 !important; }

.bank-card-sanchay {
  border-left: 5px solid #8b5cf6 !important;
  background: linear-gradient(145deg, var(--bg-surface), #faf5ff) !important;
}
.bank-card-sanchay .item-avatar { background: #f3e8ff !important; color: #7e22ce !important; }

/* Dark Mode Bank Cards */
body.dark-mode .bank-card-islami {
  background: linear-gradient(145deg, #0d1a12, #08110b) !important;
  border: 1px solid #1a3826 !important;
  border-left: 5px solid #10b981 !important;
}
body.dark-mode .bank-card-islami .item-avatar { background: #0d2e1b !important; color: #4ade80 !important; }

body.dark-mode .bank-card-sonali {
  background: linear-gradient(145deg, #1f1708, #110c04) !important;
  border: 1px solid #3d2f10 !important;
  border-left: 5px solid #f59e0b !important;
}
body.dark-mode .bank-card-sonali .item-avatar { background: #382806 !important; color: #facc15 !important; }

body.dark-mode .bank-card-brac {
  background: linear-gradient(145deg, #0b1424, #060a12) !important;
  border: 1px solid #172c50 !important;
  border-left: 5px solid #3b82f6 !important;
}
body.dark-mode .bank-card-brac .item-avatar { background: #112040 !important; color: #60a5fa !important; }

body.dark-mode .bank-card-sanchay {
  background: linear-gradient(145deg, #180b26, #0c0514) !important;
  border: 1px solid #351854 !important;
  border-left: 5px solid #a855f7 !important;
}
body.dark-mode .bank-card-sanchay .item-avatar { background: #2e124d !important; color: #c084fc !important; }

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.stat-card.income .stat-icon { background: var(--income-bg); color: var(--income); }
.stat-card.expense .stat-icon { background: var(--expense-bg); color: var(--expense); }
.stat-card.bank .stat-icon { background: var(--bank-bg); color: var(--bank); }
.stat-card.due .stat-icon { background: var(--warning-bg); color: var(--warning); }
.stat-card.profit .stat-icon { background: rgba(255, 255, 255, 0.2); color: #ffffff; }

.stat-number {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Quick Category Shortcut Pills */
.category-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.category-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 3px 8px rgba(5, 150, 105, 0.3);
}

.category-pill i {
  font-size: 1.1rem;
}

/* Sub Nav Pills / Filter Tabs */
.sub-nav-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.sub-nav-tabs::-webkit-scrollbar {
  display: none;
}
.sub-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.sub-tab-btn i {
  font-size: 1.1rem;
}
.sub-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.sub-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

body.dark-mode .sub-tab-btn {
  background: #0d0d0d;
  border-color: #222222;
  color: #a3a3a3;
}
body.dark-mode .sub-tab-btn.active {
  background: var(--primary);
  color: #000000;
  font-weight: 700;
}

/* Brick Stock Cards */
.brick-stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.brick-stock-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.brick-stock-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
body.dark-mode .brick-stock-card {
  background: #0d0d0d;
  border-color: #1f1f1f;
}
.brick-stock-title {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brick-stock-count {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
}
.brick-stock-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Card Lists */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s;
}

body.dark-mode .item-card {
  background: #0d0d0d;
  border-color: #1f1f1f;
}

body.dark-mode .item-card:hover {
  border-color: #333333;
  background: #121212;
}

.item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.item-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.item-avatar.shop { background: #e0e7ff; color: #4338ca; }
.item-avatar.medical { background: #fee2e2; color: #b91c1c; }
.item-avatar.brick { background: #ffedd5; color: #c2410c; }
.item-avatar.staff { background: #f3e8ff; color: #7e22ce; }
.item-avatar.bank { background: #dbeafe; color: #1d4ed8; }
.item-avatar.car { background: #e0f2fe; color: #0369a1; }
.item-avatar.home { background: #dcfce7; color: #15803d; }
.item-avatar.personal { background: #fef9c3; color: #a16207; }

body.dark-mode .item-avatar.shop { background: #181c3a; color: #818cf8; }
body.dark-mode .item-avatar.medical { background: #381212; color: #f87171; }
body.dark-mode .item-avatar.brick { background: #38180c; color: #fb923c; }
body.dark-mode .item-avatar.staff { background: #2e124d; color: #c084fc; }
body.dark-mode .item-avatar.bank { background: #112040; color: #60a5fa; }
body.dark-mode .item-avatar.car { background: #0c283d; color: #38bdf8; }
body.dark-mode .item-avatar.home { background: #0d2e1b; color: #4ade80; }
body.dark-mode .item-avatar.personal { background: #382806; color: #facc15; }

.item-info {
  flex: 1;
  min-width: 0;
}

.item-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

.item-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 2px;
}

.item-right {
  text-align: right;
  flex-shrink: 0;
}

.item-amount {
  font-size: 1.08rem;
  font-weight: 700;
  white-space: nowrap;
}

.item-amount.income { color: var(--income); }
.item-amount.expense { color: var(--expense); }
.item-amount.bank { color: var(--bank); }

.item-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-success { background: var(--income-bg); color: var(--income); }
.badge-danger { background: var(--expense-bg); color: var(--expense); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info { background: var(--bank-bg); color: var(--bank); }

/* Structured Responsive Card Header & Financial Bar */
.item-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.item-header-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.item-header-text {
  flex: 1;
  min-width: 0;
}

.item-financial-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-card-subtle);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
  width: 100%;
}

.item-financial-bar.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 6px;
  text-align: center;
}

.fin-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fin-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.fin-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

body.dark-mode .item-financial-bar {
  background: #141414;
  border: 1px solid #222222;
}

/* Tenant & Staff Action Box */
.card-actions-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  width: 100%;
}

.card-actions-bar .btn {
  padding: 8px 4px;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  border-radius: var(--radius-md);
  text-align: center;
}
.card-actions-bar .btn i {
  font-size: 1.05rem;
  flex-shrink: 0;
}

.btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}
.btn-outline:hover { background: var(--bg-card-subtle); }

.btn-danger {
  background: var(--expense);
  color: white;
}

.btn-success {
  background: var(--income);
  color: white;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* Modals & Dialogs */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
    padding: 20px;
  }
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-surface);
  width: 100%;
  max-width: 580px;
  border-radius: 24px 24px 0 0;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  box-shadow: var(--shadow-xl);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .modal-content {
    border-radius: var(--radius-lg);
    transform: scale(0.95);
  }
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .modal-overlay.open .modal-content {
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  background: var(--bg-card-subtle);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

/* Form Styles */
.form-group {
  margin-bottom: 14px;
}

body.dark-mode .modal-content {
  background: #0a0a0a;
  border: 1px solid #222222;
}

body.dark-mode .form-control {
  background: #111111;
  border-color: #262626;
  color: #ffffff;
}

body.dark-mode .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.25);
}

body.dark-mode select.form-control option {
  background: #111111;
  color: #ffffff;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Tenant & Staff Action Box */
.card-actions-bar {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
}

.card-actions-bar .btn {
  flex: 1;
}

/* Detailed Overview Chart Card & Analytics Section */
.analytics-charts-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 992px) {
  .analytics-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

.chart-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.chart-card:hover {
  box-shadow: var(--shadow-md);
}

.income-analytics-card {
  border-top: 4px solid var(--income);
}

.expense-analytics-card {
  border-top: 4px solid var(--expense);
}

body.dark-mode .income-analytics-card {
  background: #0d1410;
  border-color: #1a3325;
  border-top: 4px solid var(--income);
}

body.dark-mode .expense-analytics-card {
  background: #140d0d;
  border-color: #381a1a;
  border-top: 4px solid var(--expense);
}

.chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.chart-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.chart-container {
  position: relative;
  height: 220px;
  width: 100%;
  margin-bottom: 12px;
}

/* Category Legend Breakdown List */
.chart-legend-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.chart-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}

.legend-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}

.legend-name {
  font-weight: 600;
  color: var(--text-main);
}

.legend-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-amount {
  font-weight: 700;
}

.legend-pct {
  font-size: 0.78rem;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  font-weight: 600;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.empty-state p {
  font-size: 0.95rem;
}

/* Receipt Slip Box */
.receipt-slip {
  background: white;
  color: #111;
  padding: 24px;
  border-radius: 12px;
  border: 2px dashed #94a3b8;
  font-family: var(--font-family);
  margin-bottom: 16px;
}

.receipt-header {
  text-align: center;
  border-bottom: 2px solid #334155;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.receipt-title {
  font-size: 1.3rem;
  font-weight: 800;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.95rem;
}

.receipt-row.total {
  border-top: 2px solid #000;
  border-bottom: 2px double #000;
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 8px;
  padding: 8px 0;
}

/* ==========================================================================
   স্মার্ট তাগাদা ও নোটিফিকেশন সেন্টার (Notification & Reminders)
   ========================================================================== */
.notif-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.notif-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.notif-item.urgent {
  border-left: 5px solid #ef4444;
  background: linear-gradient(145deg, var(--bg-surface), rgba(239, 68, 68, 0.05));
}

.notif-item.warning {
  border-left: 5px solid #f59e0b;
  background: linear-gradient(145deg, var(--bg-surface), rgba(245, 158, 11, 0.05));
}

.notif-item.info {
  border-left: 5px solid #3b82f6;
  background: linear-gradient(145deg, var(--bg-surface), rgba(59, 130, 246, 0.05));
}

.notif-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.notif-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.notif-tag {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.notif-tag.rent { background: #e0e7ff; color: #3730a3; }
.notif-tag.brick { background: #ffedd5; color: #9a3412; }
.notif-tag.staff { background: #f3e8ff; color: #6b21a8; }

body.dark-mode .notif-tag.rent { background: #1e1b4b; color: #a5b4fc; }
body.dark-mode .notif-tag.brick { background: #431407; color: #fdba74; }
body.dark-mode .notif-tag.staff { background: #3b0764; color: #d8b4fe; }

.notif-item-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.notif-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.notif-btn-action {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.notif-btn-action.whatsapp {
  background: #25D366;
  color: #ffffff;
  border: none;
}

.notif-btn-action.call {
  background: #2563eb;
  color: #ffffff;
  border: none;
}

.notif-btn-action.pay {
  background: #059669;
  color: #ffffff;
  border: none;
}

/* ==========================================================================
   ডেডিকেটেড মোবাইল স্ক্রিন হিরো কার্ডস (Dedicated Screen Hero Cards)
   ========================================================================== */
.screen-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.screen-hero-card.rent-hero {
  border-left: 5px solid #059669;
  background: linear-gradient(135deg, var(--bg-surface) 60%, #f0fdf4);
}

.screen-hero-card.staff-hero {
  border-left: 5px solid #8b5cf6;
  background: linear-gradient(135deg, var(--bg-surface) 60%, #faf5ff);
}

.screen-hero-card.expense-hero {
  border-left: 5px solid #ef4444;
  background: linear-gradient(135deg, var(--bg-surface) 60%, #fef2f2);
}

body.dark-mode .screen-hero-card.rent-hero {
  background: linear-gradient(135deg, #091510 50%, #030805);
  border: 1px solid #143525;
  border-left: 5px solid #10b981;
}

body.dark-mode .screen-hero-card.staff-hero {
  background: linear-gradient(135deg, #120c1f 50%, #06040a);
  border: 1px solid #2e1d4d;
  border-left: 5px solid #a78bfa;
}

body.dark-mode .screen-hero-card.expense-hero {
  background: linear-gradient(135deg, #170a0a 50%, #080303);
  border: 1px solid #3d1717;
  border-left: 5px solid #f87171;
}

.hero-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.hero-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.hero-action-btn {
  border-radius: var(--radius-full) !important;
  padding: 6px 14px !important;
  font-size: 0.85rem !important;
  flex-shrink: 0;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}

.hero-stat-col {
  display: flex;
  flex-direction: column;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.hero-stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.hero-stat-value.text-success { color: var(--income) !important; }
.hero-stat-value.text-danger { color: var(--expense) !important; }
.hero-stat-value.text-primary { color: var(--primary) !important; }

/* Header Back Button for Mobile Native feel */
.header-back-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 4px 6px 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.header-back-btn:active {
  transform: scale(0.9);
}

/* Enhanced Tab Transitions */
.tab-pane {
  animation: slideFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   অ্যাপল ভিশন ওএস ও আইওএস সুপার মডার্ন অথেন্টিকেশন পোর্টাল
   (Apple VisionOS & iOS 18 Super Modern Authentication Suite)
   ========================================================================== */
.corp-auth-overlay {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.corp-auth-overlay.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.03);
}

/* অ্যাপল অরোরা ব্লেন্ড গ্লো (সম্পূর্ণ শ্যাডো ও গ্লো মুক্ত) */
.apple-aurora-glow {
  display: none !important;
}

/* মূল ফ্রস্টেড কার্ড */
.apple-auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  margin: auto;
  background: #151821;
  border: 1px solid #282d3b;
  border-radius: 26px;
  padding: 18px 18px 14px;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  animation: appleCardEnter 0.25s ease-out;
}

@keyframes appleCardEnter {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* অ্যাপল এক্সিকিউটিভ হেডার ও মেটালিক আইকন */
.apple-header-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
  width: 100%;
}

.apple-avatar-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apple-avatar-icon {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: #202533;
  border: 1px solid #333a4c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  box-shadow: none !important;
}

.apple-avatar-halo {
  display: none !important;
}

.apple-user-name {
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Hind Siliguri", sans-serif;
  text-shadow: none !important;
}

.apple-user-tag {
  margin: 2px 0 0;
}

.apple-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #1e2433;
  border: 1px solid #2e3648;
  color: #93c5fd;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: none !important;
}

/* সেগমেন্টেড কন্ট্রোল */
.apple-segmented-control {
  width: 100%;
  background: #1b1f2b;
  border: 1px solid #2a3040;
  border-radius: 999px;
  padding: 2px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 10px;
  box-shadow: none !important;
}

.apple-segment {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 6px 2px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
  font-family: inherit;
  box-shadow: none !important;
}

.apple-segment:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.apple-segment.active {
  background: #2f3647;
  color: #ffffff;
  box-shadow: none !important;
}

/* স্ট্যাটাস টোস্ট */
.apple-status-toast {
  width: 100%;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: 10px;
  padding: 5px 8px;
  font-size: 0.74rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
  box-shadow: none !important;
}

.apple-status-toast.success {
  background: rgba(0, 113, 227, 0.15);
  border-color: rgba(0, 113, 227, 0.35);
  color: #93c5fd;
  box-shadow: none !important;
}

/* মোড কন্টেইনার */
.apple-mode-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* পাসকোড ডটস */
.apple-passcode-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.apple-pin-input {
  width: 44px;
  height: 48px;
  background: #1b1f2b;
  border: 1.5px solid #2e3547;
  border-radius: 12px;
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  box-shadow: none !important;
  transition: all 0.15s ease;
}

.apple-pin-input:focus {
  border-color: #0071e3;
  background: #222736;
  box-shadow: none !important;
}

.apple-pin-input.filled {
  border-color: #3b445a;
  background: #252b3b;
}

.apple-pin-input.error {
  border-color: #ef4444 !important;
  box-shadow: none !important;
}

.apple-pin-subaction {
  margin-bottom: 6px;
}

.apple-text-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
  box-shadow: none !important;
}

.apple-text-link:hover {
  color: #ffffff;
}

/* আইওএস ক্লাসিক রাউন্ড কিপ্যাড (Ultra-Responsive & Perfectly Proportioned) */
.apple-keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 14px;
  max-width: 228px;
  margin: 0 auto;
}

.apple-key-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #202430;
  border: 1px solid #2c3242;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  box-shadow: none !important;
  transition: all 0.1s ease;
  touch-action: manipulation;
  padding: 0;
}

.apple-key-btn:hover {
  background: #292f3d;
  border-color: #394255;
  box-shadow: none !important;
}

.apple-key-btn:active {
  background: #373e50;
  transform: scale(0.93);
  box-shadow: none !important;
}

.apple-key-btn .key-main {
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  text-shadow: none !important;
}

.apple-key-btn .key-sub {
  font-size: 0.46rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 1;
  text-shadow: none !important;
  margin-top: 1px;
}

.apple-key-btn.key-utility {
  background: transparent;
  border-color: transparent;
  box-shadow: none !important;
}

.apple-key-btn.key-utility:hover {
  background: rgba(255, 255, 255, 0.08);
}

.apple-key-btn.key-utility:active {
  background: rgba(255, 255, 255, 0.18);
}

.key-utility-text {
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

/* পাসওয়ার্ড ফর্ম */
.apple-password-form {
  width: 100%;
  background: #1a1e2a;
  border: 1px solid #2b3242;
  border-radius: 20px;
  padding: 16px 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: none !important;
}

.apple-input-group {
  margin-bottom: 12px;
  width: 100%;
}

.apple-input-box {
  display: flex;
  align-items: center;
  background: #151822;
  border: 1px solid #2e3547;
  border-radius: 14px;
  padding: 4px 12px;
  box-shadow: none !important;
  transition: all 0.15s ease;
}

.apple-input-box:focus-within {
  border-color: #0071e3;
  background: #1c202d;
  box-shadow: none !important;
}

.apple-field-icon {
  font-size: 1.15rem;
  color: #93c5fd;
  margin-right: 8px;
}

.apple-text-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  padding: 8px 0;
  font-family: inherit;
  box-shadow: none !important;
}

.apple-text-field::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.82rem;
}

.apple-eye-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apple-input-subtext {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 6px;
}

.apple-input-subtext strong {
  color: #93c5fd;
}

.apple-primary-btn {
  width: 100%;
  background: #0071e3;
  border: 1px solid #0071e3;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: none !important;
  transition: all 0.15s ease;
  font-family: inherit;
}

.apple-primary-btn:hover {
  background: #0077ed;
  box-shadow: none !important;
}

.apple-primary-btn:active {
  transform: scale(0.98);
}

/* ফেস আইডি / টাচ আইডি বক্স */
.apple-faceid-box {
  width: 100%;
  background: #1a1e2a;
  border: 1px solid #2b3242;
  border-radius: 20px;
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  margin: 0;
  box-shadow: none !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.apple-faceid-box:hover {
  background: #212735;
  border-color: #0071e3;
  box-shadow: none !important;
}

.apple-faceid-bracket-wrapper {
  position: relative;
  width: 58px;
  height: 58px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apple-faceid-glyph {
  font-size: 34px;
  color: #38bdf8;
  transition: transform 0.2s ease;
}

.faceid-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: #38bdf8;
  border-style: solid;
  border-width: 0;
}

.faceid-corner.top-left {
  top: 0;
  left: 0;
  border-top-width: 2px;
  border-left-width: 2px;
  border-top-left-radius: 5px;
}

.faceid-corner.top-right {
  top: 0;
  right: 0;
  border-top-width: 2px;
  border-right-width: 2px;
  border-top-right-radius: 5px;
}

.faceid-corner.bottom-left {
  bottom: 0;
  left: 0;
  border-bottom-width: 2px;
  border-left-width: 2px;
  border-bottom-left-radius: 5px;
}

.faceid-corner.bottom-right {
  bottom: 0;
  right: 0;
  border-bottom-width: 2px;
  border-right-width: 2px;
  border-bottom-right-radius: 5px;
}

.faceid-action-btn {
  max-width: 240px;
  padding: 9px 14px;
  font-size: 0.82rem;
  box-shadow: none !important;
  filter: none !important;
}

/* ফুটার ও সুইচ */
.apple-footer {
  width: 100%;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #232838;
}

.apple-remember-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  margin-bottom: 6px;
  user-select: none;
}

.apple-remember-label input {
  display: none;
}

.apple-switch-slider {
  position: relative;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  transition: all 0.25s ease;
}

.apple-switch-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-remember-label input:checked + .apple-switch-slider {
  background: #0071e3;
}

.apple-remember-label input:checked + .apple-switch-slider::after {
  transform: translateX(16px);
}

.apple-help-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.apple-hint-badge {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.apple-hint-badge strong {
  color: #93c5fd;
}

.apple-link-btn {
  background: none;
  border: none;
  color: #38bdf8;
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.2s ease;
}

.apple-link-btn:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* রেসপনসিভ মোবাইল অ্যাডাপটেশন */
@media (max-width: 480px) {
  .corp-auth-overlay {
    padding: 12px;
  }

  .apple-auth-card {
    padding: 26px 20px 20px;
    border-radius: 30px;
  }

  .apple-pin-input {
    width: 46px;
    height: 52px;
    font-size: 1.5rem;
  }

  .apple-keypad-grid {
    gap: 10px 14px;
    max-width: 250px;
  }

  .apple-key-btn {
    width: 64px;
    height: 64px;
  }
}


/* ==========================================================================
   অ্যাপ সেটিংস ও কন্ট্রোল সেন্টার (Settings & Control Modal Styling)
   ========================================================================== */
.settings-modal-body {
  padding: 4px 0;
}

.settings-tab-section {
  animation: slideFadeIn 0.2s ease-out;
}

.settings-group-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

body.dark-mode .settings-group-card {
  background: #141414;
  border-color: #262626;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.settings-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* টগল সুইচ (Toggle Switch) */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.25s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

body.dark-mode .toggle-slider {
  background-color: #333333;
}

body.dark-mode .toggle-switch input:checked + .toggle-slider {
  background-color: var(--income);
}

/* ==========================================================================
   ডেডিকেটেড সেটিংস পেজ স্টাইলিং (Dedicated Settings Page Layout & Cards)
   ========================================================================== */
.screen-hero-card.settings-hero {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
  border-color: rgba(52, 211, 153, 0.35);
}

body.dark-mode .screen-hero-card.settings-hero {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
  border-color: rgba(52, 211, 153, 0.2);
}

.settings-page-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.settings-page-card:hover {
  box-shadow: var(--shadow-md);
}

body.dark-mode .settings-page-card {
  background: #141414;
  border-color: #262626;
}

.settings-page-header {
  padding: 16px 18px;
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 14px;
}

body.dark-mode .settings-page-header {
  background: #1c1c1c;
  border-bottom-color: #262626;
}

.settings-page-header i {
  font-size: 1.85rem;
  flex-shrink: 0;
}

.settings-page-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.settings-page-header p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
}

.settings-page-body {
  padding: 18px;
}

.settings-control-list {
  padding: 8px 18px;
}

.settings-control-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.settings-control-item:last-child {
  border-bottom: none;
}

body.dark-mode .settings-control-item {
  border-bottom-color: #262626;
}

.control-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================================================
   ১. জমি ও সম্পত্তি ব্যবস্থাপনা স্টাইলিং (Land & Real Estate Vault)
   ========================================================================== */
.land-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 5px solid #d97706;
}

.land-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

body.dark-mode .land-card {
  background: #141414;
  border-color: #262626;
  border-left-color: #f59e0b;
}

.land-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.land-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.land-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.land-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.land-tag {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-main);
  font-weight: 500;
}

body.dark-mode .land-tag {
  background: #1c1c1c;
  border-color: #333;
}

.land-tax-status {
  display: flex;
  align-items: center;
}

.med-item-card.taken {
  border-left-color: var(--success);
  background: rgba(16, 185, 129, 0.05);
  opacity: 0.85;
}

body.dark-mode .med-item-card {
  background: #141414;
  border-color: #262626;
  border-left-color: #38bdf8;
}

body.dark-mode .med-item-card.taken {
  background: #091710;
  border-left-color: #10b981;
}

.med-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 2px 0;
}

.med-info p {
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 14px;
}

body.dark-mode .settings-page-header {
  background: #1c1c1c;
  border-bottom-color: #262626;
}

.settings-page-header i {
  font-size: 1.85rem;
  flex-shrink: 0;
}

.settings-page-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.settings-page-header p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
}

.settings-page-body {
  padding: 18px;
}

.settings-control-list {
  padding: 8px 18px;
}

.settings-control-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.settings-control-item:last-child {
  border-bottom: none;
}

body.dark-mode .settings-control-item {
  border-bottom-color: #262626;
}

.control-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================================================
   ১. জমি ও সম্পত্তি ব্যবস্থাপনা স্টাইলিং (Land & Real Estate Vault)
   ========================================================================== */
.land-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 5px solid #d97706;
}

.land-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

body.dark-mode .land-card {
  background: #141414;
  border-color: #262626;
  border-left-color: #f59e0b;
}

.land-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.land-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.land-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.land-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.land-tag {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-main);
  font-weight: 500;
}

body.dark-mode .land-tag {
  background: #1c1c1c;
  border-color: #333;
}

.land-tax-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  margin-top: 10px;
  font-size: 0.86rem;
}

/* ==========================================================================
   ২. ওষুধ ও স্বাস্থ্য ট্র্যাকার স্টাইলিং (Senior Health & Medication)
   ========================================================================== */
.med-item-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
  border-left: 5px solid #0284c7;
}

.med-item-card.taken {
  border-left-color: var(--success);
  background: rgba(16, 185, 129, 0.05);
  opacity: 0.85;
}

body.dark-mode .med-item-card {
  background: #141414;
  border-color: #262626;
  border-left-color: #38bdf8;
}

body.dark-mode .med-item-card.taken {
  background: #091710;
  border-left-color: #10b981;
}

.med-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 2px 0;
}

.med-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.med-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e0f2fe;
  color: #0369a1;
  margin-top: 4px;
}

body.dark-mode .med-time-badge {
  background: #082f49;
  color: #7dd3fc;
}

.med-check-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.med-check-btn:hover {
  transform: scale(1.08);
}

.med-check-btn.checked {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.vitals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.vital-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

body.dark-mode .vital-card {
  background: #141414;
  border-color: #262626;
}

.doc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

body.dark-mode .doc-card {
  background: #141414;
  border-color: #262626;
}

/* ==========================================================================
   ৩. যাকাত ও সদকা স্টাইলিং (Zakat & Charity Planner)
   ========================================================================== */
.zakat-hero-card {
  background: linear-gradient(135deg, #1e1b4b, #312e81, #4338ca);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid #4f46e5;
}

.zakat-hero-card::after {
  content: '☪';
  position: absolute;
  right: 15px;
  bottom: -10px;
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.zakat-asset-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
}

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

/* ==========================================================================
   ৪. ভয়েস ইনপুট ও মাইক্রোফোন স্টাইলিং (Bangla Speech-to-Text)
   ========================================================================== */
.voice-record-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 20px auto;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  transition: transform 0.2s;
}

.voice-record-circle.listening {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  animation: pulseMic 1.5s infinite;
}

@keyframes pulseMic {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 24px rgba(239, 68, 68, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    transform: scale(1);
  }
}

.voice-live-text {
  background: var(--bg-card-subtle);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 1.05rem;
  min-height: 70px;
  color: var(--text-main);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
}

/* ==========================================================================
   ৫. মোবাইল সকল খাতা ও সেবা গ্রিড স্টাইলিং (Mobile Menu Grid Sheet)
   ========================================================================== */
.mobile-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.mobile-menu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mobile-menu-card:active {
  transform: scale(0.95);
  background: var(--bg-card-subtle);
}

.mobile-menu-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin-bottom: 2px;
}

.mobile-menu-icon.bank { background: rgba(59, 130, 246, 0.15); color: #2563eb; }
.mobile-menu-icon.land { background: rgba(16, 185, 129, 0.15); color: #059669; }
.mobile-menu-icon.health { background: rgba(239, 68, 68, 0.15); color: #dc2626; }
.mobile-menu-icon.zakat { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.mobile-menu-icon.expenses { background: rgba(139, 92, 246, 0.15); color: #7c3aed; }
.mobile-menu-icon.settings { background: rgba(100, 116, 139, 0.15); color: #475569; }

.mobile-menu-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.mobile-menu-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* ==========================================================================
   ৬. সকল খাতা ও সেবা হাব ফুল-পেইজ স্টাইলিং (More Services Full Page Hub)
   ========================================================================== */
.more-hub-section {
  margin-bottom: 22px;
}

.more-hub-section-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.more-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

@media (max-width: 600px) {
  .more-hub-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.more-hub-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.more-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.more-hub-card:active {
  transform: scale(0.98);
}

body.dark-mode .more-hub-card {
  background: #141414;
  border-color: #262626;
}

body.dark-mode .more-hub-card:hover {
  border-color: var(--primary);
  background: #181818;
}

.more-hub-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  flex-shrink: 0;
}

.more-hub-icon.bank { background: rgba(59, 130, 246, 0.15); color: #2563eb; }
.more-hub-icon.land { background: rgba(16, 185, 129, 0.15); color: #059669; }
.more-hub-icon.health { background: rgba(239, 68, 68, 0.15); color: #dc2626; }
.more-hub-icon.zakat { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.more-hub-icon.expenses { background: rgba(139, 92, 246, 0.15); color: #7c3aed; }
.more-hub-icon.settings { background: rgba(100, 116, 139, 0.15); color: #475569; }
.more-hub-icon.rent { background: rgba(14, 165, 233, 0.15); color: #0284c7; }
.more-hub-icon.brick { background: rgba(217, 119, 6, 0.15); color: #b45309; }
.more-hub-icon.staff { background: rgba(168, 85, 247, 0.15); color: #9333ea; }

.more-hub-info {
  flex: 1;
  min-width: 0;
}

.more-hub-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.more-hub-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.more-hub-arrow {
  color: var(--text-muted);
  font-size: 1.4rem;
  transition: transform 0.2s;
}

.more-hub-card:hover .more-hub-arrow {
  transform: translateX(4px);
  color: var(--primary);
}

/* ==========================================================================
   স্মার্ট বাংলা অডিও অ্যাসিস্ট্যান্ট প্লেয়ার (Smart Bangla Audio Assistant Player)
   ========================================================================== */
.audio-player-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.audio-avatar-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* সাউন্ড ওয়েভ ভিজ্যুয়ালাইজার */
.audio-waveform-container {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  margin-bottom: 14px;
}

.waveform-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  margin-bottom: 8px;
}

.wave-bar {
  width: 5px;
  height: 8px;
  background: #10b981;
  border-radius: 999px;
  transition: height 0.2s ease;
}

.audio-waveform-container.playing .wave-bar {
  animation: wavePulse 1.2s infinite ease-in-out;
}

.audio-waveform-container.playing .bar-1 { animation-delay: 0.1s; }
.audio-waveform-container.playing .bar-2 { animation-delay: 0.25s; }
.audio-waveform-container.playing .bar-3 { animation-delay: 0.4s; }
.audio-waveform-container.playing .bar-4 { animation-delay: 0.15s; }
.audio-waveform-container.playing .bar-5 { animation-delay: 0.5s; }
.audio-waveform-container.playing .bar-6 { animation-delay: 0.3s; }
.audio-waveform-container.playing .bar-7 { animation-delay: 0.45s; }
.audio-waveform-container.playing .bar-8 { animation-delay: 0.2s; }
.audio-waveform-container.playing .bar-9 { animation-delay: 0.35s; }
.audio-waveform-container.playing .bar-10 { animation-delay: 0.1s; }

@keyframes wavePulse {
  0%, 100% { height: 6px; opacity: 0.4; }
  50% { height: 32px; opacity: 1; }
}

.audio-status-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #10b981;
}

/* স্ক্রিপ্ট রিডার বক্স */
.audio-script-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 16px;
  max-height: 140px;
  overflow-y: auto;
  margin-bottom: 14px;
}

.audio-script-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
  font-weight: 500;
}

/* কুইক ক্যাটাগরি পিলস */
.audio-quick-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
}

.audio-cat-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.audio-cat-pill:hover,
.audio-cat-pill.active {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

/* প্লেয়ার কন্ট্রোলস প্যানেল */
.audio-controls-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.audio-speed-selector {
  display: flex;
  align-items: center;
  gap: 5px;
}

.speed-btn {
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.speed-btn:hover,
.speed-btn.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: #10b981;
}

.audio-playback-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-btn-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: transform 0.15s ease;
}

.audio-btn-circle:active {
  transform: scale(0.92);
}

.audio-btn-circle.secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.audio-btn-circle.primary {
  width: 46px;
  height: 46px;
  background: #10b981;
  color: #ffffff;
  font-size: 1.5rem;
}

.audio-btn-circle.danger {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}


