/* تَكّة — أنماط صفحات لوحة المنشأة (بدون Tailwind) — هوية «ومضة» */
@import url('takkah-brand.css');

.takkah-page {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', ui-sans-serif, system-ui, sans-serif;
}

.takkah-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.takkah-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    border: 2px solid var(--takkah-primary-soft);
    background: var(--takkah-primary-bg);
}

.takkah-banner-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--takkah-warning-text);
}

.takkah-banner-text {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    color: var(--takkah-warning-muted);
}

.takkah-welcome {
    padding: 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(to left, #14141F, #2D2D3A);
    color: #fff;
    box-shadow: 0 4px 14px rgba(20, 20, 31, 0.25);
}

.takkah-welcome-tag {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: #FF6B35;
}

.takkah-welcome-title {
    margin: 0.35rem 0 0;
    font-size: 1.5rem;
    font-weight: 800;
}

.takkah-welcome-meta {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    opacity: 0.85;
}

.takkah-section-title {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--takkah-heading);
}

.takkah-section-icon {
    margin-inline-end: 0.35rem;
    color: var(--takkah-primary);
    font-size: 1rem;
}

.takkah-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .takkah-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .takkah-cards-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.takkah-card {
    display: block;
    padding: 1rem;
    border-radius: 0.75rem;
    background: var(--takkah-surface);
    border: 1px solid var(--takkah-surface-border);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    box-sizing: border-box;
    min-height: 7.5rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.takkah-card:hover:not(.is-disabled) {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.takkah-card.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: var(--takkah-surface-muted);
    pointer-events: none;
}

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

.takkah-card-icon .fa-solid,
.takkah-card-icon .fa-regular {
    font-size: 1.125rem;
}

.takkah-card-label {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--takkah-heading);
    line-height: 1.3;
}

.takkah-card-group {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--takkah-muted);
}

.takkah-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
}

.takkah-badge-warning {
    background: #FFE8DC;
    color: #C2410C;
}

.takkah-badge-upgrade {
    background: #FFE8DC;
    color: #C2410C;
}

.takkah-panel {
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: var(--takkah-surface);
    border: 1px solid var(--takkah-surface-border);
    color: var(--takkah-body);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.takkah-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.takkah-checklist li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.875rem;
}

.takkah-dot-done { color: #16a34a; }
.takkah-dot-pending { color: #9ca3af; }

/* نقطة البيع */
.takkah-pos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .takkah-pos {
        grid-template-columns: 2fr 1fr;
    }
}

.takkah-pos-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .takkah-pos-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .takkah-pos-products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.takkah-pos-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.takkah-cat-btn {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid var(--takkah-surface-border);
    background: var(--takkah-surface);
    color: var(--takkah-heading);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.takkah-cat-btn.is-active {
    background: #FF6B35;
    border-color: #FF6B35;
    color: #14141F;
}

.takkah-cat-btn.is-locked:not(.is-active) {
    opacity: 0.65;
    border-style: dashed;
}

.takkah-product-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--takkah-surface-border);
    background: var(--takkah-surface);
    color: var(--takkah-heading);
    text-align: right;
    cursor: pointer;
    font-family: inherit;
}

.takkah-product-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.takkah-product-btn.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.35);
}

.takkah-product-btn.is-disabled:hover {
    box-shadow: none;
}

.takkah-pos-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(17, 24, 39, 0.55);
}

.takkah-pos-modal {
    width: 100%;
    max-width: 24rem;
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: var(--takkah-surface);
    border: 1px solid var(--takkah-surface-border);
    text-align: center;
    box-shadow: 0 20px 50px var(--takkah-shadow);
    color: var(--takkah-body);
}

.takkah-pos-modal-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    border-radius: 9999px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 3rem;
}

.takkah-pos-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--takkah-heading);
}

.takkah-pos-modal-sub {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: var(--takkah-muted);
}

.takkah-pos-qr-wrap {
    margin-top: 1rem;
}

.takkah-pos-qr {
    width: 11rem;
    height: 11rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.takkah-pos-qr-hint {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: var(--takkah-body);
    line-height: 1.5;
}

.takkah-cart {
    position: sticky;
    top: 1rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background: var(--takkah-surface);
    border: 1px solid var(--takkah-surface-border);
    color: var(--takkah-body);
}

.takkah-stats-row {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .takkah-stats-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.takkah-stat-box {
    padding: 1.25rem;
    border-radius: 1rem;
    background: var(--takkah-surface);
    border: 1px solid var(--takkah-surface-border);
    text-align: center;
}

.takkah-stat-label {
    margin: 0;
    font-size: 0.875rem;
    color: var(--takkah-muted);
}

.takkah-stat-value {
    margin: 0.35rem 0 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--takkah-heading);
}

.takkah-stat-box--accent .takkah-stat-value {
    color: #FF6B35;
}

.takkah-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.takkah-table-actions-head {
    width: 9rem;
    text-align: center !important;
}

.takkah-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
}

.takkah-row-btn {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
}

.takkah-row-btn--primary {
    background: #FF6B35;
    color: #14141F;
    border-color: #FF8555;
}

.takkah-row-btn--ghost {
    background: var(--takkah-surface-elevated);
    color: var(--takkah-heading);
    border-color: var(--takkah-input-border);
}

.takkah-row-btn:hover {
    opacity: 0.92;
}

.takkah-card--success {
    border-color: #86efac;
    background: #f0fdf4;
}

.takkah-card--warning {
    border: 2px dashed #fca5a5;
    background: #fef2f2;
}

.takkah-card__title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 800;
}

.takkah-grid {
    display: grid;
    gap: 1rem;
}

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

.takkah-muted {
    color: var(--takkah-muted);
    font-size: 0.875rem;
}

.takkah-checklist li {
    color: var(--takkah-body);
}

/* حاوية المحتوى — عرض مريح ومحاذاة RTL */
.takkah-content {
    width: 100%;
    max-width: 48rem;
    margin-inline: auto;
}

.takkah-content--wide {
    max-width: 64rem;
}

.takkah-page .fi-header-heading {
    font-family: inherit;
}

/* صفحات Filament الأصلية (نماذج/جداول) — بدون غلاف takkah-panel */
.takkah-filament-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 100%;
}

.takkah-filament-page .takkah-form-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* بطل الصفحة */
.takkah-hero {
    padding: 1.5rem 1.75rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #14141F 0%, #2D2D3A 100%);
    color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(59, 44, 106, 0.2);
}

.takkah-hero-eyebrow {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #FF6B35;
}

.takkah-hero-title {
    margin: 0.35rem 0 0;
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.35;
}

.takkah-hero-desc {
    margin: 0.65rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* خطوات مرقّمة — محاذاة يمين صحيحة */
.takkah-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.takkah-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: var(--takkah-surface);
    border: 1px solid var(--takkah-surface-border);
    color: var(--takkah-body);
    text-align: right;
    transition: box-shadow 0.15s ease;
}

.takkah-step:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.takkah-step-num {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: #FF6B35;
    color: #14141F;
    font-size: 1rem;
    font-weight: 800;
}

.takkah-step-body {
    flex: 1;
    min-width: 0;
}

.takkah-step-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--takkah-heading);
}

.takkah-step-text {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--takkah-body);
}

@media (min-width: 768px) {
    .takkah-steps--grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .takkah-steps--grid .takkah-step:nth-child(5) {
        grid-column: 1 / -1;
    }
}

/* بطاقات تنبيه / نصائح */
.takkah-tips {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

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

.takkah-tip {
    padding: 1.125rem 1.25rem;
    border-radius: 1rem;
    text-align: right;
}

.takkah-tip--info {
    background: var(--takkah-light);
    border: 1px solid #FFE8DC;
}

.takkah-tip--warn {
    background: var(--takkah-primary-bg);
    border: 1px solid var(--takkah-primary-soft);
}

.takkah-tip-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--takkah-heading);
}

.takkah-tip--warn .takkah-tip-title {
    color: var(--takkah-warning-text);
}

.takkah-tip-text {
    margin: 0.4rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--takkah-body);
}

.takkah-tip--warn .takkah-tip-text {
    color: var(--takkah-warning-muted);
}

.takkah-tip-list {
    margin: 0.5rem 0 0;
    padding-right: 1.25rem;
    list-style: disc;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--takkah-body);
}

.takkah-tip--warn .takkah-tip-list {
    color: var(--takkah-warning-muted);
}

.takkah-tip strong {
    color: var(--takkah-heading);
    font-weight: 800;
}

.takkah-tip--warn strong {
    color: var(--takkah-warning-text);
}

/* منيو QR */
.takkah-qr-wrap {
    max-width: 28rem;
    margin-inline: auto;
    text-align: center;
}

.takkah-qr-card {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    background: var(--takkah-surface);
    border: 1px solid var(--takkah-surface-border);
    box-shadow: 0 4px 16px var(--takkah-shadow);
    color: var(--takkah-body);
}

.takkah-qr-img {
    display: block;
    max-width: 220px;
    margin-inline: auto;
    border-radius: 0.75rem;
    border: 4px solid #FF6B35;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.takkah-qr-url {
    margin-top: 1.25rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    background: var(--takkah-surface-muted);
    border: 1px solid var(--takkah-surface-border);
    color: var(--takkah-body);
    font-size: 0.75rem;
    font-family: ui-monospace, monospace;
    word-break: break-all;
    text-align: left;
    direction: ltr;
}

.takkah-qr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.takkah-upgrade-box {
    max-width: 28rem;
    margin-inline: auto;
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: 1rem;
    background: linear-gradient(180deg, var(--takkah-primary-bg) 0%, var(--takkah-surface) 100%);
    border: 2px solid var(--takkah-primary-soft);
    color: var(--takkah-body);
}

.takkah-upgrade-box .takkah-hero-title {
    color: var(--takkah-heading);
    font-size: 1.25rem;
}

.takkah-upgrade-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

/* نماذج داخل الصفحات */
.takkah-form-wrap {
    max-width: 36rem;
    padding: 1.5rem;
    border-radius: 1rem;
    background: var(--takkah-surface);
    border: 1px solid var(--takkah-surface-border);
    color: var(--takkah-body);
}

/* جدول */
.takkah-table-wrap {
    overflow-x: auto;
}

.takkah-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: right;
}

.takkah-table thead {
    background: var(--takkah-surface-muted);
    color: var(--takkah-body);
}

.takkah-table th,
.takkah-table td {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--takkah-divider);
    color: var(--takkah-heading);
}

.takkah-table tbody tr:first-child td {
    border-top: none;
}

.takkah-table-empty {
    padding: 2rem 1rem !important;
    text-align: center !important;
    color: var(--takkah-muted);
}

.takkah-table .takkah-mono {
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
}

.takkah-table .takkah-amount {
    font-weight: 700;
    color: var(--takkah-heading);
}

/* اختيار الباقة */
.takkah-package-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.takkah-package-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--takkah-surface-border);
    background: var(--takkah-surface);
    cursor: pointer;
    text-align: right;
    transition: border-color 0.15s, background 0.15s;
}

.takkah-package-option:hover {
    background: var(--takkah-surface-muted);
}

.takkah-package-option.is-selected {
    border-color: #FF6B35;
    background: var(--takkah-primary-bg);
    box-shadow: 0 0 0 1px #FF6B35;
}

.takkah-package-option input {
    flex-shrink: 0;
    accent-color: #14141F;
}

.takkah-package-name {
    display: block;
    font-weight: 800;
    color: var(--takkah-heading);
}

.takkah-package-meta {
    display: block;
    font-size: 0.8125rem;
    color: var(--takkah-muted);
    margin-top: 0.15rem;
}

.takkah-field {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--takkah-input-border);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.875rem;
    text-align: right;
    box-sizing: border-box;
    background: var(--takkah-input-bg);
    color: var(--takkah-heading);
}

.takkah-field-error {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: #dc2626;
}

.takkah-features-list {
    margin: 0.75rem 0 0;
    padding: 0 1rem 0 0;
    list-style: disc;
    color: var(--takkah-body);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.takkah-status-active {
    color: #16a34a;
    font-weight: 700;
}

/* إعدادات المنشأة — نموذج + معاينة فاتورة */
.takkah-content--settings {
    max-width: 72rem;
}

.takkah-settings-layout {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

.takkah-settings-form {
    min-width: 0;
}

.takkah-settings-form-actions {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--takkah-divider);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.takkah-settings-preview {
    min-width: 0;
    padding: 1rem;
    border-radius: 1rem;
    border: 2px solid var(--takkah-surface-border);
    background: var(--takkah-surface-muted);
}

.takkah-settings-preview-head {
    margin-bottom: 0.75rem;
    text-align: center;
}

.takkah-settings-preview-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--takkah-heading);
}

@media (min-width: 1024px) {
    .takkah-settings-layout {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 22rem);
    }

    .takkah-settings-preview {
        position: sticky;
        top: 5rem;
    }
}

@media (max-width: 1023px) {
    .takkah-settings-preview {
        order: -1;
    }
}

/* ─── نقطة البيع: عناصر مشتركة (نهاري/ليلي عبر المتغيرات) ─── */
.takkah-pos-locale-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.takkah-pos-locale-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--takkah-body);
}

.takkah-pos-locale-switch {
    display: inline-flex;
    border-radius: 0.75rem;
    border: 1px solid var(--takkah-surface-border);
    overflow: hidden;
    background: var(--takkah-surface);
}

.takkah-pos-locale-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    border: none;
    border-inline-start: 1px solid var(--takkah-surface-border);
    cursor: pointer;
    font-family: inherit;
    background: transparent;
    color: var(--takkah-muted);
}

.takkah-pos-locale-btn:first-child {
    border-inline-start: none;
}

.takkah-pos-locale-btn.is-active {
    background: var(--takkah-dark);
    color: #fff;
}

.takkah-pos-hint {
    margin: 0 0 0.75rem;
    font-size: 0.7rem;
    color: var(--takkah-muted);
    line-height: 1.4;
}

.takkah-pos-product-name {
    font-weight: 700;
    color: var(--takkah-heading);
}

.takkah-pos-product-price {
    margin-top: 0.25rem;
    font-weight: 800;
    color: var(--takkah-heading);
}

.takkah-pos-stock--ok { color: var(--takkah-muted); }
.takkah-pos-stock--low { color: #b45309; }
.takkah-pos-stock--out { color: #dc2626; }

.takkah-pos-badge-service {
    font-size: 0.65rem;
    background: #e0e7ff;
    color: #3730a3;
}

.dark .takkah-pos-badge-service {
    background: rgb(99 102 241 / 0.25);
    color: #c7d2fe;
}

.takkah-pos-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--takkah-muted);
}

.takkah-cart-lines {
    max-height: 20rem;
    overflow-y: auto;
}

.takkah-cart-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--takkah-divider);
}

.takkah-cart-line-name {
    font-weight: 700;
    color: var(--takkah-heading);
}

.takkah-cart-line-meta {
    font-size: 0.75rem;
    color: var(--takkah-muted);
}

.takkah-cart-qty-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--takkah-input-border);
    background: var(--takkah-surface-muted);
    color: var(--takkah-heading);
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.takkah-cart-qty-btn--add {
    border: none;
    background: #FFE8DC;
    color: var(--takkah-dark);
}

.dark .takkah-cart-qty-btn--add {
    background: rgb(255 107 53 / 0.25);
    color: #fff;
}

.takkah-cart-qty {
    font-weight: 700;
    min-width: 1.5rem;
    text-align: center;
    color: var(--takkah-heading);
}

.takkah-cart-empty {
    text-align: center;
    color: var(--takkah-muted);
    font-size: 0.875rem;
    padding: 1.5rem 0;
}

.takkah-pos-totals {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--takkah-body);
}

.takkah-pos-totals-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.takkah-pos-totals-row--muted {
    color: var(--takkah-muted);
}

.takkah-pos-totals-row--grand {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--takkah-heading);
    padding-top: 0.5rem;
    border-top: 1px solid var(--takkah-divider);
    margin-top: 0.5rem;
}

.takkah-pos-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--takkah-body);
}

.takkah-pos-select,
.takkah-pos-input {
    margin-top: 0.25rem;
    width: 100%;
    padding: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--takkah-input-border);
    background: var(--takkah-input-bg);
    color: var(--takkah-heading);
    font-family: inherit;
}

.takkah-pos-input::placeholder {
    color: var(--takkah-muted);
}

.takkah-pos-mixed-box {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: var(--takkah-surface-muted);
    border: 1px solid var(--takkah-surface-border);
}

.takkah-pos-warn-box {
    margin-top: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    font-size: 0.7rem;
    color: #92400e;
    line-height: 1.5;
}

.dark .takkah-pos-warn-box {
    background: rgb(245 158 11 / 0.12);
    border-color: rgb(245 158 11 / 0.35);
    color: #fcd34d;
}

.takkah-banner--paid-setup {
    border-color: #FF6B35 !important;
    background: linear-gradient(135deg, var(--takkah-primary-bg), var(--takkah-surface)) !important;
}

.takkah-card--compact {
    display: block;
    min-height: auto;
    padding: 1.5rem;
}

.takkah-card--highlight {
    border: 2px solid #FF6B35;
    background: linear-gradient(135deg, var(--takkah-primary-bg), var(--takkah-surface));
}

.takkah-qr-card .takkah-section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.takkah-qr-card .takkah-muted--center {
    text-align: center;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.takkah-text-center { text-align: center; }
.takkah-u-mb-0 { margin-bottom: 0; }
.takkah-u-mb-05 { margin-bottom: 0.5rem; }
.takkah-u-mb-1 { margin-bottom: 1rem; }
.takkah-u-mt-05 { margin-top: 0.5rem; }
.takkah-u-mt-075 { margin-top: 0.75rem; }
.takkah-u-mt-1 { margin-top: 1rem; }
.takkah-u-mt-125 { margin-top: 1.25rem; }
.takkah-stat-currency { font-size: 0.875rem; }

.takkah-pos-product-img {
    margin-bottom: 0.5rem;
    height: 5rem;
    width: 100%;
    border-radius: 0.75rem;
    object-fit: cover;
}

.takkah-pos-product-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 0.5rem;
}

.takkah-pos-product-meta {
    margin-top: 0.35rem;
    font-size: 0.75rem;
}

.takkah-pos-actions-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.takkah-pos-footer-note {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    text-align: center;
    color: var(--takkah-muted);
}

.takkah-pos-mixed-row {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--takkah-body);
    display: flex;
    justify-content: space-between;
}

.takkah-pos-mixed-row strong {
    color: var(--takkah-heading);
}

.takkah-pos-hint-sm {
    margin: 0.35rem 0 0;
    font-size: 0.7rem;
    color: var(--takkah-muted);
}

.takkah-modal-link {
    display: inline-flex;
    margin-top: 0.5rem;
}

.takkah-modal-link--spaced {
    margin-top: 0.75rem;
}

.takkah-modal-btn-full {
    margin-top: 1rem;
}

.takkah-panel--empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--takkah-muted);
}

.takkah-filter-row {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.takkah-form-field {
    display: grid;
    gap: 0.25rem;
}

.takkah-form-field label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--takkah-heading);
}

.takkah-form-grid {
    display: grid;
    gap: 0.75rem;
    max-width: 28rem;
}

.takkah-flex-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.takkah-flex-head--spaced {
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.takkah-card__title--flush { margin: 0; }
.takkah-tip-text--flush { margin: 0; }
.takkah-tip-text--sub { margin: 0.5rem 0 0; font-size: 0.8rem; }
.takkah-actions-row {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.takkah-pos-cats--inline { margin: 0; }
.takkah-muted--sm { font-size: 0.85rem; }
.takkah-muted--lead { line-height: 1.6; }
.takkah-muted--center-sm {
    text-align: center;
    font-size: 0.85rem;
}

.takkah-badge-success {
    background: #dcfce7;
    color: #166534;
}

.dark .takkah-badge-success {
    background: rgb(22 163 74 / 0.2);
    color: #86efac;
}

/* ─── الوضع الليلي: نفس fi-section / fi-wi-stats (var(--gray-900) + ring) ─── */
.dark .takkah-page {
    color: var(--takkah-body);
}

.dark .takkah-page :is(
    .takkah-panel,
    .takkah-card:not(.is-disabled),
    .takkah-cart,
    .takkah-stat-box,
    .takkah-form-wrap,
    .takkah-qr-card,
    .takkah-pos-modal,
    .takkah-product-btn,
    .takkah-cat-btn:not(.is-active),
    .takkah-package-option,
    .takkah-settings-preview,
    .takkah-step
) {
    background-color: var(--gray-900);
    border: none;
    box-shadow:
        0 1px 2px 0 rgb(0 0 0 / 0.05),
        0 0 0 1px rgb(255 255 255 / 0.1);
}

.dark .takkah-card:hover:not(.is-disabled) {
    box-shadow:
        0 4px 12px rgb(0 0 0 / 0.2),
        0 0 0 1px rgb(255 255 255 / 0.12);
}

.dark .takkah-card-icon {
    background: rgb(255 107 53 / 0.14);
    color: #ff8555;
}

.dark .takkah-card.is-disabled {
    background-color: var(--gray-950);
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06);
}

.dark .takkah-badge-warning,
.dark .takkah-badge-upgrade {
    background: rgb(255 107 53 / 0.18);
    color: #fdba74;
}

.dark .takkah-card--success {
    background: rgb(22 163 74 / 0.12);
    border-color: rgb(74 222 128 / 0.35);
}

.dark .takkah-card--warning {
    background: rgb(220 38 38 / 0.1);
    border-color: rgb(248 113 113 / 0.35);
}

.dark .takkah-upgrade-box {
    background: linear-gradient(180deg, rgb(255 107 53 / 0.12) 0%, var(--takkah-surface) 100%);
    border-color: rgb(255 107 53 / 0.35);
    color: var(--takkah-body);
}

.dark .takkah-banner {
    background: var(--takkah-primary-bg);
    border-color: rgb(255 107 53 / 0.35);
}

.dark .takkah-banner-title {
    color: var(--takkah-warning-text);
}

.dark .takkah-banner-text,
.dark .takkah-banner strong {
    color: var(--takkah-warning-muted);
}

.dark .takkah-tip--info {
    background: var(--takkah-surface-muted);
    border-color: var(--takkah-surface-border);
    color: var(--takkah-body);
}

.dark .takkah-tip--warn {
    background: var(--takkah-primary-bg);
    border-color: rgb(255 107 53 / 0.35);
    color: var(--takkah-warning-muted);
}

.dark .takkah-tip-title {
    color: var(--takkah-heading);
}

.dark .takkah-tip--warn .takkah-tip-title {
    color: var(--takkah-warning-text);
}

/* حقول مخصصة + Filament داخل البطاقات الداكنة */
.dark .takkah-page .takkah-field {
    background: var(--takkah-input-bg);
    color: var(--takkah-heading);
    border-color: var(--takkah-input-border);
}

.dark .takkah-page .takkah-field::placeholder {
    color: var(--takkah-muted);
}

/* Filament داخل takkah-panel: لا تُجبر ألواناً مختلفة — يورّث من Filament */

.dark .takkah-page .takkah-form-wrap .fi-tabs {
    background: var(--takkah-surface-muted) !important;
    border-color: var(--takkah-surface-border) !important;
}

.dark .takkah-page .takkah-form-wrap .fi-tabs-item.fi-active {
    background: var(--takkah-surface-elevated) !important;
}

/* عرض التذكرة — محادثة داخل بطاقة */
.takkah-ticket-view .takkah-ticket-chat {
    margin-top: 0;
}

.dark .takkah-page.takkah-ticket-view .takkah-panel.takkah-ticket-chat {
    background: var(--takkah-surface-muted);
    border-color: var(--takkah-surface-border);
}

.dark .takkah-page.takkah-ticket-view .takkah-ticket-chat .takkah-step {
    background: var(--takkah-surface);
    border-color: var(--takkah-surface-border);
}

.dark .takkah-page.takkah-ticket-view > .fi-sc .fi-in-entry-label,
.dark .takkah-page.takkah-ticket-view > .fi-sc .fi-in-text-item {
    color: inherit;
}


/* نموذج ميسر — متوافق مع هوية تَكّة */
.takkah-moyasar-layout {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 360px);
    gap: 1.25rem;
    align-items: start;
    margin-bottom: 0.25rem;
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

@media (max-width: 768px) {
    .takkah-moyasar-layout {
        grid-template-columns: 1fr;
    }

    .takkah-card-preview {
        max-width: 100%;
        justify-self: stretch;
    }
}

.takkah-card-preview {
    position: relative;
    width: min(100%, 22.5rem);
    max-width: 22.5rem;
    aspect-ratio: 1.586 / 1;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, #14141f 0%, #2d2d3a 55%, #ff6b35 140%);
    color: #fff;
    box-shadow: 0 18px 40px rgb(20 20 31 / 0.28);
    overflow: hidden;
    justify-self: end;
}

.takkah-card-preview__body {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    box-sizing: border-box;
}

.takkah-card-preview__shine {
    position: absolute;
    inset: -40% auto auto -20%;
    width: 70%;
    height: 140%;
    background: linear-gradient(120deg, transparent, rgb(255 255 255 / 0.12), transparent);
    transform: rotate(18deg);
    pointer-events: none;
}

.takkah-card-preview__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.takkah-card-preview__logo {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: rgb(255 255 255 / 0.95);
    padding: 0.25rem;
}

.takkah-card-preview__brand {
    font-weight: 900;
    font-size: 1.125rem;
    letter-spacing: 0.02em;
}

.takkah-card-preview__chip {
    width: 2.5rem;
    height: 1.75rem;
    margin: 0.5rem 0 0.35rem;
    border-radius: 0.4rem;
    background: linear-gradient(135deg, #f5d67b, #d4a84b);
    flex-shrink: 0;
}

.takkah-card-preview__number {
    font-size: clamp(0.72rem, 1.6vw, 0.9rem);
    letter-spacing: 0.08em;
    font-weight: 700;
    margin: 0 0 0.35rem;
    white-space: nowrap;
}

.takkah-card-preview__footer {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-top: auto;
}

.takkah-card-preview__label {
    display: block;
    font-size: 0.625rem;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.takkah-card-preview__value {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.1rem;
}

.takkah-card-preview__value--expiry {
    color: #ffb08a;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}

.takkah-expiry-guide {
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    background: #fff;
    padding: 1rem 1.125rem;
}

.takkah-expiry-guide__title {
    margin: 0 0 0.35rem;
    font-weight: 800;
    color: #111827;
    font-size: 0.95rem;
}

.takkah-expiry-guide__text {
    margin: 0 0 0.85rem;
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.6;
}

.takkah-expiry-guide__demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: #fff4ee;
    border: 1px dashed #ffb08a;
}

.takkah-expiry-guide__field {
    text-align: center;
    min-width: 4.5rem;
}

.takkah-expiry-guide__field-label {
    display: block;
    font-size: 0.7rem;
    color: #9a3412;
    font-weight: 700;
}

.takkah-expiry-guide__field-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: #14141f;
    line-height: 1.2;
}

.takkah-expiry-guide__field-hint {
    display: block;
    font-size: 0.65rem;
    color: #6b7280;
}

.takkah-expiry-guide__slash {
    font-size: 1.75rem;
    font-weight: 900;
    color: #ff6b35;
    padding-top: 0.75rem;
}

.takkah-expiry-guide__example {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
    font-size: 0.8rem;
}

.takkah-expiry-guide__ok {
    color: #16a34a;
    font-weight: 700;
}

.takkah-expiry-guide__bad {
    color: #dc2626;
    font-weight: 600;
}

.takkah-moyasar-test-data {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #f3f4f6;
    font-size: 0.8rem;
    color: #4b5563;
}

.takkah-moyasar-test-data__title {
    margin: 0 0 0.35rem;
    font-weight: 800;
    color: #9a3412;
}

.takkah-moyasar-test-data ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.takkah-moyasar-test-data li + li {
    margin-top: 0.2rem;
}

.takkah-moyasar-legal {
    margin: 0.85rem 0 0;
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.6;
}

.takkah-moyasar-legal__link {
    color: #ff6b35;
    font-weight: 700;
    text-decoration: none;
}

.takkah-moyasar-legal__link:hover {
    text-decoration: underline;
}

.takkah-legal-accept {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fafafa;
    font-size: 0.85rem;
    line-height: 1.65;
    color: #374151;
    cursor: pointer;
}

.takkah-legal-accept input[type='checkbox'] {
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    accent-color: #ff6b35;
}

.takkah-legal-link {
    color: #ff6b35;
    font-weight: 700;
    text-decoration: none;
}

.takkah-legal-link:hover {
    text-decoration: underline;
}

.dark .takkah-legal-accept {
    background: var(--takkah-surface);
    border-color: var(--takkah-surface-border);
    color: var(--takkah-body);
}

.takkah-moyasar-wrap {
    border: 2px solid #ff6b35;
    background: linear-gradient(135deg, #fff4ee, #fff);
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

.takkah-moyasar-wrap .mysr-form,
.takkah-moyasar-wrap .mysr-form * {
    box-sizing: border-box;
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif !important;
}

.takkah-moyasar-wrap .mysr-form input,
.takkah-moyasar-wrap .mysr-form label,
.takkah-moyasar-wrap .mysr-form button {
    visibility: visible !important;
    opacity: 1 !important;
}

.takkah-moyasar-wrap input.mysr-form-input,
.takkah-moyasar-wrap input.mysr-form-input[type='text'] {
    border-radius: 0.75rem !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #111827 !important;
    font-size: 0.9375rem !important;
    padding: 0.75rem 0.875rem !important;
}

.takkah-moyasar-wrap input.mysr-form-input:focus,
.takkah-moyasar-wrap input.mysr-form-input[type='text']:focus {
    border-color: #ff6b35 !important;
    box-shadow: 0 0 0 1px #ff6b35 !important;
    outline: none !important;
}

.takkah-moyasar-wrap .mysr-form-button {
    background: #ff6b35 !important;
    border-radius: 0.75rem !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    box-shadow: 0 4px 14px rgb(255 107 53 / 0.35) !important;
    margin-top: 0.5rem !important;
}

.takkah-moyasar-wrap .mysr-form-button:hover {
    background: #e85a28 !important;
}

.takkah-moyasar-wrap .mysr-form-label,
.takkah-moyasar-wrap label {
    color: #374151 !important;
    font-weight: 700 !important;
    font-size: 0.8125rem !important;
}

.takkah-moyasar-wrap .mysr-form-error,
.takkah-moyasar-wrap .mysr-form-inputError {
    color: #dc2626 !important;
    font-size: 0.8125rem !important;
}

.takkah-moyasar-wrap .mysr-form-moyasarForm[payment-form='true'] {
    max-width: 100% !important;
    width: 100% !important;
}

.takkah-moyasar-test-tip {
    border-color: #ff6b35;
    background: #fffaf7;
}

.dark .takkah-moyasar-wrap {
    background: linear-gradient(135deg, rgb(255 107 53 / 0.12), var(--takkah-surface));
    border-color: #ff6b35;
}

.dark .takkah-moyasar-wrap input.mysr-form-input,
.dark .takkah-moyasar-wrap input.mysr-form-input[type='text'] {
    background: var(--takkah-light) !important;
    border-color: var(--takkah-surface-border) !important;
    color: var(--takkah-heading) !important;
}

.dark .takkah-moyasar-wrap .mysr-form-label,
.dark .takkah-moyasar-wrap label {
    color: var(--takkah-body) !important;
}

.dark .takkah-expiry-guide {
    background: var(--takkah-surface);
    border-color: var(--takkah-surface-border);
}

.dark .takkah-expiry-guide__title {
    color: var(--takkah-heading);
}

.dark .takkah-expiry-guide__text {
    color: var(--takkah-body);
}

.dark .takkah-expiry-guide__demo {
    background: rgb(255 107 53 / 0.1);
    border-color: rgb(255 107 53 / 0.35);
}

.dark .takkah-expiry-guide__field-value {
    color: var(--takkah-heading);
}

.dark .takkah-moyasar-test-data {
    border-top-color: var(--takkah-surface-border);
    color: var(--takkah-body);
}

/* حقول التاريخ المدمجة (Filament DatePicker) في شريط الفلاتر */
.takkah-filament-date-inline {
    min-width: 11rem;
    max-width: 16rem;
}

.takkah-filament-date-inline .fi-sc {
    gap: 0;
}

.takkah-filament-date-inline .fi-fo-field-wrp {
    margin-bottom: 0;
}

.takkah-filament-date-inline .fi-input-wrp {
    border-radius: 0.75rem;
}

.takkah-filament-date-inline .fi-input-wrp-suffix,
.takkah-filament-date-inline .fi-input-wrp-prefix {
    cursor: pointer;
}

.takkah-filament-date-inline .fi-input-wrp-suffix svg,
.takkah-filament-date-inline .fi-input-wrp-prefix svg {
    color: #FF6B35;
}

.takkah-date-picker-wrp .fi-input-wrp-content-ctn,
.takkah-date-picker-wrp .fi-fo-date-time-picker-trigger {
    cursor: pointer;
}

.takkah-page .fi-fo-date-time-picker-panel {
    z-index: 50;
}

/* سجل العمليات — تمرير التفاصيل الطويلة مع نفس تنسيق الملخص */
.takkah-audit-details-section > .fi-section-content-ctn > .fi-section-content {
    max-height: 26rem;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* صفحة اشتراكي — القائمة مغلقة على الجوال (مثل باقي الصفحات) */
@media (max-width: 1024px) {
    body.takkah-subscription-page .fi-sidebar:not(.fi-sidebar-open) {
        transform: translateX(100%) !important;
    }

    body.takkah-subscription-page .fi-sidebar-close-overlay {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
}
