/* DashMax - Dark Theme Finance Style */
/* Colors: Teal/Green + Orange accents */

:root {
    /* Base colors */
    --bg-primary: #0a0f14;
    --bg-secondary: #111921;
    --bg-card: #151d27;
    --bg-card-hover: #1a2433;

    /* Text colors */
    --text-primary: #e8edf3;
    --text-secondary: #8b9bb0;
    --text-muted: #5a6a7d;

    /* Accent colors */
    --accent-teal: #14b8a6;
    --accent-teal-light: #2dd4bf;
    --accent-teal-dark: #0d9488;
    --accent-orange: #f97316;
    --accent-orange-light: #fb923c;

    /* Status colors */
    --positive: #22c55e;
    --positive-bg: rgba(34, 197, 94, 0.1);
    --negative: #ef4444;
    --negative-bg: rgba(239, 68, 68, 0.1);

    /* Borders */
    --border-color: #1e2a3a;
    --border-focus: var(--accent-teal);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(20, 184, 166, 0.15);

    /* Gradients */
    --gradient-teal: linear-gradient(135deg, var(--accent-teal), var(--accent-teal-light));
    --gradient-orange: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-light));
    --gradient-card: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));

    /* Sizing */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

/* Links */
a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-teal-light);
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Login Page */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(20, 184, 166, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(249, 115, 22, 0.05) 0%, transparent 50%),
        var(--bg-primary);
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo h1 {
    font-size: 1.75rem;
    background: var(--gradient-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-logo span {
    color: var(--accent-orange);
    -webkit-text-fill-color: var(--accent-orange);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--gradient-teal);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-teal);
}

.btn-danger {
    background: var(--negative);
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: 0.625rem;
    border-radius: var(--radius-sm);
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.alert-error {
    background: var(--negative-bg);
    color: var(--negative);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: var(--positive-bg);
    color: var(--positive);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* 2FA Setup */
.twofa-setup {
    text-align: center;
}

.twofa-setup .qr-container {
    background: #fff;
    padding: 1rem;
    border-radius: var(--radius-md);
    display: inline-block;
    margin: 1.5rem 0;
}

.twofa-setup .secret-key {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--accent-orange);
    word-break: break-all;
    margin-bottom: 1.5rem;
}

.twofa-code-input {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.twofa-code-input input {
    width: 3rem;
    height: 3.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
}

.twofa-code-input input:focus {
    outline: none;
    border-color: var(--accent-teal);
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header-logo {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-logo span {
    -webkit-text-fill-color: var(--accent-orange);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Dashboard Layout */
.dashboard {
    padding: 2rem 0;
}

/* Portfolio Stats */
.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: var(--accent-teal);
    box-shadow: var(--shadow-glow);
}

.stat-card.primary {
    background: var(--gradient-card);
    border-color: var(--accent-teal);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-value.positive {
    color: var(--positive);
}

.stat-value.negative {
    color: var(--negative);
}

.stat-change {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.stat-change.positive {
    color: var(--positive);
}

.stat-change.negative {
    color: var(--negative);
}

/* Charts Section */
.chart-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.chart-period {
    display: flex;
    gap: 0.5rem;
}

.chart-period button {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.chart-period button:hover,
.chart-period button.active {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
    color: #fff;
}

.chart-container {
    height: 300px;
    position: relative;
}

/* Wallets Section */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Wallet Grid */
.wallet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.wallet-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all 0.2s;
    cursor: pointer;
}

.wallet-card:hover {
    border-color: var(--accent-teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.wallet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.wallet-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.wallet-menu {
    position: relative;
}

.wallet-menu-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.25rem;
}

.wallet-menu-btn:hover {
    color: var(--text-primary);
}

.wallet-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.wallet-pnl {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.wallet-pnl-value {
    font-weight: 600;
}

.wallet-pnl-value.positive {
    color: var(--positive);
}

.wallet-pnl-value.negative {
    color: var(--negative);
}

.wallet-pnl-percent {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.75rem;
}

.wallet-pnl-percent.positive {
    background: var(--positive-bg);
    color: var(--positive);
}

.wallet-pnl-percent.negative {
    background: var(--negative-bg);
    color: var(--negative);
}

.wallet-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Add Wallet Card */
.wallet-card.add-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    border-style: dashed;
    border-width: 2px;
    cursor: pointer;
}

.wallet-card.add-new:hover {
    border-color: var(--accent-teal);
    background: rgba(20, 184, 166, 0.05);
}

.add-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-teal);
    margin-bottom: 0.75rem;
}

.wallet-card.add-new span {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.2s;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

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

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-actions .btn {
    flex: 1;
}

/* Wallet Detail Modal */
.wallet-detail-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-stat {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.detail-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.detail-stat-value {
    font-size: 1.25rem;
    font-weight: 600;
}

/* History Table */
.history-table {
    width: 100%;
    margin-top: 1.5rem;
}

.history-table th,
.history-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.history-table th {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
}

.history-table td {
    font-size: 0.875rem;
}

.history-table tr:hover td {
    background: var(--bg-secondary);
}

.history-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
}

.history-delete:hover {
    color: var(--negative);
}

/* Pie Chart Distribution */
.distribution-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.distribution-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: center;
}

.distribution-chart {
    width: 200px;
    height: 200px;
}

.distribution-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-name {
    color: var(--text-primary);
    font-weight: 500;
}

.legend-value {
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .portfolio-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .distribution-content {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .portfolio-stats {
        grid-template-columns: 1fr;
    }

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

    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .modal {
        margin: 1rem;
        padding: 1.5rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

/* Loading spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Dropdown menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 160px;
    box-shadow: var(--shadow-lg);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
}

.dropdown-item.danger {
    color: var(--negative);
}

.dropdown-item.danger:hover {
    background: var(--negative-bg);
}

/* Utility classes */
.text-positive { color: var(--positive); }
.text-negative { color: var(--negative); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    min-width: 280px;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: toastIn 0.3s ease;
}

.toast.success {
    border-color: var(--positive);
    background: linear-gradient(135deg, var(--bg-card), rgba(34, 197, 94, 0.1));
}

.toast.error {
    border-color: var(--negative);
    background: linear-gradient(135deg, var(--bg-card), rgba(239, 68, 68, 0.1));
}

.toast.info {
    border-color: var(--accent-teal);
    background: linear-gradient(135deg, var(--bg-card), rgba(20, 184, 166, 0.1));
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast.success .toast-icon { color: var(--positive); }
.toast.error .toast-icon { color: var(--negative); }
.toast.info .toast-icon { color: var(--accent-teal); }

.toast-message {
    flex: 1;
    font-size: 0.9375rem;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.25rem;
    line-height: 1;
}

.toast-close:hover {
    color: var(--text-primary);
}

.toast.hiding {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Button loading state */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn-secondary.loading::after {
    border-color: rgba(139, 155, 176, 0.3);
    border-top-color: var(--text-secondary);
}

/* Card loading overlay */
.wallet-card.loading {
    position: relative;
    pointer-events: none;
}

.wallet-card.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(21, 29, 39, 0.8);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-card.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-teal);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    z-index: 1;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-card-hover) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Click feedback ripple */
.btn:active:not(.loading) {
    transform: scale(0.97);
}

/* Portfolio Goal Section */
.goal-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem;
}

.goal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.goal-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.btn-icon-sm {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    opacity: 0.7;
    transition: all 0.2s;
}

.btn-icon-sm:hover {
    opacity: 1;
    color: var(--accent-teal);
}

.goal-values {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.goal-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.goal-separator {
    color: var(--text-muted);
}

.goal-target {
    font-size: 1.125rem;
    color: var(--accent-orange);
    font-weight: 600;
}

.goal-progress {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.goal-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-orange));
    border-radius: 4px;
    transition: width 0.5s ease;
    min-width: 2px;
}

.goal-percent {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: right;
}

/* Wallet Variation Badge */
.wallet-variation {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    margin-left: 0.5rem;
}

.wallet-variation.positive {
    background: var(--positive-bg);
    color: var(--positive);
}

.wallet-variation.negative {
    background: var(--negative-bg);
    color: var(--negative);
}

.wallet-variation.neutral {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

/* Variation in wallet card */
.wallet-last-change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border-color);
}

.wallet-last-change-label {
    color: var(--text-muted);
}

.wallet-last-change-value {
    font-weight: 600;
}

.wallet-last-change-value.positive {
    color: var(--positive);
}

.wallet-last-change-value.negative {
    color: var(--negative);
}
