:root {
    --bg-primary: #FAF8F3;
    --bg-card: #FFFCF5;
    --bg-sidebar: #0D0D0D;
    --bg-sidebar-hover: #1A1A1A;
    --bg-sidebar-active: #FF7A00;

    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-sidebar: #A0A0A0;
    --text-sidebar-active: #FFFFFF;

    --accent-orange: #FF7A00;
    --accent-orange-hover: #E56D00;
    --accent-green: #22C55E;
    --accent-red: #DC2626;
    --accent-gold: #B8860B;
    --accent-purple: #7C4DFF;

    --border-color: #E5E7EB;
    --border-featured: #FF7A00;

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;

    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);

    --font-family: 'General Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 200px;
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    padding: 0 16px;
    margin-bottom: 40px;
    text-decoration: none;
}

.sidebar-logo .logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text-sidebar);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
    border-radius: 0;
}

.sidebar-nav a:hover {
    background: var(--bg-sidebar-hover);
    color: white;
}

.sidebar-nav a.active {
    background: var(--bg-sidebar-active);
    color: white;
    border-radius: var(--radius-sm);
    margin: 0 8px;
    padding: 10px 12px;
}

.sidebar-nav a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid #333;
}

.wallet-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-sidebar);
}

.wallet-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
}

.wallet-indicator .label {
    color: #666;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wallet-indicator .address {
    color: white;
    font-size: 13px;
    font-family: monospace;
}

/* Main content */
.main-content {
    flex: 1;
    margin-left: 200px;
    padding: 0 40px 32px;
    min-height: 100vh;
}

/* Top bar with wallet button */
.top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-primary);
}

.top-bar .btn-primary {
    width: auto;
    margin-top: 0;
    padding: 10px 24px;
}

.top-bar .btn-outline {
    padding: 8px 16px;
}

.page-header {
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.card.featured {
    border-color: var(--border-featured);
    border-width: 2px;
}

/* Stat cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.stat-card .label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 28px;
    font-weight: 700;
}

.stat-card .change {
    font-size: 13px;
    margin-top: 4px;
}

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

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

.stat-card .yield-pending {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Vault cards */
.vaults-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
    align-items: stretch;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.vaults-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.vaults-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FF7A00;
    letter-spacing: 0.5px;
    margin: 0;
}

.tvl-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: #FFFFFF;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}

.tvl-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.18);
    flex-shrink: 0;
}

.tvl-pill-body {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    line-height: 1.1;
}

.tvl-pill-label {
    font-size: 11px;
    font-weight: 700;
    color: #A16207;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.tvl-pill-value {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.2px;
}

.vault-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
}

.vault-card.featured {
    border-color: var(--border-featured);
    border-width: 2px;
}

.vault-card .featured-badge {
    position: absolute;
    top: 12px;
    right: 16px;
    background: var(--accent-orange);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.vault-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.vault-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: -0.3px;
    flex-shrink: 0;
}

.vault-card-header .vault-name {
    font-size: 18px;
    font-weight: 600;
}

.vault-card-header .vault-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
}

.vault-card .vault-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.vault-card .vault-detail .detail-value {
    font-weight: 600;
    color: var(--text-primary);
}

.vault-card .vault-detail .detail-value.apy {
    color: var(--accent-green);
}

.vault-card .vault-detail .detail-value.gold {
    color: var(--accent-gold);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-orange);
    color: white;
    width: 100%;
    padding: 12px;
    margin-top: 16px;
}

.btn-primary:hover {
    background: var(--accent-orange-hover);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    width: 100%;
    padding: 12px;
    margin-top: 16px;
}

.btn-secondary:hover {
    background: #F9F9F9;
}

.btn-outline {
    background: transparent;
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange);
    padding: 6px 16px;
    font-size: 13px;
}

.btn-outline:hover {
    background: var(--accent-orange);
    color: white;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.tx-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}
.tx-status-badge.completed { background: rgba(34,197,94,0.1); color: #22C55E; }
.tx-status-badge.failed { background: rgba(239,68,68,0.1); color: #EF4444; }
.tx-status-badge.refunded { background: rgba(234,179,8,0.1); color: #D97706; }
.tx-status-badge.initiated { background: rgba(59,130,246,0.1); color: #3B82F6; }
.tx-status-badge.processing { background: rgba(139,92,246,0.1); color: #8B5CF6; }

.tx-type-icon { font-size: 16px; }
.tx-date { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }

.tx-explorer {
    white-space: nowrap;
}
.tx-link {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: #FF7A00;
    border: 1px solid rgba(255, 122, 0, 0.3);
    text-decoration: none;
    background: rgba(255, 122, 0, 0.06);
}
.tx-link:hover {
    background: rgba(255, 122, 0, 0.12);
}
.tx-link:last-child {
    margin-right: 0;
}

.data-table .vault-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.data-table .vault-cell .mini-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 700;
}

/* Transaction list */
.tx-list {
    list-style: none;
}

.tx-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.tx-item:last-child {
    border-bottom: none;
}

.tx-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    font-size: 16px;
}

.tx-icon.deposit {
    background: #E8F5E9;
    color: var(--accent-green);
}

.tx-icon.withdrawal {
    background: #FFF3E0;
    color: var(--accent-orange);
}

.tx-icon.yield-earned {
    background: #FFF8E1;
    color: #F59E0B;
}

.tx-info {
    flex: 1;
}

.tx-info .tx-desc {
    font-size: 14px;
    font-weight: 500;
}

.tx-info .tx-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.tx-amount {
    font-weight: 600;
    font-size: 14px;
}

.tx-amount.positive {
    color: var(--accent-green);
}

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

/* How It Works */
.how-it-works {
    margin-top: 32px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.how-it-works h2 {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #111827;
}

.steps-row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
}

.step {
    text-align: center;
    flex: 1;
    max-width: 220px;
    background: white;
    border: 1px solid #F0EDE8;
    border-radius: 16px;
    padding: 32px 20px 24px;
    position: relative;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E2B753;
    color: white;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 8px auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.step-icon.deposit-step,
.step-icon.yield-step,
.step-icon.earn-step {
    background: rgba(218, 165, 32, 0.12);
    color: #DAA520;
}

.step h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #111827;
}

.step p {
    font-size: 12px;
    color: #9CA3AF;
    line-height: 1.5;
}

.step-arrow {
    color: #DAA520;
    font-size: 16px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    margin-top: 0;
    opacity: 0.6;
    letter-spacing: -2px;
}

/* ── How It Works v2 ── */
.hiw-section {
    margin-top: 48px;
    padding: 0;
    text-align: center;
}

.hiw-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(226, 183, 83, 0.14);
    color: #B5871F;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.hiw-heading {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.hiw-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin: 0 auto 24px auto;
    max-width: 640px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .hiw-heading { font-size: 26px; }
}

.hiw-card {
    background: white;
    border: 1px solid #F0EDE8;
    border-radius: 16px;
    padding: 0 24px 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    text-align: left;
    position: relative;
    overflow: hidden;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hiw-tabs {
    display: flex;
    border-bottom: 1px solid #F0EDE8;
}

.hiw-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.5;
}

.hiw-tab.active {
    border-bottom-color: #E2B753;
    opacity: 1;
}

.hiw-tab:hover {
    opacity: 0.85;
}

.hiw-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.hiw-card-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.hiw-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hiw-card-badge {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    flex-shrink: 0;
}

.hiw-badge-buy {
    background: rgba(255, 122, 0, 0.12);
    color: #FF7A00;
}

.hiw-badge-earn {
    background: rgba(255, 122, 0, 0.12);
    color: #FF7A00;
}

@media (max-width: 480px) {
    .hiw-tab { gap: 6px; padding: 12px 8px; }
    .hiw-tab .hiw-card-title { font-size: 13px; }
    .hiw-tab .hiw-card-badge { display: none; }
    .hiw-card { padding: 0 14px 16px; }
}

.hiw-steps-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
}

.hiw-step {
    flex: 1 1 0;
    min-width: 0;
    background: #FFFBEF;
    border: 1px solid #F3EAD2;
    border-radius: 12px;
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hiw-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #E2B753;
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hiw-step h4 {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin: 2px 0 0 0;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.hiw-step p {
    font-size: 11.5px;
    color: #6B7280;
    line-height: 1.45;
    margin: 0;
    overflow-wrap: break-word;
}

.hiw-arrow {
    display: flex;
    align-items: center;
    color: #E2B753;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    padding: 0 2px;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.donut-container {
    display: flex;
    align-items: center;
    gap: 32px;
}

.donut-chart-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
}

.donut-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donut-center-text .label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.donut-center-text .value {
    font-size: 22px;
    font-weight: 700;
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.portfolio-stats {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portfolio-stat {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.portfolio-stat .stat-label {
    color: var(--text-secondary);
}

.portfolio-stat .stat-value {
    font-weight: 600;
}

.portfolio-stat .stat-value.green {
    color: var(--accent-green);
}

/* Yield chart */
.yield-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.yield-chart-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.time-badge {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

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

/* Swap page */
.swap-wrapper {
    max-width: 520px;
    margin: 0 auto;
}

.swap-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.swap-card h2 {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

.token-input-box {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 8px;
}

.token-input-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.token-input-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.token-select {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.token-select .token-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: 700;
}

.token-amount-input {
    border: none;
    outline: none;
    text-align: right;
    font-size: 28px;
    font-weight: 600;
    font-family: var(--font-family);
    width: 50%;
    background: transparent;
}

.token-usd-value {
    text-align: right;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.swap-arrow {
    display: flex;
    justify-content: center;
    margin: 4px 0;
}

.swap-arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
}

.swap-details {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 16px;
}

.swap-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

.swap-detail-row .detail-label {
    color: var(--text-secondary);
}

.swap-detail-row .detail-value {
    font-weight: 500;
}

.swap-footer {
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Settings */
.settings-section {
    margin-bottom: 32px;
}

.settings-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-label {
    font-size: 14px;
    font-weight: 500;
}

.setting-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Section headings */
.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Wallet balance header */
.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
}

.wallet-balance {
    text-align: right;
}

.wallet-balance .label {
    font-size: 12px;
    color: var(--text-secondary);
}

.wallet-balance .value {
    font-size: 24px;
    font-weight: 700;
}

/* Token link */
.token-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.token-link:hover {
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: 16px 0;
    }
    .sidebar-logo span,
    .sidebar-nav a span {
        display: none;
    }
    .sidebar-nav a {
        justify-content: center;
        padding: 12px;
    }
    .main-content {
        margin-left: 60px;
        padding: 20px;
    }
}

/* Deposit form in vault card */
.deposit-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.deposit-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 14px;
    outline: none;
}
.deposit-input:focus {
    border-color: var(--accent-orange);
}
.deposit-input::placeholder {
    color: var(--text-secondary);
}
.tx-status-msg {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    word-break: break-all;
}

/* Hide number input spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* ── Vault Card ── */
.vc-container {
    background: #FFFCF5;
    border: 1px solid #E5E7EB;
    border-top: 3px solid #E2B753;
    border-radius: 16px;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* ── Header ── */
.vc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.vc-icon {
    background: #E2B753;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}

.vc-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.vc-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.vc-badge-gold {
    background: rgba(226,183,83,0.15);
    color: #B8860B;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.vc-active-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22C55E;
    margin-left: auto;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

/* ── Hero metric ── */
.vc-hero-section {
    text-align: center;
    margin-bottom: 12px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vc-hero-number {
    font-size: 40px;
    font-weight: 700;
    color: #E2B753;
    line-height: 1;
}

.vc-hero-label {
    font-size: 11px;
    font-weight: 600;
    color: #9CA3AF;
    letter-spacing: 0.3px;
    margin-top: 3px;
}

.vc-hero-sub {
    font-size: 10px;
    color: #B0B0B0;
    margin-top: 2px;
}

/* ── Stats grid ── */
.vc-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 12px;
    border: 1px solid #F0EDE8;
    border-radius: 8px;
    overflow: hidden;
    background: #FDFBF7;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.vc-detail-cell {
    padding: 5px 10px;
}

.vc-detail-cell:nth-child(1) { border-right: 1px solid #F0EDE8; border-bottom: 1px solid #F0EDE8; }
.vc-detail-cell:nth-child(2) { border-bottom: 1px solid #F0EDE8; }
.vc-detail-cell:nth-child(3) { border-right: 1px solid #F0EDE8; }

.vc-detail-label {
    font-size: 9px;
    color: #9CA3AF;
    margin-bottom: 1px;
    font-weight: 500;
}

.vc-detail-value {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
}

.vc-detail-value-gold {
    font-size: 12px;
    font-weight: 700;
    color: #E2B753;
}

/* ── Asset toggle ── */
.vc-tab-switcher {
    background: #F3F4F6;
    border-radius: 8px;
    padding: 2px;
    display: flex;
    margin-bottom: 4px;
    width: 180px;
    margin-left: auto;
    margin-right: auto;
}

.vc-tab-btn {
    flex: 1;
    padding: 5px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    background: transparent;
    color: #9CA3AF;
}

.vc-tab-btn.active {
    background: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    color: #111827;
}

.vc-deposit-caption {
    text-align: center;
    font-size: 10px;
    color: #9CA3AF;
    margin-bottom: 8px;
}

.vc-gold-accent {
    color: #E2B753;
    font-weight: 600;
}

/* ── Connect wallet ── */
.vc-connect-prompt {
    background: #FFFDF5;
    border: 1px solid #E2B753;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 10px;
    text-align: center;
}

.vc-connect-text {
    font-size: 13px;
    color: #E2B753;
    font-weight: 600;
}

/* ── Stepper ── */
.vc-stepper-deposit {
    margin-bottom: 8px;
    padding: 10px;
    background: #FFFDF5;
    border: 1px solid #E2B753;
    border-radius: 8px;
}

.vc-stepper-withdraw {
    margin-bottom: 8px;
    padding: 10px;
    background: #F0FDF4;
    border: 1px solid #22C55E;
    border-radius: 8px;
}

.vc-stepper-title-gold {
    font-size: 12px;
    color: #E2B753;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.vc-stepper-title-green {
    font-size: 12px;
    color: #22C55E;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.vc-stepper-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vc-stepper-item {
    display: flex;
    align-items: center;
    flex: 1;
}

.vc-stepper-dot-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

/* ── Input box ── */
.vc-input-box {
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 6px;
}

.vc-pct-row {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 8px;
}

.vc-sell-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
}

.vc-sell-pct-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vc-input-row {
    display: flex;
    align-items: center;
}

.vc-amount-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    outline: none;
    width: 100%;
    font-family: var(--font-family);
}

.vc-amount-input::placeholder {
    color: #D1D5DB;
    font-weight: 400;
}

.vc-amount-input-muted {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 22px;
    font-weight: 600;
    color: #9CA3AF;
    outline: none;
    width: 100%;
    font-family: var(--font-family);
}

.vc-token-label {
    font-weight: 700;
    color: #111827;
    font-size: 14px;
}

.vc-balance-info {
    text-align: right;
    flex-shrink: 0;
}

.vc-balance-token {
    font-weight: 700;
    color: #111827;
    font-size: 14px;
}

.vc-balance-amt {
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 1px;
}

/* ── Estimate + quote ── */
.vc-estimate {
    font-size: 12px;
    color: #E2B753;
    font-weight: 600;
    text-align: right;
    padding: 0 4px;
    margin-bottom: 4px;
}

.vc-sell-quote {
    margin-top: 8px;
    font-size: 13px;
    text-align: right;
    color: #22C55E;
    font-weight: 600;
}

/* ── Action area ── */
.vc-cta-spacer {
    margin-top: auto;
    text-align: center;
}

.vc-btn-connect {
    display: inline-block;
    padding: 8px 32px;
    background: #FF7A00;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-family);
    transition: background 0.15s;
}

.vc-btn-connect:hover {
    background: #E56D00;
}

.vc-actions {
    display: flex;
    gap: 8px;
}

.vc-btn-deposit,
.vc-btn-confirm {
    flex: 1;
    margin-top: 0;
    width: auto;
    font-size: 13px;
    padding: 10px 14px;
    background: #FF7A00;
    color: white;
    border: 2px solid #FF7A00;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.vc-btn-deposit:hover,
.vc-btn-confirm:hover {
    background: #E56D00;
    border-color: #E56D00;
}

.vc-btn-deposit:disabled,
.vc-btn-confirm:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.vc-btn-withdraw {
    flex: 1;
    margin-top: 0;
    width: auto;
    font-size: 13px;
    padding: 10px 14px;
    border: 2px solid #FF7A00;
    color: #FF7A00;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.vc-btn-withdraw:hover {
    background: rgba(255, 122, 0, 0.05);
}

.vc-btn-cancel {
    flex: 1;
    margin-top: 0;
    width: auto;
    font-size: 13px;
    padding: 10px 14px;
    border: 2px solid #E5E7EB;
    color: #6B7280;
    background: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.vc-btn-cancel:hover {
    background: #F9F9F9;
}

/* ── Status ── */
.vc-tx-status {
    margin-top: 10px;
    text-align: center;
    color: #6B7280;
    font-size: 13px;
    line-height: 18px;
    min-height: 18px;
    max-height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.vc-deposit-note-below {
    margin-top: 8px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 16px;
    color: #6B7280;
    text-align: center;
    background: rgba(226, 183, 83, 0.06);
    border: 1px dashed rgba(226, 183, 83, 0.4);
    border-radius: 8px;
}

.vc-receipt-balance {
    font-size: 11px;
    color: #E2B753;
    font-weight: 600;
    text-align: right;
    margin-top: 4px;
}

.vc-muted {
    color: #9CA3AF;
}

/* ── Page stats bar ── */
.vault-page-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0 auto 24px;
    max-width: 520px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.vps-item {
    flex: 1;
    text-align: center;
    padding: 14px 16px;
    border-right: 1px solid #F0EDE8;
}

.vps-item:last-child {
    border-right: none;
}

.vps-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #9CA3AF;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.vps-value {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.3px;
}

/* ── Single card container ── */
.vault-single-container {
    max-width: 520px;
    margin: 0 auto 40px;
}

/* ── Position summary ── */
.vc-position-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.vc-position-box {
    background: #FDFBF7;
    border: 1px solid #F0EDE8;
    border-radius: 10px;
    padding: 14px 16px;
}

.vc-position-label {
    font-size: 11px;
    color: #9CA3AF;
    font-weight: 500;
    margin-bottom: 4px;
}

.vc-position-value {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.vc-position-sub {
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 2px;
}

/* ── View tabs (Deposit / Withdraw) ── */
.vc-view-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #F0EDE8;
    margin-bottom: 14px;
}

.vc-view-tab {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #9CA3AF;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-family);
    transition: color 0.15s, border-color 0.15s;
}

.vc-view-tab.active {
    color: #FF7A00;
    border-bottom-color: #FF7A00;
}

.vc-view-tab:hover:not(.active) {
    color: #6B7280;
}

/* ── Product toggle ── */
.vc-product-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.vc-product-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: #F3F4F6;
    font-size: 13px;
    font-weight: 600;
    color: #9CA3AF;
    cursor: pointer;
    font-family: var(--font-family);
    transition: all 0.15s;
    outline: none;
}

.vc-product-tab.active {
    background: #FFFCF5;
    border-color: #E2B753;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.vc-product-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22C55E;
    flex-shrink: 0;
}

/* ── Send / Receive boxes ── */
.vc-send-box,
.vc-receive-box {
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 14px;
}

.vc-send-header,
.vc-receive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.vc-send-header .vc-tab-switcher {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    width: 160px;
    flex-shrink: 0;
}

.vc-send-label,
.vc-receive-label {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.vc-send-balance {
    font-size: 12px;
    color: #9CA3AF;
    margin-left: auto;
}

.vc-send-balance-left {
    font-size: 12px;
    color: #9CA3AF;
}

.vc-receive-info {
    font-size: 11px;
    color: #9CA3AF;
}

.vc-send-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
}

.vc-pct-btn {
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #E5E7EB;
    background: transparent;
    color: #6B7280;
    font-family: var(--font-family);
    transition: all 0.12s;
}

.vc-pct-btn.active {
    background: white;
    color: #111827;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.vc-token-name {
    font-weight: 700;
    color: #111827;
    font-size: 15px;
    flex-shrink: 0;
}

.vc-token-receive {
    color: #E2B753;
}

/* ── Arrow separator ── */
.vc-arrow-sep {
    text-align: center;
    font-size: 18px;
    color: #9CA3AF;
    padding: 6px 0;
}

/* ── Receive value ── */
.vc-receive-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vc-receive-value {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
}

.vc-rate-line {
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 8px;
    white-space: pre;
}

/* ── CTA button ── */
.vc-cta-btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 14px;
    background: #FF7A00;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-family);
    transition: background 0.15s;
}

.vc-cta-btn:hover {
    background: #E56D00;
}

.vc-cta-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.vc-cta-connect {
    background: #FF7A00;
}

/* ── Info banner ── */
.vc-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    background: #FEFCE8;
    border: 1px solid #FDE68A;
    border-radius: 10px;
    font-size: 12px;
    color: #92400E;
    line-height: 1.5;
}

.vc-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FDE68A;
    color: #92400E;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
