/* Core Components previews (.c-*). Builds on the shared .d-* parts in demos.css. */
.c-ic { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.c-ic.flipx { transform: scaleX(-1); }
.c-al { align-items: flex-start; text-align: left; }
.c-h { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.c-h.sm { font-size: 13px; margin-bottom: 4px; }
.c-cap { font-size: 10px; color: var(--muted); }
.c-spec { font: 10px var(--mono); color: var(--key); }
.c-pad { padding: 10px; }
.c-pad .d-line { margin: 6px 0; }
.c-w150 { width: 150px; } .c-w160 { width: 160px; } .c-w170 { width: 170px; } .c-w190 { width: 190px; }
.c-card { background: #18181d; border: 1px solid #2a2a31; border-radius: 8px; overflow: hidden; }
.c-img { position: relative; height: 70px; background: linear-gradient(160deg, #2a2a33, #1a1a20); overflow: hidden; }
.c-img i { position: absolute; left: 18%; bottom: -10px; width: 60px; height: 40px; background: #35353f; transform: rotate(45deg); }
.c-img b { position: absolute; right: 18%; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--key); }
.c-img.sm { height: 60px; margin: 8px 12px; border-radius: 6px; }
.c-img.prod { background: linear-gradient(160deg, #3a3326, #1d1a14); }
.c-img.wide { height: 70px; margin: 8px; border-radius: 6px; }
.c-kv { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-2); gap: 8px; }
.c-kv b { color: var(--text); }
.c-btnrow { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.c-btnrow.r { justify-content: flex-end; }
.d-btn.sm { padding: 6px 12px; font-size: 11px; }
.d-btn.xs { padding: 4px 9px; font-size: 10px; border-radius: 5px; display: inline-block; }
.d-btn.danger { background: #ff5a5a; color: #fff; }
.c-ghost { font: 600 12px var(--sans); padding: 8px 14px; border-radius: 8px; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.c-ghost.sm { padding: 6px 12px; font-size: 11px; }
.c-ghost.xs { padding: 4px 9px; font-size: 10px; }
.c-ghost.outline { border: 1px solid #3a3a44; }
.c-av { width: 22px; height: 22px; border-radius: 50%; background: #2f2f38; color: var(--text); font: 600 9px var(--sans); display: grid; place-items: center; flex: none; position: relative; }
.c-av.lg { width: 40px; height: 40px; font-size: 13px; }
.c-av.img { background: linear-gradient(135deg, var(--key), #3a5a10); }
.c-av .dot { position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--key); border: 2px solid #0e0e11; }
.c-field { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid #3a3a44; border-radius: 6px; font-size: 11px; color: var(--text-2); background: #121216; }
.c-field.focus { border-color: var(--key); box-shadow: 0 0 0 3px var(--key-soft); color: var(--text); }
.c-field.err { border-color: #ff5a5a; }
.c-field.xs { height: 22px; margin: 6px 0; }
.c-ff { display: flex; flex-direction: column; gap: 5px; width: 190px; position: relative; }
.c-ff label { font-size: 11px; font-weight: 600; }
.c-ff small { font-size: 10px; color: var(--muted); display: flex; gap: 4px; align-items: center; }
.c-ff small.r { justify-content: flex-end; }
.c-ff small.err { color: #ff6b6b; }
.c-req { color: #ff6b6b; }
.d-caret.sm { display: inline-block; width: 1px; height: 13px; background: var(--key); animation: d-blink 1s steps(1) infinite; }
.c-typed { display: inline-block; overflow: hidden; white-space: nowrap; animation: c-type 3s steps(14) infinite; max-width: 120px; }
@keyframes c-type { 0% { width: 0; } 50%, 100% { width: 100%; } }
.c-badge { font: 600 9px var(--sans); padding: 2px 7px; border-radius: 999px; background: #2a2a31; color: var(--text-2); }
.c-badge.ok { background: var(--key-soft); color: var(--key); }
.c-badge.warn { background: rgba(255, 170, 60, .15); color: #ffb54a; }
.c-iconbox { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--key-soft); color: var(--key); margin-bottom: 8px; }
.c-iconbox.lg { width: 40px; height: 40px; }
.c-iconbox.danger { background: rgba(255, 90, 90, .15); color: #ff6b6b; }
.c-menu { position: absolute; top: 100%; left: 0; margin-top: 4px; min-width: 150px; padding: 4px; background: #1a1a1f; border: 1px solid #33333b; border-radius: 8px; box-shadow: 0 10px 24px rgba(0, 0, 0, .5); font-size: 11px; z-index: 3; }
.c-menu > div { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 5px; color: var(--text-2); }
.c-menu > div.on, .c-menu > div.hov { background: #26262d; color: var(--text); }
.c-menu > div.on .c-ic:last-child { margin-left: auto; color: var(--key); }
.c-menu > div.danger { color: #ff6b6b; }
.c-menu b { color: var(--key); font-weight: 600; }
.c-menu.c-open { animation: c-menu-in 3s ease-out infinite; transform-origin: top left; }
@keyframes c-menu-in { 0%, 8% { opacity: 0; transform: translateY(-4px) scale(.97); } 18%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.c-anchor { position: relative; }
.c-anchor.top { margin-top: -70px; }

/* Typography */
.c-display { font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.c-heads { display: grid; gap: 6px; border-left: 2px solid var(--key); padding-left: 12px; }
.c-heads .h2 { font-size: 20px; font-weight: 700; } .c-heads .h3 { font-size: 15px; font-weight: 600; } .c-heads .h4 { font-size: 11px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .08em; }
.c-body { width: 210px; }
.c-body p { font-size: 11px; line-height: 1.6; color: var(--text-2); margin: 0 0 8px; }
.c-ruler { border-top: 1px solid var(--key); position: relative; text-align: center; }
.c-ruler::before, .c-ruler::after { content: ""; position: absolute; top: -4px; height: 7px; border-left: 1px solid var(--key); }
.c-ruler::before { left: 0; } .c-ruler::after { right: 0; }
.c-ruler span { font: 9px var(--mono); color: var(--key); }
.c-eyebrow { font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--key); margin-bottom: 4px; }
.c-al .d-line { margin-left: 0; }
.c-fig { margin: 0; width: 180px; }
.c-fig .c-img { border-radius: 6px; height: 80px; }
.c-fig figcaption { font-size: 10px; color: var(--muted); margin-top: 6px; font-style: italic; }
.c-quote { margin: 0; width: 200px; font-size: 15px; font-weight: 600; line-height: 1.35; border-top: 1px solid #33333b; border-bottom: 1px solid #33333b; padding: 10px 0; font-style: italic; }
.c-quote span { display: block; color: var(--key); font-size: 32px; line-height: .6; font-style: normal; }
.c-inline { width: 210px; font-size: 12px; line-height: 1.8; color: var(--text-2); margin: 0; }
.c-inline code { font: 11px var(--mono); padding: 2px 5px; border-radius: 4px; background: #24242b; color: var(--key); }
.c-trunc { display: grid; gap: 6px; padding: 10px; border: 1px dashed #3a3a44; border-radius: 6px; animation: c-trunc 3s ease-in-out infinite alternate; width: 220px; }
.c-trunc b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-trunc span { font: 9px var(--mono); color: var(--key); }
@keyframes c-trunc { to { width: 120px; } }

/* Container */
.c-sections section { padding: 8px 0; border-bottom: 1px solid #2a2a31; }
.c-sections section.on { background: var(--key-soft); outline: 1px solid var(--key); outline-offset: -1px; }
.c-panel { width: 180px; padding: 12px; border-radius: 8px; background: #18181d; border: 1px solid #2a2a31; display: grid; gap: 8px; }
.c-sw { position: relative; display: inline-block; width: 26px; height: 14px; border-radius: 7px; background: #33333b; flex: none; }
.c-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #8a8a94; transition: .2s; }
.c-sw.on { background: var(--key); } .c-sw.on::after { left: 14px; background: #111; }
.c-sw.anim { animation: c-swbg 2.4s steps(1) infinite; } .c-sw.anim::after { animation: c-swk 2.4s ease-in-out infinite; }
@keyframes c-swbg { 50% { background: var(--key); } }
@keyframes c-swk { 0%, 40% { left: 2px; background: #8a8a94; } 50%, 90% { left: 14px; background: #111; } 100% { left: 2px; } }
.c-divider { width: 190px; display: grid; gap: 8px; }
.c-divider .c-ghost { justify-content: center; border: 1px solid #3a3a44; font-size: 11px; padding: 7px; }
.c-or { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); }
.c-or::before, .c-or::after { content: ""; flex: 1; border-top: 1px solid var(--key); }
.c-acc { width: 190px; border: 1px solid #2a2a31; border-radius: 8px; overflow: hidden; font-size: 12px; }
.c-acc-h { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-top: 1px solid #2a2a31; }
.c-acc-h:first-child { border-top: 0; }
.c-acc-h.open { color: var(--key); }
.c-acc-h.open .c-ic { animation: c-chev 3s ease-in-out infinite; }
.c-acc-b { overflow: hidden; animation: c-accb 3s ease-in-out infinite; }
.c-acc-b .d-line { margin: 6px 10px; }
@keyframes c-accb { 0%, 10%, 100% { max-height: 0; } 30%, 80% { max-height: 40px; } }
@keyframes c-chev { 0%, 10%, 100% { transform: none; } 30%, 80% { transform: rotate(180deg); } }
.c-tabrow { position: relative; display: flex; border-bottom: 1px solid #2a2a31; font-size: 11px; }
.c-tabrow span { width: 64px; text-align: center; padding: 8px 0; color: var(--text-2); }
.c-tabrow i { position: absolute; bottom: -1px; left: 0; width: 64px; height: 2px; background: var(--key); animation: c-tabi 3.2s cubic-bezier(.6, 0, .2, 1) infinite; }
@keyframes c-tabi { 0%, 40% { transform: none; } 50%, 90% { transform: translateX(64px); } 100% { transform: none; } }
.c-tabpanel { position: absolute; top: 34px; left: 0; right: 0; }
.c-tabpanel.a { animation: d-xa 3.2s ease-in-out infinite; }
.c-tabpanel.b { animation: d-xa 3.2s ease-in-out infinite reverse; }
.c-split { display: flex; }
.c-split .l { width: 40%; animation: c-splitw 3s ease-in-out infinite alternate; overflow: hidden; }
.c-split .r { flex: 1; overflow: hidden; }
.c-split .h { width: 9px; display: grid; place-items: center; border-left: 1px solid #2a2a31; border-right: 1px solid #2a2a31; }
.c-split .h i { width: 3px; height: 18px; border-radius: 2px; background: var(--key); }
@keyframes c-splitw { to { width: 65%; } }

/* Card */
.c-stars { display: flex; gap: 2px; color: var(--key); margin: 6px 0; }
.c-stars .c-ic { width: 10px; height: 10px; fill: currentColor; }
.c-stars .off { color: #3a3a44; }
.c-add { display: inline-flex; gap: 4px; align-items: center; font-size: 10px; font-weight: 600; color: #111; background: var(--key); padding: 4px 8px; border-radius: 5px; }
.c-stat { font-size: 20px; font-weight: 700; margin: 4px 0; }
.c-stat em { font-style: normal; font-size: 11px; color: var(--key); }
.c-stat small { font-size: 11px; color: var(--muted); font-weight: 400; }
.c-spark { width: 100%; height: 24px; }
.c-spark path { fill: none; stroke: var(--key); stroke-width: 1.5; }
.c-spark.draw path { stroke-dasharray: 160; animation: c-draw 2.6s ease-out infinite; }
@keyframes c-draw { 0% { stroke-dashoffset: 160; } 60%, 100% { stroke-dashoffset: 0; } }
.c-li { display: flex; gap: 6px; align-items: center; font-size: 10px; color: var(--text-2); margin: 4px 0; }
.c-li .c-ic { color: var(--key); width: 11px; }
.c-price .d-btn { margin-top: 8px; display: block; text-align: center; }
.c-profile { text-align: center; display: flex; flex-direction: column; align-items: center; }
.c-profile .c-av { margin-bottom: 6px; }
.c-tq { font-size: 11px; line-height: 1.5; margin: 0 0 10px; }
.c-person { display: flex; gap: 8px; align-items: center; font-size: 10px; }
.c-person b { display: block; } .c-person span { color: var(--muted); }
.c-bento { display: grid; grid-template-columns: repeat(3, 50px); grid-template-rows: repeat(3, 34px); gap: 6px; }
.c-bento div { background: #1d1d23; border: 1px solid #2a2a31; border-radius: 6px; }
.c-bento .a { grid-column: span 2; grid-row: span 2; background: var(--key-soft); border-color: var(--key); }
.c-bento .d { grid-row: span 2; } .c-bento .e { grid-column: span 2; }
.c-flip { width: 120px; height: 80px; position: relative; transform-style: preserve-3d; animation: c-flip 3s ease-in-out infinite; }
.c-flip div { position: absolute; inset: 0; border-radius: 8px; display: grid; place-items: center; font-weight: 700; backface-visibility: hidden; background: #1d1d23; border: 1px solid #2a2a31; }
.c-flip .back { transform: rotateY(180deg); background: var(--key); color: #111; }
@keyframes c-flip { 0%, 30% { transform: none; } 50%, 80% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }

/* Media */
.c-resp { width: 200px; animation: c-resp 3s ease-in-out infinite alternate; }
.c-resp .c-img { height: auto; aspect-ratio: 16 / 9; border-radius: 6px; }
@keyframes c-resp { to { width: 100px; } }
.c-respl { position: relative; height: 14px; width: 40px; text-align: center; }
.c-respl span { position: absolute; left: 0; right: 0; animation: d-xa 6s steps(1) infinite; }
.c-respl span:last-child { animation-direction: reverse; }
.c-avs { display: flex; gap: 14px; align-items: center; }
.c-stack { display: flex; }
.c-stack .c-av { width: 30px; height: 30px; border: 2px solid #0e0e11; margin-left: -8px; font-size: 10px; }
.c-stack .c-av:last-child { background: var(--key); color: #111; }
.c-car { width: 180px; height: 90px; overflow: hidden; border-radius: 8px; }
.c-car-track { display: flex; height: 100%; animation: c-car 6s cubic-bezier(.6, 0, .2, 1) infinite; }
.c-slide { width: 180px; flex: none; }
.c-slide.s1 { background: linear-gradient(135deg, #2a2a33, #16161a); } .c-slide.s2 { background: linear-gradient(135deg, #3a4d14, #16161a); } .c-slide.s3 { background: linear-gradient(135deg, #2b1e3d, #16161a); }
@keyframes c-car { 0%, 25% { transform: none; } 33%, 58% { transform: translateX(-180px); } 66%, 91% { transform: translateX(-360px); } 100% { transform: translateX(-540px); } }
.c-dots { display: flex; gap: 5px; }
.c-dots i { width: 6px; height: 6px; border-radius: 50%; background: #3a3a44; animation: c-dot 6s steps(1) infinite; }
.c-dots i:nth-child(2) { animation-delay: 2s; } .c-dots i:nth-child(3) { animation-delay: 4s; }
@keyframes c-dot { 0% { background: var(--key); width: 14px; border-radius: 3px; } 33% { background: #3a3a44; width: 6px; } }
.c-video { position: relative; width: 200px; border-radius: 8px; overflow: hidden; }
.c-video .c-img { height: 112px; }
.c-playbtn { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 0, 0, .55); display: grid; place-items: center; color: #fff; }
.c-playbtn .c-ic { fill: currentColor; }
.c-vbar { position: absolute; left: 8px; right: 8px; bottom: 18px; height: 3px; background: rgba(255, 255, 255, .25); border-radius: 2px; }
.c-vbar i { display: block; height: 100%; background: var(--key); animation: d-prog 5s linear infinite; }
.c-time { position: absolute; left: 8px; bottom: 4px; font: 9px var(--mono); color: #fff; }
.c-lb-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .8); animation: c-lb-shade 3.4s ease-in-out infinite; }
.c-lb-img { position: absolute; border-radius: 6px; overflow: hidden; animation: c-lb 3.4s cubic-bezier(.6, 0, .2, 1) infinite; border: 1px solid var(--key); }
.c-lb-img .c-img { height: 100%; }
@keyframes c-lb { 0%, 20%, 100% { left: 10px; top: 10px; width: 87px; height: 46px; } 45%, 80% { left: 30px; top: 14px; width: 140px; height: 92px; } }
@keyframes c-lb-shade { 0%, 20%, 100% { opacity: 0; } 45%, 80% { opacity: 1; } }
.c-cmp .before, .c-cmp .after { position: absolute; inset: 0; }
.c-cmp .before { background: linear-gradient(160deg, #4a4a55, #222228); filter: grayscale(1); }
.c-cmp .after { background: linear-gradient(160deg, #c6ff3d, #2b4a10); clip-path: inset(0 0 0 50%); animation: c-cmp 3s ease-in-out infinite alternate; }
.c-cmp .handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; animation: c-cmph 3s ease-in-out infinite alternate; }
.c-cmp .handle i { position: absolute; top: 50%; left: -7px; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: #fff; }
.c-cmp .lbl { position: absolute; bottom: 6px; font: 9px var(--mono); color: #fff; }
.c-cmp .lbl.l { left: 8px; } .c-cmp .lbl.r { right: 8px; color: #111; }
@keyframes c-cmp { from { clip-path: inset(0 0 0 25%); } to { clip-path: inset(0 0 0 75%); } }
@keyframes c-cmph { from { left: 25%; } to { left: 75%; } }
.c-ambient { display: grid; place-items: center; align-content: center; gap: 4px; }
.c-ambient .bg { position: absolute; inset: -40%; background: radial-gradient(circle at 30% 40%, #3b4d12, transparent 40%), radial-gradient(circle at 70% 60%, #2b1e3d, transparent 40%), #111; animation: d-rot 10s linear infinite; }
.c-ambient b, .c-ambient span { position: relative; } .c-ambient b { font-size: 15px; }

/* Data Display */
.c-table { border-collapse: collapse; font-size: 10px; width: 200px; }
.c-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 5px 6px; border-bottom: 1px solid #33333b; }
.c-table th:first-child { color: var(--key); }
.c-table th .c-ic { width: 9px; vertical-align: -1px; }
.c-table td { padding: 6px; border-bottom: 1px solid #24242b; color: var(--text-2); }
.c-list { width: 190px; border: 1px solid #2a2a31; border-radius: 8px; overflow: hidden; }
.c-li2 { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 11px; border-top: 1px solid #2a2a31; }
.c-li2:first-child { border-top: 0; background: #1a1a1f; }
.c-li2 span { flex: 1; } .c-li2 em { font: 10px var(--mono); color: var(--key); font-style: normal; } .c-li2 .c-ic { color: var(--muted); }
.c-badges { display: flex; gap: 10px; align-items: center; }
.c-bell { position: relative; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #33333b; border-radius: 8px; }
.c-bell i { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--key); color: #111; font: 700 9px/16px var(--sans); text-align: center; font-style: normal; animation: c-pop 2s ease-in-out infinite; }
@keyframes c-pop { 0%, 60%, 100% { transform: none; } 70% { transform: scale(1.35); } }
.c-tags { display: flex; flex-wrap: wrap; gap: 6px; width: 200px; }
.c-tag { display: inline-flex; gap: 4px; align-items: center; font-size: 10px; padding: 4px 9px; border-radius: 999px; border: 1px solid #3a3a44; color: var(--text-2); }
.c-tag .c-ic { width: 9px; height: 9px; }
.c-tag.on { border-color: var(--key); color: var(--key); background: var(--key-soft); }
.c-tag.add { border-style: dashed; }
.c-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding-bottom: 4px; border-bottom: 1px solid #33333b; }
.c-bars i { width: 16px; height: var(--h); background: #2f2f38; border-radius: 3px 3px 0 0; transform-origin: bottom; animation: c-bar 3s cubic-bezier(.2, .8, .2, 1) infinite; animation-delay: var(--d); }
.c-bars i:nth-child(4) { background: var(--key); }
@keyframes c-bar { 0% { transform: scaleY(0); } 30%, 90% { transform: none; } 100% { transform: scaleY(0); } }
.c-dg { display: grid; grid-template-columns: 20px repeat(4, 40px); font: 9px var(--mono); }
.c-dg i { height: 20px; border-right: 1px solid #24242b; border-bottom: 1px solid #24242b; display: grid; place-items: center; font-style: normal; color: var(--muted); }
.c-dg i.hd, .c-dg i.rn { background: #18181d; }
.c-dg i.sel { outline: 2px solid var(--key); outline-offset: -2px; background: var(--key-soft); }
.c-sparkrow { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--text-2); }
.c-sparkrow b { color: var(--text); font-size: 14px; }
.c-sparkrow .c-spark { width: 80px; }
.c-tl { display: grid; gap: 12px; position: relative; padding-left: 16px; }
.c-tl::before { content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; border-left: 1px solid #33333b; }
.c-tl div { display: flex; gap: 10px; align-items: baseline; font-size: 11px; position: relative; }
.c-tl div i { position: absolute; left: -16px; top: 3px; width: 9px; height: 9px; border-radius: 50%; background: #33333b; }
.c-tl div.on i { background: var(--key); box-shadow: 0 0 0 4px var(--key-soft); }
.c-tl span { color: var(--muted); font: 9px var(--mono); }
.c-dl { display: grid; grid-template-columns: auto auto; gap: 6px 18px; font-size: 11px; margin: 0; }
.c-dl dt { color: var(--muted); } .c-dl dd { margin: 0; } .c-dl dd:first-of-type { color: var(--key); }
.c-tree { font: 10px var(--mono); display: grid; gap: 5px; color: var(--text-2); }
.c-tree div { display: flex; align-items: center; gap: 4px; }
.c-tree .c-ic { width: 11px; height: 11px; }
.c-tree .i1 { padding-left: 14px; } .c-tree .i2 { padding-left: 42px; }
.c-tree .on { color: var(--key); }

/* In-page Navigation */
.c-crumb { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.c-crumb .c-ic { width: 9px; } .c-crumb b { color: var(--key); font-weight: 600; }
.c-pages { position: relative; display: flex; gap: 4px; }
.c-pages span { width: 22px; height: 22px; display: grid; place-items: center; font: 10px var(--mono); border-radius: 5px; color: var(--text-2); position: relative; z-index: 1; }
.c-pages span .c-ic { width: 10px; }
.c-pages i { position: absolute; top: 0; left: 26px; width: 22px; height: 22px; border-radius: 5px; background: var(--key); animation: c-page 4s cubic-bezier(.6, 0, .2, 1) infinite; }
@keyframes c-page { 0%, 20% { transform: none; } 30%, 45% { transform: translateX(26px); } 55%, 70% { transform: translateX(52px); } 80%, 100% { transform: translateX(78px); } }
.c-steps { display: flex; align-items: center; gap: 6px; font-size: 10px; }
.c-steps div { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); }
.c-steps div i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #3a3a44; display: grid; place-items: center; font: 600 10px var(--sans); font-style: normal; }
.c-steps div:nth-child(1) i { background: var(--key); color: #111; border-color: var(--key); }
.c-steps div:nth-child(3) i { animation: c-step 3s steps(1) infinite; }
.c-steps div:nth-child(5) i { animation: c-step 3s steps(1) infinite; animation-delay: 1s; }
.c-steps b { width: 36px; height: 2px; background: #3a3a44; margin-bottom: 16px; position: relative; overflow: hidden; }
.c-steps b::after { content: ""; position: absolute; inset: 0; background: var(--key); transform-origin: left; animation: c-stepline 3s linear infinite; }
.c-steps b:nth-of-type(2)::after { animation-delay: 1s; }
@keyframes c-step { 0%, 33% { background: transparent; color: var(--muted); } 34%, 100% { background: var(--key); color: #111; border-color: var(--key); } }
@keyframes c-stepline { 0% { transform: scaleX(0); } 33%, 100% { transform: scaleX(1); } }
.c-toc { display: flex; }
.c-toc .art { flex: 1; padding-top: 4px; }
.c-toc .nav { width: 70px; border-left: 1px solid #2a2a31; padding: 8px; display: grid; align-content: start; gap: 6px; font-size: 9px; color: var(--muted); position: relative; }
.c-toc .nav i { position: absolute; left: -1px; top: 8px; width: 2px; height: 13px; background: var(--key); animation: c-toc 4s cubic-bezier(.6, 0, .2, 1) infinite; }
@keyframes c-toc { 0%, 20% { transform: none; } 30%, 45% { transform: translateY(19px); } 55%, 70% { transform: translateY(38px); } 80%, 100% { transform: translateY(57px); } }
.c-anchor-row { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; gap: 6px; padding: 6px; background: #131317; border-bottom: 1px solid #2a2a31; font: 9px var(--mono); }
.c-anchor-row span { padding: 2px 6px; border-radius: 4px; background: #22222a; color: var(--text-2); }
.c-anchor-row span:nth-child(2) { color: #111; background: var(--key); }
.c-anchors .d-text-scroll { padding-top: 34px; }
.c-btt-btn { position: absolute; right: 10px; bottom: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--key); color: #111; display: grid; place-items: center; animation: c-btt 4s ease-out infinite; }
@keyframes c-btt { 0%, 35% { opacity: 0; transform: translateY(8px); } 45%, 100% { opacity: 1; transform: none; } }

/* Input & Control */
.c-ibtn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid #33333b; display: grid; place-items: center; color: var(--text-2); }
.c-ibtn.on { color: var(--key); border-color: var(--key); }
.c-ibtn.on .c-ic { fill: currentColor; animation: c-pop 2s ease-in-out infinite; }
.c-ibtn.round { border-radius: 50%; background: var(--key); color: #111; border: 0; }
.c-ta { height: 60px; flex-direction: column; align-items: stretch; justify-content: center; position: relative; padding: 4px 0; }
.c-ta .d-line { margin: 4px 8px; }
.c-ta .grip { position: absolute; right: 3px; bottom: 3px; width: 7px; height: 7px; border-right: 1px solid #55555e; border-bottom: 1px solid #55555e; }
.c-sel { justify-content: space-between; color: var(--text); }
.c-ff .c-menu { width: 100%; top: 34px; }
.c-checks { display: grid; gap: 10px; font-size: 12px; }
.c-checks label { display: flex; align-items: center; gap: 8px; }
.c-cb { width: 16px; height: 16px; border-radius: 4px; border: 1px solid #55555e; display: grid; place-items: center; color: transparent; }
.c-cb .c-ic { width: 11px; stroke-width: 2.4; }
.c-cb.on { background: var(--key); border-color: var(--key); color: #111; }
.c-cb.anim { animation: c-cb 2.4s steps(1) infinite; }
@keyframes c-cb { 50% { background: var(--key); border-color: var(--key); color: #111; } }
.c-rb { width: 16px; height: 16px; border-radius: 50%; border: 1px solid #55555e; position: relative; }
.c-rb::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--key); transform: scale(0); animation: c-rb 3.6s infinite; }
.c-rb.r1::after { animation-delay: 1.2s; } .c-rb.r2::after { animation-delay: 2.4s; }
@keyframes c-rb { 0% { transform: scale(0); } 5%, 30% { transform: scale(1); } 35%, 100% { transform: scale(0); } }
.c-search { width: 190px; }
.c-search .c-typed { flex: 1; color: var(--text); }
.c-kbd { color: var(--muted); }
.c-cal { width: 170px; font-size: 9px; }
.c-cal-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 11px; }
.c-cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; text-align: center; }
.c-cal-g em { color: var(--muted); font-style: normal; padding-bottom: 2px; }
.c-cal-g i { font-style: normal; padding: 3px 0; color: var(--text-2); }
.c-cal-g i.in { background: var(--key-soft); color: var(--key); }
.c-cal-g i.end { background: var(--key); color: #111; border-radius: 4px; }
.c-seg { position: relative; display: flex; padding: 3px; border-radius: 8px; background: #1d1d23; border: 1px solid #2a2a31; font-size: 11px; }
.c-seg span { width: 56px; text-align: center; padding: 5px 0; position: relative; z-index: 1; }
.c-seg i { position: absolute; top: 3px; left: 3px; width: 56px; bottom: 3px; border-radius: 6px; background: var(--key); animation: c-seg 3.6s cubic-bezier(.6, 0, .2, 1) infinite; }
@keyframes c-seg { 0%, 25% { transform: none; } 33%, 58% { transform: translateX(56px); } 66%, 91% { transform: translateX(112px); } 100% { transform: none; } }
.c-slider { position: relative; width: 170px; height: 4px; border-radius: 2px; background: #33333b; margin: 10px 0; }
.c-slider .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--key); animation: c-slfill 3s ease-in-out infinite alternate; }
.c-slider .thumb { position: absolute; top: -6px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; animation: c-slthumb 3s ease-in-out infinite alternate; }
@keyframes c-slfill { from { width: 20%; } to { width: 80%; } }
@keyframes c-slthumb { from { left: 20%; } to { left: 80%; } }
.c-drop { position: relative; width: 200px; height: 110px; border: 1.5px dashed #4a4a55; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; animation: c-drop 3s ease-in-out infinite; }
.c-drop > .c-ic { width: 18px; height: 18px; color: var(--key); }
.c-drop span { font-size: 9px; color: var(--muted); }
.c-file { position: absolute; top: -30px; left: 50%; margin-left: -12px; width: 24px; height: 30px; border-radius: 4px; background: #2a2a31; display: grid; place-items: center; animation: c-file 3s ease-in-out infinite; }
@keyframes c-file { 0% { transform: translate(40px, -10px); opacity: 0; } 20% { opacity: 1; } 45% { transform: translate(0, 50px); opacity: 1; } 55%, 100% { transform: translate(0, 60px) scale(.6); opacity: 0; } }
@keyframes c-drop { 30%, 50% { border-color: var(--key); background: var(--key-soft); } }
.c-otp { display: flex; gap: 6px; }
.c-otp i { width: 26px; height: 32px; border: 1px solid #3a3a44; border-radius: 6px; display: grid; place-items: center; font: 600 14px var(--mono); font-style: normal; }
.c-otp i.cur { border-color: var(--key); box-shadow: 0 0 0 3px var(--key-soft); }
.c-otp i.done { border-color: #55555e; }
.c-rate { display: flex; gap: 4px; }
.c-rate span { color: #3a3a44; animation: c-star 3s steps(1) infinite; animation-delay: var(--d); }
.c-rate span:last-child { animation: none; }
.c-rate .c-ic { width: 22px; height: 22px; fill: currentColor; stroke: none; }
@keyframes c-star { 0% { color: #3a3a44; } 10%, 90% { color: var(--key); } }
.c-cp { width: 150px; display: grid; gap: 8px; }
.c-cp .sv { position: relative; height: 80px; border-radius: 6px; background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, #8cff00); }
.c-cp .sv i, .c-cp .hue i { position: absolute; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; margin: -6px; }
.c-cp .sv i { animation: c-cpsv 3s ease-in-out infinite alternate; }
@keyframes c-cpsv { from { left: 60%; top: 30%; } to { left: 85%; top: 15%; } }
.c-cp .hue { position: relative; height: 10px; border-radius: 5px; background: linear-gradient(to right, red, yellow, lime, cyan, blue, magenta, red); }
.c-cp .hue i { top: 5px; left: 28%; }
.c-cp-row { display: flex; gap: 8px; align-items: center; font: 10px var(--mono); }
.c-cp-row .sw { width: 18px; height: 18px; border-radius: 4px; background: var(--key); }

/* Layout */
.c-shell { display: grid; grid-template-columns: 50px 1fr; grid-template-rows: 22px 1fr; }
.c-shell header { grid-column: span 2; display: flex; justify-content: space-between; align-items: center; padding: 0 8px; border-bottom: 1px solid #2a2a31; }
.c-shell header b { width: 30px; height: 6px; border-radius: 3px; background: var(--key); }
.c-shell header i { width: 12px; height: 12px; border-radius: 50%; background: #33333b; }
.c-shell aside { border-right: 1px solid #2a2a31; padding-top: 4px; background: #16161a; }
.c-shell aside .d-line { margin: 7px 8px; }
.c-container .col { margin: 0 34px; height: 100%; padding-top: 4px; border-left: 1px dashed var(--key); border-right: 1px dashed var(--key); background: var(--key-soft); }
.c-container .c-spec { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; }
.c-stackdemo { display: flex; flex-direction: column; align-items: center; width: 140px; }
.c-stackdemo div { width: 100%; height: 22px; border-radius: 5px; background: #1d1d23; border: 1px solid #2a2a31; }
.c-stackdemo em { font: 9px var(--mono); color: var(--key); font-style: normal; height: 14px; line-height: 14px; border-left: 1px solid var(--key); padding-left: 4px; }
.c-gridl .guides { position: absolute; inset: 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.c-gridl .guides i { background: var(--key-soft); border-left: 1px solid rgba(198, 255, 61, .3); border-right: 1px solid rgba(198, 255, 61, .3); }
.c-gridl .cells { position: absolute; inset: 8px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 46px; gap: 6px; }
.c-gridl .cells div { background: #1d1d23; border: 1px solid #33333b; border-radius: 4px; }
.c-gridl .cells .w2 { grid-column: span 2; } .c-gridl .cells .w3 { grid-column: span 3; }
.c-sidebar { display: flex; }
.c-sidebar aside { width: 90px; background: #16161a; border-right: 1px solid #2a2a31; padding: 6px 0; overflow: hidden; animation: c-sidebar 3s ease-in-out infinite alternate; flex: none; }
.c-sidebar aside div { display: flex; gap: 8px; align-items: center; padding: 5px 10px; font-size: 10px; white-space: nowrap; color: var(--text-2); }
.c-sidebar aside div:first-child { color: var(--key); }
.c-sidebar main { flex: 1; padding-top: 4px; }
@keyframes c-sidebar { to { width: 34px; } }
.c-sticky header, .c-topnav header, .c-burger header, .c-usermenu header, .c-mega header { position: relative; z-index: 2; height: 24px; display: flex; align-items: center; gap: 10px; padding: 0 10px; background: #18181d; border-bottom: 1px solid #2a2a31; font-size: 9px; color: var(--text-2); }
.c-sticky header { position: absolute; top: 0; left: 0; right: 0; box-shadow: 0 4px 10px rgba(0, 0, 0, .4); }
.c-sticky header b { width: 26px; height: 6px; border-radius: 3px; background: var(--key); margin-right: auto; }
.c-sticky header span { width: 20px; height: 5px; border-radius: 3px; background: #3a3a44; }
.c-sticky .d-text-scroll { padding-top: 28px; }
.c-footer .page { height: 62px; }
.c-footer footer { display: flex; gap: 8px; padding: 8px; background: #18181d; border-top: 1px solid var(--key); height: 56px; }
.c-footer footer div { flex: 1; } .c-footer footer .d-line { margin: 5px 0; height: 4px; width: 80%; }
.c-splitscreen { display: flex; }
.c-splitscreen .l { width: 50%; background: linear-gradient(160deg, #3b4d12, #16161a); }
.c-splitscreen .r { flex: 1; padding: 12px 10px; }
.c-aspect { position: relative; width: 160px; height: 90px; border: 1px solid var(--key); background: var(--key-soft); border-radius: 6px; animation: c-aspect 3s ease-in-out infinite alternate; display: grid; place-items: center; font: 600 12px var(--mono); color: var(--key); }
.c-aspect span { position: absolute; animation: d-xa 6s steps(1) infinite; }
.c-aspect span.b { animation-direction: reverse; }
@keyframes c-aspect { to { width: 100px; height: 100px; } }
.c-masonry { columns: 3 50px; column-gap: 6px; width: 170px; }
.c-masonry i { display: block; break-inside: avoid; margin-bottom: 6px; border-radius: 4px; background: #1d1d23; border: 1px solid #2a2a31; }
.c-masonry i.on { background: var(--key-soft); border-color: var(--key); }

/* Overlay & Feedback */
.c-modal, .c-drawer, .c-toastdemo { padding-top: 6px; }
.c-modal .shade, .c-drawer .shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .65); animation: c-shade 3.4s ease-in-out infinite; }
@keyframes c-shade { 0%, 12%, 100% { opacity: 0; } 25%, 85% { opacity: 1; } }
.c-modal .box { position: absolute; left: 30px; right: 30px; top: 22px; padding: 10px; border-radius: 8px; background: #1d1d23; border: 1px solid #3a3a44; animation: c-modal 3.4s cubic-bezier(.2, .8, .2, 1) infinite; }
@keyframes c-modal { 0%, 12%, 100% { opacity: 0; transform: scale(.92); } 25%, 85% { opacity: 1; transform: none; } }
.c-drawer .panel { position: absolute; top: 0; right: 0; bottom: 0; width: 100px; padding: 10px; background: #1d1d23; border-left: 1px solid #3a3a44; animation: c-drawer 3.4s cubic-bezier(.2, .8, .2, 1) infinite; }
.c-drawer .panel .d-line { margin: 7px 0; }
@keyframes c-drawer { 0%, 12%, 100% { transform: translateX(100%); } 25%, 85% { transform: none; } }
.c-pop { position: absolute; top: 34px; left: 0; width: 170px; padding: 10px; border-radius: 8px; background: #1d1d23; border: 1px solid #3a3a44; box-shadow: 0 10px 24px rgba(0, 0, 0, .5); animation: c-menu-in 3s ease-out infinite; transform-origin: top left; }
.c-pop::before { content: ""; position: absolute; top: -5px; left: 18px; width: 8px; height: 8px; background: #1d1d23; border-left: 1px solid #3a3a44; border-top: 1px solid #3a3a44; transform: rotate(45deg); }
.c-tip { position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10px; padding: 4px 8px; border-radius: 5px; background: var(--key); color: #111; font-weight: 600; animation: c-tip 3s ease-out infinite; }
.c-tip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -4px; border: 4px solid transparent; border-top-color: var(--key); }
@keyframes c-tip { 0%, 30% { opacity: 0; transform: translate(-50%, 4px); } 40%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
.c-tipcur { left: 18px; top: 18px; animation: c-tipcur 3s ease-in-out infinite; }
@keyframes c-tipcur { 0% { transform: translate(50px, 40px); } 30%, 90% { transform: translate(0, 0); } 100% { transform: translate(50px, 40px); } }
.c-toast { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 8px; background: #1d1d23; border: 1px solid #3a3a44; font-size: 10px; box-shadow: 0 8px 20px rgba(0, 0, 0, .5); animation: c-toast 3.4s cubic-bezier(.2, .8, .2, 1) infinite; }
.c-toast .c-ic { color: var(--key); } .c-toast span { color: var(--key); font-weight: 600; margin-left: 6px; }
@keyframes c-toast { 0%, 10% { opacity: 0; transform: translateY(20px); } 22%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateX(30px); } }
.c-alerts { display: grid; gap: 8px; width: 210px; }
.c-alert { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; font-size: 10px; border: 1px solid; }
.c-alert div { flex: 1; } .c-alert b { display: block; font-size: 11px; } .c-alert span { color: var(--text-2); }
.c-alert.warn { background: rgba(255, 170, 60, .08); border-color: rgba(255, 170, 60, .4); color: #ffb54a; }
.c-alert.warn b { color: #ffd08a; }
.c-alert.ok { background: var(--key-soft); border-color: rgba(198, 255, 61, .4); color: var(--key); }
.c-spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #2a2a31; border-top-color: var(--key); animation: d-rot .8s linear infinite; }
.c-skel { width: 190px; display: grid; gap: 7px; }
.c-skel .row { display: flex; gap: 8px; align-items: center; }
.c-skel .row div { flex: 1; display: grid; gap: 5px; }
.c-skel i { display: block; border-radius: 4px; height: 8px; background: linear-gradient(90deg, #22222a 0%, #34343d 50%, #22222a 100%) 0 0 / 200% 100%; animation: c-shimmer 1.4s linear infinite; }
.c-skel .av { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.c-skel .blk { height: 50px; } .c-skel .l1 { width: 90%; } .c-skel .l2 { width: 60%; }
@keyframes c-shimmer { to { background-position: -200% 0; } }
.c-prog { width: 190px; height: 6px; border-radius: 3px; background: #2a2a31; margin-top: 6px; overflow: hidden; }
.c-prog i { display: block; height: 100%; background: var(--key); animation: c-progw 3.4s ease-in-out infinite; }
@keyframes c-progw { 0% { width: 0; } 80%, 100% { width: 100%; } }
.c-pct::after { content: "0%"; animation: c-pct 3.4s steps(1) infinite; }
@keyframes c-pct { 0% { content: "0%"; } 20% { content: "25%"; } 40% { content: "50%"; } 60% { content: "75%"; } 80% { content: "100%"; } }
.c-empty { gap: 4px; text-align: center; }
.c-empty b { font-size: 13px; } .c-empty > span:not(.d-btn) { font-size: 10px; color: var(--muted); margin-bottom: 6px; }
.c-empty .d-btn { display: inline-flex; gap: 4px; align-items: center; }
.c-cmd { background: rgba(0, 0, 0, .5); }
.c-cmd .box { position: absolute; left: 16px; right: 16px; top: 10px; border-radius: 8px; background: #1d1d23; border: 1px solid #3a3a44; overflow: hidden; font-size: 10px; }
.c-cmd .in { display: flex; gap: 6px; align-items: center; padding: 7px 8px; border-bottom: 1px solid #2a2a31; color: var(--muted); }
.c-cmd .in em { margin-left: auto; font: 9px var(--mono); font-style: normal; padding: 1px 4px; border: 1px solid #3a3a44; border-radius: 3px; }
.c-cmd .it { padding: 5px 10px; position: relative; z-index: 1; }
.c-cmd .hl { position: absolute; left: 4px; right: 4px; top: 31px; height: 20px; border-radius: 4px; background: var(--key-soft); border-left: 2px solid var(--key); animation: c-cmdhl 3.2s cubic-bezier(.6, 0, .2, 1) infinite; }
@keyframes c-cmdhl { 0%, 20% { transform: none; } 30%, 45% { transform: translateY(20px); } 55%, 70% { transform: translateY(40px); } 80%, 100% { transform: translateY(60px); } }
.c-confirm { width: 190px; padding: 12px; border-radius: 10px; background: #1d1d23; border: 1px solid #3a3a44; display: grid; justify-items: start; gap: 2px; font-size: 12px; }
.c-confirm span:not(.d-btn):not(.c-ghost) { font-size: 10px; color: var(--muted); }
.c-confirm .c-btnrow { justify-self: stretch; }
.c-ctxcur { left: 0; top: 0; animation: c-ctxcur 3.2s ease-in-out infinite; }
@keyframes c-ctxcur { 0% { transform: translate(160px, 100px); } 30%, 100% { transform: translate(70px, 40px); } }
.c-ctx .c-menu { top: 46px; left: 76px; min-width: 100px; animation: c-ctxmenu 3.2s ease-out infinite; }
@keyframes c-ctxmenu { 0%, 34% { opacity: 0; transform: scale(.9); } 42%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Navigation (Global) */
.c-topnav header b, .c-burger header b, .c-usermenu header b, .c-mega header b { color: var(--key); margin-right: auto; font-size: 11px; }
.c-topnav header span.on, .c-mega header span.on { color: var(--text); box-shadow: inset 0 -2px var(--key); height: 100%; display: flex; align-items: center; }
.c-topnav header .d-btn { font-style: normal; }
.c-sidenav { display: flex; }
.c-sidenav aside { width: 84px; padding: 6px; background: #16161a; border-right: 1px solid #2a2a31; display: grid; align-content: start; gap: 2px; }
.c-sidenav aside div { display: flex; gap: 6px; align-items: center; font-size: 9px; padding: 5px 6px; border-radius: 4px; color: var(--text-2); }
.c-sidenav aside div.on { background: var(--key-soft); color: var(--key); box-shadow: inset 2px 0 var(--key); }
.c-sidenav aside .c-ic { width: 11px; }
.c-sidenav main { flex: 1; padding-top: 4px; }
.c-phone { width: 92px; height: 140px; border: 1px solid #3a3a44; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; background: #131317; }
.c-phone .scr { flex: 1; padding-top: 6px; } .c-phone .scr .d-line { margin: 6px 8px; height: 4px; }
.c-phone nav { position: relative; display: flex; justify-content: space-around; padding: 8px 0; border-top: 1px solid #2a2a31; color: var(--muted); }
.c-phone nav span { position: relative; z-index: 1; width: 23px; display: grid; place-items: center; }
.c-phone nav i { position: absolute; top: 4px; left: 0; width: 23px; height: 22px; border-radius: 6px; background: var(--key-soft); border-bottom: 2px solid var(--key); animation: c-tabbar 4s cubic-bezier(.6, 0, .2, 1) infinite; }
@keyframes c-tabbar { 0%, 20% { transform: translateX(0); } 25%, 45% { transform: translateX(23px); } 50%, 70% { transform: translateX(46px); } 75%, 95% { transform: translateX(69px); } 100% { transform: translateX(0); } }
.c-burger .btn { width: 14px; display: grid; gap: 3px; }
.c-burger .btn i { height: 1.5px; background: var(--text); transition: .3s; }
.c-burger .btn i:nth-child(1) { animation: c-b1 3s ease-in-out infinite; } .c-burger .btn i:nth-child(2) { animation: c-b2 3s ease-in-out infinite; } .c-burger .btn i:nth-child(3) { animation: c-b3 3s ease-in-out infinite; }
@keyframes c-b1 { 30%, 80% { transform: translateY(4.5px) rotate(45deg); background: var(--key); } }
@keyframes c-b2 { 30%, 80% { opacity: 0; } }
@keyframes c-b3 { 30%, 80% { transform: translateY(-4.5px) rotate(-45deg); background: var(--key); } }
.c-burger .menu { position: absolute; top: 24px; left: 0; right: 0; background: #18181d; border-bottom: 1px solid #2a2a31; font-size: 11px; animation: c-bmenu 3s cubic-bezier(.2, .8, .2, 1) infinite; transform-origin: top; }
.c-burger .menu div { padding: 7px 12px; border-top: 1px solid #24242b; }
@keyframes c-bmenu { 0%, 20%, 90%, 100% { transform: scaleY(0); opacity: 0; } 35%, 80% { transform: none; opacity: 1; } }
.c-usermenu header .c-av { background: var(--key); color: #111; }
.c-usermenu .c-menu { left: auto; right: 6px; top: 26px; transform-origin: top right; }
.c-usermenu .who { display: block !important; border-bottom: 1px solid #2a2a31; border-radius: 0 !important; }
.c-usermenu .who b { display: block; color: var(--text); } .c-usermenu .who span { font-size: 9px; color: var(--muted); }
.c-mega .panel { position: absolute; top: 24px; left: 0; right: 0; display: flex; gap: 8px; padding: 10px; background: #18181d; border-bottom: 1px solid #2a2a31; animation: c-menu-in 3s ease-out infinite; }
.c-mega .panel div { flex: 1; font-size: 9px; } .c-mega .panel b { color: var(--key); }
.c-mega .panel .d-line { margin: 5px 0; height: 4px; }
.c-gsearch { padding: 10px; }
.c-gsearch .c-menu { position: relative; top: 0; margin-top: 4px; animation: c-menu-in 3s ease-out infinite; }
.c-gsearch .grp { font-size: 8px !important; text-transform: uppercase; letter-spacing: .1em; color: var(--muted) !important; padding: 4px 8px 2px !important; }

/* Fit fixes: keep popovers/menus inside the 160px stage */
.c-ff.top { margin-top: -70px; }
.c-anchor.top2 { margin-top: -96px; }
.c-img.prod { height: 46px; }
.c-price .c-stat { margin: 2px 0; }
.c-usermenu .c-menu > div { padding: 3px 8px; }
.c-usermenu .c-menu { top: 26px; }
.c-ctx .c-menu { top: 14px; }
.c-gsearch .c-menu > div { padding: 4px 8px; }
.c-topnav header .d-btn { white-space: nowrap; }
.c-seg i { background: var(--key-soft); border: 1px solid var(--key); }
.c-seg span:nth-child(2) { animation: c-segt 3.6s steps(1) infinite; }
.c-seg span:nth-child(3) { animation: c-segt 3.6s steps(1) infinite; animation-delay: 1.2s; }
.c-seg span:nth-child(4) { animation: c-segt 3.6s steps(1) infinite; animation-delay: 2.4s; }
@keyframes c-segt { 0%, 33% { color: var(--key); } 34%, 100% { color: var(--text-2); } }
