/* ============================================================
   RIZQ SHOP – Premium Redesign
   Design System: dark glass · indigo-gold · Outfit font
   ============================================================ */

/* ─── RESET & ROOT ─────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* brand */
    --clr-bg: #08090f;
    --clr-surface: rgba(255, 255, 255, 0.045);
    --clr-border: rgba(255, 255, 255, 0.08);

    --clr-primary: #7c6dfa;
    /* indigo-violet */
    --clr-accent: #f5c842;
    /* amber-gold */
    --clr-wa: #25d366;
    --clr-map: #e84545;
    --clr-fb: #1877f2;
    --clr-phone: #7c6dfa;

    --clr-text: #f0f0f8;
    --clr-muted: rgba(240, 240, 248, 0.55);

    /* spacing */
    --gap: 2rem;
    --radius: 1.25rem;
    --radius-pill: 50rem;

    /* transitions */
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    --dur: 0.45s;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--clr-bg);
    color: var(--clr-text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ─── ANIMATED BACKGROUND ───────────────────────────────────── */
.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.55;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.28;
    will-change: transform;
}

.orb-1 {
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, #7c6dfa, transparent 70%);
    top: -15%;
    left: -10%;
    animation: drift1 18s ease-in-out infinite alternate;
}

.orb-2 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, #f5c842, transparent 70%);
    bottom: -10%;
    right: -8%;
    animation: drift2 22s ease-in-out infinite alternate;
}

.orb-3 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, #1877f2, transparent 70%);
    top: 50%;
    left: 55%;
    animation: drift1 14s ease-in-out infinite alternate-reverse;
    opacity: 0.18;
}

.orb-4 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, #e84545, transparent 70%);
    top: 20%;
    right: 20%;
    animation: drift2 19s ease-in-out infinite alternate;
    opacity: 0.14;
}

@keyframes drift1 {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(60px, 80px) scale(1.12);
    }
}

@keyframes drift2 {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(-70px, -50px) scale(1.08);
    }
}

/* ─── SCROLL ANIMATIONS ─────────────────────────────────────── */
.fade-down,
.fade-up {
    opacity: 0;
    animation-duration: 0.8s;
    animation-fill-mode: both;
    animation-timing-function: var(--ease);
    animation-delay: var(--d, 0ms);
}

.fade-down {
    animation-name: fadeDown;
}

.fade-up {
    animation-name: fadeUp;
}

/* intersection-observer driven */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ─── LAYOUT HELPERS ─────────────────────────────────────────── */
.section {
    position: relative;
    z-index: 2;
    padding: 6rem 1.5rem;
}

.section-inner {
    max-width: 960px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clr-primary);
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.15;
}

.section-sub {
    font-size: 1rem;
    color: var(--clr-muted);
    margin-bottom: 3rem;
}

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 8rem;
    gap: 0;
    /* Gap handled by individual margins for better control */
}

/* Vertical Stack Alignment */
.hero-branding {
    text-align: center;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-cards-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

/* ── HERO CARD FAN (side-by-side, both fully visible) ──────────── */
.hero-cards-stack {
    width: 100%;
    max-width: 650px;
    /* Reduced width to make cards smaller */
    display: flex;
    align-items: flex-end;
    /* bottom-align so rotation anchors nicely */
    justify-content: center;
    gap: 0;
    /* cards overlap slightly for a deck feel */
    perspective: 1000px;
    padding: 1rem 0 1.5rem;
}

/* each card wrapper takes equal space */
.hero-vc {
    position: relative;
    flex: 1;
    min-width: 0;
    transform-style: preserve-3d;
}

/* Card 1 – leans left, floats upward */
.hero-vc-1 {
    transform: rotate(-6deg) translateY(0);
    animation: floatCard1 4.8s ease-in-out infinite alternate;
    z-index: 2;
    margin-right: -18px;
    /* slight overlap into card 2 */
    filter: drop-shadow(-8px 12px 28px rgba(124, 109, 250, 0.55));
}

/* Card 2 – leans right, floats at different phase */
.hero-vc-2 {
    transform: rotate(6deg) translateY(0);
    animation: floatCard2 5.6s ease-in-out infinite alternate;
    z-index: 1;
    margin-left: -18px;
    filter: drop-shadow(8px 12px 28px rgba(245, 200, 66, 0.4));
}

@keyframes floatCard1 {
    0% {
        transform: rotate(-6deg) translateY(0px) scale(1);
    }

    50% {
        transform: rotate(-4deg) translateY(-18px) scale(1.02);
    }

    100% {
        transform: rotate(-7deg) translateY(-8px) scale(1.01);
    }
}

@keyframes floatCard2 {
    0% {
        transform: rotate(6deg) translateY(-6px) scale(1);
    }

    50% {
        transform: rotate(4deg) translateY(-22px) scale(1.02);
    }

    100% {
        transform: rotate(7deg) translateY(-4px) scale(1.01);
    }
}

/* Glow pulse rings under each card */
.hero-vc-1::after,
.hero-vc-2::after {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: var(--radius);
    z-index: -1;
    opacity: 0.4;
    animation: glowPulse 3s ease-in-out infinite alternate;
}

.hero-vc-1::after {
    background: radial-gradient(ellipse, rgba(124, 109, 250, 0.6), transparent 70%);
    animation-delay: 0s;
}

.hero-vc-2::after {
    background: radial-gradient(ellipse, rgba(245, 200, 66, 0.5), transparent 70%);
    animation-delay: 1s;
}

@keyframes glowPulse {
    from {
        opacity: 0.25;
        transform: scale(0.95);
    }

    to {
        opacity: 0.55;
        transform: scale(1.05);
    }
}

.hero-cards-hint {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-muted);
    margin-top: 0.5rem;
    text-align: center;
}

/* ─── BIG CENTERED GLOWING LOGO ─────────────────────────────── */
.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.8rem;
    position: relative;
}

/* outer halo rings — pure CSS animation */
.hero-logo::before,
.hero-logo::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: haloExpand 3.2s ease-out infinite;
    pointer-events: none;
}

.hero-logo::before {
    width: 520px;
    height: 520px;
    border: 2px solid rgba(124, 109, 250, 0.35);
    animation-delay: 0s;
}

.hero-logo::after {
    width: 650px;
    height: 650px;
    border: 1px solid rgba(245, 200, 66, 0.2);
    animation-delay: 1s;
}

@keyframes haloExpand {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

.hero-logo-img {
    width: 500px;
    height: 500px;
    object-fit: contain;
    border-radius: 50%;

    /* Clarity boost: remove mix-blend-mode, increase contrast */
    filter:
        brightness(1.1) contrast(1.2) drop-shadow(0 0 30px rgba(124, 109, 250, 0.6));

    animation: logoFloat 5s ease-in-out infinite alternate,
        logoPulse 3.5s ease-in-out infinite alternate;
    cursor: default;
}

@keyframes logoFloat {
    from {
        transform: translateY(0px) scale(1);
    }

    to {
        transform: translateY(-14px) scale(1.04);
    }
}

@keyframes logoPulse {
    from {
        filter:
            brightness(1.1) contrast(1.2) drop-shadow(0 0 25px rgba(124, 109, 250, 0.5));
    }

    to {
        filter:
            brightness(1.2) contrast(1.3) drop-shadow(0 0 45px rgba(124, 109, 250, 0.8)) drop-shadow(0 0 80px rgba(245, 200, 66, 0.3));
    }
}

/* Brand name */
.brand-name {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-top: 0.6rem;
}

.brand-rizq {
    background: linear-gradient(135deg, #fff 30%, var(--clr-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-shop {
    background: linear-gradient(135deg, var(--clr-primary), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 0.25em;
}

.brand-tagline {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: var(--clr-muted);
    letter-spacing: 0.06em;
    font-weight: 400;
    margin-bottom: 1rem;
}

/* ─── INFO HIGHLIGHT SECTION ─────────────────────────────────── */
.info-highlight-wrap {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 2.5rem;
    border-radius: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 800px;
    margin-top: 1rem;
}

.info-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--clr-accent);
    opacity: 0.9;
}

.contact-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease),
        filter var(--dur) var(--ease);
    position: relative;
    overflow: hidden;
}

.pill::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0);
    transition: background 0.3s;
}

.pill:hover::after {
    background: rgba(255, 255, 255, 0.1);
}

.pill:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.pill:active {
    transform: scale(0.97);
}

.pill-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pill-icon svg {
    width: 100%;
    height: 100%;
}

.pill-phone {
    background: linear-gradient(135deg, #7c6dfa, #4f46e5);
    color: #fff;
    box-shadow: 0 4px 18px rgba(124, 109, 250, 0.5);
}

.pill-wa {
    background: linear-gradient(135deg, #25d366, #128c42);
    color: #fff;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
}

.pill-map {
    background: linear-gradient(135deg, #e84545, #b91c1c);
    color: #fff;
    box-shadow: 0 4px 18px rgba(232, 69, 69, 0.4);
}

.pill-fb {
    background: linear-gradient(135deg, #1877f2, #1156c0);
    color: #fff;
    box-shadow: 0 4px 18px rgba(24, 119, 242, 0.4);
}

/* ─── SCROLL HINT ────────────────────────────────────────────── */
.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-dot {
    width: 28px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    position: relative;
}

.scroll-dot::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--clr-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 28px;
        opacity: 0;
    }
}

/* (cards-section and vc-grid removed — cards now live in hero) */

/* 3-D scene (used both in hero stack and standalone grids) */
.vc-scene {
    width: 100%;
    perspective: 900px;
}

.vc-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1.7 / 1;
    transform-style: preserve-3d;
    transition: transform 0.75s var(--ease), box-shadow 0.4s ease;
    cursor: pointer;
    border-radius: var(--radius);
}

/* Flip on hover — disabled inside hero (tilt only there) */
.vc-scene:not(.hero-vc):hover .vc-card,
.vc-scene:not(.hero-vc):focus .vc-card {
    transform: rotateY(180deg);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

/* Pause float animation on hover so JS tilt feels smooth */
.hero-vc:hover {
    animation-play-state: paused;
}

.vc-front,
.vc-back {
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

/* front */
.vc-front {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
    border: 1px solid var(--clr-border);
}

.vc-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.vc-scene:hover .vc-front img {
    transform: scale(1.04);
}

/* shine overlay */
.vc-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 60%);
    pointer-events: none;
    transition: opacity 0.3s;
}

/* back */
.vc-back {
    background: linear-gradient(135deg, #1a1030, #2d1f6e);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(124, 109, 250, 0.3);
    box-shadow: 0 10px 40px rgba(124, 109, 250, 0.25);
}

.vc-back-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}

.vc-back-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 109, 250, 0.5);
}

.vc-back-inner p {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-muted);
}

.vc-caption {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--clr-muted);
}

/* ─── QUICK ACTIONS ──────────────────────────────────────────── */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 1.4rem;
    border-radius: var(--radius);
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    cursor: pointer;
    transition: transform var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease),
        border-color var(--dur);
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent);
    pointer-events: none;
}

.action-card:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.18);
}

/* icon bubbles */
.action-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-icon {
    width: 24px;
    height: 24px;
    color: #fff;
}

.ac-phone {
    background: linear-gradient(135deg, #7c6dfa, #4f46e5);
    box-shadow: 0 4px 18px rgba(124, 109, 250, 0.4);
}

.ac-wa {
    background: linear-gradient(135deg, #25d366, #128c42);
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
}

.ac-map {
    background: linear-gradient(135deg, #e84545, #b91c1c);
    box-shadow: 0 4px 18px rgba(232, 69, 69, 0.35);
}

.ac-fb {
    background: linear-gradient(135deg, #1877f2, #1156c0);
    box-shadow: 0 4px 18px rgba(24, 119, 242, 0.35);
}

.action-info {
    flex: 1;
}

.action-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.action-desc {
    font-size: 0.82rem;
    color: var(--clr-muted);
    font-weight: 400;
}

.action-arrow {
    font-size: 1.1rem;
    color: var(--clr-muted);
    transition: transform 0.3s var(--ease), color 0.3s;
    flex-shrink: 0;
}

.action-card:hover .action-arrow {
    transform: translateX(5px);
    color: var(--clr-text);
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--clr-border);
    color: var(--clr-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.site-footer strong {
    color: var(--clr-text);
}

.footer-sub {
    font-size: 0.8rem;
}

.footer-sub a {
    color: var(--clr-primary);
    font-weight: 600;
    transition: opacity 0.2s;
}

.footer-sub a:hover {
    opacity: 0.75;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */

/* Tablet: narrow the split a bit */
/* ─── RESPONSIVE ─────────────────────────────────────────────── */

@media (max-width: 860px) {

    /* Give the fan a sensible max-width on tablet */
    .hero-cards-stack {
        max-width: 460px;
    }

    .info-highlight-wrap {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 4rem 1rem 6rem;
    }

    .brand-name {
        font-size: 2.5rem;
    }

    .info-highlight-wrap {
        padding: 1.2rem;
        margin-top: 0.5rem;
    }

    .pill-text {
        display: none;
    }

    .pill {
        padding: 0.75rem;
    }

    .pill-icon {
        width: 26px;
        height: 26px;
    }

    .contact-pills {
        gap: 0.6rem;
        justify-content: center;
    }

    .action-card {
        padding: 1.1rem;
    }

    .action-icon-wrap {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .section {
        padding: 4rem 1rem;
    }

    .hero-logo-img {
        width: 300px;
        height: 300px;
    }

    .hero-logo::before {
        width: 320px;
        height: 320px;
    }

    .hero-logo::after {
        width: 380px;
        height: 380px;
    }

    .hero-cards-stack {
        max-width: 440px;
    }

    /* Tighten card margins on small phones */
    .hero-vc-1 {
        margin-right: -10px;
    }

    .hero-vc-2 {
        margin-left: -10px;
    }
}

/* ─── CARD MODAL ─────────────────────────────────────────────── */
.card-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}

.card-modal[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 9, 15, 0.92);
    backdrop-filter: blur(12px);
}

.modal-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem;
}

.modal-close {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.modal-close:hover {
    background: var(--clr-primary);
    transform: rotate(90deg);
}

.modal-card-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1.7 / 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-modal[aria-hidden="false"] .modal-card-wrap {
    transform: scale(1);
}

.modal-card-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* Modal Glowing Aura */
.modal-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(124, 109, 250, 0.4), transparent 70%);
    z-index: -1;
    animation: modalGlowPulse 4s ease-in-out infinite alternate;
}

@keyframes modalGlowPulse {
    from {
        opacity: 0.3;
        transform: scale(0.95);
    }

    to {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.modal-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 2rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: background 0.3s;
}

.modal-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--clr-accent);
}

.modal-counter {
    color: var(--clr-muted);
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}

@media (max-width: 600px) {
    .modal-container {
        padding: 1rem;
        gap: 1.5rem;
    }

    .modal-close {
        top: -3.5rem;
        right: 0.5rem;
    }

    .modal-controls {
        gap: 1rem;
        padding: 0.6rem 1.2rem;
    }

    .modal-btn {
        font-size: 0.85rem;
    }
}

/* ─── SELECTION ──────────────────────────────────────────────── */
::selection {
    background: var(--clr-primary);
    color: #fff;
}

/* ─── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(124, 109, 250, 0.5);
    border-radius: 4px;
}