.upgrade-section form{
    text-align: center;
}


/*BANK*/
.meiko-bank{
	margin-top: 100px;
}

.meiko-transfer{
	margin-top: 100px;
}

.meiko-withdraw{
	margin-top: 20px;
}

/* CASINO*/
#start-crash{
	margin-bottom: 20px;
}
/* CHAT*/
#meiko-chat-input{
	margin-top: 20px;
}

/* Footer */
footer {
  color: #ffffff;
  text-align: center;
  padding: 25px 0;
  font-size: 0.9em;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
}

footer a {
  color: #e94d5b;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* --- Welcome Help Icon --- */
.welcome-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    box-shadow: 0 0 8px #9370db44;
    transition: box-shadow 0.18s, background 0.18s;
}
.welcome-help-icon:hover, .welcome-help-icon:focus {
    background: #9370db;
    color: #fff;
    box-shadow: 0 0 18px #ff69b4cc, 0 0 4px #fff;
    outline: none;
}

/* --- Welcome Help Popup --- */
.welcome-help-popup {
    position: fixed;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.44);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.welcome-help-popup.active {
    opacity: 1;
    pointer-events: all;
}
.welcome-help-popup-content {
    background: linear-gradient(120deg, #232946 60%, #1a0033 100%);
    border-radius: 16px;
    box-shadow: 0 6px 40px #9370db55, 0 2px 0 #e8e8f1;
    border: 2.5px solid #ff69b4;
    padding: 34px 30px 28px 30px;
    max-width: 370px;
    width: 92vw;
    color: #fff;
    font-family: 'Orbitron', 'Montserrat', Arial, sans-serif;
    position: relative;
    text-align: center;
    animation: fadeInPop 0.22s;
}
@keyframes fadeInPop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.welcome-help-close {
    position: absolute;
    top: 10px; right: 18px;
    font-size: 2rem;
    color: #ff69b4;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.18s, text-shadow 0.18s;
    text-shadow: 0 0 8px #ff69b4cc;
    z-index: 10;
}
.welcome-help-close:hover, .welcome-help-close:focus {
    color: #fff;
    text-shadow: 0 0 18px #ff69b4cc, 0 0 8px #fff7;
    outline: none;
}
/* Animations */

@keyframes pulse {
  100% {
    box-shadow: 0 0 0 6px rgba(193,244,246,0);
  }
}

@keyframes glitch {
 0% {
  clip-path: var(--slice-1);
  transform: translate(-20px, -10px);
 }

 10% {
  clip-path: var(--slice-3);
  transform: translate(10px, 10px);
 }

 20% {
  clip-path: var(--slice-1);
  transform: translate(-10px, 10px);
 }

 30% {
  clip-path: var(--slice-3);
  transform: translate(0px, 5px);
 }

 40% {
  clip-path: var(--slice-2);
  transform: translate(-5px, 0px);
 }

 50% {
  clip-path: var(--slice-3);
  transform: translate(5px, 0px);
 }

 60% {
  clip-path: var(--slice-4);
  transform: translate(5px, 10px);
 }

 70% {
  clip-path: var(--slice-2);
  transform: translate(-10px, 10px);
 }

 80% {
  clip-path: var(--slice-5);
  transform: translate(20px, -10px);
 }

 90% {
  clip-path: var(--slice-1);
  transform: translate(-10px, 0px);
 }

 100% {
  clip-path: var(--slice-1);
  transform: translate(0);
 }
}

/* Mobile Design */
@media (max-width: 768px) {
  .content {
    width: 90%;
    min-width: unset;
  }
  .market-table {
    font-size: 12px;
  }

  .market-action-buttons button {
    padding: 4px 8px;
    font-size: 12px;
  }
	
	.leaderboard-table {
    font-size: 12px;
  }

  .leaderboard-avatar {
    width: 25px;
    height: 25px;
   }
	
	.factions-leaderboard-table {
   	font-size: 12px;
  }

  .faction-avatar {
    width: 30px;
    height: 30px;
  }
}	

.cars_form{
  margin-top: 20px;
}

.cars_form_button{
  margin-bottom: 20px;
}

.house_form{
  margin-top: 5px;
}

.transfer-form{
  margin-top: 25px;
}

.trade-form{
  margin-top: 25px;
}

.factionavatar{
  margin-top: 25px;
}

/* Enhanced Stats Display */
.stat-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.stat-card {
    background: rgba(20, 20, 40, 0.9);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid rgba(255, 0, 255, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.5);
}

/* Enhanced Button Styling */
button {
    background: linear-gradient(45deg, #ff00ff, #8707ff);
    color: white;
    padding: 8px 20px;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

button:hover {
    background: linear-gradient(45deg, #8707ff, #ff00ff);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 255, 0.4);
}

/* Progress Bars */
.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff00ff, #8707ff);
    transition: width 0.5s ease;
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px #ff00ff;
    }
    to {
        box-shadow: 0 0 20px #ff00ff;
    }
}



/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-danger {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #ef4444;
}

.alert-success {
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.2);
    color: #22c55e;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px var(--neon-purple),
                     0 0 10px var(--neon-purple),
                     0 0 15px var(--neon-purple);
    }
    to {
        text-shadow: 0 0 10px var(--neon-purple),
                     0 0 20px var(--neon-purple),
                     0 0 30px var(--neon-purple);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .fighting-grid {
        grid-template-columns: 1fr;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .th:last-child,
    .td:last-child {
        display: none;
    }
    
    .accept-btn {
        position: absolute;
        bottom: 1rem;
        right: 1rem;
    }
}

/* --- Enhanced Mobile Styles for Main --- */
@media (max-width: 900px) {
    main {
        padding: 12px 2vw;
    }
    .main-content {
        padding: 16px 2vw;
        border-radius: 12px;
        box-shadow: 0 0 10px rgba(255,0,255,0.09);
    }
    .main-title {
        font-size: 2rem;
        margin-bottom: 0.7em;
    }
    .main-section {
        margin-bottom: 1.2em;
    }
}
@media (max-width: 600px) {
    main {
        padding: 6px 0.5vw;
    }
    .main-content {
        padding: 8px 1vw;
        border-radius: 8px;
    }
    .main-title {
        font-size: 1.1rem;
        margin-bottom: 0.4em;
    }
    .main-section {
        margin-bottom: 0.7em;
    }
    .main-table, .main-table th, .main-table td {
        font-size: 0.96em;
        padding: 6px 4px;
    }
}
/* --- End Enhanced Mobile Styles for Main --- */