:root {
    --bg: #000000;
    --bg-secondary: #1C1C1E;
    --text: #FFFFFF;
    --text-secondary: #8E8E93;
    --card: #1C1C1E;
    --card-hover: #2C2C2E;
    --accent: #FCE300;
    --accent-text: #000000;
    --border: rgba(255, 255, 255, 0.06);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.4);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 18px;
    --radius-full: 999px;

    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background 0.4s ease, color 0.4s ease;
    font-size: 15px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior-y: contain;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    padding-top: var(--safe-top);
}

#app {
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: calc(90px + var(--safe-bottom));
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
    font-size: inherit;
    padding: 0;
}

input {
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
    color: inherit;
    font-size: inherit;
    -webkit-appearance: none;
    appearance: none;
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section {
    padding: 0 12px;
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-top: 4px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.back-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background 0.15s ease;
    flex-shrink: 0;
}

.back-btn:active {
    transform: scale(0.9);
    background: var(--card-hover);
}

.back-btn svg {
    width: 18px;
    height: 18px;
    color: var(--text);
}

svg {
    display: block;
}
