@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Nosifer&family=Butcherman&family=Eater&display=swap');

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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 50%, #0a0a1a 100%);
    color: #e0e0e0;
    min-height: 100vh;
}

/* ===== HEADER ===== */
.vault-header {
    background: linear-gradient(135deg, #1a0a1a 0%, #2d1b3d 100%);
    border-bottom: 3px solid #660033;
    box-shadow: 0 2px 10px rgba(102, 0, 51, 0.5);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.vault-header-logo {
    font-family: 'Creepster', cursive;
    font-size: 1.8rem;
    color: #cc6699;
    text-shadow: 2px 2px 8px rgba(204, 102, 153, 0.6);
    text-decoration: none;
}

.vault-header-logo span {
    color: #9966cc;
}

.vault-header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-back-map {
    background: transparent;
    border: 2px solid #660033;
    color: #cc6699;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Butcherman', cursive;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-back-map:hover {
    background: rgba(102, 0, 51, 0.3);
    border-color: #cc6699;
    box-shadow: 0 0 12px rgba(204, 102, 153, 0.3);
}

/* ===== HERO ===== */
.vault-hero {
    text-align: center;
    padding: 64px 24px 48px;
    position: relative;
    overflow: hidden;
}

.vault-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(102, 0, 102, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.vault-hero-skull {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    filter: drop-shadow(0 0 12px rgba(153, 102, 204, 0.6));
}

.vault-hero h1 {
    font-family: 'Nosifer', cursive;
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8), 0 0 30px rgba(204, 102, 153, 0.4);
    margin-bottom: 18px;
    line-height: 1.2;
}

.vault-hero h1 .accent {
    color: #cc6699;
}

.vault-hero p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: #b0b0b0;
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.65;
}

.vault-hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}

.vault-hero-divider span {
    height: 1px;
    width: 80px;
    background: linear-gradient(to right, transparent, #660033);
}

.vault-hero-divider span:last-child {
    background: linear-gradient(to left, transparent, #660033);
}

.vault-hero-divider em {
    font-style: normal;
    color: #9966cc;
    font-size: 1.2rem;
}

/* ===== PRODUCT GRID ===== */
.vault-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.vault-section-title {
    font-family: 'Butcherman', cursive;
    font-size: 1.4rem;
    color: #9966cc;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vault-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #330033, transparent);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: linear-gradient(145deg, #1a0a1a 0%, #2d1b3d 100%);
    border: 2px solid #330033;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #660066;
    box-shadow: 0 12px 40px rgba(102, 0, 102, 0.4);
}

.product-card.coming-soon {
    opacity: 0.65;
    filter: grayscale(0.3);
}

.product-card.coming-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: #330033;
}

.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 2;
}

.badge-available {
    background: linear-gradient(135deg, #660000, #990000);
    color: #fff;
    border: 1px solid #cc0000;
    box-shadow: 0 0 8px rgba(153, 0, 0, 0.5);
}

.badge-coming-soon {
    background: rgba(51, 0, 51, 0.85);
    color: #9966cc;
    border: 1px solid #660066;
}

.product-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #1a0028 0%, #2d0040 100%);
}

.product-cover-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a0028 0%, #3d1050 50%, #1a0028 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

.product-cover-placeholder .cover-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 0 10px rgba(153, 102, 204, 0.5));
}

.product-cover-placeholder .cover-label {
    font-family: 'Creepster', cursive;
    font-size: 1.1rem;
    color: #9966cc;
    text-align: center;
    padding: 0 16px;
}

.product-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-family: 'Creepster', cursive;
    font-size: 1.3rem;
    color: #e0e0e0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-description {
    font-size: 0.88rem;
    color: #a0a0a0;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 18px;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #cc6699;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}

.product-format {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(51, 0, 51, 0.4);
    border: 1px solid #330033;
    padding: 3px 8px;
    border-radius: 4px;
}

.btn-buy {
    background: linear-gradient(135deg, #660000 0%, #990000 100%);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: 'Butcherman', cursive;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-buy:hover {
    background: linear-gradient(135deg, #990000 0%, #cc0000 100%);
    box-shadow: 0 4px 16px rgba(153, 0, 0, 0.5);
}

.btn-buy:disabled {
    background: rgba(51, 0, 51, 0.4);
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-buy-loading {
    display: none;
}

.btn-buy.loading .btn-buy-text { display: none; }
.btn-buy.loading .btn-buy-loading { display: block; }

.btn-coming-soon {
    background: rgba(51, 0, 51, 0.4);
    color: #666;
    border: 1px solid #330033;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Butcherman', cursive;
    letter-spacing: 0.04em;
    width: 100%;
    cursor: not-allowed;
}

/* ===== SUCCESS PAGE ===== */
#success-view {
    display: none;
    max-width: 600px;
    margin: 60px auto;
    padding: 0 24px;
    text-align: center;
}

#success-view.visible { display: block; }

.success-card {
    background: linear-gradient(145deg, #1a0a1a 0%, #2d1b3d 100%);
    border: 2px solid #006600;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 0 40px rgba(0, 102, 0, 0.2);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 0 12px rgba(0, 200, 0, 0.5));
}

.success-card h2 {
    font-family: 'Nosifer', cursive;
    font-size: 1.8rem;
    color: #66cc66;
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(102, 204, 102, 0.3);
}

.success-card p {
    color: #b0b0b0;
    line-height: 1.7;
    margin-bottom: 16px;
}

.download-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #330033;
}

.btn-download {
    background: linear-gradient(135deg, #006600 0%, #009900 100%);
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Butcherman', cursive;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-download:hover {
    background: linear-gradient(135deg, #009900 0%, #00cc00 100%);
    box-shadow: 0 4px 16px rgba(0, 153, 0, 0.4);
}

.download-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 12px;
}

/* ===== CANCEL PAGE ===== */
#cancel-view {
    display: none;
    max-width: 520px;
    margin: 60px auto;
    padding: 0 24px;
    text-align: center;
}

#cancel-view.visible { display: block; }

.cancel-card {
    background: linear-gradient(145deg, #1a0a1a 0%, #2d1b3d 100%);
    border: 2px solid #660000;
    border-radius: 16px;
    padding: 48px 40px;
}

.cancel-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.cancel-card h2 {
    font-family: 'Nosifer', cursive;
    font-size: 1.6rem;
    color: #cc4444;
    margin-bottom: 12px;
}

.cancel-card p {
    color: #b0b0b0;
    line-height: 1.7;
    margin-bottom: 24px;
}

.btn-back-vault {
    background: transparent;
    border: 2px solid #660033;
    color: #cc6699;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Butcherman', cursive;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-back-vault:hover {
    background: rgba(102, 0, 51, 0.3);
    box-shadow: 0 0 12px rgba(204, 102, 153, 0.3);
}

/* ===== FOOTER ===== */
.vault-footer {
    border-top: 1px solid #330033;
    padding: 32px 24px;
    text-align: center;
    color: #555;
    font-size: 0.82rem;
}

.vault-footer a {
    color: #9966cc;
    text-decoration: none;
}

.vault-footer a:hover {
    color: #cc6699;
}

/* ===== TOAST ===== */
.vault-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #2d1b3d;
    border: 2px solid #990000;
    color: #e0e0e0;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 0.9rem;
    z-index: 9999;
    transition: transform 0.3s ease;
    max-width: 90vw;
    text-align: center;
}

.vault-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .vault-hero {
        padding: 40px 16px 32px;
    }

    .vault-section {
        padding: 0 16px 60px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .vault-header {
        padding: 10px 16px;
    }

    .vault-header-logo {
        font-size: 1.4rem;
    }
}
