* {
    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: 'Arial', sans-serif;
    background: url('images/Web_BG.png') center center/cover no-repeat, linear-gradient(135deg, #ff8a00 0%, #ff6b35 50%, #f7931e 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    word-break: keep-all;
    white-space: normal;
}

/* Korean text handling */
* {
    word-break: keep-all;
    white-space: normal;
}

body::before {
    content: '';
    position: fixed;
    top: 5vh;
    left: 0vw;
    width: 100%;
    height: 100%;
    background: url(images/Web_BG_Char.png) center center / 110% no-repeat;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.3s ease;
}

body:hover::before {
    transform: translateY(-5px);
}


/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 40px;
    position: relative;
    z-index: 100;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 800px;
}

.game-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
}

.play-btn {
    background: linear-gradient(90deg, #ff6b35, #ffd700);
    color: #2c2c2c;
    border: none;
    left: 5vw;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    box-shadow: 0 8px 25px rgba(151, 40, 0), 0 4px 15px rgba(255, 215, 0, 0.3), 0 0 30px rgba(255, 107, 53, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 1;
    transform: translateY(0) scale(1);
}

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

.play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.play-btn:hover::before {
    left: 100%;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgb(255 107 53), 0 8px 20px rgb(255 215 0 / 75%), 0 0 40px rgb(255 252 0), inset 0 1px 0 rgb(255 255 255 / 87%);
    background: linear-gradient(90deg, #ff5722, #ffeb3b);
}

.play-btn:active {
    transform: translateY(0px) scale(0.95);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.6), 0 2px 8px rgba(255, 215, 0, 0.4), 0 0 20px rgba(255, 107, 53, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.2);
    background: linear-gradient(90deg, #e64a19, #f9a825);
    transition: all 0.1s ease;
}

.play-btn .play-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    transform: scale(1) rotate(0deg);
}

.play-btn:hover .play-icon {
    animation: dragonBallSpin 1.5s linear infinite;
    transform: scale(1.1);
}

@keyframes dragonBallSpin {
    0% { transform: scale(1.1) rotate(0deg); }
    100% { transform: scale(1.1) rotate(360deg); }
}

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

.status-indicator {
    background: #8B4513;
    color: #90EE90;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    min-width: 120px;
    justify-content: center;
    transition: all 0.3s ease;
}

.status-indicator:hover {
    background: #A0522D;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.status-indicator:active {
    transform: translateY(0px) scale(0.95);
    background: #654321;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.1s ease;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #90EE90; /* Default green color */
    transition: all 0.3s ease;
}

.status-dot.online {
    background: #90EE90;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(144, 238, 144, 0.5);
}

.status-dot.offline {
    background: #ff6b6b;
    animation: none;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

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

/* Server Status States */
.status-indicator.online {
    /* Keep original background, only change text color */
    background: #8B4513;
}

.status-indicator.offline {
    /* Keep original background, only change text color */
    background: #8B4513;
}

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

.status-indicator.loading .status-dot {
    animation: pulse 1s infinite;
    background: #F2994A;
}

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

.status-indicator.online span {
    color: #90EE90; /* Green text for online */
}

.status-indicator.offline span {
    color: #ff6b6b; /* Red text for offline */
}

/* Status Tooltip */
.status-tooltip {
    background: rgba(0, 0, 0, 0.623);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    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: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: tooltipShine 3s infinite;
}

.status-tooltip.throttled {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    border: 1px solid rgba(255, 193, 7, 0.5);
}

.status-tooltip.throttled::before {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.status-tooltip.error {
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: 1px solid rgba(220, 53, 69, 0.5);
}

.status-tooltip.error::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

@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: #8B4513;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 18px;
    position: relative;
}

.audio-btn:hover {
    background: #A0522D;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.audio-btn:active {
    transform: scale(0.9);
    background: #8B4513;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.1s ease;
}

.audio-btn:focus {
    outline: 2px solid #F2994A;
    outline-offset: 2px;
}

.settings-icon {
    width: 40px;
    height: 40px;
    background: #8B4513;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.settings-icon:hover {
    background: #A0522D;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.settings-icon:active {
    transform: rotate(90deg) scale(0.9);
    background: #8B4513;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.1s ease;
}

.settings-icon:focus {
    outline: 2px solid #F2994A;
    outline-offset: 2px;
}

.settings-icon i {
    font-size: 20px;
    color: white;
    transition: all 0.3s ease;
}

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

.language-btn {
    background: #8B4513;
    border: none;
    border-radius: 20px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.language-btn:hover {
    background: #A0522D;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.language-btn:active {
    transform: translateY(0px) scale(0.95);
    background: #654321;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.1s ease;
}

.language-btn i {
    font-size: 12px;
    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: #654321 !important;
    transform: none !important;
    box-shadow: none !important;
}

.language-btn:disabled:hover,
.language-btn[style*="pointer-events: none"]:hover {
    background: #654321 !important;
    transform: none !important;
    box-shadow: none !important;
}

.language-btn:focus {
    outline: 2px solid #F2994A;
    outline-offset: 2px;
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 1001;
    margin-top: 5px;
    min-width: 200px;
    display: none;
    animation: dropdownSlideIn 0.3s ease-out;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.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: white;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.language-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 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: 2px solid #F2994A;
    outline-offset: 2px;
    border-radius: inherit;
}

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

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

/* Updates Panel */
.updates-panel {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 40px;
    position: fixed;
    bottom: -5px;
    left: 100px;
    right: 100px;
    z-index: 10;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.updates-title {
    color: white;
    font-size: 18px;
    font-weight: bold;
}

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

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

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

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

.page-indicator {
    color: white;
    font-size: 14px;
}

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

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

.update-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.update-card:active {
    transform: translateY(-2px) scale(0.98);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease;
}

.card-image {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

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

.card-label {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
}

.card-title {
    color: white;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.card-date {
    color: #ccc;
    font-size: 14px;
}

/* Settings Dropdown */
.settings-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 20px;
    width: 450px;
    max-height: 600px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 1000;
    margin-top: 10px;
    animation: dropdownSlideIn 0.3s ease-out;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.settings-dropdown.active {
    display: block;
}

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

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #404040;
}

.settings-title {
    color: #F2994A;
    font-size: 24px;
    font-weight: bold;
}

.settings-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.settings-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.settings-close:active {
    transform: scale(0.9) rotate(90deg);
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    transition: all 0.1s ease;
}

.settings-close::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 0, 0, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.settings-close:active::before {
    width: 100px;
    height: 100px;
    background: rgba(255, 0, 0, 0.1);
}

.settings-close:focus {
    outline: 2px solid #F2994A;
    outline-offset: 2px;
}

.settings-tabs {
    display: flex;
    background: #1a1a1a;
    border-bottom: 1px solid #404040;
}

.settings-tab {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    color: #A0A0A0;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.settings-tab.active {
    color: #F2994A;
    background: #282828;
}

.settings-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #F2994A;
}

.settings-tab:hover:not(.active) {
    color: white;
    background: #333;
}

.settings-tab:focus {
    outline: 2px solid #F2994A;
    outline-offset: 2px;
}

.settings-content {
    padding: 20px;
    max-height: 500px;
    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: white;
    font-size: 16px;
    font-weight: bold;
    word-break: keep-all;
    white-space: normal;
}

.section-bar {
    width: 4px;
    height: 20px;
    background: #F2994A;
    margin-right: 12px;
    border-radius: 2px;
}

.settings-button {
    background: #2F6B9A;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    display: block;
    width: 100%;
    text-align: center;
}

.settings-button:hover {
    background: #1e4a6b;
    transform: translateY(-1px);
}

.settings-button:active {
    transform: translateY(0px) scale(0.98);
    background: #0d2a3f;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease;
}

.settings-button:focus {
    outline: 2px solid #F2994A;
    outline-offset: 2px;
}

.settings-button.secondary {
    background: #404040;
}

.settings-button.secondary:hover {
    background: #555;
}

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

.settings-button:disabled:hover,
.settings-button[style*="pointer-events: none"]:hover {
    background: #404040 !important;
    transform: none !important;
    box-shadow: none !important;
}

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

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

.toggle-switch.active {
    background: #F2994A;
}

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

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

.toggle-switch:focus {
    outline: 2px solid #F2994A;
    outline-offset: 2px;
}

.settings-input {
    width: 100%;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    margin-bottom: 10px;
}

.settings-input:focus {
    outline: none;
    border-color: #F2994A;
}

.settings-input::placeholder {
    color: #888;
    font-style: italic;
}

.settings-label {
    display: block;
    color: white;
    margin-bottom: 5px;
    font-size: 14px;
}

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

.settings-select {
    flex: 1;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-select:focus {
    outline: none;
    border-color: #F2994A;
    box-shadow: 0 0 0 2px rgba(242, 153, 74, 0.2);
}

.settings-select:hover {
    border-color: #666;
}

.settings-select option {
    background: #1a1a1a;
    color: white;
}

.key-combo {
    display: inline-block;
    background: #404040;
    border: 1px solid #666;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    margin: 0 2px;
}

.tab-content {
    display: none;
}

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

/* Progress Section */
.progress-section {
    position: relative;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 40px;
    z-index: 100;
    left: 5vw;
    top: -10vh;
    width: 100%;
    max-width: 800px;
    min-width: 600px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

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

.progress-section h3 {
    margin-top: 0;
    color: white;
    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: white;
    font-size: 14px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

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

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s infinite;
}

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

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

.progress-info {
    margin-top: 15px;
    padding: 0;
    background: transparent;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

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

.progress-info span {
    color: white;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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

    .updates-grid {
        grid-template-columns: 1fr;
    }

    .settings-dropdown {
        width: 380px;
        right: -50px;
    }

    .settings-content {
        padding: 15px;
    }

    .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: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.notification-content {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 90%;
    overflow: hidden;
    border: 2px solid #F2994A;
    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: linear-gradient(90deg, #F2994A 0%, #ff6b35 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

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

.notification-title {
    color: white;
    font-size: 18px;
    font-weight: bold;
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

.notification-message {
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.notification-footer {
    padding: 20px 25px;
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.notification-btn {
    background: linear-gradient(90deg, #F2994A 0%, #ff6b35 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(242, 153, 74, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notification-btn:hover {
    background: linear-gradient(90deg, #ff6b35 0%, #F2994A 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 153, 74, 0.4);
}

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

/* 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: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.branch-status.production {
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.branch-status.development {
    background: linear-gradient(90deg, #FF9800 0%, #F57C00 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.branch-status.checking {
    background: linear-gradient(90deg, #9E9E9E 0%, #757575 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(158, 158, 158, 0.3);
    animation: pulse 1.5s ease-in-out infinite;
}

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

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

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

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

/* 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 i {
    font-size: 12px;
}

.branch-config-clear {
    background: #5a1a1a;
    flex: 0 0 auto;
    min-width: auto;
    padding: 10px 16px;
}

.branch-config-clear:hover {
    background: #7a2525;
}

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

.branch-config-card {
    background: linear-gradient(135deg, rgba(47, 107, 154, 0.15) 0%, rgba(47, 107, 154, 0.25) 100%);
    border: 1px solid rgba(47, 107, 154, 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: linear-gradient(135deg, rgba(47, 107, 154, 0.25) 0%, rgba(47, 107, 154, 0.35) 100%);
    border-color: rgba(47, 107, 154, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(47, 107, 154, 0.2);
}

.branch-config-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2F6B9A 0%, #1e4a6b 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(47, 107, 154, 0.3);
}

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

.branch-config-name {
    color: #FFD700;
    font-size: 15px;
    font-weight: bold;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.branch-config-id {
    color: #aaa;
    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);
    }
}
