/* تَكّة — صفحات عامة (هبوط، قانونية) */
@import url('takkah-brand.css');

/* ─── أيقونات الهبوط (نفس نهج الوصول السريع) ─── */
.takkah-landing-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    background: var(--takkah-primary-bg);
    color: var(--takkah-primary);
    font-size: 1.125rem;
    line-height: 1;
}

.takkah-landing-icon--lg {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    font-size: 1.375rem;
}

.takkah-landing-icon .fa-solid,
.takkah-landing-icon .fa-regular,
.takkah-landing-icon .fa-brands {
    font-size: inherit;
}

/* ─── إطارات الأجهزة (معاينة النظام) ─── */
.takkah-device-wrap {
    width: 100%;
    margin-inline: auto;
    transition: max-width 0.35s ease;
}

.takkah-device-wrap--phone {
    max-width: 16.5rem;
}

.takkah-device-wrap--tablet {
    max-width: 26rem;
}

.takkah-device-frame {
    background: linear-gradient(160deg, var(--takkah-dark) 0%, var(--takkah-dark-soft) 100%);
    box-shadow: 0 24px 48px rgb(0 0 0 / 0.35), 0 0 0 1px rgb(255 255 255 / 0.08);
}

.takkah-device-frame--phone {
    border-radius: 2rem;
    padding: 0.65rem;
}

.takkah-device-frame--tablet {
    border-radius: 1.35rem;
    padding: 0.85rem;
}

.takkah-device-notch {
    width: 4.5rem;
    height: 0.35rem;
    margin: 0 auto 0.5rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.15);
}

.takkah-device-tablet-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 0.55rem;
}

.takkah-device-tablet-camera {
    display: block;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.2);
    box-shadow: 0 0 0 2px rgb(255 255 255 / 0.08);
}

.takkah-device-home-indicator {
    width: 5rem;
    height: 0.3rem;
    margin: 0.55rem auto 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.18);
}

.takkah-device-screen {
    overflow: hidden;
    background: var(--takkah-surface);
}

.takkah-device-screen--phone {
    border-radius: 1.35rem;
    min-height: 18rem;
    height: 18rem;
}

.takkah-device-screen--tablet {
    border-radius: 0.65rem;
    min-height: 16rem;
    height: 16rem;
    aspect-ratio: auto;
}

@media (min-width: 640px) {
    .takkah-device-wrap--phone {
        max-width: 17.5rem;
    }

    .takkah-device-screen--phone {
        min-height: 21rem;
        height: 21rem;
    }

    .takkah-device-wrap--tablet {
        max-width: 28rem;
    }

    .takkah-device-screen--tablet {
        min-height: 18rem;
        height: 18rem;
    }
}

@media (min-width: 1024px) {
    .takkah-device-wrap--tablet {
        max-width: 30rem;
    }

    .takkah-device-screen--tablet {
        min-height: 19.5rem;
        height: 19.5rem;
    }
}

@media (max-width: 380px) {
    .takkah-device-wrap--phone {
        max-width: 14.5rem;
    }

    .takkah-device-screen--phone {
        min-height: 16.5rem;
        height: 16.5rem;
    }

    .takkah-device-wrap--tablet {
        max-width: 100%;
    }

    .takkah-device-screen--tablet {
        min-height: 14.5rem;
        height: 14.5rem;
    }
}

.takkah-device-shot {
    display: block;
    width: 100%;
    height: auto;
}

.takkah-device-caption {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--takkah-muted);
}

.takkah-device-fallback-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 20rem;
    padding: 1.5rem;
    text-align: center;
    color: var(--takkah-muted);
    background: var(--takkah-surface-muted);
}

.takkah-device-fallback-icon i {
    font-size: 2rem;
    color: var(--takkah-primary);
}

.takkah-device-fallback-icon span {
    font-size: 0.8125rem;
    font-weight: 700;
}

.dark.takkah-landing .takkah-device-caption {
    color: var(--takkah-muted);
}

/* ─── معاينة النظام (تتبع الثيم — ليست صوراً ثابتة) ─── */
.takkah-preview-ui {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    background: var(--takkah-surface-muted);
    color: var(--takkah-body);
    font-size: 0.75rem;
}

.takkah-preview-ui__topbar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.65rem;
    background: var(--takkah-dark);
    color: var(--takkah-heading);
    flex-shrink: 0;
}

.takkah-preview-ui__dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.25);
}

.takkah-preview-ui__dot--primary {
    background: var(--takkah-primary);
}

.takkah-preview-ui__topbar-title {
    margin-inline-start: auto;
    font-size: 0.625rem;
    font-weight: 800;
    opacity: 0.75;
}

.takkah-preview-ui__body {
    flex: 1;
    padding: 0.55rem;
    overflow: hidden;
}

.takkah-preview-ui__grid {
    display: grid;
    gap: 0.45rem;
    height: 100%;
}

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

.takkah-preview-ui__tile {
    background: var(--takkah-surface);
    border: 1px solid var(--takkah-surface-border);
    border-radius: 0.65rem;
    padding: 0.45rem 0.35rem;
    text-align: center;
}

.takkah-preview-ui__tile-icon {
    width: 1.75rem;
    height: 1.75rem;
    margin: 0 auto 0.35rem;
    border-radius: 0.45rem;
    background: var(--takkah-primary-bg);
    color: var(--takkah-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.takkah-preview-ui__tile-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--takkah-heading);
    line-height: 1.25;
}

.takkah-preview-ui__tile-price {
    margin-top: 0.2rem;
    font-size: 0.6rem;
    font-weight: 900;
    color: var(--takkah-primary);
}

.takkah-preview-ui__footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.65rem;
    background: var(--takkah-surface);
    border-top: 1px solid var(--takkah-surface-border);
    font-weight: 700;
    color: var(--takkah-muted);
    flex-shrink: 0;
}

.takkah-preview-ui__footer-row strong {
    color: var(--takkah-heading);
    font-size: 0.9rem;
}

.takkah-preview-ui__cta {
    margin: 0 0.55rem 0.55rem;
    padding: 0.55rem;
    border-radius: 0.65rem;
    background: var(--takkah-primary);
    color: var(--takkah-dark);
    text-align: center;
    font-weight: 900;
    font-size: 0.65rem;
    flex-shrink: 0;
}

.takkah-preview-ui__invoice-head {
    padding: 0.75rem 0.65rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid var(--takkah-surface-border);
    background: var(--takkah-surface);
}

.takkah-preview-ui__invoice-logo {
    width: 2rem;
    height: 2rem;
    margin: 0 auto 0.35rem;
    border-radius: 0.55rem;
    background: var(--takkah-primary-bg);
    color: var(--takkah-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.takkah-preview-ui__invoice-no {
    font-weight: 900;
    color: var(--takkah-heading);
    font-size: 0.7rem;
}

.takkah-preview-ui__invoice-meta {
    margin-top: 0.15rem;
    font-size: 0.6rem;
    color: var(--takkah-muted);
    font-weight: 700;
}

.takkah-preview-ui__invoice-lines {
    list-style: none;
    margin: 0;
    padding: 0.55rem 0.65rem;
    flex: 1;
}

.takkah-preview-ui__invoice-lines li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.3rem 0;
    font-weight: 700;
    color: var(--takkah-body);
    font-size: 0.65rem;
}

.takkah-preview-ui__invoice-total {
    display: flex;
    justify-content: space-between;
    margin: 0 0.65rem;
    padding: 0.5rem 0.55rem;
    border-radius: 0.55rem;
    background: var(--takkah-surface);
    border: 1px solid var(--takkah-surface-border);
    font-weight: 800;
    color: var(--takkah-heading);
}

.takkah-preview-ui__invoice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    padding: 0.55rem 0.65rem 0.65rem;
}

.takkah-preview-ui__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--takkah-surface-border);
    background: var(--takkah-surface);
    color: var(--takkah-heading);
    font-size: 0.58rem;
    font-weight: 800;
}

.takkah-preview-ui__pill--green {
    border-color: rgb(22 163 74 / 0.25);
    background: rgb(22 163 74 / 0.1);
    color: #16a34a;
}

.dark .takkah-preview-ui__pill--green {
    color: #86efac;
}

.takkah-preview-ui__menu-header {
    padding: 0.65rem;
    text-align: center;
    background: var(--takkah-surface);
    border-bottom: 1px solid var(--takkah-surface-border);
}

.takkah-preview-ui__menu-store {
    font-weight: 900;
    color: var(--takkah-heading);
    font-size: 0.75rem;
}

.takkah-preview-ui__menu-sub {
    margin-top: 0.15rem;
    font-size: 0.58rem;
    color: var(--takkah-muted);
    font-weight: 700;
}

.takkah-preview-ui__qr {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    width: 4.5rem;
    margin: 0.65rem auto;
    padding: 0.35rem;
    border-radius: 0.45rem;
    background: var(--takkah-surface);
    border: 1px solid var(--takkah-surface-border);
}

.takkah-preview-ui__qr span {
    aspect-ratio: 1;
    border-radius: 1px;
    background: var(--takkah-surface-muted);
}

.takkah-preview-ui__qr span.is-dark {
    background: var(--takkah-heading);
}

.takkah-preview-ui__qr span.is-mid {
    background: var(--takkah-muted);
}

.takkah-preview-ui__menu-list {
    list-style: none;
    margin: 0;
    padding: 0 0.65rem 0.65rem;
    flex: 1;
}

.takkah-preview-ui__menu-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--takkah-divider);
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--takkah-body);
}

.takkah-preview-ui__menu-list strong {
    color: var(--takkah-primary);
}

.takkah-preview-ui__dash-title {
    padding: 0.6rem 0.65rem 0.35rem;
    font-weight: 900;
    color: var(--takkah-heading);
    font-size: 0.7rem;
}

.takkah-preview-ui__dash-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
    padding: 0 0.55rem 0.55rem;
    flex: 1;
}

.takkah-preview-ui__dash-card {
    background: var(--takkah-surface);
    border: 1px solid var(--takkah-surface-border);
    border-radius: 0.6rem;
    padding: 0.45rem;
    text-align: center;
    font-size: 0.55rem;
    font-weight: 800;
    color: var(--takkah-heading);
    line-height: 1.3;
}

.takkah-preview-ui__dash-icon {
    width: 1.65rem;
    height: 1.65rem;
    margin: 0 auto 0.3rem;
    border-radius: 0.45rem;
    background: var(--takkah-primary-bg);
    color: var(--takkah-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* ─── شريط الجوال ─── */
.takkah-landing-nav-mobile {
    max-width: 62%;
}

.takkah-landing-nav-login {
    font-size: 0.7rem;
    line-height: 1;
    padding: 0.2rem 0.15rem;
    white-space: nowrap;
}

.takkah-landing-nav-cta {
    font-size: 0.7rem;
    line-height: 1.1;
    padding: 0.45rem 0.65rem;
    white-space: nowrap;
}

@media (min-width: 400px) {
    .takkah-landing-nav-mobile {
        max-width: none;
    }

    .takkah-landing-nav-login {
        font-size: 0.75rem;
        padding: 0.2rem 0.35rem;
    }

    .takkah-landing-nav-cta {
        font-size: 0.75rem;
        padding: 0.5rem 0.85rem;
    }
}

/* ─── مسار الكشك ─── */
.takkah-journey-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .takkah-journey-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

.takkah-journey-step {
    position: relative;
    padding: 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid var(--takkah-surface-border);
    background: var(--takkah-surface);
    text-align: center;
}

.takkah-journey-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.75rem;
    border-radius: 999px;
    background: var(--takkah-primary-bg);
    color: var(--takkah-primary);
    font-size: 0.875rem;
    font-weight: 900;
}

.takkah-journey-step__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    border-radius: 0.85rem;
    background: var(--takkah-primary-bg);
    color: var(--takkah-primary);
    font-size: 1.25rem;
}

/* ─── معاينة النظام (تبويبات) ─── */
.takkah-preview-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.takkah-preview-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--takkah-surface-border);
    background: var(--takkah-surface);
    color: var(--takkah-muted);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.takkah-preview-tab.is-active {
    border-color: var(--takkah-primary);
    background: var(--takkah-primary-bg);
    color: var(--takkah-primary);
}

.takkah-preview-panel {
    display: none;
    text-align: center;
}

.takkah-preview-panel.is-active {
    display: block;
    animation: takkah-preview-fade 0.35s ease;
}

@keyframes takkah-preview-fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.takkah-preview-disclaimer {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--takkah-primary-bg);
    color: var(--takkah-primary);
    font-size: 0.75rem;
    font-weight: 800;
}

/* ─── قطاعات الاستخدام (مميزة) ─── */
.takkah-use-case--featured {
    border-width: 2px;
    border-color: color-mix(in oklab, var(--takkah-primary) 35%, var(--takkah-surface-border));
    background: linear-gradient(180deg, var(--takkah-primary-bg) 0%, var(--takkah-surface-muted) 100%);
}

.takkah-use-case-badge {
    display: inline-block;
    margin-bottom: 0.65rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--takkah-primary-bg);
    color: var(--takkah-primary);
    font-size: 0.65rem;
    font-weight: 900;
}

/* ─── لماذا تثق بنا ─── */
.takkah-trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .takkah-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .takkah-trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.takkah-trust-card {
    padding: 1.25rem;
    border-radius: 1.25rem;
    border: 1px solid var(--takkah-surface-border);
    background: var(--takkah-surface);
}

.takkah-trust-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.75rem;
    border-radius: 0.65rem;
    background: var(--takkah-primary-bg);
    color: var(--takkah-primary);
    font-size: 1.125rem;
}

.takkah-pricing-launch-badge {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid color-mix(in oklab, var(--takkah-primary) 40%, transparent);
    background: var(--takkah-primary-bg);
    color: var(--takkah-primary);
    font-size: 0.75rem;
    font-weight: 900;
}

/* ─── صفحة الهبوط — الوضع الداكن ─── */
.dark body.takkah-landing {
    background-color: var(--takkah-surface-muted);
    color: var(--takkah-body);
}

.dark.takkah-landing .bg-takkah-light,
.dark body.takkah-landing.bg-takkah-light {
    background-color: var(--takkah-surface-muted) !important;
}

.dark.takkah-landing nav.bg-white,
.dark.takkah-landing .bg-white,
.dark.takkah-landing .bg-white\/90 {
    background-color: color-mix(in oklab, var(--takkah-surface) 92%, transparent) !important;
    border-color: var(--takkah-surface-border) !important;
}

.dark.takkah-landing .text-gray-800,
.dark.takkah-landing .text-gray-700,
.dark.takkah-landing .text-gray-600 {
    color: var(--takkah-body) !important;
}

.dark.takkah-landing .text-gray-500,
.dark.takkah-landing .text-gray-400 {
    color: var(--takkah-muted) !important;
}

.dark.takkah-landing .text-takkah-dark {
    color: var(--takkah-heading) !important;
}

.dark.takkah-landing .border-gray-100,
.dark.takkah-landing .border-gray-200 {
    border-color: var(--takkah-surface-border) !important;
}

.dark.takkah-landing .bg-gray-50,
.dark.takkah-landing .bg-gray-50\/50,
.dark.takkah-landing .bg-gray-50\/60 {
    background-color: var(--takkah-surface-elevated) !important;
}

.dark.takkah-landing section.bg-white {
    background-color: var(--takkah-surface-muted) !important;
}

.dark.takkah-landing .shadow-sm,
.dark.takkah-landing .shadow-lg,
.dark.takkah-landing .shadow-xl,
.dark.takkah-landing .shadow-2xl {
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08) !important;
}

.dark.takkah-landing .takkah-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgb(255 255 255 / 0.04) 1px, transparent 0);
}

/* بطاقات الباقات والثقة */
.dark.takkah-landing .rounded-3xl.bg-white,
.dark.takkah-landing .rounded-2xl.border-gray-100 {
    background-color: var(--takkah-surface) !important;
    border-color: var(--takkah-surface-border) !important;
}

.dark.takkah-landing .border-green-100,
.dark.takkah-landing .bg-green-50,
.dark.takkah-landing .bg-green-50\/60 {
    background-color: rgb(22 163 74 / 0.12) !important;
    border-color: rgb(74 222 128 / 0.25) !important;
}

.dark.takkah-landing .text-green-700 {
    color: #86efac !important;
}

/* ─── صفحات قانونية ─── */
.dark body.takkah-legal {
    background-color: var(--takkah-surface-muted);
    color: var(--takkah-body);
}

.dark.takkah-legal nav.bg-white {
    background-color: var(--takkah-surface) !important;
    border-color: var(--takkah-surface-border) !important;
}

.dark.takkah-legal .text-gray-800,
.dark.takkah-legal .text-gray-600 {
    color: var(--takkah-body) !important;
}

.dark.takkah-legal .text-gray-500,
.dark.takkah-legal .text-gray-400 {
    color: var(--takkah-muted) !important;
}

.dark.takkah-legal .text-takkah-dark {
    color: var(--takkah-heading) !important;
}

.dark.takkah-legal .bg-white {
    background-color: var(--takkah-surface) !important;
}

.dark.takkah-legal .border-gray-100 {
    border-color: var(--takkah-surface-border) !important;
}

.dark.takkah-legal .bg-takkah-light {
    background-color: var(--takkah-surface-elevated) !important;
    border-color: var(--takkah-surface-border) !important;
}

.dark.takkah-legal .shadow-sm,
.dark.takkah-legal [class*='shadow-'] {
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08) !important;
}

.dark.takkah-landing .takkah-journey-step,
.dark.takkah-landing .takkah-trust-card,
.dark.takkah-landing .takkah-preview-tab {
    background-color: var(--takkah-surface) !important;
    border-color: var(--takkah-surface-border) !important;
}

.dark.takkah-landing .takkah-preview-tab.is-active {
    background-color: var(--takkah-primary-bg) !important;
    border-color: var(--takkah-primary) !important;
    color: var(--takkah-primary) !important;
}

.dark.takkah-landing .takkah-use-case--featured {
    background: linear-gradient(180deg, var(--takkah-primary-bg) 0%, var(--takkah-surface) 100%) !important;
    border-color: color-mix(in oklab, var(--takkah-primary) 35%, var(--takkah-surface-border)) !important;
}

.bg-takkah-dark .takkah-device-caption,
.bg-takkah-dark-soft .takkah-device-caption {
    color: #9ca3af;
}
