:root {
    --bg: #000000;
    --bg-card: #1a1a1a;
    --bg-hover: #252525;
    --text: #ffffff;
    --text-muted: #888888;
    --accent: #ff6b35;
    --positive: #00c853;
    --negative: #ff5252;
    --border: #333333;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: 80px;
}

#app {
    max-width: 500px;
    margin: 0 auto;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

header h1 {
    font-size: 18px;
    font-weight: 600;
}

.header-left, .header-right {
    font-size: 20px;
    opacity: 0.7;
}

/* Portfolio tabs */
.portfolio-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ptab {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}

.ptab.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

/* Filters */
.filters {
    display: flex;
    gap: 8px;
    padding: 8px 16px;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
}

/* Summary */
.summary {
    padding: 20px 16px;
}

.summary-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.summary-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
}

.summary-value .currency {
    font-size: 16px;
    color: var(--text-muted);
    margin-left: 8px;
}

.summary-change {
    font-size: 16px;
    font-weight: 500;
}

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

/* Chart placeholder */
.chart-placeholder {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border);
}

.chart-line {
    height: 100px;
    background: linear-gradient(180deg, rgba(255,82,82,0.2) 0%, transparent 100%);
    border-bottom: 2px solid var(--negative);
    margin-bottom: 16px;
}

.chart-periods {
    display: flex;
    justify-content: space-around;
}

.chart-periods span {
    font-size: 12px;
    color: var(--text-muted);
    padding: 6px 12px;
    cursor: pointer;
}

.chart-periods span.active {
    background: var(--bg-card);
    border-radius: 12px;
    color: var(--text);
}

/* Holdings */
.holdings-section {
    padding: 16px;
}

.holdings-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 13px;
}

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

.holding-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.holding-icon.iwda { background: #0066cc; }
.holding-icon.vwce { background: #6b7280; }
.holding-icon.btc { background: #f7931a; }
.holding-icon.eimi { background: #00a651; }
.holding-icon.eth { background: #627eea; }
.holding-icon.ppr { background: #9ca3af; }

.holding-info { flex: 1; }

.holding-symbol {
    font-weight: 600;
    font-size: 15px;
}

.holding-details {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.holding-values {
    text-align: right;
}

.holding-value {
    font-weight: 600;
    font-size: 15px;
}

.holding-change {
    font-size: 12px;
    margin-top: 2px;
}

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

/* Cash section */
.cash-section {
    padding: 16px;
    margin-top: 8px;
}

.cash-row {
    display: flex;
    align-items: center;
    padding: 14px;
    background: var(--bg-card);
    border-radius: 12px;
}

.cash-icon {
    margin-right: 12px;
    font-size: 20px;
}

.cash-label {
    flex: 1;
    font-size: 14px;
}

.cash-value {
    font-weight: 600;
    font-size: 15px;
}

/* Bottom nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    display: flex;
    justify-content: space-around;
    padding: 10px 0 24px;
    border-top: 1px solid var(--border);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--text-muted);
    cursor: pointer;
}

.nav-item.active {
    color: var(--text);
}
