/* DInvite — kartu bergaya ATM untuk Amplop Digital (undangan & pratinjau admin).
   Warna & logo per bank diatur admin di Panel Admin → Bank & E-Wallet. */
.gifts:has(.gift-atm) { justify-items: center; gap: 1.6rem; }
.gift-atm { display: grid; justify-items: center; gap: .85rem; width: min(340px, 100%); perspective: 900px; }
.atm { --ink: #fff; --ink-2: rgba(255,255,255,.72); position: relative; width: 100%; aspect-ratio: 1.586; padding: 6.5% 7%; border-radius: 16px; overflow: hidden; isolation: isolate;
    display: grid; grid-template-rows: auto 1fr auto auto; color: var(--ink); text-align: left; font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.22), transparent 55%),
        radial-gradient(90% 80% at 0% 100%, rgba(0,0,0,.28), transparent 60%),
        repeating-radial-gradient(circle at 115% 120%, rgba(255,255,255,0) 0 9px, rgba(255,255,255,.05) 9px 10px),
        linear-gradient(135deg, var(--c1), var(--c2));
    box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 -1px 0 rgba(0,0,0,.25) inset, 0 22px 40px -18px rgba(0,0,0,.55), 0 8px 16px -10px rgba(0,0,0,.35);
    transform: rotateX(0) rotateY(0); transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease; }
.atm--dark { --ink: #1d1a14; --ink-2: rgba(29,26,20,.7); }
.atm::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255,255,255,.18); pointer-events: none; }
.atm::after { content: ''; position: absolute; right: -18%; top: -40%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.045); z-index: -1; }
.atm__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; min-height: 2.1rem; }
.atm__logo { display: flex; align-items: center; height: 2.1rem; max-width: 62%; }
.atm__logo img { display: block; max-height: 100%; max-width: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
.atm__logo--plate { padding: .3rem .55rem; border-radius: 8px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); height: 2.3rem; }
.atm__logo b { font-weight: 800; font-size: 1.15rem; letter-spacing: .01em; line-height: 1.1; font-style: italic; text-shadow: 0 1px 2px rgba(0,0,0,.2); overflow-wrap: anywhere; }
.atm__type { font-size: .62rem; font-weight: 700; letter-spacing: .2em; color: var(--ink-2); padding-top: .25rem; white-space: nowrap; }
.atm__mid { display: flex; align-items: center; gap: .55rem; }
.atm__chip { width: 15%; min-width: 38px; height: auto; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.atm__nfc { width: 1.35rem; height: 1.35rem; color: var(--ink-2); }
.atm--ewallet .atm__nfc { width: 1.6rem; height: 1.6rem; }
.atm__num { display: block; margin: .2rem 0 .55rem; font: 600 clamp(1.05rem, 5.6vw, 1.42rem)/1.1 'OCR A Std', 'Courier New', ui-monospace, monospace; letter-spacing: .1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: var(--ink); text-shadow: 0 1px 0 rgba(0,0,0,.45), 0 -1px 0 rgba(255,255,255,.35); }
.atm--dark .atm__num { text-shadow: 0 1px 0 rgba(255,255,255,.55), 0 -1px 0 rgba(0,0,0,.25); }
.atm__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: .8rem; }
.atm__holder { display: grid; gap: .1rem; min-width: 0; }
.atm__holder small { font-size: .52rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.atm__holder span { font-size: .84rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.atm__holo { flex: none; width: 2.4rem; height: 1.6rem; border-radius: 5px; opacity: .9;
    background: linear-gradient(115deg, #d9e6ff, #f6d4ff 25%, #cffff1 50%, #fff4c7 75%, #d9e6ff); background-size: 220% 100%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); animation: atmHolo 6s ease-in-out infinite alternate; }
.atm__shine { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.28) 48%, transparent 60%) -150% 0 / 250% 100% no-repeat; }
.atm:hover { transform: rotateX(4deg) rotateY(-6deg) translateY(-3px); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 -1px 0 rgba(0,0,0,.25) inset, 0 30px 46px -18px rgba(0,0,0,.6), 0 10px 18px -10px rgba(0,0,0,.35); }
.atm:hover .atm__shine { animation: atmShine 1.2s ease both; }
.atm--plain { --c1: #39414f; --c2: #151a22; }
@keyframes atmShine { from { background-position: 150% 0; } to { background-position: -150% 0; } }
@keyframes atmHolo { to { background-position: 100% 0; } }
@media (min-width: 900px) { .gifts:has(.gift-atm) { grid-template-columns: repeat(auto-fit, minmax(280px, 340px)); justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .atm, .atm:hover { transform: none; } .atm__shine, .atm__holo { animation: none !important; } }
