:root {
    --bg-dark: #120909;
    --gold: #c5a059;
    --gold-muted: #6e5a32;
    --card-border: rgba(197, 160, 89, 0.2);
    --burgundy-deep: #1A0A0A;
    --burgundy-muted: #221010;
    --gold-primary: #D4AF37;
    --gold-glow: rgba(212, 175, 55, 0.33);
    --card-overlay: rgba(26, 10, 10, 0.8);
}

/* ===== BODY (FIXED) ===== */
body {
    background-color: var(--bg-dark);
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 20px;
}

/* ===== WRAPPER (ADDED - IMPORTANT) ===== */
.sanctum-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}


/* ===== HEADER ===== */
.sanctum-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    text-align: center;
    margin: 20px 0 0;
}

.tagline {
    text-align: center;
    letter-spacing: 3px;
    font-size: 0.7rem;
    color: var(--gold-muted);
}

.gold-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 15px auto 25px;
}

/* ===== GRID (FIXED) ===== */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

/* ===== CARD ===== */
.card {
    background: var(--burgundy-muted);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    min-height: 260px;
    padding: 25px 15px;

    display: flex;
    flex-direction: column;
    align-items: center;

    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--gold-primary);
    background-color: var(--card-overlay);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6),
                0 0 20px var(--gold-glow);
}

/* Shine */
.card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(212,175,55,0.05), transparent);
    transform: rotate(45deg);
    transition: 0.8s;
}

.card:hover::before {
    left: 100%;
    top: 100%;
}

/* ===== CRESTS ===== */
.crest-container {
    display: flex;
    gap: 15px;
    margin: 20px 0 10px;
}

.crest-link {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;

    border: 1px solid rgba(212,175,55,0.25);
    background: radial-gradient(circle, #261616, #0d0707);

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.3s ease;
}

.crest-link:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px var(--gold-glow);
}

.crest {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Upcoming Vault */
.upcoming-vault {
    background: radial-gradient(circle at center, #1a0a0a, #0d0505) !important;
    border: 1px dashed rgba(212, 175, 55, 0.3) !important;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: not-allowed;
    overflow: hidden;
}

.vault-icon {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inner-circle {
    font-size: 1.5rem;
    color: var(--gold-muted);
    z-index: 2;
    opacity: 0.6;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--gold-muted);
    border-radius: 50%;
    animation: gold-pulse 2s infinite;
}

@keyframes gold-pulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.loading-line {
    width: 80px;
    height: 1px;
    background: rgba(212, 175, 55, 0.1);
    margin: 10px auto 0;
    position: relative;
    overflow: hidden;
}

.loading-line::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

.vault-status {
    position: absolute;
    top: 20px;
    font-size: 0.55rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-muted);
    opacity: 0.7;
}

.large-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    letter-spacing: 3px;
}

.vault-footer {
    position: absolute;
    bottom: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.55rem;
    color: rgba(212, 175, 55, 0.3);
}

.upcoming-vault:hover {
    border-style: solid !important;
    border-color: rgba(212, 24, 61, 0.4) !important;
    box-shadow: inset 0 0 20px rgba(212, 24, 61, 0.1);
}

.upcoming-vault:hover .inner-circle {
    color: #d4183d;
    opacity: 1;
}

.card-footer {
    margin-top: auto;
    width: 100%;
    text-align: right;
}

.explore {
    color: var(--gold-muted);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.explore:hover { color: var(--gold); }

/* Elite Dossier */
.elite-dossier {
    background: linear-gradient(135deg, rgba(26, 10, 10, 0.95), rgba(13, 5, 5, 1)) !important;
    border: 1px solid rgba(212, 175, 55, 0.15) !important;
    backdrop-filter: blur(10px);
    padding: 30px 20px !important;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.elite-dossier:hover {
    border-color: var(--gold-primary) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 15px var(--gold-glow) !important;
    transform: translateY(-8px) scale(1.02);
}

.card-tag {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-muted);
    opacity: 0.6;
}

.title-wrap {
    position: relative;
    margin: 15px 0;
    overflow: hidden;
}

.title-wrap h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--gold-primary);
    margin: 0;
    letter-spacing: 1px;
}

.scan-line {
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    transition: 0.8s ease;
}

.elite-dossier:hover .scan-line {
    left: 100%;
    transition: 1.2s ease-in-out;
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-decoration: none;
    color: var(--gold-muted);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
}

.explore-btn:hover {
    color: var(--gold-primary);
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.05);
    letter-spacing: 2px;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.explore-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.bottom-right {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    border-right: 1px solid var(--gold-muted);
    border-bottom: 1px solid var(--gold-muted);
    opacity: 0.3;
}



/* Footer - Reduced spacing */
.sanctum-footer {
    text-align: center;
    margin-top: 25px;
    padding-bottom: 15px;
}

.collection-tag {
    color: var(--gold-muted);
    letter-spacing: 2px;
    font-size: 0.7rem;
    margin-bottom: 8px;
}

.copyright {
    color: #443333;
    font-size: 0.6rem;
}

/* ==================== */
/* RESPONSIVE MEDIA QUERIES */
/* ==================== */
@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    .archive-grid {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding: 10px;

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .archive-grid::-webkit-scrollbar {
        display: none;
    }

    .card {
        flex: 0 0 65%;
        min-width: 65%;

        scroll-snap-align: center;
    }
}

/* SMALL PHONES */
@media (max-width: 480px) {

    .card {
        flex: 0 0 75%;
        min-width: 75%;
    }

    .sanctum-header h1 {
        font-size: 1.6rem;
    }

    .tagline {
        font-size: 0.55rem;
    }
}