body {
    margin: 0;
    padding: 0;
    min-width: 100vw;
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('/style/image/main_background.png');
    overflow: hidden;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.background-pattern {
    display: none;
}

.container {
    width: 100%;
    max-width: 520px;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.logo{
    height: 100px;
    margin-bottom: 20px;
}

.logo img{
    width: 100%;
    height: 100%;
}

.qr{
    display: block;
    height: 280px;
    width: 100%;
    text-align: center;
}

.qr img{
    height: 100%;
    width: 60%;
    border-radius: 20px;
    margin-top: 30px;
}

.card {
    background: #17181c;
    width: 100%;
    max-width: 480px;
    padding: 24px 24px 20px;
    border-radius: 22px;
    text-align: center;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
}

h1 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.18;
    font-weight: 600;
    letter-spacing: normal;
}

.subtitle {
    margin: 0 0 14px;
    color: #8f959c;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 500;
}

.description {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 400;
}

.request-meta {
    margin: -2px 0 14px;
    color: #8f959c;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 400;
}

.warning {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.42;
    font-weight: 400;
}

.warning strong {
    font-weight: 600;
    color: #ffffff;
}

.main-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    min-width: 220px;
    max-width: 100%;
    min-height: 46px;
    padding: 11px 18px;
    border: none;
    outline: none;
    border-radius: 10px;
    background: #007aff;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: center;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: background-color 0.16s ease, transform 0.12s ease;
}

.main-button:hover {
    background: #229ed9;
}

.main-button:active {
    transform: translateY(1px);
}

.main-button:focus-visible {
    outline: 3px solid rgba(42, 171, 238, 0.25);
    outline-offset: 3px;
}

.input-field {
    width: 100%;
    padding: 12px 14px;
    margin: 14px 0;
    border: 1px solid #d7dbe0;
    border-radius: 12px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
    color: #1f2937;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-field:focus {
    outline: none;
    border-color: #73b4f4;
    box-shadow: 0 0 0 3px rgba(115, 180, 244, 0.14);
}

.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.ms-2 {
    margin-left: 0.5rem;
}

[id^="step"] {
    animation: slideIn 0.22s ease-out;
}

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

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.button-wrapper {
    position: relative;
    display: inline-flex;
    justify-content: center;
}

@media (min-width: 768px) {
    #mainModal h1 {
        font-size: 22px;
        line-height: 1.12;
    }

}

.button-hint {
    position: absolute;
    bottom: -29px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(32, 36, 41, 0.92);
    color: #f5f7fa;
    font-size: 12px;
    line-height: 1.25;
    padding: 7px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.button-wrapper:hover .button-hint,
.button-wrapper:focus-within .button-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0.8s;
}

@media (max-width:1024px){
    .qr{
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 14px;
    }

    .card {
        max-width: 100%;
        padding: 24px 18px 20px;
        border-radius: 18px;
    }

    h1 {
        font-size: 19px;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 12px;
    }

    .description,
    .warning {
        font-size: 14px;
    }

    .request-meta {
        font-size: 12px;
    }

    .main-button {
        min-width: 200px;
        min-height: 48px;
        font-size: 15px;
    }

    .button-hint {
        bottom: -28px;
        font-size: 11.5px;
        padding: 6px 10px;
    }
}