:root {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --primary-color: #ff4757;
    --text-primary: #ffffff;
    --text-secondary: #a4b0be;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, -apple-system, sans-serif; }

body {
    background-color: var(--bg-color); color: var(--text-primary);
    max-width: 480px; margin: 0 auto; min-height: 100vh;
    position: relative; overflow-x: hidden;
}

/* HEADER */
.app-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px; background-color: var(--surface-color);
    position: sticky; top: 0; z-index: 10;
}
.brand { font-size: 20px; font-weight: bold; color: var(--primary-color); }
.icon-btn { background: none; border: none; font-size: 24px; color: white; position: relative; cursor: pointer; }
.badge {
    position: absolute; top: -5px; right: -5px; background: var(--primary-color);
    color: white; font-size: 10px; padding: 2px 6px; border-radius: 10px; font-weight: bold;
}

/* DRAWER */
.drawer {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
    background: var(--surface-color); z-index: 100; transition: right 0.3s ease;
    display: flex; flex-direction: column; box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}
.drawer.open { right: 0; }
.drawer-header { padding: 24px 16px; font-size: 24px; font-weight: bold; border-bottom: 1px solid #333; }
.drawer-links { list-style: none; overflow-y: auto; }
.drawer-item {
    display: block; padding: 16px; color: var(--text-primary);
    text-decoration: none; border-bottom: 1px solid #2a2a2a;
}
.drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5); z-index: 90; display: none;
}
.drawer-overlay.visible { display: block; }

/* MAIN CONTENT */
main { padding: 16px; padding-bottom: 80px; }
.view { display: none; }
.view.active { display: block; }
.card { background: var(--surface-color); padding: 16px; border-radius: 8px; margin-top: 16px; }
.card h3 { color: var(--primary-color); margin-bottom: 8px; }
.card p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.4; }
.primary-btn {
    background: var(--primary-color); color: white; border: none;
    padding: 10px 16px; border-radius: 4px; font-weight: bold; width: 100%;
}

/* BOTTOM NAV */
.bottom-nav {
    position: fixed; bottom: 0; width: 100%; max-width: 480px;
    background: var(--surface-color); display: flex; justify-content: space-around;
    padding: 10px 0; border-top: 1px solid #333; z-index: 10;
}
.nav-item {
    background: none; border: none; color: var(--text-secondary);
    font-size: 12px; cursor: pointer; text-align: center;
}
.nav-item.active { color: var(--primary-color); }
.form-input {
    width: 100%;
    padding: 12px;
    margin: 8px 0 16px 0;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 4px;
    color: white;
}
.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}
progress {
    border-radius: 4px;
    background: #333;
}
progress::-webkit-progress-bar {
    background-color: #333;
    border-radius: 4px;
}
progress::-webkit-progress-value {
    background-color: var(--primary-color);
    border-radius: 4px;
}
.match-item {
    background: #2a2a2a;
    padding: 12px;
    border-radius: 4px;
    margin-top: 8px;
    border-left: 4px solid var(--primary-color);
}
