/* === COMPONENT-SPECIFIC STYLES === */

/* === MODAL STYLES === */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.modal-title {
    color: var(--secondary-color);
    font-family: var(--font-primary);
}

.modal-body {
    color: var(--text-secondary);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.btn-close {
    filter: invert(1);
}

/* === FORM STYLES === */
.form-control {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.25);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.25);
}

/* === CARD STYLES === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    color: var(--secondary-color);
    font-weight: 600;
}

.card-body {
    color: var(--text-secondary);
}

.card-title {
    color: var(--text-primary);
    font-family: var(--font-primary);
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === TABLE STYLES === */
.table {
    color: var(--text-secondary);
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table th {
    background: var(--bg-secondary);
    color: var(--secondary-color);
    border-bottom: 2px solid var(--border-color);
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 1rem;
}

.table td {
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: var(--bg-hover);
}

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

/* === BADGE STYLES === */
.badge {
    font-weight: 500;
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.badge-secondary {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: var(--text-dark);
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

/* === ALERT STYLES === */
.alert {
    border-radius: 8px;
    border: 1px solid;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.alert-primary {
    background: rgba(139, 69, 19, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

/* === PAGINATION STYLES === */
.pagination {
    gap: 0.25rem;
}

.page-link {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.page-link:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-item.disabled .page-link {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* === BREADCRUMB STYLES === */
.breadcrumb {
    background: var(--bg-tertiary);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.breadcrumb-item {
    color: var(--text-secondary);
}

.breadcrumb-item.active {
    color: var(--text-primary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
    content: ">";
}

/* === PROGRESS STYLES === */
.progress {
    background: var(--bg-tertiary);
    border-radius: 6px;
    height: 1rem;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.6s ease;
}

/* === TOOLTIP STYLES === */
.tooltip .tooltip-inner {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: var(--shadow-md);
}

.tooltip .tooltip-arrow::before {
    border-color: var(--bg-secondary);
}

/* === TAB STYLES === */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-bottom: none;
    color: var(--text-secondary);
    border-radius: 6px 6px 0 0;
    margin-right: 0.25rem;
    transition: var(--transition-fast);
}

.nav-tabs .nav-link:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.nav-tabs .nav-link.active {
    background: var(--bg-card);
    border-color: var(--border-color);
    border-bottom-color: var(--bg-card);
    color: var(--secondary-color);
}

.tab-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0 6px 6px 6px;
    padding: 1.5rem;
}

/* === ACCORDION STYLES === */
.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    border-radius: 6px;
    overflow: hidden;
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-button {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.25);
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-body {
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: 1.25rem;
}

/* === SPINNER STYLES === */
.spinner-border {
    color: var(--primary-color);
}

.spinner-grow {
    color: var(--primary-color);
}

/* === LIST GROUP STYLES === */
.list-group {
    border-radius: 8px;
    overflow: hidden;
}

.list-group-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    transition: var(--transition-fast);
}

.list-group-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.list-group-item.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* === OFFCANVAS STYLES === */
.offcanvas {
    background: var(--bg-secondary);
    border-left: 2px solid var(--primary-color);
}

.offcanvas-header {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.offcanvas-title {
    color: var(--secondary-color);
    font-family: var(--font-primary);
}

.offcanvas-body {
    color: var(--text-secondary);
}

/* === CAROUSEL STYLES === */
.carousel-item {
    border-radius: 8px;
    overflow: hidden;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 6px;
    padding: 1rem;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    color: var(--secondary-color);
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators button {
    background: var(--text-secondary);
    opacity: 0.5;
    border-radius: 50%;
    width: 12px;
    height: 12px;
}

.carousel-indicators button.active {
    background: var(--secondary-color);
    opacity: 1;
}

/* === COLLAPSE STYLES === */
.collapse {
    transition: var(--transition-normal);
}

.collapsing {
    transition: height var(--transition-normal) ease;
}

/* === CUSTOM SCROLLBAR FOR CONTAINERS === */
.sidebar-block::-webkit-scrollbar,
.rating-list::-webkit-scrollbar,
.news-list::-webkit-scrollbar {
    width: 4px;
}

.sidebar-block::-webkit-scrollbar-track,
.rating-list::-webkit-scrollbar-track,
.news-list::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 2px;
}

.sidebar-block::-webkit-scrollbar-thumb,
.rating-list::-webkit-scrollbar-thumb,
.news-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

/* === SEARCH STYLES === */
.search-container {
    position: relative;
    max-width: 400px;
}

.search-input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    width: 100%;
    transition: var(--transition-fast);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.25);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* === SOCIAL SHARE BUTTONS === */
.social-share {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: var(--transition-fast);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: white;
}

.share-btn.youtube {
    background: #ff0000;
}

.share-btn.vk {
    background: #4c75a3;
}

.share-btn.discord {
    background: #7289da;
}

.share-btn.telegram {
    background: #0088cc;
}

/* === RATING STARS === */
.rating-stars {
    display: flex;
    gap: 0.25rem;
    color: var(--secondary-color);
}

.rating-stars.readonly {
    pointer-events: none;
}

.rating-star {
    cursor: pointer;
    transition: var(--transition-fast);
}

.rating-star:hover,
.rating-star.active {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* === TAGS === */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition-fast);
    border: 1px solid var(--border-color);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* === CUSTOM ANIMATIONS === */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80%, 100% {
        transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    0% {
        opacity: 0;
        transform: scale3d(.3, .3, .3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(.9, .9, .9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(.97, .97, .97);
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.bounce-in {
    animation: bounceIn 1s ease-out;
}

/* === HOVER EFFECTS === */
.hover-lift {
    transition: var(--transition-fast);
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hover-glow {
    transition: var(--transition-fast);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.3);
}

.hover-scale {
    transition: var(--transition-fast);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* === DASHBOARD STYLES === */
.dashboard-title {
    color: var(--secondary-color);
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 0;
}

.dashboard-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.dashboard-header {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.dashboard-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.dashboard-card .card-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}

.dashboard-card .card-title {
    color: var(--secondary-color);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Profile Avatar */
.profile-avatar {
    color: var(--primary-color);
}

/* Profile Stats */
.profile-stats .stat-box {
    text-align: center;
    padding: 0.5rem;
}

.profile-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: var(--font-primary);
}

.profile-stats .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-details {
    font-size: 0.9rem;
}

.profile-details strong {
    color: var(--text-primary);
}

/* Statistics Cards */
.stat-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-card .card-body {
    padding: 1.25rem;
}

.stat-card .stat-icon {
    font-size: 2rem;
    margin-right: 1rem;
    opacity: 0.8;
}

.stat-card .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-card .stat-text {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Tab Styles */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition-fast);
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--primary-color);
    background: var(--bg-secondary);
}

.nav-tabs .nav-link.active {
    color: var(--secondary-color);
    background: var(--bg-card);
    border-color: var(--border-color) var(--border-color) var(--bg-card);
    font-weight: 600;
}

/* Character Card */
.character-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: var(--transition-fast);
}

.character-card:hover {
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-sm);
}

.character-avatar {
    color: var(--primary-color);
}

.character-name {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.character-details .badge {
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

.character-stats {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Achievement Styles */
.achievement-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}

.achievement-card.locked {
    opacity: 0.6;
}

.achievement-card.completed {
    border-color: var(--success-color);
    background: linear-gradient(135deg, var(--bg-secondary), rgba(40, 167, 69, 0.1));
}

.achievement-card:hover {
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-sm);
}

.achievement-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 60px;
    text-align: center;
}

.achievement-card.completed .achievement-icon {
    color: var(--success-color);
}

.achievement-info h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.achievement-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.achievement-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.achievement-progress .progress {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
}

.achievement-progress .progress-bar {
    background: var(--primary-color);
    transition: width 0.5s ease;
}

.achievement-card.completed .progress-bar {
    background: var(--success-color);
}

.achievement-progress small {
    color: var(--text-muted);
    font-size: 0.75rem;
    min-width: 40px;
    text-align: right;
}

/* Activity History */
.activity-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 0.9rem;
}

.activity-content {
    flex: 1;
}

.activity-title {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.activity-time {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Button Group Enhancements */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Toast Notifications */
.toast {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.toast-body {
    font-weight: 500;
}

/* Responsive Enhancements for Dashboard */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 1rem;
    }
    
    .dashboard-header .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .stat-card .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .stat-card .stat-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .character-card .row {
        text-align: center;
    }
    
    .character-card .btn-group {
        margin-top: 1rem;
    }
    
    .achievement-card {
        flex-direction: column;
        text-align: center;
    }
    
    .achievement-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* === DOWNLOAD PAGE STYLES === */
.download-hero {
    background: linear-gradient(135deg, 
        var(--bg-primary) 0%, 
        var(--bg-secondary) 50%, 
        var(--bg-tertiary) 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.download-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.download-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: var(--font-primary);
    margin-bottom: 1rem;
}

.download-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.download-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.download-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.download-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.download-btn small {
    font-size: 0.85rem;
    opacity: 0.8;
}

.download-note {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-note i {
    color: var(--success-color);
}

/* Launcher Mockup */
.download-preview {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.launcher-mockup {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 400px;
    max-width: 100%;
}

.launcher-header {
    background: var(--bg-secondary);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.launcher-controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.control-btn.minimize {
    background: #fbbf24;
}

.control-btn.close {
    background: #ef4444;
}

.launcher-title {
    color: var(--text-primary);
    font-weight: 600;
}

.launcher-body {
    padding: 2rem;
    text-align: center;
}

.launcher-game-info h4 {
    color: var(--secondary-color);
    font-family: var(--font-primary);
    margin-bottom: 0.5rem;
}

.launcher-game-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.launcher-progress {
    margin-bottom: 1.5rem;
}

.progress-bar-mock {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.progress-bar-mock::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

.progress-text {
    color: var(--success-color);
    font-weight: 600;
}

.launcher-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-play {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-play:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-settings {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-settings:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Download Steps */
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: var(--transition-fast);
    position: relative;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.step-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* System Requirements */
.requirements-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
}

.requirements-card.recommended {
    border-color: var(--success-color);
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.1);
}

.requirements-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.requirements-header h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.requirement-item {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.requirement-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.req-label {
    flex: 0 0 140px;
    color: var(--text-secondary);
    font-weight: 500;
}

.req-value {
    color: var(--text-primary);
}

/* Download Options */
.download-option-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: var(--transition-fast);
}

.download-option-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.option-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.download-option-card h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.download-option-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.option-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 0.9rem;
}

.file-size {
    color: var(--primary-color);
    font-weight: 600;
}

.file-type {
    color: var(--text-muted);
}

/* === BILLING PAGE STYLES === */
.page-header {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-primary);
}

.page-title {
    color: var(--secondary-color);
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

/* Balance Display */
.balance-display {
    text-align: center;
    margin-bottom: 1.5rem;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: var(--font-primary);
    margin-bottom: 0.5rem;
}

.balance-currency {
    font-size: 1rem;
    color: var(--primary-color);
    margin-left: 0.5rem;
}

.balance-equivalent {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.balance-history h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.recent-payment {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.recent-payment:last-child {
    border-bottom: none;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.payment-method:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
}

.payment-method.active {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.payment-method i {
    font-size: 1.2rem;
}

.payment-method span {
    font-weight: 500;
}

/* Bonus Items */
.bonus-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bonus-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    opacity: 0.6;
}

.bonus-item.active {
    opacity: 1;
    border-color: var(--success-color);
    background: linear-gradient(135deg, var(--bg-secondary), rgba(40, 167, 69, 0.1));
}

.bonus-item i {
    font-size: 1.5rem;
}

.bonus-info {
    flex: 1;
}

.bonus-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.bonus-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Top-up Options */
.topup-option {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    position: relative;
    transition: var(--transition-fast);
}

.topup-option:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
}

.topup-option.popular {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.2);
}

.topup-option.best-value {
    border-color: var(--success-color);
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.2);
}

.topup-option.vip {
    border-color: var(--warning-color);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.2);
    background: linear-gradient(135deg, var(--bg-secondary), rgba(255, 193, 7, 0.1));
}

.topup-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.topup-option.best-value .topup-badge {
    background: var(--success-color);
}

.topup-option.vip .topup-badge {
    background: var(--warning-color);
    color: var(--bg-primary);
}

.topup-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: var(--font-primary);
    margin-bottom: 0.5rem;
}

.topup-price {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.topup-bonus {
    color: var(--success-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 20px;
}

/* Selected Package */
.selected-package-info h4 {
    color: var(--secondary-color);
    font-family: var(--font-primary);
    margin-bottom: 1rem;
}

.package-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item {
    color: var(--text-primary);
}

.detail-item strong {
    color: var(--text-secondary);
}

/* Offer Cards */
.offer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    position: relative;
    transition: var(--transition-fast);
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.offer-card.limited-time {
    border-color: var(--warning-color);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.2);
}

.offer-ribbon {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--warning-color);
    color: var(--bg-primary);
    padding: 0.25rem 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.offer-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.offer-card.limited-time .offer-icon {
    color: var(--warning-color);
}

.offer-card h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.offer-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Timer */
.offer-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

.timer-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--warning-color);
    font-family: var(--font-primary);
}

.timer-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .download-title {
        font-size: 2rem;
    }
    
    .download-subtitle {
        font-size: 1.2rem;
    }
    
    .download-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .download-btn {
        width: 100%;
    }
    
    .launcher-mockup {
        width: 100%;
        margin-top: 2rem;
    }
    
    .req-label {
        flex: 0 0 120px;
        font-size: 0.9rem;
    }
    
    .req-value {
        font-size: 0.9rem;
    }
    
    .balance-amount {
        font-size: 2rem;
    }
    
    .payment-methods {
        gap: 1rem;
    }
    
    .offer-timer {
        gap: 0.5rem;
    }
    
    .timer-value {
        font-size: 1.2rem;
    }
}
