/* ---------- Sale ---------- */
.sale-bar { background: linear-gradient(90deg, var(--violet-deep), var(--violet) 50%, var(--violet-deep)); color: #fff; font-size: 14px; font-weight: 600; }
.sale-bar[hidden] { display: none; }
.sale-bar-inner { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 38px; padding-top: 6px; padding-bottom: 6px; text-align: center; flex-wrap: wrap; }
.sale-bar-tag { padding: 3px 8px; border-radius: 6px; background: rgba(9, 7, 13, .55); color: var(--aether); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sale-bar-link { text-decoration: underline; text-underline-offset: 3px; }
.sale-pill {
    position: absolute; top: 14px; left: 54px; z-index: 2;
    padding: 5px 9px; border-radius: 999px;
    background: var(--danger); color: #fff;
    font: 700 11px/1 var(--font); letter-spacing: .04em;
}
.sale-note { display: inline-block; margin-top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(239, 107, 91, .14); color: #ff9b8e; font-size: 13px; font-weight: 600; }
.detail-info .sale-note + .price { margin-top: 12px; }

/* ---------- Gift ---------- */
.gift-link {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    display: grid; place-items: center; width: 34px; height: 34px;
    border-radius: 10px; background: rgba(9, 7, 13, .75);
    border: 1px solid var(--line-2); color: var(--muted);
    transition: color .18s, border-color .18s;
}
.gift-link:hover { color: var(--violet-hi); border-color: rgba(176, 123, 255, .5); }
.gift { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.gift summary {
    display: flex; align-items: center; gap: 10px; padding: 14px 18px;
    cursor: pointer; font-weight: 600; list-style: none; color: var(--text);
}
.gift summary::-webkit-details-marker { display: none; }
.gift summary svg { color: var(--violet-hi); }
.gift summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.gift[open] summary::after { transform: rotate(-135deg); }
.gift-form { display: grid; gap: 8px; padding: 0 18px 16px; }
.gift-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.gift-form .fineprint { margin-top: 4px; }

/* ---------- Server status ---------- */
.server-status { margin: 14px 0 0; font-size: 14px; color: #d0c9de; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.server-status strong { color: var(--text); }
.ip-dot.is-off { background: var(--muted); box-shadow: 0 0 0 4px rgba(154, 147, 173, .18); }
.ip-dot.is-on { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(95, 208, 138, .05); } }

/* ---------- Recent supporters ---------- */
.modules { display: grid; gap: 18px; }
.supporters { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: 22px; }
.supporters-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.supporters-head h3 { font-size: 20px; }
.supporters-head p { margin: 0; color: var(--muted); font-size: 14px; }
.supporters-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
.supporter { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.supporter img { width: 40px; height: 40px; border-radius: 8px; image-rendering: pixelated; }
.supporter-text { display: flex; flex-direction: column; line-height: 1.3; }
.supporter-text strong { font-size: 14px; }
.supporter-text span { font-size: 12px; color: var(--aether); font-weight: 600; }

@media (max-width: 640px) {
    .gift-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .ip-dot.is-on { animation: none; } }
