* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #fff;
    min-height: 100vh;
    background-attachment: fixed;
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid rgba(255, 215, 0, 0.5);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.social-link {
    color: #ffd700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.social-link:hover {
    color: #ffed4e;
    transform: scale(1.2) rotate(5deg);
}

.header-title {
    text-align: center;
}

.made-by {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Main Title */
.main-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.5);
    letter-spacing: 2px;
    animation: glow 2s ease-in-out infinite alternate;
}

.subtitle {
    text-align: center;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: rgba(255, 215, 0, 0.8);
    letter-spacing: 1px;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
    }
    to {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.6), 0 0 60px rgba(255, 215, 0, 0.4);
    }
}

/* Search Container */
.search-container {
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: 'Orbitron', sans-serif;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 50px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    transform: translateY(-2px);
}

/* Filters */
.filters-section {
    margin-bottom: 2rem;
}

.filters-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    border: 2px solid;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.filter-btn.active {
    background: #ffd700;
    border-color: #ffd700;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    transform: scale(1.05);
}

.filter-btn.common {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
    color: #4caf50;
}

.filter-btn.common.active {
    background: #4caf50;
    color: #fff;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.8);
}

.filter-btn.rare {
    background: rgba(33, 150, 243, 0.2);
    border-color: #2196f3;
    color: #2196f3;
}

.filter-btn.rare.active {
    background: #2196f3;
    color: #fff;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.8);
}

.filter-btn.epic {
    background: rgba(156, 39, 176, 0.2);
    border-color: #9c27b0;
    color: #9c27b0;
}

.filter-btn.epic.active {
    background: #9c27b0;
    color: #fff;
    box-shadow: 0 0 20px rgba(156, 39, 176, 0.8);
}

.filter-btn.mythic {
    background: rgba(255, 152, 0, 0.2);
    border-color: #ff9800;
    color: #ff9800;
}

.filter-btn.mythic.active {
    background: #ff9800;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.8);
}

.filter-btn.artifact {
    background: rgba(244, 67, 54, 0.2);
    border-color: #f44336;
    color: #f44336;
}

.filter-btn.artifact.active {
    background: #f44336;
    color: #fff;
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.8);
}

.filter-btn:hover {
    transform: scale(1.05);
}

/* Emotes Grid */
.emotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.emote-card {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.emote-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: #ffd700;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

.emote-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 0.8rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.emote-icon.error {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
}

.emote-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffd700;
    word-wrap: break-word;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 3px solid #ffd700;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* UID Modal */
.uid-modal h2 {
    color: #ffd700;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.uid-input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-family: 'Orbitron', sans-serif;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 10px;
    color: #fff;
    outline: none;
    margin-bottom: 1.5rem;
}

.save-uid-btn {
    width: 100%;
    padding: 1rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    background: #ffd700;
    color: #000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.save-uid-btn:hover {
    background: #ffed4e;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
    transform: scale(1.05);
}

/* Item Modal */
.item-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.item-info {
    width: 100%;
}

.item-info p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.item-info strong {
    color: #ffd700;
}

.command-text {
    word-break: break-all;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    border-radius: 5px;
    display: inline-block;
    margin-top: 0.3rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
}

.close-btn, .copy-btn {
    flex: 1;
    padding: 0.8rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.copy-btn {
    background: #ffd700;
    color: #000;
}

.copy-btn:hover {
    background: #ffed4e;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    transform: scale(1.05);
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.loading.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.8rem;
    }

    .emotes-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 1rem;
    }

    .made-by {
        font-size: 0.7rem;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
    }

    .emotes-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .emote-icon {
        width: 60px;
        height: 60px;
    }

    .emote-name {
        font-size: 0.75rem;
    }
}

/* ... (previous CSS remains same) ... */

/* Add these new styles at the end */

/* Team Code Input in Modal */
.team-code-section {
    margin-top: 1rem;
    width: 100%;
}

.team-code-section label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.team-code-input {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    font-family: 'Orbitron', sans-serif;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 10px;
    color: #fff;
    outline: none;
    text-align: center;
    letter-spacing: 2px;
}

.team-code-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: normal;
}

.team-code-input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* Send Button */
.send-btn {
    flex: 1;
    padding: 0.8rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
}

.send-btn:hover {
    background: linear-gradient(135deg, #00e5ff, #00aaff);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    transform: scale(1.05);
}

.send-btn:disabled {
    background: rgba(100, 100, 100, 0.5);
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    font-size: 1.2rem;
}

.btn-text, .btn-loader {
    transition: opacity 0.3s ease;
}

/* Status Message */
.status-message {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid #4caf50;
    color: #4caf50;
}

.status-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 2px solid #f44336;
    color: #f44336;
}

.hidden {
    display: none !important;
}

/* Previous styles remain same... */

/* Add these new styles at the end */

/* Input Section in Modal */
.input-section {
    margin-top: 1rem;
    width: 100%;
}

.input-section label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffd700;
    font-size: 0.95rem;
}

.modal-input {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    font-family: 'Orbitron', sans-serif;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 10px;
    color: #fff;
    outline: none;
    text-align: center;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.modal-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: normal;
}

.modal-input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

/* Remove old team-code-section styles and replace with input-section */
.team-code-section {
    display: none;
}

.team-code-input {
    display: none;
}
/* ========================================
   ACCESS GATE SYSTEM STYLES
   ======================================== */

/* Access Gate Modal */
.access-gate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.access-gate-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #ffd700;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 50px rgba(255, 215, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.activation-success {
    border-color: #4caf50;
    box-shadow: 0 10px 50px rgba(76, 175, 80, 0.3);
}

.lock-icon, .success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.success-icon {
    animation: bounceIn 0.6s ease;
}

.access-gate-content h2 {
    color: #ffd700;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.activation-success h2 {
    color: #4caf50;
}

.access-gate-content p {
    color: #ddd;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.access-steps {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
}

.access-steps h3 {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.access-steps ol {
    padding-left: 1.5rem;
}

.access-steps li {
    color: #ddd;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.access-steps strong {
    color: #4caf50;
}

.access-gate-btn {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.access-gate-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

.cancel-btn {
    background: linear-gradient(135deg, #666, #888);
    color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.cancel-btn:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.access-note {
    color: #aaa;
    font-size: 0.85rem;
    margin-top: 1.5rem;
}

/* Timer Display */
.timer-display {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #4caf50;
    border-radius: 15px;
    padding: 1.5rem;
    font-size: 3rem;
    font-weight: 900;
    color: #4caf50;
    margin: 1.5rem 0;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.8);
    animation: glow 2s ease-in-out infinite;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(76, 175, 80, 0.8);
    }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .access-gate-content {
        padding: 2rem 1.5rem;
    }

    .access-gate-content h2 {
        font-size: 1.5rem;
    }

    .lock-icon, .success-icon {
        font-size: 3rem;
    }

    .timer-display {
        font-size: 2.5rem;
        padding: 1rem;
    }

    .access-gate-btn {
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
    }

    .access-steps {
        padding: 1rem;
    }

    .access-steps li {
        font-size: 0.9rem;
    }
}
