/* src/css/wishas.css (FINAL MIXED STYLE: NUDE THEME) */

.wishas {
    width: 100%;
    position: relative;
    z-index: 2;
    
    /* Reset margin */
    margin-top: 0;
    margin-bottom: 3rem;
    
    padding: 4rem 1.5rem;
    
    background-image: url('../assets/images/bg-story.webp');

    /* Agar gambar memenuhi seluruh area panel kanan dari atas ke bawah */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    
    /* --- THEME CHANGE --- */
    /* Warna Dasar: Putih Gading */
    background-color: var(--card-bg-color) !important;
    color: var(--main-text-color);
    
    border-radius: 20px;
    
    /* Shadow Coklat Lembut */
    box-shadow: 0 8px 30px var(--shadow-color);
    
    overflow: hidden;
}

.wishas h2 {
    font-family: var(--sacramento);
    font-size: 2.8rem;
    font-weight: 600;
    
    /* --- THEME CHANGE --- */
    color: var(--heading-text-color); /* Coklat Bata Pudar */
}

.wishas>p {
    margin-top: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    
    /* Warna teks deskripsi */
    color: var(--main-text-color);
    opacity: 0.9;
}

.gift-cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    perspective: 600px;
}

/* ============================================== */
/* 1. STYLE KARTU BANK 3D (TETAP SAMA)            */
/* ============================================== */
.card {
    --hue: 223;
    font-size: 18px;
    position: relative;
    overflow: hidden;
    animation: rotate 3s ease-in-out infinite;
    background-color: hsl(var(--hue), 90%, 55%);
    background-image: radial-gradient(circle at 100% 0%, hsla(0, 0%, 100%, 0.08) 29.5%, hsla(0, 0%, 100%, 0) 30%),
        radial-gradient(circle at 100% 0%, hsla(0, 0%, 100%, 0.08) 39.5%, hsla(0, 0%, 100%, 0) 40%),
        radial-gradient(circle at 100% 0%, hsla(0, 0%, 100%, 0.08) 49.5%, hsla(0, 0%, 100%, 0) 50%);
    border-radius: 0.5em;
    color: hsl(0, 0%, 100%);
    width: 17.3em;
    height: 9.8em;
    transform: translate3d(0, 0, 0);
    /* Shadow kartu disesuaikan sedikit */
    box-shadow: 0 10px 30px var(--shadow-color);
}

.card[data-bank-name="a"] { --hue: 223; } /* Biru (Mandiri) */
.card[data-bank-name="b"] { --hue: 30; }  /* Orange (Seabank) */

.card__info,
.card__texture,
.card__chip-texture {
    position: absolute;
}

.card__info {
    font: 0.75em/1 "DM Sans", sans-serif;
    padding: 1rem;
    inset: 0;
    pointer-events: none;
}

.card__texture {
    animation: texture 3s ease-in-out infinite;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image: linear-gradient(-80deg, hsla(0, 0%, 100%, 0.3) 25%, hsla(0, 0%, 100%, 0) 45%);
}

.card__logo-img {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 3.5em;
    height: auto;
    opacity: 0.9;
}

.card__chip {
    position: absolute;
    top: 1rem;
    left: 1rem;
    overflow: hidden;
    width: 2rem;
    height: 2rem;
    border-radius: 0.2rem;
    background-image: linear-gradient(hsl(0, 0%, 70%), hsl(0, 0%, 80%));
    box-shadow: 0 0 0 0.05rem hsla(0, 0%, 0%, 0.5) inset;
    pointer-events: auto;
}

.card__chip-lines { width: 100%; height: auto; }

.card__number {
    position: absolute;
    top: 4.5rem;
    left: 1rem;
    right: 1rem;
    width: auto;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    gap: 0.5em;
}

.card__digit-group,
.card__name {
    background: linear-gradient(hsl(0, 0%, 100%), hsl(0, 0%, 85%) 15% 55%, hsl(0, 0%, 70%) 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: "Courier Prime", monospace;
    filter: drop-shadow(0 0.05rem hsla(0, 0%, 0%, 0.3));
}

.card__name {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    width: auto;
    max-width: calc(100% - 6em);
    font-size: 0.9rem;
    text-transform: uppercase;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.copy-button {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    background-color: hsla(0, 0%, 100%, 0.2);
    border: 1px solid hsla(0, 0%, 100%, 0.3);
    border-radius: 0.5rem;
    color: #fff;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: background-color 0.3s;
    z-index: 10;
    pointer-events: auto;
}

.copy-button:hover { background-color: hsla(0, 0%, 100%, 0.3); }
.copy-button.copied { background-color: #28a745; border-color: #28a745; }

@keyframes rotate {
    from, to { transform: rotateY(-10deg); }
    50% { transform: rotateY(10deg); }
}

@keyframes texture {
    from, to { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-50%, 0, 0); }
}

/* ============================================== */
/* 2. STYLE BARU: QRIS VERTICAL BOX (NUDE STYLE)  */
/* ============================================== */
.qris-vertical-box {
    /* --- THEME CHANGE --- */
    /* Background Inner Box: Krem (Main BG) untuk kontras di atas Putih Gading (Card BG) */
    background: #ffcfd5a1; /* Menggunakan basis var(--main-bg-color) */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    width: 100%;
    max-width: 280px;
    border-radius: 15px;
    padding: 2rem 1.5rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;

    /* Shadow lembut */
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
    position: relative;

    transform: none !important;
    animation: none !important;
}

/* Logo QRIS di Atas */
.qris-logo-top img {
    height: 40px;
    width: auto;
    display: block;
    margin: 1rem;
}

/* Tombol Scan Utama */
.qris-main-btn {
    /* --- THEME CHANGE --- */
    background-color: var(--button-primary-bg); /* Coklat Elegan */
    color: var(--button-primary-text); /* Putih */
    
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;

    width: 100%;
    padding: 0.8rem 0;
    border-radius: 50px;
    border: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px var(--shadow-color);
}

.qris-main-btn:hover {
    transform: translateY(-3px);
    /* Warna lebih terang saat hover */
    background-color: var(--heading-text-color); 
    box-shadow: 0 6px 15px var(--shadow-color);
}

.qris-main-btn i { font-size: 1.2rem; }

/* Bagian Wallet Support */
.qris-wallets-row {
    text-align: center;
    width: 100%;
    
    /* Garis pemisah putus-putus coklat muda */
    border-top: 1px dashed var(--border-color);
    
    padding-top: 1rem;
}

.qris-wallets-row span {
    display: block;
    font-size: 0.75rem;
    
    /* Warna teks label support */
    color: var(--accent-color);
    
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.wallet-icons-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Pengaturan Tinggi Logo (Tetap sama) */
.wallet-icons-grid img:nth-child(1) { height: 40px; }
.wallet-icons-grid img:nth-child(2) { height: 40px; }
.wallet-icons-grid img:nth-child(3) { height: 40px; }
.wallet-icons-grid img:nth-child(4) { height: 40px; }
.wallet-icons-grid img:nth-child(5) { height: 40px; }
.wallet-icons-grid img:nth-child(6) { height: 40px; }
.wallet-icons-grid img:nth-child(7) { height: 40px; }
.wallet-icons-grid img:nth-child(8) { height: 40px; }

.wallet-icons-grid img {
    height: 18px;
    width: auto;
    transition: filter 0.3s, opacity 0.3s;
    /* Opacity default agak rendah agar menyatu, hover baru terang */
    opacity: 0.8; 
}

.wallet-icons-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}


/* ============================================== */
/* 3. MODAL POPUP STYLE (NUDE THEME)              */
/* ============================================== */
.qris-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    
    /* Overlay Coklat Gelap Transparan */
    background: rgba(62, 39, 35, 0.9);
    
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.qris-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.qris-modal-content {
    /* Background Modal: Putih Gading */
    background: var(--card-bg-color);
    
    width: 90%;
    max-width: 320px;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s;
    border: 1px solid var(--border-color);
}

.qris-modal-overlay.active .qris-modal-content {
    transform: scale(1);
}

.qris-header h3 {
    font-family: var(--sacramento);
    font-size: 2rem;
    
    /* Warna Judul Modal */
    color: var(--heading-text-color);
    
    margin: 0;
}

.qris-header p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--main-text-color);
    margin-bottom: 1rem;
}

.qris-image-wrapper {
    background: #fff; /* Area QRIS tetap putih bersih agar mudah discan */
    padding: 10px;
    border: 2px dashed var(--accent-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    display: inline-block;
}

.qris-image-wrapper img {
    width: 100%;
    max-width: 200px;
    display: block;
}

.qris-instruction {
    font-size: 0.85rem;
    color: var(--main-text-color);
    margin-bottom: 1.5rem;
}

.qris-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qris-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 10px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.qris-btn.download {
    background: var(--button-primary-bg);
    color: var(--button-primary-text);
}
.qris-btn.download:hover {
    background: var(--heading-text-color);
}

.qris-btn.close {
    background: var(--main-bg-color); /* Krem */
    color: var(--main-text-color);
    border: 1px solid var(--border-color);
}
.qris-btn.close:hover {
    background: var(--border-color);
}

.ornament-wishas {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    height: 0;
    
    /* Opacity diturunkan sedikit agar tidak terlalu 'keras' di background terang */
    opacity: 0.8; 
}

/* Posisi Ornamen */
.pos-top-right { top: 0; right: 0; width: 300px; }
.pos-bottom-left { bottom: 0; left: 0; width: 200px; }
.pos-bottom-right { bottom: 0; right: 0; width: 300px; }
.pos-mid-left { top: 20%; left: 0; width: 250px; }