/* Review Layer & Sheet */
.review-layer {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.review-layer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.review-sheet {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    background: linear-gradient(to bottom, #1a1d29, #0f1117);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
}

@media (min-width: 768px) {
    .review-layer {
        align-items: center;
    }

    .review-sheet {
        border-radius: 24px;
        max-height: 80vh;
    }
}

.review-sheet__header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.review-sheet__eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #818cf8;
    margin-bottom: 0.5rem;
}

.review-sheet__header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.review-sheet__intro {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0.5rem 0 0;
    line-height: 1.5;
}

.review-sheet__body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.review-sheet__section {
    margin-bottom: 1.5rem;
}

.review-sheet__section:last-child {
    margin-bottom: 0;
}

.review-sheet__mode-switch {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.25rem;
}

.review-mode-button {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.review-mode-button.is-active {
    background: #818cf8;
    color: #fff;
    box-shadow: 0 2px 8px rgba(129, 140, 248, 0.3);
}

.review-mode-button:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.review-sheet__hint {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.review-sheet__hint--warning {
    color: #fbbf24;
    font-weight: 500;
}

.review-sheet__footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.review-sheet__loader {
    position: absolute;
    inset: 0;
    background: rgba(15, 17, 23, 0.95);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #fff;
    font-weight: 500;
    z-index: 10;
}

/* Review Dialog */
.review-dialog {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.review-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.review-dialog__panel {
    position: relative;
    width: 100%;
    max-width: 700px;
    background: linear-gradient(to bottom, #1a1d29, #0f1117);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s ease-out;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.review-dialog__panel h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
}

.review-dialog__panel p {
    color: #9ca3af;
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

.review-dialog__summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.review-dialog__summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.review-dialog__summary li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.review-dialog__summary li:last-child {
    border-bottom: none;
}

.review-dialog__summary li span:first-child {
    color: #9ca3af;
    font-size: 0.875rem;
}

.review-dialog__summary li span:last-child {
    color: #fff;
    font-weight: 500;
}

.review-dialog__summary p {
    color: #fff;
    font-style: italic;
    margin: 0;
    line-height: 1.6;
}

.review-dialog__status {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.review-dialog__status-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.review-dialog__actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Review Card */
.review-card {
    background: linear-gradient(135deg, rgba(26, 29, 41, 0.8), rgba(15, 17, 23, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    border-color: rgba(129, 140, 248, 0.5);
    box-shadow: 0 4px 16px rgba(129, 140, 248, 0.2);
    transform: translateY(-2px);
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.review-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card__initials {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.review-card__name {
    font-weight: 600;
    color: #fff;
    font-size: 0.9375rem;
}

.review-card__badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    background: rgba(129, 140, 248, 0.2);
    color: #818cf8;
    border-radius: 6px;
    margin-top: 0.25rem;
}

.review-card__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.review-card__date {
    font-size: 0.75rem;
    color: #9ca3af;
}

.review-card__body {
    flex: 1;
    margin-bottom: 1rem;
}

.review-card__content {
    color: #e5e7eb;
    line-height: 1.6;
    font-size: 0.9375rem;
    margin: 0 0 0.75rem;
}

.review-card__rating {
    color: #fbbf24;
    font-size: 1.125rem;
    letter-spacing: 0.1em;
}

.review-card__rating-score {
    font-weight: 700;
    color: #fbbf24;
    font-size: 1rem;
}

.review-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1rem;
}

.review-card__support {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.review-card__support[data-support-tone="positive"] {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.review-card__support[data-support-tone="negative"] {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.review-card__support[data-support-tone="neutral"] {
    color: #9ca3af;
}

.review-card__stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: #9ca3af;
}

.review-card__stats span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Responsive */
@media (max-width: 767px) {
    .review-card__header {
        flex-direction: column;
    }

    .review-card__meta {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .review-card__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-card__stats {
        width: 100%;
        justify-content: space-between;
    }
}

/* Form Styles */
.form-label {
    color: #e5e7eb;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.form-select,
.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
}

.form-select:focus,
.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
    color: #fff;
}

.form-select option {
    background: #1a1d29;
    color: #fff;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.form-check-input:checked {
    background-color: #818cf8;
    border-color: #818cf8;
}

.form-check-label {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal Overrides for All Reviews */
#allReviewsModal .modal-content {
    background: linear-gradient(to bottom, #1a1d29, #0f1117);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#allReviewsModal .modal-header {
    padding: 1.5rem;
}

#allReviewsModal .modal-title {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Global styles for profile page tag metrics (non-scoped) */
.profile-review-card__tags-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0.85rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.profile-review-card__tag-metric {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-review-card__tag-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.profile-review-card__tag-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
}

.profile-review-card__tag-name i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.profile-review-card__tag-score {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.15);
    flex-shrink: 0;
    white-space: nowrap;
}

.profile-review-card__tag-bar {
    width: 100%;
}

.profile-review-card__tag-bar .rating-bar {
    height: 8px;
}

@media (max-width: 768px) {
    .profile-review-card__tags-container {
        grid-template-columns: 1fr;
    }
}

/* Avatar link styling for community reviews */
.community-review__avatar-link {
    display: inline-block;
    border-radius: 999px;
    overflow: hidden;
    line-height: 0;
}

.community-review__avatar-link:hover {
    cursor: pointer;
    transform: translateY(-2px);
}

.community-review__avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

.community-review__avatar--placeholder {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    display: grid;
    place-items: center;
}
#allReviewsModal .modal-body {
    padding: 1.5rem;
    min-height: 400px;
}

#allReviewsModal .modal-footer {
    padding: 1.5rem;
}

/* Pagination */
.pagination {
    --bs-pagination-bg: rgba(255, 255, 255, 0.05);
    --bs-pagination-border-color: rgba(255, 255, 255, 0.1);
    --bs-pagination-hover-bg: rgba(129, 140, 248, 0.2);
    --bs-pagination-hover-border-color: #818cf8;
    --bs-pagination-focus-bg: rgba(129, 140, 248, 0.2);
    --bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(129, 140, 248, 0.25);
    --bs-pagination-active-bg: #818cf8;
    --bs-pagination-active-border-color: #818cf8;
    --bs-pagination-disabled-bg: rgba(255, 255, 255, 0.02);
    --bs-pagination-disabled-border-color: rgba(255, 255, 255, 0.05);
}

.pagination .page-link {
    color: #e5e7eb;
}

.pagination .page-item.active .page-link {
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #6b7280;
}

/* Utility */
.text-secondary {
    color: #9ca3af !important;
}

/* Empty State */
[data-reviews-empty] {
    text-align: center;
    padding: 3rem 1rem;
}

[data-reviews-empty] i {
    font-size: 3rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

[data-reviews-empty] p {
    color: #9ca3af;
    margin: 0;
}

/* Community Review Style */
.community-review {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(26, 29, 41, 0.8), rgba(15, 17, 23, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.community-review:hover {
    border-color: rgba(129, 140, 248, 0.5);
    box-shadow: 0 4px 16px rgba(129, 140, 248, 0.2);
    transform: translateY(-2px);
}

.community-review__support {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-width: 68px;
    padding: 0.85rem 0.75rem;
    gap: 0.35rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.community-review__support[data-tone="positive"] {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.community-review__support[data-tone="negative"] {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.community-review__support[data-tone="neutral"] {
    background: rgba(156, 163, 175, 0.1);
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.community-review__support-value {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.community-review__support[data-tone="positive"] .community-review__support-value {
    color: #10b981;
}

.community-review__support[data-tone="negative"] .community-review__support-value {
    color: #ef4444;
}

.community-review__support[data-tone="neutral"] .community-review__support-value {
    color: #9ca3af;
}

.community-review__support-label {
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.community-review__content {
    flex: 1;
    min-width: 0;
}

.community-review__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.community-review__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.community-review__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.community-review__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-review__avatar--placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.community-review__initials {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.community-review__name {
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
    display: block;
}

.community-review__badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    background: rgba(156, 163, 175, 0.15);
    color: #e5e7eb;
    border: 1px solid rgba(156, 163, 175, 0.25);
    border-radius: 6px;
    margin-top: 0.25rem;
}

/* Reviewer badge variants (match tiers in spec) */
.community-review__badge--danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171; /* red-400 */
    border-color: rgba(239, 68, 68, 0.35);
}

.community-review__badge--warning {
    background: rgba(251, 191, 36, 0.2);
    color: #111827; /* text-dark for readability on yellow */
    border-color: rgba(251, 191, 36, 0.45);
}

.community-review__badge--secondary {
    background: rgba(156, 163, 175, 0.18);
    color: #d1d5db;
    border-color: rgba(156, 163, 175, 0.35);
}

.community-review__badge--info {
    background: rgba(56, 189, 248, 0.18); /* sky-400 */
    color: #7dd3fc; /* sky-300 */
    border-color: rgba(56, 189, 248, 0.35);
}

.community-review__badge--primary {
    background: rgba(37, 99, 235, 0.18); /* blue-600 */
    color: #93c5fd; /* blue-300 */
    border-color: rgba(37, 99, 235, 0.35);
}

.community-review__badge--success {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7; /* emerald-300 */
    border-color: rgba(16, 185, 129, 0.35);
}

.community-review__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.community-review__username {
    font-size: 0.875rem;
    color: #9ca3af;
}

.community-review__score {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fbbf24;
}

.community-review__excerpt {
    color: #e5e7eb;
    line-height: 1.6;
    font-size: 0.9375rem;
    margin: 0 0 1rem;
}

.community-review__excerpt .tag-rating-list {
    margin-top: 0.5rem;
    gap: 0.75rem;
}

.community-review__excerpt .tag-rating-item {
    font-size: 0.875rem;
    padding: 0.75rem 0.9rem;
}

.community-review__footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.community-review__bullet {
    color: #6b7280;
}

.community-review__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 140px;
}

.community-review__action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.community-review__action-spinner {
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    margin-right: 0.35rem;
}

.community-review__action.is-loading {
    opacity: 0.8;
}

.community-review__action.is-loading .community-review__action-label,
.community-review__action.is-loading .community-review__action-count {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.community-review__action.is-loading i {
    display: none;
}

.community-review__action:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.community-review__action:disabled {
    cursor: not-allowed;
    opacity: 0.85;
}

.community-review__action.is-loading {
    opacity: 0.65;
}

.community-review__action--fair:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.community-review__action--unfair:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.community-review__action--fair.is-active {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.45);
    color: #10b981;
}

.community-review__action--unfair.is-active {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.45);
    color: #ef4444;
}

.community-review__action.is-active {
    cursor: default;
    transform: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.community-review__action i {
    font-size: 1rem;
}

.community-review__action-label {
    flex: 1;
}

.community-review__action-count {
    font-weight: 700;
    font-size: 0.875rem;
}

/* Responsive for community review */
@media (max-width: 767px) {
    .community-review {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .community-review__support {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.5rem;
        min-width: auto;
        padding: 0.75rem 1rem;
    }

    .community-review__support-value {
        font-size: 1.25rem;
        margin-bottom: 0;
    }

    .community-review__support-label {
        font-size: 0.75rem;
    }

    .community-review__header {
        flex-direction: column;
    }

    .community-review__meta {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .community-review__actions {
        flex-direction: row;
        min-width: auto;
    }

    .community-review__action {
        flex: 1;
    }
}

/* Tag Selection Styles */
.tag-category {
    margin-bottom: 1.5rem;
}

.tag-category__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #818cf8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-button {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(129, 140, 248, 0.3);
    background: rgba(129, 140, 248, 0.1);
    color: #818cf8;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-button:hover {
    background: rgba(129, 140, 248, 0.2);
    border-color: rgba(129, 140, 248, 0.5);
    transform: translateY(-1px);
}

.tag-button--selected {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    border-color: #818cf8;
    color: #fff;
    font-weight: 600;
}

.tag-button--selected:hover {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    transform: translateY(-1px);
}

/* Choices.js Custom Theming - Dark Theme */
.choices {
    margin-bottom: 0;
    font-size: 0.9375rem;
}

/* Main input container */
.choices__inner {
    background: linear-gradient(135deg, rgba(26, 29, 41, 0.8), rgba(15, 17, 23, 0.9));
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 12px;
    min-height: 48px;
    padding: 0.5rem 0.75rem;
    color: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.choices__inner:hover {
    border-color: rgba(129, 140, 248, 0.4);
    background: linear-gradient(135deg, rgba(26, 29, 41, 0.9), rgba(15, 17, 23, 1));
}

.is-focused .choices__inner,
.is-open .choices__inner {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Search input */
.choices__input {
    background-color: transparent;
    color: #fff;
    font-size: 0.9375rem;
    margin-bottom: 0;
    padding: 4px 0;
}

.choices__input::placeholder {
    color: rgba(156, 163, 175, 0.6);
    font-style: italic;
}

.choices__input:focus {
    outline: none;
}

/* Selected items (pills) */
.choices__list--multiple {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.choices__list--multiple .choices__item {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    border: 1px solid rgba(129, 140, 248, 0.5);
    border-radius: 20px;
    padding: 6px 12px 6px 14px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    margin: 0;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
    transition: all 0.2s ease;
}

.choices__list--multiple .choices__item:hover {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(99, 102, 241, 0.3);
}

/* Remove button on pills */
.choices[data-type*="select-multiple"] .choices__button {
    background: none;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 8px;
    margin-left: 8px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.choices[data-type*="select-multiple"] .choices__button:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.choices[data-type*="select-multiple"] .choices__button:focus {
    outline: none;
}

/* Dropdown menu */
.choices__list--dropdown {
    background: linear-gradient(to bottom, #1a1d29, #0f1117);
    border: 1px solid rgba(129, 140, 248, 0.3);
    border-radius: 12px;
    margin-top: 6px;
    padding: 0.5rem 0;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(129, 140, 248, 0.1);
    max-height: 300px;
    overflow-y: auto;
}

.choices__list--dropdown::-webkit-scrollbar {
    width: 8px;
}

.choices__list--dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.choices__list--dropdown::-webkit-scrollbar-thumb {
    background: rgba(129, 140, 248, 0.3);
    border-radius: 4px;
}

.choices__list--dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(129, 140, 248, 0.5);
}

/* Category headings in dropdown */
.choices__group .choices__heading {
    color: #818cf8;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.75rem 1rem 0.5rem;
    margin-top: 0.5rem;
    border-bottom: 1px solid rgba(129, 140, 248, 0.15);
    background: rgba(129, 140, 248, 0.05);
}

.choices__group:first-child .choices__heading {
    margin-top: 0;
}

/* Dropdown items */
.choices__list--dropdown .choices__item {
    color: #e5e7eb;
    font-size: 0.9375rem;
    transition: all 0.15s ease;
}

.choices__list--dropdown .choices__item--selectable {
    padding: 0.75rem 1rem;
    cursor: pointer;
    position: relative;
}

.choices__list--dropdown .choices__item--selectable:hover,
.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.6), rgba(99, 102, 241, 0.5)) !important;
    color: #fff !important;
    font-weight: 600;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #818cf8, #6366f1);
}

/* Hide selected items in dropdown */
.choices__list--dropdown .choices__item.is-selected {
    display: none;
}

/* Loading state */
.choices__placeholder {
    color: rgba(156, 163, 175, 0.6);
    opacity: 1;
}

/* Disabled state */
.choices.is-disabled .choices__inner {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
    opacity: 0.6;
}

/* No results message */
.choices__item--choice.has-no-results {
    color: rgba(156, 163, 175, 0.8);
    font-style: italic;
    text-align: center;
    padding: 1.5rem 1rem;
}

/* Animation for dropdown */
@keyframes choicesDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.is-open .choices__list--dropdown {
    animation: choicesDropdownFadeIn 0.2s ease-out;
}

/* Selected Tags with Rating */
.tag-rating-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(26, 29, 41, 0.6), rgba(15, 17, 23, 0.8));
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.tag-rating-card:hover {
    border-color: rgba(129, 140, 248, 0.4);
    background: linear-gradient(135deg, rgba(26, 29, 41, 0.8), rgba(15, 17, 23, 0.9));
    box-shadow: 0 4px 12px rgba(129, 140, 248, 0.1);
}

.tag-rating-card__info {
    flex: 0 0 200px;
}

.tag-rating-card__name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.tag-rating-card__category {
    font-size: 0.75rem;
    color: #818cf8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-rating-card__control {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tag-rating-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right,
            rgba(129, 140, 248, 0.2) 0%,
            rgba(129, 140, 248, 0.3) 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.tag-rating-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
    transition: all 0.2s ease;
}

.tag-rating-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(99, 102, 241, 0.6);
}

.tag-rating-slider::-webkit-slider-thumb:active {
    transform: scale(1.05);
}

.tag-rating-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
    transition: all 0.2s ease;
}

.tag-rating-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(99, 102, 241, 0.6);
}

.tag-rating-slider::-moz-range-track {
    background: linear-gradient(to right,
            rgba(129, 140, 248, 0.2) 0%,
            rgba(129, 140, 248, 0.3) 100%);
    border-radius: 3px;
    height: 6px;
}

.tag-rating-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #818cf8;
    min-width: 55px;
    text-align: center;
    padding: 0.25rem 0.5rem;
    background: rgba(129, 140, 248, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(129, 140, 248, 0.2);
}

.tag-rating-card__remove {
    flex-shrink: 0;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.tag-rating-card__remove:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Responsive for tag rating cards */
@media (max-width: 767px) {
    .tag-rating-card {
        flex-direction: column;
        align-items: stretch;
    }

    .tag-rating-card__info {
        flex: 1 1 auto;
    }

    .tag-rating-card__control {
        width: 100%;
    }
}

/* Tag Rating Item with Bar - For Display in Review Cards */
.tag-rating-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.tag-rating-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem;
    transition: all 0.3s ease;
}

.tag-rating-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(129, 140, 248, 0.2);
}

.tag-rating-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.tag-rating-item__name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.tag-rating-item__name i {
    color: #818cf8;
    flex-shrink: 0;
}

.tag-rating-item__score {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fbbf24;
    flex-shrink: 0;
    padding: 0.25rem 0.75rem;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.tag-rating-item__bar {
    width: 100%;
}

/* Rating Bar with 5 Cells */
.rating-bar {
    display: flex;
    gap: 0.3rem;
    width: 100%;
    height: 8px;
    align-items: center;
}

.rating-bar__cell {
    flex: 1;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.2), rgba(55, 65, 81, 0.35));
    border: 1px solid rgba(107, 114, 128, 0.35);
    border-radius: 5px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.rating-bar__fill {
    position: absolute;
    inset: 0;
    width: 0;
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    box-shadow: inset 0 0 10px rgba(250, 204, 21, 0.35);
    border-radius: inherit;
    transition: width 0.25s ease;
}

.rating-bar__cell--partial {
    border-color: rgba(251, 191, 36, 0.45);
}

.rating-bar__cell--full {
    border-color: rgba(251, 191, 36, 0.65);
    box-shadow: 0 1px 6px rgba(251, 191, 36, 0.25);
}

/* Responsive for rating bars */
@media (max-width: 767px) {
    .tag-rating-item__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .tag-rating-list {
        grid-template-columns: 1fr;
    }

    .rating-bar {
        gap: 0.25rem;
        height: 16px;
    }

    .rating-bar__cell {
        border-radius: 4px;
    }
}

/* Skeleton Loading */
.skeleton-loading {
    pointer-events: none;
    user-select: none;
}

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeletonShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-text {
    height: 16px;
    width: 100%;
    border-radius: 4px;
}

.skeleton-text--short {
    width: 40%;
}

.skeleton-text--medium {
    width: 60%;
}

.skeleton-text--xs {
    height: 12px;
    width: 30%;
}

/* Skeleton for review card */
.review-card.skeleton-loading .review-card__header {
    padding: 1.25rem;
}

.review-card.skeleton-loading .review-card__body {
    padding: 1.25rem;
    padding-top: 0;
}

@media (max-width: 767px) {
    .skeleton-avatar {
        width: 40px;
        height: 40px;
    }

    .skeleton-text {
        height: 14px;
    }

    .skeleton-text--xs {
        height: 10px;
    }
}