:root {
    /* Brand / Primary (blue) */
    --color-primary: #2b7fff;
    --color-primary-hover: #4d94ff;
    --color-primary-active: #1f6fe6;
    --color-primary-rgb: 43, 127, 255;

    /* Accent (blue — tab pills, highlights) */
    --color-accent: #2b7fff;
    --color-accent-dark: #1f6fe6;
    --color-accent-light: #6eb0ff;
    --color-accent-mid: #4d94ff;
    --color-accent-rgb: 43, 127, 255;
    --color-accent-border: #1a3d73;

    /* Controls (brown header buttons) */
    --color-control: #8B4513;
    --color-control-hover: #A0522D;
    --color-control-active: #654321;

    /* Action (settings buttons — blue) */
    --color-action: #2b7fff;
    --color-action-hover: #4d94ff;
    --color-action-active: #1f6fe6;
    --color-action-rgb: 43, 127, 255;

    /* Status */
    --color-online: #90EE90;
    --color-online-rgb: 144, 238, 144;
    --color-offline: #ff6b6b;
    --color-offline-rgb: 255, 107, 107;

    /* Branch badges */
    --color-success: #4CAF50;
    --color-success-dark: #45a049;
    --color-success-rgb: 76, 175, 80;
    --color-warning: #FF9800;
    --color-warning-dark: #F57C00;
    --color-warning-rgb: 255, 152, 0;
    --color-neutral: #9E9E9E;
    --color-neutral-dark: #757575;
    --color-neutral-rgb: 158, 158, 158;

    /* Text */
    --color-text: #ffffff;
    --color-text-muted: #ccc;
    --color-text-subtle: #aaa;
    --color-text-disabled: #A0A0A0;
    --color-text-dark: #000000;
    --color-text-body: #e0e0e0;
    --color-gold: #ffd700;

    /* Surfaces */
    --color-bg-dark: #1a1a1a;
    --color-bg-panel: #282828;
    --color-bg-hover: #333333;
    --color-border: #404040;
    --color-border-light: #666666;
    --color-surface: #2c2c2c;
    --color-sidebar: rgba(18, 18, 18, 0.96);

    /* Danger */
    --color-danger-dark: #5a1a1a;
    --color-danger-hover: #7a2525;
    --color-error: rgba(220, 53, 69, 0.9);
    --color-error-border: rgba(220, 53, 69, 0.5);
    --color-warning-bg: rgba(255, 193, 7, 0.9);
    --color-warning-border: rgba(255, 193, 7, 0.5);

    /* Close button (window) */
    --overlay-close: rgba(95, 18, 18, 0.72);
    --overlay-close-hover: rgba(110, 22, 22, 0.82);
    --overlay-close-active: rgba(75, 12, 12, 0.9);
    --overlay-close-border: rgba(140, 40, 40, 0.55);
    --overlay-close-border-hover: rgba(160, 50, 50, 0.65);

    /* Overlays */
    --overlay-tooltip: rgba(0, 0, 0, 0.623);
    --overlay-backdrop: rgba(0, 0, 0, 0.45);
    --overlay-panel: rgba(0, 0, 0, 0.7);
    --overlay-panel-hover: rgba(0, 0, 0, 0.78);
    --overlay-panel-active: rgba(0, 0, 0, 0.85);
    --overlay-subtle: rgba(0, 0, 0, 0.3);
    --overlay-footer: rgba(0, 0, 0, 0.2);
    --overlay-card: rgba(0, 0, 0, 0.8);
    --overlay-red: rgba(255, 0, 0, 0.2);
    --overlay-red-strong: rgba(255, 0, 0, 0.3);
    --overlay-red-soft: rgba(255, 0, 0, 0.1);

    /* White alpha */
    --white-10: rgba(255, 255, 255, 0.1);
    --white-12: rgba(255, 255, 255, 0.12);
    --white-15: rgba(255, 255, 255, 0.15);
    --white-20: rgba(255, 255, 255, 0.2);
    --white-25: rgba(255, 255, 255, 0.25);
    --white-30: rgba(255, 255, 255, 0.3);
    --white-35: rgba(255, 255, 255, 0.35);
    --white-80: rgba(255, 255, 255, 0.8);

    /* Black alpha */
    --black-15: rgba(0, 0, 0, 0.15);
    --black-20: rgba(0, 0, 0, 0.2);
    --black-shadow: rgba(0, 0, 0, 0.3);
    --black-shadow-md: rgba(0, 0, 0, 0.4);
    --black-shadow-lg: rgba(0, 0, 0, 0.5);
    --black-shadow-xl: rgba(0, 0, 0, 0.55);

    /* Gradients */
    --gradient-body: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent-dark) 50%, var(--color-accent-mid) 100%);
    --gradient-progress: linear-gradient(90deg, var(--color-accent-dark), var(--color-accent-light));
    --gradient-notification-header: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    --gradient-notification-bg: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg-dark) 100%);
    --gradient-notification-btn: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    --gradient-notification-btn-hover: linear-gradient(90deg, var(--color-accent-dark) 0%, var(--color-accent) 100%);
    --gradient-card-placeholder: linear-gradient(145deg, rgba(40, 40, 50, 0.95) 0%, rgba(20, 20, 28, 0.9) 100%);
    --gradient-card-overlay: linear-gradient(transparent, var(--overlay-card));
    --gradient-branch-production: linear-gradient(90deg, var(--color-success) 0%, var(--color-success-dark) 100%);
    --gradient-branch-development: linear-gradient(90deg, var(--color-warning) 0%, var(--color-warning-dark) 100%);
    --gradient-branch-checking: linear-gradient(90deg, var(--color-neutral) 0%, var(--color-neutral-dark) 100%);
    --gradient-branch-config: linear-gradient(135deg, rgba(var(--color-action-rgb), 0.15) 0%, rgba(var(--color-action-rgb), 0.25) 100%);
    --gradient-branch-config-hover: linear-gradient(135deg, rgba(var(--color-action-rgb), 0.25) 0%, rgba(var(--color-action-rgb), 0.35) 100%);
    --gradient-branch-icon: linear-gradient(135deg, var(--color-action) 0%, var(--color-action-hover) 100%);
    --gradient-shine: linear-gradient(90deg, transparent, var(--white-30), transparent);
    --gradient-shine-soft: linear-gradient(90deg, transparent, var(--white-10), transparent);

    /* Shadows */
    --shadow-control: 0 2px 8px var(--black-shadow);
    --shadow-control-hover: 0 4px 12px var(--black-shadow-md);
    --shadow-control-active: 0 2px 6px var(--black-shadow-lg), inset 0 2px 4px var(--black-shadow);
    --shadow-panel: 0 10px 30px var(--black-shadow-lg), 0 0 0 1px var(--white-10);
    --shadow-sidebar: -8px 0 32px var(--black-shadow-xl);
    --shadow-play: var(--shadow-btn-3d);
    --shadow-play-hover: var(--shadow-btn-3d-hover);
    --shadow-play-active: var(--shadow-btn-3d-active);
    --shadow-accent: 0 4px 15px rgba(var(--color-accent-rgb), 0.35);
    --shadow-accent-hover: 0 6px 20px rgba(var(--color-accent-rgb), 0.45);
    --shadow-accent-tab: var(--shadow-btn-3d);

    /* 3D button system (shared face, border, depth) */
    --btn-face: var(--color-accent);
    --btn-face-hover: var(--color-accent-mid);
    --btn-face-active: var(--color-accent-dark);
    --btn-ink: var(--color-text);
    --btn-border: 2px solid var(--color-accent-border);
    --btn-depth: 2px;
    --shadow-btn-3d:
        0 var(--btn-depth) 0 var(--color-accent-border),
        0 2px 5px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        inset 0 -1px 0 rgba(74, 48, 24, 0.16);
    --shadow-btn-3d-hover:
        0 var(--btn-depth) 0 var(--color-accent-border),
        0 3px 7px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        inset 0 -1px 0 rgba(74, 48, 24, 0.14);
    --shadow-btn-3d-active:
        0 1px 0 var(--color-accent-border),
        0 1px 3px rgba(0, 0, 0, 0.25),
        inset 0 2px 4px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    /* 3D — light face (news tabs active, repair button) */
    --btn-face-light: #e0e0e0;
    --btn-face-light-hover: #d4d4d4;
    --btn-face-light-active: #c8c8c8;
    --btn-edge-light: rgba(0, 0, 0, 0.28);
    --shadow-btn-3d-light:
        0 var(--btn-depth) 0 var(--btn-edge-light),
        0 2px 8px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -2px 0 rgba(0, 0, 0, 0.12);
    --shadow-btn-3d-light-hover:
        0 var(--btn-depth) 0 rgba(0, 0, 0, 0.32),
        0 3px 10px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    --shadow-btn-3d-light-pressed:
        0 1px 0 var(--btn-edge-light),
        0 1px 4px rgba(0, 0, 0, 0.24),
        inset 0 2px 5px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    --btn-face-danger: #c62828;
    --btn-face-danger-hover: #e53935;
    --btn-face-danger-active: #b71c1c;
    --btn-edge-danger: #4a1010;
    --shadow-btn-3d-danger:
        0 var(--btn-depth) 0 var(--btn-edge-danger),
        0 2px 5px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    --shadow-online: 0 0 10px rgba(var(--color-online-rgb), 0.5);
    --shadow-offline: 0 0 10px rgba(var(--color-offline-rgb), 0.5);
    --shadow-success: 0 2px 8px rgba(var(--color-success-rgb), 0.3);
    --shadow-warning: 0 2px 8px rgba(var(--color-warning-rgb), 0.3);
    --shadow-neutral: 0 2px 8px rgba(var(--color-neutral-rgb), 0.3);
    --shadow-action: 0 2px 8px rgba(var(--color-action-rgb), 0.3);
    --shadow-action-card: 0 4px 12px rgba(var(--color-action-rgb), 0.2);

    /* Focus */
    --focus-ring: 2px solid var(--color-accent);
    --focus-ring-offset: 2px;
    --focus-ring-shadow: 0 0 0 2px rgba(var(--color-accent-rgb), 0.2);

    /* Typography */
    --font-family: 'Arial', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Disable text selection only in production mode */
body.production-mode * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Disable image dragging in production mode */
body.production-mode img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}


body {
    font-family: var(--font-family);
    background: url('images/Web_BG.png') center center/cover no-repeat, var(--gradient-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    word-break: keep-all;
    white-space: normal;
}

body.video-fallback {
    background: url('images/Web_BG.png') center center/cover no-repeat, var(--gradient-body);
}

.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.bg-video.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Launcher layout */
.launcher-layout {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    pointer-events: none;
}

.launcher-layout > * {
    pointer-events: auto;
}

/* Draggable window chrome (borderless WinForms host) */
.window-drag-region {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 96px;
    z-index: 119;
    -webkit-app-region: drag;
    app-region: drag;
}

.launcher-top-left,
.launcher-top-right {
    -webkit-app-region: drag;
    app-region: drag;
}

.window-no-drag,
.launcher-top-left .window-no-drag,
.launcher-top-right .window-no-drag,
.launcher-top-right .status-indicator,
.launcher-top-left button,
.launcher-top-right button,
.launcher-top-right .language-dropdown,
.launcher-top-right .language-menu,
.launcher-top-right .language-option {
    -webkit-app-region: no-drag;
    app-region: no-drag;
}

.launcher-top-left {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.launcher-top-right {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 120;
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-logo {
    max-width: 200px;
    height: auto;
}

.media-controls {
    display: flex;
    gap: 10px;
}

.media-btn {
    width: 40px;
    height: 40px;
    border: var(--btn-border);
    border-radius: 12px;
    background: var(--overlay-panel);
    color: var(--btn-ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.media-btn:hover {
    background: var(--overlay-panel-hover);
    transform: translateY(-1px);
}

.media-btn:active {
    background: var(--overlay-panel-active);
    transform: translateY(var(--btn-depth));
}

.media-btn:focus {
    outline: var(--focus-ring);
    outline-offset: var(--focus-ring-offset);
}

/* Social sidebar */
.social-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 110;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow:
        0 var(--btn-depth) 0 rgba(0, 0, 0, 0.35),
        0 2px 5px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -1px 0 rgba(0, 0, 0, 0.16);
}

.social-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        0 var(--btn-depth) 0 rgba(0, 0, 0, 0.35),
        0 3px 7px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.social-btn:active {
    transform: translateY(var(--btn-depth));
    box-shadow:
        0 1px 0 rgba(0, 0, 0, 0.35),
        0 1px 3px rgba(0, 0, 0, 0.25),
        inset 0 2px 4px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.social-btn--discord { background: #5865F2; }
.social-btn--x { background: #000000; }

.social-icon-x {
    width: 18px;
    height: 18px;
    display: block;
}
.social-btn--youtube { background: #FF0000; }
.social-btn--web { background: var(--btn-face); color: var(--btn-ink); }

/* News panel — stacked tab bar + content card (reference layout) */
.news-panel {
    position: fixed;
    top: 88px;
    right: 24px;
    bottom: 160px;
    left: auto;
    width: min(420px, calc(100vw - 100px));
    max-height: none;
    transform: none;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    box-shadow: none;
    overflow: visible;
}

.news-tabs-bar {
    flex-shrink: 0;
    padding: 6px;
    border-radius: 999px;
    background: rgba(28, 22, 18, 0.72);
    border: 1px solid var(--white-15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.news-tabs {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
}

.news-tab {
    flex: 1;
    background: transparent;
    border: 2px solid transparent;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease, color 0.2s ease;
    opacity: 1;
    letter-spacing: 0.02em;
    text-align: center;
}

.news-tab:hover:not(.active) {
    background: var(--white-10);
    color: var(--color-text);
}

.news-tab.active {
    background: var(--btn-face-light);
    color: #000000;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-btn-3d-light);
}

.news-tab.active:hover {
    background: var(--btn-face-light-hover);
    color: #000000;
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-btn-3d-light-hover);
    transform: translateY(-1px);
}

.news-tab.active:active {
    background: var(--btn-face-light-active);
    color: #000000;
    border-color: #d0d0d0;
    box-shadow: var(--shadow-btn-3d-light-pressed);
    transform: translateY(var(--btn-depth));
}

.news-list-card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background: rgba(28, 22, 18, 0.72);
    border: 1px solid var(--white-15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-panel);
    overflow: hidden;
}

.news-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    margin: 0;
    padding: 18px 16px 20px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.news-feed-panel {
    display: none;
}

.news-panel[data-active-tab="patch"] .news-feed-patch,
.news-panel[data-active-tab="news"] .news-feed-news {
    display: block;
}

.news-list::-webkit-scrollbar {
    width: 6px;
}

.news-list::-webkit-scrollbar-thumb {
    background: var(--white-30);
    border-radius: 3px;
}

.news-item {
    padding: 4px 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.news-item + .news-item {
    margin-top: 22px;
}

.news-item:hover {
    background: var(--white-10);
}

.news-item-title {
    color: var(--color-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 6px;
}

.news-item-meta {
    color: var(--color-text-subtle);
    font-size: 13px;
}

.news-empty {
    color: var(--color-text-muted);
    text-align: center;
    padding: 40px 20px;
    font-size: 14px;
}

/* Bottom bar */
.bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 130;
    padding: 0 28px 22px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
}

.bottom-progress {
    margin-bottom: 10px;
}

.bottom-track-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bottom-progress-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.progress-stats-text {
    color: var(--color-text);
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
    min-width: 0;
}

.progress-percent {
    color: var(--color-text);
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    margin-left: auto;
}

.progress-bar--main {
    flex: 0 0 auto;
    height: 16px;
    min-height: 16px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.progress-bar--main .progress-fill {
    background: #ffffff;
    border-radius: 999px;
    height: 100%;
    min-height: 100%;
    transition: width 0.4s ease;
}

.bottom-versions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.version-line {
    color: var(--color-text);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.85;
}

.version-label {
    opacity: 0.7;
    margin-right: 6px;
}

.version-value {
    font-weight: 700;
}

.bottom-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.repair-btn-wrap {
    position: relative;
}

.repair-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #c8c8c8;
    background: var(--btn-face-light);
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    box-shadow: var(--shadow-btn-3d-light);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, color 0.2s ease, border-color 0.2s ease;
}

.repair-btn:hover {
    background: var(--btn-face-light-hover);
    border-color: #bdbdbd;
    box-shadow: var(--shadow-btn-3d-light-hover);
    transform: translateY(-1px);
}

.repair-btn:active {
    background: var(--btn-face-light-active);
    border-color: #b0b0b0;
    box-shadow: var(--shadow-btn-3d-light-pressed);
    transform: translateY(var(--btn-depth));
}

.repair-btn :is(i, svg) {
    color: #000000;
    fill: currentColor;
    transition: transform 0.25s ease, color 0.2s ease;
    display: block;
    line-height: 1;
}

.repair-btn:hover :is(i, svg) {
    transform: scale(1.12);
}

.repair-btn:focus {
    outline: var(--focus-ring);
    outline-offset: var(--focus-ring-offset);
}

.repair-btn:disabled,
.repair-btn[style*="pointer-events: none"] {
    opacity: 0.5;
    cursor: not-allowed;
}

.repair-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    width: 260px;
    padding: 14px 16px;
    background: var(--overlay-tooltip);
    color: var(--color-text);
    border: 1px solid var(--white-20);
    border-radius: 10px;
    box-shadow: 0 8px 24px var(--black-shadow-lg);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 200;
}

.repair-btn-wrap:hover .repair-tooltip,
.repair-btn-wrap:focus-within .repair-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.repair-tooltip-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.repair-tooltip-desc {
    font-size: 12px;
    line-height: 1.45;
    color: var(--color-text-muted);
}


/* Header (legacy selectors kept for status/language) */
.header {
    display: none;
}

.play-btn {
    background: var(--btn-face);
    color: var(--btn-ink);
    border: var(--btn-border);
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    box-shadow: var(--shadow-btn-3d);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    text-transform: none;
    letter-spacing: 0.02em;
    opacity: 1;
    transform: translateY(0);
    margin: 0;
}

.play-btn.hide {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.play-btn:hover {
    background: var(--btn-face-hover);
    box-shadow: var(--shadow-btn-3d-hover);
    transform: translateY(-1px);
}

.play-btn:active {
    background: var(--btn-face-active);
    box-shadow: var(--shadow-btn-3d-active);
    transform: translateY(var(--btn-depth));
}

.play-btn .play-icon {
    font-size: 16px;
    color: var(--btn-ink);
    flex-shrink: 0;
    line-height: 1;
}

.server-status {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    position: relative;
}

.status-indicator {
    background: var(--overlay-panel);
    color: var(--color-online);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--white-20);
    box-shadow: var(--shadow-control);
    min-width: auto;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.status-indicator:hover {
    background: var(--overlay-panel-hover);
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
    box-shadow: var(--shadow-control-hover);
}

.status-indicator:active {
    transform: translateY(0px) scale(0.95);
    background: var(--overlay-panel-active);
    box-shadow: var(--shadow-control-active);
    transition: all 0.1s ease;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-online);
    flex-shrink: 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.status-dot.online {
    background: var(--color-online);
    animation: statusDotOnline 2s ease-in-out infinite;
}

.status-dot.offline {
    background: var(--color-offline);
    animation: statusDotOffline 2.4s ease-in-out infinite;
}

@keyframes statusDotOnline {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 0 0 0 rgba(var(--color-online-rgb), 0.55),
            0 0 8px rgba(var(--color-online-rgb), 0.65);
    }
    50% {
        transform: scale(1.12);
        box-shadow:
            0 0 0 5px rgba(var(--color-online-rgb), 0),
            0 0 14px rgba(var(--color-online-rgb), 0.9);
    }
}

@keyframes statusDotOffline {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow:
            0 0 0 0 rgba(var(--color-offline-rgb), 0.45),
            0 0 7px rgba(var(--color-offline-rgb), 0.55);
    }
    35% {
        opacity: 0.35;
        transform: scale(0.88);
        box-shadow:
            0 0 0 0 rgba(var(--color-offline-rgb), 0.15),
            0 0 3px rgba(var(--color-offline-rgb), 0.25);
    }
    70% {
        opacity: 0.85;
        transform: scale(1.05);
        box-shadow:
            0 0 0 3px rgba(var(--color-offline-rgb), 0),
            0 0 10px rgba(var(--color-offline-rgb), 0.7);
    }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Server Status States */
.status-indicator.online {
    background: var(--overlay-panel);
}

.status-indicator.offline {
    background: var(--overlay-panel);
}

.status-indicator.loading {
    opacity: 0.7;
}

.status-indicator.loading .status-dot {
    animation: statusDotLoading 1s ease-in-out infinite;
    background: var(--color-accent);
}

@keyframes statusDotLoading {
    0%, 100% {
        opacity: 0.45;
        transform: scale(0.9);
        box-shadow: 0 0 6px rgba(var(--color-accent-rgb), 0.35);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
        box-shadow: 0 0 12px rgba(var(--color-accent-rgb), 0.75);
    }
}

/* Status text transitions */
.status-indicator span {
    transition: color 0.3s ease;
}

.status-indicator.online span {
    color: var(--color-online); /* Green text for online */
}

.status-indicator.offline span {
    color: var(--color-offline); /* Red text for offline */
}

/* Status Tooltip */
.status-tooltip {
    background: var(--overlay-tooltip);
    color: var(--color-text);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-family: var(--font-family);
    font-weight: bold;
    box-shadow: 0 4px 12px var(--black-shadow-lg);
    border: 1px solid var(--white-20);
    white-space: nowrap;
    pointer-events: none;
    animation: tooltipFadeIn 0.2s ease-out;
    position: relative;
    overflow: hidden;
}

.status-tooltip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-shine-soft);
    animation: tooltipShine 3s infinite;
}

.status-tooltip.throttled {
    background: var(--color-warning-bg);
    color: var(--color-text-dark);
    border: 1px solid var(--color-warning-border);
}

.status-tooltip.throttled::before {
    background: linear-gradient(90deg, transparent, var(--black-15), transparent);
}

.status-tooltip.error {
    background: var(--color-error);
    color: var(--color-text);
    border: 1px solid var(--color-error-border);
}

.status-tooltip.error::before {
    background: var(--gradient-shine-soft);
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes tooltipShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Audio Control */
.audio-control {
    margin-left: 10px;
}

.audio-btn {
    width: 40px;
    height: 40px;
    background: var(--btn-face);
    border: var(--btn-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    color: var(--btn-ink);
    font-size: 18px;
    font-weight: 700;
    box-shadow: var(--shadow-btn-3d);
}

.audio-btn:hover {
    background: var(--btn-face-hover);
    box-shadow: var(--shadow-btn-3d-hover);
    transform: translateY(-1px);
}

.audio-btn:active {
    background: var(--btn-face-active);
    box-shadow: var(--shadow-btn-3d-active);
    transform: translateY(var(--btn-depth));
}

.audio-btn:focus {
    outline: var(--focus-ring);
    outline-offset: var(--focus-ring-offset);
}

.settings-icon {
    width: 40px;
    height: 40px;
    background: var(--overlay-panel);
    border: 1px solid var(--white-20);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: var(--shadow-control);
    backdrop-filter: blur(8px);
}

.settings-icon:hover {
    background: var(--overlay-panel-hover);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: var(--shadow-control-hover);
    transform: translateY(-1px);
}

.settings-icon:active {
    transform: translateY(0) scale(0.95);
    background: var(--overlay-panel-active);
    box-shadow: var(--shadow-control-active);
}

.settings-icon :is(i, svg) {
    font-size: 20px;
    color: var(--color-text);
    transition: transform 0.25s ease, color 0.2s ease;
    display: block;
    line-height: 1;
}

.settings-icon:hover :is(i, svg),
.settings-icon.active :is(i, svg) {
    transform: rotate(90deg);
}

.settings-icon.active {
    background: var(--overlay-panel-hover);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: var(--shadow-control-hover);
    transform: none;
}

.settings-icon:focus {
    outline: var(--focus-ring);
    outline-offset: var(--focus-ring-offset);
}

.window-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    flex-shrink: 0;
}

.window-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--white-20);
    border-radius: 50%;
    background: var(--overlay-panel);
    color: var(--color-text);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    box-shadow: var(--shadow-control);
    backdrop-filter: blur(8px);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.window-btn :is(i, svg) {
    pointer-events: none;
}

.window-btn:hover {
    background: var(--overlay-panel-hover);
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
    box-shadow: var(--shadow-control-hover);
}

.window-btn:active {
    transform: translateY(0) scale(0.95);
    background: var(--overlay-panel-active);
    box-shadow: var(--shadow-control-active);
}

.window-btn:focus {
    outline: var(--focus-ring);
    outline-offset: var(--focus-ring-offset);
}

.window-btn--close {
    background: var(--overlay-close);
    border-color: var(--overlay-close-border);
    color: var(--color-text);
}

.window-btn--close:hover {
    background: var(--overlay-close-hover);
    border-color: var(--overlay-close-border-hover);
}

.window-btn--close:active {
    background: var(--overlay-close-active);
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-btn {
    background: var(--overlay-panel);
    border: 1px solid var(--white-20);
    border-radius: 999px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-control);
    backdrop-filter: blur(8px);
}

.language-btn:hover {
    background: var(--overlay-panel-hover);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: var(--shadow-control-hover);
    transform: translateY(-1px);
}

.language-btn:active {
    transform: translateY(0) scale(0.95);
    background: var(--overlay-panel-active);
    box-shadow: var(--shadow-control-active);
}

.language-btn i {
    font-size: 12px;
    color: var(--color-text);
    transition: transform 0.3s ease;
}

.language-btn.open i {
    transform: rotate(180deg);
}

.language-btn:disabled,
.language-btn[style*="pointer-events: none"] {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background: var(--overlay-panel) !important;
    transform: none !important;
    box-shadow: var(--shadow-control) !important;
}

.language-btn:disabled:hover,
.language-btn[style*="pointer-events: none"]:hover {
    background: var(--overlay-panel) !important;
    transform: none !important;
    box-shadow: var(--shadow-control) !important;
}

.language-btn:focus {
    outline: var(--focus-ring);
    outline-offset: var(--focus-ring-offset);
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid var(--white-30);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--overlay-panel);
    border-radius: 20px;
    box-shadow: var(--shadow-panel);
    z-index: 1001;
    margin-top: 5px;
    min-width: 200px;
    display: none;
    animation: dropdownSlideIn 0.3s ease-out;
    backdrop-filter: blur(2px);
    border: 1px solid var(--white-20);
}

.language-menu.active {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    color: var(--color-text);
    font-size: 14px;
    border-bottom: 1px solid var(--white-10);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: var(--white-10);
}

/* Rounded corners only for first and last visible items */
.language-option.visible-first {
    border-radius: 20px 20px 0 0 !important;
}

.language-option.visible-last {
    border-radius: 0 0 20px 20px !important;
    border-bottom: none !important;
}

/* When there's only one visible item, all borders should be rounded */
.language-option.visible-first.visible-last {
    border-radius: 20px !important;
}

/* Ensure focus outline respects border-radius */
.language-option:focus {
    outline: var(--focus-ring);
    outline-offset: var(--focus-ring-offset);
    border-radius: inherit;
}

.language-option .flag-icon {
    width: 24px;
    height: 18px;
    flex-shrink: 0;
}

.language-option span {
    white-space: nowrap;
}

/* Legacy updates panel (replaced by .news-panel) */
.updates-panel {
    display: none !important;
}

.updates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.updates-title {
    color: var(--color-text);
    font-size: 18px;
    font-weight: bold;
}

.updates-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-arrow {
    width: 30px;
    height: 30px;
    background: var(--white-20);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text);
    font-size: 16px;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: var(--white-30);
    transform: scale(1.1);
}

.nav-arrow i {
    font-size: 14px;
}

.page-indicator {
    color: var(--color-text);
    font-size: 14px;
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.update-card {
    background: var(--white-10);
    border-radius: 10px;
    padding: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 200px;
}

.update-card:hover {
    background: var(--white-20);
    transform: translateY(-5px);
}

.update-card:active {
    transform: translateY(-2px) scale(0.98);
    background: var(--white-15);
    box-shadow: 0 2px 8px var(--black-shadow), inset 0 2px 4px var(--black-20);
    transition: all 0.1s ease;
}

.card-image {
    width: 100%;
    height: 100%;
    background: var(--overlay-subtle);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    margin-bottom: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.card-image--placeholder {
    background: var(--gradient-card-placeholder);
    background-size: auto;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-card-overlay);
    padding: 20px 15px 15px 15px;
    z-index: 2;
    border-radius: 0 0 10px 10px;
}

.card-label {
    display: inline-block;
    background: var(--color-accent-dark);
    color: var(--color-text);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
}

.card-title {
    color: var(--color-text);
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.card-date {
    color: var(--color-text-muted);
    font-size: 14px;
}

.card-author {
    color: var(--color-text-subtle);
    font-size: 12px;
    margin-top: 4px;
}

.nav-arrow.disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}

.nav-arrow.disabled:hover {
    transform: none;
    background: var(--white-20);
}

/* Settings Sidebar */
.settings-backdrop {
    position: fixed;
    inset: 0;
    background: var(--overlay-backdrop);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.settings-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.settings-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--color-sidebar);
    border-left: 1px solid var(--white-12);
    box-shadow: var(--shadow-sidebar);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
}

.settings-sidebar.active {
    transform: translateX(0);
}

body.settings-open {
    overflow: hidden;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.settings-title {
    color: var(--color-accent);
    font-size: 24px;
    font-weight: bold;
}

.settings-close {
    background: var(--btn-face);
    border: var(--btn-border);
    color: var(--btn-ink);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    box-shadow: var(--shadow-btn-3d);
    line-height: 1;
}

.settings-close:hover {
    background: var(--btn-face-hover);
    box-shadow: var(--shadow-btn-3d-hover);
    transform: translateY(-1px);
}

.settings-close:active {
    background: var(--btn-face-active);
    box-shadow: var(--shadow-btn-3d-active);
    transform: translateY(var(--btn-depth));
}

.settings-close::before {
    display: none;
}

.settings-close:focus {
    outline: var(--focus-ring);
    outline-offset: var(--focus-ring-offset);
}

.settings-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: var(--color-bg-dark);
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.settings-tab {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 999px;
    color: var(--color-text-disabled);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.settings-tab.active {
    color: var(--btn-ink);
    background: var(--btn-face);
    border: var(--btn-border);
    box-shadow: var(--shadow-btn-3d);
}

.settings-tab.active::after {
    display: none;
}

.settings-tab.active:hover {
    background: var(--btn-face-hover);
    box-shadow: var(--shadow-btn-3d-hover);
    transform: translateY(-1px);
}

.settings-tab.active:active {
    background: var(--btn-face-active);
    box-shadow: var(--shadow-btn-3d-active);
    transform: translateY(var(--btn-depth));
}

.settings-tab:hover:not(.active) {
    color: var(--color-text);
    background: var(--white-10);
    border-color: var(--white-20);
}

.settings-tab:focus {
    outline: var(--focus-ring);
    outline-offset: var(--focus-ring-offset);
}

.settings-content {
    flex: 1;
    padding: 24px 28px 32px;
    overflow-y: auto;
}

.settings-section {
    margin-bottom: 20px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--color-text);
    font-size: 16px;
    font-weight: bold;
    word-break: keep-all;
    white-space: normal;
}

.section-bar {
    width: 4px;
    height: 20px;
    background: var(--color-accent);
    margin-right: 12px;
    border-radius: 2px;
}

.settings-button {
    background: var(--btn-face);
    color: var(--btn-ink);
    border: var(--btn-border);
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    margin-bottom: 15px;
    display: block;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-btn-3d);
}

.settings-button:hover {
    background: var(--btn-face-hover);
    box-shadow: var(--shadow-btn-3d-hover);
    transform: translateY(-1px);
}

.settings-button:active {
    background: var(--btn-face-active);
    box-shadow: var(--shadow-btn-3d-active);
    transform: translateY(var(--btn-depth));
}

.settings-button:focus {
    outline: var(--focus-ring);
    outline-offset: var(--focus-ring-offset);
}

.settings-button:disabled,
.settings-button[style*="pointer-events: none"] {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background: var(--color-border) !important;
    transform: none !important;
    box-shadow: none !important;
}

.settings-button:disabled:hover,
.settings-button[style*="pointer-events: none"]:hover {
    background: var(--color-border) !important;
    transform: none !important;
    box-shadow: none !important;
}

.settings-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: var(--color-text);
    font-size: 14px;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: var(--color-accent);
}

.toggle-handle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--color-text);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch.active .toggle-handle {
    transform: translateX(26px);
}

.toggle-switch:focus {
    outline: var(--focus-ring);
    outline-offset: var(--focus-ring-offset);
}

.settings-label {
    display: block;
    color: var(--color-text);
    margin-bottom: 5px;
    font-size: 14px;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.settings-row .settings-label {
    margin-bottom: 0;
    flex: 1;
}

.settings-row .branch-status {
    margin-left: 10px;
}

.settings-select {
    flex: 1;
    padding: 10px;
    background: var(--color-bg-dark);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--focus-ring-shadow);
}

.settings-select:hover {
    border-color: var(--color-border-light);
}

.settings-select option {
    background: var(--color-bg-dark);
    color: var(--color-text);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.text-accent {
    color: var(--color-accent);
}

.text-accent--link {
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

.text-accent--link:hover {
    text-decoration: underline;
}

/* Legacy progress section (replaced by .bottom-progress) */
.progress-section {
    display: none !important;
}

.progress-section.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.progress-section h3 {
    margin-top: 0;
    color: var(--color-text);
    text-align: left;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: bold;
}

.progress-container {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-label {
    min-width: 120px;
    font-weight: bold;
    color: var(--color-text);
    font-size: 14px;
}

.progress-section .progress-bar {
    flex: 1;
    height: 8px;
    background: var(--white-20);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-section .progress-fill {
    height: 100%;
    background: var(--gradient-progress);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    position: relative;
    overflow: hidden;
}

.progress-section .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-shine);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-text {
    min-width: 40px;
    text-align: right;
    font-weight: bold;
    color: var(--color-text);
    font-size: 14px;
}

.progress-info {
    margin-top: 15px;
    padding: 0;
    background: transparent;
    font-size: 12px;
    color: var(--white-80);
}

.progress-info div {
    margin: 3px 0;
    display: flex;
    justify-content: space-between;
}

.progress-info span {
    color: var(--color-text);
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .launcher-top-left,
    .launcher-top-right {
        top: 12px;
    }

    .launcher-top-left { left: 12px; }
    .launcher-top-right { right: 12px; }

    .game-logo {
        max-width: 140px;
    }

    .social-sidebar {
        left: 12px;
        gap: 8px;
    }

    .social-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .news-panel {
        top: 72px;
        right: 12px;
        bottom: 180px;
        width: calc(100vw - 72px);
    }

    .bottom-bar {
        padding: 0 16px 16px;
    }

    .bottom-track-row {
        gap: 10px;
    }

    .bottom-actions {
        gap: 8px;
    }

    .play-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .repair-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .settings-sidebar {
        width: 100vw;
    }

    .settings-content {
        padding: 20px;
    }

    .settings-tabs {
        flex-direction: column;
    }

    .settings-tab {
        text-align: center;
    }

    .language-menu {
        right: -20px;
        min-width: 180px;
    }

    .language-option {
        padding: 10px 12px;
        font-size: 13px;
    }

    .language-option .flag-icon {
        width: 20px;
        height: 15px;
    }
}

/* Custom Notification Modal */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-panel);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.notification-content {
    background: var(--gradient-notification-bg);
    border-radius: 15px;
    box-shadow: 0 20px 40px var(--black-shadow-lg);
    max-width: 400px;
    width: 90%;
    overflow: hidden;
    border: 2px solid var(--color-accent);
    animation: notificationSlideIn 0.3s ease-out;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notification-header {
    background: var(--gradient-notification-header);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.notification-icon {
    font-size: 24px;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--white-20);
    border-radius: 50%;
}

.notification-title {
    color: var(--color-text);
    font-size: 18px;
    font-weight: bold;
    flex: 1;
}

.notification-close {
    background: var(--btn-face);
    border: var(--btn-border);
    color: var(--btn-ink);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-btn-3d);
}

.notification-close:hover {
    background: var(--btn-face-hover);
    box-shadow: var(--shadow-btn-3d-hover);
    transform: translateY(-1px);
}

.notification-close:active {
    background: var(--btn-face-active);
    box-shadow: var(--shadow-btn-3d-active);
    transform: translateY(var(--btn-depth));
}

.notification-body {
    padding: 25px;
    text-align: center;
}

.notification-message {
    color: var(--color-text-body);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.notification-footer {
    padding: 20px 25px;
    display: flex;
    justify-content: center;
    background: var(--overlay-footer);
}

.notification-btn {
    background: var(--btn-face);
    color: var(--btn-ink);
    border: var(--btn-border);
    padding: 12px 30px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    box-shadow: var(--shadow-btn-3d);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.notification-btn:hover {
    background: var(--btn-face-hover);
    box-shadow: var(--shadow-btn-3d-hover);
    transform: translateY(-1px);
}

.notification-btn:active {
    background: var(--btn-face-active);
    box-shadow: var(--shadow-btn-3d-active);
    transform: translateY(var(--btn-depth));
}

/* Branch Status Styling */
.branch-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gradient-branch-production);
    color: var(--color-text);
    box-shadow: var(--shadow-success);
}

.branch-status.production {
    background: var(--gradient-branch-production);
    color: var(--color-text);
    box-shadow: var(--shadow-success);
}

.branch-status.development {
    background: var(--gradient-branch-development);
    color: var(--color-text);
    box-shadow: var(--shadow-warning);
}

.branch-status.checking {
    background: var(--gradient-branch-checking);
    color: var(--color-text);
    box-shadow: var(--shadow-neutral);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Branch Config UI Styles */
.branch-config-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.branch-config-container {
    width: 100%;
}

.branch-config-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.branch-config-btn {
    flex: 1;
    min-width: 140px;
    margin-bottom: 0;
    padding: 10px 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.branch-config-btn :is(i, svg) {
    font-size: 12px;
    transition: transform 0.25s ease;
    display: inline-block;
    line-height: 1;
}

.branch-config-btn:hover :is(i, svg) {
    transform: scale(1.15);
}

.branch-config-btn:active :is(i, svg) {
    transform: scale(0.95);
}

.branch-config-clear {
    background: var(--btn-face-danger);
    color: var(--color-text);
    border: 2px solid var(--btn-edge-danger);
    flex: 0 0 auto;
    min-width: auto;
    padding: 10px 16px;
    box-shadow: var(--shadow-btn-3d-danger);
}

.branch-config-clear:hover {
    background: var(--btn-face-danger-hover);
    box-shadow: var(--shadow-btn-3d-hover);
    transform: translateY(-1px);
}

.branch-config-clear:active {
    background: var(--btn-face-danger-active);
    box-shadow: var(--shadow-btn-3d-active);
    transform: translateY(var(--btn-depth));
}

.branch-config-info {
    margin-top: 0;
    animation: fadeIn 0.3s ease-in;
}

.branch-config-card {
    background: var(--gradient-branch-config);
    border: 1px solid rgba(var(--color-action-rgb), 0.4);
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
}

.branch-config-card:hover {
    background: var(--gradient-branch-config-hover);
    border-color: rgba(var(--color-action-rgb), 0.6);
    box-shadow: var(--shadow-action-card);
}

.branch-config-icon :is(i, svg) {
    transition: transform 0.25s ease;
    display: block;
    line-height: 1;
}

.branch-config-card:hover .branch-config-icon :is(i, svg) {
    transform: rotate(-15deg) scale(1.08);
}

.branch-config-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--gradient-branch-icon);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    font-size: 18px;
    box-shadow: var(--shadow-action);
}

.branch-config-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.branch-config-name {
    color: var(--color-gold);
    font-size: 15px;
    font-weight: bold;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.branch-config-id {
    color: var(--color-text-subtle);
    font-size: 12px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    opacity: 0.8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
