/* ===============================
   PRODUCT PAGE HEADER CARD
================================ */

@keyframes breathing {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

.breathing-balance {
    animation: breathing 2.5s ease-in-out infinite;
    display: inline-block;
}

.flip-card {
    width: 100%;
    height: 230px;
    perspective: 1000px;
    cursor: pointer;
}


.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 16px;
    text-align: center;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* FRONT */
.flip-card-front {
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
}

/* BACK */
.flip-card-back {
    transform: rotateY(180deg);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
}

/* TITLE */
.oval-title {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* DIVIDER */
.gradient-line {
    height: 3px;
    border: none;
    margin: 12px 0;
    border-radius: 5px;
}

/* TEXT */
.balance-text {
    font-size: 14px;
    font-weight: 700;
    color: #228B22;
}

.extra-note {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(90deg, #f5c400, #000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =======================
   NETWORK THEMES
======================= */

/* MTN */
.mtn .oval-title,
.mtn .gradient-line,
.mtn-back {
    background: linear-gradient(90deg, #FFD700, #FFCC00);
    color: #000;
}

/* TELECEL */
.telecel .oval-title,
.telecel .gradient-line,
.telecel-back {
    background: linear-gradient(90deg, #E60000, #FF4C4C);
    color: #fff;
}

/* AIRTELTIGO */
.airteltigo .oval-title,
.airteltigo .gradient-line,
.airteltigo-back {
    background: linear-gradient(90deg, #0056D2, #2F80FF);
    color: #fff;
}

/* =======================
   MOBILE TWEAKS
======================= */
@media (max-width: 576px) {
    .checkout-section .flip-card {
        width: 100%;
        height: 210px;
    }
}


/* ===============================
   META ROW (HOME | DELIVERY | RATING)
================================ */

.meta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    flex-wrap: nowrap;       /* 🔑 prevents wrapping */
    white-space: nowrap;    /* 🔑 keeps stars inline */
}

.meta-row .divider {
    opacity: 0.6;
}

.meta-row .rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

.meta-row .stars {
    letter-spacing: 1px;
}

/* ===============================
   MOBILE TIGHTENING
================================ */
@media (max-width: 576px) {
    .checkout-section .meta-row {
        font-size: 0.75rem;  /* slightly smaller for mobile */
        gap: 4px;
    }
}

/* ===============================
   PRODUCT PAGE HEADER – HOME LINK
================================ */

.checkout-section .flip-card .product-page-header-home-link {
  color: inherit;          /* match card text color */
  text-decoration: none;
  font-weight: 500;
}

.checkout-section .flip-card .product-page-header-home-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}
