/* --- [1] ROOT VARIABLES (Synced with main site) --- */
:root {
--bg-dark: #121212;      /* Match status/main page */
    --card-glass: rgba(30, 30, 30, 0.7);
    --border-light: rgba(255, 255, 255, 0.1);
    --text-main: #e5e5e5;
    --text-muted: #a3a3a3;
    --text-dim: #666;
    --steam-blue: #66c0f4;
    --accent-green: #4caf50; /* Match your logo dot */
    --accent-red: #f44336;
}

/* --- [2] BASE STYLES --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    /* Clean background from main site */
    background-color: var(--bg-dark);
    color: var(--text-main);
    padding: 20px;
}

/* --- [3] DASHBOARD CARD --- */
.container {
    width: 100%;
    max-width: 400px;
    background: var(--card-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* Matching your main site's subtle border style */
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

header {
    margin-bottom: 25px;
    /* Adding the divider line from your main page */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 { 
    font-size: 0.9rem; 
    letter-spacing: 0.1rem; 
    text-transform: uppercase; 
    color: var(--text-dim); 
}

/* --- [4] CIRCULAR TIMER --- */
.timer-box {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring__circle {
    stroke: var(--accent-green);
    stroke-dasharray: 100.5;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

#seconds-text {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-main);
}

/* --- [5] ACCOUNT ITEMS --- */
.code-list { display: flex; flex-direction: column; gap: 12px; }

.account-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.account-item:hover {
    border-color: var(--steam-blue);
    background: rgba(102, 192, 244, 0.04);
    transform: translateY(-1px);
}

.account-name {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    margin-bottom: 4px;
}

.steam-code {
    font-family: 'Courier New', monospace;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--steam-blue);
    letter-spacing: 6px;
}

.copy-hint { 
    font-size: 0.6rem; 
    color: var(--text-dim); 
    margin-top: 8px; 
}

/* --- [6] REFRESH PULSE --- */
.refreshing { animation: refresh-pulse 0.5s ease-out; }
@keyframes refresh-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* --- [7] ERROR STATE (The Red Alert) --- */
.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 140px;
    padding: 20px;
    
    /* Using your existing variables */
    background: rgba(255, 75, 75, 0.05); 
    border: 1px solid rgba(255, 75, 75, 0.2); 
    border-radius: 8px;
    margin-top: 10px;
    text-align: center;
}

.error-message i {
    font-size: 2.2rem;
    color: var(--accent-red); /* High visibility Red */
    filter: drop-shadow(0 0 10px rgba(255, 75, 75, 0.3));
}

.error-message span {
    color: var(--accent-red); /* High visibility Red */
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- [2] SHARED NAVBAR STYLES --- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000; /* Above everything but the entry overlay */
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.9), transparent);
}

.nav-right {
    display: flex;
    align-items: center; /* Forces the buttons to stay centered in the 60px height */
    gap: 15px;
}

.nav-brand {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    color: var(--text-muted);
}

.dot-accent {
    color: var(--accent-green);
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.nav-link i {
    font-size: 0.8rem;
}

.nav-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-light);
}