﻿.hwc-box {
    width: 100%;
    max-width: 332px;
    margin: 10px auto 14px;
}

.hwc-check-area {
    width: 100%;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(180, 118, 14, 0.34);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(20, 28, 40, 0.96) 0%, rgba(13, 19, 30, 0.98) 100%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

    .hwc-check-area:hover {
        border-color: rgba(180, 118, 14, 0.52);
        transform: translateY(-1px);
    }

    .hwc-check-area:focus-visible {
        outline: none;
        border-color: rgba(212, 154, 51, 0.9);
        box-shadow: 0 0 0 3px rgba(180, 118, 14, 0.14);
    }

.hwc-checkbox {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: 2px solid rgba(214, 219, 229, 0.82);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.hwc-checkmark {
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    color: #0f172a;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.18s ease;
}

.hwc-box.is-verified .hwc-checkbox {
    border-color: #d39a33;
    background: linear-gradient(180deg, #d39a33 0%, #b4760e 100%);
    box-shadow: 0 6px 16px rgba(180, 118, 14, 0.24);
}

.hwc-box.is-verified .hwc-checkmark {
    opacity: 1;
    transform: scale(1);
}

.hwc-labels {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.hwc-title {
    color: #f8fafc;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.hwc-subtitle {
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.2;
}

.hwc-brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hwc-brand-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    opacity: 0.95;
    filter: drop-shadow(0 4px 10px rgba(180, 118, 14, 0.18));
}

.hwc-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

    .hwc-modal.is-open {
        display: block;
    }

.hwc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(3px);
}

.hwc-modal-dialog {
    position: relative;
    width: calc(100% - 24px);
    max-width: 420px;
    margin: 72px auto 0;
    border: 1px solid rgba(180, 118, 14, 0.34);
    border-radius: 18px;
    background: linear-gradient(180deg, #121a27 0%, #0b1220 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
    overflow: hidden;
    z-index: 1;
}

.hwc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hwc-modal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.hwc-modal-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.hwc-modal-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.hwc-modal-title {
    color: #f8fafc;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.hwc-modal-subtitle {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.2;
}

.hwc-modal-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.hwc-modal-body {
    padding: 16px;
}

.hwc-question {
    margin-bottom: 14px;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.hwc-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.hwc-icon-option {
    height: 74px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.02) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

    .hwc-icon-option:hover {
        transform: translateY(-1px);
        border-color: rgba(180, 118, 14, 0.42);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    }

    .hwc-icon-option.is-correct {
        border-color: rgba(74, 222, 128, 0.9);
        background: linear-gradient(180deg, rgba(34, 197, 94, 0.18) 0%, rgba(21, 128, 61, 0.14) 100%);
    }

    .hwc-icon-option.is-wrong {
        border-color: rgba(248, 113, 113, 0.9);
        background: linear-gradient(180deg, rgba(239, 68, 68, 0.16) 0%, rgba(127, 29, 29, 0.14) 100%);
    }

.hwc-icon-symbol {
    color: #f8fafc;
    font-size: 28px;
    line-height: 1;
    user-select: none;
}

.hwc-modal-status {
    min-height: 20px;
    margin-top: 12px;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.4;
}

    .hwc-modal-status.is-error {
        color: #f87171;
    }

    .hwc-modal-status.is-success {
        color: #4ade80;
    }

.hwc-modal-footer {
    padding: 0 16px 16px;
}

.hwc-modal-btn {
    min-width: 110px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.hwc-modal-btn-refresh {
    background: linear-gradient(180deg, #d39a33 0%, #b4760e 100%);
    color: #111827;
    box-shadow: 0 10px 22px rgba(180, 118, 14, 0.22);
}

@media (max-width: 576px) {
    .hwc-box {
        max-width: 100%;
    }

    .hwc-check-area {
        min-height: 72px;
        padding: 12px 14px;
    }

    .hwc-modal-dialog {
        margin-top: 40px;
    }

    .hwc-icon-option {
        height: 68px;
    }

    .hwc-icon-symbol {
        font-size: 25px;
    }
}
