/* ==========================================================================
   হিসাব খাতা - কম্পোনেন্ট ও ইন্টারফেস উপাদান (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: 14px 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-width: 0;
  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: var(--bg-surface);
}

.stat-card.expense {
  border-left: 5px solid var(--expense);
  background: var(--bg-surface);
}

.stat-card.profit {
  border: 1px solid #0d1546;
  border-left: 5px solid #60a5fa;
  background: #101a57;
  color: white;
  box-shadow: none;
}

body.dark-mode .stat-card.income {
  background: #0d1511;
  border: 1px solid #1a2f22;
  border-left: 5px solid var(--income);
}

body.dark-mode .stat-card.expense {
  background: #180e0e;
  border: 1px solid #331c1c;
  border-left: 5px solid var(--expense);
}

body.dark-mode .stat-card.profit {
  background: #0a1038;
  border: 1px solid #101a57;
  border-left: 5px solid #38bdf8;
  box-shadow: none;
}

body.dark-mode .stat-card.bank {
  background: #0d131f;
  border: 1px solid #1c2b44;
  border-left: 5px solid var(--bank);
}

body.dark-mode .stat-card.due {
  background: #181308;
  border: 1px solid #332711;
  border-left: 5px solid var(--warning);
}

.stat-card.profit .stat-label,
.stat-card.profit .stat-sub {
  color: rgba(255, 255, 255, 0.85);
}

.stat-card.profit .stat-number {
  color: #ffffff;
}

.stat-card.bank {
  border-left: 5px solid var(--bank);
  background: var(--bg-surface);
}

.stat-card.due {
  border-left: 5px solid var(--warning);
  background: var(--bg-surface);
}

/* Voice Assistant Banner */
.voice-assistant-banner {
  background: #101a57;
  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: none;
  cursor: pointer;
  border: 1px solid #0d1546;
  transition: all 0.2s ease;
}

.voice-assistant-banner:hover {
  transform: translateY(-1px);
  box-shadow: none;
  background: #0d1546;
}

.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: #dbeafe;
  line-height: 1.2;
}

.voice-play-pill {
  flex-shrink: 0;
  background: #ffffff !important;
  color: #0a1038 !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: #38bdf8 !important;
  color: #000000 !important;
}

.voice-btn {
  background: linear-gradient(135deg, #eff6ff, #dbeafe) !important;
  color: #101a57 !important;
  border-color: #0284c7 !important;
}
body.dark-mode .voice-btn {
  background: #062b1e !important;
  color: #38bdf8 !important;
  border-color: #101a57 !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 #0284c7 !important;
  background: linear-gradient(145deg, var(--bg-surface), #f0f9ff) !important;
}
.bank-card-islami .item-avatar { background: #e0f2fe !important; color: #0369a1 !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 #101a57 !important;
  background: linear-gradient(145deg, var(--bg-surface), #eff6ff) !important;
}
.bank-card-brac .item-avatar { background: #dbeafe !important; color: #101a57 !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 #0284c7 !important;
}
body.dark-mode .bank-card-islami .item-avatar { background: #0d2e1b !important; color: #38bdf8 !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: clamp(1.2rem, 4.2vw, 1.55rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
}

.stat-card.full-width .stat-number {
  font-size: clamp(1.5rem, 5.2vw, 1.85rem);
}

.stat-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.25;
}

/* 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(16, 26, 87, 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(59, 130, 246, 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: #101a57; }
.item-avatar.car { background: #e0f2fe; color: #0369a1; }
.item-avatar.home { background: #e0f2fe; color: #0369a1; }
.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: #38bdf8; }
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;
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

@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: calc(92dvh - env(safe-area-inset-top, 0px));
  max-height: calc(92vh - env(safe-area-inset-top, 0px));
  overflow-y: auto;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px)) 20px;
  box-shadow: var(--shadow-xl);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-overflow-scrolling: touch;
}

@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(16, 26, 87, 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;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  width: 100%;
}

.card-actions-bar .btn {
  flex: 1 1 auto;
  min-width: calc(50% - 4px);
  max-width: calc(50% - 4px);
  padding: 7px 8px;
  font-size: 0.81rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: var(--radius-sm);
}
.card-actions-bar .btn i {
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* 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: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 0;
}

.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: #101a57;
  color: #ffffff;
  border: none;
}

.notif-btn-action.pay {
  background: #101a57;
  color: #ffffff;
  border: none;
}

.notif-native-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 14px;
}

.notif-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.notif-back-btn:hover {
  background: #eff6ff;
  color: #101a57;
  border-color: #bfdbfe;
}

body.dark-mode .notif-back-btn {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

.notif-header-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.notif-header-sub {
  margin: 2px 0 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.notif-page-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   ন্যাটিভ ফুল-স্ক্রিন মোবাইল নোটিফিকেশন পেজ (100% Solid Opaque Architecture)
   ========================================================================== */
#notificationsModal.modal-overlay {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@media (max-width: 768px) {
  #notificationsModal.notif-native-sheet.modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    z-index: 9999 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  #notificationsModal.notif-native-sheet.modal-overlay.open {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  #notificationsModal .notif-native-content.modal-content {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    box-shadow: none !important;
    overflow: hidden !important;
    transform: none !important;
  }

  body.dark-mode #notificationsModal.notif-native-sheet.modal-overlay,
  body.dark-mode #notificationsModal .notif-native-content.modal-content {
    background: #0f1117 !important;
  }

  #notificationsModal .notif-native-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0;
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
    padding-bottom: 14px;
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 20;
    flex-shrink: 0;
  }

  body.dark-mode #notificationsModal .notif-native-header {
    background: #161b26 !important;
    border-bottom: 1px solid #222736;
  }

  #notificationsModal .notif-page-body {
    flex: 1;
    overflow-y: auto;
    padding-top: 16px;
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    background: #ffffff !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
    -webkit-overflow-scrolling: touch;
  }

  body.dark-mode #notificationsModal .notif-page-body {
    background: #0f1117 !important;
  }

  #notificationsModal .notif-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-left-width: 5px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  }

  #notificationsModal .notif-item.urgent {
    border-left-color: #ef4444 !important;
    background: #ffffff !important;
  }

  #notificationsModal .notif-item.warning {
    border-left-color: #f59e0b !important;
    background: #ffffff !important;
  }

  #notificationsModal .notif-item.info {
    border-left-color: #3b82f6 !important;
    background: #ffffff !important;
  }

  body.dark-mode #notificationsModal .notif-item {
    background: #161b26 !important;
    border: 1px solid #222736 !important;
    border-left-width: 5px !important;
    box-shadow: none !important;
  }

  #notificationsModal .notif-page-body #notificationsList {
    max-height: none !important;
    overflow-y: visible !important;
  }

  #notificationsModal .notif-desktop-close-btn {
    display: none !important;
  }
}

/* ==========================================================================
   ডেডিকেটেড মোবাইল স্ক্রিন হিরো কার্ডস (Dedicated Screen Hero Cards - Solid & Subtle Radius)
   ========================================================================== */
.screen-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.screen-hero-card.rent-hero {
  border: 1px solid #0d1546;
  border-radius: 8px;
  background: #101a57;
  color: #ffffff;
  padding: 18px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.screen-hero-card.staff-hero {
  border: 1px solid var(--border-color);
  border-left: 5px solid #8b5cf6;
  border-radius: 8px;
  background: var(--bg-surface);
}

.screen-hero-card.expense-hero {
  border: 1px solid var(--border-color);
  border-left: 5px solid #ef4444;
  border-radius: 8px;
  background: var(--bg-surface);
}

body.dark-mode .screen-hero-card.rent-hero {
  background: #0a1038;
  border: 1px solid #101a57;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .screen-hero-card.staff-hero {
  background: #0d0d0d;
  border: 1px solid #222222;
  border-left: 5px solid #a78bfa;
}

body.dark-mode .screen-hero-card.expense-hero {
  background: #0d0d0d;
  border: 1px solid #222222;
  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; }

/* Rent hero white text overrides on blue gradient */
.rent-hero .hero-badge { color: #ffffff; }
.rent-hero .hero-title { color: #ffffff; }
.rent-hero .hero-action-btn {
  background: rgba(255,255,255,0.2) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255,255,255,0.45) !important;
}
.rent-hero .hero-stats-row { border-top: 1px solid rgba(255,255,255,0.25); }
.rent-hero .hero-stat-label { color: rgba(255,255,255,0.75); }
.rent-hero .hero-stat-value { color: #ffffff; }
.rent-hero .hero-stat-value.text-success { color: #6ee7b7 !important; }
.rent-hero .hero-stat-value.text-danger { color: #fca5a5 !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, #172554 0%, #0a1038 100%);
  border-color: rgba(56, 189, 248, 0.35);
}

body.dark-mode .screen-hero-card.settings-hero {
  background: linear-gradient(135deg, #022c22 0%, #172554 100%);
  border-color: rgba(56, 189, 248, 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(59, 130, 246, 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: #0284c7;
}

.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(59, 130, 246, 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: #0284c7;
}

.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, #101a57, #101a57);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  margin: 16px auto 14px auto;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16, 26, 87, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

.voice-record-circle i {
  font-size: 2.6rem !important;
  color: #ffffff !important;
  line-height: 1;
  pointer-events: none;
}

.voice-record-circle.listening {
  background: linear-gradient(135deg, #101a57, #0284c7) !important;
  animation: voiceListeningGlow 1.5s infinite ease-in-out !important;
}

@keyframes voiceListeningGlow {
  0% {
    transform: scale(0.97);
    box-shadow: 0 0 0 0 rgba(16, 26, 87, 0.8), 0 0 0 0 rgba(56, 189, 248, 0.5);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 14px rgba(16, 26, 87, 0.2), 0 0 0 28px rgba(56, 189, 248, 0);
  }
  100% {
    transform: scale(0.97);
    box-shadow: 0 0 0 0 rgba(16, 26, 87, 0), 0 0 0 0 rgba(56, 189, 248, 0);
  }
}

.voice-status-listening-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #101a57;
  font-weight: 700;
  font-size: 1rem;
}

body.dark-mode .voice-status-listening-tag {
  color: #38bdf8;
}

.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: #101a57; }
.more-hub-icon.land { background: rgba(59, 130, 246, 0.15); color: #101a57; }
.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, #0284c7, #101a57);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* সাউন্ড ওয়েভ ভিজ্যুয়ালাইজার */
.audio-waveform-container {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 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: #0284c7;
  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: #0284c7;
}

/* স্ক্রিপ্ট রিডার বক্স */
.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: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* প্লেয়ার কন্ট্রোলস প্যানেল */
.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(59, 130, 246, 0.15);
  color: #0284c7;
  border-color: #0284c7;
}

.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: #0284c7;
  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);
}




/* Global Blue Theme Contrast Enforcement */
[style*="background: #101a57"],
[style*="background: #101a57"],
[style*="background: #0a1038"],
[style*="background:#101a57"],
[style*="background:#101a57"],
.bg-primary, .btn-primary {
  color: #ffffff !important;
}



/* Mobile Bottom Navigation Item - Modern Native Underline Style */
.nav-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none;
  color: #64748b;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 2px 8px 2px;
  border-radius: 0;
  box-shadow: none !important;
  transition: color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  gap: 3px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.nav-item i {
  font-size: 1.45rem;
  line-height: 1;
  color: #64748b;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.nav-item span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  letter-spacing: -0.2px;
  line-height: 1.1;
  text-align: center;
  display: block;
  transition: color 0.2s ease;
}

/* Active State: No Box Background, Blue Text/Icon + Blue Indicator Line */
.nav-item.active {
  background: transparent !important;
  box-shadow: none !important;
  color: #101a57 !important;
}

.nav-item.active i {
  color: #101a57 !important;
  transform: translateY(-2px) scale(1.1);
}

.nav-item.active span {
  color: #101a57 !important;
  font-weight: 800 !important;
}

/* Blue Underline Indicator */
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3.5px;
  background: #101a57;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(16, 26, 87, 0.45);
  animation: navIndicatorSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes navIndicatorSlide {
  from { width: 8px; opacity: 0; }
  to { width: 24px; opacity: 1; }
}

/* Dark Mode Active State */
body.dark-mode .nav-item {
  color: #94a3b8;
}

body.dark-mode .nav-item i,
body.dark-mode .nav-item span {
  color: #94a3b8;
}

body.dark-mode .nav-item.active {
  background: transparent !important;
  box-shadow: none !important;
  color: #38bdf8 !important;
}

body.dark-mode .nav-item.active i,
body.dark-mode .nav-item.active span {
  color: #38bdf8 !important;
}

body.dark-mode .nav-item.active::after {
  background: #38bdf8;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.6);
}

.more-hub-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.more-hub-card:hover {
  transform: translateY(-2px);
  border-color: #101a57;
  box-shadow: 0 8px 18px rgba(16, 26, 87, 0.12);
  background: #f8fafc;
}

.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 {
  background: #181818;
  border-color: #101a57;
}

/* Icons */
.more-hub-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.more-hub-card:hover .more-hub-icon {
  transform: scale(1.08);
}

.more-hub-icon.rent { background: rgba(2, 132, 199, 0.15); color: #0284c7; }
.more-hub-icon.brick { background: rgba(217, 119, 6, 0.15); color: #d97706; }
.more-hub-icon.staff { background: rgba(147, 51, 234, 0.15); color: #9333ea; }
.more-hub-icon.bank { background: rgba(16, 26, 87, 0.15); color: #101a57; }
.more-hub-icon.land { background: rgba(14, 165, 233, 0.15); color: #0284c7; }
.more-hub-icon.zakat { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.more-hub-icon.health { background: rgba(239, 68, 68, 0.15); color: #dc2626; }
.more-hub-icon.expenses { background: rgba(124, 58, 237, 0.15); color: #7c3aed; }
.more-hub-icon.settings { background: rgba(71, 85, 105, 0.15); color: #475569; }

/* Info */
.more-hub-info {
  flex: 1;
  min-width: 0;
}

.more-hub-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.more-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 6px;
  text-transform: uppercase;
}

.more-tag.rent { background: rgba(2, 132, 199, 0.12); color: #0284c7; }
.more-tag.brick { background: rgba(217, 119, 6, 0.12); color: #d97706; }
.more-tag.staff { background: rgba(147, 51, 234, 0.12); color: #9333ea; }
.more-tag.bank { background: rgba(16, 26, 87, 0.12); color: #101a57; }
.more-tag.land { background: rgba(14, 165, 233, 0.12); color: #0284c7; }
.more-tag.zakat { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.more-tag.health { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.more-tag.expenses { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }
.more-tag.settings { background: rgba(71, 85, 105, 0.12); color: #475569; }

.more-subtag {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.more-hub-title {
  font-size: 1.02rem;
  font-weight: 750;
  color: var(--text-main);
  margin-bottom: 2px;
  line-height: 1.25;
}

.more-hub-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.more-hub-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.more-hub-card:hover .more-hub-action-btn {
  background: #101a57;
  color: #ffffff;
  transform: translateX(3px);
}

/* Bottom Actions */
.more-hub-bottom-bar {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 30px;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   ভাটার KPI কার্ড - ডার্ক মোড ফিক্স (Brick Stat Cards Dark Mode Override)
   Inline styles on these 3 cards need !important overrides in dark mode
   ========================================================================== */

/* Net Profit কার্ড - ডার্ক মোডে নীল থিম (inline #f0f9ff bg & #0369a1 text) */
body.dark-mode .stat-card.profit[style*="f0f9ff"],
body.dark-mode .stat-card.profit[style*="0284c7"] {
  background: linear-gradient(145deg, #0a1a2e, #051224) !important;
  border: 1px solid #1a3a5c !important;
  border-left: 5px solid #101a57 !important;
}
body.dark-mode .stat-card.profit[style*="f0f9ff"] .stat-label,
body.dark-mode .stat-card.profit[style*="0284c7"] .stat-label,
body.dark-mode .stat-card.profit[style*="f0f9ff"] span[style*="0369a1"],
body.dark-mode .stat-card.profit[style*="0284c7"] span[style*="0369a1"] {
  color: #93c5fd !important;
}
body.dark-mode .stat-card.profit[style*="f0f9ff"] .stat-number,
body.dark-mode .stat-card.profit[style*="0284c7"] .stat-number,
body.dark-mode .stat-card.profit[style*="f0f9ff"] div[style*="0369a1"],
body.dark-mode .stat-card.profit[style*="0284c7"] div[style*="0369a1"] {
  color: #60a5fa !important;
}
body.dark-mode .stat-card.profit[style*="f0f9ff"] .stat-sub,
body.dark-mode .stat-card.profit[style*="0284c7"] .stat-sub,
body.dark-mode .stat-card.profit[style*="f0f9ff"] div[style*="0284c7"],
body.dark-mode .stat-card.profit[style*="0284c7"] div[style*="0284c7"] {
  color: #7dd3fc !important;
}
body.dark-mode .stat-card.profit[style*="f0f9ff"] .stat-icon,
body.dark-mode .stat-card.profit[style*="0284c7"] .stat-icon {
  background: rgba(16, 26, 87, 0.25) !important;
  color: #93c5fd !important;
}

/* কাস্টমার বকেয়া কার্ড - ডার্ক মোডে অ্যাম্বার/হলুদ থিম */
body.dark-mode .stat-card.due[style*="fffbeb"],
body.dark-mode .stat-card.due[style*="f59e0b"] {
  background: linear-gradient(145deg, #1a1204, #0a0802) !important;
  border: 1px solid #3d2c08 !important;
  border-left: 5px solid #f59e0b !important;
}
body.dark-mode .stat-card.due[style*="fffbeb"] .stat-label,
body.dark-mode .stat-card.due[style*="f59e0b"] .stat-label,
body.dark-mode .stat-card.due[style*="fffbeb"] span[style*="b45309"],
body.dark-mode .stat-card.due[style*="f59e0b"] span[style*="b45309"] {
  color: #fde68a !important;
}
body.dark-mode .stat-card.due[style*="fffbeb"] .stat-number,
body.dark-mode .stat-card.due[style*="f59e0b"] .stat-number,
body.dark-mode .stat-card.due[style*="fffbeb"] div[style*="b45309"],
body.dark-mode .stat-card.due[style*="f59e0b"] div[style*="b45309"] {
  color: #fcd34d !important;
}
body.dark-mode .stat-card.due[style*="fffbeb"] .stat-sub,
body.dark-mode .stat-card.due[style*="f59e0b"] .stat-sub,
body.dark-mode .stat-card.due[style*="fffbeb"] div[style*="d97706"],
body.dark-mode .stat-card.due[style*="f59e0b"] div[style*="d97706"] {
  color: #fbbf24 !important;
}

/* Voice Assistant Banner */
.voice-assistant-banner {
  background: #101a57;
  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: none;
  cursor: pointer;
  border: 1px solid #0d1546;
  transition: all 0.2s ease;
}

.voice-assistant-banner:hover {
  transform: translateY(-1px);
  box-shadow: none;
  background: #0d1546;
}

body.dark-mode .voice-assistant-banner {
  background: #0a1038;
  border: 1px solid #101a57;
  box-shadow: none;
}

body.dark-mode .voice-assistant-banner:hover {
  background: #0d1546;
}

body.dark-mode .stat-card.due[style*="fffbeb"] .stat-icon,
body.dark-mode .stat-card.due[style*="f59e0b"] .stat-icon {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #fcd34d !important;
}

/* অবিক্রীত ইট স্টক কার্ড - ডার্ক মোডে পার্পল থিম */
body.dark-mode .stat-card.purple[style*="fbf5ff"],
body.dark-mode .stat-card.purple[style*="purple"] {
  background: linear-gradient(145deg, #150920, #090412) !important;
  border: 1px solid #351060 !important;
  border-left: 5px solid #8b5cf6 !important;
}
body.dark-mode .stat-card.purple[style*="fbf5ff"] .stat-label,
body.dark-mode .stat-card.purple[style*="fbf5ff"] span[style],
body.dark-mode .stat-card.purple[style*="fbf5ff"] div[style*="purple"] {
  color: #c4b5fd !important;
}
body.dark-mode .stat-card.purple[style*="fbf5ff"] .stat-number,
body.dark-mode .stat-card.purple[style*="fbf5ff"] div[style*="purple"]:not(.stat-icon) {
  color: #a78bfa !important;
}
body.dark-mode .stat-card.purple[style*="fbf5ff"] .stat-sub {
  color: #8b5cf6 !important;
}
body.dark-mode .stat-card.purple[style*="fbf5ff"] .stat-icon {
  background: rgba(139, 92, 246, 0.22) !important;
  color: #c4b5fd !important;
}


/* ==========================================================================
   প্রফেশনাল "আরও" (More) হাব রিডিজাইন
   ========================================================================== */
.more-hub-hero-card {
  background: linear-gradient(135deg, #0a1038 0%, #101a57 60%, #0284c7 100%);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  color: #ffffff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(16, 26, 87, 0.35);
}

body.dark-mode .more-hub-hero-card {
  background: linear-gradient(135deg, #0c1f45 0%, #1a347a 60%, #0e2a5e 100%);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
}

.more-hub-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.more-hub-hero-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 3px 0;
  line-height: 1.25;
}

.more-hub-hero-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.more-quick-voice-btn {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: 999px !important;
  padding: 8px 16px !important;
  font-size: 0.86rem !important;
  flex-shrink: 0;
}

.more-section-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.more-cards-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.more-hub-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 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: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: relative;
}

.more-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 26, 87, 0.12);
  border-color: #101a57;
}

.more-hub-card:active {
  transform: scale(0.98);
}

body.dark-mode .more-hub-card {
  background: #12141a;
  border-color: #222736;
}

body.dark-mode .more-hub-card:hover {
  border-color: #101a57;
  background: #181b24;
}

.more-hub-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  flex-shrink: 0;
}

.more-hub-icon.rent { background: rgba(16, 26, 87, 0.12); color: #101a57; }
.more-hub-icon.brick { background: rgba(217, 119, 6, 0.12); color: #d97706; }
.more-hub-icon.staff { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.more-hub-icon.bank { background: rgba(2, 132, 199, 0.12); color: #0284c7; }
.more-hub-icon.land { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.more-hub-icon.zakat { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.more-hub-icon.health { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.more-hub-icon.expenses { background: rgba(168, 85, 247, 0.12); color: #a855f7; }
.more-hub-icon.settings { background: rgba(71, 85, 105, 0.12); color: #475569; }

body.dark-mode .more-hub-icon.settings { background: rgba(148, 163, 184, 0.12); color: #cbd5e1; }

.more-hub-info {
  flex: 1;
  min-width: 0;
}

.more-hub-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.more-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.more-tag.rent { background: #dbeafe; color: #0d1546; }
.more-tag.brick { background: #fef3c7; color: #92400e; }
.more-tag.staff { background: #ede9fe; color: #5b21b6; }
.more-tag.bank { background: #e0f2fe; color: #075985; }
.more-tag.land { background: #fef3c7; color: #b45309; }
.more-tag.zakat { background: #d1fae5; color: #065f46; }
.more-tag.health { background: #fee2e2; color: #991b1b; }
.more-tag.expenses { background: #f3e8ff; color: #6b21a8; }
.more-tag.settings { background: #e2e8f0; color: #334155; }

body.dark-mode .more-tag.rent { background: #1e293b; color: #93c5fd; }
body.dark-mode .more-tag.brick { background: #3b280c; color: #fde68a; }
body.dark-mode .more-tag.staff { background: #2e1065; color: #d8b4fe; }
body.dark-mode .more-tag.bank { background: #082f49; color: #7dd3fc; }
body.dark-mode .more-tag.land { background: #3d2206; color: #fcd34d; }
body.dark-mode .more-tag.zakat { background: #064e3b; color: #6ee7b7; }
body.dark-mode .more-tag.health { background: #450a0a; color: #fca5a5; }
body.dark-mode .more-tag.expenses { background: #3b0764; color: #e9d5ff; }
body.dark-mode .more-tag.settings { background: #1e293b; color: #94a3b8; }

.more-subtag {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.more-hub-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
  line-height: 1.25;
}

.more-hub-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.more-hub-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.more-hub-card:hover .more-hub-action-btn {
  background: #101a57;
  color: #ffffff;
  transform: translateX(2px);
}

/* প্রফেশনাল ডিভাইডার লাইন */
.more-hub-divider {
  position: relative;
  text-align: center;
  margin: 28px 0 20px 0;
}

.more-hub-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
  z-index: 1;
}

.more-divider-text {
  position: relative;
  z-index: 2;
  background: var(--bg-surface);
  padding: 4px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  border-radius: 999px;
  border: 1px solid var(--border-color);
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

body.dark-mode .more-divider-text {
  background: #0f1117;
  border-color: #222736;
  color: #38bdf8;
}

.more-hub-hero-card {
  background: #0a1038 !important; /* ফ্ল্যাট সলিড হালকা ডার্ক নেভি ব্লু (কোনো গ্র্যাডিয়েন্ট নেই) */
  background-image: none !important;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  color: #ffffff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: none !important; /* কোনো শ্যাডো নেই */
  border: 1px solid #172554;
}

body.dark-mode .more-hub-hero-card {
  background: #0f1e38 !important; /* ডার্ক মোডে ফ্ল্যাট ডার্ক নেভি */
  background-image: none !important;
  border: 1px solid #1e3458;
  box-shadow: none !important;
}

/* ==========================================================================
   ডেডিকেটেড মোবাইল সেটিংস পেজ আর্কিটেকচার (Dedicated Cupertino/Material Settings UI)
   ========================================================================== */
.settings-profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

body.dark-mode .settings-profile-card {
  background: #11141c;
  border-color: #1f2535;
}

.settings-profile-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #101a57, #101a57);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(16, 26, 87, 0.3);
}

.settings-profile-info {
  flex: 1;
  min-width: 0;
}

.settings-profile-name {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 2px 0;
}

.settings-profile-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 6px 0;
}

.settings-cloud-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

body.dark-mode .settings-cloud-pill {
  background: #064e3b;
  color: #6ee7b7;
}

/* Settings Group Container */
.settings-group {
  margin-bottom: 20px;
}

.settings-group-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: #101a57;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0 0 8px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

body.dark-mode .settings-group-title {
  color: #38bdf8;
}

.settings-inset-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

body.dark-mode .settings-inset-box {
  background: #11141c;
  border-color: #1f2535;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s ease;
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-row.clickable {
  cursor: pointer;
}

.settings-row.clickable:active {
  background: var(--bg-card-subtle);
}

.settings-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.settings-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.settings-row-icon.blue { background: #eff6ff; color: #101a57; }
.settings-row-icon.purple { background: #f5f3ff; color: #7c3aed; }
.settings-row-icon.amber { background: #fffbeb; color: #d97706; }
.settings-row-icon.emerald { background: #ecfdf5; color: #059669; }
.settings-row-icon.rose { background: #fff1f2; color: #e11d48; }
.settings-row-icon.slate { background: #f1f5f9; color: #475569; }

body.dark-mode .settings-row-icon.blue { background: rgba(16, 26, 87, 0.18); color: #60a5fa; }
body.dark-mode .settings-row-icon.purple { background: rgba(124, 58, 237, 0.18); color: #c084fc; }
body.dark-mode .settings-row-icon.amber { background: rgba(217, 119, 6, 0.18); color: #fbbf24; }
body.dark-mode .settings-row-icon.emerald { background: rgba(5, 150, 105, 0.18); color: #34d399; }
body.dark-mode .settings-row-icon.rose { background: rgba(225, 29, 72, 0.18); color: #fb7185; }
body.dark-mode .settings-row-icon.slate { background: rgba(100, 116, 139, 0.18); color: #cbd5e1; }

.settings-row-text {
  flex: 1;
  min-width: 0;
}

.settings-row-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.settings-row-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.settings-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.settings-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-card-subtle);
  color: var(--text-muted);
}

/* ==========================================================================
   Dashboard Combined Hero Card (Voice Briefing + Income & Expense in 1 Card)
   ========================================================================== */
.dash-combined-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg, 16px);
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease;
}

.dash-combined-hero-card .voice-assistant-banner {
  margin-bottom: 0;
  border-radius: 12px;
}

.dash-income-expense-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dash-income-expense-row .stat-card {
  box-shadow: none;
  background: var(--bg-primary, #f8fafc);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dash-income-expense-row .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.dash-income-expense-row .stat-card.income {
  border-left: 4px solid var(--income);
}

.dash-income-expense-row .stat-card.expense {
  border-left: 4px solid var(--expense);
}

body.dark-mode .dash-combined-hero-card {
  background: #121212;
  border-color: #222222;
}

body.dark-mode .dash-income-expense-row .stat-card.income {
  background: #0d1511;
  border-color: #1a2f22;
}

body.dark-mode .dash-income-expense-row .stat-card.expense {
  background: #180e0e;
  border-color: #331c1c;
}

/* ==========================================================================
   Business Portal Grid (Dashboard 2-per-row Business Cards)
   ========================================================================== */
.business-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  margin-bottom: 14px;
  padding: 0 2px;
}

.business-section-header .section-title {
  font-size: 1.32rem !important;
  font-weight: 800 !important;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
}

.business-section-header .section-title i {
  font-size: 1.55rem !important;
  color: var(--primary);
}

.business-portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.biz-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg, 16px);
  padding: 13px 12px 14px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 98px;
  gap: 10px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.biz-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.biz-card:active {
  transform: scale(0.97);
}

.biz-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.biz-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: transform 0.2s ease;
}

.biz-card:hover .biz-icon-box {
  transform: scale(1.05);
}

.biz-arrow-badge {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.75;
}

.biz-card:hover .biz-arrow-badge {
  transform: translateX(3px);
  opacity: 1;
}

.biz-card-body {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.biz-name {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.biz-meta {
  font-size: 0.78rem;
  color: #475569;
  margin-top: 3px;
  font-weight: 500;
}

/* Watermark SVG styling */
.biz-watermark {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 68px;
  height: 68px;
  opacity: 0.14;
  pointer-events: none;
  z-index: 1;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.biz-card:hover .biz-watermark {
  opacity: 0.24;
  transform: scale(1.12) rotate(4deg);
}

/* --------------------------------------------------------------------------
   8 Individual Light Pastel Themes
   -------------------------------------------------------------------------- */
/* ১. দোকান ভাড়া */
.biz-card.biz-rent {
  background: linear-gradient(145deg, #f0f7ff 0%, #e0f2fe 100%);
  border-color: #bae6fd;
}
.biz-card.biz-rent .biz-icon-box {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.18);
}
.biz-card.biz-rent .biz-arrow-badge {
  color: #0284c7;
}

/* ২. এশিয়ান হসপিটাল */
.biz-card.biz-hospital {
  background: linear-gradient(145deg, #f0fdfa 0%, #ccfbf1 100%);
  border-color: #99f6e4;
}
.biz-card.biz-hospital .biz-icon-box {
  background: #ffffff;
  color: #0d9488;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.18);
}
.biz-card.biz-hospital .biz-arrow-badge {
  color: #0d9488;
}

/* ৩. কবির ব্রিক ফিল্ডস */
.biz-card.biz-brick {
  background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fed7aa;
}
.biz-card.biz-brick .biz-icon-box {
  background: #ffffff;
  color: #ea580c;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.18);
}
.biz-card.biz-brick .biz-arrow-badge {
  color: #ea580c;
}

/* ৪. ব্যাংক ও সঞ্চয়পত্র */
.biz-card.biz-bank {
  background: linear-gradient(145deg, #faf5ff 0%, #f3e8ff 100%);
  border-color: #e9d5ff;
}
.biz-card.biz-bank .biz-icon-box {
  background: #ffffff;
  color: #9333ea;
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.18);
}
.biz-card.biz-bank .biz-arrow-badge {
  color: #9333ea;
}

/* ৫. জমি ও সম্পত্তি */
.biz-card.biz-land {
  background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #bbf7d0;
}
.biz-card.biz-land .biz-icon-box {
  background: #ffffff;
  color: #16a34a;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.18);
}
.biz-card.biz-land .biz-arrow-badge {
  color: #16a34a;
}

/* ৬. স্টাফ ও বেতন */
.biz-card.biz-staff {
  background: linear-gradient(145deg, #eef2ff 0%, #e0e7ff 100%);
  border-color: #c7d2fe;
}
.biz-card.biz-staff .biz-icon-box {
  background: #ffffff;
  color: #4f46e5;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.18);
}
.biz-card.biz-staff .biz-arrow-badge {
  color: #4f46e5;
}

/* ৭. গাড়ি ও পরিবার */
.biz-card.biz-expenses {
  background: linear-gradient(145deg, #fff1f2 0%, #ffe4e6 100%);
  border-color: #fecdd3;
}
.biz-card.biz-expenses .biz-icon-box {
  background: #ffffff;
  color: #e11d48;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.18);
}
.biz-card.biz-expenses .biz-arrow-badge {
  color: #e11d48;
}

/* ৮. যাকাত ও সদকা */
.biz-card.biz-zakat {
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
}
.biz-card.biz-zakat .biz-icon-box {
  background: #ffffff;
  color: #d97706;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.18);
}
.biz-card.biz-zakat .biz-arrow-badge {
  color: #d97706;
}

/* --------------------------------------------------------------------------
   Dark Mode Support for Business Cards
   -------------------------------------------------------------------------- */
body.dark-mode .biz-name {
  color: #ffffff;
}

body.dark-mode .biz-meta {
  color: #94a3b8;
}

body.dark-mode .biz-card.biz-rent {
  background: linear-gradient(145deg, #0c1a2e 0%, #060e1a 100%);
  border-color: #1e3a5f;
}
body.dark-mode .biz-card.biz-rent .biz-icon-box {
  background: #0f2744;
  color: #60a5fa;
  box-shadow: none;
}

body.dark-mode .biz-card.biz-hospital {
  background: linear-gradient(145deg, #072220 0%, #031413 100%);
  border-color: #134e4a;
}
body.dark-mode .biz-card.biz-hospital .biz-icon-box {
  background: #0e3b37;
  color: #5eead4;
  box-shadow: none;
}

body.dark-mode .biz-card.biz-brick {
  background: linear-gradient(145deg, #24140b 0%, #150a05 100%);
  border-color: #451a03;
}
body.dark-mode .biz-card.biz-brick .biz-icon-box {
  background: #3e1c09;
  color: #fdba74;
  box-shadow: none;
}

body.dark-mode .biz-card.biz-bank {
  background: linear-gradient(145deg, #200f30 0%, #12081c 100%);
  border-color: #3b0764;
}
body.dark-mode .biz-card.biz-bank .biz-icon-box {
  background: #351452;
  color: #d8b4fe;
  box-shadow: none;
}

body.dark-mode .biz-card.biz-land {
  background: linear-gradient(145deg, #0a2114 0%, #04120a 100%);
  border-color: #14532d;
}
body.dark-mode .biz-card.biz-land .biz-icon-box {
  background: #0f3820;
  color: #6ee7b7;
  box-shadow: none;
}

body.dark-mode .biz-card.biz-staff {
  background: linear-gradient(145deg, #111432 0%, #090b1c 100%);
  border-color: #312e81;
}
body.dark-mode .biz-card.biz-staff .biz-icon-box {
  background: #1e2456;
  color: #a5b4fc;
  box-shadow: none;
}

body.dark-mode .biz-card.biz-expenses {
  background: linear-gradient(145deg, #290d14 0%, #17060a 100%);
  border-color: #4c0519;
}
body.dark-mode .biz-card.biz-expenses .biz-icon-box {
  background: #47111f;
  color: #fca5a5;
  box-shadow: none;
}

body.dark-mode .biz-card.biz-zakat {
  background: linear-gradient(145deg, #281a06 0%, #170f03 100%);
  border-color: #451a03;
}
body.dark-mode .biz-card.biz-zakat .biz-icon-box {
  background: #452c08;
  color: #fde68a;
  box-shadow: none;
}

/* ==========================================================================
   Powered by Intactic Branding Footer
   ========================================================================== */
.intactic-powered-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0 28px 0;
  margin-top: 14px;
  text-align: center;
}

.intactic-powered-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.intactic-powered-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(16, 26, 87, 0.15);
  border-color: #93c5fd;
}

.intactic-powered-link:active {
  transform: scale(0.97);
}

.powered-by-text {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  line-height: 1;
}

.intactic-logo-img {
  height: 20px;
  width: auto;
  max-width: 95px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

/* Light & Dark mode logo toggle */
.intactic-logo-light {
  display: inline-block;
}
.intactic-logo-dark {
  display: none;
}

body.dark-mode .intactic-logo-light {
  display: none;
}
body.dark-mode .intactic-logo-dark {
  display: inline-block;
}

body.dark-mode .intactic-powered-link {
  background: #111827;
  border-color: #1f2937;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .intactic-powered-link:hover {
  border-color: #374151;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}


/* ==========================================================================
   SOLID FLAT HERO CARDS (No Gradients, Minimal 8px Subtle Radius)
   ========================================================================== */
.screen-hero-card,
.screen-hero-card.rent-hero,
.screen-hero-card.staff-hero,
.screen-hero-card.expense-hero,
.screen-hero-card.settings-hero,
.zakat-hero-card,
.more-hub-hero-card {
  border-radius: 8px !important;
  background-image: none !important;
}

.screen-hero-card.rent-hero {
  background: #101a57 !important;
  border: 1px solid #0d1546 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.screen-hero-card.settings-hero {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.zakat-hero-card {
  background: #1e1b4b !important;
  border: 1px solid #312e81 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.more-hub-hero-card {
  background: #0a1038 !important;
  border: 1px solid #101a57 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Dark mode solid heroes */
body.dark-mode .screen-hero-card.rent-hero {
  background: #172554 !important;
  border: 1px solid #0a1038 !important;
}

body.dark-mode .screen-hero-card.settings-hero {
  background: #0f172a !important;
  border: 1px solid #1e293b !important;
}

body.dark-mode .zakat-hero-card {
  background: #0f0d26 !important;
  border: 1px solid #1e1b4b !important;
}

body.dark-mode .more-hub-hero-card {
  background: #0f1e38 !important;
  border: 1px solid #1e3458 !important;
}

/* ==========================================================================
   iOS Native Sheet Drag Handle (Modal Swipe Affordance)
   ========================================================================== */
.sheet-drag-handle {
  display: none;
}

@media (max-width: 639px) {
  .sheet-drag-handle {
    display: block;
    width: 40px;
    height: 5px;
    background: #cbd5e1;
    border-radius: 999px;
    margin: 0 auto 12px auto;
    cursor: grab;
    opacity: 0.85;
    transition: background 0.2s ease, opacity 0.2s ease;
  }

  body.dark-mode .sheet-drag-handle {
    background: #475569;
  }
}

/* ==========================================================================
   ভয়েস লাইভ ওয়েভফর্ম অ্যানিমেশন (Live Audio Waveform Visualizer)
   ========================================================================== */
.voice-wave-visualizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  margin: 8px auto 14px auto;
  padding: 4px 16px;
  background: rgba(16, 26, 87, 0.05);
  border-radius: 999px;
  width: fit-content;
}

.voice-wave-visualizer .wave-bar {
  display: inline-block;
  width: 4px;
  background: #101a57;
  border-radius: 4px;
  animation: wavePulse 0.9s ease-in-out infinite alternate;
  transform-origin: bottom;
}

body.dark-mode .voice-wave-visualizer {
  background: rgba(56, 189, 248, 0.1);
}

body.dark-mode .voice-wave-visualizer .wave-bar {
  background: #38bdf8;
}

.voice-wave-visualizer .bar-1 { height: 14px; animation-delay: 0.1s; }
.voice-wave-visualizer .bar-2 { height: 26px; animation-delay: 0.3s; }
.voice-wave-visualizer .bar-3 { height: 34px; animation-delay: 0.15s; }
.voice-wave-visualizer .bar-4 { height: 20px; animation-delay: 0.4s; }
.voice-wave-visualizer .bar-5 { height: 30px; animation-delay: 0.22s; }
.voice-wave-visualizer .bar-6 { height: 22px; animation-delay: 0.35s; }
.voice-wave-visualizer .bar-7 { height: 12px; animation-delay: 0.18s; }

@keyframes wavePulse {
  0% { transform: scaleY(0.25); opacity: 0.4; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* ==========================================================================
   স্মার্ট স্কেলিটন লোডার (Shimmer Loading States)
   ========================================================================== */
.skeleton-shimmer {
  background: linear-gradient(90deg, var(--bg-card-subtle) 25%, var(--border-color) 50%, var(--bg-card-subtle) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* কার্ড ও তালিকার জন্য প্রিমিয়াম টাচ রেসপন্স */
.card:active,
.tx-item:active,
.more-hub-card:active,
.biz-card:active {
  transform: scale(0.985);
  transition: transform 0.08s ease;
}
