/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
    align-items: start;
}

/* ===================== CARD BASE ===================== */
.card {
    border-radius: 22px;
    padding: 22px 16px 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 1.5px solid rgba(255,255,255,0.85);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: fadeUp 0.5s ease both;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0,0,0,0.13); }

.card:nth-child(1){animation-delay:.05s} .card:nth-child(3){animation-delay:.15s}
.card:nth-child(4){animation-delay:.2s}  .card:nth-child(5){animation-delay:.25s}
.card:nth-child(6){animation-delay:.3s}  .card:nth-child(7){animation-delay:.35s}
.card:nth-child(8){animation-delay:.4s}  .card:nth-child(9){animation-delay:.45s}
@keyframes fadeUp { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }

/* Gradient: white top → color bottom */
.card-pink   { background: linear-gradient(180deg, #ffffff 0%, #fce7f3 100%); }
.card-blue   { background: linear-gradient(180deg, #ffffff 0%, #e0e7ff 100%); }
.card-purple { background: linear-gradient(180deg, #ffffff 0%, #ede9fe 100%); }
.card-teal   { background: linear-gradient(180deg, #ffffff 0%, #ccfbf1 100%); }
.card-orange { background: linear-gradient(180deg, #ffffff 0%, #ffedd5 100%); }
.card-green  { background: linear-gradient(180deg, #ffffff 0%, #d1fae5 100%); }

/* ===================== POPULAR ===================== */
.card.popular {
    background: linear-gradient(180deg, #ffffff 0%, #fef3c7 100%);
    border: 2.5px solid #f59e0b;
    box-shadow: 0 0 0 5px rgba(245,158,11,0.1), 0 8px 36px rgba(245,158,11,0.25);
    transform: scale(1.04); z-index: 2;
    padding-top: 38px;
    animation: popularPulse 2.5s ease-in-out infinite, fadeUp 0.5s ease .1s both;
}
.card.popular:hover { transform: scale(1.04) translateY(-5px); }
@keyframes popularPulse {
    0%,100%{ box-shadow: 0 0 0 5px rgba(245,158,11,0.1), 0 8px 36px rgba(245,158,11,0.25); }
    50%    { box-shadow: 0 0 0 8px rgba(245,158,11,0.18), 0 12px 54px rgba(245,158,11,0.4); }
}

/* POPULAR BADGE */
.badge-popular {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    background: linear-gradient(90deg, #f59e0b, #fde68a, #f59e0b);
    background-size: 200% auto;
    color: #7c2d00; font-size: 11px; font-weight: 800;
    padding: 6px 24px; border-radius: 0 0 14px 14px;
    letter-spacing: 1px; white-space: nowrap;
    box-shadow: 0 4px 16px rgba(245,158,11,0.45);
    animation: badgeMove 2s linear infinite;
}
@keyframes badgeMove { to { background-position: 200% center; } }

/* DISCOUNT RIBBON */
.discount {
    position: absolute; top: 0; right: 16px;
    font-size: 11px; font-weight: 800; color: #fff;
    padding: 7px 9px 11px;
    clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
    min-width: 38px; text-align: center;
}
.discount.pink   { background: linear-gradient(180deg,#f43f5e,#ec4899); box-shadow: 0 3px 10px rgba(236,72,153,0.4); }
.discount.gold   { background: linear-gradient(180deg,#fbbf24,#f59e0b); box-shadow: 0 3px 12px rgba(245,158,11,0.6); }
.discount.blue   { background: linear-gradient(180deg,#818cf8,#6366f1); box-shadow: 0 3px 10px rgba(99,102,241,0.4); }
.discount.purple { background: linear-gradient(180deg,#c084fc,#a855f7); box-shadow: 0 3px 10px rgba(168,85,247,0.4); }
.discount.green  { background: linear-gradient(180deg,#34d399,#10b981); box-shadow: 0 3px 10px rgba(16,185,129,0.4); }

/* CARD LABEL */
.card-label { font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px;margin-top:20px; }
.card-label.pink   { color: #ec4899; }
.card-label.purple { color: #a855f7; }
.card-label.blue   { color: #6366f1; }
.card-label.orange { color: #f97316; }
.card-label.teal   { color: #0d9488; }

.card-icon { font-size: 28px; margin-bottom: 4px; display: block; }
.card.popular .card-icon {filter: drop-shadow(0 0 12px rgba(245,158,11,0.7)); }

.card-title { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 19px; color: #1f2937; margin-top: 15px; }
.card.popular .card-title { font-size: 20px; color: #92400e; }

.price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; justify-content: center; }
.old-price { font-size: 13px; color: #9ca3af; text-decoration: line-through; }
.new-price { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 28px; color: #1f2937; }
.card.popular .new-price { font-size: 36px; color: #d97706; }

/* DEAL BADGE */
.deal-badge {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    font-size: 11px; font-weight: 700; padding: 5px 14px; border-radius: 20px;
    margin-bottom: 14px; color: #fff; position: relative; overflow: hidden;
}
.deal-badge::after {
    content: ''; position: absolute; top: -50%; left: -100%; width: 40%; height: 200%;
    background: linear-gradient(105deg,transparent,rgba(255,255,255,0.45),transparent);
    animation: dealShine 2.5s ease-in-out infinite;
}
@keyframes dealShine { to { left: 150%; } }

.deal-badge.gold   { background: linear-gradient(90deg,#f59e0b,#fde68a,#f59e0b); background-size:200% auto; animation: badgeMove 2s linear infinite; box-shadow:0 2px 12px rgba(245,158,11,0.5); }
.deal-badge.pink   { background: linear-gradient(90deg,#f43f5e,#ec4899); box-shadow:0 2px 10px rgba(236,72,153,0.4); }
.deal-badge.blue   { background: linear-gradient(90deg,#6366f1,#818cf8); box-shadow:0 2px 10px rgba(99,102,241,0.4); }
.deal-badge.green  { background: linear-gradient(90deg,#10b981,#34d399); box-shadow:0 2px 10px rgba(16,185,129,0.4); }
.deal-badge.purple { background: linear-gradient(90deg,#a855f7,#c084fc); box-shadow:0 2px 10px rgba(168,85,247,0.4); }
.deal-badge.teal   { background: linear-gradient(90deg,#0d9488,#14b8a6); box-shadow:0 2px 10px rgba(13,148,136,0.4); }
.deal-badge.orange { background: linear-gradient(90deg,#f97316,#fb923c); box-shadow:0 2px 10px rgba(249,115,22,0.4); }

/* FEATURES */
.features { list-style: none; margin-bottom: 12px; }
.features li {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    font-size: 12.5px; color: #374151; font-weight: 500; padding: 3px 0;
}
.features li .icon { font-size: 14px; flex-shrink: 0; }
.card.popular .features li { color: #78350f; font-weight: 600; }

/* SOCIAL PROOF BOX */
.social-proof {
    border-radius: 10px;
    /*padding: 8px 12px;*/
    font-size: 11.5px; font-weight: 600;
    margin-bottom: 14px;
    display: flex; align-items: center; justify-content: center; gap: 7px;
}
/* Each card: match card color lightly */
.card-pink   .social-proof { background: rgba(236,72,153,0.09);  border: 1px solid rgba(236,72,153,0.2);  color: #9d174d; }
.card-blue   .social-proof { background: rgba(99,102,241,0.09);  border: 1px solid rgba(99,102,241,0.2);  color: #3730a3; }
.card-purple .social-proof { background: rgba(168,85,247,0.09);  border: 1px solid rgba(168,85,247,0.2);  color: #6b21a8; }
.card-teal   .social-proof { background: rgba(13,148,136,0.09);  border: 1px solid rgba(13,148,136,0.2);  color: #134e4a; }
.card-orange .social-proof { background: rgba(249,115,22,0.09);  border: 1px solid rgba(249,115,22,0.2);  color: #7c2d12; }
.card.popular .social-proof { background: rgba(245,158,11,0.1);  border: 1px solid rgba(245,158,11,0.3);  color: #78350f; }
.social-proof .check { color: #10b981; font-size: 16px; flex-shrink: 0; font-weight: 900; }
.social-proof .coin  { font-size: 15px; flex-shrink: 0; }

/* ===================== BUTTONS – STATIC, NO ANIMATION ===================== */
.btn-offer {
    width: 100%; padding: 13px;
    border: none; border-radius: 50px;
    font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 15px;
    letter-spacing: 0.5px; cursor: pointer;
    position: relative; overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
/* Static top shine */
.btn-offer::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 45%;
    background: linear-gradient(180deg, rgba(255,255,255,0.28) 0%, transparent 100%);
    border-radius: inherit; pointer-events: none;
}
.btn-offer:hover { transform: scale(1.04) translateY(-2px); }
.btn-offer:active { transform: scale(0.97); }

/* Ripple */
.btn-offer .ripple {
    position: absolute; border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transform: scale(0); animation: ripple .5s linear; pointer-events: none;
}
@keyframes ripple { to { transform: scale(5); opacity: 0; } }

.btn-pink   { background: linear-gradient(135deg,#f43f5e,#ec4899); color:#fff; box-shadow: 0 4px 14px rgba(236,72,153,0.4); }
.btn-pink:hover   { box-shadow: 0 6px 22px rgba(236,72,153,0.55); }

.btn-blue   { background: linear-gradient(135deg,#6366f1,#818cf8); color:#fff; box-shadow: 0 4px 14px rgba(99,102,241,0.4); }
.btn-blue:hover   { box-shadow: 0 6px 22px rgba(99,102,241,0.55); }

.btn-purple { background: linear-gradient(135deg,#a855f7,#c084fc); color:#fff; box-shadow: 0 4px 14px rgba(168,85,247,0.4); }
.btn-purple:hover { box-shadow: 0 6px 22px rgba(168,85,247,0.55); }

.btn-teal   { background: linear-gradient(135deg,#0d9488,#14b8a6); color:#fff; box-shadow: 0 4px 14px rgba(13,148,136,0.4); }
.btn-teal:hover   { box-shadow: 0 6px 22px rgba(13,148,136,0.55); }

.btn-orange { background: linear-gradient(135deg,#f97316,#fb923c); color:#fff; box-shadow: 0 4px 14px rgba(249,115,22,0.4); }
.btn-orange:hover { box-shadow: 0 6px 22px rgba(249,115,22,0.55); }

/* GOLD – popular only keeps its glow */
.btn-gold {
    background: linear-gradient(135deg,#fbbf24,#f59e0b,#fde68a,#f59e0b,#fbbf24);
    background-size: 200% auto;
    color: #7c2d00; font-size: 15px; padding: 10px;
    box-shadow: 0 0 22px rgba(245,158,11,0.8), 0 0 44px rgba(245,158,11,0.4), 0 4px 16px rgba(0,0,0,0.15);
    animation: goldMove 2.5s linear infinite, goldPulse 2s ease-in-out infinite;
}
@keyframes goldMove { to { background-position: 200% center; } }
@keyframes goldPulse {
    0%,100%{ box-shadow: 0 0 22px rgba(245,158,11,0.8), 0 0 44px rgba(245,158,11,0.4), 0 4px 16px rgba(0,0,0,0.15); }
    50%    { box-shadow: 0 0 36px rgba(245,158,11,1),   0 0 72px rgba(245,158,11,0.6), 0 4px 16px rgba(0,0,0,0.15); }
}
.btn-gold:hover { transform: scale(1.05) translateY(-2px); }

/* SPARKLES */
.sparkle { position: absolute; border-radius: 50%; pointer-events: none; animation: spAnim 2.5s ease-in-out infinite; }
.sparkle:nth-child(1){width:8px;height:8px;top:20%;left:6%;animation-delay:0s;background:#fbbf24;box-shadow:0 0 8px 4px rgba(251,191,36,0.9);}
.sparkle:nth-child(2){width:5px;height:5px;top:55%;right:6%;animation-delay:.8s;background:#fbbf24;box-shadow:0 0 6px 3px rgba(251,191,36,0.9);}
.sparkle:nth-child(3){width:6px;height:6px;bottom:25%;left:10%;animation-delay:1.6s;background:#fbbf24;box-shadow:0 0 7px 3px rgba(251,191,36,0.9);}
.sparkle:nth-child(4){width:4px;height:4px;top:38%;right:12%;animation-delay:.4s;background:#fbbf24;box-shadow:0 0 5px 2px rgba(251,191,36,0.9);}
@keyframes spAnim { 0%,100%{opacity:0;transform:scale(0) rotate(0deg);} 50%{opacity:1;transform:scale(2) rotate(180deg);} }

/* RESPONSIVE */
@media (max-width: 768px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .card.popular {transform: none; max-width: 380px; margin: 0 auto; width: 100%; }
    .card.popular:hover { transform: translateY(-5px); }
}
@media (max-width: 480px) {
    .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .card { padding: 18px 11px 16px; }
}

.card-white{
    background: linear-gradient(180deg,#ffffff 0%,#f5f5f5 100%);
    border:1px solid #e5e5e5;
    box-shadow:0 2px 8px rgba(0,0,0,0.05);
}

.card-white .card-title{
    color:#6b7280;
}

.card-white .new-price{
    color:#374151;
}

.card-white .features li{
    color:#6b7280;
}

.discount.white{
    background:linear-gradient(180deg,#d1d5db,#9ca3af);
    box-shadow:none;
}

.deal-badge.white{
    background:linear-gradient(90deg,#9ca3af,#d1d5db);
    color:#374151;
}

.card-white .social-proof{
    background:#f3f4f6;
    border:1px solid #e5e7eb;
    color:#6b7280;
}