/* Promotions, popup, top bar and social links (Admin > Promotions & Social) */
[hidden] { display: none !important; }

.theme-purple { --p1: #7c4dff; --p2: #e84fa0; }
.theme-gold   { --p1: #f5b301; --p2: #ff7a18; }
.theme-pink   { --p1: #ff4fa3; --p2: #ff9a3c; }
.theme-blue   { --p1: #2563eb; --p2: #22d3ee; }
.theme-green  { --p1: #10b981; --p2: #a3e635; }

/* ---------- top bar ---------- */
.promo-bar { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; padding: 8px 44px 8px 14px;
    background: linear-gradient(90deg, var(--p1), var(--p2)); color: #fff; font-weight: 600; font-size: .9rem; line-height: 1.5; text-align: center; }
.pb-btn { padding: 3px 14px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: #1a0f3c; font-weight: 800; font-size: .82rem; text-decoration: none; white-space: nowrap; }
.pb-btn:hover { background: #fff; transform: translateY(-1px); }
.pb-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .2); color: #fff; cursor: pointer; font-size: .8rem; }
.pb-close:hover { background: rgba(0, 0, 0, .35); }

/* ---------- cards on the home page ---------- */
.promo-wrap { margin-top: 16px; }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.promo-card { position: relative; overflow: hidden; display: flex; flex-direction: column; border-radius: 18px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.promo-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; z-index: 1; background: linear-gradient(90deg, var(--p1), var(--p2)); }
.pc-img img { display: block; width: 100%; height: 150px; object-fit: cover; }
.pc-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 16px 16px; line-height: 1.55; }
.pc-body h3 { margin: 0; font-size: 1.1rem; }
.pc-body p { margin: 0; color: var(--muted); font-size: .92rem; }
.pc-btn { display: inline-block; margin-top: 4px; padding: 8px 18px; border-radius: 12px; border: 0; color: #fff; font-weight: 800; font-size: .9rem; text-decoration: none; cursor: pointer;
    background: linear-gradient(135deg, var(--p1), var(--p2)); box-shadow: 0 6px 16px color-mix(in srgb, var(--p1) 40%, transparent); transition: transform .15s; }
.pc-btn:hover { transform: translateY(-2px); }

/* ---------- popup ---------- */
.promo-pop { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 16px; background: rgba(5, 2, 15, .72); animation: ppFade .25s ease-out; }
.pp-card { position: relative; width: min(92vw, 420px); max-height: 90vh; overflow: auto; border-radius: 22px; background: var(--card2, var(--card)); border: 2px solid var(--p1);
    box-shadow: 0 0 40px color-mix(in srgb, var(--p1) 45%, transparent), 0 24px 50px rgba(0, 0, 0, .55); animation: ppPop .3s cubic-bezier(.2, 1.2, .4, 1); }
.pp-img { display: block; width: 100%; max-height: 220px; object-fit: cover; }
.pp-body { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 20px 20px; text-align: center; line-height: 1.55; }
.pp-body h3 { margin: 0; font-size: 1.3rem; }
.pp-body p { margin: 0; color: var(--muted); }
.pp-cta { margin-top: 6px; padding: 10px 26px; }
.pp-later { margin-top: 2px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; }
.pp-close { position: absolute; right: 10px; top: 10px; z-index: 2; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; cursor: pointer; }
@keyframes ppFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ppPop { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }

/* ---------- follow us ---------- */
.follow-wrap { margin-top: 18px; }
.follow-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.follow-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.6; }
.follow-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); transition: transform .15s; }
.social-btn:hover { transform: translateY(-2px); }
.social-btn .si { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .22); font-weight: 800; font-size: .8rem; line-height: 1; }
.social-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.si-circle { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; font-weight: 800; text-decoration: none; transition: transform .15s; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); }
.si-circle:hover { transform: translateY(-3px) scale(1.06); }

.plat-facebook { background: #1877f2; } .plat-messenger { background: #0084ff; } .plat-telegram { background: #229ed9; }
.plat-tiktok { background: #161616; border: 1px solid rgba(255, 255, 255, .25); } .plat-youtube { background: #e11d1d; }
.plat-instagram { background: linear-gradient(45deg, #f9a825, #ee2a7b, #6228d7); } .plat-whatsapp { background: #25d366; }
.plat-discord { background: #5865f2; } .plat-x { background: #111; border: 1px solid rgba(255, 255, 255, .25); } .plat-website { background: linear-gradient(135deg, #7c4dff, #e84fa0); }

/* ---------- 3D look compatibility (Admin > Appearance) ---------- */
[data-look-cards="depth"] :is(.promo-card, .follow-box, .pp-card),
[data-look-cards="tilt"] :is(.promo-card, .follow-box, .pp-card) {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -3px 0 rgba(0, 0, 0, .3), 0 6px 0 color-mix(in srgb, var(--accent) 24%, #05010f), 0 18px 28px rgba(0, 0, 0, .45);
}
[data-look-shape="round"] :is(.promo-card, .follow-box) { border-radius: 26px; }
[data-look-shape="sharp"] :is(.promo-card, .follow-box, .pp-card, .pc-btn) { border-radius: 5px; }
[data-look-buttons="3d"] .social-btn, [data-look-buttons="3d"] .pc-btn { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 4px 0 rgba(0, 0, 0, .35), 0 8px 14px rgba(0, 0, 0, .35); }
[data-look-buttons="3d"] :is(.social-btn, .pc-btn):active { transform: translateY(4px); box-shadow: none; }

/* ---------- phones ---------- */
@media (max-width: 600px) {
    .promo-wrap, .follow-wrap { margin-top: 10px; }
    .promo-grid { grid-template-columns: 1fr; gap: 10px; }
    .pc-img img { height: 110px; }
    .pc-body { padding: 12px 14px 14px; } .pc-body h3 { font-size: 1rem; } .pc-body p { font-size: .84rem; }
    .promo-bar { font-size: .8rem; padding: 6px 40px 6px 10px; }
    .follow-box { padding: 10px 12px; gap: 8px; border-radius: 14px; flex-direction: column; align-items: stretch; text-align: center; }
    .follow-text strong { font-size: .92rem; } .follow-text span { font-size: .78rem; }
    .follow-links { justify-content: center; } .social-btn { padding: 7px 12px; font-size: .84rem; }
    .si-circle { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) { .promo-pop, .pp-card { animation: none; } }
