/* ====== Base (Fintech Pro: Black + Yellow) ====== */
:root {
    --bg: #0b0b0d;
    --card: #121216;
    --muted: #8f93a1;
    --text: #e9ecf1;
    --primary: #f1c40f;
    /* yellow */
    --primary-600: #d4ad0e;
    --success: #20c997;
    --danger: #ff5c5c;
    --border: #20222a;
    --focus: 0 0 0 3px rgba(241, 196, 15, 0.25);
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
}

/* ====== Layout ====== */
.screen {
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.card {
    width: 100%;
    max-width: 420px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.logo {
    display: block;
    width: 84px;
    height: auto;
    opacity: .95;
    margin: 4px auto 10px;
    border-radius: 50%;
}

.title {
    margin: 8px 0 4px;
    text-align: center;
    font-weight: 700;
    font-size: 22px;
}

.subtitle {
    margin: 0 0 16px;
    text-align: center;
    color: var(--muted);
}

/* ====== Controls ====== */
.label {
    display: block;
    margin: 8px 0 8px;
    color: #cfd3dd;
    font-weight: 600;
    letter-spacing: .2px;
}

.phone-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.prefix {
    background: #161821;
    color: #cfd3dd;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    min-width: 58px;
    text-align: center;
}

.phone-input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: #0f1016;
    color: var(--text);
    border-radius: 10px;
    outline: none;
}

.phone-input:focus {
    box-shadow: var(--focus);
    border-color: var(--primary)
}

.btn {
    width: 100%;
    margin-top: 14px;
    padding: 12px 14px;
    font-weight: 700;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .06s ease, background .2s ease, opacity .2s ease;
}

.btn:disabled {
    opacity: .5;
    cursor: not-allowed
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px)
}

.btn-primary {
    background: var(--primary);
    color: #000;
}

.btn-primary:active {
    transform: translateY(0)
}

.btn-success {
    background: var(--success);
    color: #000;
}

.hint {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
}

/* ====== Steps ====== */
.step {
    display: none
}

.step.active {
    display: block
}

/* ====== OTP Boxes ====== */
.otp-info {
    color: #cfd3dd;
    margin: 0 0 10px;
    text-align: center;
}

.otp-boxes {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin: 12px 0 6px;
}

.otp-input {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 14px 0;
    background: #0f1016;
    color: var(--text);
    border: 2px solid #2a2c36;
    border-radius: 10px;
    outline: none;
    transition: border .2s ease, box-shadow .15s ease;
}

.otp-input:focus {
    border-color: var(--primary);
    box-shadow: var(--focus);
}

/* ====== Resend / Change ====== */
.resend-row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 8px;
}

.link-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    padding: 8px 6px;
}

.link-btn[disabled] {
    color: #9a8f3e;
    cursor: not-allowed
}

/* ====== Toasts ====== */
.toasts {
    position: fixed;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.toast {
    min-width: 260px;
    max-width: 360px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    color: #000;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

.toast.success {
    background: #20c997;
}

.toast.error {
    background: #ff5c5c;
}

.toast.info {
    background: #f1c40f;
}