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

body {
    font-family: 'Courier New', monospace;
    background: #0a0e27;
    color: #00ff9f;
    overflow-x: hidden;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 2px solid #ff00ff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
    margin-bottom: 30px;
}

h1 {
    font-size: 3em;
    text-shadow: 0 0 10px #00ff9f, 0 0 20px #00ff9f;
    letter-spacing: 5px;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 2px); }
    94% { transform: translate(2px, -2px); }
}

.subtitle {
    color: #ff00ff;
    font-size: 0.9em;
    letter-spacing: 3px;
    margin-top: 10px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid #00ff9f;
    flex-wrap: wrap;
}

.tab {
    padding: 15px 30px;
    background: transparent;
    border: 2px solid #00ff9f;
    color: #00ff9f;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 1em;
    transition: all 0.3s;
}

.tab:hover {
    background: rgba(0, 255, 159, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 159, 0.5);
}

.tab.active {
    background: #00ff9f;
    color: #0a0e27;
    box-shadow: 0 0 20px rgba(0, 255, 159, 0.8);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

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

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

.map-container {
    text-align: center;
    padding: 40px;
    border: 2px solid #ff00ff;
    background: rgba(255, 0, 255, 0.05);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.2);
}

.map-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 20px auto;
    border: 3px solid #00ff9f;
    box-shadow: 0 0 30px rgba(0, 255, 159, 0.3);
    display: block;
}

.login-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    border: 2px solid #00ff9f;
    background: rgba(0, 255, 159, 0.05);
    box-shadow: 0 0 30px rgba(0, 255, 159, 0.2);
}

.login-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #00ff9f;
    font-size: 0.9em;
    letter-spacing: 2px;
}

input {
    width: 100%;
    padding: 12px;
    background: #0a0e27;
    border: 2px solid #00ff9f;
    color: #00ff9f;
    font-family: 'Courier New', monospace;
    font-size: 1em;
    transition: all 0.3s;
}

input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 159, 0.5);
    border-color: #ff00ff;
}

.btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 2px solid #ff00ff;
    color: #ff00ff;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 3px;
}

.btn:hover {
    background: #ff00ff;
    color: #0a0e27;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
}

.message {
    margin-top: 20px;
    padding: 15px;
    text-align: center;
    border: 2px solid;
    display: none;
}

.message.error {
    border-color: #ff0055;
    color: #ff0055;
    background: rgba(255, 0, 85, 0.1);
}

.message.success {
    border-color: #00ff9f;
    color: #00ff9f;
    background: rgba(0, 255, 159, 0.1);
}

.simple-content {
    padding: 40px;
    border: 2px solid #00ff9f;
    background: rgba(0, 255, 159, 0.05);
    line-height: 1.8;
}

.simple-content h2 {
    color: #ff00ff;
    margin-bottom: 20px;
    font-size: 2em;
    text-shadow: 0 0 10px #ff00ff;
}

.simple-content p {
    margin-bottom: 15px;
    color: #00ff9f;
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 159, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 159, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

.chat-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    border: 2px solid #00ff9f;
    background: rgba(0, 255, 159, 0.05);
    box-shadow: 0 0 30px rgba(0, 255, 159, 0.2);
    min-height: 700px;
    display: flex;
    flex-direction: column;
}

.chat-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}

.username-setup {
    text-align: center;
    padding: 40px;
}

.username-setup input {
    max-width: 400px;
    margin: 20px auto;
    display: block;
}

#chatArea {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #00ff9f;
    margin-bottom: 20px;
    min-height: 400px;
}

.chat-message {
    margin-bottom: 15px;
    padding: 10px;
    border-left: 3px solid #ff00ff;
    background: rgba(255, 0, 255, 0.05);
}

.chat-username {
    color: #ff00ff;
    font-weight: bold;
    margin-right: 10px;
}

.chat-timestamp {
    color: #00ff9f;
    font-size: 0.8em;
    opacity: 0.7;
    margin-left: 10px;
}

.chat-text {
    color: #00ff9f;
    margin-top: 5px;
}

.chat-input-area {
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
}

.chat-input-area button {
    width: auto;
    padding: 12px 30px;
}

.chat-messages::-webkit-scrollbar {
    width: 10px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #00ff9f;
    border: 2px solid #0a0e27;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #ff00ff;
}
/* Dashboard Styles */
.profile-container {
    padding: 40px;
    border: 2px solid #00ff9f;
    background: rgba(0, 255, 159, 0.05);
    box-shadow: 0 0 30px rgba(0, 255, 159, 0.2);
}

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

.profile-header h2 {
    color: #ff00ff;
    font-size: 2em;
    text-shadow: 0 0 10px #ff00ff;
}

.logout-btn {
    width: auto;
    padding: 10px 30px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.profile-card {
    padding: 20px;
    border: 2px solid #ff00ff;
    background: rgba(255, 0, 255, 0.05);
}

.profile-label {
    font-size: 0.8em;
    color: #00ff9f;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.profile-value {
    font-size: 1.5em;
    color: #00ff9f;
    text-shadow: 0 0 5px #00ff9f;
}

.bio-section {
    padding: 30px;
    border: 2px solid #00ff9f;
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.bio-section h3 {
    color: #ff00ff;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.bio-section p {
    color: #00ff9f;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    padding: 30px;
    text-align: center;
    border: 2px solid #00ff9f;
    background: rgba(0, 255, 159, 0.05);
}

.stat-number {
    font-size: 3em;
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9em;
    color: #00ff9f;
    letter-spacing: 2px;
}

.missions-container {
    padding: 40px;
    border: 2px solid #00ff9f;
    background: rgba(0, 255, 159, 0.05);
}

.missions-container h2 {
    color: #ff00ff;
    font-size: 2em;
    text-shadow: 0 0 10px #ff00ff;
    margin-bottom: 30px;
}

.mission-card {
    padding: 25px;
    border: 2px solid #00ff9f;
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    transition: all 0.3s;
}

.mission-card:hover {
    box-shadow: 0 0 20px rgba(0, 255, 159, 0.3);
    transform: translateX(5px);
}

.mission-card.completed {
    opacity: 0.6;
    border-color: #666;
}

.mission-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.mission-id {
    color: #ff00ff;
    font-weight: bold;
}

.mission-status {
    color: #00ff9f;
    font-size: 0.9em;
    letter-spacing: 2px;
}

.mission-title {
    font-size: 1.3em;
    color: #00ff9f;
    margin-bottom: 10px;
}

.mission-desc {
    color: #00ff9f;
    opacity: 0.8;
    margin-bottom: 15px;
}

.mission-reward {
    color: #ff00ff;
    font-weight: bold;
}

.settings-container {
    padding: 40px;
    border: 2px solid #00ff9f;
    background: rgba(0, 255, 159, 0.05);
}

.settings-container h2 {
    color: #ff00ff;
    font-size: 2em;
    text-shadow: 0 0 10px #ff00ff;
    margin-bottom: 30px;
}

.settings-section {
    margin-bottom: 40px;
    padding: 20px;
    border: 2px solid #00ff9f;
    background: rgba(0, 0, 0, 0.3);
}

.settings-section h3 {
    color: #ff00ff;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 255, 159, 0.2);
}

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

.setting-item label {
    color: #00ff9f;
    margin: 0;
}

.btn-small {
    padding: 8px 20px;
    background: transparent;
    border: 2px solid #ff00ff;
    color: #ff00ff;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9em;
}

.btn-small:hover {
    background: #ff00ff;
    color: #0a0e27;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.8);
}