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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    min-height: 100vh;
}

.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: block;
}

/* Loading Screen */
#loading {
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.loading-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Game Header */
.game-header {
    background: rgba(0,0,0,0.3);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.player-stats h3 {
    margin-bottom: 0.5rem;
}

.stat-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.stat-bar label {
    min-width: 60px;
    font-size: 0.9rem;
}

.bar {
    width: 100px;
    height: 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.bar-fill.health {
    background: linear-gradient(90deg, #ff4757, #ff6b7a);
}

.bar-fill.energy {
    background: linear-gradient(90deg, #3742fa, #5352ed);
}

.bar-fill.happiness {
    background: linear-gradient(90deg, #f1c40f, #f39c12);
}

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

.resource {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
}

.time-info {
    text-align: right;
}

#day-counter {
    font-size: 1.2rem;
    font-weight: bold;
}

#day-timer {
    font-size: 1rem;
    color: #ffd700;
}

/* Main Content */
.game-content {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.location-header {
    text-align: center;
    margin-bottom: 2rem;
}

.location-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-bottom: 2rem;
}

.location-view {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    min-height: 400px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.online-players, .quick-stats {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.online-players h3, .quick-stats h3 {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 0.5rem;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.05);
}

.player-item img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.stat {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
}

/* Navigation */
.location-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.top-nav {
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.nav-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-color: #fff;
}

.nav-btn.active {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    color: #333;
}

/* Location Content Styles */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.action-card {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.action-card h3 {
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.action-card .difficulty {
    color: #ff6b7a;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.action-card .reward {
    color: #7bed9f;
    font-weight: bold;
}

.shop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.shop-item h4 {
    color: #ffd700;
}

.shop-item .price {
    color: #7bed9f;
    font-weight: bold;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 2rem;
    border-radius: 15px;
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.battle-area {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.combatant {
    text-align: center;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.combatant h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.combatant .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 3px solid #fff;
}

.combatant .stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.battle-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}

.battle-btn {
    background: linear-gradient(135deg, #ff4757 0%, #ff6b7a 100%);
    border: none;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 150px;
}

.battle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255,71,87,0.3);
}

.battle-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.battle-btn.defend {
    background: linear-gradient(135deg, #3742fa 0%, #5352ed 100%);
}

.battle-btn.flee {
    background: linear-gradient(135deg, #747d8c 0%, #57606f 100%);
}

.health-bar {
    width: 200px;
    height: 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 0.5rem auto;
    border: 2px solid rgba(255,255,255,0.3);
}

.health-bar .bar-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.energy-info {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #87ceeb;
}

.battle-log {
    background: rgba(0,0,0,0.5);
    padding: 1.5rem;
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    border: 1px solid rgba(255,255,255,0.2);
}

.battle-log .log-entry {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.battle-log .log-entry.player-action {
    color: #7bed9f;
}

.battle-log .log-entry.enemy-action {
    color: #ff6b7a;
}

.battle-log .log-entry.system {
    color: #ffd700;
    font-weight: bold;
}

.turn-indicator {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 0.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
}

.turn-indicator.player-turn {
    color: #7bed9f;
    border: 2px solid #7bed9f;
}

.turn-indicator.enemy-turn {
    color: #ff6b7a;
    border: 2px solid #ff6b7a;
}

/* Victory Modal Styles */
.victory-content {
    text-align: center;
}

.victory-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.victory-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 120px;
}

.victory-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.victory-descriptions {
    text-align: left;
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.victory-descriptions p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* Notifications */
.notifications {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2000;
}

.notification {
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.notification.success {
    border-left: 4px solid #7bed9f;
}

.notification.error {
    border-left: 4px solid #ff6b7a;
}

.notification.info {
    border-left: 4px solid #3742fa;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .game-header {
        flex-direction: column;
        gap: 1rem;
    }

    .player-info {
        flex-direction: column;
        text-align: center;
    }

    .content-area {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }

    .location-nav {
        gap: 0.5rem;
    }

    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

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

    .battle-area {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .battle-actions {
        order: 3;
        flex-direction: row;
        justify-content: center;
    }
}

/* Mission Styles */
.mission-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.mission-tab {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mission-tab:hover {
    background: rgba(255,255,255,0.2);
}

.mission-tab.active {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    color: #333;
    border-color: #fff;
}

.mission-content {
    display: none;
}

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

.mission-giver-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.mission-giver {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.mission-giver:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.mission-giver.completed {
    background: rgba(126, 237, 159, 0.2);
    border-color: #7bed9f;
}

.giver-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.giver-avatar {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
}

.giver-header h3 {
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.current-mission {
    background: rgba(0,0,0,0.3);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.current-mission h4 {
    color: #7bed9f;
    margin-bottom: 0.5rem;
}

.mission-progress {
    margin: 1rem 0;
    padding: 0.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 5px;
    font-size: 0.9rem;
}

.mission-progress div {
    margin-bottom: 0.25rem;
}

.mission-rewards {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 1rem;
}

.completed-text {
    text-align: center;
    color: #7bed9f;
    font-weight: bold;
    font-size: 1.1rem;
}

.store-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.store-header h3 {
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.credits {
    color: #7bed9f;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Mobile Responsive for Missions */
@media (max-width: 768px) {
    .mission-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .mission-tab {
        width: 200px;
    }
    
    .giver-header {
        flex-direction: column;
        text-align: center;
    }
    
    .giver-avatar {
        margin: 0 auto;
    }
}

/* Loan Shark Styles */
.duke-office {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.duke-character {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(0,0,0,0.3);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
}

.duke-avatar {
    font-size: 4rem;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.duke-dialogue h4 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.duke-dialogue p {
    font-style: italic;
    line-height: 1.6;
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #ffd700;
}

.overdue-warning {
    color: #ff4757 !important;
    font-weight: bold;
    animation: pulse 2s infinite;
}

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

.loan-terms, .loan-status {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.loan-terms h4, .loan-status h4 {
    color: #ffd700;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 0.5rem;
}

.loan-terms ul {
    list-style: none;
    padding: 0;
}

.loan-terms li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
}

.loan-terms li:last-child {
    border-bottom: none;
    color: #ff6b7a;
    font-weight: bold;
}

.loan-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.loan-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(0,0,0,0.3);
    border-radius: 5px;
}

.payment-amount {
    color: #7bed9f;
    font-weight: bold;
}

.due-date {
    color: #87ceeb;
    font-weight: bold;
}

.overdue {
    color: #ff4757;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.total-owed {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1rem;
}

.loan-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.loan-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    color: #333;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.loan-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.decline-btn {
    background: linear-gradient(135deg, #747d8c 0%, #57606f 100%);
    color: #fff;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.decline-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(116, 125, 140, 0.3);
}

.pay-btn {
    background: linear-gradient(135deg, #7bed9f 0%, #70a085 100%);
    color: #333;
    font-weight: bold;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.pay-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(123, 237, 159, 0.3);
}

.pay-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.early-btn {
    background: linear-gradient(135deg, #3742fa 0%, #5352ed 100%);
    color: #fff;
    font-weight: bold;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 250px;
}

.early-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(55, 66, 250, 0.3);
}

/* Mobile Responsive for Loan Shark */
@media (max-width: 768px) {
    .duke-character {
        flex-direction: column;
        text-align: center;
    }
    
    .duke-avatar {
        margin: 0 auto;
    }
    
    .loan-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .loan-btn, .decline-btn, .pay-btn, .early-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Casino Styles */
.casino-welcome {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.casino-tokens {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.casino-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.casino-tab {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.casino-tab:hover {
    background: rgba(255,255,255,0.2);
}

.casino-tab.active {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    color: #333;
    border-color: #fff;
}

.casino-content {
    display: none;
}

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

.casino-character {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(0,0,0,0.3);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
}

.casino-avatar {
    font-size: 4rem;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.casino-dialogue h4 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.casino-dialogue p {
    font-style: italic;
    line-height: 1.6;
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #ffd700;
}

/* Mobile Responsive for Casino */
@media (max-width: 768px) {
    .leslie-character {
        flex-direction: column;
        text-align: center;
    }
    
    .leslie-avatar {
        margin: 0 auto;
    }
}

/* Loadout Styles */
.loadout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.loadout-section {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.loadout-section h4 {
    color: #ffd700;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 0.5rem;
}

.current-equipment {
    background: rgba(0,0,0,0.3);
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    color: #7bed9f;
    font-weight: bold;
}

.equipment-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.equipment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.equipment-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

.equipment-item.selected {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
}

.equipment-item div {
    flex: 1;
}

.equipment-item strong {
    color: #ffd700;
    display: block;
    margin-bottom: 0.25rem;
}

.equipment-item p {
    font-size: 0.9rem;
    color: #ccc;
    margin: 0;
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-width: 80px;
}

.loadout-summary {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

.loadout-summary h4 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.bonus-stat {
    background: rgba(0,0,0,0.3);
    padding: 0.75rem;
    border-radius: 5px;
    font-weight: bold;
    color: #7bed9f;
}

/* Mobile Responsive for Loadout */
@media (max-width: 768px) {
    .loadout-grid {
        grid-template-columns: 1fr;
    }
    
    .equipment-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .bonus-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mod Menu Styles */
.mod-section {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.mod-section h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 0.5rem;
}

.mod-controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

.mod-controls label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
}

.mod-controls input, .mod-controls select {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 0.5rem;
    border-radius: 4px;
    width: 150px;
}

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

.mod-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.mod-trigger {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.1);
    border: none;
    color: transparent;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
}

/* Factions Styles */
.faction-center {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.faction-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.faction-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2.5rem;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffd700;
    flex-shrink: 0;
}
.faction-owner {
    color: #ffd700;
    font-size: 1rem;
    font-weight: bold;
}
.faction-list, .faction-members-list, .faction-requests, .faction-bank, .faction-share-list {
    background: rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
}
.faction-list-title {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.faction-list {
    max-height: 170px;
    overflow-y: auto;
}
.faction-list-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.faction-list-entry:last-child {
    border-bottom: none;
}
.faction-list-entry .btn {
    min-width: 80px;
}
.faction-members-list {
    max-height: 200px;
    overflow-y: auto;
}
.faction-member-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.4rem;
}
.faction-member-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.faction-member-chip {
    background: #ffd700;
    color: #222;
    border-radius: 15px;
    padding: 2px 10px;
    font-size: 0.85rem;
    margin-left: 0.5rem;
    font-weight: bold;
}

.faction-form, .faction-request-form, .faction-share-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 1rem;
}
.faction-form input, .faction-form select, .faction-form textarea,
.faction-request-form input, .faction-share-form input, .faction-share-form select {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 0.5rem;
}

.faction-share-action-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    color: #333;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.3rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 1rem;
}

.faction-war-section {
    background: rgba(255,0,0,0.07);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,0,0,0.09);
}
.faction-war-list,
.faction-war-targets {
    margin-bottom: 1rem;
}
.faction-war-title {
    color: #ff4747;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.faction-war-btn {
    background: linear-gradient(135deg, #ff4747 0%, #ff6b7a 100%);
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 1rem;
}
.faction-war-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* Responsive for mobile */
@media (max-width: 768px) {
    .faction-center {
        padding: 1rem;
    }
    .faction-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Supply Pack Styles */
.supply-pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.supply-pack-item {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.supply-pack-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.pack-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pack-header h4 {
    color: #ffd700;
    margin: 0;
    font-size: 1.2rem;
}

.pack-rarity {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.pack-rarity.common {
    background: #95a5a6;
    color: #2c3e50;
}

.pack-rarity.uncommon {
    background: #27ae60;
    color: #fff;
}

.pack-rarity.rare {
    background: #3498db;
    color: #fff;
}

.pack-rarity.epic {
    background: #9b59b6;
    color: #fff;
}

.pack-rarity.legendary {
    background: linear-gradient(45deg, #f39c12, #e74c3c);
    color: #fff;
    animation: legendaryGlow 2s infinite alternate;
}

@keyframes legendaryGlow {
    0% { box-shadow: 0 0 5px rgba(243, 156, 18, 0.5); }
    100% { box-shadow: 0 0 20px rgba(231, 76, 60, 0.8); }
}

.pack-contents {
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #bdc3c7;
    font-style: italic;
}

.pack-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.pack-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2ecc71;
}

/* Mobile Responsive for Supply Packs */
@media (max-width: 768px) {
    .supply-pack-grid {
        grid-template-columns: 1fr;
    }
    
    .pack-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .pack-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}