:root {
    --dp-body: #ffffff;
    --dp-surface: #ffffff;
    --dp-surface-muted: #fdf9f2;
    --dp-border: #ebe5da;
    --dp-border-strong: #d8d0c2;
    --dp-text: #1f1f24;
    --dp-muted: #7a7164;
    --dp-heading: #161109;
    --dp-pill: #f1ebe2;
    --dp-accent: #1d1a16;
    --dp-accent-soft: #f4efe7;
    --dp-success: #1f8a5b;
    --dp-error: #c0392b;
    --dp-shadow: 0 30px 60px rgba(28, 22, 15, 0.08);
}

body.etinion-digital-product-body {
    color: var(--dp-text);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
}

.digital-product-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 96px;
}

.digital-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--dp-muted);
    margin-bottom: 16px;
}

.digital-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.digital-breadcrumbs .separator {
    color: #b1a89a;
}

.digital-product-hero {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(320px, 4fr);
    gap: 48px;
    padding: 0px;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}


#digital-gallery-main.is-swapping {
    opacity: 0.4;
}

.hero-media-main img,
.hero-media-main video {
    width: 100%;
    height: clamp(320px, 45vw, 520px);
    object-fit: cover;
    display: block;
}

.hero-thumbs {
    display: grid;
    grid-template-columns: repeat(6, minmax(72px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.thumb-item {
    border: 0px solid var(--dp-border);
    border-radius: 3px;
    padding: 0px;
    background: var(--dp-surface);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.thumb-item.is-active {
    border-color: #d26b33;
}

.thumb-item img {
    width: 100%;
    height: 68px;
    object-fit: cover;
    border-radius: 0px;
}

.hero-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.hero-category {
    padding: 4px 10px;
    border-radius: 999px;
    background: #878787;
    color: #ffffff;
    text-transform: capitalize;
}

.rich-description-content p {
    margin-bottom: 15px;
}

.hero-details h1 {
    font-size: 30px;
    line-height: 1.1;
    margin: 0;
    color: #fff;
}

.hero-rating {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 14px;
    color: var(--dp-muted);
}

.rating-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #eeeeee;
    color: #c95c22;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rating-icon svg {
    width: 16px;
    height: 16px;
}

.hero-rating .rating-icon {
    margin-right: 2px;
}

.rating-stars {
    width: 92px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="92" height="16" viewBox="0 0 92 16" fill="none"><path d="M7.5 0L9.18 5.16H14.64L10.22 8.35L11.91 13.5L7.5 10.31L3.09 13.5L4.78 8.35L0.36 5.16H5.82L7.5 0Z" fill="%23e4ded4"/></svg>') repeat-x center;
    position: relative;
}

.rating-stars span {
    display: block;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="92" height="16" viewBox="0 0 92 16" fill="none"><path d="M7.5 0L9.18 5.16H14.64L10.22 8.35L11.91 13.5L7.5 10.31L3.09 13.5L4.78 8.35L0.36 5.16H5.82L7.5 0Z" fill="%23f4722b"/></svg>') repeat-x center;
    clip-path: inset(0 0 0 0);
}

.rating-value {
    font-weight: 600;
    color: #fff;
}

.hero-description {
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
}

.hero-description.has-toggle {
    position: relative;
}

.hero-description button {
    margin-top: 6px;
}

section.section-card.creator-card .link-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 44px;
    border: none;
    border-radius: 12px;
    background: #1d6cf2;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
    margin: 0;
}

section.section-card.creator-card .link-button:hover,
section.section-card.creator-card .link-button:focus-visible {
    background: #1553c7;
    outline: none;
}

.link-button {
    border: none;
    background: none;
    color: #d15925;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0px solid var(--dp-border-strong);
    border-radius: 4px;
    padding: 12px 16px;
    background: #f3f3f3;
    flex: 0 0 auto;
    min-width: 150px;
}

.metric-icon svg {
    width: 26px;
    height: 26px;
    color: var(--dp-heading);
    margin-bottom: -5px;
}

.metric-body {
    gap: 0;
    display: flex;
}

.metric-body span {
    display: block;
    font-size: 13px;
    color: var(--dp-muted);
}

.metric-body strong {
    font-size: 15px;
    color: var(--dp-heading);
    margin-top: -2px;
    margin-left: 5px;
}

.price-main .price-text {
    font-size: 25px;
}

.price-main {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hero-price-card {
    padding: 0px;
    display: grid;
    gap: 16px;
}

.price-stack {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.price-value {
    font-size: 34px;
    font-weight: 600;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.price-value .price-text {
    display: inline-flex;
    line-height: 1.1;
}

span.price-value.digital-price-primary.is-coin {
    font-size: 20px;
}

.coin-price-chip {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff4db;
    border: 1px solid #f5ce8c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c07a18;
}

.coin-price-chip svg,
.coin-price-chip img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.coin-price-chip--badge {
    width: 28px;
    height: 28px;
    border:none;
}

.price-strike {
    font-size: 16px;
    text-decoration: line-through;
    color: var(--dp-muted);
}

.price-badge {
    padding: 6px 12px;
    border-radius: 999px;
    background: #fbeee6;
    color: #c2551c;
    font-size: 13px;
}

.license-select label {
    display: block;
    font-size: 13px;
    color: var(--dp-muted);
    margin-bottom: 4px;
}

.license-select select {
    width: 100%;
    border: 1px solid var(--dp-border-strong);
    border-radius: 14px;
    padding: 12px;
    background: var(--dp-surface);
}

.hero-cta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.raffle-estimate-chip {
    margin-top: 10px;
    padding: 14px 18px;
    border-radius: 7px;
    border: 1px solid rgba(124, 58, 237, 0.16);
    background: linear-gradient(120deg, #f9f6ff, #f2f6ff);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--dp-heading);
}

.raffle-estimate-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    box-shadow: 0 12px 26px rgba(124, 58, 237, 0.18);
    flex-shrink: 0;
}

.raffle-estimate-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.raffle-estimate-label {
    font-size: 12px;
    color: #7d7b8f;
    letter-spacing: 0.26px;
    text-transform: uppercase;
}

.raffle-estimate-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-weight: 600;
    color: var(--dp-heading);
}

.raffle-estimate-value [data-raffle-point-value] {
    font-size: 20px;
    font-weight: 700;
}

.raffle-estimate-value span {
    font-size: 14px;
}

.raffle-estimate-unit {
    font-weight: 500;
    color: #9e9ab7;
}

.raffle-estimate-note {
    margin: 0;
    font-size: 13px;
    color: #8b88a3;
}


.buy-now-button {
    flex: 1 1 220px;
    max-width: 100%;
    border: none;
    border-radius: 4px;
    padding: 15px 22px;
    font-size: 15px;
    font-weight: 600;
    background: #E3FF00;
    color: #000;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.icon-button {
    width: 52px;
    height: 48px;
    border-radius: 4px;
    border: 1px solid #11100c;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    flex: 0 0 52px;
}

.icon-button svg {
    width: 22px;
    height: 22px;
    color: #11100c;
}

.buy-now-button:active,
.icon-button:active {
    transform: scale(0.98);
}

.buy-now-button.is-loading,
.icon-button.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.72;
}

.buy-now-button.is-loading::after,
.icon-button.is-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: dp-spin 0.8s linear infinite;
}

.icon-button.is-loading::after {
    border: 2px solid rgba(17, 16, 12, 0.4);
    border-top-color: #11100c;
}

.wishlist-button {
    border-color: #cbc1b3;
}

.wishlist-button svg {
    color: #5a5145;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.digital-product-main {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
    gap: 32px;
     padding-top: 30px;
    border-top: 1px solid #0a0a0a;
}

.digital-product-main .main-content {
    padding-right: 40px;
}

.main-content,
.sidebar {
    display: grid;
    gap: 24px;
}

.sidebar {
    align-self: start;
}

.section-card {
    padding: 0px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
}

.section-header h2 {
    font-size: 24px;
    margin: 0;
    color: #cecece;
}

.section-sub {
    font-size: 14px;
    color: var(--dp-muted);
}

.rich-description {
    position: relative;
    line-height: 1.8;
    color: #cecece;
    border-bottom: 1px solid #0a0a0a;
    padding-bottom:40px;
}

span.bar-count {
    text-align: center;
}

.rich-description.has-toggle .gradient-overlay {
    position: absolute;
    inset: auto 0 0 0;
    height: 90px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #00000000 80%);
}

.feature-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.feature-grid li {
    border: 1px dashed var(--dp-border-strong);
    border-radius: 18px;
    padding: 18px;
    background: var(--dp-surface-muted);
}

.feature-title {
    font-weight: 600;
    color: var(--dp-heading);
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--dp-border);
    border-radius: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 18px 18px;
    color: var(--dp-muted);
}

.rating-overview {
    display: grid;
    grid-template-columns: minmax(0, 220px) 1fr;
    gap: 24px;
    align-items: center;
}

.rating-score {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.rating-score-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rating-score-body p {
    margin: 0;
    color: var(--dp-muted);
}

.rating-icon-large {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--dp-surface-muted);
}

.rating-icon-large svg {
    width: 28px;
    height: 28px;
}

.score-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--dp-heading);
}

.bar-track {
    height: 6px;
    border-radius: 999px;
    background: var(--dp-border);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #d26b33;
}

.rating-bar {
    display: grid;
    grid-template-columns: 90px 1fr 60px;
    align-items: center;
    font-size: 14px;
    color: var(--dp-muted);
}

.review-placeholder {
    margin-top: 18px;
    padding: 16px;
    border-radius: 16px;
    background: var(--dp-surface-muted);
    color: var(--dp-muted);
    font-size: 14px;
}

.sidebar .section-card {
    position: static;
    color:#fff;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.detail-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--dp-border);
    font-size: 14px;
}

.detail-list li:last-child {
    border-bottom: none;
}

.digital-download-hint strong {
    color: var(--dp-success);
}

section.section-card.creator-card {
    border: 1px solid #5e5e5e;
    border-radius: 16px;
    padding: 24px;
    background: radial-gradient(circle at top left, #3a3a3a 0%, #1e1e1e 35%, #363535 70%, #404040 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.creator-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.creator-headline {
    display: flex;
    gap: 14px;
    align-items: center;
}

.creator-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--dp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dp-surface, #f9fafb);
    font-weight: 600;
    color: var(--dp-heading);
    text-transform: uppercase;
}

.creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.creator-avatar-initials {
    font-size: 20px;
    letter-spacing: 0.5px;
}

.creator-headline .label {
    font-size: 12px;
    color: var(--dp-muted);
    text-transform: capitalize;
}

.creator-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 12px;
}

.creator-stats span {
    font-size: 12px;
}

.creator-stats strong {
    display: block;
    font-size: 18px;
    color: #fff;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--dp-pill);
    color: var(--dp-heading);
    text-decoration: none;
    font-size: 13px;
}

.related-section {
    margin-top: 48px;
}

.related-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.related-controls {
    display: inline-flex;
    gap: 10px;
}

.related-nav {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--dp-border-strong);
    background: #fff;
    color: var(--dp-heading);
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.related-nav:hover {
    background: var(--dp-heading);
    color: #fff;
}

.related-carousel {
    margin-top: 24px;
    display: grid;
    grid-auto-flow: column;
    --related-gap: 18px;
    gap: var(--related-gap);
    grid-auto-columns: minmax(240px, calc((100% - (4 * var(--related-gap))) / 5));
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

@media (max-width: 1360px) {
    .related-carousel {
        grid-auto-columns: minmax(220px, calc((100% - (3 * var(--related-gap))) / 4));
    }
}

@media (max-width: 1024px) {
    .related-carousel {
        grid-auto-columns: minmax(220px, calc((100% - (1.5 * var(--related-gap))) / 2.5));
    }
}

@media (max-width: 640px) {
    .related-carousel {
        grid-auto-columns: minmax(200px, calc((100% - (0.5 * var(--related-gap))) / 1.5));
    }
    .buy-now-button {
    flex: 1 1 200px;
}
}

.related-carousel::-webkit-scrollbar {
    display: none;
}

.related-card {
    border-radius: 8px;
    background: var(--dp-surface);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    scroll-snap-align: start;
     box-shadow: var(--shadow-sm);
}

.related-cover {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.related-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-cover:hover img {
    transform: scale(1.05);
}

.related-price-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: rgba(17, 16, 12, 0.85);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.related-price-badge .related-price-text {
    display: inline-flex;
    align-items: center;
}

.related-price-badge.is-coin .coin-price-chip {
    background:transparent;
}

.related-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--dp-heading);
    text-decoration: none;
}

.related-row,
.related-stats {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: var(--dp-muted);
}

.related-author {
    color: var(--dp-heading);
    text-decoration: none;
    font-weight: 500;
}

.related-category {
    text-transform: capitalize;
}

.related-stats span {
    white-space: nowrap;
}

.related-stats span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-placeholder,
.hero-assurance,
.tag-cloud a,
.link-button {
    font-family: inherit;
}

.digital-toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: #1f1b16;
    color: #fff;
    padding: 14px 20px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 100;
}

.digital-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.digital-toast-success {
    background: var(--dp-success);
}

.digital-toast-error {
    background: var(--dp-error);
}

.digital-toast-info {
    background: #6b5f53;
}

html.js body.page-loading .digital-product-hero,
html.js body.page-loading .digital-product-main,
html.js body.page-loading .related-section {
    opacity: 0;
}

.hero-skeleton {
    display: none;
}

html.js body.page-loading .hero-skeleton {
    display: block;
}

.skeleton {
    display: block;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(110deg, #f2ede5 25%, #fbf7f1 50%, #f2ede5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s infinite;
}

.hero-skeleton {
    background: var(--dp-surface);
    border-radius: 28px;
    padding: 28px;
    border: 1px solid var(--dp-border);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Reviews */
.course-reviews {
    margin-top: 30px;
}

.course-reviews .section-subtitle {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 15px;
}

.reviews-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    color:#fff;
}

.reviews-eyebrow {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #818cf8;
    margin: 0 0 6px;
}

.reviews-cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.reviews-cta-hint {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

.reviews-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.reviews-summary-card {
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: none;
    display: flex;
    gap: 36px;
    align-items: stretch;
    width: 100%;
    flex-wrap: wrap;
}

.summary-score {
    text-align: left;
    margin: 0;
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.summary-score .score-value {
    font-size: 56px;
    line-height: 1;
    font-weight: 700;
    color: #b05a0b;
}

.summary-score .score-label {
    margin: 6px 0;
    font-weight: 600;
    color: #4338ca;
}

.summary-score .score-count {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
}

.score-stars {
    display: inline-flex;
    gap: 6px;
    margin-top: 12px;
}

.score-stars .star {
    color: #c4c9ff;
    transition: color 0.2s ease;
}

.score-stars .star.is-active {
    color: #fbbf24;
}

.score-meta {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
}

.summary-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 320px;
    margin: 0;
}

.breakdown-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.breakdown-label {
    width: 20px;
    font-weight: 600;
}

.breakdown-bar {
    flex: 1;
    height: 10px;
    background: #dfe8ff;
    border-radius: 999px;
    overflow: hidden;
}

.breakdown-progress {
    display: block;
    height: 100%;
    width: var(--progress, 0%);
    background: #6b8cff;
    border-radius: inherit;
    transition: width 0.3s ease;
}

.breakdown-value {
    font-weight: 600;
    min-width: 40px;
}

.reviews-feed-card {
    min-height: 420px;
    width: 100%;
}

.reviews-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.reviews-sort {
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 10px 52px 10px 18px;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(90deg, rgba(229, 231, 235, 0.8), rgba(229, 231, 235, 0.8)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 1px 60%, 14px 14px;
    background-position: calc(100% - 38px) 50%, calc(100% - 18px) 50%;
}

.reviews-sort:focus {
    outline: none;
    border-color: #a5b4fc;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.review-card {
    background: #ffffff;
    border-radius: 0px;
    padding: 14px 0px;
}

.review-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.review-card__profile {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.review-card__avatar {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    overflow: hidden;
}

.review-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card__avatar span {
    letter-spacing: 0.02em;
}

.review-card__identity {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-card__author {
    font-weight: 600;
    margin: 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-card__meta {
    font-size: 11px;
    margin: 0 0 0;
    color: #6b7280;
}

.review-card__verified {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.review-card__verified svg {
    stroke: currentColor;
}

.review-card__rating .star {
    color: #d1d5db;
}

.review-card__rating .star.is-active {
    color: #f59e0b;
}

.review-card__title {
    margin: 16px 0 8px;
    font-size: 18px;
    color: #fff;
}

.review-card__body {
    color: #fff;
    line-height: 1.6;
}

.review-card__badges {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.review-badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
}

.review-badge.is-pending {
    background: rgba(249, 115, 22, 0.15);
    color: #c2410c;
}

.reviews-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 20px;
    min-height: 240px;
    border-radius: 18px;
    border: 1px dashed #c7d2fe;
    background: #ffffff;
    text-align: center;
    color: #6b7280;
}

.reviews-empty__icon {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: rgba(129, 140, 248, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviews-empty__icon svg {
    color: #a5b4fc;
}

.reviews-empty__title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.reviews-empty__subtitle {
    margin: 0;
    max-width: 360px;
    color: #6b7280;
}

.reviews-skeleton {
    display: none;
    margin-top: 24px;
}

.reviews-skeleton.is-visible {
    display: grid;
    gap: 12px;
}

.reviews-skeleton .skeleton-line {
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

.reviews-skeleton .skeleton-line.short {
    width: 60%;
}

.reviews-actions {
    margin-top: 24px;
    text-align: center;
}

.reviews-error {
    color: #b91c1c;
    font-weight: 600;
    text-align: center;
    margin-top: 16px;
}

.reviews-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2147483000;
}

.reviews-modal.is-visible {
    display: flex;
}

.reviews-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(6px);
    z-index: 0;
}

.reviews-modal__panel {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    width: min(640px, 92vw);
    min-height: 420px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.25);
    z-index: 1;
}

.reviews-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.reviews-login-required {
    border: 1px dashed #d1d5db;
    border-radius: 16px;
    padding: 28px 24px;
    background: #f9fafb;
    text-align: center;
    margin-bottom: 24px;
}

.reviews-login-required__message {
    margin: 0 0 16px;
    font-size: 16px;
    color: #111827;
}

.reviews-login-required__message a {
    color: #4f46e5;
    font-weight: 600;
}

.reviews-login-required__action .etinion-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
}

.modal-close {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #9ca3af;
}

.reviews-form .form-group {
    margin-bottom: 20px;
}

.reviews-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

.reviews-form input,
.reviews-form textarea,
.reviews-form select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
}

.form-rating {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.form-rating label {
    position: relative;
    display: block;
    cursor: pointer;
}

.form-rating label span {
    display: block;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px 0;
    text-align: center;
    transition: all 0.2s ease;
}

.form-rating input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.form-rating input:checked + span {
    border-color: #4f46e5;
    background: #eef2ff;
    color: #312e81;
    font-weight: 600;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 24px;
}

.form-message {
    margin-top: 12px;
    font-weight: 600;
}

.form-message.is-error {
    color: #b91c1c;
}

.form-message.is-success {
    color: #047857;
}

.hp-field {
    position: absolute;
    left: -9999px;
}

.reviews-toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    padding: 14px 20px;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.reviews-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reviews-toast.is-error {
    background: #b91c1c;
}

.reviews-modal-open {
    overflow: hidden;
    padding-right: 0 !important;
    margin-right: 0 !important;
}

@media (max-width: 991px) {
    .reviews-cta {
        align-items: flex-start;
    }

    .reviews-summary-card {
        flex-direction: column;
    }
}

@media (max-width: 890px) {
    .reviews-summary-card {
        padding: 20px;
    }

    .reviews-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .reviews-modal {
        align-items: flex-start;
        padding: 32px 0;
    }

    .reviews-modal__panel {
        width: calc(100% - 32px);
        min-height: 70vh;
        max-height: calc(100vh - 32px);
        padding: 24px;
        border-radius: 20px;
    }

    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .reviews-header {
        display: block;
    }
}

.digital-product-shell .course-reviews .reviews-summary-card {
        background: radial-gradient(circle at top left, #090909 0%, #020628 35%, #000000 70%, #000000 100%);
    box-shadow: none;
}

.digital-product-shell .course-reviews .summary-score .score-label {
    color: #b65a0b;
}

.digital-product-shell .course-reviews .score-stars .star.is-active {
    color: #f6b044;
}

.digital-product-shell .course-reviews .reviews-empty {
    background: radial-gradient(circle at top left, #3a3a3a 0%, #1e1e1e 35%, #363535 70%, #404040 100%);
}

.digital-product-shell .review-card {
   background: transparent;
    box-shadow: none;
    border-bottom: 1px solid #000000;
}

@keyframes dp-spin {
    from {
        transform: translateY(-50%) rotate(0);
    }
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

@media (max-width: 1024px) {
    .digital-product-hero {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .hero-media-main img,
    .hero-media-main video {
        height: clamp(280px, 60vw, 480px);
    }

    .digital-product-main {
        grid-template-columns: 1fr;
    }

    .sidebar .section-card {
        position: static;
    }

    .hero-cta {
        justify-content: flex-start;
    }
}

@media (max-width: 790px) {
.digital-product-shell {
        padding: 20px 0px 72px;
    }

.digital-product-hero {
        padding: 0;
        gap: 24px;
    }

.hero-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 20px;
}

.digital-breadcrumbs {
    display: none;
}

.digital-product-main .main-content {
    padding: 0 20px;
}

.price-value {
font-size:25px;
}

.sidebar {
    display: contents;
}

.section-card.creator-card {
    order: -1;
    margin: 0 20px;
    padding: 20px;
}

.section-card.sticky-card {
    margin: 0 20px;
}
}

@media (max-width: 640px) {
    .digital-product-shell {
        padding: 40px 0px 64px;
    }

    .course-reviews {
margin-top: 10px;
    }

    .reviews-cta {
        margin-top:15px;
    }

    .digital-product-hero {
        padding: 0;
        gap: 20px;
    }

    .hero-media-main img,
    .hero-media-main video {
        height: clamp(220px, 85vw, 380px);
    }

    .hero-thumbs {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .hero-thumbs .thumb-item {
        flex: 0 0 72px;
    }

    .hero-metrics {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta {
        justify-content: flex-start;
    }

    .section-card {
        padding: 10px;
    }

    .reviews-summary-card {
        display:block;
    }
}
