* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.page {
    display: block;
}

.hidden {
    display: none !important;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h1 {
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
}

.login-box input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: border 0.3s;
}

.login-box input:focus {
    outline: none;
    border-color: #667eea;
}

.login-box button {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.login-box button:hover {
    transform: translateY(-2px);
}

.error {
    color: #e74c3c;
    margin-top: 15px;
    font-size: 14px;
}

.success {
    color: #27ae60;
    margin-top: 15px;
    font-size: 14px;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-content h1 {
    color: #333;
    font-size: 24px;
}

.profile-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.profile-btn:hover {
    transform: scale(1.05);
}

.toggle-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
    font-weight: bold;
}

.toggle-btn:hover {
    transform: scale(1.05);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    left: 20px;
    top: 15px;
    font-size: 35px;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.modal-content h2 {
    margin-bottom: 25px;
    color: #333;
}

.modal-content input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}

.modal-content button {
    width: 100%;
    padding: 15px;
    margin-top: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}

.logout-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.download-section {
    margin-bottom: 50px;
}

.accounts-section {
    margin-bottom: 50px;
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.account-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

.account-card:hover {
    transform: translateY(-5px);
}

.account-info h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 20px;
    text-align: center;
}

.userid-container {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.userid-text {
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    text-align: center;
    margin: 0;
    font-weight: bold;
}

.account-card .copy-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #764ba2;
    font-weight: bold;
}

.account-card .copy-btn:hover {
    background: white;
}

.account-card .copy-btn.copied {
    background: #27ae60;
    color: white;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.card h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 28px;
}

.card p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

.download-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.2s;
}

.download-btn:hover {
    transform: translateY(-3px);
}

.crosshair-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.crosshair-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.crosshair-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.crosshair-card:hover {
    transform: translateY(-5px);
}

.crosshair-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.player-name {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
}

.color-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.white {
    background: #ecf0f1;
    color: #2c3e50;
}

.yellow {
    background: #f39c12;
    color: white;
}

.green {
    background: #27ae60;
    color: white;
}

.cyan {
    background: #00bcd4;
    color: white;
}

.red {
    background: #e74c3c;
    color: white;
}

.black {
    background: #2c3e50;
    color: white;
}

.blue {
    background: #3498db;
    color: white;
}

.dot {
    background: #95a5a6;
    color: white;
}

.code-container {
    background: #2c3e50;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    position: relative;
}

.code-text {
    color: #ecf0f1;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    word-break: break-all;
    margin: 0;
}

.copy-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-btn:hover {
    transform: scale(1.02);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.star-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    margin-left: 8px;
    vertical-align: middle;
    display: inline-block;
}

.star-btn:hover {
    transform: scale(1.2);
}

.star-btn.active {
    filter: drop-shadow(0 0 8px #f39c12);
}

@media (max-width: 768px) {
    .nav-content h1 {
        font-size: 18px;
    }
    
    .nav-content h1 img {
        width: 24px;
        height: 24px;
    }

    .profile-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .card {
        padding: 25px;
    }

    .card h2 {
        font-size: 22px;
    }

    .crosshair-section h2 {
        font-size: 24px;
    }

    .crosshair-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 25px;
    }
}
