:root {
    --bg-color: #0f172a;
    --surface-color: #1e293b;
    --border-color: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --success: #10b981;
    --danger: #ef4444;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

#app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    animation: fadeInDown 0.5s ease-out;
}

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

.logo .icon {
    color: var(--primary);
    font-size: 24px;
    animation: spin 10s linear infinite;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.05em;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
    color: var(--text-main);
    transform: translateY(-2px);
}

.auth-status {
    padding: 6px 12px;
    background-color: var(--surface-color);
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

.hero {
    padding: 60px 0;
    text-align: center;
    animation: fadeInUp 0.7s ease-out;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.stat-card h3 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: 700;
}

.value.positive { color: var(--success); }
.value.zero { color: var(--text-main); }
.value.neutral { color: var(--primary); }

.dashboard {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 60px;
    animation: fadeInUp 0.9s ease-out;
}

.card {
    background-color: var(--surface-color);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.card h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.chart-placeholder {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    height: 200px;
    padding-top: 20px;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary), rgba(59, 130, 246, 0.2));
    border-radius: 4px 4px 0 0;
    transition: height 1s ease-out, filter 0.2s ease;
    animation: growUp 1s ease-out;
    cursor: pointer;
}

.transaction-list {
    list-style: none;
}

.transaction-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tx-id { color: var(--text-muted); font-family: monospace; }
.tx-amount { font-weight: 600; }
.success { color: var(--success); }

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes growUp {
    from { height: 0; opacity: 0; }
    to { opacity: 1; }
}
