:root {
    --primary: #ff2d7a;
    --primary-dark: #e6005c;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f9fafb;
    --card: #ffffff;
    --radius: 14px;
}

* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    margin: 0;
    background: var(--bg);
    display: flex;
    justify-content: center;
    padding: 24px;
}

.container {
    width: 100%;
    max-width: 420px;
    background: var(--card);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

/* STEPPER */
.stepper {
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.step {
    text-align: center;
    flex: 1;
    font-size: 12px;
    color: var(--muted);
    cursor: pointer;
}

.step__circle {
    width: 28px;
    height: 28px;
    margin: auto;
    border-radius: 50%;
    background: #ddd;
    color: #fff;
    line-height: 28px;
    margin-bottom: 4px;
}

.step.active .step__circle {
    background: #2f2f8f;
}

/* PROGRESS */
.progress {
    height: 6px;
    background: #eee;
    border-radius: 999px;
    margin: 12px 0 20px;
    overflow: hidden;
}

.progress__bar {
    height: 100%;
    width: 33%;
    background: #2f2f8f;
    transition: .3s;
}

/* CONTENT */
.logo {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}

h2 {
    text-align: center;
    margin: 10px 0 5px;
}

.desc {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

/* BUTTONS */
button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: bold;
    cursor: pointer;
    margin-top: 6px;
}

.btn-secondary {
    background: #eee;
    color: #333;
}

/* STATES */
.error {
    color: red;
    font-size: 12px;
    margin-bottom: 10px;
}

.hidden {
    display: none;
}

.small {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    margin-top: 10px;
}

.link {
    text-align: center;
    font-size: 12px;
    color: var(--primary);
    margin-top: 5px;
    cursor: pointer;
}

/* METHODS */
.methods {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.method {
    flex: 1;
    padding: 14px;
    text-align: center;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
}

.method.active {
    border-color: var(--primary);
    background: #fff0f5;
}

/* SCREENS */
.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* notification */
/* TOAST */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 260px;
    padding: 14px 16px;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    animation: slideIn .3s ease;
}

.toast.success { background: #16a34a; }
.toast.error { background: #dc2626; }
.toast.info { background: #2563eb; }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* LOADING STATE */
button.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

button.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    animation: spin .6s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* ICONS */
.method {
    flex: 1;
    padding: 14px;
    text-align: center;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.method img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.method span {
    font-size: 13px;
    font-weight: 500;
}
.method:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* OTP */
.otp-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.otp-container input {
    width: 100%;
    height: 50px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.otp-container input:focus {
    border-color: var(--primary);
    outline: none;
}

/* AMOUNT */
.amount-wrapper {
    margin-bottom: 16px;
}

/* container that centers EVERYTHING */
.amount-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
}

/* peso now flows naturally */
.peso {
    font-size: 28px;
    font-weight: 700;
    color: var(--muted);
}

/* input behaves like text */
.amount-display input {
    border: none;
    outline: none;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    width: auto;
    min-width: 60px;
    background: transparent;
}
.amount-display:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 45, 122, 0.1);
}

/* BANNER */
.banner {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.banner img {
    max-width: 180px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.08));
}
