:root {
    --bg-color: #282828;
    --fg-color: #ebdbb2;
    --card-bg: #3c3836;
    --primary: #d79921; /* Gruvbox Yellow/Gold */
    --secondary: #458588; /* Gruvbox Blue */
    --accent: #b16286; /* Gruvbox Purple */
    --success: #98971a;
    --error: #cc241d;
    --surface: #504945;
}

html, body {
    background-color: #282828; /* Fallback for variable */
    background-color: var(--bg-color);
    color: var(--fg-color);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-height: 100%;
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

h1 { margin: 0; font-size: 1.5rem; }

/* Cards */
.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.hero-card {
    align-items: center;
    text-align: center;
}

.hero-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    margin: 8px 0;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-label {
    font-size: 0.85rem;
    color: #a89984;
    text-transform: uppercase;
}

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

/* Token Input */
.token-input-container {
    display: flex;
    gap: 8px;
}

input[type="text"], input[type="password"] {
    background: var(--surface);
    border: 1px solid var(--surface);
    color: var(--fg-color);
    padding: 8px;
    border-radius: 4px;
}

button {
    cursor: pointer;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    transition: opacity 0.2s;
}

button:hover {
    opacity: 0.8;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-link {
    background: transparent;
    padding: 4px 8px;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    color: #a89984;
}

.nav-link[aria-current="page"] {
    color: var(--primary) !important;
}

footer a:hover {
    color: var(--primary) !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes pulse {
    0% { border-color: var(--primary); box-shadow: 0 0 0 0 rgba(215, 153, 33, 0.4); }
    70% { border-color: var(--secondary); box-shadow: 0 0 0 10px rgba(215, 153, 33, 0); }
    100% { border-color: var(--primary); box-shadow: 0 0 0 0 rgba(215, 153, 33, 0); }
}

.pulse-icon {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}
