* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Jost', sans-serif;
    background: #EDEBE8;
    color: #1A1A1A;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 20px 24px;
}

.screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 360px;
}

.screen.hidden {
    display: none;
}

/* ШАПКА */
.logo-area {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: #1A0A0A;
    font-style: italic;
    line-height: 1.3;
}

.logo-sub {
    font-size: 10px;
    color: #7A7069;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* iOS ALERT КАРТОЧКА */
.alert-card {
    width: 100%;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(26, 10, 10, 0.12);
}

.alert-body {
    padding: 24px 20px 20px;
    text-align: center;
}

.alert-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 400;
    color: #1A1A1A;
    margin-bottom: 6px;
}

.alert-hint {
    font-size: 13px;
    color: #7A7069;
    line-height: 1.55;
    margin-bottom: 18px;
}

.alert-hint span {
    color: #1A1A1A;
    font-weight: 500;
}

.alert-input {
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    color: #1A1A1A;
    background: #F7F3F1;
    border: 1px solid #E8DDD8;
    border-radius: 10px;
    padding: 12px 14px;
    width: 100%;
    outline: none;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.alert-input:focus {
    border-color: #8B1A1A;
    background: #ffffff;
}

.alert-input::placeholder {
    color: #B8AFA8;
}

/* РАЗДЕЛИТЕЛЬ + КНОПКИ iOS стиль */
.alert-divider {
    height: 1px;
    background: #E8DDD8;
}

.alert-actions {
    display: flex;
    flex-direction: column;
}

.alert-btn {
    width: 100%;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    padding: 15px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-top: 1px solid #E8DDD8;
    -webkit-tap-highlight-color: transparent;
    color: #1A1A1A;
}

.alert-btn:first-child {
    border-top: none;
}

.alert-btn:active {
    background: #F0ECE8;
}

.alert-btn.primary {
    color: #ffffff;
    font-weight: 500;
    background: #8B1A1A;
    margin: 16px;
    border-radius: 12px;
    border-top: none !important;
    width: calc(100% - 32px);
    padding: 14px;
}

.alert-btn.primary:active {
    background: #B03030;
}

.alert-btn.muted {
    color: #7A7069;
    font-size: 13px;
    padding: 12px;
}

/* КОД — 4 клетки */
.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 4px;
}

.code-cell {
    width: 54px;
    height: 58px;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    text-align: center;
    color: #1A1A1A;
    background: #F7F3F1;
    border: 1px solid #E8DDD8;
    border-radius: 12px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    caret-color: #8B1A1A;
}

.code-cell:focus {
    border-color: #8B1A1A;
    background: #ffffff;
}

.resend-ok {
    color: #2E7D5E !important;
}

.error-mess {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 400;
    color: red;
    margin: auto;
    text-align: center;
}

#support-form {
    position: fixed;
    top: 16px;
    right: 16px;
}

.btn-support-auth {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    padding: 8px 13px;
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: rgba(139, 26, 26, 0.08);
    border: 1px solid rgba(139, 26, 26, 0.2);
    color: #8B1A1A;
}

.btn-support-auth:hover {
    background: rgba(139, 26, 26, 0.15);
    transform: translateY(-2px);
}