/* ═══════════════════════════════════════════════════════════════
   Obelix WOL — Cyberpunk Theme
   ═══════════════════════════════════════════════════════════════ */

/* ─── Reset & Base ────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cyan: #00f0ff;
    --cyan-dim: #41696c66;
    --magenta: #ff00ff;
    --magenta-dim: #ff00ff44;
    --neon-green: #39ff14;
    --neon-red: #ff1744;
    --dark-bg: #0a0a12;
    --panel-bg: rgba(10, 10, 25, 0.75);
    --panel-border: rgba(0, 240, 255, 0.2);
    --font-display: 'Orbitron', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    --glow-cyan: 0 0 10px var(--cyan-dim), 0 0 40px rgba(0, 240, 255, 0.15);
    --glow-green: 0 0 10px rgba(57, 255, 20, 0.4), 0 0 40px rgba(57, 255, 20, 0.15);
    --glow-red: 0 0 10px rgba(255, 23, 68, 0.4), 0 0 40px rgba(255, 23, 68, 0.15);
}

body {
    font-family: var(--font-mono);
    background: var(--dark-bg);
    color: var(--cyan);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8vh;
    overflow: hidden;
    position: relative;
}

/* Background image */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('assets/obelix_wp.jpg') 48% center / cover no-repeat;
    z-index: -2;
}

/* Dark overlay to keep text readable */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(10, 10, 18, 0.6) 0%,
            rgba(10, 10, 18, 0.3) 40%,
            rgba(10, 10, 18, 0.5) 100%);
    z-index: -1;
}

/* ─── CRT Scanlines Overlay ──────────────────────────────────── */
.scanlines {
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.08) 2px,
            rgba(0, 0, 0, 0.08) 4px);
    pointer-events: none;
    z-index: 100;
}

/* ─── Lock Screen ─────────────────────────────────────────────── */
.lock-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
    background: rgba(5, 5, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: lockFadeIn 0.5s ease;
}

@keyframes lockFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lock-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 36px;
    background: rgba(10, 10, 25, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.05);
    max-width: 360px;
    width: calc(100% - 40px);
}

.lock-icon {
    font-size: 2rem;
    filter: grayscale(1) brightness(1.5);
    opacity: 0.7;
}

.lock-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan-dim);
    text-align: center;
}

.lock-subtitle {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1px;
    margin-top: -8px;
}

.lock-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lock-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lock-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.04);
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 3px;
    outline: none;
    transition: all 0.3s ease;
}

.lock-input::placeholder {
    color: rgba(0, 240, 255, 0.2);
    letter-spacing: 6px;
}

.lock-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 12px var(--cyan-dim), inset 0 0 12px rgba(0, 240, 255, 0.04);
}

.lock-submit {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--cyan);
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--cyan);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lock-submit:hover:not(:disabled) {
    background: rgba(0, 240, 255, 0.18);
    box-shadow: 0 0 15px var(--cyan-dim);
    transform: translateY(-1px);
}

.lock-submit:active:not(:disabled) {
    transform: translateY(0);
}

.lock-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lock-error {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-align: center;
    min-height: 1.2em;
    color: transparent;
    transition: color 0.3s ease;
}

.lock-error.visible {
    color: var(--neon-red);
    text-shadow: 0 0 6px rgba(255, 23, 68, 0.3);
}

.lock-error.success {
    color: var(--neon-green);
    text-shadow: 0 0 6px rgba(57, 255, 20, 0.3);
}

/* ─── Container ───────────────────────────────────────────────── */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 32px 24px;
    max-width: 420px;
    width: 100%;
}

/* ─── Status Panel ────────────────────────────────────────────── */
.status-panel {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 20px 28px;
    width: 100%;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.status-panel.up {
    border-color: rgba(57, 255, 20, 0.35);
    box-shadow: var(--glow-green);
}

.status-panel.down {
    border-color: rgba(255, 23, 68, 0.35);
    box-shadow: var(--glow-red);
}

/* Status dot */
.status-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #555;
    flex-shrink: 0;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

.status-dot.up {
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green), 0 0 24px rgba(57, 255, 20, 0.4);
    animation: pulse-green 2s infinite;
}

.status-dot.down {
    background: var(--neon-red);
    box-shadow: 0 0 8px var(--neon-red), 0 0 24px rgba(255, 23, 68, 0.4);
    animation: pulse-red 2.5s infinite;
}

.status-dot.booting {
    background: #ff9800;
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.6);
    animation: sshBlink 1s ease-in-out infinite;
}

@keyframes pulse-green {

    0%,
    100% {
        box-shadow: 0 0 8px var(--neon-green), 0 0 24px rgba(57, 255, 20, 0.4);
    }

    50% {
        box-shadow: 0 0 12px var(--neon-green), 0 0 36px rgba(57, 255, 20, 0.6);
    }
}

@keyframes pulse-red {

    0%,
    100% {
        box-shadow: 0 0 8px var(--neon-red), 0 0 24px rgba(255, 23, 68, 0.4);
    }

    50% {
        box-shadow: 0 0 4px var(--neon-red), 0 0 12px rgba(255, 23, 68, 0.2);
    }
}

/* Status text */
.status-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-label {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.status-details {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.status-value {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.status-ip {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-green);
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 4px;
    padding: 2px 8px;
    letter-spacing: 1px;
    text-shadow: 0 0 6px rgba(57, 255, 20, 0.4);
    animation: fadeSlideIn 0.3s ease;
}

.status-panel.up .status-value {
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
}

.status-panel.down .status-value {
    color: var(--neon-red);
    text-shadow: 0 0 8px rgba(255, 23, 68, 0.5);
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Power Area (wraps POWER ON / POWER OFF + SLEEP) ─────────── */
.power-area {
    display: flex;
    gap: 10px;
    width: 100%;
}
.power-area > button {
    flex: 1;
    width: auto;
}

/*
 * ─── WOL Button — Token Architecture ──────────────────────────────
 *
 *  How it works:
 *    1. BASE        defines layout + reads tokens
 *    2. VARIANTS    (.shutdown-btn, .sleep-btn) set the color tokens
 *    3. STATES      (.sending, .booting, :disabled, .ssh-starting)
 *                   override tokens — placed AFTER variants so source
 *                   order wins on equal specificity (0,2,0 each).
 *                   No !important needed.
 *
 *  Token reference:
 *    --btn-clr          text / icon color
 *    --btn-bg           background
 *    --btn-border       border color
 *    --btn-glow         box-shadow for hover
 *    --btn-icon-opacity SVG icon opacity (inherited by .wol-btn-icon)
 */

/* ── BASE ──────────────────────────────────────────────────────── */
.wol-btn {
    /* Default tokens (cyan = POWER ON) */
    --btn-clr:          var(--cyan);
    --btn-bg:           rgba(0, 240, 255, 0.08);
    --btn-border:       var(--cyan);
    --btn-glow:         var(--glow-cyan);
    --btn-icon-opacity: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 24px;
    border: 2px solid var(--btn-border);
    border-radius: 12px;
    background: var(--btn-bg);
    color: var(--btn-clr);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease,
                box-shadow 0.3s ease, transform 0.2s ease,
                color 0.3s ease, opacity 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Shimmer overlay — revealed on hover */
.wol-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 30%,
            rgba(255, 255, 255, 0.07), transparent 65%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Icon — opacity driven by token */
.wol-btn-icon {
    width: 1.4rem;
    height: 1.4rem;
    flex-shrink: 0;
    fill: currentColor;
    opacity: var(--btn-icon-opacity);
    transition: opacity 0.3s ease;
}

/* Hover — guard against active states */
.wol-btn:hover:not(:disabled):not(.sending):not(.booting):not(.ssh-starting)::before {
    opacity: 1;
}
.wol-btn:hover:not(:disabled):not(.sending):not(.booting):not(.ssh-starting) {
    box-shadow: var(--btn-glow), inset 0 0 30px rgba(255, 255, 255, 0.03);
    border-color: var(--btn-border);
    transform: translateY(-2px);
}
.wol-btn:active:not(:disabled):not(.sending):not(.booting):not(.ssh-starting) {
    transform: translateY(0);
    box-shadow: var(--btn-glow);
}

/* ── VARIANTS — set the color tokens ──────────────────────────── */

/* Power Off (red) */
.wol-btn.shutdown-btn {
    --btn-clr:    var(--neon-red);
    --btn-bg:     rgba(255, 23, 68, 0.08);
    --btn-border: var(--neon-red);
    --btn-glow:   var(--glow-red);
}

/* Sleep (amber) */
.wol-btn.sleep-btn {
    --btn-clr:    #ff9800;
    --btn-bg:     rgba(255, 152, 0, 0.06);
    --btn-border: rgba(255, 152, 0, 0.5);
    --btn-glow:   0 0 20px rgba(255, 152, 0, 0.3), 0 0 50px rgba(255, 152, 0, 0.08);
    flex: 0 0 auto;
    min-width: 140px;
}

/* ══ STATES — always placed after variants; source order wins ══ */

/* Disabled (gray) — base state, placed first so sending can override */
.wol-btn:disabled,
.wol-btn.disabled {
    --btn-clr:          rgba(100, 100, 120, 0.5);
    --btn-bg:           rgba(30, 30, 40, 0.4);
    --btn-border:       rgba(100, 100, 120, 0.3);
    --btn-icon-opacity: 0.3;
    cursor: not-allowed;
}

/* Sending (magenta pulse) — overrides disabled and variants */
.wol-btn.sending {
    --btn-clr:          var(--magenta);
    --btn-bg:           rgba(255, 0, 255, 0.08);
    --btn-border:       var(--magenta);
    --btn-icon-opacity: 0.25;
    cursor: not-allowed;
    animation: sendPulse 1s ease-in-out infinite;
}

@keyframes sendPulse {
    0%, 100% { box-shadow: 0 0 10px var(--magenta-dim); }
    50%       { box-shadow: 0 0 28px var(--magenta-dim), 0 0 55px rgba(255, 0, 255, 0.12); }
}

/* Booting (magenta scan sweep) — unique animation, icon dimmed */
.wol-btn.booting {
    --btn-clr:          var(--magenta);
    --btn-bg:           rgba(255, 0, 255, 0.06);
    --btn-border:       var(--magenta);
    --btn-icon-opacity: 0.25;
    cursor: not-allowed;
    animation: bootingGlow 2s ease-in-out infinite;
}

.wol-btn.booting::after {
    content: '';
    position: absolute;
    top: 0;
    left: -70%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 0, 255, 0.18),
            transparent);
    animation: bootScan 1.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bootingGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 0, 255, 0.2); }
    50%       { box-shadow: 0 0 22px rgba(255, 0, 255, 0.45), 0 0 50px rgba(255, 0, 255, 0.1); }
}

@keyframes bootScan {
    from { left: -70%; }
    to   { left: 130%; }
}

/* SSH Starting (amber) — machine up, SSH not ready yet */
.wol-btn.ssh-starting {
    --btn-clr:    #ff9800;
    --btn-bg:     rgba(255, 152, 0, 0.06);
    --btn-border: rgba(255, 152, 0, 0.4);
    opacity: 0.7;
    cursor: not-allowed;
}

/* ─── SSH Notice ──────────────────────────────────────────────── */
.ssh-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 1px;
    color: #ff9800;
    opacity: 0.85;
}

.ssh-notice-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff9800;
    animation: sshBlink 1.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes sshBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

/* ─── Shutdown Confirmation Modal ─────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 80;
    background: rgba(5, 5, 15, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: lockFadeIn 0.2s ease;
}

.modal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 36px 32px;
    background: rgba(10, 10, 25, 0.9);
    border: 1px solid rgba(255, 23, 68, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 23, 68, 0.08);
    max-width: 340px;
    width: calc(100% - 40px);
    text-align: center;
}

.modal-icon {
    font-size: 2rem;
    line-height: 1;
    color: #ff9800;
    text-shadow: 0 0 16px rgba(255, 152, 0, 0.5);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--neon-red);
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.4);
}

.modal-body {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 6px;
}

.modal-btn {
    flex: 1;
    padding: 11px 16px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.modal-btn.cancel {
    border: 1px solid rgba(0, 240, 255, 0.3);
    background: rgba(0, 240, 255, 0.05);
    color: var(--cyan);
}

.modal-btn.cancel:hover {
    background: rgba(0, 240, 255, 0.12);
    box-shadow: 0 0 12px var(--cyan-dim);
}

.modal-btn.confirm {
    border: 1px solid var(--neon-red);
    background: rgba(255, 23, 68, 0.12);
    color: var(--neon-red);
}

.modal-btn.confirm:hover {
    background: rgba(255, 23, 68, 0.22);
    box-shadow: var(--glow-red);
    transform: translateY(-1px);
}

.modal-btn.confirm:active {
    transform: translateY(0);
}

/* ─── Message ─────────────────────────────────────────────────── */
.message {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-align: center;
    min-height: 1.5em;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 0 8px;
}

.message.info {
    color: var(--cyan);
}

.message.success {
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.3);
}

.message.error {
    color: var(--neon-red);
    text-shadow: 0 0 8px rgba(255, 23, 68, 0.3);
}

/* ─── Demo Banner ─────────────────────────────────────────────── */
.demo-banner {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 0, 255, 0.12);
    border: 1px solid var(--magenta-dim);
    border-radius: 8px;
    padding: 8px 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--magenta);
    letter-spacing: 1px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 50;
    animation: fadeSlideIn 0.6s ease;
    white-space: nowrap;
}

/* ─── Sunshine Status Bar ─────────────────────────────────────── */
.sunshine-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 20px 14px;
    background: rgba(10, 10, 25, 0.85);
    border-top: 1px solid rgba(255, 170, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 50;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.sunshine-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sunshine-icon {
    font-size: 1rem;
    filter: drop-shadow(0 0 4px rgba(255, 170, 0, 0.6));
}

.sunshine-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: rgba(255, 170, 0, 0.8);
}

.sunshine-status {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    margin-left: 4px;
}

/* Sunshine color states */
.sunshine-bar.all-up .sunshine-status {
    color: var(--neon-green);
    text-shadow: 0 0 6px rgba(57, 255, 20, 0.4);
}

.sunshine-bar.all-up {
    border-top-color: rgba(57, 255, 20, 0.25);
}

.sunshine-bar.partial .sunshine-status {
    color: #ffaa00;
    text-shadow: 0 0 6px rgba(255, 170, 0, 0.4);
}

.sunshine-bar.partial {
    border-top-color: rgba(255, 170, 0, 0.25);
}

.sunshine-bar.all-down .sunshine-status {
    color: var(--neon-red);
    text-shadow: 0 0 6px rgba(255, 23, 68, 0.4);
}

.sunshine-bar.all-down {
    border-top-color: rgba(255, 23, 68, 0.25);
}

.sunshine-bar.warning .sunshine-status {
    color: #ffaa00;
    font-size: 0.65rem;
}

/* Port pills */
.sunshine-ports {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.port-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    border: 1px solid;
    transition: all 0.3s ease;
}

.port-pill .port-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.port-pill .port-num {
    opacity: 0.5;
    font-size: 0.6rem;
}

/* Port up */
.port-pill.port-up {
    border-color: rgba(57, 255, 20, 0.3);
    color: var(--neon-green);
    background: rgba(57, 255, 20, 0.06);
}

.port-pill.port-up .port-dot {
    background: var(--neon-green);
    box-shadow: 0 0 4px var(--neon-green);
}

/* Port down */
.port-pill.port-down {
    border-color: rgba(255, 23, 68, 0.2);
    color: rgba(255, 23, 68, 0.6);
    background: rgba(255, 23, 68, 0.04);
}

.port-pill.port-down .port-dot {
    background: rgba(255, 23, 68, 0.5);
}

/* ─── Sunshine Service Controls ───────────────────────────────── */
.sunshine-controls {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 2px;
}

.sun-ctl-btn {
    padding: 5px 12px;
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid;
}

.sun-ctl-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sun-ctl-btn.loading {
    animation: sendPulse 0.8s infinite;
}

.sun-ctl-btn.start {
    border-color: rgba(57, 255, 20, 0.4);
    color: var(--neon-green);
    background: rgba(57, 255, 20, 0.06);
}

.sun-ctl-btn.start:hover:not(:disabled) {
    background: rgba(57, 255, 20, 0.14);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

.sun-ctl-btn.stop {
    border-color: rgba(255, 23, 68, 0.4);
    color: var(--neon-red);
    background: rgba(255, 23, 68, 0.06);
}

.sun-ctl-btn.stop:hover:not(:disabled) {
    background: rgba(255, 23, 68, 0.14);
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.2);
}

.sun-ctl-btn.restart {
    border-color: rgba(255, 152, 0, 0.4);
    color: #ff9800;
    background: rgba(255, 152, 0, 0.06);
}

.sun-ctl-btn.restart:hover:not(:disabled) {
    background: rgba(255, 152, 0, 0.14);
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.2);
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 480px) {
    .container {
        padding: 24px 16px;
        gap: 20px;
    }

    .status-panel {
        padding: 16px 20px;
    }

    .status-label {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .wol-btn {
        padding: 16px 20px;
        font-size: 1rem;
    }

    .demo-banner {
        font-size: 0.65rem;
        padding: 6px 14px;
    }

    .sunshine-bar {
        padding: 10px 12px 12px;
    }

    .sunshine-title {
        font-size: 0.6rem;
    }

    .port-pill {
        font-size: 0.58rem;
        padding: 2px 8px;
    }
}