:root {
    --primary-blue: #007AFF;
    --dark-blue: #0056b3;
    --bg-white: #F2F4F7;
    --card-white: #FFFFFF;
    --text-black: #1A1D23;
    --text-gray: #6B7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

body {
    background-color: var(--bg-white);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 400px;
}

.card {
    background: var(--card-white);
    border-radius: 24px;
    padding: 40px 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 12px;
}

.sub-copy {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.5;
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 8px;
    padding-left: 4px;
}

select, input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    font-size: 16px;
    background-color: #F9FAFB;
    outline: none;
    transition: border-color 0.2s;
}

select:focus, input:focus {
    border-color: var(--primary-blue);
}

#check-btn {
    width: 100%;
    height: 56px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    transition: background-color 0.2s;
}

#check-btn:active {
    background-color: var(--dark-blue);
    transform: scale(0.98);
}

.premium-btn {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #6366F1 0%, #a855f7 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.premium-btn:active {
    transform: scale(0.98);
}

/* 로딩 화면 */
#loading-screen {
    text-align: center;
    padding: 40px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 122, 255, 0.1);
    border-left-color: var(--primary-blue);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

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

/* 결과 화면 */
.result-header h2 {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.result-copy {
    font-size: 16px;
    color: var(--text-black);
    margin-bottom: 32px;
}

.result-copy .count {
    font-weight: 700;
    color: var(--primary-blue);
}

.retry-btn {
    width: 100%;
    padding: 14px;
    background: #F3F4F6;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
}

.hidden {
    display: none !important;
}
