body {
    background-color: #151a26;
    -webkit-font-smoothing: antialiased;
}

svg.review-icon-brand {
    color: #FF7A1A;
    stroke: #FF7A1A !important;
    stroke-width: 2px !important;
}

svg.review-stat-icon {
    width: 1rem !important;
    height: 1rem !important;
    flex-shrink: 0;
    fill: none !important;
}

svg.review-stat-icon--bought {
    color: #4ade80;
    stroke: #4ade80 !important;
    stroke-width: 2px !important;
}

svg.review-stat-icon--sold {
    color: #60a5fa;
    stroke: #60a5fa !important;
    stroke-width: 2px !important;
}

@media (max-width: 1023px) {
    body .swal2-container {
        z-index: 10100 !important;
    }

    .review-modal:not(.hidden) {
        background: rgba(15, 18, 28, 0.55);
        backdrop-filter: blur(24px) saturate(1.1);
        -webkit-backdrop-filter: blur(24px) saturate(1.1);
        isolation: isolate;
    }

    .review-modal__overlay {
        position: fixed !important;
        inset: 0 !important;
        z-index: 0;
        background: rgba(15, 18, 28, 0.45);
        backdrop-filter: blur(28px) saturate(1.15);
        -webkit-backdrop-filter: blur(28px) saturate(1.15);
    }

    .review-modal__dialog {
        position: relative;
        z-index: 1;
    }
}


@media (min-width: 1024px) {
    #reviewModalHost {
        display: contents;
    }

    #sidebar-content .sidebar-panel-card,
    #sidebar-content .review-form-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    #sidebar-content #reviewModal {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }

    #sidebar-content .review-modal__dialog {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0 !important;
        padding: 0 !important;
    }
}

@media (max-width: 1023px) {
    #sidebar-content .review-form-card {
        max-width: 28rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.review-avatar-link {
    display: block;
    line-height: 0;
}

.review-avatar-wrap {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #0e1219;
    background-color: #0e1219;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px) {
    .review-avatar-wrap {
        width: 3.5rem;
        height: 3.5rem;
    }
}

.review-avatar-wrap img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.review-date {
    font-size: 0.875rem;
    font-weight: 500;
    color: #a8a29e;
    letter-spacing: 0.01em;
}

.review-card-header__meta {
    padding-top: 0.1rem;
}

@media (max-width: 639px) {
    .review-card-header__meta .review-date {
        font-size: 0.75rem;
        line-height: 1.25rem;
    }

    .review-card-header__meta .flex.text-yellow-400 {
        font-size: 0.875rem;
        line-height: 1;
    }
}

.review-card--pinned {
    margin-top: 0.75rem;
    background: linear-gradient(165deg, rgba(255, 122, 26, 0.045) 0%, #111620 42%, #111620 100%) !important;
    border-color: rgba(255, 122, 26, 0.1) !important;
}

.pinned-review-badge {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.85rem;
    transform: translate(-50%, -50%);
    border-radius: 9999px;
    background: rgba(255, 122, 26, 0.22);
    border: 1px solid rgba(255, 122, 26, 0.35);
    color: #fdba74;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}

.pinned-review-badge__icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: none !important;
    fill: #fdba74 !important;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #151a26;
}

::-webkit-scrollbar-thumb {
    background: #2d3748;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a5568;
}

/* Yorum nedeni — seçilebilir kartlar */
.comment-type-picker {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-type-option {
    display: block;
    cursor: pointer;
}

.comment-type-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.comment-type-option__box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.8rem 0.95rem;
    border-radius: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-type-option:hover .comment-type-option__box {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.comment-type-option input:checked + .comment-type-option__box {
    border-color: rgba(255, 122, 26, 0.45);
    background: rgba(255, 122, 26, 0.07);
    box-shadow: 0 0 0 1px rgba(255, 122, 26, 0.12);
}

.comment-type-option input:focus-visible + .comment-type-option__box {
    outline: 2px solid rgba(255, 122, 26, 0.5);
    outline-offset: 2px;
}

.comment-type-option__radio {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.15rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.comment-type-option input:checked + .comment-type-option__box .comment-type-option__radio {
    border-color: #FF7A1A;
    background: #FF7A1A;
    box-shadow: inset 0 0 0 3px #111620;
}

.comment-type-option__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.comment-type-option__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #f3f4f6;
    line-height: 1.3;
}

.comment-type-option__desc {
    font-size: 0.8125rem;
    color: #9ca3af;
    line-height: 1.4;
}

.comment-type-option input:checked + .comment-type-option__box .comment-type-option__desc {
    color: #a8a29e;
}

.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    color: #2d3748;
    font-size: 2.25rem;
    line-height: 1;
    padding: 0 0.1rem;
    transition: color 0.2s ease-in-out, transform 0.1s ease;
}

.star-rating label:hover,
.star-rating label:hover~label,
.star-rating input:checked~label {
    color: #fbbf24;
}

.star-rating label:active {
    transform: scale(0.9);
}

.loading-dots div {
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading-dots div:nth-child(1) {
    left: 8px;
    animation: ellipsis1 0.6s infinite;
}

.loading-dots div:nth-child(2) {
    left: 8px;
    animation: ellipsis2 0.6s infinite;
}

.loading-dots div:nth-child(3) {
    left: 32px;
    animation: ellipsis2 0.6s infinite;
}

.loading-dots div:nth-child(4) {
    left: 56px;
    animation: ellipsis3 0.6s infinite;
}

@keyframes ellipsis1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes ellipsis3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes ellipsis2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(24px, 0);
    }
}