:root {
    --bg: #09090b;
    --bg-elevated: #111113;
    --bg-card: rgba(255, 255, 255, 0.025);
    --bg-card-hover: rgba(255, 255, 255, 0.045);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.1);
    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-dim: #52525b;
    --accent: #818cf8;
    --accent-bg: rgba(129, 140, 248, 0.08);
    --accent-border: rgba(129, 140, 248, 0.15);
    --accent-strong: rgba(60, 55, 241, 0.2);
    --primary: #3c37f1;
    --primary-light: #5752ff;
    --primary-bg: rgba(60, 55, 241, 0.08);
    --primary-border: rgba(60, 55, 241, 0.2);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background-color: var(--bg);
    color: var(--text);
}

.compo-page a {
    text-decoration: none;
    color: white;
}

.compo-page a:hover {
    text-decoration: none;
    color: white;
}

.compo-page {
    min-height: 100vh;
    padding: 86px 0 60px;
}

.compo-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   BREADCRUMB
   =========================== */

.compo-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    font-size: 13px;
}

.compo-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.compo-breadcrumb a:hover {
    color: var(--accent);
}

.compo-breadcrumb i {
    color: var(--text-dim);
    font-size: 14px;
}

.compo-breadcrumb span {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===========================
   LIGHTBOX
   =========================== */

.compo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
    backdrop-filter: blur(8px);
}

.compo-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.compo-lightbox-scroll {
    flex: 1;
    overflow: auto;
    min-height: 0;
    cursor: grab;
}

.compo-lightbox-scroll.dragging {
    cursor: grabbing;
    user-select: none;
}

.compo-lightbox-scroll-inner {
    min-width: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
}

.compo-lightbox-img {
    display: block;
    border-radius: var(--radius);
    user-select: none;
    -webkit-user-drag: none;
    transition: width 0.15s ease, height 0.15s ease;
}

.compo-lightbox-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.compo-lightbox-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    user-select: none;
}

.compo-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.05);
}

.compo-lightbox-btn:active {
    transform: scale(0.95);
}

.compo-lightbox-range {
    -webkit-appearance: none;
    appearance: none;
    width: 160px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.compo-lightbox-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.compo-lightbox-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.compo-lightbox-percent {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    font-weight: 500;
    min-width: 42px;
    text-align: center;
    letter-spacing: 0.3px;
}

.compo-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.compo-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.compo-img-wrapper {
    cursor: zoom-in;
    position: relative;
}

.compo-img-zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.25s var(--ease);
}

.compo-img-wrapper:hover .compo-img-zoom-hint {
    opacity: 1;
}

/* ===========================
   HERO
   =========================== */

.compo-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 64px;
}

.compo-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.compo-img-wrapper {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.4s var(--ease-out);
}

.compo-img-wrapper:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.compo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0.97);
    transition: transform 0.4s var(--ease-out);
}

.compo-img-wrapper:hover .compo-img {
    transform: scale(1.05);
}

.compo-hero-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.compo-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    border-radius: 20px;
    width: fit-content;
}

.compo-category-badge i {
    font-size: 14px;
    color: var(--accent);
}

.compo-category-badge span {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1.2px;
}

.compo-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
}

.compo-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.compo-best-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.compo-best-price-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.compo-best-price-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.compo-best-price-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.compo-best-price-value sup {
    font-size: 0.5em;
    color: var(--text-secondary);
}

.compo-best-price-trend {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.compo-best-price-trend i {
    font-size: 24px;
}

.compo-trend-up {
    background: var(--primary-bg);
    border: 1px solid var(--primary-border);
}

.compo-trend-up i {
    color: var(--primary-light);
}

.compo-trend-down {
    background: rgba(251, 113, 133, 0.08);
    border: 1px solid rgba(251, 113, 133, 0.15);
}

.compo-trend-down i {
    color: #fb7185;
}

.compo-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(60, 55, 241, 0.2), rgba(87, 82, 255, 0.2));
    border: 1px solid rgba(60, 55, 241, 0.25);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}

.compo-cta-btn:hover {
    background: linear-gradient(135deg, rgba(60, 55, 241, 0.35), rgba(87, 82, 255, 0.35));
    border-color: rgba(60, 55, 241, 0.4);
    transform: translateY(-1px);
}

.compo-cta-btn i {
    font-size: 18px;
}

.compo-cta-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.compo-cta-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

/* ===========================
   CONTENT / SECTIONS
   =========================== */

.compo-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.compo-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.compo-section-header i {
    font-size: 20px;
    color: var(--accent);
}

.compo-section-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.01em;
}

/* ===========================
   SPECS GRID
   =========================== */

.compo-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.compo-spec-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    transition: all 0.25s var(--ease);
}

.compo-spec-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.compo-spec-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
}

.compo-spec-icon i {
    font-size: 16px;
    color: var(--accent);
}

.compo-spec-data {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.compo-spec-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.compo-spec-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===========================
   PRICE CHART
   =========================== */

.compo-chart-section {
    animation: compoFadeUp 0.7s var(--ease-out) 0.15s backwards;
}

.compo-chart-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s var(--ease);
}

.compo-chart-wrapper:hover {
    border-color: var(--border-hover);
}

.compo-chart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.compo-chart-sellers {
    display: flex;
    gap: 6px;
}

.compo-chart-seller {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.compo-chart-seller img {
    width: 50px;
    height: auto;
    object-fit: contain;
    filter: brightness(0.7) grayscale(0.5);
    transition: filter 0.2s var(--ease);
}

.compo-chart-seller:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.compo-chart-seller:hover img {
    filter: brightness(0.9) grayscale(0.2);
}

.compo-chart-seller.active {
    border-color: var(--primary-border);
    background: var(--primary-bg);
}

.compo-chart-seller.active img {
    filter: brightness(1) grayscale(0);
}

.compo-chart-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.compo-chart-current {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.compo-chart-current sup {
    font-size: 0.55em;
    color: var(--text-secondary);
}

.compo-chart-range {
    font-size: 12px;
    color: var(--text-muted);
}


.compo-chart-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
}

.compo-chart-canvas-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

.compo-chart-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.compo-chart-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.compo-chart-stat-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.compo-chart-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.compo-chart-stat-value.stat-low {
    color: var(--primary-light);
}

.compo-chart-stat-value.stat-high {
    color: var(--text-muted);
}

/* ===========================
   SELLERS LIST
   =========================== */

.compo-sellers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compo-seller-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s var(--ease);
    position: relative;
    overflow: hidden;
}

.compo-seller-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(129, 140, 248, 0.03));
    opacity: 0;
    transition: opacity 0.25s var(--ease);
}

.compo-seller-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.compo-seller-item:hover::before {
    opacity: 1;
}

.compo-seller-best {
    border-color: var(--primary-border);
    background: var(--primary-bg);
}

.compo-seller-best:hover {
    border-color: rgba(60, 55, 241, 0.3);
    background: rgba(60, 55, 241, 0.12);
}

.compo-seller-left {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.compo-seller-logo {
    width: 90px;
    height: auto;
    object-fit: contain;
    filter: brightness(0.95);
    transition: filter 0.2s var(--ease);
}

.compo-seller-item:hover .compo-seller-logo {
    filter: brightness(1.1);
}

.compo-seller-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.compo-seller-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.compo-seller-stock {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
}

.compo-seller-right {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.compo-seller-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    background: var(--accent-bg);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--accent-border);
}

.compo-seller-price sup {
    font-size: 0.6em;
    color: var(--text-secondary);
}

.compo-seller-best .compo-seller-price {
    background: var(--primary-bg);
    border-color: var(--primary-border);
    color: var(--primary-light);
}

.compo-seller-arrow {
    font-size: 18px;
    color: var(--text-dim);
    transition: all 0.25s var(--ease);
}

.compo-seller-item:hover .compo-seller-arrow {
    color: var(--accent);
    transform: translateX(2px);
}

/* ===========================
   ANIMATIONS
   =========================== */

.compo-hero {
    animation: compoFadeUp 0.7s var(--ease-out) backwards;
}

.compo-specs-section {
    animation: compoFadeUp 0.7s var(--ease-out) 0.1s backwards;
}

.compo-sellers-section {
    animation: compoFadeUp 0.7s var(--ease-out) 0.2s backwards;
}

@keyframes compoFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.compo-seller-item {
    animation: compoSlideIn 0.5s var(--ease-out) backwards;
}

.compo-seller-item:nth-child(1) { animation-delay: 0.25s; }
.compo-seller-item:nth-child(2) { animation-delay: 0.3s; }
.compo-seller-item:nth-child(3) { animation-delay: 0.35s; }
.compo-seller-item:nth-child(4) { animation-delay: 0.4s; }
.compo-seller-item:nth-child(5) { animation-delay: 0.45s; }
.compo-seller-item:nth-child(6) { animation-delay: 0.5s; }

@keyframes compoSlideIn {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.compo-spec-card {
    animation: compoFadeUp 0.5s var(--ease-out) backwards;
}

.compo-spec-card:nth-child(1) { animation-delay: 0.15s; }
.compo-spec-card:nth-child(2) { animation-delay: 0.2s; }
.compo-spec-card:nth-child(3) { animation-delay: 0.25s; }
.compo-spec-card:nth-child(4) { animation-delay: 0.3s; }
.compo-spec-card:nth-child(5) { animation-delay: 0.35s; }
.compo-spec-card:nth-child(6) { animation-delay: 0.4s; }
.compo-spec-card:nth-child(7) { animation-delay: 0.45s; }
.compo-spec-card:nth-child(8) { animation-delay: 0.5s; }

/* ===========================
   RESPONSIVE — TABLET
   =========================== */

@media (max-width: 900px) {
    .compo-hero {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .compo-img-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }

    .compo-hero-info {
        align-items: center;
        text-align: center;
    }

    .compo-best-price {
        align-items: center;
        width: 100%;
    }

    .compo-cta-btn {
        width: 100%;
    }

    .compo-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================
   RESPONSIVE — MOBILE
   =========================== */

@media (max-width: 600px) {
    .compo-page {
        padding: 80px 0 40px;
    }

    .compo-container {
        padding: 0 16px;
    }

    .compo-breadcrumb {
        margin-bottom: 24px;
        font-size: 12px;
        gap: 6px;
    }

    .compo-hero {
        gap: 24px;
        margin-bottom: 40px;
    }

    .compo-img-wrapper {
        max-width: 240px;
        padding: 24px;
    }

    .compo-title {
        font-size: 1.4rem;
    }

    .compo-subtitle {
        font-size: 13px;
    }

    .compo-best-price {
        padding: 16px 20px;
    }

    .compo-best-price-value {
        font-size: 26px;
    }

    .compo-cta-btn {
        padding: 12px 20px;
        font-size: 13px;
    }

    .compo-specs-grid {
        grid-template-columns: 1fr;
    }

    .compo-spec-card {
        padding: 14px 16px;
    }

    .compo-seller-item {
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .compo-seller-logo {
        width: 70px;
    }

    .compo-seller-price {
        font-size: 17px;
        padding: 6px 12px;
    }

    .compo-seller-right {
        gap: 10px;
    }

    .compo-section-header h2 {
        font-size: 16px;
    }

    .compo-content {
        gap: 36px;
    }

    .compo-chart-wrapper {
        padding: 20px 16px;
    }

    .compo-chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .compo-chart-sellers {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .compo-chart-seller img {
        width: 40px;
    }

    .compo-chart-canvas-wrapper {
        height: 180px;
    }

    .compo-chart-current {
        font-size: 20px;
    }

    .compo-chart-stats {
        gap: 8px;
    }

    .compo-chart-stat-value {
        font-size: 14px;
    }

    .compo-chart-stat-label {
        font-size: 9px;
    }
}

/* ===========================
   RESPONSIVE — SMALL MOBILE
   =========================== */

@media (max-width: 400px) {
    .compo-seller-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .compo-seller-right {
        width: 100%;
        justify-content: space-between;
    }

    .compo-seller-logo {
        width: 60px;
    }
}
