.hkw-joined-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #9be8b6;
}
.hkw-joined-count b { color: #fff; font-size: 13px; }

.hkw-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7de3a3;
    box-shadow: 0 0 0 0 rgba(125, 227, 163, 0.6);
    animation: hkw-live-pulse 1.6s infinite;
    flex-shrink: 0;
}
@keyframes hkw-live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(125, 227, 163, 0.55); }
    70% { box-shadow: 0 0 0 7px rgba(125, 227, 163, 0); }
    100% { box-shadow: 0 0 0 0 rgba(125, 227, 163, 0); }
}

.hkw-topic-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.hkw-topic-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: linear-gradient(135deg, rgba(106, 92, 255, 0.25), rgba(0, 212, 255, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.hkw-topic-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 2px; }

.hkw-tab-icon { margin-right: 4px; }

.hkw-locked-box {
    text-align: center;
    padding: 34px 16px;
    color: #c3c5e6;
    font-size: 14.5px;
    line-height: 1.6;
}
.hkw-locked-icon {
    font-size: 34px;
    margin-bottom: 10px;
}

.hkw-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: #6a5cff;
    border-radius: 50%;
    vertical-align: middle;
    animation: hkw-spin 0.7s linear infinite;
}
@keyframes hkw-spin { to { transform: rotate(360deg); } }

.hkw-confetti {
    position: absolute;
    top: 30%;
    width: 7px;
    height: 12px;
    border-radius: 2px;
    pointer-events: none;
    animation: hkw-confetti-fall 1.1s ease-out forwards;
    z-index: 5;
}
@keyframes hkw-confetti-fall {
    0% { opacity: 1; transform: translateY(0) rotate(0deg); }
    100% { opacity: 0; transform: translateY(220px) rotate(340deg); }
}
.hkw-panel {
    position: fixed;
}
.hkw-launcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a5cff 0%, #00d4ff 100%);
    box-shadow: 0 8px 24px rgba(106, 92, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    animation: hkw-pulse 2.4s infinite;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hkw-launcher:hover { transform: scale(1.08) rotate(-4deg); box-shadow: 0 10px 30px rgba(106, 92, 255, 0.6); }
.hkw-launcher-icon { font-size: 27px; color: #fff; font-style: normal; }
.hkw-launcher-badge {
    position: absolute;
    top: -10px;
    right: -14px;
    background: #ff4d6d;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1;
    padding: 4px 7px;
    border-radius: 999px;
    box-shadow: 0 0 0 3px #ffffff, 0 2px 6px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
}

@keyframes hkw-pulse {
    0% { box-shadow: 0 0 0 0 rgba(106, 92, 255, 0.45); }
    70% { box-shadow: 0 0 0 16px rgba(106, 92, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(106, 92, 255, 0); }
}

.hkw-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 20, 0.55);
    backdrop-filter: blur(4px);
    display: none;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 24px;
    z-index: 9999;
}
.hkw-overlay.hkw-open { display: flex; }

.hkw-panel {
    width: 400px;
    max-width: 92vw;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #12142b 0%, #0b0c1c 100%);
    color: #e8e9f5;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: hkw-slide-up 0.3s ease;
}
.hkw-panel * { box-sizing: border-box; }
@keyframes hkw-slide-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.hkw-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 20px 14px;
    background: radial-gradient(circle at top left, rgba(106, 92, 255, 0.35), transparent 60%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hkw-panel-header { cursor: move; user-select: none; }

.hkw-panel-header h3 { font-size: 22px; cursor: move; color: #ffffff; margin: 0 0 2px; }
.hkw-panel-header p { font-size: 14px; color: #b3b6dd; margin: 0; }
.hkw-close { background: none; border: none; color: #9a9dc7; font-size: 26px; cursor: pointer; line-height: 1; }
.hkw-close:hover { color: #fff; }

.hkw-tabs {
    display: flex;
    gap: 8px;
    padding: 14px 20px 0;
}
.hkw-tab {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
    border-radius: 10px;
    font-size: 12px;
    color: #9a9dc7;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.2s ease;
}
.hkw-tab.hkw-active {
    background: linear-gradient(135deg, #6a5cff, #00d4ff);
    color: #fff;
    border-color: transparent;
    font-weight: 600;
}

.hkw-content { padding: 18px 20px 22px; overflow-y: auto; }
.hkw-loading { color: #9a9dc7; font-size: 13px; text-align: center; padding: 30px 0; }

.hkw-topic-desc { color: #c3c5e6; line-height: 1.5; margin-bottom: 16px; }

.hkw-prizes { display: flex; gap: 8px; margin-bottom: 18px; }
.hkw-prize {
    flex: 1;
    text-align: center;
    padding: 12px 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.hkw-prize:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
}
.hkw-prize-medal { font-size: 24px; display: block; margin-bottom: 4px; }
.hkw-prize-amount { color: #fff; font-weight: 700; font-size: 16px; display: block; }
.hkw-prize-label { color: #9a9dc7; font-size: 12px; }
.hkw-prize.hkw-gold .hkw-prize-medal { color: #ffd166; }
.hkw-prize.hkw-silver .hkw-prize-medal { color: #d9d9e3; }
.hkw-prize.hkw-bronze .hkw-prize-medal { color: #e0a26b; }
.hkw-prize.hkw-cert .hkw-prize-medal { color: #6a5cff; }

.hkw-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    background: linear-gradient(135deg, #6a5cff, #00d4ff);
    color: #fff;
    transition: opacity 0.2s ease;
}
.hkw-btn:hover { opacity: 0.9; }
.hkw-btn.hkw-enrolled {
    background: rgba(255, 255, 255, 0.06);
    color: #7de3a3;
    border: 1px solid rgba(125, 227, 163, 0.4);
    cursor: default;
}

.hkw-status-box {
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    color: #9a9dc7;
    font-size: 12px;
    text-align: center;
}
/* ---------- Enrollment confirmation ---------- */
.hkw-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 11, 30, 0.82);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    border-radius: 18px;
    padding: 16px;
}
.hkw-confirm-box {
    background: #1a1c3a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 20px 18px;
    max-width: 330px;
    text-align: center;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.hkw-confirm-icon { font-size: 34px; margin-bottom: 6px; }
.hkw-confirm-title { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.hkw-confirm-text { color: #c3c5e6; font-size: 13px; line-height: 1.55; margin-bottom: 16px; }
.hkw-confirm-actions { display: flex; gap: 8px; }
.hkw-confirm-no, .hkw-confirm-yes {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}
.hkw-confirm-no {
    background: rgba(255, 255, 255, 0.08);
    color: #c3c5e6;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.hkw-confirm-yes {
    background: linear-gradient(135deg, #6a5cff, #00d4ff);
    color: #fff;
}
.hkw-confirm-yes:disabled { opacity: 0.6; cursor: default; }

/* ---------- Rules shown before enrolling ---------- */
.hkw-rules {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hkw-rules div {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: #c3c5e6;
    font-size: 12px;
    line-height: 1.5;
}
.hkw-rules b { color: #fff; }

/* ---------- Countdown ---------- */
.hkw-timer-box {
    background: rgba(106, 92, 255, 0.12);
    border: 1px solid rgba(106, 92, 255, 0.35);
    border-radius: 14px;
    padding: 14px 12px;
    text-align: center;
    margin-bottom: 14px;
}
.hkw-timer-label {
    color: #9a9dc7;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.hkw-clock {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
}
.hkw-clock-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 46px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding: 6px 4px;
}
.hkw-clock-unit b {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.hkw-clock-unit span { color: #9a9dc7; font-size: 10px; text-transform: uppercase; }
.hkw-clock-sep { color: #6a5cff; font-size: 18px; font-weight: 700; padding-bottom: 14px; }
.hkw-timer-deadline { color: #9a9dc7; font-size: 11px; margin-top: 8px; }

/* ---------- Buttons & upload ---------- */
.hkw-secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    text-decoration: none;
}
.hkw-secondary-btn:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.hkw-upload-form {
    margin-top: 14px;
    padding: 14px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.hkw-upload-label {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}
.hkw-file-input {
    width: 100%;
    color: #c3c5e6;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px;
}
.hkw-file-input::file-selector-button {
    background: rgba(106, 92, 255, 0.9);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    margin-right: 10px;
    cursor: pointer;
}
.hkw-upload-hint { color: #9a9dc7; font-size: 11px; margin: 8px 0 12px; }
.hkw-upload-btn { margin: 0; }

.hkw-success-box {
    border-style: solid;
    border-color: rgba(125, 227, 163, 0.4);
    background: rgba(125, 227, 163, 0.1);
    color: #b6f0cd;
}
.hkw-danger-box {
    border-style: solid;
    border-color: rgba(255, 107, 107, 0.4);
    background: rgba(255, 107, 107, 0.1);
    color: #ffc9c9;
}

/* ---------- Where-to-next buttons ---------- */
.hkw-nav-btns {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hkw-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
}
.hkw-nav-btn:hover {
    background: rgba(106, 92, 255, 0.28);
    border-color: rgba(106, 92, 255, 0.6);
    color: #fff;
    transform: translateY(-1px);
}
.hkw-nav-btn span { font-size: 18px; }
.hkw-nav-btn small { color: #9a9dc7; font-size: 10px; font-weight: 400; line-height: 1.3; }

/* ==========================================================================
   Season countdown — "time left to join this hackathon"
   Rendered by resources/views/layouts/hackathon-countdown.blade.php and ticked
   by hackathon-widget.js. Theme-aware: falls back to fixed colours when the
   Digicrome AI variables are not on the page.
   ========================================================================== */
.hks-countdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    margin-bottom: 22px;
    border-radius: var(--dg-r-lg, 22px);
    border: 1px solid rgba(106, 92, 255, .35);
    background:
        linear-gradient(135deg, rgba(34, 211, 238, .10) 0%, rgba(99, 102, 241, .14) 55%, rgba(168, 85, 247, .12) 100%),
        var(--dg-surface, rgba(19, 25, 43, .72));
    color: var(--dg-text, #e8ecf7);
    box-shadow: var(--dg-shadow, 0 10px 30px -12px rgba(2, 6, 23, .85));
}

.hks-countdown-main { flex: 1 1 320px; min-width: 260px; }
.hks-countdown-side { flex: 0 0 auto; text-align: center; }

.hks-countdown-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dg-text-mute, #7c88a8);
    margin-bottom: 8px;
}
.hks-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .18);
    animation: hks-pulse 1.6s ease-in-out infinite;
}
@keyframes hks-pulse {
    50% { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); }
}

.hks-countdown-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--dg-text, #e8ecf7);
}
.hks-countdown-copy {
    margin: 0;
    font-size: .85rem;
    line-height: 1.55;
    color: var(--dg-text-soft, #aab4cf);
}
.hks-countdown-copy strong { color: var(--dg-text, #e8ecf7); }

.hks-countdown-label {
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dg-text-mute, #7c88a8);
    margin-bottom: 8px;
}

.hks-clock {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
}
.hks-clock-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 58px;
    padding: 8px 6px;
    border-radius: 12px;
    background: rgba(10, 15, 28, .88);
    border: 1px solid rgba(148, 163, 184, .18);
}
.hks-clock-unit b {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}
.hks-clock-unit span {
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9aa4c4;
}
.hks-clock-sep {
    font-size: 20px;
    font-weight: 700;
    color: #6a5cff;
    padding-bottom: 20px;
}

.hks-join-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    color: #05121b;
    background: linear-gradient(135deg, #22d3ee, #6366f1);
    transition: transform .18s ease, box-shadow .18s ease;
}
.hks-join-btn:hover {
    color: #05121b;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -8px rgba(99, 102, 241, .9);
}

.hks-closed-pill {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    color: #fb7185;
    background: rgba(251, 113, 133, .12);
    border: 1px solid rgba(251, 113, 133, .4);
}

/* Live vs. closed faces: exactly one is visible at a time. */
.hks-countdown .hks-when-closed { display: none; }
.hks-countdown.hks-closed .hks-when-live { display: none; }
.hks-countdown.hks-closed .hks-when-closed { display: block; }

.hks-countdown.hks-closed {
    border-color: rgba(251, 113, 133, .4);
    background:
        linear-gradient(135deg, rgba(251, 113, 133, .10) 0%, rgba(168, 85, 247, .08) 100%),
        var(--dg-surface, rgba(19, 25, 43, .72));
}
.hks-countdown.hks-closed .hks-dot {
    background: #fb7185;
    box-shadow: none;
    animation: none;
}
.hks-countdown.hks-closed .hks-clock-sep { color: #fb7185; }
.hks-countdown.hks-closed .hks-clock-unit b { color: #ffb3bf; }

/* Join buttons the countdown switches off once the last date passes. */
.hks-join-disabled {
    pointer-events: none;
    opacity: .5;
    cursor: not-allowed;
}

@media (max-width: 575.98px) {
    .hks-countdown { padding: 16px; }
    .hks-countdown-side { width: 100%; }
    .hks-clock-unit { min-width: 0; flex: 1; }
}

/* Widget clock after the deadline: still visible, frozen at zero, reading closed. */
.hkw-timer-box.hkw-timer-over {
    border-color: rgba(251, 113, 133, .45);
    background: linear-gradient(135deg, rgba(251, 113, 133, .12), rgba(168, 85, 247, .08));
}
.hkw-timer-box.hkw-timer-over .hkw-clock-sep { color: #fb7185; }
.hkw-timer-box.hkw-timer-over .hkw-clock-unit b { color: #ffb3bf; }
