/* ===============================
   Base Reset
=============================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
    background: #f4f6f8;
    color: #333;
}

/* ===============================
   Layout
=============================== */

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.card {
    background: #fff;
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.card.success {
    border-top: 6px solid #28a745;
}

.card.loading {
    border-top: 6px solid #0066ff;
}

.card.error-card {
    border-top: 6px solid #dc3545;
}

/* ===============================
   Summary Box
=============================== */

.summary {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
}

.summary .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.summary .row:last-child {
    margin-bottom: 0;
}

/* ===============================
   Branding
=============================== */

.logo {
    max-width: 120px;
    margin-bottom: 16px;
}

.paid-icon {
    max-width: 80px;
    margin-bottom: 16px;
}

/* ===============================
   Typography
=============================== */

h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

p {
    font-size: 14px;
    color: #555;
    margin-bottom: 16px;
}

small.note {
    font-size: 12px;
    color: #777;
}

/* ===============================
   Forms
=============================== */

/* ===============================
   Segments (Mobile/OTP)
=============================== */

/* ===============================
   Segments (Mobile/OTP)
=============================== */

.input-group {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 24px;
    flex-wrap: nowrap;
    /* Force single line */
}

.mobile-segment,
.otp-segment {
    width: 32px;
    /* Smaller width to fit 10 items */
    height: 44px;
    font-size: 18px;
    /* Smaller font */
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 0;
    /* reset padding */
}

.mobile-segment:focus,
.otp-segment:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
    outline: none;
    transform: translateY(-2px);
}

/* ===============================
   Premium Card & Layout
=============================== */
/* ... existing code ... */

/* ===============================
   Buttons
=============================== */

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #28a745;
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.btn-primary:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-resend {
    background: transparent;
    color: #0066ff;
    border: 1px solid #0066ff;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    box-shadow: none;
    width: auto;
    display: inline-block;
}

.btn-resend:hover:not(:disabled) {
    background: rgba(0, 102, 255, 0.05);
}

.btn-resend:disabled {
    border-color: #ccc;
    color: #ccc;
    cursor: not-allowed;
}

/* ===============================
   Timer & Errors
=============================== */

.timer-box {
    margin-bottom: 16px;
    font-size: 14px;
    color: #ff3b30;
    font-weight: 600;
    background: #fff5f5;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}


/* ===============================
   Premium Card & Layout
=============================== */

body {
    background: #f0f2f5;
    color: #1d1d1f;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.container {
    padding: 20px;
}

.card {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 40px;
    max-width: 480px;
    transition: transform 0.2s ease;
}

.logo {
    max-width: 140px;
    margin-bottom: 24px;
}

h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111;
}

p {
    font-size: 15px;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* ===============================
   Buttons
=============================== */

button {
    background: #0066ff;
    color: white;
    font-weight: 600;
    padding: 16px;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.1s ease;
}

button:hover {
    background: #005ce6;
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ===============================
   Footer
=============================== */

.footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #888;
    text-align: center;
}

.footer .secure-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #28a745;
    font-weight: 500;
}

.footer .copyright {
    color: #aaa;
}

/* ===============================
    Slider to Pay
 =============================== */
/* (Keeping logic similar but refined) */
.slider-container {
    margin-top: 30px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.slider-track {
    background: #f2f2f7;
    height: 56px;
    border-radius: 28px;
    position: relative;
    border: 1px solid #e5e5ea;
}

.slider-track span {
    line-height: 54px;
    font-weight: 600;
    color: #8e8e93;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.slider-thumb {
    width: 48px;
    height: 48px;
    background: #34c759;
    /* Apple Green */
    border-radius: 50%;
    top: 3px;
    left: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
}

.slider-thumb::after {
    content: '→';
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.slider-thumb:active {
    background: #2db84d;
    cursor: grabbing;
    -webkit-tap-highlight-color: transparent;
}

/* ===============================
   Timer & Errors
=============================== */

.timer-box {
    margin-bottom: 16px;
    font-size: 14px;
    color: #ff3b30;
    font-weight: 600;
    background: #fff0f0;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

.error-text {
    color: #ff3b30;
    font-weight: 500;
}