 :root {
      --indigo: #4f46e5;
      --indigo-light: #6366f1;
      --violet: #7c3aed;
      --violet-light: #8b5cf6;
      --pink: #ec4899;
      --rose: #f43f5e;
      --amber: #f59e0b;
      --emerald: #10b981;
      --emerald-dark: #059669;
      --sky: #0ea5e9;
      --slate-50: #f8fafc;
      --slate-100: #f1f5f9;
      --slate-200: #e2e8f0;
      --slate-400: #94a3b8;
      --slate-500: #64748b;
      --slate-600: #475569;
      --slate-700: #334155;
      --slate-800: #1e293b;
      --card-shadow: 0 4px 28px rgba(79,70,229,0.08), 0 1px 4px rgba(0,0,0,0.05);
      --card-hover: 0 8px 40px rgba(79,70,229,0.14), 0 2px 8px rgba(0,0,0,0.08);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: 'Plus Jakarta Sans', sans-serif;
      background: linear-gradient(160deg, #ede9fe 0%, #fce7f3 35%, #e0f2fe 70%, #d1fae5 100%);
      min-height: 100vh;
      color: var(--slate-800);
    }

    /* setup part */
    .setup-wrap {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    .setup-card {
      background: rgba(255,255,255,0.88);
      backdrop-filter: blur(16px);
      border: 1px solid rgba(255,255,255,0.7);
      border-radius: 32px;
      padding: 52px 44px;
      max-width: 500px;
      width: 100%;
      box-shadow: 0 24px 70px rgba(79,70,229,0.18), 0 4px 20px rgba(0,0,0,0.08);
      animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .setup-hero {
      text-align: center;
      margin-bottom: 36px;
    }

    .setup-badge {
      width: 80px;
      height: 80px;
      background: linear-gradient(135deg, var(--indigo), var(--violet));
      border-radius: 24px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 36px;
      margin-bottom: 18px;
      box-shadow: 0 12px 32px rgba(79,70,229,0.35);
    }

    .setup-hero h1 {
      font-family: 'Outfit', sans-serif;
      font-size: 28px;
      font-weight: 900;
      background: linear-gradient(135deg, var(--indigo), var(--violet));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      line-height: 1.2;
    }

    .setup-hero p {
      color: var(--slate-500);
      font-size: 14px;
      margin-top: 8px;
    }

    /* field part */
    .field-label {
      display: block;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.07em;
      color: var(--slate-500);
      margin-bottom: 8px;
    }

    .field-input {
      width: 100%;
      padding: 14px 18px;
      border: 2px solid var(--slate-200);
      border-radius: 14px;
      font-size: 16px;
      font-family: 'Plus Jakarta Sans', sans-serif;
      color: var(--slate-800);
      background: rgba(255,255,255,0.8);
      transition: all 0.2s;
      margin-bottom: 20px;
    }

    .field-input:focus {
      outline: none;
      border-color: var(--indigo-light);
      background: white;
      box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
    }

    /* buttons */
    .btn-start {
      width: 100%;
      padding: 17px;
      background: linear-gradient(135deg, var(--indigo), var(--violet));
      color: white;
      border: none;
      border-radius: 16px;
      font-size: 16px;
      font-weight: 700;
      font-family: 'Outfit', sans-serif;
      cursor: pointer;
      transition: all 0.25s;
      letter-spacing: 0.02em;
    }

    .btn-start:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 28px rgba(79,70,229,0.4);
    }

    /* TOPBAR */
    .topbar {
      background: rgba(255,255,255,0.85);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(255,255,255,0.6);
      padding: 14px 28px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 50;
      box-shadow: 0 2px 16px rgba(79,70,229,0.07);
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .brand-icon {
      width: 42px;
      height: 42px;
      background: linear-gradient(135deg, var(--indigo), var(--violet));
      border-radius: 13px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      box-shadow: 0 4px 12px rgba(79,70,229,0.3);
    }

    .brand h2 {
      font-family: 'Outfit', sans-serif;
      font-size: 18px;
      font-weight: 800;
    }

    .brand span { color: var(--indigo-light); }

    .react-badge {
      background: linear-gradient(135deg, #61dafb22, #61dafb11);
      border: 1px solid #61dafb44;
      color: #0ea5e9;
      font-size: 11px;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 99px;
      font-family: 'Outfit', sans-serif;
    }

    .top-right { display: flex; align-items: center; gap: 12px; }

    .btn-reset {
      padding: 8px 16px;
      background: var(--slate-100);
      border: none;
      border-radius: 10px;
      font-size: 13px;
      font-weight: 600;
      color: var(--slate-500);
      cursor: pointer;
      transition: all 0.2s;
      font-family: 'Plus Jakarta Sans', sans-serif;
    }

    .btn-reset:hover { background: var(--rose); color: white; }

    /* LAYOUT */
    .main {
      max-width: 1200px;
      margin: 0 auto;
      padding: 28px 20px;
      display: grid;
      grid-template-columns: 1fr 370px;
      gap: 22px;
    }

    @media (max-width: 880px) { .main { grid-template-columns: 1fr; } }

    /* CARDS */
    .card {
      background: rgba(255,255,255,0.85);
      backdrop-filter: blur(12px);
      border: 1px solid rgba(255,255,255,0.7);
      border-radius: 22px;
      padding: 24px;
      box-shadow: var(--card-shadow);
      transition: box-shadow 0.25s;
      margin-bottom: 20px;
    }

    .card:last-child { margin-bottom: 0; }
    .card:hover { box-shadow: var(--card-hover); }

    .card-title {
      font-family: 'Outfit', sans-serif;
      font-size: 16px;
      font-weight: 800;
      color: var(--slate-800);
      margin-bottom: 18px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    /* STAT GRID */
    .stat-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
      margin-bottom: 20px;
    }

    @media (max-width: 500px) { .stat-grid { grid-template-columns: 1fr; } }

    .stat-card {
      background: rgba(255,255,255,0.85);
      backdrop-filter: blur(12px);
      border: 1px solid rgba(255,255,255,0.7);
      border-radius: 20px;
      padding: 20px;
      box-shadow: var(--card-shadow);
      transition: all 0.25s;
      position: relative;
      overflow: hidden;
    }

    .stat-card:hover { transform: translateY(-2px); box-shadow: var(--card-hover); }

    .stat-glow {
      position: absolute;
      top: -20px; right: -20px;
      width: 80px; height: 80px;
      border-radius: 50%;
      opacity: 0.12;
    }

    .stat-label {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--slate-500);
      margin-bottom: 8px;
    }

    .stat-value {
      font-family: 'Outfit', sans-serif;
      font-size: 26px;
      font-weight: 900;
      line-height: 1;
    }

    .stat-sub {
      font-size: 12px;
      color: var(--slate-500);
      margin-top: 5px;
    }

    .c-indigo { color: var(--indigo); }
    .c-violet { color: var(--violet); }
    .c-emerald { color: var(--emerald-dark); }
    .c-amber { color: #d97706; }
    .c-rose { color: var(--rose); }
    .bg-indigo { background: var(--indigo); }
    .bg-violet { background: var(--violet); }
    .bg-emerald { background: var(--emerald); }
    .bg-amber { background: var(--amber); }

    /* PROGRESS */
    .prog-bar-bg {
      background: var(--slate-100);
      border-radius: 99px;
      height: 12px;
      overflow: hidden;
    }

    .prog-bar-fill {
      height: 100%;
      border-radius: 99px;
      transition: width 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .prog-fill-safe { background: linear-gradient(90deg, var(--indigo), var(--violet)); }
    .prog-fill-warn { background: linear-gradient(90deg, var(--amber), #fbbf24); }
    .prog-fill-danger { background: linear-gradient(90deg, var(--rose), #fb7185); }

    .prog-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
    }

    /* STATUS */
    .status-banner {
      border-radius: 16px;
      padding: 18px 20px;
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 20px;
      animation: fadeIn 0.4s ease;
      border-left: 4px solid transparent;
    }

    .status-safe { background: #ede9fe; border-left-color: var(--indigo); }
    .status-warn { background: #fef3c7; border-left-color: var(--amber); }
    .status-danger { background: #ffe4e6; border-left-color: var(--rose); }

    .status-icon { font-size: 28px; flex-shrink: 0; }

    .status-title {
      font-family: 'Outfit', sans-serif;
      font-size: 15px;
      font-weight: 800;
    }

    .status-safe .status-title { color: #3730a3; }
    .status-warn .status-title { color: #92400e; }
    .status-danger .status-title { color: #9f1239; }

    .status-desc { font-size: 13px; color: var(--slate-500); margin-top: 3px; }

    /* FORM */
    .expense-form {
      display: grid;
      gap: 12px;
    }

    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

    @media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

    .form-input, .form-select, .form-textarea {
      width: 100%;
      padding: 12px 14px;
      border: 2px solid var(--slate-200);
      border-radius: 12px;
      font-size: 14px;
      font-family: 'Plus Jakarta Sans', sans-serif;
      color: var(--slate-800);
      background: rgba(255,255,255,0.8);
      transition: all 0.2s;
    }

    .form-input:focus, .form-select:focus, .form-textarea:focus {
      outline: none;
      border-color: var(--indigo-light);
      background: white;
      box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
    }

    .form-textarea { resize: none; height: 72px; }

    .btn-add {
      width: 100%;
      padding: 13px;
      background: linear-gradient(135deg, var(--indigo), var(--violet));
      color: white;
      border: none;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 700;
      font-family: 'Outfit', sans-serif;
      cursor: pointer;
      transition: all 0.2s;
    }

    .btn-add:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(79,70,229,0.35);
    }

    .daily-tip {
      text-align: center;
      font-size: 12px;
      color: var(--slate-500);
      padding: 8px 12px;
      background: var(--slate-50);
      border-radius: 10px;
    }

    .daily-tip strong { color: var(--indigo); }

    /* EXPENSE LIST */
    .exp-count-badge {
      background: var(--slate-100);
      color: var(--slate-500);
      font-size: 12px;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 99px;
    }

    .expense-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 13px;
      border-radius: 14px;
      background: var(--slate-50);
      margin-bottom: 10px;
      transition: all 0.2s;
      animation: slideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .expense-item:hover { background: #f0effe; }
    .expense-item:last-child { margin-bottom: 0; }

    .cat-icon {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      flex-shrink: 0;
    }

    .ci-food { background: #fef3c7; }
    .ci-transport { background: #dbeafe; }
    .ci-bills { background: #ede9fe; }
    .ci-others { background: #fce7f3; }

    .exp-info { flex: 1; min-width: 0; }

    .exp-note {
      font-size: 14px;
      font-weight: 600;
      color: var(--slate-700);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .exp-meta { font-size: 12px; color: var(--slate-500); margin-top: 2px; }

    .exp-amount {
      font-family: 'Outfit', sans-serif;
      font-size: 16px;
      font-weight: 800;
      color: var(--rose);
      flex-shrink: 0;
    }

    .btn-icon {
      background: none;
      border: none;
      cursor: pointer;
      font-size: 15px;
      color: var(--slate-400);
      padding: 5px;
      border-radius: 8px;
      transition: all 0.2s;
      flex-shrink: 0;
    }

    .btn-icon:hover { background: #ede9fe; color: var(--indigo); }
    .btn-icon.del:hover { background: #ffe4e6; color: var(--rose); }

    .empty-state {
      text-align: center;
      padding: 36px 20px;
      color: var(--slate-400);
    }

    .empty-state .es-emoji { font-size: 48px; margin-bottom: 12px; }
    .empty-state p { font-size: 14px; }

    /* CAT BARS */
    .cat-row {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
    }

    .cat-row:last-child { margin-bottom: 0; }
    .cat-lbl { font-size: 13px; font-weight: 600; color: var(--slate-700); flex: 1; }
    .cat-bg { flex: 2; height: 8px; background: var(--slate-100); border-radius: 99px; overflow: hidden; }

    .cat-fill {
      height: 100%;
      border-radius: 99px;
      transition: width 0.5s ease;
    }

    .cf-food { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
    .cf-transport { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
    .cf-bills { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
    .cf-others { background: linear-gradient(90deg, #ec4899, #f472b6); }

    .cat-amt { font-size: 12px; font-weight: 700; color: var(--slate-600); min-width: 55px; text-align: right; }

    /* TIPS */
    .tip-item {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      padding: 12px;
      border-radius: 12px;
      background: var(--slate-50);
      margin-bottom: 8px;
    }

    .tip-item:last-child { margin-bottom: 0; }
    .tip-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
    .tip-text { font-size: 13px; color: var(--slate-600); line-height: 1.5; }

    /* SIDEBAR */
    .sidebar { display: flex; flex-direction: column; gap: 0; }

    /* MODAL */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.45);
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(6px);
    }

    .modal-box {
      background: white;
      border-radius: 28px;
      padding: 32px;
      width: 90%;
      max-width: 440px;
      box-shadow: 0 30px 80px rgba(0,0,0,0.25);
      animation: pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .modal-title {
      font-family: 'Outfit', sans-serif;
      font-size: 20px;
      font-weight: 800;
      margin-bottom: 20px;
    }

    .modal-actions { display: flex; gap: 10px; margin-top: 16px; }

    .btn-cancel {
      flex: 1;
      padding: 12px;
      border: 2px solid var(--slate-200);
      border-radius: 12px;
      background: white;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      color: var(--slate-600);
      font-family: 'Plus Jakarta Sans', sans-serif;
      transition: all 0.2s;
    }

    .btn-cancel:hover { background: var(--slate-100); }

    .btn-save {
      flex: 2;
      padding: 12px;
      border: none;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--indigo), var(--violet));
      color: white;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      font-family: 'Outfit', sans-serif;
      transition: all 0.2s;
    }

    .btn-save:hover { box-shadow: 0 4px 16px rgba(79,70,229,0.35); }

    /* ANIMATIONS */
    @keyframes pop {
      from { opacity: 0; transform: scale(0.92); }
      to { opacity: 1; transform: scale(1); }
    }

    @keyframes slideIn {
      from { opacity: 0; transform: translateX(-18px); }
      to { opacity: 1; transform: translateX(0); }
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }