:root {
    --bg-color: #0a0a0c;
    --accent-color: #7289da;
    --void-purple: #4b0082;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background_void.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

header {
    padding: 20px;
    text-align: center;
}

.v01d-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 4px;
    background: linear-gradient(90deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--glass-bg);
    margin-top: 15px;
    border-radius: 2px;
    overflow: hidden;
}

#progress-fill {
    height: 100%;
    background: var(--accent-color);
    width: 16.6%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--accent-color);
}

#content-slider {
    flex: 1;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.step-content {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.step-content.hidden-left {
    transform: translateX(-100%);
    opacity: 0;
}

.step-content.hidden-right {
    transform: translateX(100%);
    opacity: 0;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 15px rgba(114, 137, 218, 0.4));
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.action-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 12px;
    width: 100%;
    margin-top: 10px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}

.action-card:active {
    background: rgba(255, 255, 255, 0.1);
}

.action-card i {
    color: var(--accent-color);
}

footer {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
}

.nav-btn {
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.3s;
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

#step-indicator {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.code-block {
    background: #000;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: monospace;
    color: #00ff00;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Server status modal */
#status-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}
#status-modal .status-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
}
.status-window {
    position: relative;
    width: calc(100% - 40px);
    max-width: 420px;
    background: rgba(20,20,24,0.9);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 16px;
    z-index: 2;
    color: var(--text-primary);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
.status-close {
    position: absolute;
    right: 10px;
    top: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.status-body h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}
.status-content {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 12px;
    text-align: left;
}
.status-content .status-motd {
    margin-top: 8px;
    color: #cfcfcf;
    font-style: italic;
}
.status-error, .status-offline {
    color: #ff6b6b;
}
.status-actions { display: flex; gap: 8px; justify-content: center; }
.status-open.action-card { padding: 8px 12px; justify-content: center; width: auto; }