:root {
  --bg: #f5f7fb;
  --bg-soft: #edf3ff;
  --surface: #ffffff;
  --surface-alt: #111827;
  --primary: #1d4ed8;
  --primary-dark: #163bb5;
  --primary-soft: #dfe9ff;
  --text: #111827;
  --muted: #5b6476;
  --line: rgba(17, 24, 39, 0.08);
  --success: #16a34a;
  --shadow: 0 24px 60px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 247, 251, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--primary), #5b83ff);
  box-shadow: 0 12px 25px rgba(29, 78, 216, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-size: 1.15rem;
}

.brand-text small {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a,
.nav-link {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover,
.nav-link:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), #4f7dff);
  color: white;
  box-shadow: 0 18px 35px rgba(29, 78, 216, 0.2);
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

.hero {
  padding: 72px 0 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
}

.hero-copy h1,
.section-head h2,
.split-copy h2,
.cta-inner h2 {
  margin: 0;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  max-width: 630px;
}

.lead {
  max-width: 560px;
  margin: 22px 0 26px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-trust li {
  position: relative;
  padding-left: 18px;
}

.hero-trust li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  position: absolute;
  left: 0;
  top: 7px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.card-stack {
  position: relative;
  width: min(440px, 100%);
  padding: 24px 20px 12px;
}

.bank-card {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #111827 35%, #1d4ed8 100%);
  color: white;
  border-radius: 28px;
  padding: 24px 22px 18px;
  box-shadow: var(--shadow);
}

.main-card {
  transform: rotate(9deg);
}

.card-top,
.card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.card-top {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-chip {
  width: 48px;
  height: 36px;
  margin: 26px 0 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.2));
}

.card-number {
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  margin-bottom: 28px;
}

.card-bottom small {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}

.card-bottom strong {
  font-size: 1rem;
}

.balance-amount {
  color: #dbeafe;
}

.mini-panel {
  position: absolute;
  right: -8px;
  bottom: 16px;
  width: 180px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 18px 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mini-label {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  margin-bottom: 6px;
}

.trend {
  font-size: 0.77rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 10px;
}

.trend.up {
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
}

.stats-bar {
  padding: 18px 0 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 28px;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.04);
}

.stats-grid div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stats-grid strong {
  font-size: clamp(1.2rem, 2vw, 2rem);
}

.stats-grid span {
  color: var(--muted);
  font-size: 0.85rem;
}

.section {
  padding: 110px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(224, 235, 255, 0.4), rgba(255,255,255,0));
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 36px;
}

.section-head h2,
.split-copy h2,
.cta-inner h2 {
  font-size: clamp(2.1rem, 3vw, 3.2rem);
  max-width: 620px;
}

.text-link {
  color: var(--primary);
  font-weight: 600;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card,
.review-card,
.price-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 35px rgba(17, 24, 39, 0.04);
}

.feature-card {
  padding: 28px 24px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--primary-soft);
  font-size: 1.7rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.feature-card p,
.split-copy p,
.review-card p,
.price-card li,
.check-list {
  color: var(--muted);
  line-height: 1.7;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 34px;
}

.split-copy p {
  max-width: 540px;
  margin: 18px 0 0;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 500;
  color: var(--text);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}

.security-panel {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  color: white;
  border-radius: 28px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.panel-row,
.panel-stat-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-row {
  margin-bottom: 24px;
  color: rgba(255,255,255,0.8);
}

.progress-wrap {
  width: 100%;
  height: 12px;
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-bar {
  width: 86%;
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #34d399);
  border-radius: inherit;
}

.panel-stat-grid {
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.14);
}

.panel-stat-grid small {
  display: block;
  color: rgba(255,255,255,0.7);
  margin-bottom: 7px;
}

.centered-head {
  justify-content: center;
  text-align: center;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.review-card {
  padding: 28px 24px;
}

.stars {
  font-size: 1.2rem;
  color: #f59e0b;
  margin-bottom: 20px;
}

.reviewer {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reviewer strong {
  font-size: 0.98rem;
}

.reviewer span {
  color: var(--muted);
  font-size: 0.8rem;
}

.pricing-section {
  padding-top: 80px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.price-card {
  padding: 28px 24px 24px;
  position: relative;
}

.price-card.featured {
  border-color: rgba(29, 78, 216, 0.25);
  box-shadow: 0 22px 50px rgba(29, 78, 216, 0.12);
}

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.45rem 0.65rem;
}

.price-card h3 {
  margin: 0 0 20px;
  font-size: 1.5rem;
}

.price {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-bottom: 18px;
}

.price span {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.price small {
  color: var(--muted);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 12px;
}

.price-card li {
  position: relative;
  padding-left: 20px;
}

.price-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.cta-block {
  padding: 26px 0 110px;
}

.cta-inner {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  border-radius: 30px;
  padding: 40px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: white;
}

.cta-inner .eyebrow {
  color: #c7d2fe;
}

.cta-form {
  display: flex;
  gap: 12px;
  width: min(100%, 440px);
}

.cta-form input {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  color: white;
}

.cta-form input::placeholder {
  color: rgba(255,255,255,0.7);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.65);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0;
}

.footer-brand {
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.auth-body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: radial-gradient(circle at top, #edf3ff 0%, #f5f7fb 40%, #eef2ff 100%);
  padding: 40px 16px;
}

.page-layout {
  width: min(100%, 1100px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-topbar {
  width: 100%;
  margin: 0;
  position: relative;
}

.page-topbar-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto;
}

.page-topbar-menu a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.page-topbar-menu a:hover,
.page-topbar-menu a.active {
  color: var(--text);
}

.auth-shell {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-visual {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: white;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-visual .eyebrow {
  color: #c7d2fe;
}

.auth-visual h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 4vw, 4rem);
  letter-spacing: -0.06em;
  line-height: 1.03;
}

.auth-visual p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  max-width: 420px;
}

.auth-card {
  background: white;
  padding: 40px 32px;
}

.auth-card h2 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 3vw, 2.5rem);
  letter-spacing: -0.05em;
}

.auth-copy {
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.7;
}

.cards-container {
  display: grid;
  gap: 24px;
  margin-bottom: 28px;
}

.card-control-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  background: #f8fafc;
  transition: all 0.3s ease;
}

.card-control-item:hover {
  border-color: rgba(29, 78, 216, 0.3);
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.08);
}

.card-control-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.card-control-header h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: var(--text);
}

.card-number-masked {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-family: "Courier New", monospace;
  letter-spacing: 0.1em;
}

.card-status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
  text-transform: uppercase;
}

.card-status-badge.locked {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

.card-control-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.card-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1.5px solid rgba(29, 78, 216, 0.3);
  border-radius: 12px;
  background: white;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.card-action-btn:hover:not(.hidden) {
  background: rgba(29, 78, 216, 0.08);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.15);
}

.card-action-btn.lock-btn {
  border-color: rgba(220, 38, 38, 0.3);
  color: #dc2626;
}

.card-action-btn.lock-btn:hover:not(.hidden) {
  background: rgba(220, 38, 38, 0.08);
  border-color: #dc2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.card-action-btn.unlock-btn {
  border-color: rgba(22, 163, 74, 0.3);
  color: #16a34a;
}

.card-action-btn.unlock-btn:hover:not(.hidden) {
  background: rgba(22, 163, 74, 0.08);
  border-color: #16a34a;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

.btn-icon {
  font-size: 1.1rem;
}

.card-control-options {
  display: grid;
  gap: 12px;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.checkbox-option:hover {
  background: rgba(29, 78, 216, 0.05);
}

.checkbox-option input[type="checkbox"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-option span {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.field-group input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: #f8fafc;
  color: var(--text);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checkbox-wrap input {
  accent-color: var(--primary);
}

.link-text {
  color: var(--primary);
  font-weight: 600;
}

.auth-form .button {
  width: 100%;
  margin-top: 10px;
}

.hidden {
  display: none !important;
}

.transfer-status {
  margin-top: 8px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.transfer-status-label {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.transfer-progress {
  width: 100%;
  height: 12px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.transfer-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #1d4ed8, #34d399);
  border-radius: inherit;
  transition: width 0.4s ease;
}

#transfer-progress-text {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
}

.passphrase-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 30;
}

.error-message-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 35;
}

.error-message-box {
  width: min(100%, 430px);
  background: white;
  border-radius: 20px;
  padding: 26px 22px;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.18);
  border-left: 5px solid #dc2626;
}

.error-message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.error-message-header h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #dc2626;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #dc2626;
}

.error-message-content {
  margin: 0 0 20px;
  color: var(--text);
  line-height: 1.7;
  font-size: 0.95rem;
}

.error-message-modal .button {
  width: 100%;
}

.passphrase-box {
  width: min(100%, 430px);
  background: white;
  border-radius: 20px;
  padding: 26px 22px;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.18);
}

.passphrase-box h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.passphrase-box p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.passphrase-hint {
  background: rgba(29, 78, 216, 0.08);
  border: 1px solid rgba(29, 78, 216, 0.15);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text);
  font-family: "Courier New", monospace;
  letter-spacing: 0.02em;
}

.passphrase-hint strong {
  color: var(--primary);
  font-weight: 600;
  margin-right: 8px;
}

.passphrase-box input {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
}

.passphrase-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.passphrase-box .button {
  width: 100%;
}

.auth-meta {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-meta a {
  color: var(--primary);
  font-weight: 600;
}

.form-message {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  min-height: 20px;
}

.form-message.error {
  color: #b91c1c;
}

.transfer-message {
  padding: 16px 18px;
  border-radius: 14px;
  margin: 16px 0;
  border-left: 4px solid #dc2626;
  background: rgba(220, 38, 38, 0.08);
}

.transfer-message.error-message {
  border-left-color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}

.transfer-message strong {
  display: block;
  color: #b91c1c;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.transfer-message p {
  margin: 0;
  color: #7f1d1d;
  font-size: 0.85rem;
  line-height: 1.6;
}

.dashboard-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #edf3ff 0%, #f5f7fb 100%);
  color: var(--text);
}

.dashboard-shell {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 56px;
  position: relative;
}

.dashboard-shell.sidebar-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 19;
}

.dashboard-app {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  position: relative;
}

.dashboard-sidebar {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  height: 100vh;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: white;
  border-radius: 0;
  padding: 24px 18px;
  box-shadow: 2px 0 24px rgba(15, 23, 42, 0.4);
  z-index: 20;
  overflow-y: auto;
}

.dashboard-sidebar.open {
  display: block;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 18px;
}

.sidebar-brand .brand-mark {
  width: 34px;
  height: 34px;
}

.sidebar-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.sidebar-brand .brand-text strong,
.sidebar-brand .brand-text small {
  color: white;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
}

.nav-item {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.sidebar-summary {
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px 14px;
  display: grid;
  gap: 6px;
}

.sidebar-summary span,
.sidebar-summary small {
  color: rgba(255, 255, 255, 0.72);
}

.sidebar-summary strong {
  font-size: 1.3rem;
}

.dashboard-main {
  display: grid;
  gap: 0;
  margin-top: 0;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px 20px;
  box-shadow: 0 18px 35px rgba(17, 24, 39, 0.04);
  position: relative;
  z-index: 21;
}

.dashboard-topbar .menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(59, 130, 246, 0.08));
  border: 1.5px solid rgba(29, 78, 216, 0.25);
  cursor: pointer;
  padding: 12px 14px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.dashboard-topbar .menu-toggle:hover {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.18), rgba(59, 130, 246, 0.15));
  border-color: rgba(29, 78, 216, 0.5);
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.15);
  transform: translateY(-2px);
}

.dashboard-topbar .menu-toggle span {
  display: block !important;
  width: 24px !important;
  height: 2.5px !important;
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%) !important;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(29, 78, 216, 0.25);
  margin: 0 !important;
  padding: 0 !important;
}

.dashboard-topbar .menu-toggle:active span {
  background: linear-gradient(90deg, #1e40af 0%, #1d4ed8 100%) !important;
}


.dashboard-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
}

.dashboard-topbar .button {
  padding: 0.7rem 1.1rem;
  font-size: 0.9rem;
}

.dashboard-header {
  margin-top: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-header-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.dashboard-header h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 4rem);
  letter-spacing: -0.06em;
}

.dashboard-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.summary-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.summary-card,
.account-card,
.activity-card,
.insight-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 18px 35px rgba(17, 24, 39, 0.04);
}

.summary-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f7ff 100%);
}

.summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
  pointer-events: none;
}

.insight-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.insight-card {
  padding: 20px 22px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: white;
  border: none;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.insight-card .insight-label,
.insight-card small {
  display: block;
  color: rgba(255, 255, 255, 0.74);
}

.insight-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: clamp(1.7rem, 2vw, 2.3rem);
  letter-spacing: -0.04em;
}

.insight-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insight-card small {
  font-size: 0.8rem;
}

.summary-label {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-amount {
  font-size: clamp(2.3rem, 4vw, 4rem);
  letter-spacing: -0.06em;
  font-weight: 800;
  margin-bottom: 16px;
}

.mini-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.mini-summary div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mini-summary span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.mini-summary strong {
  font-size: 0.92rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.summary-meta strong {
  color: var(--success);
}

.total-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.total-card .summary-label {
  margin-bottom: 12px;
}

.total-card strong {
  font-size: 1.7rem;
  line-height: 1.2;
}

.account-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.account-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(17, 24, 39, 0.08);
}

.account-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.10), transparent 68%);
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.account-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.account-tag {
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
  border-radius: 999px;
  padding: 0.5rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.account-balance-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-right: 10px;
}

.account-label {
  display: inline-block;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.account-balance {
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.06em;
  font-weight: 800;
  margin: 0;
}

.account-balance-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  font-weight: 700;
  font-size: 0.78rem;
}

.account-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 18px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.account-meta-grid div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-meta-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-meta-grid strong {
  font-size: 0.96rem;
}

.account-details {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.action-panel {
  margin-top: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 18px 35px rgba(17, 24, 39, 0.04);
  padding: 26px;
}

.action-header h3 {
  margin: 0 0 20px;
  font-size: 1.4rem;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.action-button {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-radius: 18px;
  padding: 18px 16px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.06);
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

.chart-card,
.mini-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 18px 35px rgba(17, 24, 39, 0.04);
  padding: 24px;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.card-header-row h3 {
  margin: 0;
  font-size: 1.2rem;
}

.trend-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
  font-size: 0.74rem;
  font-weight: 700;
}

.trend-pill.soft {
  background: rgba(29, 78, 216, 0.12);
  color: var(--primary);
}

.chart-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  height: 150px;
  padding: 18px 10px 0;
}

.chart-bars span {
  display: block;
  border-radius: 12px 12px 2px 2px;
  background: linear-gradient(180deg, #93c5fd 0%, #2563eb 100%);
  min-height: 20px;
}

.chart-labels {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.goal-line {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.goal-line:last-child {
  margin-bottom: 0;
}

.goal-line > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.goal-line strong {
  color: var(--text);
}

.goal-meter {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #edf2ff;
  overflow: hidden;
}

.goal-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa 0%, #2563eb 100%);
}

.activity-card {
  margin-top: 28px;
  padding: 26px;
}

.activity-card h3 {
  margin: 0 0 20px;
  font-size: 1.4rem;
}

.activity-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.toolbar-controls {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
}

.toolbar-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.toolbar-field input,
.toolbar-field select {
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  min-width: 170px;
  color: var(--text);
}

.transaction-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.transaction-panel {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 18px;
}

.transaction-panel h4 {
  margin: 0 0 18px;
  font-size: 1.1rem;
}

.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.activity-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.activity-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-label strong {
  display: block;
  margin-bottom: 3px;
}

.activity-label span,
.activity-list .amount {
  color: var(--muted);
  font-size: 0.85rem;
}

.activity-list .amount {
  color: var(--text);
  font-weight: 700;
}

.amount.credit {
  color: var(--success);
}

.amount.debit {
  color: #b91c1c;
}

@media (max-width: 1100px) {
  .dashboard-app {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
  }
}

@media (max-width: 1100px) {
  .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .transaction-columns,
  .action-grid,
  .insight-grid,
  .analytics-grid,
  .account-grid {
    grid-template-columns: 1fr;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header,
  .dashboard-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 12px;
  padding: 10px 9px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  border-radius: 3px;
}

@media (max-width: 860px) {
  .main-nav,
  .nav-actions {
    display: none;
  }

  .page-topbar-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    z-index: 30;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 22px 50px rgba(17, 24, 39, 0.12);
  }

  .page-topbar-menu.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-wrap {
    min-height: 68px;
  }

  .hero-grid,
  .split-layout,
  .feature-grid,
  .review-grid,
  .pricing-grid,
  .cta-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-grid,
  .split-layout {
    gap: 28px;
  }

  .hero {
    padding-top: 52px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-inner {
    padding: 30px 20px;
  }

  .cta-form {
    width: 100%;
    flex-direction: column;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 80px 0;
  }

  .stats-grid,
  .feature-grid,
  .review-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .card-number {
    letter-spacing: 0.12em;
    font-size: 1.2rem;
  }

  .cta-inner {
    border-radius: 24px;
  }
}
