:root {
    --color-bg: #1A1A2E;
    --color-bg-lighter: #16213E;
    --color-card: #2A2A4E;
    --color-card-lighter: #3A3A5E;
    --color-teal: #4ECDC4;
    --color-teal-dark: #45b7aa;
    --color-coral: #F0544F;
    --color-coral-dark: #d94440;
    --color-text: #FFFFFF;
    --color-text-dim: rgba(255, 255, 255, 0.7);
    --color-text-muted: rgba(255, 255, 255, 0.5);
    --color-border: rgba(78, 205, 196, 0.3);
    --color-success: #4CAF50;
    --color-warning: #FF9800;
    --color-error: #f44336;
    --color-price-1: #4CAF50;
    --color-price-2: #FF9800;
    --color-price-3: #f44336;
    --color-price-4: #c62828;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-btn: 0 4px 12px rgba(0, 0, 0, 0.3);
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --font-mono: 'Courier New', monospace;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

#app {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-teal);
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

input, button, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--color-text-muted);
    border-radius: 2px;
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-card-lighter);
    border-top-color: var(--color-teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Screen container */
.screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 16px;
    position: relative;
}

/* Utility */
.text-center { text-align: center; }
.text-dim { color: var(--color-text-dim); }
.text-muted { color: var(--color-text-muted); }
.text-teal { color: var(--color-teal); }
.text-coral { color: var(--color-coral); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.hidden { display: none !important; }
