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

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333333;
    line-height: 1.6;
    font-size: 14px;
    padding-top: 260px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.header {
    background-color: #ffffff;
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-icon {
    font-size: 24px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav-item {
    color: #333333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    color: #667eea;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #feca57);
    border-radius: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 4px 4px 4px 16px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    padding: 8px 12px;
    font-size: 13px;
    width: 180px;
    color: #333;
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.search-input {
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 13px;
    width: 180px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #feca57;
    width: 220px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    color: #1a1a2e;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    color: #1a1a2e;
    border: none;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0;
    margin-bottom: 24px;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 999;
}

.banner-content {
    text-align: center;
}

.banner-text h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.banner-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #feca57;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.main-content {
    padding: 16px 0 40px;
}

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

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.view-more {
    color: #feca57;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.view-more:hover {
    color: #ff6b6b;
}

.game-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.game-card {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.game-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.game-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(254, 202, 87, 0.2) 100%);
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
}

.placeholder-icon {
    font-size: 40px;
    opacity: 0.5;
}

.game-info {
    flex: 1;
    padding: 0 12px;
    min-width: 0;
}

.game-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333333;
    white-space: normal;
    word-break: break-all;
}

.game-meta {
    color: #666666;
    font-size: 13px;
    margin-bottom: 6px;
}

.game-rating {
    color: #feca57;
    font-weight: 600;
}

.game-downloads {
    color: #666666;
    font-size: 12px;
}

.game-desc {
    display: none;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tag {
    padding: 2px 8px;
    background: #f0f0f0;
    border-radius: 6px;
    font-size: 11px;
    color: #666666;
}

.game-card .btn-secondary {
    flex-shrink: 0;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
}

.game-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-delete {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.game-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-right: 12px;
    accent-color: #667eea;
}

.game-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.categories {
    padding: 30px 0 40px;
    background: rgba(255, 255, 255, 0.02);
}

.notice-content {
    background: linear-gradient(145deg, #2d2d44 0%, #1f1f33 100%);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.notice-content p {
    color: #ff4757;
    font-size: 15px;
    line-height: 1.8;
    text-align: center;
    font-weight: 500;
}

.category-icon {
    display: block;
    font-size: 26px;
    margin-bottom: 8px;
}

.category-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.footer {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    padding: 30px 0 16px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ffffff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #feca57;
}

.footer-section .logo {
    margin-bottom: 8px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    .header {
        padding: 10px 0;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo {
        flex-shrink: 0;
    }

    .logo-icon {
        font-size: 22px;
    }

    .logo-text {
        font-size: 18px;
    }

    .nav {
        order: 3;
        width: 100%;
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 6px;
        white-space: nowrap;
    }

    .nav-item {
        font-size: 14px;
    }

    .header-right {
        order: 2;
    }

    .search-input {
        width: 120px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .search-input:focus {
        width: 180px;
    }

    .btn {
        padding: 6px 14px;
        font-size: 12px;
    }

    .banner {
        padding: 30px 0;
        margin-bottom: 20px;
    }

    .banner-text h1 {
        font-size: 26px;
    }

    .banner-text p {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .banner-stats {
        gap: 25px;
    }

    .stat-value {
        font-size: 22px;
    }

    .stat-label {
        font-size: 11px;
    }

    .main-content {
        padding: 12px 0 30px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .game-card {
        border-radius: 10px;
    }

    .placeholder-icon {
        font-size: 32px;
    }

    .game-info {
        padding: 12px;
    }

    .game-title {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .game-rating {
        font-size: 12px;
    }

    .game-downloads {
        font-size: 11px;
    }

    .game-desc {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .tag {
        padding: 2px 8px;
        font-size: 10px;
    }

    .game-info .btn-secondary {
        padding: 8px;
        font-size: 12px;
    }

    .categories {
        padding: 20px 0 30px;
    }

    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .category-item {
        padding: 14px 8px;
        border-radius: 8px;
    }

    .category-icon {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .category-name {
        font-size: 11px;
    }

    .footer {
        padding: 24px 0 12px;
    }

    .footer-content {
        gap: 20px;
    }

    .footer-section h4 {
        font-size: 13px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .banner-text h1 {
        font-size: 22px;
    }

    .banner-text p {
        font-size: 13px;
    }

    .nav {
        gap: 12px;
    }

    .nav-item {
        font-size: 13px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-item {
        padding: 20px 12px;
    }

    .category-icon {
        font-size: 28px;
    }

    .category-name {
        font-size: 12px;
    }
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: #ffffff;
    margin: 20px auto;
    max-width: 900px;
    width: 90%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 2px solid #ffd700;
    background: #ffd700;
    color: #333;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
}

.modal-close:hover {
    background: #ffec8b;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.7);
}

.modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.carousel-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.carousel-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    position: relative;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(254, 202, 87, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-placeholder span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.carousel-prev {
    left: 16px;
}

.carousel-next {
    right: 16px;
}

.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #feca57;
    width: 24px;
    border-radius: 5px;
}

.carousel-labels {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 10;
}

.carousel-labels .label {
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-labels .label.active {
    background: rgba(255, 254, 202, 0.3);
    color: #feca57;
}

.carousel-zoom {
    position: absolute;
    bottom: 40px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-zoom:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.image-preview-content {
    position: relative;
    background: rgba(0, 0, 0, 0.95);
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-content img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.image-preview-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.image-preview-close:hover {
    background: rgba(255, 107, 107, 0.5);
}

.image-preview-prev,
.image-preview-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.image-preview-prev:hover,
.image-preview-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.image-preview-prev {
    left: 20px;
}

.image-preview-next {
    right: 20px;
}

@media (max-width: 768px) {
    .carousel-zoom {
        width: 36px;
        height: 36px;
        font-size: 16px;
        bottom: 35px;
        right: 12px;
    }

    .image-preview-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: 15px;
        right: 15px;
    }

    .image-preview-prev,
    .image-preview-next {
        width: 44px;
        height: 44px;
        font-size: 28px;
    }

    .image-preview-prev {
        left: 12px;
    }

    .image-preview-next {
        right: 12px;
    }
}

.modal-body {
    padding: 24px;
}

.game-header {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.game-benefit-panel {
    flex: 1;
    min-width: 0;
}

.game-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.game-header .game-info {
    flex: 1;
}

.game-header .game-info h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333333;
}

.game-header .game-meta {
    display: flex;
    gap: 16px;
}

.game-header .game-rating {
    color: #feca57;
    font-weight: 600;
}

#modalGameRating {
    color: #feca57;
    font-weight: 600;
}

.game-header .game-downloads {
    color: #666666;
    font-size: 14px;
}

.game-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.game-tabs .tab {
    padding: 10px 24px;
    border: none;
    background: transparent;
    color: #666666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.game-tabs .tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    min-height: 200px;
}

.tab-pane {
    display: none;
}

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

.tab-content p {
    color: #333333;
    line-height: 1.8;
    margin-bottom: 16px;
}

.modal-content .tab-content .detail-desc {
    color: #3498db !important;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.modal-content .detail-benefit {
    color: #3498db !important;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    padding: 10px 12px;
    background: rgba(52, 152, 219, 0.08);
    border-radius: 8px;
}

.guide-content h3 {
    color: #333333;
    font-size: 18px;
    margin-bottom: 12px;
}

.guide-content ul {
    list-style: none;
    padding-left: 0;
}

.guide-content li {
    color: #666666;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.download-link {
    color: #667eea;
    word-break: break-all;
    font-size: 14px;
}

.guide-content .warning {
    color: #3498db !important;
    font-size: 13px;
    margin-top: 10px;
    line-height: 1.6;
}

.tab-pane .btn-primary {
    width: 100%;
    margin-top: 16px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
}

.modal-footer .btn-primary {
    width: 100%;
    max-width: 300px;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px auto;
        border-radius: 12px;
    }

    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 20px;
        top: 12px;
        right: 12px;
    }

    .game-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .game-icon {
        width: 64px;
        height: 64px;
    }

    .game-header .game-info h2 {
        font-size: 20px;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .carousel-labels .label {
        padding: 4px 10px;
        font-size: 11px;
    }
}

.apply-modal-content {
    position: relative;
    background: #fff;
    margin: 20px auto;
    max-width: 500px;
    width: 90%;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.apply-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    color: #666;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-modal-close:hover {
    background: #e0e0e0;
}

.apply-modal-content h2 {
    color: #333;
    font-size: 20px;
    margin-bottom: 16px;
}

.apply-warning {
    color: #ff4757;
    font-size: 13px;
    margin-bottom: 12px;
    font-weight: 500;
}

.apply-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.apply-tip {
    color: #ff4757;
    font-size: 13px;
    margin-bottom: 16px;
    font-weight: 500;
    text-align: center;
}

.apply-note {
    color: #ff4757;
    font-size: 13px;
    margin-bottom: 24px;
}

.success-message {
    margin-top: 16px;
    padding: 12px 16px;
    background: #d4edda;
    border-radius: 8px;
    text-align: center;
}

.success-message p {
    color: #155724;
    font-size: 14px;
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #feca57;
}

.form-group.wide-input {
    display: flex;
    flex-direction: column;
}

.form-group.wide-input label {
    flex-shrink: 0;
}

.form-group.wide-input textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    resize: vertical;
    min-height: 100px;
    color: red !important;
}

.form-group.wide-input textarea:focus {
    outline: none;
    border-color: #feca57;
}

.apply-submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    margin-top: 8px;
}

.success-modal-content {
    position: relative;
    background: #fff;
    margin: 20px auto;
    max-width: 500px;
    width: 90%;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2ed573 0%, #1e90ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    margin: 0 auto 16px;
}

.success-modal-content h2 {
    color: #333;
    font-size: 20px;
    margin-bottom: 12px;
}

.success-note {
    color: #ff4757;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.success-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    text-align: left;
}

.payment-links {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.payment-link {
    display: none;
    color: #333;
    font-size: 13px;
    font-family: monospace;
    word-break: break-all;
    padding: 8px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.payment-link.active {
    display: block;
}

.payment-note {
    color: #999;
    font-size: 12px;
    margin-bottom: 20px;
}

.success-close-btn {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
}

.backend-modal-content {
    position: relative;
    background: #fff;
    margin: 20px auto;
    max-width: 900px;
    width: 90%;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow-y: auto;
}

.backend-modal-content h2 {
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.application-list {
    overflow-x: auto;
}

.application-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.application-table th,
.application-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.application-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #666;
}

.application-table tbody tr:hover {
    background: #f8f9fa;
}

.application-table td:first-child,
.application-table th:first-child {
    max-width: 180px;
    min-width: 100px;
}

.status-pending {
    display: inline-block;
    padding: 4px 12px;
    background: #fff3cd;
    color: #856404;
    border-radius: 12px;
    font-size: 12px;
}

.status-released {
    display: inline-block;
    padding: 4px 12px;
    background: #d4edda;
    color: #155724;
    border-radius: 12px;
    font-size: 12px;
}

.editable-text {
    width: 100%;
    padding: 6px 8px;
    border: none;
    border-bottom: 1px solid transparent;
    font-size: 13px;
    background: transparent;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    white-space: normal;
    word-break: break-all;
}

.editable-text:focus {
    outline: none;
    border-bottom-color: #667eea;
}

.status-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 70px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.status-pending:hover {
    background: #ffeeba;
    transform: scale(1.05);
}

.status-released {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-released:hover {
    background: #c3e6cb;
    transform: scale(1.05);
}

.status-processing {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.status-processing:hover {
    background: #b8daff;
    transform: scale(1.05);
}

.add-game-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px dashed #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-game-card:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-color: #764ba2;
    transform: translateY(-2px);
}

.add-game-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.add-game-info {
    flex: 1;
    padding: 0 12px;
    min-width: 0;
}

.add-game-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #667eea;
}

.add-game-desc {
    font-size: 12px;
    color: #999;
}

.add-game-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.add-game-modal-content {
    position: relative;
    background: #fff;
    margin: 20px auto;
    max-width: 500px;
    width: 90%;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.add-game-modal-content h2 {
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.image-upload-box {
    position: relative;
    width: 100%;
    height: 120px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.image-upload-box:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.upload-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.upload-placeholder span {
    font-size: 32px;
}

.upload-placeholder p {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.image-upload-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}