:root {
  --bg: #050816;
  --card: #0d1324;
  --card2: #111a30;
  --gold: #f4c76b;
  --text: #ffffff;
  --muted: #9ca3af;
  --green: #22c55e;
  --red: #ef4444;
  --blue: #38bdf8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #14213d 0%, #050816 45%, #020617 100%);
  font-family: Arial, sans-serif;
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.mobile-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 18px 14px 90px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
}

.sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.badge {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(244, 199, 107, .14);
  color: var(--gold);
  border: 1px solid rgba(244, 199, 107, .35);
  font-size: 12px;
}

.hero {
  margin-top: 20px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #24105f, #102a5c);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.balance {
  font-size: 34px;
  font-weight: 900;
  margin-top: 12px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.card {
  background: rgba(13, 19, 36, .88);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 12px 35px rgba(0,0,0,.25);
}

.card-title {
  color: var(--muted);
  font-size: 13px;
}

.amount {
  margin-top: 8px;
  font-size: 21px;
  font-weight: 800;
}

.green {
  color: var(--green);
}

.red {
  color: var(--red);
}

.section-title {
  margin: 24px 0 12px;
  font-size: 18px;
  font-weight: 800;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.action {
  background: var(--card2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 14px 8px;
  text-align: center;
  font-size: 12px;
}

.icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(244,199,107,.15);
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  color: var(--gold);
}

.list {
  display: grid;
  gap: 10px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(13, 19, 36, .9);
  border: 1px solid rgba(255,255,255,.08);
  padding: 14px;
  border-radius: 18px;
}

.btn {
  display: block;
  width: 100%;
  border: 0;
  padding: 15px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8d47c, #c9932e);
  color: #111827;
  font-weight: 900;
  text-align: center;
  margin-top: 14px;
}

.locked {
  opacity: .55;
  position: relative;
}

.locked:after {
  content: "Premium";
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  color: var(--gold);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(5, 8, 22, .95);
  border-top: 1px solid rgba(255,255,255,.08);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 10px 8px 14px;
}

.nav-item {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.nav-item.active {
  color: var(--gold);
}

.profile-cover {
  margin-top: 18px;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(135deg, #221153, #0f3b73);
  text-align: center;
  border: 1px solid rgba(244,199,107,.25);
}

.avatar-wrap {
  width: 118px;
  height: 118px;
  margin: 0 auto 14px;
  border-radius: 36px;
  background: linear-gradient(135deg, #f8d47c, #7c5cff);
  padding: 4px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  object-fit: cover;
  background: #111827;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 900;
}

.input {
  width: 100%;
  padding: 15px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  margin-bottom: 12px;
  outline: none;
}

.input::placeholder {
  color: #9ca3af;
}

.plan-admin {
  display: grid;
  gap: 10px;
}

.nav-icon {
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
}

.fab-add {
  width: 56px;
  height: 56px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f8d47c, #c9932e);
  color: #111827;
  display: grid;
  place-items: center;
  margin: -28px auto 2px;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(244,199,107,.35);
}

.payment-box {
  display: grid;
  gap: 10px;
}

.payment-item {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status.pending {
  background: rgba(244,199,107,.16);
  color: var(--gold);
}

.status.approved {
  background: rgba(34,197,94,.16);
  color: var(--green);
}

.status.rejected {
  background: rgba(239,68,68,.16);
  color: var(--red);
}

.payment-shot {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 16px;
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,.1);
}

.inline-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-red {
  background: linear-gradient(135deg, #ff7b7b, #b91c1c);
  color: #fff;
}

.notice-success {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(34,197,94,.13);
  border: 1px solid rgba(34,197,94,.25);
  color: var(--green);
  font-weight: 800;
}

.feature-lock-list {
  display: grid;
  gap: 10px;
}

.feature-lock-list div {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.05);
}

.premium-plans {
  display: grid;
  gap: 12px;
}

.plan-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(17,24,39,.96), rgba(30,41,59,.9));
  border: 1px solid rgba(244,199,107,.18);
}

.plan-card.best {
  background: linear-gradient(135deg, rgba(80,48,10,.95), rgba(17,24,39,.95));
  border-color: rgba(244,199,107,.45);
}

.plan-badge {
  position: absolute;
  right: 14px;
  top: 14px;
  font-size: 11px;
  color: #111827;
  background: var(--gold);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
}

.pay-number-card {
  display: none;
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(244,199,107,.12);
  border: 1px solid rgba(244,199,107,.32);
}

.pay-number-card.show {
  display: block;
}

.copy-pill {
  margin-top: 10px;
  display: inline-block;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--gold);
  font-weight: 800;
}

.help-text {
  font-size: 12px;
  color: var(--muted);
  margin-top: -4px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.error-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(239,68,68,.13);
  border: 1px solid rgba(239,68,68,.25);
  color: #ffb4b4;
  font-weight: 800;
}

.step-box {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  margin-bottom: 10px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(244,199,107,.15);
  color: var(--gold);
  font-weight: 900;
}

.type-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.type-radio {
  display: none;
}

.type-label {
  padding: 14px;
  border-radius: 18px;
  text-align: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 900;
}

.type-radio:checked + .type-label.income {
  background: rgba(34,197,94,.16);
  color: var(--green);
  border-color: rgba(34,197,94,.35);
}

.type-radio:checked + .type-label.expense {
  background: rgba(239,68,68,.16);
  color: var(--red);
  border-color: rgba(239,68,68,.35);
}

.empty-state {
  text-align: center;
  padding: 28px 18px;
  color: var(--muted);
}

.small-btn {
  border: 0;
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(239,68,68,.16);
  color: #ffb4b4;
  font-weight: 800;
}

.report-meter {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  margin-top: 10px;
}

.report-meter span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, #f8d47c, #22c55e);
}

.report-line {
  margin-bottom: 14px;
}

.report-line-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.lock-overlay {
  position: relative;
  overflow: hidden;
}

.lock-overlay::after {
  content: "Premium unlock করলে advanced yearly report, PDF/Excel export পাবেন";
  position: absolute;
  inset: 0;
  background: rgba(5,8,22,.72);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  color: var(--gold);
  font-weight: 900;
  border-radius: 20px;
}

.due-type-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.due-given {
  background: rgba(56,189,248,.16);
  color: var(--blue);
}

.due-taken {
  background: rgba(244,199,107,.16);
  color: var(--gold);
}

.paid {
  opacity: .55;
}

.budget-alert {
  padding: 14px;
  border-radius: 18px;
  background: rgba(239,68,68,.13);
  border: 1px solid rgba(239,68,68,.25);
  color: #ffb4b4;
  margin-top: 12px;
}

.budget-ok {
  padding: 14px;
  border-radius: 18px;
  background: rgba(34,197,94,.13);
  border: 1px solid rgba(34,197,94,.25);
  color: var(--green);
  margin-top: 12px;
}

.budget-progress {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  margin-top: 10px;
}

.budget-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, #f8d47c, #ef4444);
}

.goal-card {
  border: 1px solid rgba(244,199,107,.22);
}

.goal-complete {
  background: rgba(34,197,94,.14);
  color: var(--green);
  padding: 10px;
  border-radius: 14px;
  margin-top: 10px;
  font-weight: 900;
}

.wallet-mini {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.wallet-pill {
  min-width: 130px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

.transfer-arrow {
  text-align: center;
  font-size: 24px;
  color: var(--gold);
  margin: 8px 0;
}

/* Quick action responsive fix */
.action-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.action {
  min-height: 96px;
  word-break: break-word;
}

@media (max-width: 390px) {
  .action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .action {
    min-height: 92px;
    font-size: 11px;
  }
}

@media (max-width: 330px) {
  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.bell {
  position: relative;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(244,199,107,.25);
  color: var(--gold);
  font-weight: 900;
}

.bell-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--red);
  color: #fff;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  font-size: 11px;
  display: grid;
  place-items: center;
}

.notification-card.unread {
  border-color: rgba(244,199,107,.35);
  background: rgba(244,199,107,.08);
}

.notification-type {
  font-size: 12px;
  color: var(--gold);
  font-weight: 900;
}

.welcome-card {
  margin-top: 18px;
  padding: 24px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(244,199,107,.18), rgba(124,92,255,.14));
  border: 1px solid rgba(244,199,107,.25);
}

.feature-compare {
  display: grid;
  gap: 10px;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 70px 90px;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  font-size: 13px;
}

.check {
  color: var(--green);
  font-weight: 900;
  text-align: center;
}

.cross {
  color: var(--red);
  font-weight: 900;
  text-align: center;
}

.logout-btn {
  background: rgba(239,68,68,.16) !important;
  color: #ffb4b4 !important;
  border: 1px solid rgba(239,68,68,.25);
}

.admin-menu-card {
  min-height: 110px;
}

.landing-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-circle {
  width: 96px;
  height: 96px;
  border-radius: 30px;
  background: linear-gradient(135deg, #f8d47c, #c9932e);
  color: #111827;
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 20px;
  box-shadow: 0 20px 60px rgba(244,199,107,.28);
}

.landing-title {
  font-size: 42px;
  font-weight: 900;
  color: var(--gold);
  margin: 0;
}

.landing-subtitle {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 10px;
}

.landing-feature {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.landing-feature div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.landing-actions {
  display: grid;
  gap: 12px;
}

.btn-outline {
  background: rgba(255,255,255,.06) !important;
  color: var(--gold) !important;
  border: 1px solid rgba(244,199,107,.25);
}

body {
  overflow-x: hidden;
}

.landing-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top left, rgba(244,199,107,.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(124,92,255,.18), transparent 32%),
    #050816;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: .28;
  pointer-events: none;
}

.glow-1 {
  width: 260px;
  height: 260px;
  background: #f4c76b;
  top: -80px;
  left: -80px;
}

.glow-2 {
  width: 240px;
  height: 240px;
  background: #7c5cff;
  bottom: -80px;
  right: -80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(244,199,107,.22);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.phone-preview {
  margin: 26px 0;
  border-radius: 38px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: #0b1220;
  border: 1px solid rgba(255,255,255,.06);
}

.mock-top {
  padding: 18px;
  background: linear-gradient(135deg, rgba(244,199,107,.22), rgba(124,92,255,.18));
}

.mock-balance {
  font-size: 34px;
  font-weight: 900;
  color: #fff;
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
  padding: 18px;
}

.mock-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.06);
}

.mock-card .title {
  color: var(--muted);
  font-size: 12px;
}

.mock-card .value {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 800;
}

.feature-grid {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.feature-box {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
}

.feature-box b {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin: 26px 0;
}

.stat-box {
  text-align: center;
  padding: 18px 10px;
  border-radius: 22px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
}

.stat-box .num {
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
}

.bottom-sticky {
  position: sticky;
  bottom: 14px;
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.fade-up {
  animation: fadeUp .7s ease;
}

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

.pin-box {
  max-width: 360px;
  margin: 60px auto 0;
  text-align: center;
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 22px 0;
}

.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(244,199,107,.25);
}

.pin-dot.active {
  background: var(--gold);
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.key {
  height: 64px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  margin-bottom: 12px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}

.category-item {
  padding: 14px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  text-align: center;
  cursor: pointer;
  transition: .2s ease;
}

.category-item.active {
  border-color: rgba(244,199,107,.45);
  background: rgba(244,199,107,.12);
}

.category-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.category-name {
  font-size: 12px;
  font-weight: 700;
}

.category-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  font-size: 12px;
}

.chart-box {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  margin-bottom: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 80px 1fr 70px;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.bar-track {
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, #f8d47c, #22c55e);
}

.bar-fill.redbar {
  background: linear-gradient(135deg, #f87171, #ef4444);
}

.notice-banner {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(244,199,107,.12);
  border: 1px solid rgba(244,199,107,.25);
  margin-bottom: 16px;
}

.ref-box {
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(244,199,107,.12));
  border: 1px solid rgba(255,255,255,.08);
}

.ref-link {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  word-break: break-all;
  font-size: 13px;
}
