.compliment-card {
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(251, 248, 255, 0.95), rgba(229, 231, 255, 0.9));
    position: relative;
    overflow: hidden;
}

.compliment-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.15), transparent 60%),
        radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.12), transparent 65%);
    pointer-events: none;
}

[data-bs-theme="dark"] .compliment-card {
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
}

[data-bs-theme="dark"] .compliment-card::after {
    background: radial-gradient(circle at top left, rgba(165, 180, 252, 0.2), transparent 65%),
        radial-gradient(circle at bottom right, rgba(244, 114, 182, 0.2), transparent 70%);
}

.compliment-heading {
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(79, 70, 229, 0.9);
}

[data-bs-theme="dark"] .compliment-heading {
    color: rgba(196, 181, 253, 0.85);
}

.compliment-output {
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    font-weight: 600;
    padding: clamp(22px, 5vw, 36px);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 18px 40px rgba(56, 31, 114, 0.12);
    margin-bottom: 1.5rem;
}

[data-bs-theme="dark"] .compliment-output {
    background: rgba(30, 41, 59, 0.85);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}

.compliment-context {
    font-size: 1rem;
    max-width: 580px;
    margin: 0 auto;
}

.compliment-actions .btn {
    min-width: 180px;
}

.compliment-options {
    border-top: 1px dashed rgba(129, 140, 248, 0.35);
    padding-top: 26px;
}

.compliment-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(129, 140, 248, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compliment-check:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(79, 70, 229, 0.12);
}

.compliment-check .form-check-input {
    margin-top: 0;
    transform: scale(1.15);
}

[data-bs-theme="dark"] .compliment-check {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(165, 180, 252, 0.35);
}

.compliment-history-table td {
    vertical-align: middle;
}

.compliment-history-table td:first-child {
    white-space: nowrap;
}

.compliment-tag {
    border-radius: 999px;
    padding: 6px 16px;
    background: rgba(129, 140, 248, 0.12) !important;
    color: rgba(79, 70, 229, 0.85) !important;
}

[data-bs-theme="dark"] .compliment-tag {
    background: rgba(196, 181, 253, 0.22) !important;
    color: rgba(233, 213, 255, 0.9) !important;
}

@media (max-width: 768px) {
    .compliment-actions .btn {
        min-width: 150px;
    }

    .compliment-check {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .compliment-actions {
        flex-direction: column;
    }

    .compliment-actions .btn {
        width: 100%;
    }

    .compliment-output {
        font-size: clamp(1.4rem, 8vw, 2rem);
    }
}
