/* ═══════════════════════════════════════════
   COUPON — "Coupon d'Amore"
   js/coupon.js builds one flip-card button per entry in config.js
   (COUPONS). Sealed front face flips to reveal the reward on tap —
   a real 3D rotateY flip, not a fade swap.
   ═══════════════════════════════════════════ */

.coupon-panel {
    text-align: center;
}

.coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.coupon-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    perspective: 1200px;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
}
.coupon-card:focus-visible {
    outline: 2px solid var(--neon);
    outline-offset: 4px;
    border-radius: 1.25rem;
}

.coupon-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(.34, 1.56, .64, 1);
}
.coupon-card.is-open .coupon-card-inner {
    transform: rotateY(180deg);
}

.coupon-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.4rem 1.2rem;
    gap: 0.5rem;
}

.coupon-face--front {
    background: linear-gradient(160deg, rgba(22, 4, 15, 0.96), rgba(5, 0, 5, 0.98));
    border: 1px dashed rgba(255, 42, 133, 0.4);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.coupon-face--front::before,
.coupon-face--front::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0a0007;
    transform: translateY(-50%);
}
.coupon-face--front::before { left: -9px; }
.coupon-face--front::after  { right: -9px; }

.coupon-face--back {
    background: linear-gradient(160deg, rgba(30, 6, 18, 0.98), rgba(8, 1, 6, 0.99));
    border: 1px solid rgba(255, 42, 133, 0.5);
    box-shadow: 0 0 40px rgba(255, 42, 133, 0.15);
    transform: rotateY(180deg);
}

.coupon-card:hover .coupon-face--front {
    border-color: rgba(255, 42, 133, 0.75);
    box-shadow: 0 12px 40px rgba(255, 42, 133, 0.15);
}
.coupon-card.is-open .coupon-face--back {
    animation: examCelebrate 1s ease-out;
}

.coupon-seal {
    font-size: 1.9rem;
    color: var(--neon);
    text-shadow: 0 0 16px var(--neon-glow);
}
.coupon-front-label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #999;
}
.coupon-front-hint {
    font-size: 0.7rem;
    color: rgba(255, 42, 133, 0.75);
    margin-top: 0.3rem;
}

.coupon-icon {
    font-size: 2.1rem;
}
.coupon-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 1.12rem;
    color: #fff;
}
.coupon-desc {
    font-size: 0.76rem;
    color: #aaa;
    line-height: 1.5;
}
