:root {
    --toss-blue: #3182f6;
    --toss-pink: #f04452;
    --toss-gray-100: #f2f4f6;
    --toss-gray-200: #e5e8eb;
    --toss-gray-600: #4e5968;
    --toss-gray-900: #191f28;
    --white: #ffffff;
    --bg: #f9fafb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--toss-gray-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.status-badge {
    font-size: 13px;
    font-weight: 600;
    color: #2da15f;
    background: #e9f5ee;
    padding: 4px 10px;
    border-radius: 20px;
}

.last-update {
    font-size: 14px;
    color: var(--toss-gray-600);
}

.card {
    background: var(--white);
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--toss-gray-900);
}

/* Portfolio Summary */
.balance-row {
    margin-top: 8px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.amount {
    font-size: 36px;
    font-weight: 700;
}

.currency {
    font-size: 20px;
    font-weight: 600;
    color: var(--toss-gray-600);
}

.yield-info {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plus { color: var(--toss-pink); }
.minus { color: var(--toss-blue); }

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
}

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

/* List Items */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--toss-gray-100);
}

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

.item-info {
    display: flex;
    flex-direction: column;
}

.item-name {
    font-weight: 600;
    font-size: 16px;
}

.item-desc {
    font-size: 13px;
    color: var(--toss-gray-600);
}

.badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

.badge-bullish { background: #fff0f1; color: var(--toss-pink); }
.badge-neutral { background: var(--toss-gray-100); color: var(--toss-gray-600); }
.badge-bearish { background: #ebf4ff; color: var(--toss-blue); }

/* Table Style */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    font-size: 13px;
    color: var(--toss-gray-600);
    padding: 12px 8px;
    font-weight: 400;
}

td {
    padding: 16px 8px;
    font-size: 15px;
    border-bottom: 1px solid var(--toss-gray-100);
}

/* Animations & Skeletons */
.skeleton-item {
    height: 60px;
    background: linear-gradient(90deg, #f2f4f6 25%, #e5e8eb 50%, #f2f4f6 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 12px;
}

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