@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
    margin-left: 0 !important;
    margin-right: 0 !important;
    --primary-color: var(--bs-primary, #206bc4);
    --success-color: var(--bs-success, #2fb344);
    --warning-color: var(--bs-warning, #f76707);
}

body {
    background: radial-gradient(circle at 10% 10%, #f5f3ff 0, rgba(245,243,255,0) 30%),
                radial-gradient(circle at 90% 20%, #e0f2fe 0, rgba(224,242,254,0) 32%),
                linear-gradient(180deg, #f8fafc, #eef2ff);
    color: #0f172a;
    font-family: 'Space Grotesk', Inter, system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

.page { display: flex; flex-direction: column; min-height: 100vh; }
.page-wrapper { display: flex; flex: 1; flex-direction: column; }
.page-body { flex: 1; }

/* ─── Navbar ─── */
header.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,.95);
    border-bottom: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 4px 12px rgba(15,23,42,.04);
    padding: 40px 0;
    position: relative;
    z-index: 1030;
}
header.navbar .navbar-brand { font-size: 1.25rem; font-weight: 700; }
@media (max-width: 767.98px) {
    header.navbar .navbar-collapse {
        backdrop-filter: blur(10px);
        background: rgba(255,255,255,.98);
        border-bottom: 1px solid rgba(15,23,42,.08);
        box-shadow: 0 8px 16px rgba(15,23,42,.1);
        left: 0; padding: 1rem; position: absolute; right: 0; top: 100%; z-index: 1030;
    }
}
header.navbar .nav-link {
    display: block; font-weight: 500; position: relative; text-align: left; transition: color .2s ease;
}
header.navbar .nav-link.active,
header.navbar .nav-link:hover { color: #6366f1; }
header.navbar .nav-link.active::after {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px; bottom: -.5rem; content: ""; height: 3px;
    left: 50%; position: absolute; transform: translateX(-50%); width: 24px;
}
body[dir=rtl] header.navbar .navbar-nav .nav-link { text-align: right; }

/* ─── Footer ─── */
.footer {
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,.7);
    border-top: 1px solid rgba(15,23,42,.06);
    margin-top: auto;
    padding: 2rem 0;
}

/* ─── Cards ─── */
.card {
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 4px 12px rgba(15,23,42,.04);
    overflow: hidden;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}
.card:hover { box-shadow: 0 12px 32px rgba(15,23,42,.12); transform: translateY(-2px); }
.card + .card { margin-top: 1.5rem; }
.card-md .card-body { padding: 2.5rem; }
.card-stamp { opacity: .1; z-index: 0; }

/* ─── Page header ─── */
.page-header {
    background: linear-gradient(135deg, rgba(99,102,241,.03), rgba(168,85,247,.03));
    border-bottom: 1px solid rgba(15,23,42,.06);
    padding: 2rem 0;
}
.page-header .page-title {
    background: linear-gradient(135deg, #0f172a, #334155);
    -webkit-background-clip: text; font-weight: 700;
    -webkit-text-fill-color: transparent; background-clip: text;
}

/* ─── Feature cards (homepage) ─── */
.col-sm-6.col-lg-4 .card { border-radius: 16px; height: 100%; }
.col-sm-6.col-lg-4 .card .avatar {
    align-items: center; border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    display: flex; height: 3rem; justify-content: center; width: 3rem;
}
.col-sm-6.col-lg-4 .card .card-title { font-size: 1.125rem; font-weight: 600; }

/* ─── Buttons ─── */
.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none; border-radius: 12px;
    box-shadow: 0 8px 20px rgba(99,102,241,.3);
    font-weight: 600; padding: .625rem 1.5rem; transition: all .2s ease;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #5558e3, #7c4ee4);
    box-shadow: 0 12px 28px rgba(99,102,241,.4); transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

/* ─── Card animations ─── */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.card { animation: fadeInUp .5s ease-out backwards; }
.card:first-child { animation-delay: .05s; }
.card:nth-child(2) { animation-delay: .1s; }
.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; }

/* ─── Envato button ─── */
.envato-buy-now-button {
    align-items: center; background: #fff; border: 2px solid #82b440; border-radius: 50%;
    bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,.2);
    display: flex; height: 60px; justify-content: center;
    position: fixed; right: 30px; transition: transform .3s ease; width: 60px; z-index: 9999;
}
.envato-buy-now-button:hover { transform: scale(1.1); }
.envato-buy-now-button img { height: auto; object-fit: contain; width: 30px; }
.envato-buy-now-button .button-ring {
    animation: ripple 1.5s infinite; border: 2px solid #82b440; border-radius: 50%;
    height: calc(100% + 4px); left: -2px; position: absolute;
    top: -2px; width: calc(100% + 4px); z-index: -1;
}
@keyframes ripple {
    0% { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(1.5); }
}

/* ─── Affiliate commission info ─── */
.affiliate-commission-info .badge { color: #fff; }

/* ─── Mini cart / ecommerce ─── */
.bb-customer-page { background: none; margin: 0; }
.content-page.single-product-content { background: #fff; border-radius: 5px; padding: 15px; }

/* ─── Auth ─── */
.auth-card form .auth-input-icon { top: 0; }
.show-admin-bar div#cartOffcanvas { top: 40px; }
