*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* стан поки форма */
.app-body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #2f3b5c 0, #141720 55%, #050608 100%);
    color: #f4f8ff;
}

.background {
    position: fixed;
    inset: 0;
    background: url("https://i.ibb.co/Z1wcyZcy/pis.jpg") center/cover no-repeat;
    filter: blur(0px) brightness(0.5);
    opacity: 0.9;
    z-index: -2;
}

.wrap {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.panel {
    backdrop-filter: blur(18px);
    background: rgba(9, 15, 30, 0.86);
    border-radius: 24px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.7);
    padding: 26px 24px 22px;
    border: 1px solid rgba(120, 220, 255, 0.25);
}

.app-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 18px;
}

.step {
    margin-bottom: 18px;
}

.label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    opacity: 0.8;
}

.phone-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(160, 190, 255, 0.4);
    background: rgba(10, 15, 30, 0.9);
    color: #fdfdff;
    font-size: 14px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

.phone-input::placeholder {
    color: rgba(200, 210, 230, 0.7);
}

.phone-input:focus {
    border-color: #38e0ff;
    box-shadow: 0 0 0 1px rgba(56, 224, 255, 0.4);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    margin-top: 10px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s;
    user-select: none;
}

.primary-btn {
    width: 100%;
    background: linear-gradient(135deg, #36e4ff, #21b6ff);
    color: #050814;
    box-shadow: 0 10px 30px rgba(3, 210, 255, 0.55);
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(3, 210, 255, 0.7);
}

.primary-btn:active {
    transform: translateY(1px);
    box-shadow: 0 6px 16px rgba(3, 210, 255, 0.45);
}

.hint {
    font-size: 11px;
    margin-top: 8px;
    line-height: 1.4;
    opacity: 0.8;
}

.hidden {
    display: none;
}

.bubble {
    background: rgba(20, 27, 48, 0.95);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.bubble-2fa {
    font-size: 13px;
    line-height: 1.4;
}

.code-boxes {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.code-box {
    width: 44px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(150, 200, 255, 0.5);
    background: rgba(11, 18, 35, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
}

.get-code-btn {
    width: 100%;
    background: #21c4aa;
    color: #031015;
    margin-top: 8px;
    margin-bottom: 10px;
    box-shadow: 0 10px 26px rgba(9, 229, 185, 0.4);
}

.get-code-btn:hover {
    background: #1dd0b2;
}

.numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.num-key {
    height: 44px;
    border-radius: 14px;
    border: none;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(40, 214, 201, 0.92);
    color: #031015;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s;
}

.num-key:hover {
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.55);
}

.num-key:active {
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.num-key.disabled {
    background: transparent;
    box-shadow: none;
    cursor: default;
}

.num-key.backspace {
    font-size: 20px;
}

.status {
    margin-top: 10px;
    font-size: 12px;
    min-height: 18px;
}

.status.info {
    color: #c6ddff;
}

.status.error {
    color: #ff6b81;
}

.status.success {
    color: #7dffa7;
}

/* СТИЛЬ ДЛЯ ФІНАЛЬНОГО ЕКРАНУ */
.success-body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #11c7a8 0, #041018 60%, #010306 100%);
    color: #fdfdff;
}

.success-screen {
    text-align: center;
}

.success-screen h1 {
    font-size: 36px;
    margin-bottom: 8px;
}

.success-screen p {
    font-size: 16px;
}
