:root {
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-50: #ecfdf5;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-600: #475569;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--slate-50);
    color: var(--slate-900);
    direction: rtl;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* الهيدر */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    background: var(--emerald-600);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.brand-name { font-weight: 800; font-size: 1.4rem; color: var(--slate-900); display: block; line-height: 1; }
.brand-tag { font-size: 0.75rem; color: var(--emerald-600); font-weight: 600; }

.nav-menu { display: flex; gap: 20px; align-items: center; }
.nav-link { text-decoration: none; color: var(--slate-600); font-weight: 600; transition: 0.2s; font-size: 0.95rem; }
.nav-link:hover, .nav-link.active { color: var(--emerald-600); }
.highlight-menu { color: var(--emerald-600); font-weight: 800; }

.nav-actions { display: flex; gap: 10px; }

/* شارة المستخدم المسجل */
.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--slate-100);
    padding: 6px 14px;
    border-radius: 30px;
}
.user-profile-badge .avatar {
    background: var(--emerald-600);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.user-info { display: flex; flex-direction: column; line-height: 1.2; }
.user-info span { font-weight: 700; font-size: 0.85rem; }
.user-info small { color: var(--emerald-600); font-size: 0.7rem; }
.btn-logout {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1rem;
    margin-right: 5px;
}

/* الأزرار */
.btn-emerald, .btn-main-emerald {
    background: var(--emerald-600);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-emerald:hover, .btn-main-emerald:hover { background: var(--emerald-700); }

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--slate-800);
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
}

.btn-outline-dark {
    background: white;
    border: 1px solid var(--slate-800);
    color: var(--slate-800);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-full { width: 100%; }

/* Hero Section */
.hero-section {
    position: relative;
    padding: 80px 20px 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--emerald-50) 0%, var(--slate-50) 100%);
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 6px 18px;
    border-radius: 30px;
    border: 1px solid #d1fae5;
    color: var(--emerald-700);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald-500);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title { font-size: 2.8rem; font-weight: 900; max-width: 800px; margin: 0 auto 20px; }
.highlight-text { color: var(--emerald-600); }
.hero-description { font-size: 1.15rem; color: var(--slate-600); max-width: 650px; margin: 0 auto 35px; }
.hero-buttons { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; }

.hero-stats {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.stat-icon {
    background: var(--emerald-50);
    color: var(--emerald-600);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stat-number { font-size: 1.4rem; font-weight: 800; display: block; }
.stat-label { font-size: 0.85rem; color: var(--slate-600); }

/* العناوين العامة */
.section-header { text-align: center; margin-bottom: 50px; }
.section-sub-badge { color: var(--slate-600); font-weight: 700; font-size: 0.85rem; display: block; margin-bottom: 5px; }
.section-header h2 { font-size: 2.2rem; font-weight: 900; color: var(--slate-900); margin-bottom: 10px; }
.section-header p { font-size: 1.05rem; color: var(--slate-600); max-width: 650px; margin: 0 auto; }

/* 1. قسم كيف يعمل (من الصورة الأولى) */
.how-section { padding: 80px 0; background: var(--white); border-bottom: 1px solid var(--border-color); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.step-card {
    background: var(--slate-50);
    padding: 35px 25px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: 0.3s ease;
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--emerald-500); }
.step-icon-box {
    background: #d1fae5;
    color: var(--emerald-600);
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 20px;
}
.step-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; color: var(--slate-900); }
.step-card p { font-size: 0.95rem; color: var(--slate-600); line-height: 1.7; }

/* 2. قسم المزايا (من الصورة الثانية) */
.features-section { padding: 80px 0; background: var(--slate-50); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.f-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: 0.3s ease;
}
.f-card:hover { box-shadow: var(--shadow-lg); border-color: var(--emerald-500); }
.f-icon {
    background: var(--emerald-50);
    color: var(--emerald-600);
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}
.f-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; color: var(--slate-900); }
.f-card p { font-size: 0.92rem; color: var(--slate-600); line-height: 1.6; }

/* 3. قسم القطاعات (من الصورة الثالثة) */
.sectors-section { padding: 80px 0; background: white; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.sectors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.sector-item {
    background: var(--slate-50);
    border: 1px solid var(--border-color);
    padding: 25px 15px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: 0.3s ease;
}
.sector-item:hover { background: var(--emerald-50); border-color: var(--emerald-500); }
.s-icon {
    font-size: 1.8rem;
    color: var(--slate-600);
    margin-bottom: 12px;
    transition: 0.3s;
}
.sector-item:hover .s-icon { color: var(--emerald-600); }
.sector-item span { font-weight: 700; font-size: 0.95rem; color: var(--slate-800); display: block; }

/* محاكاة التطبيق */
.demo-section { padding: 80px 0; max-width: 1100px; margin: 0 auto; }
.demo-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; }

.tab-btn {
    background: white;
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    cursor: pointer;
    color: var(--slate-600);
}

.tab-btn.active, .tab-btn:hover {
    background: var(--slate-900);
    color: white;
    border-color: var(--slate-900);
}

.demo-view { display: none; }
.demo-view.active { display: block; }

/* TV Screen */
.tv-display {
    background: var(--slate-900);
    color: white;
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

.tv-header { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; font-weight: 700; }
.tv-body { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; padding: 40px 0; align-items: center; }
.serving-box { background: rgba(255,255,255,0.05); padding: 40px; border-radius: var(--radius-lg); text-align: center; border: 2px solid var(--emerald-500); }
.serving-title { font-size: 1.1rem; color: #94a3b8; }
.serving-number { font-size: 4.5rem; font-weight: 900; color: var(--emerald-500); margin: 10px 0; }
.serving-counter { font-size: 1.2rem; background: var(--emerald-700); padding: 4px 16px; border-radius: 20px; }
.next-box h3 { color: #94a3b8; font-size: 1rem; margin-bottom: 15px; }
.next-numbers-list { display: flex; flex-direction: column; gap: 10px; }
.next-pill { background: rgba(255,255,255,0.1); padding: 12px; border-radius: 10px; text-align: center; font-size: 1.3rem; font-weight: 800; }
.tv-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; color: #94a3b8; font-size: 0.9rem; }
.btn-sound-test { background: rgba(255,255,255,0.15); color: white; border: none; padding: 8px 16px; border-radius: 8px; font-family: 'Cairo'; cursor: pointer; }

/* Customer Phone */
.mobile-frame { max-width: 380px; margin: 0 auto; background: white; border-radius: 35px; padding: 20px; box-shadow: var(--shadow-lg); border: 8px solid var(--slate-900); }
.screen-header { text-align: center; margin-bottom: 25px; }
.screen-header h3 { font-size: 1.1rem; }
.screen-header p { font-size: 0.85rem; color: var(--slate-600); }
.form-group { margin-bottom: 15px; text-align: right; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 5px; }
.form-group input { width: 100%; padding: 10px; border: 1px solid var(--border-color); border-radius: 8px; font-family: 'Cairo'; }

.digital-ticket { background: var(--emerald-50); border: 2px dashed var(--emerald-500); border-radius: var(--radius-lg); padding: 25px 20px; text-align: center; }
.ticket-status-badge { background: var(--emerald-600); color: white; font-size: 0.75rem; padding: 4px 12px; border-radius: 20px; font-weight: 700; }
.t-label { display: block; margin-top: 15px; color: var(--slate-600); font-size: 0.85rem; }
.t-number { font-size: 3rem; font-weight: 900; color: var(--emerald-700); }
.t-details { display: flex; justify-content: space-around; margin: 15px 0; background: white; padding: 10px; border-radius: 8px; }
.qr-wrapper { margin-top: 15px; background: white; padding: 15px; border-radius: 10px; }
.qr-wrapper p { font-size: 0.75rem; color: var(--slate-600); margin-top: 8px; }
#user-qrcode img { margin: 0 auto; }

/* Merchant Panel */
.merchant-panel { background: white; padding: 30px; border-radius: var(--radius-xl); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.panel-stats-bar { display: flex; justify-content: space-around; background: var(--slate-100); padding: 15px; border-radius: var(--radius-lg); margin-bottom: 25px; text-align: center; }
.p-stat span { display: block; font-size: 0.85rem; color: var(--slate-600); }
.p-stat strong { font-size: 1.5rem; color: var(--slate-900); }
.panel-control-box { display: flex; justify-content: space-between; align-items: center; background: var(--emerald-50); padding: 25px; border-radius: var(--radius-lg); margin-bottom: 30px; }
.current-call-display h2 { font-size: 3rem; color: var(--emerald-700); }
.action-buttons-group { display: flex; gap: 10px; }
.btn-call-next { background: var(--emerald-600); color: white; border: none; padding: 12px 24px; border-radius: var(--radius-lg); font-family: 'Cairo'; font-weight: 800; cursor: pointer; transition: 0.2s; }
.btn-call-next:hover { background: var(--emerald-700); }
.btn-action-recall { background: var(--slate-900); color: white; border: none; padding: 12px 20px; border-radius: var(--radius-lg); font-family: 'Cairo'; cursor: pointer; font-weight: 700; }
.btn-action-complete { background: white; border: 1px solid var(--border-color); color: var(--slate-800); padding: 12px 20px; border-radius: var(--radius-lg); font-family: 'Cairo'; cursor: pointer; font-weight: 700; }

.queue-table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.queue-table th, .queue-table td { padding: 12px; text-align: right; border-bottom: 1px solid var(--border-color); }
.queue-table th { background: var(--slate-50); font-size: 0.85rem; color: var(--slate-600); }

/* Pricing */
.pricing-section { padding: 80px 0; }
.pricing-cards-container { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.price-card { background: white; padding: 40px; border-radius: var(--radius-xl); border: 1px solid var(--border-color); width: 320px; position: relative; }
.price-card.popular { border: 2px solid var(--emerald-600); }
.popular-badge { position: absolute; top: -14px; right: 30px; background: var(--emerald-600); color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.plan-price { font-size: 2.5rem; font-weight: 900; margin: 20px 0; }
.plan-features { list-style: none; margin-bottom: 30px; }
.plan-features li { margin-bottom: 10px; color: var(--slate-600); }
.plan-features i { color: var(--emerald-600); margin-left: 8px; }

/* Auth Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.active { display: flex; }

.modal-card {
    background: white;
    width: 100%;
    max-width: 420px;
    padding: 30px;
    border-radius: var(--radius-xl);
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 20px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--slate-600);
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.m-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    font-family: 'Cairo';
    font-weight: 700;
    color: var(--slate-600);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.m-tab.active {
    color: var(--emerald-600);
    border-bottom-color: var(--emerald-600);
}

/* Floating WhatsApp */
.whatsapp-float { position: fixed; bottom: 30px; left: 30px; background: #25D366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; box-shadow: var(--shadow-lg); text-decoration: none; z-index: 999; }

/* أزرار الإجراءات داخل جدول التاجر */
.btn-wa-notify {
    background: #25D366;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: 5px;
    transition: 0.2s;
}

.btn-wa-notify:hover {
    background: #1eb954;
}

.btn-cancel-ticket {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
}
/* تنسيق زر الواتساب العائم لإدارة دورك */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    left: 25px; /* أو right: 25px حسب الجهة التي تفضلها */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #FFF;
}
/* تنسيق قسم الأسعار */
.pricing-section {
    padding: 60px 20px;
    background-color: #f8fafc;
    text-align: center;
    font-family: 'Cairo', sans-serif;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 50px;
}

.pricing-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px 30px;
    width: 320px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.pricing-card.featured {
    border: 1.5px solid #334155;
}

.badge-featured {
    position: absolute;
    top: -15px;
    background-color: #2b7a62;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
}

.plan-name {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 20px;
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 30px;
}

.price-currency {
    font-size: 1.2rem;
    font-weight: 700;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    width: 100%;
    text-align: right;
}

.plan-features li {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li i {
    color: #2b7a62;
    font-size: 0.9rem;
}

.btn-plan {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-outlined {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.btn-filled {
    background: #2b7a62;
    border: none;
    color: white;
}

.btn-filled:hover {
    background: #236350;
}
/* زر جوجل لتسجيل الدخول */
.btn-google-login {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--slate-800);
    padding: 12px;
    border-radius: var(--radius-lg);
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.btn-google-login:hover {
    background: var(--slate-100);
}

.btn-google-login i {
    color: #ea4335;
    font-size: 1.1rem;
}

.auth-divider {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    line-height: 0.1em;
    margin: 20px 0 25px;
}

.auth-divider span {
    background: #ffffff;
    padding: 0 12px;
    color: var(--slate-600);
    font-size: 0.8rem;
}
/* ==========================================================
   تجاوب الجوال (Responsive) — لضبط المقاسات على الشاشات الصغيرة
   ========================================================== */

/* زر القائمة (الهامبرغر) — مخفي على الكمبيوتر */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--slate-900);
    cursor: pointer;
    padding: 6px;
}

.mobile-auth-actions { display: none; }

@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: 68px;
        right: 0;
        left: 0;
        background: white;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }
    .nav-menu.mobile-open { max-height: 80vh; overflow-y: auto; }
    .nav-menu .nav-link { padding: 14px 20px; border-bottom: 1px solid var(--slate-100); }
    .nav-actions { display: none; }
    .mobile-auth-actions { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; }
    .hamburger-btn { display: block; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .nav-container { padding: 12px 16px; }
    .brand-name { font-size: 1.15rem; }
    .brand-tag { font-size: 0.68rem; }

    /* Hero */
    .hero-section { padding: 50px 16px 40px; }
    .hero-title { font-size: 1.9rem; }
    .hero-description { font-size: 1rem; padding: 0 4px; }
    .hero-buttons { flex-direction: column; gap: 12px; margin-bottom: 35px; }
    .hero-buttons .btn-emerald, .hero-buttons .btn-outline-dark { width: 100%; }
    .hero-stats { grid-template-columns: 1fr; gap: 12px; }

    /* عناوين الأقسام */
    .section-header h2, .section-title { font-size: 1.6rem; }
    .section-header p { font-size: 0.95rem; }
    .how-section, .features-section, .sectors-section, .demo-section, .pricing-section {
        padding: 45px 0;
    }

    .steps-grid, .features-grid, .sectors-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .step-card, .f-card { padding: 22px 16px; }

    /* التبويبات التفاعلية */
    .demo-tabs { flex-wrap: wrap; gap: 8px; }
    .tab-btn { padding: 9px 14px; font-size: 0.85rem; }

    /* شاشة العرض التوضيحية داخل الصفحة */
    .tv-display { padding: 18px; }
    .tv-body { grid-template-columns: 1fr; gap: 16px; padding: 20px 0; }
    .serving-number { font-size: 2.8rem; }
    .serving-box { padding: 22px; }
    .next-numbers-list { flex-direction: row; flex-wrap: wrap; }
    .next-pill { flex: 1 1 30%; font-size: 1rem; padding: 8px; }
    .tv-footer { flex-direction: column; gap: 10px; text-align: center; }

    /* جوال العميل */
    .mobile-frame { max-width: 100%; padding: 16px; border-width: 6px; }
    .t-number { font-size: 2.3rem; }
    .t-details { flex-direction: row; flex-wrap: wrap; gap: 10px; }

    /* لوحة التاجر */
    .merchant-panel { padding: 18px; }
    .panel-stats-bar { flex-direction: column; gap: 12px; }
    .panel-control-box { flex-direction: column; align-items: stretch; gap: 16px; text-align: center; }
    .current-call-display h2 { font-size: 2.2rem; }
    .action-buttons-group { flex-direction: column; }
    .action-buttons-group button { width: 100%; }

    /* جدول قائمة الانتظار — تمرير أفقي بدل التكسير */
    .queue-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .queue-table { min-width: 560px; }
    .queue-table th, .queue-table td { padding: 8px; font-size: 0.85rem; white-space: nowrap; }

    /* الأسعار */
    .pricing-cards-container, .pricing-container { flex-direction: column; align-items: center; }
    .price-card, .pricing-card { width: 100%; max-width: 340px; padding: 28px 20px; }

    /* نافذة تسجيل الدخول */
    .modal-card { padding: 22px; max-width: 92%; }
}

@media (max-width: 420px) {
    .hero-title { font-size: 1.6rem; }
    .steps-grid, .features-grid, .sectors-grid { grid-template-columns: 1fr; }
    .serving-number { font-size: 2.2rem; }
    .t-number { font-size: 2rem; }
}
