/* HUD Top Bar */
.hud-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: var(--dark);
    border-bottom: 2px solid var(--dark-light);
    z-index: 80;
    font-family: var(--font-body);
    color: var(--light);
    gap: 12px;
}

.hud-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Logo area */
.hud-logo {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

/* Stat items */
.hud-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--dark-mid);
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
}

.hud-stat-icon {
    font-size: 16px;
}

.hud-stat-value {
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--light);
}

.hud-stat-value.cash {
    color: var(--success);
}

.hud-stat-value.negative {
    color: var(--danger);
}

/* Day counter */
.hud-day {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--light-dim);
}

/* Speed controls */
.hud-speed {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--dark-mid);
    border-radius: 6px;
    padding: 2px;
}

.hud-speed-btn {
    padding: 4px 10px;
    background: none;
    border: none;
    color: var(--light-dim);
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.1s ease;
}

.hud-speed-btn:hover {
    background: var(--dark-light);
    color: var(--light);
}

.hud-speed-btn.active {
    background: var(--primary);
    color: var(--light);
}

.hud-speed-btn.pause-btn {
    font-size: 14px;
}

/* Tier badge */
.hud-tier {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid;
}

/* Reputation stars */
.hud-reputation {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
}

.hud-star {
    color: var(--dark-light);
}

.hud-star.filled {
    color: var(--accent);
}

/* Notification bell */
.hud-notifications {
    position: relative;
    cursor: pointer;
    padding: 4px 8px;
    background: var(--dark-mid);
    border-radius: 6px;
    font-size: 18px;
    border: none;
    color: var(--light-dim);
}

.hud-notifications:hover {
    background: var(--dark-light);
    color: var(--light);
}

.hud-notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-family: var(--font-mono);
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hud-notif-badge:empty,
.hud-notif-badge.hidden {
    display: none;
}

/* Orders / Purchasing quick-access buttons */
.hud-action-btn {
    padding: 6px 14px;
    background: var(--dark-mid);
    border: 1px solid var(--dark-light);
    border-radius: 6px;
    color: var(--light-dim);
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.hud-action-btn:hover {
    background: var(--dark-light);
    color: var(--light);
    border-color: var(--primary);
}

.hud-action-btn .count {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent);
    margin-left: 4px;
}

/* Notification dropdown */
.hud-notif-dropdown {
    position: fixed;
    top: 56px;
    right: 16px;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--dark-mid);
    border: 1px solid var(--dark-light);
    border-radius: 8px;
    z-index: 150;
    display: none;
}

.hud-notif-dropdown.open {
    display: block;
}

.hud-notif-item {
    padding: 10px 14px;
    border-bottom: 1px solid var(--dark-light);
    font-size: 13px;
    color: var(--light-dim);
}

.hud-notif-item:last-child {
    border-bottom: none;
}

.hud-notif-item .notif-day {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--dark-light);
    float: right;
}

/* Save indicator */
.hud-save-indicator {
    position: fixed;
    bottom: 80px;
    right: 16px;
    background: var(--dark-mid);
    border: 1px solid var(--success);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    color: var(--success);
    font-family: var(--font-mono);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 200;
}

.hud-save-indicator.show {
    opacity: 1;
}

/* Setup Phase Banner */
.setup-phase-banner {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    padding: 16px 28px;
    text-align: center;
    font-family: var(--font-body);
    color: #fafaf9;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.35);
    min-width: 320px;
    max-width: 520px;
}

.setup-banner-step {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c7d2fe;
    margin-bottom: 6px;
}

.setup-banner-prompt {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}

.setup-banner-hint {
    font-size: 12px;
    color: #a5b4fc;
    font-family: var(--font-mono);
}
