:root {
      --ink: #07110f;
      --ink-2: #10201b;
      --muted: #718079;
      --line: rgba(7, 17, 15, 0.09);
      --paper: #ffffff;
      --background: #eef2ef;
      --soft: #f4f6f4;
      --green: #8ebca0;
      --green-dark: #49755d;
      --red: #b85c5c;
      --sidebar: 250px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: var(--background);
      color: var(--ink);
    }

    button,
    input,
    select {
      font: inherit;
    }

    button {
      cursor: pointer;
    }

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

    /* =========================
       SIDEBAR
    ========================= */

    .sidebar {
      position: fixed;
      inset: 0 auto 0 0;
      width: var(--sidebar);
      background: var(--ink);
      color: white;
      padding: 28px 18px;
      z-index: 1000;
      display: flex;
      flex-direction: column;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 0 10px;
      margin-bottom: 55px;
    }

    .brand-mark {
      width: 40px;
      height: 40px;
      border: 1px solid rgba(255,255,255,.3);
      border-radius: 50%;
      display: grid;
      place-items: center;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .08em;
    }

    .brand-name {
      font-size: 13px;
      font-weight: 750;
    }

    .brand-subtitle {
      margin-top: 3px;
      color: rgba(255,255,255,.35);
      font-size: 7px;
      letter-spacing: .22em;
    }

    .nav-section {
      margin-bottom: 28px;
    }

    .nav-label {
      padding: 0 12px;
      margin-bottom: 9px;
      color: rgba(255,255,255,.32);
      font-size: 8px;
      font-weight: 700;
      letter-spacing: .18em;
      text-transform: uppercase;
    }

    .nav-link {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px;
      margin-bottom: 4px;
      border-radius: 9px;
      color: rgba(255,255,255,.55);
      font-size: 11px;
      font-weight: 600;
      transition: .2s ease;
    }

    .nav-link:hover,
    .nav-link.active {
      background: rgba(255,255,255,.09);
      color: white;
    }

    .nav-icon {
      width: 20px;
      text-align: center;
      font-size: 14px;
    }

    .support-box {
      margin-top: auto;
      padding: 18px;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 12px;
      background: rgba(255,255,255,.04);
    }

    .support-box small {
      color: rgba(255,255,255,.35);
      font-size: 8px;
      text-transform: uppercase;
    }

    .support-box strong {
      display: block;
      margin: 8px 0;
      font-size: 11px;
    }

    .support-box a {
      color: var(--green);
      font-size: 9px;
    }

    /* =========================
       MAIN
    ========================= */

    .main {
      margin-left: var(--sidebar);
      min-height: 100vh;
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 100;
      height: 78px;
      padding: 0 40px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: rgba(238,242,239,.88);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid var(--line);
    }

    .topbar-left {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .page-label {
      font-size: 13px;
      font-weight: 700;
    }

    .mobile-menu {
      display: none;
      width: 40px;
      height: 40px;
      border: 0;
      border-radius: 9px;
      background: white;
    }

    .profile {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 5px 12px 5px 5px;
      border-radius: 30px;
      background: white;
      border: 1px solid var(--line);
      font-size: 10px;
    }

    .avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--green);
      display: grid;
      place-items: center;
      font-size: 9px;
      font-weight: 800;
    }

    /* =========================
       CONTENT
    ========================= */

    .content {
      padding: 42px;
      max-width: 1600px;
    }

    .heading {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 30px;
      margin-bottom: 32px;
    }

    .heading h1 {
      font-size: clamp(3rem, 6vw, 5.8rem);
      line-height: .9;
      letter-spacing: -.07em;
      font-weight: 450;
    }

    .heading p {
      margin-top: 14px;
      color: var(--muted);
      font-size: 12px;
    }

    .actions {
      display: flex;
      gap: 9px;
    }

    .btn {
      min-height: 46px;
      padding: 0 18px;
      border-radius: 9px;
      border: 1px solid var(--line);
      background: white;
      color: var(--ink);
      font-size: 10px;
      font-weight: 750;
      transition: .2s ease;
    }

    .btn:hover {
      transform: translateY(-1px);
    }

    .btn.primary {
      background: var(--ink);
      color: white;
      border-color: var(--ink);
    }

    /* =========================
       ACCOUNT CARDS
    ========================= */

    .accounts {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-bottom: 18px;
    }

    .account-card {
      position: relative;
      min-height: 250px;
      padding: 26px;
      border-radius: 18px;
      background: white;
      border: 1px solid var(--line);
      overflow: hidden;
      transition: .25s ease;
    }

    .account-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 20px 50px rgba(7,17,15,.08);
    }

    .account-card.primary {
      background: var(--ink);
      color: white;
    }

    .account-card::after {
      content: "";
      position: absolute;
      width: 180px;
      height: 180px;
      right: -90px;
      bottom: -90px;
      border: 1px solid rgba(142,188,160,.18);
      border-radius: 50%;
    }

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

    .account-type {
      color: var(--muted);
      font-size: 8px;
      letter-spacing: .17em;
      text-transform: uppercase;
      font-weight: 750;
    }

    .primary .account-type {
      color: rgba(255,255,255,.4);
    }

    .account-menu {
      width: 30px;
      height: 30px;
      border: 0;
      background: transparent;
      color: var(--ink);
      font-size: 18px;
    }

    .primary .account-menu {
      color: white;
    }

    .account-balance {
      margin-top: 35px;
      font-size: 31px;
      font-weight: 400;
      letter-spacing: -.055em;
    }

    .balance-label {
      margin-top: 5px;
      color: var(--muted);
      font-size: 8px;
    }

    .primary .balance-label {
      color: rgba(255,255,255,.4);
    }

    .account-number {
      position: absolute;
      bottom: 26px;
      left: 26px;
      color: var(--muted);
      font-size: 9px;
      letter-spacing: .14em;
    }

    .primary .account-number {
      color: rgba(255,255,255,.4);
    }

    /* =========================
       LOWER GRID
    ========================= */

    .dashboard-grid {
      display: grid;
      grid-template-columns: 1.35fr .65fr;
      gap: 18px;
    }

    .panel {
      padding: 27px;
      background: white;
      border: 1px solid var(--line);
      border-radius: 18px;
    }

    .panel-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 18px;
    }

    .panel-header h2 {
      font-size: 17px;
      font-weight: 650;
      letter-spacing: -.03em;
    }

    .panel-header span {
      color: var(--muted);
      font-size: 8px;
      text-transform: uppercase;
      letter-spacing: .1em;
    }

    /* =========================
       TRANSACTIONS
    ========================= */

    .transaction {
      display: grid;
      grid-template-columns: 42px 1fr auto;
      align-items: center;
      gap: 13px;
      padding: 15px 0;
      border-bottom: 1px solid var(--line);
    }

    .transaction:last-child {
      border-bottom: 0;
    }

    .transaction-icon {
      width: 40px;
      height: 40px;
      display: grid;
      place-items: center;
      border-radius: 11px;
      background: var(--soft);
      font-size: 13px;
    }

    .transaction-info strong {
      display: block;
      font-size: 10px;
    }

    .transaction-info span {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: 8px;
    }

    .transaction-amount {
      text-align: right;
      font-size: 10px;
      font-weight: 750;
    }

    .transaction-amount small {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: 7px;
      font-weight: 400;
    }

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

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

    /* =========================
       SUMMARY
    ========================= */

    .summary {
      display: grid;
      gap: 11px;
    }

    .summary-item {
      padding: 17px;
      border-radius: 12px;
      background: var(--soft);
    }

    .summary-item span {
      display: block;
      color: var(--muted);
      font-size: 8px;
    }

    .summary-item strong {
      display: block;
      margin-top: 8px;
      font-size: 20px;
      font-weight: 450;
      letter-spacing: -.04em;
    }

    /* =========================
       MODAL
    ========================= */

    .modal {
      position: fixed;
      inset: 0;
      z-index: 2000;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(7,17,15,.7);
      backdrop-filter: blur(12px);
    }

    .modal.show {
      display: flex;
    }

    .modal-box {
      width: min(480px, 100%);
      padding: 30px;
      background: white;
      border-radius: 18px;
      box-shadow: 0 30px 100px rgba(0,0,0,.25);
    }

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

    .modal-header h2 {
      font-size: 20px;
      letter-spacing: -.04em;
    }

    .close {
      width: 35px;
      height: 35px;
      border: 0;
      border-radius: 50%;
      background: var(--soft);
      font-size: 18px;
    }

    .form {
      display: grid;
      gap: 8px;
      margin-top: 25px;
    }

    .form label {
      margin-top: 8px;
      font-size: 8px;
      font-weight: 800;
      letter-spacing: .1em;
      text-transform: uppercase;
    }

    .form input,
    .form select {
      width: 100%;
      height: 48px;
      padding: 0 13px;
      border: 1px solid rgba(7,17,15,.15);
      border-radius: 8px;
      outline: none;
      background: white;
    }

    .form input:focus,
    .form select:focus {
      border-color: var(--green-dark);
    }

    .form button {
      height: 48px;
      margin-top: 12px;
      border: 0;
      border-radius: 8px;
      background: var(--ink);
      color: white;
      font-size: 10px;
      font-weight: 750;
    }

    /* =========================
       RESPONSIVE
    ========================= */

    @media (max-width: 1050px) {
      .accounts {
        grid-template-columns: 1fr 1fr;
      }

      .accounts .account-card:last-child {
        grid-column: span 2;
      }

      .dashboard-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 800px) {
      :root {
        --sidebar: 0px;
      }

      .sidebar {
        width: 250px;
        transform: translateX(-100%);
        transition: transform .25s ease;
      }

      .sidebar.open {
        transform: translateX(0);
      }

      .main {
        margin-left: 0;
      }

      .topbar {
        padding: 0 18px;
      }

      .mobile-menu {
        display: block;
      }

      .content {
        padding: 28px 18px;
      }

      .heading {
        display: block;
      }

      .actions {
        margin-top: 22px;
      }
    }

    @media (max-width: 600px) {
      .accounts {
        grid-template-columns: 1fr;
      }

      .accounts .account-card:last-child {
        grid-column: auto;
      }

      .actions {
        flex-direction: column;
      }

      .actions .btn {
        width: 100%;
      }

      .profile strong {
        display: none;
      }

      .panel {
        padding: 20px;
      }

      .heading h1 {
        font-size: 3.5rem;
      }
    }
