.check-wrapper {
    max-width: 680px;
    margin: 40px auto;
    padding: 0 20px;
}

.check-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 40px 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    border: 1px solid #eef2f6;
    transition: all 0.3s ease;
}

.check-card:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.10);
}

/* Шапка */
.check-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 2px dashed #eef2f6;
}

.check-header .check-icon {
    display: inline-block;
	margin: 0;
}

.check-header .check-icon img {
    width: auto;
    height: 68px;
}

.check-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 4px 0 2px;
    letter-spacing: -0.3px;
}

.check-header .check-subtitle {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}

/* Информация */
.check-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.check-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.check-row:last-child {
    border-bottom: none;
}

.check-row .label {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.check-row .value {
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
    max-width: 60%;
}

.check-row .value .mono {
    font-family: 'SF Mono', 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}
.status-badge.active .dot {
    background: #22c55e;
}

.status-badge.activated {
    background: #fee2e2;
    color: #991b1b;
}
.status-badge.activated .dot {
    background: #ef4444;
}

.status-badge.expired {
    background: #f3f4f6;
    color: #6b7280;
}
.status-badge.expired .dot {
    background: #9ca3af;
}

.status-badge.inactive {
    background: #f3f4f6;
    color: #6b7280;
}
.status-badge.inactive .dot {
    background: #9ca3af;
}

.check-reward {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 4px 0;
    border-bottom: none;
}

.check-reward .reward-value {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.reward-items {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.reward-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.reward-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    flex-shrink: 0;
}

.reward-tokens {
    background: #dbeafe;
    color: #1e40af;
}

.reward-status {
    background: #f3f4f6;
    color: #334155;
}

.reward-status.vip-text {
    background: #ede9fe;
    color: #5b21b6;
}

.reward-status.premium-text {
    background: #fef3c7;
    color: #92400e;
}

.reward-separator {
    color: #94a3b8;
    font-weight: 300;
    font-size: 16px;
}

.reward-empty {
    color: #94a3b8;
    font-weight: 400;
}

.check-message {
    margin-top: 20px;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #5b7dbd;
}

.check-message .msg-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.check-message .msg-text {
    margin-top: 6px;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.check-message .msg-date {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
}

.check-footer-status {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
}

.check-footer-status.valid {
    background: #f0fdf4;
    color: #166534;
}

.check-footer-status.invalid {
    background: #fef2f2;
    color: #991b1b;
}

.check-footer-status.expired-status {
    background: #f3f4f6;
    color: #6b7280;
}

.check-footer-status .big-icon {
    display: block;
    font-size: 28px;
    margin-bottom: 4px;
}

.cert-code-block {
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 13px;
    background: #f1f5f9;
    padding: 2px 12px;
    border-radius: 6px;
    color: #334155;
    letter-spacing: 0.3px;
}

/* Ошибка */
.check-error {
    text-align: center;
    padding: 32px 20px;
}

.check-error .error-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 12px;
}

.check-error h2 {
    font-size: 22px;
    color: #0f172a;
    margin: 0 0 4px;
}

.check-error p {
    color: #64748b;
    margin: 0;
}

.check-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

.check-footer a {
    color: #5b7dbd;
    text-decoration: none;
}

.check-footer a:hover {
    text-decoration: underline;
}

.check-logo {
    height: 40px;
    width: auto;
}

.check-form {
    padding: 20px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #334155;
    margin-bottom: 8px;
}

.check-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 24px;
    text-align: center;
    letter-spacing: 8px;
    font-family: 'Courier New', monospace;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.check-input:focus {
    border-color: #5b7dbd;
    outline: none;
    box-shadow: 0 0 0 3px rgba(91, 125, 189, 0.15);
    background: #ffffff;
    text-decoration: none;
}

.check-input::-webkit-input-placeholder {
    letter-spacing: 2px;
    color: #a0aec0;
    font-size: 18px;
}

.check-input:-moz-placeholder {
    letter-spacing: 2px;
    color: #a0aec0;
    font-size: 18px;
}

.check-input::-moz-placeholder {
    letter-spacing: 2px;
    color: #a0aec0;
    font-size: 18px;
}

.check-input:-ms-input-placeholder {
    letter-spacing: 2px;
    color: #a0aec0;
    font-size: 18px;
}

.check-input::-webkit-outer-spin-button,
.check-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.check-input[type=number] {
    -moz-appearance: textfield;
}

.form-hint {
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    margin-top: 8px;
}

.check-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #5b7dbd, #4a6ba7);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.check-btn:hover {
    background: linear-gradient(135deg, #4a6ba7, #3d5a8f);
    transform: translateY(-1px);
}

.check-info-note {
    margin-top: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e8edf5;
    font-size: 14px;
    color: #64748b;
}

.check-info-note p {
    margin: 4px 0;
}

/* Ссылка в ошибке */
.check-error-hint a {
    color: #5b7dbd;
    text-decoration: underline;
}

.check-error-hint a:hover {
    color: #4a6ba7;
}

.check-actions {
    margin-top: 20px;
    text-align: center;
}

.check-again-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #f1f4f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.check-again-btn:hover {
    background: #e8edf5;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 575.98px) {
    .check-wrapper {
        margin: 16px auto;
        padding: 0 12px;
    }

    .check-card {
        padding: 24px 20px 20px;
        border-radius: 16px;
    }

    .check-header h1 {
        font-size: 20px;
    }

    .check-header .check-subtitle {
        font-size: 14px;
    }

    .check-header .check-icon img {
        height: 58px;
    }

    .check-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 0;
    }

    .check-row .value {
        text-align: left;
        max-width: 100%;
        width: 100%;
        font-size: 14px;
    }

    .status-badge {
        font-size: 13px;
        padding: 3px 14px;
    }

    /* Награда на мобильных */
    .check-reward .reward-value {
        justify-content: flex-start;
        width: 100%;
    }

    .reward-items {
        flex-wrap: wrap;
    }

    .reward-item {
        font-size: 13px;
        padding: 2px 8px;
    }

    .reward-icon {
        width: 16px;
        height: 16px;
    }

    .check-message {
        padding: 14px 16px;
    }

    .check-message .msg-text {
        font-size: 14px;
    }

    .check-footer-status {
        font-size: 14px;
        padding: 14px 16px;
    }

    .check-header .check-icon img {
        height: 58px;
    }

    .check-error {
        padding: 30px 16px;
    }

    .check-error .error-icon {
        font-size: 48px;
    }

    .check-error h2 {
        font-size: 20px;
    }

    .check-error p {
        font-size: 14px;
    }
}

@media (max-width: 375px) {
    .check-card {
        padding: 18px 14px 16px;
        border-radius: 12px;
    }

    .check-header h1 {
        font-size: 18px;
    }

    .check-header .check-icon img {
        height: 48px;
    }

    .check-row .label {
        font-size: 13px;
    }

    .check-row .value {
        font-size: 13px;
    }

    .status-badge {
        font-size: 12px;
        padding: 2px 12px;
    }

    .reward-item {
        font-size: 12px;
        padding: 2px 8px;
    }

    .reward-icon {
        width: 14px;
        height: 14px;
    }

    .reward-separator {
        font-size: 14px;
    }

    .check-message .msg-text {
        font-size: 13px;
    }

    .check-footer-status {
        font-size: 13px;
        padding: 12px 14px;
    }
    
    .check-again-btn {
        font-size: 13px;
    }
}