:root {
    --bg: #f7f7f5;
    --ink: #111111;
    --muted: #6f6f6a;

    --brand: #111111;
    --brand-2: #2a2a2a;
    --accent: #8f8f86;

    --dark: #0d0d0d;
    --border: rgba(17, 17, 17, 0.10);
    --soft: rgba(17, 17, 17, 0.055);

    --shadow: 0 22px 60px rgba(17, 17, 17, 0.10);
    --radius: 28px;
}

body {
    font-family: "Baloo Bhaijaan 2", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-weight: 500 !important;
}

h1, h2, h3,
.hero h1,
.section-heading h2,
.split-grid h2,
.table-pay-copy h2,
.final-box h2 {
    font-family: "Baloo Bhaijaan 2", system-ui, sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}

p,
li,
small,
.lead {
    font-weight: 500 !important;
}

.btn,
.price-card h3,
.feature-card h3,
.social-card strong {
    font-weight: 700 !important;
}

/* =========================
   Headings Size Tuning
   ========================= */

.hero h1 {
    font-size: clamp(2.35rem, 4.8vw, 4.55rem) !important;
    line-height: 1.16 !important;
    letter-spacing: -0.025em !important;
}

.section-heading h2,
.split-grid h2,
.table-pay-copy h2,
.final-box h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.85rem) !important;
    line-height: 1.28 !important;
    letter-spacing: -0.018em !important;
}

.feature-card h3,
.step-card h3,
.price-card h3,
.article-card h3,
.social-card strong {
    font-size: 1.08rem !important;
    line-height: 1.55 !important;
}

@media (max-width: 760px) {
    .hero h1 {
        font-size: clamp(2rem, 10vw, 3.15rem) !important;
    }

    .section-heading h2,
    .split-grid h2,
    .table-pay-copy h2,
    .final-box h2 {
        font-size: clamp(1.55rem, 7vw, 2.25rem) !important;
    }
}


/* =========================
   MKAN New Identity Theme
   Black / White / Warm Gray
   ========================= */

body {
    background:
        radial-gradient(circle at 85% 5%, rgba(17, 17, 17, 0.045), transparent 30rem),
        radial-gradient(circle at 5% 25%, rgba(143, 143, 134, 0.10), transparent 26rem),
        var(--bg) !important;
    color: var(--ink) !important;
}

/* Header */
.mkan-header {
    background: rgba(247, 247, 245, 0.94) !important;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08) !important;
}

.nav-links a:hover {
    color: #111 !important;
}

/* Buttons */
.btn-primary {
    background: #111 !important;
    color: #fff !important;
    box-shadow: 0 16px 36px rgba(17, 17, 17, 0.18) !important;
}

.btn-primary:hover {
    box-shadow: 0 20px 44px rgba(17, 17, 17, 0.24) !important;
}

.btn-secondary {
    background: #fff !important;
    color: #111 !important;
    border-color: rgba(17, 17, 17, 0.12) !important;
    box-shadow: 0 10px 28px rgba(17, 17, 17, 0.06) !important;
}

/* Pills */
.pill {
    background: rgba(17, 17, 17, 0.065) !important;
    color: #111 !important;
}

.pill-light {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
}

/* Cards */
.feature-card,
.step-card,
.price-card,
.social-card,
.article-card,
.testimonial-slide,
.receipt-card,
.client-logo-card,
.faq-list details {
    background: rgba(255, 255, 255, 0.86) !important;
    border-color: rgba(17, 17, 17, 0.10) !important;
    box-shadow: 0 16px 44px rgba(17, 17, 17, 0.07) !important;
}

/* Main dark section */
.dark-section {
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 25rem),
        linear-gradient(135deg, #0b0b0b, #1a1a1a) !important;
    color: #fff !important;
}

/* Feature icons */
.feature-icon,
.social-icon {
    background: rgba(17, 17, 17, 0.065) !important;
    color: #111 !important;
}

/* Gradient areas القديمة */
.feature-large,
.table-pay-section,
.articles-section {
    background:
        radial-gradient(circle at top right, rgba(17, 17, 17, 0.045), transparent 24rem),
        rgba(255, 255, 255, 0.18) !important;
}

/* Payment card button */
.receipt-card button {
    background: #111 !important;
    color: #fff !important;
}

/* Pricing featured */
.price-card.featured {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.10), transparent 17rem),
        linear-gradient(135deg, #0b0b0b, #1b1b1b) !important;
    color: #fff !important;
}

/* Check marks */
.price-card li::before {
    color: #111 !important;
}

.price-card.featured li::before {
    color: #fff !important;
}

/* Final CTA */
.final-box {
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.14), transparent 20rem),
        linear-gradient(135deg, #0b0b0b, #1a1a1a) !important;
    color: #fff !important;
    box-shadow: 0 24px 70px rgba(17, 17, 17, 0.16) !important;
}

/* Article tags */
.article-tag {
    background: rgba(17, 17, 17, 0.065) !important;
    color: #111 !important;
}

/* Links */
.article-footer,
.footer-cta a {
    color: #111 !important;
}

/* Footer */
.footer {
    background: #fff !important;
    border-top: 1px solid rgba(17, 17, 17, 0.08) !important;
}

/* WhatsApp يبقى أخضر لأنه وظيفي ومعروف */
.fixed-whatsapp {
    background: #25D366 !important;
    color: #fff !important;
}

/* Social icons aligned with new MKAN identity */
.social-card.whatsapp .social-icon,
.social-card.maps .social-icon,
.social-card.instagram .social-icon,
.social-card.snapchat .social-icon,
.social-card.tiktok .social-icon,
.social-card.analytics .social-icon {
    color: #111 !important;
    background: rgba(17, 17, 17, 0.065) !important;
}

.social-card:hover .social-icon {
    background: #111 !important;
    color: #fff !important;
}

.payment-logos {
    gap: 14px !important;
}

.payment-logos img {
    height: 44px !important;
    max-width: 124px !important;
    background: #fff !important;
    border: 1px solid rgba(17, 17, 17, 0.10) !important;
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.07) !important;
}

.makan-logo {
    width: 118px !important;
    max-width: 118px !important;
    height: auto !important;
    object-fit: contain !important;
}

.footer-logo {
    width: 112px !important;
    max-width: 112px !important;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
    background:
        radial-gradient(circle at 85% 5%, rgba(255, 92, 151, 0.20), transparent 30rem),
        radial-gradient(circle at 5% 25%, rgba(65, 85, 174, 0.14), transparent 26rem),
        var(--bg);
    color: var(--ink);
    line-height: 1.8;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin-inline: auto;
}

/* Header */
.mkan-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 248, 255, 0.96);
    border-bottom: 1px solid rgba(43, 75, 128, 0.09);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand,
.brand-with-logo {
    display: inline-flex;
    align-items: center;
}

.brand-with-logo {
    max-width: 130px;
    overflow: hidden;
}

.makan-logo {
    display: block;
    width: 115px;
    max-width: 115px;
    height: auto;
    object-fit: contain;
}

.footer-logo {
    width: 105px;
    max-width: 105px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--muted);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--brand-2);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ghost-link {
    color: var(--muted);
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 850;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-sm {
    min-height: 42px;
    padding-inline: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-2) 55%, var(--accent));
    color: white;
    box-shadow: 0 18px 42px rgba(65, 85, 174, 0.28);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.78);
    color: var(--dark);
    border-color: var(--border);
}

.btn.light,
.btn-primary.light {
    background: white;
    color: var(--brand);
    box-shadow: none;
}

.full {
    width: 100%;
}

/* Hero */
.hero {
    padding: 88px 0 72px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: 54px;
}

.pill {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(65, 85, 174, 0.11), rgba(255, 92, 151, 0.11));
    color: var(--brand);
    font-size: .88rem;
    font-weight: 900;
}

.pill-light {
    background: rgba(255,255,255,.15);
    color: white;
}

.hero h1 {
    margin: 22px 0 16px;
    max-width: 780px;
    font-size: clamp(2.55rem, 5.7vw, 5.4rem);
    line-height: 1.12;
    letter-spacing: -0.065em;
}

.lead {
    max-width: 690px;
    margin: 0;
    color: var(--muted);
    font-size: 1.14rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.hero-visual {
    position: relative;
    min-height: 630px;
    display: grid;
    place-items: center;
}

/* Phone Slider */
.phone-card {
    position: relative;
    z-index: 2;
    width: min(390px, 100%);
    border-radius: 42px;
    background: #10162b;
    box-shadow: var(--shadow);
}

.phone-card-preview {
    padding: 12px 12px 14px;
    overflow: hidden;
}

.phone-top {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.72);
    font-size: .82rem;
    position: relative;
    margin-bottom: 10px;
}

.phone-top span {
    position: absolute;
    top: 13px;
    width: 86px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
}

.phone-app-preview {
    position: relative;
    height: 560px;
    border-radius: 30px;
    overflow: hidden;
    background: white;
}

.phone-app-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.phone-app-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    pointer-events: none;
    transition: opacity .8s ease, transform 1.4s ease;
}

.phone-app-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.phone-app-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
}

.phone-slider-dots {
    position: absolute;
    right: 50%;
    bottom: 16px;
    transform: translateX(50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 21, 41, 0.34);
}

.phone-slider-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.42);
    cursor: pointer;
}

.phone-slider-dot.is-active {
    background: white;
    transform: scale(1.15);
}

.floating-card {
    position: absolute;
    z-index: 3;
    width: 160px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255,255,255,.90);
    box-shadow: 0 20px 50px rgba(43, 75, 128, .14);
}

.floating-card span,
.floating-card small {
    display: block;
    color: var(--muted);
}

.floating-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1.2;
}

.card-orders {
    right: -5px;
    top: 90px;
}

.card-rating {
    left: -5px;
    bottom: 110px;
}

/* Sections */
.section {
    padding: 86px 0;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-heading h2,
.split-grid h2,
.final-box h2,
.table-pay-copy h2 {
    margin: 16px 0 12px;
    font-size: clamp(2rem, 4vw, 3.55rem);
    line-height: 1.2;
    letter-spacing: -0.045em;
}

.section-heading p,
.split-grid p,
.final-box p,
.table-pay-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature-card {
    padding: 24px;
    min-height: 230px;
    background: rgba(255,255,255,.82);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 16px 50px rgba(43, 75, 128, 0.06);
}

.feature-large {
    grid-column: span 2;
    background:
        radial-gradient(circle at top left, rgba(255, 92, 151, .16), transparent 18rem),
        white;
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--soft);
    font-size: 1.35rem;
}

.feature-card h3,
.step-card h3,
.price-card h3 {
    margin: 18px 0 8px;
    font-size: 1.18rem;
}

.feature-card p,
.step-card p,
.price-card p {
    margin: 0;
    color: var(--muted);
}

/* Dark Section */
.dark-section {
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 92, 151, .22), transparent 25rem),
        linear-gradient(135deg, var(--dark), #10162b);
    color: white;
}

.dark-section p {
    color: rgba(255,255,255,.72);
}

.split-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 42px;
    align-items: center;
}

.benefit-list {
    display: grid;
    gap: 14px;
}

.benefit-list div {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    align-items: center;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    background: rgba(255,255,255,.06);
}

.benefit-list strong {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: white;
    color: var(--brand);
}

/* Steps */
.soft-section {
    background: rgba(255,255,255,.42);
    border-block: 1px solid var(--border);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.step-card {
    padding: 28px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 16px 50px rgba(43, 75, 128, 0.06);
}

.step-card span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--dark);
    color: white;
    font-weight: 900;
}

/* Social Cards */
.integration-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.social-card {
    min-height: 165px;
    padding: 22px;
    display: grid;
    align-content: start;
    justify-items: center;
    text-align: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: white;
    color: var(--ink);
    box-shadow: 0 16px 50px rgba(43, 75, 128, 0.06);
}

.social-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    margin-inline: auto;
}

.social-icon svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.social-card small {
    color: var(--muted);
}

.social-card.whatsapp .social-icon { color: #25D366; background: rgba(37, 211, 102, .11); }
.social-card.maps .social-icon { color: #4285F4; background: rgba(66, 133, 244, .11); }
.social-card.instagram .social-icon { color: #E1306C; background: rgba(225, 48, 108, .11); }
.social-card.snapchat .social-icon { color: #111827; background: rgba(255, 252, 0, .42); }
.social-card.tiktok .social-icon { color: #111827; background: rgba(0, 242, 234, .14); }
.social-card.analytics .social-icon { color: var(--brand-2); background: rgba(65, 85, 174, .11); }

/* Table Payment */
.table-pay-section {
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 92, 151, .11), transparent 24rem),
        radial-gradient(circle at 85% 50%, rgba(65, 85, 174, .10), transparent 26rem);
}

.table-pay-grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 42px;
    align-items: center;
}

.table-pay-points {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.table-pay-points div {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255,255,255,.72);
}

.table-pay-points strong {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2), var(--accent));
    color: white;
}

.table-pay-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 520px;
}

.receipt-card {
    width: min(390px, 100%);
    padding: 24px;
    border-radius: 34px;
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.receipt-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.receipt-top span {
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--brand);
    font-weight: 900;
}

.table-qr-image {
    width: 118px;
    height: 118px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: #f5f7ff;
    border: 1px solid var(--border);
    padding: 10px;
}

.table-qr-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.receipt-items {
    display: grid;
    gap: 12px;
}

.receipt-items div,
.receipt-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border);
}

.receipt-items span,
.receipt-total span {
    color: var(--muted);
}

.receipt-total {
    margin-top: 18px;
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 1.2rem;
}

.payment-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 22px 0;
}

.payment-logos img {
    display: block;
    width: auto;
    height: 28px;
    max-width: 86px;
    object-fit: contain;
    padding: 5px 9px;
    border-radius: 12px;
    background: #f5f7ff;
    border: 1px solid rgba(43, 75, 128, 0.08);
}

.receipt-card button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2), var(--accent));
    color: white;
    font-weight: 900;
    cursor: pointer;
}

.qr-table-card {
    position: absolute;
    left: 20px;
    bottom: 35px;
    width: 155px;
    padding: 18px;
    border-radius: 26px;
    background: #10162b;
    color: white;
    box-shadow: 0 24px 70px rgba(43, 75, 128, .22);
    text-align: center;
}

.qr-table-card span {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
    border-radius: 18px;
    background: white;
    color: var(--dark);
    font-weight: 900;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: stretch;
}

.price-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 32px;
    background: white;
    box-shadow: 0 18px 60px rgba(43, 75, 128, 0.08);
}

.price-card.featured {
    background:
        radial-gradient(circle at top right, rgba(255, 92, 151, .30), transparent 17rem),
        linear-gradient(135deg, var(--dark), #10162b);
    color: white;
    transform: translateY(-12px);
}

.price-card.featured p,
.price-card.featured li {
    color: rgba(255,255,255,.72);
}

.best {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: white;
    font-size: .8rem;
    font-weight: 900;
}

.price {
    margin: 22px 0;
}

.price .old {
    display: block;
    color: var(--muted);
    text-decoration: line-through;
}

.price-card.featured .old {
    color: rgba(255,255,255,.45);
}

.price strong {
    display: block;
    font-size: 2.55rem;
    line-height: 1.2;
}

.price em {
    display: block;
    color: var(--muted);
    font-style: normal;
}

.price-card.featured .price em {
    color: rgba(255,255,255,.62);
}

.price.custom strong {
    font-size: 2rem;
}

.price-card ul {
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.price-card li {
    color: var(--muted);
}

.price-card li::before {
    content: "✓";
    margin-left: 8px;
    color: var(--accent);
    font-weight: 900;
}

.price-card.featured li::before {
    color: white;
}

/* Testimonials */
.testimonials-section {
    padding-top: 50px;
}

.testimonials-slider {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
}

.testimonials-track {
    position: relative;
    min-height: 310px;
}

.testimonial-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(18px) scale(.98);
    pointer-events: none;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 34px;
    background: white;
    box-shadow: 0 20px 70px rgba(43, 75, 128, .10);
    text-align: center;
    transition: opacity .45s ease, transform .45s ease;
}

.testimonial-slide.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.testimonial-logo {
    width: 96px;
    max-width: 96px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    object-fit: contain;
}

.testimonial-slide p {
    margin: 0 auto 18px;
    max-width: 620px;
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 800;
}

.testimonial-slide strong {
    color: var(--brand);
}

.slider-btn {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: white;
    color: var(--brand);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 14px 40px rgba(43, 75, 128, .13);
}

.slider-prev { right: -22px; }
.slider-next { left: -22px; }

/* Clients */
.clients-section {
    padding: 50px 0 80px;
    overflow: hidden;
}

.clients-heading {
    margin-bottom: 24px;
}

.clients-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.clients-marquee-track {
    display: flex;
    width: max-content;
    gap: 16px;
    animation: clientsMove 28s linear infinite;
}

.clients-marquee:hover .clients-marquee-track {
    animation-play-state: paused;
}

.client-logo-card {
    width: 180px;
    height: 104px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: white;
    box-shadow: 0 14px 40px rgba(43, 75, 128, .07);
}

.client-logo-card img {
    width: auto;
    max-width: 100%;
    max-height: 62px;
    object-fit: contain;
    display: block;
}

@keyframes clientsMove {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

/* Articles */
.articles-section {
    background: radial-gradient(circle at top right, rgba(255, 92, 151, 0.10), transparent 24rem);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.article-card {
    overflow: hidden;
    min-height: 420px;
    border-radius: 32px;
    background: white;
    border: 1px solid var(--border);
    box-shadow: 0 18px 60px rgba(43, 75, 128, 0.08);
    display: flex;
    flex-direction: column;
}

.article-image {
    display: block;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #eef2ff;
}

.article-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.article-body {
    padding: 22px 22px 0;
}

.article-tag {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--brand);
    font-size: .78rem;
    font-weight: 900;
    margin-bottom: 14px;
}

.article-card h3 {
    margin: 0 0 10px;
    font-size: 1.32rem;
    line-height: 1.45;
}

.article-card p {
    margin: 0;
    color: var(--muted);
}

.article-footer {
    margin-top: auto;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--brand);
    font-weight: 900;
}

.article-footer span {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
}

/* FAQ */
.faq-container {
    max-width: 880px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    padding: 20px 24px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: white;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 900;
}

.faq-list p {
    margin: 10px 0 0;
    color: var(--muted);
}

/* CTA */
.final-cta {
    padding: 90px 0;
}

.final-box {
    text-align: center;
    border-radius: 38px;
    padding: 58px 24px;
    background:
        radial-gradient(circle at 15% 10%, rgba(255,255,255,.18), transparent 20rem),
        linear-gradient(135deg, var(--brand), var(--brand-2) 55%, var(--accent));
    color: white;
    box-shadow: var(--shadow);
}

.final-box p {
    max-width: 700px;
    margin: 0 auto 28px;
    color: rgba(255,255,255,.76);
}

/* Fixed WhatsApp */
.fixed-whatsapp {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 80;
    min-height: 54px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    background: #25D366;
    color: white;
    font-weight: 900;
    box-shadow: 0 18px 42px rgba(37, 211, 102, .32);
}

.fixed-whatsapp svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Footer */
.footer {
    padding: 44px 0 24px;
    background: white;
    color: var(--ink);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr .8fr 1fr;
    gap: 32px;
}

.footer p {
    max-width: 420px;
    margin: 16px 0 0;
    color: var(--muted);
}

.footer-links {
    display: grid;
    gap: 10px;
    color: var(--muted);
}

.footer-cta {
    display: grid;
    align-content: start;
    gap: 6px;
}

.footer-cta span {
    color: var(--muted);
}

.footer-cta a {
    color: var(--brand);
    font-weight: 900;
    margin-top: 8px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--brand);
    background: #f8f9ff;
}

.footer-social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

/* Animation */
@media (prefers-reduced-motion: no-preference) {
    .js-ready .reveal {
        opacity: 0;
        transform: translateY(34px);
        transition: opacity .75s cubic-bezier(.2,.8,.2,1), transform .75s cubic-bezier(.2,.8,.2,1);
        transition-delay: var(--delay, 0ms);
        will-change: opacity, transform;
    }

    .js-ready .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .phone-card {
        animation: phoneEntrance .7s cubic-bezier(.2,.8,.2,1) .1s both, phoneFloat 7s ease-in-out 1.2s infinite;
    }

    .floating-card {
        animation: floatingCard 4.8s ease-in-out infinite;
    }

    .feature-card,
    .step-card,
    .price-card,
    .social-card,
    .article-card {
        transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
    }

    .feature-card:hover,
    .step-card:hover,
    .social-card:hover,
    .article-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 24px 70px rgba(43, 75, 128, 0.12);
        border-color: rgba(255, 92, 151, 0.24);
    }

    .price-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 28px 80px rgba(43, 75, 128, 0.16);
    }

    .price-card.featured:hover {
        transform: translateY(-18px);
    }
}

@keyframes phoneEntrance {
    from { opacity: 0; transform: translateY(34px) rotate(-2deg) scale(.96); }
    to { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(.7deg); }
}

@keyframes floatingCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Responsive */
@media (max-width: 1040px) {
    .hero-grid,
    .split-grid,
    .table-pay-grid {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .pricing-grid,
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .integration-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .nav-links,
    .ghost-link {
        display: none;
    }

    .makan-logo {
        width: 92px;
        max-width: 92px;
    }

    .hero {
        padding-top: 54px;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 13vw, 4rem);
    }

    .hero-visual {
        min-height: auto;
        padding-bottom: 120px;
    }

    .phone-card {
        width: 100%;
    }

    .phone-app-preview {
        height: 500px;
    }

    .floating-card {
        position: static;
        width: 100%;
        margin-top: 12px;
    }

    .features-grid,
    .steps-grid,
    .pricing-grid,
    .integration-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .feature-large {
        grid-column: span 1;
    }

    .price-card.featured {
        transform: none;
    }

    .section {
        padding: 66px 0;
    }

    .table-pay-visual {
        min-height: auto;
        padding-bottom: 130px;
    }

    .qr-table-card {
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
    }

    .slider-prev {
        right: 8px;
    }

    .slider-next {
        left: 8px;
    }

    .client-logo-card {
        width: 150px;
    }

    .fixed-whatsapp {
        width: 56px;
        padding: 0;
        justify-content: center;
    }

    .fixed-whatsapp span {
        display: none;
    }
}

@media (max-width: 430px) {
    .btn {
        min-height: 48px;
        padding-inline: 18px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .phone-app-preview {
        height: 440px;
    }

    .phone-slider-dots {
        bottom: 12px;
    }
}


/* Pricing More Features */
.pricing-features .extra-feature {
    display: none;
}

.price-card.show-all-features .pricing-features .extra-feature {
    display: list-item;
}

.more-features-btn {
    width: 100%;
    min-height: 44px;
    margin: -6px 0 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f8f9ff;
    color: var(--brand);
    font-weight: 900;
    cursor: pointer;
}

.price-card.featured .more-features-btn {
    border-color: rgba(255,255,255,.20);
    background: rgba(255,255,255,.10);
    color: white;
}


/* =========================
   Fix Articles Slider Layout
   ========================= */

.articles-section {
    overflow: hidden;
}

.articles-slider {
    position: relative !important;
    width: min(820px, 100%) !important;
    max-width: 820px !important;
    margin: 0 auto !important;
    padding: 0 56px 48px !important;
    overflow: hidden !important;
}

.articles-track {
    position: relative !important;
    width: 100% !important;
    min-height: 500px !important;
    display: block !important;
    overflow: hidden !important;
}

.articles-track .article-card,
.articles-track .article-slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 460px !important;
    margin: 0 !important;
    opacity: 0 !important;
    transform: translateY(18px) scale(.985) !important;
    pointer-events: none !important;
    z-index: 1 !important;
    transition:
        opacity .45s ease,
        transform .45s ease !important;
}

.articles-track .article-slide.is-active {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
    z-index: 2 !important;
}

.articles-track .article-image {
    width: 100% !important;
    height: 210px !important;
    display: block !important;
    overflow: hidden !important;
}

.articles-track .article-image img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
}

.articles-prev,
.articles-next {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.articles-prev {
    right: 0 !important;
}

.articles-next {
    left: 0 !important;
}

.articles-dots {
    position: absolute !important;
    right: 50% !important;
    bottom: 0 !important;
    transform: translateX(50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.articles-dot {
    width: 9px !important;
    height: 9px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(43, 75, 128, .24) !important;
    cursor: pointer !important;
}

.articles-dot.is-active {
    background: var(--brand) !important;
    transform: scale(1.18) !important;
}

@media (max-width: 760px) {
    .articles-slider {
        width: 100% !important;
        padding: 0 42px 44px !important;
    }

    .articles-track {
        min-height: 540px !important;
    }

    .articles-track .article-card,
    .articles-track .article-slide {
        min-height: 500px !important;
    }

    .articles-prev {
        right: 0 !important;
    }

    .articles-next {
        left: 0 !important;
    }
}

/* =========================
   Articles Card + Buttons Shadow
   ========================= */

.articles-track .article-card,
.articles-track .article-slide {
    border: 1px solid rgba(43, 75, 128, 0.12) !important;
    box-shadow:
        0 16px 50px rgba(43, 75, 128, 0.08),
        0 2px 8px rgba(43, 75, 128, 0.04) !important;
    background: #fff !important;
}

.articles-track .article-slide.is-active {
    box-shadow:
        0 18px 58px rgba(43, 75, 128, 0.10),
        0 3px 10px rgba(43, 75, 128, 0.04) !important;
}

/* أزرار السلايدر */
.articles-slider .slider-btn,
.articles-prev,
.articles-next {
    width: 46px !important;
    height: 46px !important;
    border: 1px solid rgba(43, 75, 128, 0.12) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: var(--brand) !important;
    box-shadow:
        0 12px 34px rgba(43, 75, 128, 0.12),
        0 2px 7px rgba(43, 75, 128, 0.05) !important;
}

/* هوفر خفيف ومتجانس */
.articles-slider .slider-btn:hover,
.articles-prev:hover,
.articles-next:hover {
    transform: translateY(-50%) translateY(-2px) !important;
    box-shadow:
        0 16px 42px rgba(43, 75, 128, 0.16),
        0 3px 9px rgba(43, 75, 128, 0.06) !important;
}

/* نقاط السلايدر */
.articles-dot {
    box-shadow: none !important;
}

.articles-dot.is-active {
    box-shadow: 0 4px 12px rgba(43, 75, 128, 0.18) !important;
}

.articles-prev,
.articles-next {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* =========================
   Clean Articles Slider Shadow
   ========================= */

/* خفف قصّ الظل داخل السلايدر */
.articles-slider {
    overflow: visible !important;
    padding-top: 8px !important;
    padding-bottom: 64px !important;
}

/* نخلي التراك يسمح للظل يظهر */
.articles-track {
    overflow: visible !important;
}

/* الكارد نفسه: ظل منطقي نازل لتحت */
.articles-track .article-card,
.articles-track .article-slide {
    background: #fff !important;
    border: 1px solid rgba(43, 75, 128, 0.10) !important;
    box-shadow: 0 18px 45px rgba(43, 75, 128, 0.10) !important;
}

/* لا نغيّر الظل عند التفعيل عشان ما يحس أنه يقفز أو ينعكس */
.articles-track .article-slide.is-active {
    box-shadow: 0 18px 45px rgba(43, 75, 128, 0.10) !important;
}

/* أزرار السلايدر: ظل صغير ومنطقي */
.articles-slider .slider-btn,
.articles-prev,
.articles-next {
    background: #fff !important;
    border: 1px solid rgba(43, 75, 128, 0.10) !important;
    box-shadow: 0 10px 24px rgba(43, 75, 128, 0.12) !important;
}

/* لا تضيف ظل مختلف بالهوفر */
.articles-slider .slider-btn:hover,
.articles-prev:hover,
.articles-next:hover {
    box-shadow: 0 12px 28px rgba(43, 75, 128, 0.14) !important;
}

/* إلغاء أي ظل من النقاط */
.articles-dot,
.articles-dot.is-active {
    box-shadow: none !important;
}

/* Testimonials text size */
.testimonial-slide p {
    font-size: 0.98rem !important;
    line-height: 1.9 !important;
    font-weight: 650 !important;
    max-width: 560px !important;
}

.testimonial-slide strong {
    font-size: 0.95rem !important;
}

.testimonial-slide small,
.testimonial-slide span {
    font-size: 0.86rem !important;
}

/* Payment Logos Bigger */
.payment-logos {
    gap: 14px !important;
    margin: 26px 0 !important;
}

.payment-logos img {
    height: 42px !important;
    max-width: 120px !important;
    width: auto !important;
    padding: 7px 12px !important;
    border-radius: 14px !important;
    background: #fff !important;
    border: 1px solid rgba(43, 75, 128, 0.10) !important;
    object-fit: contain !important;
    box-shadow: 0 8px 22px rgba(43, 75, 128, 0.07) !important;
}

@media (max-width: 480px) {
    .payment-logos img {
        height: 36px !important;
        max-width: 96px !important;
        padding: 6px 9px !important;
    }
}


/* =========================
   Hero Floating Cards Icons
   ========================= */

.floating-card {
    overflow: visible !important;
}

.floating-card-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 15px;
    font-size: 1.05rem;
}

.trend-icon {
    color: #16a34a;
    background: rgba(34, 197, 94, 0.14);
}

.rating-icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.16);
}

.card-orders small {
    color: #16a34a !important;
    font-weight: 800 !important;
}

.card-rating small {
    color: #b45309 !important;
    font-weight: 800 !important;
}

/* Mobile: تخلي الكروت فوق الجوال بدل ما تنزل تحت */
@media (max-width: 760px) {
    .hero-visual {
        position: relative !important;
        min-height: 570px !important;
        padding-bottom: 0 !important;
        overflow: visible !important;
    }

    .phone-card {
        width: min(330px, calc(100% - 34px)) !important;
        margin-inline: auto !important;
    }

    .floating-card {
        position: absolute !important;
        z-index: 8 !important;
        width: 145px !important;
        margin-top: 0 !important;
        padding: 13px 13px 12px !important;
        border-radius: 20px !important;
    }

    .floating-card-icon {
        width: 36px !important;
        height: 36px !important;
        margin-bottom: 8px !important;
        border-radius: 13px !important;
        font-size: 0.9rem !important;
    }

    .floating-card span {
        font-size: 0.72rem !important;
        line-height: 1.3 !important;
    }

    .floating-card strong {
        font-size: 1.35rem !important;
        line-height: 1.15 !important;
    }

    .floating-card small {
        font-size: 0.66rem !important;
        line-height: 1.3 !important;
    }

    .card-orders {
        right: 4px !important;
        top: 74px !important;
    }

    .card-rating {
        left: 4px !important;
        bottom: 92px !important;
    }
}

@media (max-width: 430px) {
    .hero-visual {
        min-height: 515px !important;
    }

    .phone-card {
        width: min(285px, calc(100% - 30px)) !important;
    }

    .floating-card {
        width: 128px !important;
        padding: 11px 11px 10px !important;
    }

    .floating-card strong {
        font-size: 1.18rem !important;
    }

    .floating-card span {
        font-size: 0.68rem !important;
    }

    .floating-card small {
        font-size: 0.61rem !important;
    }

    .card-orders {
        right: 0 !important;
        top: 62px !important;
    }

    .card-rating {
        left: 0 !important;
        bottom: 72px !important;
    }
}

/* =========================
   Features Cards Layout Fix
   ========================= */

/* الكمبيوتر: كل مربعات المزايا نفس المقاس */
.features-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    align-items: stretch !important;
}

.feature-card,
.feature-card.feature-large {
    grid-column: auto !important;
    width: 100% !important;
    min-height: 245px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

/* توحيد المسافات الداخلية */
.feature-card {
    padding: 24px !important;
}

.feature-card h3 {
    margin: 18px 0 8px !important;
    min-height: 46px !important;
}

.feature-card p {
    margin: 0 !important;
}

/* التابلت: 2 جنب بعض */
@media (max-width: 1040px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* الجوال: 2 جنب بعض */
@media (max-width: 760px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .feature-card,
    .feature-card.feature-large {
        min-height: 210px !important;
        padding: 18px 14px !important;
        border-radius: 22px !important;
    }

    .feature-icon {
        width: 44px !important;
        height: 44px !important;
        border-radius: 16px !important;
        font-size: 1.1rem !important;
    }

    .feature-card h3 {
        font-size: 0.92rem !important;
        line-height: 1.45 !important;
        min-height: auto !important;
        margin: 14px 0 6px !important;
    }

    .feature-card p {
        font-size: 0.78rem !important;
        line-height: 1.65 !important;
    }
}

/* الجوال الصغير جدًا: نخليها برضه 2 جنب بعض لكن أضيق */
@media (max-width: 430px) {
    .features-grid {
        gap: 10px !important;
    }

    .feature-card,
    .feature-card.feature-large {
        min-height: 200px !important;
        padding: 16px 12px !important;
    }

    .feature-card h3 {
        font-size: 0.86rem !important;
    }

    .feature-card p {
        font-size: 0.74rem !important;
    }
}

.feature-card.feature-large {
    grid-column: auto !important;
}

/* =========================
   MKAN Auth Pages + Preloader
   ========================= */

/* Preloader */
.mkan-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 80% 10%, rgba(17, 17, 17, 0.055), transparent 28rem),
        radial-gradient(circle at 10% 80%, rgba(17, 17, 17, 0.045), transparent 24rem),
        var(--bg, #f7f7f5);
    transition: opacity .45s ease, visibility .45s ease;
}

.mkan-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mkan-loader-card {
    width: min(260px, calc(100% - 48px));
    min-height: 220px;
    display: grid;
    place-items: center;
    gap: 16px;
    padding: 28px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(17, 17, 17, 0.09);
    box-shadow: 0 24px 70px rgba(17, 17, 17, 0.10);
}

.mkan-loader-logo {
    width: 112px;
    height: 58px;
    display: grid;
    place-items: center;
}

.mkan-loader-logo img {
    max-width: 112px;
    max-height: 58px;
    object-fit: contain;
}

.mkan-loader-ring {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid rgba(17, 17, 17, 0.10);
    border-top-color: #111;
    animation: mkanSpin .85s linear infinite;
}

.mkan-loader-card p {
    margin: 0;
    color: var(--muted, #6f6f6a);
    font-size: .9rem;
    font-weight: 700;
}

@keyframes mkanSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Auth Layout */
.auth-section {
    min-height: calc(100vh - 72px);
    padding: 72px 0;
    display: grid;
    align-items: center;
    background:
        radial-gradient(circle at 82% 10%, rgba(17, 17, 17, 0.055), transparent 26rem),
        radial-gradient(circle at 12% 75%, rgba(143, 143, 134, 0.12), transparent 24rem);
}

.auth-grid {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 42px;
    align-items: center;
}

.auth-copy {
    max-width: 560px;
}

.auth-copy .pill {
    margin-bottom: 18px;
}

.auth-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4.2vw, 3.55rem);
    line-height: 1.22;
    letter-spacing: -0.025em;
}

.auth-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.auth-benefits {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.auth-benefits div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: 0 12px 32px rgba(17, 17, 17, 0.05);
    color: #222;
    font-weight: 750;
}

.auth-benefits i {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(17, 17, 17, 0.07);
    color: #111;
}

.auth-card {
    width: min(480px, 100%);
    margin-inline: auto;
    padding: 32px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.91);
    border: 1px solid rgba(17, 17, 17, 0.09);
    box-shadow: 0 24px 70px rgba(17, 17, 17, 0.10);
}

.auth-card-header {
    margin-bottom: 26px;
    text-align: center;
}

.auth-card-logo {
    width: 116px;
    max-width: 116px;
    height: auto;
    display: block;
    margin: 0 auto 18px;
    object-fit: contain;
}

.auth-card-header h2 {
    margin: 0 0 8px;
    font-size: 1.65rem;
    line-height: 1.35;
}

.auth-card-header p {
    margin: 0;
    color: var(--muted);
    font-size: .94rem;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field label {
    color: #222;
    font-weight: 850;
    font-size: .9rem;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap i {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: #888;
    font-size: .95rem;
}

.auth-field input {
    width: 100%;
    height: 54px;
    padding: 0 46px 0 16px;
    border: 1px solid rgba(17, 17, 17, 0.11);
    border-radius: 18px;
    background: #fff;
    color: #111;
    font: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-field input:focus {
    border-color: rgba(17, 17, 17, 0.36);
    box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.055);
}

.auth-error {
    color: #b91c1c;
    font-size: .82rem;
    font-weight: 700;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: .9rem;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.auth-check input {
    width: 16px;
    height: 16px;
    accent-color: #111;
}

.auth-link {
    color: #111;
    font-weight: 850;
}

.auth-submit {
    width: 100%;
    min-height: 54px;
    margin-top: 4px;
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(17, 17, 17, 0.18);
    transition: transform .2s ease, box-shadow .2s ease;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(17, 17, 17, 0.24);
}

.auth-switch {
    margin: 22px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    color: var(--muted);
    text-align: center;
    font-size: .94rem;
}

.auth-switch a {
    color: #111;
    font-weight: 900;
}

.auth-alert {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.18);
    color: #15803d;
    font-weight: 800;
    font-size: .9rem;
}

@media (max-width: 960px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-copy {
        text-align: center;
        margin-inline: auto;
    }

    .auth-benefits {
        max-width: 520px;
        margin-inline: auto;
    }
}

@media (max-width: 560px) {
    .auth-section {
        padding: 42px 0;
    }

    .auth-card {
        padding: 24px 18px;
        border-radius: 28px;
    }

    .auth-copy h1 {
        font-size: clamp(1.85rem, 9vw, 2.65rem);
    }

    .auth-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================
   Centered Auth Forms
   ========================= */

.auth-section {
    min-height: calc(100vh - 72px) !important;
    padding: 64px 0 !important;
    display: grid !important;
    align-items: center !important;
}

.auth-grid-centered {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.auth-grid-centered .auth-card {
    width: min(100%, 460px) !important;
    margin-inline: auto !important;
}

/* حجم احترافي للكرت */
.auth-card {
    padding: 34px 32px !important;
    border-radius: 32px !important;
}

/* تصغير الهيدر شوي */
.auth-card-header {
    margin-bottom: 24px !important;
}

.auth-card-logo {
    width: 108px !important;
    max-width: 108px !important;
    margin-bottom: 16px !important;
}

.auth-card-header h2 {
    font-size: 1.45rem !important;
    margin-bottom: 6px !important;
}

.auth-card-header p {
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
}

/* الحقول */
.auth-form {
    gap: 14px !important;
}

.auth-field input {
    height: 52px !important;
    border-radius: 17px !important;
}

/* زر الإرسال */
.auth-submit {
    min-height: 52px !important;
    margin-top: 6px !important;
}

/* الجوال */
@media (max-width: 560px) {
    .auth-section {
        min-height: calc(100vh - 64px) !important;
        padding: 38px 0 !important;
    }

    .auth-grid-centered .auth-card {
        width: 100% !important;
    }

    .auth-card {
        padding: 26px 18px !important;
        border-radius: 28px !important;
    }

    .auth-card-logo {
        width: 96px !important;
        max-width: 96px !important;
    }

    .auth-card-header h2 {
        font-size: 1.32rem !important;
    }
}

/* =========================
   404 Error Page
   ========================= */

.error-page {
    min-height: calc(100vh - 72px);
    padding: 72px 0;
    display: grid;
    align-items: center;
    background:
        radial-gradient(circle at 80% 12%, rgba(17, 17, 17, 0.055), transparent 28rem),
        radial-gradient(circle at 12% 78%, rgba(143, 143, 134, 0.12), transparent 24rem),
        var(--bg, #f7f7f5);
}

.error-card {
    width: min(100%, 640px);
    margin-inline: auto;
    padding: 46px 34px;
    text-align: center;
    border-radius: 38px;
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(17, 17, 17, 0.09);
    box-shadow: 0 24px 70px rgba(17, 17, 17, 0.10);
    position: relative;
    overflow: hidden;
}

.error-card::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -90px;
    top: -90px;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.045);
}

.error-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    left: -70px;
    bottom: -70px;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.035);
}

.error-logo,
.error-code,
.error-card h1,
.error-card p,
.error-actions,
.error-hint {
    position: relative;
    z-index: 2;
}

.error-logo {
    width: 118px;
    margin: 0 auto 20px;
}

.error-logo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.error-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 6px 0 20px;
    color: #111;
    font-size: clamp(4.5rem, 12vw, 7.4rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.error-symbol {
    width: clamp(62px, 11vw, 92px);
    height: clamp(62px, 11vw, 92px);
    display: grid;
    place-items: center;
    border-radius: 30px;
    background: #111;
    color: #fff;
    box-shadow: 0 18px 42px rgba(17, 17, 17, 0.18);
    transform: rotate(-6deg);
    animation: errorFloat 4.8s ease-in-out infinite;
}

.error-symbol i {
    font-size: clamp(1.75rem, 4vw, 2.55rem);
}

.error-card h1 {
    margin: 0 0 12px;
    color: #111;
    font-size: clamp(1.65rem, 3.5vw, 2.35rem);
    line-height: 1.35;
    font-weight: 900;
}

.error-card p {
    max-width: 470px;
    margin: 0 auto 28px;
    color: var(--muted, #6f6f6a);
    font-size: 1rem;
    line-height: 1.9;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.error-hint {
    width: fit-content;
    margin: 24px auto 0;
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.055);
    color: #333;
    font-size: 0.88rem;
    font-weight: 800;
}

.error-hint i {
    color: #111;
}

@keyframes errorFloat {
    0%, 100% {
        transform: translateY(0) rotate(-6deg);
    }

    50% {
        transform: translateY(-10px) rotate(3deg);
    }
}

@media (max-width: 560px) {
    .error-page {
        min-height: calc(100vh - 64px);
        padding: 42px 0;
    }

    .error-card {
        padding: 34px 18px;
        border-radius: 30px;
    }

    .error-logo {
        width: 102px;
    }

    .error-actions .btn {
        width: 100%;
    }

    .error-hint {
        border-radius: 18px;
        text-align: right;
        line-height: 1.7;
    }
}

/* =========================
   Google Auth Button
   ========================= */

.google-auth-btn {
    width: 100%;
    min-height: 52px;
    margin-bottom: 18px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    border: 1px solid rgba(17, 17, 17, 0.12);
    box-shadow: 0 12px 30px rgba(17, 17, 17, 0.06);
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.google-auth-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(17, 17, 17, 0.22);
    box-shadow: 0 16px 38px rgba(17, 17, 17, 0.10);
}

.google-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.055);
    color: #111;
    font-size: 1rem;
}

.auth-divider {
    position: relative;
    margin: 4px 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted, #6f6f6a);
    font-size: .84rem;
    font-weight: 800;
}

.auth-divider::before {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    top: 50%;
    height: 1px;
    background: rgba(17, 17, 17, 0.08);
}

.auth-divider span {
    position: relative;
    z-index: 2;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.94);
}

/* =========================
   Register Phone Field
   ========================= */

.phone-input-group {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 10px;
    align-items: center;
}

.country-code-select {
    width: 100%;
    height: 54px;
    padding: 0 12px;
    border: 1px solid rgba(17, 17, 17, 0.11);
    border-radius: 18px;
    background: #fff;
    color: #111;
    font: inherit;
    font-weight: 800;
    outline: none;
    cursor: pointer;
}

.country-code-select:focus {
    border-color: rgba(17, 17, 17, 0.36);
    box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.055);
}

.phone-wrap input {
    text-align: left;
    direction: ltr;
}

.auth-help {
    display: block;
    margin-top: 2px;
    color: var(--muted, #6f6f6a);
    font-size: 0.78rem;
    line-height: 1.6;
}

@media (max-width: 430px) {
    .phone-input-group {
        grid-template-columns: 112px 1fr;
        gap: 8px;
    }

    .country-code-select {
        height: 52px;
        font-size: 0.86rem;
        border-radius: 16px;
    }
}

/* =========================
   Phone Field Layout
   ========================= */

.phone-input-group {
    direction: ltr !important;
    display: grid !important;
    grid-template-columns: 122px 1fr !important;
    gap: 10px !important;
    align-items: center !important;
}

/* مفتاح الدولة يسار */
.country-code-select {
    order: 1 !important;
    width: 100% !important;
    height: 54px !important;
    padding: 0 12px !important;
    border: 1px solid rgba(17, 17, 17, 0.11) !important;
    border-radius: 18px !important;
    background: #fff !important;
    color: #111 !important;
    font: inherit !important;
    font-weight: 800 !important;
    outline: none !important;
    cursor: pointer !important;
    direction: ltr !important;
    text-align: left !important;
}

/* رقم الجوال يمين داخل المجموعة */
.phone-wrap {
    order: 2 !important;
    width: 100% !important;
}

.phone-wrap input {
    direction: ltr !important;
    text-align: left !important;
    letter-spacing: 0.02em !important;
}

.country-code-select:focus,
.phone-wrap input:focus {
    border-color: rgba(17, 17, 17, 0.36) !important;
    box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.055) !important;
}

.auth-help {
    display: block !important;
    margin-top: 2px !important;
    color: var(--muted, #6f6f6a) !important;
    font-size: 0.78rem !important;
    line-height: 1.6 !important;
}

@media (max-width: 430px) {
    .phone-input-group {
        grid-template-columns: 108px 1fr !important;
        gap: 8px !important;
    }

    .country-code-select {
        height: 52px !important;
        font-size: 0.84rem !important;
        border-radius: 16px !important;
        padding: 0 8px !important;
    }
    
}

/* =========================
   Simple Phone Field
   ========================= */

.phone-wrap {
    width: 100% !important;
}

.phone-wrap input {
    direction: ltr !important;
    text-align: left !important;
    letter-spacing: 0.02em !important;
}

/* =========================
   Auth Terms Note
   ========================= */

.auth-terms-note {
    margin: 2px 0 0 !important;
    color: var(--muted, #6f6f6a) !important;
    font-size: 0.82rem !important;
    line-height: 1.9 !important;
    text-align: center !important;
}

.auth-terms-note a {
    color: #111 !important;
    font-weight: 900 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
}

.auth-terms-note a:hover {
    opacity: 0.72 !important;
}


/* =========================
   Forgot Password Success
   ========================= */

.auth-success-state {
    text-align: center !important;
    display: grid !important;
    justify-items: center !important;
    gap: 14px !important;
}

.auth-success-icon {
    width: 72px !important;
    height: 72px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 24px !important;
    background: rgba(34, 197, 94, 0.12) !important;
    color: #16a34a !important;
    font-size: 1.9rem !important;
    margin-bottom: 2px !important;
}

.auth-success-state h3 {
    margin: 0 !important;
    color: #111 !important;
    font-size: 1.35rem !important;
    line-height: 1.45 !important;
    font-weight: 900 !important;
}

.auth-success-state p {
    max-width: 340px !important;
    margin: 0 0 8px !important;
    color: var(--muted, #6f6f6a) !important;
    font-size: 0.92rem !important;
    line-height: 1.9 !important;
}

/* =========================
   MKAN Blog Show Page
   ========================= */

.blog-show-hero {
    padding: 78px 0 46px;
    background:
        radial-gradient(circle at 82% 10%, rgba(17, 17, 17, 0.055), transparent 28rem),
        radial-gradient(circle at 12% 78%, rgba(143, 143, 134, 0.12), transparent 24rem),
        var(--bg, #f7f7f5);
}

.blog-show-hero-inner {
    max-width: 860px;
    margin-inline: auto;
    text-align: center;
}

.blog-show-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.blog-back-link,
.blog-category-pill {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(17, 17, 17, 0.09);
    color: #111;
    font-size: 0.86rem;
    font-weight: 850;
}

.blog-category-pill {
    background: rgba(17, 17, 17, 0.065);
}

.blog-show-hero h1 {
    max-width: 820px;
    margin: 0 auto 16px;
    color: #111;
    font-size: clamp(2rem, 4.2vw, 3.55rem);
    line-height: 1.28;
    letter-spacing: -0.025em;
    font-weight: 900;
}

.blog-show-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--muted, #6f6f6a);
    font-size: 1.05rem;
    line-height: 1.95;
}

.blog-info-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.blog-info-row span {
    min-height: 38px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.08);
    color: #555;
    font-size: 0.86rem;
    font-weight: 750;
    box-shadow: 0 10px 28px rgba(17, 17, 17, 0.045);
}

.blog-show-section {
    padding: 36px 0 86px;
}

.blog-show-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.blog-content-card {
    overflow: hidden;
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 17, 17, 0.09);
    box-shadow: 0 22px 64px rgba(17, 17, 17, 0.09);
}

.blog-featured-image {
    width: 100%;
    height: min(430px, 52vw);
    overflow: hidden;
    background: rgba(17, 17, 17, 0.045);
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.blog-content {
    padding: 42px;
    color: #222;
    font-size: 1.02rem;
    line-height: 2.12;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: #111;
    line-height: 1.45;
    letter-spacing: -0.015em;
    font-weight: 900;
}

.blog-content h2 {
    margin: 34px 0 14px;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.blog-content h3 {
    margin: 28px 0 12px;
    font-size: 1.35rem;
}

.blog-content p {
    margin: 0 0 18px;
}

.blog-content ul,
.blog-content ol {
    margin: 0 0 22px;
    padding-right: 22px;
}

.blog-content li {
    margin-bottom: 10px;
}

.blog-content strong {
    color: #111;
    font-weight: 900;
}

.blog-content a {
    color: #111;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.blog-content blockquote {
    margin: 28px 0;
    padding: 18px 20px;
    border-right: 4px solid #111;
    border-radius: 22px;
    background: rgba(17, 17, 17, 0.045);
    color: #333;
    font-weight: 750;
}

.blog-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 16px;
}

.blog-sidebar-card {
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 17, 17, 0.09);
    box-shadow: 0 18px 48px rgba(17, 17, 17, 0.07);
}

.blog-sidebar-logo {
    width: 108px;
    max-width: 108px;
    height: auto;
    display: block;
    margin-bottom: 18px;
}

.blog-sidebar-card h3 {
    margin: 0 0 10px;
    color: #111;
    font-size: 1.15rem;
    line-height: 1.55;
    font-weight: 900;
}

.blog-sidebar-card p {
    margin: 0 0 18px;
    color: var(--muted, #6f6f6a);
    font-size: 0.92rem;
    line-height: 1.85;
}

.blog-share-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-share-links a,
.copy-link-btn {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(17, 17, 17, 0.055);
    border: 1px solid rgba(17, 17, 17, 0.08);
    color: #111;
    font-size: 1.05rem;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.blog-share-links a:hover,
.copy-link-btn:hover {
    transform: translateY(-2px);
    background: #111;
    color: #fff;
}

.related-posts-section {
    padding: 0 0 86px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.related-post-card {
    overflow: hidden;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.09);
    box-shadow: 0 16px 44px rgba(17, 17, 17, 0.07);
    transition: transform .2s ease, box-shadow .2s ease;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 54px rgba(17, 17, 17, 0.10);
}

.related-post-image {
    height: 140px;
    display: block;
    overflow: hidden;
    background: rgba(17, 17, 17, 0.045);
}

.related-post-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.related-post-body {
    padding: 18px;
    display: grid;
    gap: 8px;
}

.related-post-body strong {
    color: #111;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 900;
}

.related-post-body small {
    color: var(--muted, #6f6f6a);
    font-size: 0.84rem;
    line-height: 1.75;
}

@media (max-width: 980px) {
    .blog-show-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .blog-show-hero {
        padding: 52px 0 30px;
    }

    .blog-show-hero h1 {
        font-size: clamp(1.75rem, 8.5vw, 2.55rem);
    }

    .blog-show-section {
        padding: 24px 0 62px;
    }

    .blog-content-card {
        border-radius: 28px;
    }

    .blog-content {
        padding: 26px 18px;
        font-size: 0.96rem;
        line-height: 2;
    }

    .blog-featured-image {
        height: 230px;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .error-actions .btn,
    .blog-sidebar-card .btn {
        width: 100%;
    }
}

/* =========================
   MKAN Blog Index Page
   ========================= */

.blog-index-hero {
    padding: 82px 0 50px;
    background:
        radial-gradient(circle at 82% 10%, rgba(17, 17, 17, 0.055), transparent 28rem),
        radial-gradient(circle at 12% 78%, rgba(143, 143, 134, 0.12), transparent 24rem),
        var(--bg, #f7f7f5);
}

.blog-index-hero-inner {
    max-width: 850px;
    margin-inline: auto;
    text-align: center;
}

.blog-index-hero h1 {
    max-width: 800px;
    margin: 18px auto 14px;
    color: #111;
    font-size: clamp(2rem, 4.2vw, 3.5rem);
    line-height: 1.28;
    letter-spacing: -0.025em;
    font-weight: 900;
}

.blog-index-hero p {
    max-width: 690px;
    margin: 0 auto;
    color: var(--muted, #6f6f6a);
    font-size: 1.04rem;
    line-height: 1.95;
}

.blog-index-search {
    position: relative;
    width: min(100%, 520px);
    margin: 28px auto 0;
}

.blog-index-search i {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: #777;
}

.blog-index-search input {
    width: 100%;
    height: 58px;
    padding: 0 50px 0 18px;
    border: 1px solid rgba(17, 17, 17, 0.10);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    font: inherit;
    outline: none;
    box-shadow: 0 16px 44px rgba(17, 17, 17, 0.07);
}

.blog-index-search input:focus {
    border-color: rgba(17, 17, 17, 0.28);
    box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.055), 0 18px 48px rgba(17, 17, 17, 0.08);
}

.blog-index-section {
    padding: 42px 0 90px;
}

.blog-featured-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: stretch;
    min-height: 360px;
    margin-bottom: 72px;
    border-radius: 38px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 17, 17, 0.09);
    box-shadow: 0 24px 70px rgba(17, 17, 17, 0.10);
}

.blog-featured-content {
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-featured-content h2 {
    margin: 18px 0 14px;
    color: #111;
    font-size: clamp(1.65rem, 3vw, 2.65rem);
    line-height: 1.35;
    letter-spacing: -0.02em;
    font-weight: 900;
}

.blog-featured-content p {
    margin: 0;
    color: var(--muted, #6f6f6a);
    font-size: 1rem;
    line-height: 1.95;
}

.blog-card-meta {
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.blog-card-meta span,
.blog-card-meta strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    font-weight: 850;
}

.blog-card-meta span {
    color: #666;
}

.blog-card-meta strong {
    color: #111;
}

.blog-featured-visual {
    min-height: 100%;
    background: rgba(17, 17, 17, 0.045);
}

.blog-featured-visual img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.blog-featured-placeholder {
    width: 100%;
    height: 100%;
    min-height: 360px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(17, 17, 17, 0.06), transparent 16rem),
        #f4f4f1;
}

.blog-featured-placeholder img {
    width: 150px;
    max-width: 150px;
    min-height: auto;
    height: auto;
    object-fit: contain;
}

.blog-list-heading {
    margin-bottom: 30px;
}

.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.blog-list-card {
    overflow: hidden;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 17, 17, 0.09);
    box-shadow: 0 16px 44px rgba(17, 17, 17, 0.07);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.blog-list-card:hover {
    transform: translateY(-5px);
    border-color: rgba(17, 17, 17, 0.16);
    box-shadow: 0 22px 60px rgba(17, 17, 17, 0.10);
}

.blog-list-image {
    height: 190px;
    display: block;
    overflow: hidden;
    background: rgba(17, 17, 17, 0.045);
}

.blog-list-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}

.blog-list-card:hover .blog-list-image img {
    transform: scale(1.04);
}

.blog-image-fallback {
    height: 100%;
    display: grid;
    place-items: center;
    background: #f4f4f1;
}

.blog-image-fallback img {
    width: 120px;
    max-width: 120px;
    height: auto;
    object-fit: contain;
}

.blog-list-body {
    padding: 22px 22px 0;
}

.blog-list-body h3 {
    margin: 14px 0 10px;
    color: #111;
    font-size: 1.16rem;
    line-height: 1.65;
    font-weight: 900;
}

.blog-list-body p {
    margin: 0;
    color: var(--muted, #6f6f6a);
    font-size: .92rem;
    line-height: 1.85;
}

.blog-list-footer {
    margin-top: auto;
    padding: 20px 22px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.blog-list-footer span,
.blog-list-footer a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .84rem;
    font-weight: 850;
}

.blog-list-footer span {
    color: #666;
}

.blog-list-footer a {
    color: #111;
}

.blog-empty-state,
.blog-no-results {
    width: min(100%, 540px);
    margin: 0 auto;
    padding: 42px 24px;
    text-align: center;
    border-radius: 30px;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.09);
    box-shadow: 0 18px 50px rgba(17, 17, 17, 0.07);
}

.blog-empty-state i,
.blog-no-results i {
    width: 66px;
    height: 66px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: rgba(17, 17, 17, 0.065);
    color: #111;
    font-size: 1.55rem;
}

.blog-empty-state h3,
.blog-no-results h3 {
    margin: 0 0 8px;
    color: #111;
    font-size: 1.25rem;
    font-weight: 900;
}

.blog-empty-state p,
.blog-no-results p {
    margin: 0;
    color: var(--muted, #6f6f6a);
}

.blog-search-item.is-hidden {
    display: none !important;
}

@media (max-width: 1040px) {
    .blog-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-featured-card {
        grid-template-columns: 1fr;
    }

    .blog-featured-visual {
        order: -1;
    }
}

@media (max-width: 640px) {
    .blog-index-hero {
        padding: 54px 0 34px;
    }

    .blog-index-hero h1 {
        font-size: clamp(1.75rem, 8.4vw, 2.55rem);
    }

    .blog-index-section {
        padding: 30px 0 66px;
    }

    .blog-featured-card {
        margin-bottom: 54px;
        border-radius: 30px;
    }

    .blog-featured-content {
        padding: 26px 20px;
    }

    .blog-featured-visual img,
    .blog-featured-placeholder {
        min-height: 230px;
    }

    .blog-cards-grid {
        grid-template-columns: 1fr;
    }

    .blog-list-card {
        min-height: 400px;
        border-radius: 26px;
    }

    .blog-list-image {
        height: 175px;
    }
}