* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(145deg, #10161a 0%, #1a252c 100%);
    font-family: 'Inter', system-ui, 'Segoe UI', sans-serif;
    min-height: 100vh;
    padding: 2rem 1.5rem;
    color: #eef4ff;
    transition: background 0.3s ease, color 0.3s ease;
}

.arsenal-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== light theme ===== */
body.light-theme {
    background: linear-gradient(145deg, #f0f2f5 0%, #e4e8ed 100%);
    color: #1a1a2e;
}

/* ===== theme switching ===== */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e0e0e0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.08) rotate(10deg);
}

.theme-toggle-btn:active {
    transform: scale(0.92);
}

body.light-theme .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #1a1a2e;
}

body.light-theme .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.12);
    transform: scale(1.08) rotate(-10deg);
}

button {
    border: none;
    font-weight: 600;
    padding: 0.85rem 1.8rem;
    border-radius: 60px;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.1s ease, background 0.2s;
}

button:active {
    transform: scale(0.97);
}

.loading-placeholder, 
.no-results {
    text-align: center;
    padding: 3rem;
    background: #1e2f38a0;
    border-radius: 48px;
    grid-column: 1 / -1;
    font-size: 1.2rem;
    color: #bbd1e0;
    transition: all 0.3s ease;
}

.no-results i {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

/* ===== mobile footer ===== */
.main-footer {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px dashed #3e5568;
    background: rgba(25, 38, 46, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 28px;
    border: 1px solid rgba(228, 179, 99, 0.25);
    transition: all 0.3s ease;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-brand {
    font-weight: 600;
    color: #eef4ff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand i {
    color: #e4b363;
}

.footer-divider {
    color: #7e95ab;
    opacity: 0.3;
}

.footer-year {
    color: #7e95ab;
    font-size: 0.9rem;
}

.footer-right {
    display: flex;
    align-items: center;
}

/* ===== footer - light theme ===== */
.light-theme .main-footer {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-top-color: #d0d5dd;
}

.light-theme .footer-brand {
    color: #1a1a2e;
}

.light-theme .footer-brand i {
    color: #c0392b;
}

.light-theme .footer-divider,
.light-theme .footer-year {
    color: #8a94a0;
}

/* ===== mobile adjust ===== */
@media (max-width: 680px) {
    body {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding: 0 16px;
    }

    .footer-left {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-left {
        flex-direction: column;
        gap: 4px;
    }

    .footer-divider {
        display: none;
    }
}