/* Base Chocolate Theme */
body {
    background-color: #1a0e08;
    color: #f5e6d3;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --choco-dark: #1a0e08;
    --choco-deep: #241410;
    --choco-mid: #3d2317;
    --choco-light: #5c3826;
    --choco-accent: #8b5a3c;
    --choco-milk: #c89b7b;
    --choco-cream: #f5e6d3;
    --choco-caramel: #d4a574;
    --choco-glow: rgba(212, 165, 116, 0.3);
}

.card-gradient {
    background: linear-gradient(180deg, #2d1810 0%, #1a0e08 100%);
    border: 1px solid rgba(212, 165, 116, 0.18);
}

.btn-primary {
    background: linear-gradient(180deg, #d4a574 0%, #a0724a 100%);
    color: #1a0e08;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.25);
}
.btn-primary:hover {
    opacity: 0.95;
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(212, 165, 116, 0.45);
}
.btn-secondary {
    background-color: transparent;
    color: #f5e6d3;
    box-shadow: inset 0 0 0 1px rgba(212, 165, 116, 0.4);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn-secondary:hover {
    background-color: #d4a574;
    color: #1a0e08;
    box-shadow: inset 0 0 0 1px #d4a574;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-glow {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 80vw; height: 60vh;
    background: radial-gradient(ellipse at top center, rgba(139, 90, 60, 0.35) 0%, transparent 60%);
}
.hero-grid {
    position: absolute; inset: 0;
    background-size: 120px 120px;
    background-image:
        linear-gradient(to right, rgba(212, 165, 116, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(212, 165, 116, 0.08) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, black 30%, transparent 80%);
}

.glitch {
    position: relative; display: inline-block; color: #f5e6d3;
    background: linear-gradient(180deg, #f5e6d3 0%, #d4a574 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.glitch::before, .glitch::after {
    content: attr(data-text); position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; background: transparent;
    -webkit-text-fill-color: initial; pointer-events: none;
    opacity: 0.75; mix-blend-mode: screen;
}
.glitch::before { color: #d4a574; animation: glitch-slice-a 3.4s infinite steps(1) alternate-reverse; }
.glitch::after { color: #8b5a3c; animation: glitch-slice-b 2.8s infinite steps(1) alternate-reverse; animation-delay: 0.15s; }
@keyframes glitch-slice-a {
    0% { clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
    4% { clip-path: inset(12% 0 78% 0); transform: translate(-2px, 0); }
    8% { clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
    14% { clip-path: inset(42% 0 48% 0); transform: translate(-3px, 0); }
    18% { clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
    26% { clip-path: inset(70% 0 18% 0); transform: translate(-1px, 0); }
    30% { clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
    100% { clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
}
@keyframes glitch-slice-b {
    0% { clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
    6% { clip-path: inset(22% 0 68% 0); transform: translate(2px, 0); }
    10% { clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
    16% { clip-path: inset(55% 0 32% 0); transform: translate(3px, 0); }
    20% { clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
    28% { clip-path: inset(82% 0 6% 0); transform: translate(1px, 0); }
    32% { clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
    100% { clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
}

.reveal { opacity: 0; transform: translateY(20px); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

.float-anim { animation: floating 4s ease-in-out infinite; }
@keyframes floating {
    0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); }
}

.status-card-new {
    background: linear-gradient(180deg, #2d1810 0%, #1a0e08 100%);
    border: 1px solid rgba(212, 165, 116, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
    border-radius: 14px;
    position: relative; overflow: hidden;
    transition: border-color 0.3s ease;
}
.status-card-new:hover { border-color: rgba(212, 165, 116, 0.35); }

@keyframes spin-slow { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.spin-dashed { animation: spin-slow 4s linear infinite; }

#live-chart-path, #live-chart-fill { transition: d 0.15s linear; }
.js-bar { transition: height 0.3s ease-out; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.cl-nav-btn { color: rgba(245, 230, 211, 0.45); background: transparent; border: 1px solid transparent; }
.cl-nav-btn:hover { color: rgba(245, 230, 211, 0.9); background: rgba(212, 165, 116, 0.05); }
.cl-nav-btn.active {
    color: #f5e6d3;
    background: linear-gradient(90deg, rgba(212, 165, 116, 0.12) 0%, rgba(212, 165, 116, 0.02) 100%);
    border: 1px solid rgba(212, 165, 116, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.cl-nav-btn.active .cl-dot { background: #d4a574; box-shadow: 0 0 8px #d4a574; }

.cl-item { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(212, 165, 116, 0.05); }
.cl-item:last-child { border-bottom: none; }
.cl-item-icon { width: 20px; height: 20px; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cl-badge {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 6px; border-radius: 4px; font-size: 9px;
    font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
    border: 1px solid; height: 20px; line-height: 1; flex-shrink: 0;
}
.cl-item-icon.added, .cl-badge-added { color: #a3c585; background: rgba(163, 197, 133, 0.1); border-color: rgba(163, 197, 133, 0.25); }
.cl-item-icon.fixed, .cl-badge-fixed { color: #d4a574; background: rgba(212, 165, 116, 0.1); border-color: rgba(212, 165, 116, 0.25); }
.cl-badge-fixed { margin-left: 30px; }
.cl-item-icon.removed, .cl-badge-removed { color: #c87a65; background: rgba(200, 122, 101, 0.1); border-color: rgba(200, 122, 101, 0.25); }
.cl-item-icon.improved, .cl-badge-improved { color: #c89b7b; background: rgba(200, 155, 123, 0.1); border-color: rgba(200, 155, 123, 0.25); }

#cl-content > div { animation: clFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes clFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-panel.open { grid-template-rows: 1fr; }
.faq-chevron { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-toggle[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); color: #d4a574; }

.text-choco-caramel { color: #d4a574; }
.text-choco-cream { color: #f5e6d3; }
.text-choco-milk { color: #c89b7b; }
.text-choco-mute { color: #a08870; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #1a0e08; }
::-webkit-scrollbar-thumb { background: #5c3826; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8b5a3c; }

/* ===== Reviews / Rating Stars ===== */
.rating-stars { display: inline-flex; gap: 3px; align-items: center; }
.rating-stars .star-icon { width: 14px; height: 14px; }
.rating-stars .star-icon.filled { color: #d4a574; filter: drop-shadow(0 0 3px rgba(212,165,116,0.5)); }
.rating-stars .star-icon.half { color: #d4a574; opacity: 0.6; }
.rating-stars .star-icon.empty { color: rgba(212,165,116,0.2); }

.review-card {
    background: linear-gradient(180deg, #2d1810 0%, #1a0e08 100%);
    border: 1px solid rgba(212, 165, 116, 0.12);
    border-radius: 12px;
    padding: 16px;
    transition: border-color 0.3s ease;
}
.review-card:hover { border-color: rgba(212, 165, 116, 0.3); }

.review-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, #d4a574 0%, #8b5a3c 100%);
    display: flex; align-items: center; justify-content: center;
    color: #1a0e08; font-weight: 800; font-size: 14px;
    flex-shrink: 0;
}

/* Interactive star rating input */
.star-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}
.star-rating-input input[type="radio"] { display: none; }
.star-rating-input label {
    cursor: pointer;
    width: 28px; height: 28px;
    color: rgba(212, 165, 116, 0.25);
    transition: color 0.15s ease, transform 0.15s ease;
}
.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input[type="radio"]:checked ~ label {
    color: #d4a574;
    filter: drop-shadow(0 0 4px rgba(212,165,116,0.6));
}
.star-rating-input label:hover { transform: scale(1.15); }
.star-rating-input svg { width: 100%; height: 100%; fill: currentColor; }

/* Rating distribution bars */
.rating-dist-bar {
    height: 6px; background: rgba(212, 165, 116, 0.08);
    border-radius: 3px; overflow: hidden; flex: 1;
}
.rating-dist-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4a574 0%, #8b5a3c 100%);
    border-radius: 3px;
    box-shadow: 0 0 6px rgba(212,165,116,0.4);
}

.form-input {
    background: #1a0e08;
    border: 1px solid rgba(212, 165, 116, 0.15);
    border-radius: 8px;
    color: #f5e6d3;
    padding: 10px 14px;
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}
.form-input:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 0 0 3px rgba(212,165,116,0.1);
}
.form-input::placeholder { color: rgba(245,230,211,0.3); }

.app-info-table {
    width: 100%; border-collapse: collapse;
}
.app-info-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(212, 165, 116, 0.08);
    font-size: 12px;
}
.app-info-table td:first-child {
    color: #a08870; font-weight: 600; width: 40%;
    text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px;
}
.app-info-table td:last-child { color: #f5e6d3; font-weight: 500; }
.app-info-table tr:last-child td { border-bottom: none; }

.toc-link {
    display: block; padding: 6px 10px;
    color: #c89b7b; font-size: 12px; font-weight: 500;
    border-left: 2px solid rgba(212, 165, 116, 0.15);
    transition: all 0.2s ease; text-decoration: none;
}
.toc-link:hover {
    color: #d4a574; border-left-color: #d4a574;
    background: rgba(212, 165, 116, 0.05);
    padding-left: 14px;
}