* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #0066ff;
    --primary-light: #e6f0ff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fb 0%, #eff2f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}
.page { width: 100%; max-width: 520px; }
.header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.6s ease-out;
}
.icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon img {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}
.title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -1px;
}
.subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto;
}
.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}
.card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 102, 255, 0.2);
    box-shadow: 0 20px 40px rgba(31, 38, 135, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}
.warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.05) 100%);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 32px;
    display: flex;
    gap: 12px;
    animation: slideInLeft 0.5s ease-out 0.3s backwards;
}
.warning-icon { font-size: 20px; flex-shrink: 0; }
.warning-text h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.warning-text p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.form-group {
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}
label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}
.country-code {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
    min-width: 70px;
    text-align: center;
    flex-shrink: 0;
    transition: var(--transition);
}
.country-code:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: var(--primary);
}
input[type="tel"] {
    flex: 1;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}
input[type="tel"]::placeholder { color: var(--text-secondary); }
input[type="tel"]:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: var(--border);
}
input[type="tel"]:focus {
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    transform: translateY(-1px);
}
.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 25px 0;
}
.code-inputs input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.04);
    outline: none;
    transition: var(--transition);
}
.code-inputs input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px var(--primary-light);
    transform: scale(1.05);
}
.btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #0052cc 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.6s ease-out 0.5s backwards;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn:hover::before { left: 100%; }
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 102, 255, 0.3);
}
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-secondary {
    background: linear-gradient(180deg, #f3f4f6, #e5e7eb);
    color: #374151;
    font-weight: 600;
    padding: 12px 18px;
    width: auto;
    text-transform: none;
}
.btn-secondary:hover {
    background: linear-gradient(180deg, #e5e7eb, #d1d5db);
    transform: translateY(-1px);
    box-shadow: none;
}
.status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    display: none;
    animation: slideUp 0.3s ease-out;
}
.status.show { display: block; }
.status.success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.status-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.code-section { display: none; margin-top: 25px; }
.virtual-keyboard {
    display: grid;
    gap: 8px;
    margin-top: 24px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    animation: slideUp 0.3s ease-out;
}
.keyboard-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.key-btn {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.key-btn:hover {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
    transform: translateY(-1px);
}
.key-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 102, 255, 0.15);
}
.delete-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.3);
}
.delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #dc2626;
}
.submit-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #0052cc 100%);
    color: white;
    border: none;
    font-weight: 700;
}
.submit-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}
.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.progress-section { display: none; margin-top: 25px; text-align: center; }
.progress-bar {
    width: 100%;
    height: 10px;
    background: #f1f5f9;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399, #10b981);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 0.4s ease;
    width: 0%;
    animation: shimmer 2s infinite;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #64748b;
    margin-top: 15px;
    font-weight: 500;
}
.success-animation { text-align: center; margin: 20px 0; }
.success-animation svg { width: 80px; height: 80px; margin: 0 auto; }
.checkmark {
    stroke: #10b981;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}
.footer {
    margin-top: 48px;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    animation: fadeIn 0.6s ease-out 0.6s backwards;
}
.footer a { color: var(--primary); text-decoration: none; }
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.button-group .btn { flex: 1; }
@media (max-width: 640px) {
    .card { padding: 32px 24px; border-radius: 20px; }
    .title { font-size: 28px; }
    .subtitle { font-size: 15px; }
    .header { margin-bottom: 40px; }
    .icon { font-size: 56px; margin-bottom: 16px; }
}
@media (max-width: 480px) {
    .card { padding: 28px 20px; border-radius: 18px; }
    .title { font-size: 24px; }
    .subtitle { font-size: 14px; }
    .icon { font-size: 48px; }
    .header { margin-bottom: 32px; }
    .input-wrapper { gap: 8px; }
    .country-code { padding: 12px 14px; font-size: 14px; min-width: 65px; }
    input[type="tel"] { padding: 12px 14px; }
    .code-inputs input { width: 45px; height: 45px; font-size: 18px; }
    .button-group { flex-direction: column; }
}