:root {
    --primary-color: #f8f9fa; /* Off-white / Silver */
    --secondary-color: #0b132b; /* Deep Navy */
    --accent-color: #3a86ff; /* Salvadoran Blue */
    --text-color: #ffffff;
    --bg-dark: #02040a;
    --card-bg: rgba(10, 18, 42, 0.9);
    --font-main: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('cartel_background.png') no-repeat center center/cover;
    filter: brightness(0.3) blur(3px);
    z-index: -1;
}

.background-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 30%, rgba(0, 0, 0, 0.8) 100%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 1s ease-out;
}

.logo {
    width: 180px;
    height: 180px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 25px var(--accent-color));
}

h1 {
    font-family: var(--font-display);
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    background: linear-gradient(to bottom, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Grid for selection */
.group-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.group-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    position: relative;
}

.group-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.2);
}

.group-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.group-card p {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.btn-select {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.group-card:hover .btn-select {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* Catalog View */
.weapons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.weapon-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    transition: 0.3s;
}

.weapon-card:hover {
    border-left-color: var(--accent-color);
    background: rgba(40, 40, 40, 0.9);
}

.price {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.4rem;
}

.merit-tag {
    color: #ffaa00;
    font-style: italic;
    font-size: 0.85rem;
    font-weight: bold;
}

.add-btn {
    width: 100%;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.add-btn:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 15px var(--accent-color);
}

/* Admin Specific */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.admin-section {
    background: rgba(0,0,0,0.3);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.admin-card {
    background: #151515;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid var(--accent-color);
}

.btn-small {
    background: #333;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 5px;
}

.btn-small:hover {
    background: var(--accent-color);
}

/* Cart & Modals */
#cart-summary {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent-color);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    display: none;
    z-index: 100;
    animation: slideUp 0.5s ease-out;
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: #111;
    width: 90%;
    max-width: 500px;
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--accent-color);
}

.order-item {
    background: #151515;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.group-name-tag {
    color: var(--accent-color);
    font-weight: 900;
    text-transform: uppercase;
}

/* Animations */
@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.6s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.site-disclaimer {
    text-align: center;
    font-size: 0.7rem;
    color: var(--primary-color);
    opacity: 0.3;
    padding: 2rem 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 300;
}

.category-view-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 4px;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    padding-left: 10px;
    border-left: 3px solid var(--accent-color);
    text-transform: uppercase;
    opacity: 0.8;
}

.category-group-section {
    margin-bottom: 3rem;
}

.group-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: var(--primary-color);
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.btn-tiny {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 0.5rem;
    padding: 2px 4px;
    cursor: pointer;
    border-radius: 2px;
}
.btn-tiny:disabled { opacity: 0.2; cursor: not-allowed; }

.login-card {
    max-width: 400px;
    margin: 100px auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-card h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.login-card p {
    opacity: 0.5;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#login-password {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    color: white;
    text-align: center;
    font-size: 1.2rem;
    outline: none;
    transition: all 0.3s ease;
}

#login-password:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}

.modal-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    outline: none;
    width: 100%;
}

.modal-input:focus {
    border-color: var(--accent-color);
}

select.modal-input {
    cursor: pointer;
    background: #1a1a2e; /* Dark solid background for dropdown */
}

#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background: rgba(26, 26, 46, 0.95);
    border-left: 4px solid var(--accent-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.notification.error { border-left-color: #ff3e3e; }
.notification.success { border-left-color: #4caf50; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}

@media (max-width: 992px) {
    .admin-grid { grid-template-columns: 1fr; }
    h1 { font-size: 2.5rem; }
}
