* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f4f2ee;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    line-height: 1.4;
}

.container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.order-card {
    background: #ffffff;
    border-radius: 36px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.03), 0 2px 4px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    text-align: center;
}

.card-header {
    padding: 36px 20px 24px;
    background: #ffffff;
    border-bottom: 1px solid #f0edea;
}

.icon {
    font-size: 52px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.card-header h1 {
    font-size: 28px;
    font-weight: 500;
    color: #5e6f8d;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}

.hint {
    font-size: 14px;
    color: #a7b6cf;
    font-weight: 400;
}

.info-panel {
    padding: 28px 24px 16px;
    background: #ffffff;
}

.info-panel p {
    margin-bottom: 20px;
    font-size: 15px;
    color: #3f4a5e;
    border-bottom: 1px dashed #efece9;
    padding-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.info-panel p:last-child {
    border-bottom: none;
}

.info-panel strong {
    font-weight: 500;
    color: #7e8aa2;
    font-size: 13.5px;
    letter-spacing: 0.2px;
}

.info-panel span {
    font-weight: 450;
    color: #2c3547;
    word-break: break-word;
}

.button-group {
    display: flex;
    gap: 14px;
    padding: 8px 24px 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    flex: 1;
    min-width: 180px;
    border: none;
    padding: 14px 12px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f6f4f2;
    color: #5b6e8c;
}

.btn-accept {
    background: #e2f0e6;
    color: #3a7658;
}

.btn-accept:hover {
    background: #d0e8d9;
    transform: translateY(-1px);
}

.btn-refuse {
    background: #fef0f0;
    color: #c27c7c;
}

.btn-refuse:hover {
    background: #fce4e4;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: 0.5;
    transform: none;
    cursor: not-allowed;
}

.loading {
    text-align: center;
    padding: 56px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: #9aaec9;
}

.spinner {
    width: 42px;
    height: 42px;
    border: 3px solid #edeae6;
    border-top: 3px solid #b2c9b0;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    margin: 20px 24px 28px;
    padding: 16px 20px;
    background: #fdf1f1;
    border-radius: 30px;
    color: #cb7a7a;
    font-size: 14px;
    text-align: center;
    font-weight: 450;
}

#finalBlock {
    padding: 48px 24px 40px;
    background: #ffffff;
}

.final-icon {
    font-size: 80px;
    margin-bottom: 16px;
    animation: popIn 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

.final-title {
    font-size: 32px;
    font-weight: 600;
    color: #1e2a3e;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

@keyframes popIn {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.toast-container {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 90vw;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    pointer-events: none;
}

.toast {
    background: #fffffff2;
    backdrop-filter: blur(12px);
    color: #3b4b62;
    padding: 12px 24px;
    border-radius: 60px;
    font-size: 14px;
    font-weight: 470;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    animation: fadeUp 0.25s ease;
    border: 1px solid #f0ece8;
}

.toast-success {
    background: #e8f3ed;
    color: #2d6a4f;
    border-left: 3px solid #88b9a3;
}

.toast-error {
    background: #feedec;
    color: #c25c5c;
    border-left: 3px solid #e2a1a1;
}

.toast-info {
    background: #edf3fa;
    color: #5e7a9f;
    border-left: 3px solid #b7cef0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 550px) {
    body {
        padding: 16px;
    }
    .order-card {
        border-radius: 28px;
    }
    .card-header {
        padding: 28px 16px 20px;
    }
    .card-header h1 {
        font-size: 24px;
    }
    .info-panel {
        padding: 20px 20px 12px;
    }
    .info-panel p {
        margin-bottom: 16px;
        gap: 5px;
    }
    .button-group {
        padding: 8px 20px 28px;
        flex-direction: column;
        align-items: stretch;
    }
    .btn {
        min-width: auto;
    }
    #finalBlock {
        padding: 36px 20px 32px;
    }
    .final-icon {
        font-size: 64px;
    }
    .final-title {
        font-size: 26px;
    }
    .toast {
        font-size: 13px;
        padding: 10px 20px;
    }
}