@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&display=swap');

:root {
    --primary: #5b2892;
    --primary-dark: #2f154d;
    --secondary: #ffffff;
    --accent: #8d5bc6;
    --dark: #2f154d;
    --card-bg: #ffffff;
    --muted: #6c757d;
    --success: #1fa971;
    --warning: #d89216;
    --danger: #dc3545;
    --light-bg: #f6f2fb;
    --light-border: #e7dff2;
}

* { box-sizing: border-box; font-family: 'Cairo', sans-serif !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f7f7fb; color: #222; direction: rtl; }
a { text-decoration: none; }
img { max-width: 100%; }

.navbar-custom {
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid rgba(91,40,146,0.12);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand-text {
    color: var(--dark) !important;
    font-size: 1.15rem;
    font-weight: 900;
}

.site-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(91,40,146,0.25);
}
.site-logo img { width: 34px; height: 34px; object-fit: contain; }

.hero-section {
    min-height: 92vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(141,91,198,0.16), transparent 35%),
        radial-gradient(circle at bottom right, rgba(91,40,146,0.16), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #f7f1ff 45%, #efe6ff 100%);
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(91,40,146,0.09);
    color: var(--primary);
    border: 1px solid rgba(91,40,146,0.15);
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title {
    color: var(--dark);
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 16px;
}

.hero-title .highlight {
    color: var(--primary);
    display: inline-block;
}

.hero-desc {
    color: #5b5565;
    font-size: 1.08rem;
    line-height: 1.95;
    max-width: 650px;
}

.hero-panel {
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(91,40,146,0.14);
    border-radius: 30px;
    padding: 26px;
    box-shadow: 0 18px 50px rgba(91,40,146,0.12);
    backdrop-filter: blur(10px);
}

.hero-info-card {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(91,40,146,0.28);
}

.hero-mini-card {
    background: #fff;
    border: 1px solid rgba(91,40,146,0.12);
    border-radius: 18px;
    padding: 16px;
    height: 100%;
}

.review-showcase-panel {
    min-height: 100%;
}

.hero-review-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(91,40,146,0.08);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-review-card {
    min-height: 280px;
}

.custom-carousel-indicators {
    gap: 8px;
}

.custom-carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: rgba(91,40,146,0.25);
    opacity: 1;
}

.custom-carousel-indicators .active {
    background: var(--primary);
}

.btn-primary-custom,
.btn-outline-custom,
.btn-soft-custom {
    border-radius: 999px;
    font-weight: 800;
    padding: 13px 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.25s ease;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    box-shadow: 0 12px 35px rgba(91,40,146,0.25);
}
.btn-primary-custom:hover { color: #fff; transform: translateY(-2px); }

.btn-outline-custom {
    border: 2px solid rgba(91,40,146,0.2);
    color: var(--primary);
    background: #fff;
}
.btn-outline-custom:hover { color: var(--primary); background: rgba(91,40,146,0.05); }

.btn-soft-custom {
    background: rgba(91,40,146,0.08);
    color: var(--primary);
    border: 1px solid rgba(91,40,146,0.1);
}

.section-head { text-align: center; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 900; color: var(--dark); margin-bottom: 10px; }
.section-head p { color: var(--muted); margin: 0; }

.comparison-section,
.calculator-section,
.reviews-section,
.features-light-section { padding: 85px 0; }
.comparison-section { background: linear-gradient(180deg, #f8f4fd 0%, #fff 100%); }
.features-light-section { background: #fff; }
.calculator-section { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.calculator-section .section-head h2,
.calculator-section .section-head p { color: #fff; }
.reviews-section { background: #f9f6fd; }
.offers-section,
.booking-section { padding: 85px 0; }
.offers-section { background: #fff; }
.booking-section { background: #f8f6fb; }

.comparison-card,
.offer-card,
.feature-card,
.review-card,
.payment-card,
.form-card,
.stat-card,
.data-table,
.page-header,
.calc-card {
    border-radius: 24px;
}

.comparison-card {
    background: #fff;
    border: 1px solid rgba(91,40,146,0.1);
    padding: 28px;
    height: 100%;
    box-shadow: 0 10px 35px rgba(91,40,146,0.08);
}
.comparison-card.bad { border-top: 5px solid #ef5350; }
.comparison-card.good { border-top: 5px solid var(--primary); }
.comparison-card ul { list-style: none; padding: 0; margin: 0; }
.comparison-card li { padding: 10px 0; color: #4d4d55; border-bottom: 1px dashed #eee; }
.comparison-card li:last-child { border-bottom: 0; }

.feature-card {
    background: #fff;
    border: 1px solid rgba(91,40,146,0.1);
    padding: 28px 22px;
    text-align: center;
    height: 100%;
    box-shadow: 0 8px 30px rgba(91,40,146,0.06);
    transition: 0.25s ease;
}
.feature-card:hover,
.offer-card:hover,
.review-card:hover,
.stat-card:hover { transform: translateY(-5px); }
.feature-card h5 { font-weight: 800; color: var(--dark); margin: 14px 0 10px; }
.feature-card p { color: var(--muted); margin: 0; line-height: 1.8; }

.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: #fff;
}
.feature-icon.purple { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.feature-icon.gold { background: linear-gradient(135deg, #d8a13a, #f1ca6d); }
.feature-icon.green { background: linear-gradient(135deg, #18a873, #47c691); }
.feature-icon.red { background: linear-gradient(135deg, #d9534f, #ff8b73); }

.offer-card {
    background: #fff;
    border: 1px solid rgba(91,40,146,0.12);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 10px 35px rgba(91,40,146,0.08);
    transition: 0.25s ease;
    position: relative;
}
.offer-card.featured { border-color: var(--primary); box-shadow: 0 20px 55px rgba(91,40,146,0.15); }
.offer-badge-popular {
    position: absolute;
    top: 18px;
    left: 18px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}
.offer-price { color: var(--primary); font-size: 2.4rem; font-weight: 900; }
.offer-price .old-price { font-size: 1rem; color: #999; text-decoration: line-through; }
.offer-features { list-style: none; padding: 0; margin: 16px 0 25px; flex: 1; }
.offer-features li { padding: 9px 0; color: #555; border-bottom: 1px dashed #eee; }
.offer-features li:last-child { border-bottom: none; }
.offer-features li::before { content: '✓ '; color: var(--success); font-weight: 800; }

.calc-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    padding: 34px;
    color: #fff;
    backdrop-filter: blur(12px);
}
.calc-slider { accent-color: #fff; }
.price-display {
    background: #fff;
    border-radius: 22px;
    padding: 18px;
    text-align: center;
    color: var(--dark);
}
.price-display .amount { font-size: 2.5rem; font-weight: 900; color: var(--primary); }

.form-card {
    background: #fff;
    padding: 34px;
    box-shadow: 0 12px 35px rgba(91,40,146,0.08);
    border: 1px solid rgba(91,40,146,0.08);
}
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(91,40,146,0.12);
}

.payment-card {
    background: #fff;
    border: 1px solid rgba(91,40,146,0.1);
    padding: 28px;
    box-shadow: 0 12px 35px rgba(91,40,146,0.08);
    height: 100%;
}
.payment-code {
    background: #f8f5fd;
    border: 1px dashed rgba(91,40,146,0.25);
    border-radius: 18px;
    padding: 18px;
    white-space: pre-line;
    line-height: 1.9;
    color: var(--dark);
}

.review-card {
    background: #fff;
    border: 1px solid rgba(91,40,146,0.1);
    padding: 24px;
    box-shadow: 0 10px 35px rgba(91,40,146,0.08);
    height: 100%;
}
.review-stars { color: #ffb703; font-size: 1.05rem; margin-bottom: 10px; }
.review-image {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 18px;
    margin-top: 14px;
    border: 1px solid rgba(91,40,146,0.08);
}

.review-slider-card {
    min-height: 100%;
}

.custom-review-control {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(91,40,146,0.78);
    border-radius: 50%;
    opacity: 1;
}

.custom-review-control.carousel-control-prev {
    right: -18px;
    left: auto;
}

.custom-review-control.carousel-control-next {
    left: -18px;
    right: auto;
}

footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 55px 0 30px;
}
footer a { color: rgba(255,255,255,0.8); }
footer a:hover { color: #fff; }
.footer-brand { font-weight: 900; color: #fff; font-size: 1.1rem; }

.floating-whatsapp {
    position: fixed;
    left: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 12px 32px rgba(37,211,102,0.38);
    z-index: 999;
}

.admin-sidebar {
    width: 280px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    background: linear-gradient(180deg, var(--primary-dark), var(--primary));
    color: #fff;
    z-index: 100;
    overflow-y: auto;
}
.admin-main {
    margin-right: 280px;
    padding: 22px;
    min-height: 100vh;
    background: #f7f7fb;
}
.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    text-align: center;
}
.sidebar-brand h5 { margin: 10px 0 4px; font-weight: 900; }
.sidebar-brand small { color: rgba(255,255,255,0.78); }
.sidebar-nav { padding: 14px; }
.sidebar-nav .nav-link {
    color: rgba(255,255,255,0.84);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 6px;
    font-weight: 700;
}
.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active { background: rgba(255,255,255,0.13); color: #fff; }
.admin-topbar,
.page-header,
.data-table,
.stat-card {
    background: #fff;
    box-shadow: 0 10px 35px rgba(91,40,146,0.06);
    border: 1px solid rgba(91,40,146,0.08);
}
.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    margin-bottom: 22px;
}
.page-header { padding: 22px; margin-bottom: 22px; }
.data-table { overflow: hidden; }
.data-table .table { margin: 0; }
.data-table .table thead th {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    border: 0;
    font-size: 0.85rem;
    white-space: nowrap;
}
.data-table .table td { vertical-align: middle; border-color: #f2edf8; }
.data-table .table tbody tr:hover td { background: #faf7fe; }

.stat-card {
    padding: 24px;
    border-right: 4px solid var(--primary);
    transition: 0.25s ease;
}
.stat-card.purple { border-color: var(--primary); }
.stat-card.gold { border-color: #d8a13a; }
.stat-card.green { border-color: var(--success); }
.stat-card.red { border-color: var(--danger); }
.stat-number { font-size: 1.9rem; font-weight: 900; color: var(--dark); }
.stat-label { color: var(--muted); font-size: 0.9rem; }
.stat-icon { font-size: 2.3rem; opacity: 0.75; }

.btn-purple {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    padding: 10px 18px;
}
.btn-purple:hover { color: #fff; opacity: 0.95; }
.btn-gold {
    background: linear-gradient(135deg, #d8a13a, #f0c867);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    padding: 10px 18px;
}
.btn-gold:hover { color: #fff; opacity: 0.96; }
.btn-whatsapp { background: #25D366; color: #fff; border: none; border-radius: 10px; }
.btn-phone { background: #0d6efd; color: #fff; border: none; border-radius: 10px; }
.btn-soft { background: #f8f5fd; color: var(--primary); border: 1px solid rgba(91,40,146,0.12); border-radius: 10px; }

.line-progress-bar {
    height: 10px;
    background: #eee;
    border-radius: 999px;
    overflow: hidden;
}
.line-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    transition: width 0.9s ease;
}

.badge-soft {
    background: rgba(91,40,146,0.1);
    color: var(--primary);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
}
.inline-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.phone-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f8f5fd;
    border: 1px solid rgba(91,40,146,0.08);
    margin: 2px;
    font-size: 0.82rem;
    flex-wrap: nowrap;
}

.contact-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(91,40,146,0.1);
}

.contact-action-icon {
    width: 15px;
    height: 15px;
    object-fit: contain;
}
.extra-packages-box {
    background: #faf7fe;
    border: 1px dashed rgba(91,40,146,0.22);
    border-radius: 16px;
    padding: 12px;
}

.sidebar-settings-shortcut .form-select {
    background: rgba(255,255,255,0.96);
    border: 0;
    font-size: .9rem;
}
.settings-chip-scroll::-webkit-scrollbar { height: 6px; }
.settings-quick-nav-card .form-select { min-height: 46px; }
.expiring-line-card {
    border: 1px solid rgba(220,53,69,.12);
    background: #fff;
}
.theme-preview {
    border: 1px solid rgba(91,40,146,0.14);
    border-radius: 18px;
    overflow: hidden;
}
.theme-preview-top { padding: 18px; color: #fff; }
.theme-preview-body { padding: 18px; background: #fff; }
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--accent));
}
.login-card {
    background: #fff;
    border-radius: 28px;
    padding: 36px;
    box-shadow: 0 25px 65px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 430px;
}

.table-note { color: var(--muted); font-size: 0.82rem; }
.alert-link { font-weight: 800; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: rgba(91,40,146,0.5); border-radius: 999px; }

@media (max-width: 992px) {
    .admin-sidebar { transform: translateX(100%); width: min(320px, 88vw); transition: 0.25s ease; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-right: 0; }
}

@media (max-width: 768px) {
    .hero-section { min-height: auto; padding: 80px 0 55px; }
    .hero-panel { margin-top: 28px; }
    .admin-main { padding: 14px; }
    .admin-topbar { padding: 14px 16px; flex-wrap: wrap; gap: 10px; }
    .form-card, .calc-card, .payment-card { padding: 22px; }
    .btn-primary-custom, .btn-outline-custom, .btn-soft-custom { width: 100%; }
    .floating-whatsapp { left: 16px; bottom: 16px; }
    .custom-review-control { display: none; }
}

body.sidebar-open { overflow: hidden; }
.admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 12, 28, .35);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: .25s ease;
}
.admin-sidebar-overlay.show { opacity: 1; pointer-events: auto; }
.sidebar-close-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 1rem;
}
.quick-nav-fab-wrap {
    position: fixed;
    left: 18px;
    bottom: 88px;
    z-index: 1055;
}
.quick-nav-fab {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    border: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 1.45rem;
    box-shadow: 0 18px 38px rgba(91,40,146,.30);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .18s ease, box-shadow .18s ease;
}
.quick-nav-fab:hover,
.quick-nav-fab:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(91,40,146,.34);
}
.quick-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 10, 40, .28);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
}
.quick-nav-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}
.quick-nav-panel {
    position: absolute;
    left: 0;
    bottom: 72px;
    width: min(430px, calc(100vw - 28px));
    max-height: min(82vh, 760px);
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff, #fcfaff 70%);
    border: 1px solid rgba(91,40,146,.10);
    border-radius: 26px;
    box-shadow: 0 28px 70px rgba(31,21,52,.22);
    display: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px) scale(.98);
    transition: .2s ease;
}
.quick-nav-panel.open {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.quick-nav-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(91,40,146,.08);
    background: linear-gradient(180deg, #fcfaff, #fff);
}
.quick-nav-header strong {
    display: block;
    color: var(--primary);
    font-size: 1rem;
}
.quick-nav-header small {
    display: block;
    margin-top: 3px;
    color: #7a6b93;
    font-size: .78rem;
}
.quick-nav-close {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 0;
    background: #f6f2fb;
    color: var(--primary);
    flex: 0 0 auto;
}
.quick-nav-body {
    max-height: calc(min(82vh, 760px) - 72px);
    overflow: auto;
    padding: 14px;
}
.quick-nav-search-wrap{width:100%}
.quick-nav-search-input{width:100%;border:1px solid rgba(91,40,146,.12);background:#fff;border-radius:14px;padding:12px 14px;font-size:.95rem;outline:none;box-shadow:inset 0 1px 2px rgba(0,0,0,.03)}
.quick-nav-search-input:focus{border-color:rgba(91,40,146,.28);box-shadow:0 0 0 4px rgba(91,40,146,.08)}
.quick-nav-chips{display:flex;gap:8px;overflow:auto;padding:2px 2px 10px;margin-bottom:4px}
.quick-nav-chip{border:1px solid rgba(91,40,146,.10);background:#fff;color:var(--dark);border-radius:999px;padding:8px 12px;font-size:.82rem;font-weight:800;white-space:nowrap;transition:.18s ease}
.quick-nav-chip.active,.quick-nav-chip:hover{background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;border-color:transparent}
.quick-nav-section + .quick-nav-section {
    margin-top: 14px;
}
.quick-nav-section{background:rgba(255,255,255,.72);border:1px solid rgba(91,40,146,.07);border-radius:20px;padding:12px}
.quick-nav-section-title {
    font-size: .78rem;
    font-weight: 800;
    color: #7b6a96;
    margin-bottom: 10px;
    padding-inline: 4px;
}
.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.quick-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 12px 13px;
    border-radius: 18px;
    color: var(--dark);
    background: linear-gradient(180deg, #ffffff, #f7f2fd);
    border: 1px solid rgba(91,40,146,.08);
    font-weight: 800;
    transition: .18s ease;
}
.quick-nav-item:hover,
.quick-nav-row:hover {
    background: #f3ecfb;
    color: var(--primary);
    transform: translateY(-1px);
}
.quick-nav-item.hidden,.quick-nav-row.hidden,.quick-nav-section.hidden{display:none !important}
.quick-nav-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(91,40,146,.08);
    flex: 0 0 auto;
    font-size: 1rem;
}
.quick-nav-list {
    display: grid;
    gap: 8px;
}
.quick-nav-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--dark);
    background: #faf7fe;
    border: 1px solid rgba(91,40,146,.08);
    font-weight: 700;
    transition: .18s ease;
}
.quick-nav-row span:first-child {
    width: 28px;
    text-align: center;
    flex: 0 0 auto;
}
.quick-nav-row-danger {
    background: #fff7f7;
    border-color: rgba(201,40,40,.10);
}
.quick-nav-row-danger:hover {
    background: #ffefef;
    color: #b42318;
}
.quick-nav-list-compact .quick-nav-row {
    min-height: 44px;
}
@media (max-width: 992px) {
    .admin-sidebar {
        max-height: 100vh;
        padding-bottom: 18px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 24px 55px rgba(0,0,0,.22);
    }
    .sidebar-brand { position: relative; padding-top: 58px; }
}
@media (max-width: 768px) {
    .quick-nav-fab-wrap { left: 14px; bottom: 74px; }
    .quick-nav-fab { width: 52px; height: 52px; }
    .quick-nav-panel { width: min(360px, calc(100vw - 20px)); left:-4px; border-radius:22px; }
    .quick-nav-grid{grid-template-columns:1fr;}
    .quick-nav-body{padding:12px;}
    .admin-topbar > div:last-child { width: 100%; justify-content: space-between; flex-wrap: wrap; }
    .data-table, .stat-card, .page-header, .admin-topbar { border-radius: 18px; }
    .table-responsive { -webkit-overflow-scrolling: touch; }
}

@media (max-width: 768px) {
    .quick-nav-fab-wrap{left:12px;right:12px;bottom:16px;display:flex;justify-content:flex-end;z-index:2000}
    .quick-nav-backdrop{z-index:1998;background:rgba(15,8,30,.52);backdrop-filter:blur(3px)}
    .quick-nav-panel{position:fixed;left:10px !important;right:10px !important;bottom:10px !important;top:auto !important;width:auto !important;max-height:78vh;border-radius:26px 26px 18px 18px;transform:translateY(110%);z-index:1999;overflow:hidden}
    .quick-nav-panel.open{transform:translateY(0)}
    .quick-nav-header{padding:14px 14px 10px;align-items:flex-start}
    .quick-nav-header strong{font-size:1.05rem}
    .quick-nav-header small{font-size:.8rem}
    .quick-nav-close{width:42px;height:42px;border-radius:14px;font-size:1.1rem}
    .quick-nav-body{max-height:calc(78vh - 78px);padding:12px 12px 16px;overflow:auto;-webkit-overflow-scrolling:touch}
    .quick-nav-grid{grid-template-columns:1fr 1fr;gap:8px}
    .quick-nav-item{min-height:52px;padding:10px 11px;border-radius:16px;font-size:.92rem}
    .quick-nav-icon{width:30px;height:30px;border-radius:10px}
    .quick-nav-row{min-height:44px;padding:10px 11px;border-radius:13px;font-size:.92rem}
}
@media (max-width: 480px) {
    .quick-nav-panel{left:8px !important;right:8px !important;bottom:8px !important;max-height:80vh}
    .quick-nav-grid{grid-template-columns:1fr}
}


@media (max-width: 768px) {
    .quick-nav-panel{display:none !important;position:fixed !important;left:12px !important;right:12px !important;bottom:12px !important;top:auto !important;width:auto !important;max-width:none !important;max-height:78vh !important;border-radius:24px 24px 18px 18px !important;transform:translateY(115%) !important;opacity:0 !important;pointer-events:none !important;z-index:2001 !important;}
    .quick-nav-panel.open{display:block !important;transform:translateY(0) !important;opacity:1 !important;pointer-events:auto !important;}
    .quick-nav-header{position:sticky;top:0;background:linear-gradient(180deg,#fff,#faf7ff);z-index:2}
    .quick-nav-body{max-height:calc(78vh - 82px) !important;overflow-y:auto !important;}
    .quick-nav-section-title{font-size:.95rem}
    .quick-nav-item,.quick-nav-row{font-size:.9rem;line-height:1.35}
}


.install-app-btn {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 2100;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 12px 16px;
    font-weight: 800;
    box-shadow: 0 16px 35px rgba(91,40,146,.28);
    display: none;
    align-items: center;
    gap: 8px;
}
.install-app-btn.show { display: inline-flex; }
.install-app-btn span { font-size: 1.2rem; line-height: 1; }
.install-app-hint {
    position: fixed;
    right: 16px;
    bottom: 76px;
    z-index: 2101;
    background: rgba(33,21,55,.96);
    color: #fff;
    padding: 12px 14px;
    border-radius: 14px;
    max-width: min(320px, calc(100vw - 32px));
    box-shadow: 0 16px 35px rgba(0,0,0,.25);
    font-size: .92rem;
}
@media (max-width: 768px) {
    .hero-section { padding-top: 68px; }
    .section-head { margin-bottom: 26px; }
    .section-head h2 { font-size: 1.45rem; }
    .section-head p { font-size: .95rem; }
    .offer-card, .feature-card, .review-card, .payment-card, .form-card, .page-header, .data-table, .stat-card { border-radius: 18px; }
    .data-table .table thead th, .data-table .table td { font-size: .86rem; }
    .admin-topbar h5 { font-size: 1rem; }
    .badge-soft { font-size: .75rem; }
    .stat-card { padding: 18px; }
    .stat-number { font-size: 1.45rem; }
    .admin-home-shortcut { width: 40px; height: 40px; }
    .install-app-btn { left: 16px; right: 16px; justify-content: center; }
}
@media (max-width: 576px) {
    .container, .container-fluid { padding-left: 14px; padding-right: 14px; }
    .login-card { padding: 22px; border-radius: 22px; }
    .hero-title { font-size: 1.9rem; }
    .hero-desc { font-size: .97rem; }
    .hero-panel, .hero-info-card { border-radius: 22px; padding: 18px; }
    .btn-primary-custom, .btn-outline-custom, .btn-soft-custom, .btn-purple, .btn-gold { min-height: 46px; }
    .table-responsive { border-radius: 16px; }
}


/* Mobile polish + app shortcut spacing */
@media (max-width: 768px) {
    body { -webkit-tap-highlight-color: transparent; }
    .navbar-custom .container { gap: 12px; }
    .navbar-custom .btn-outline-custom,
    .navbar-custom .btn-soft-custom,
    .navbar-custom .btn-primary-custom { min-height: 44px; padding: 10px 16px; font-size: .92rem; }
    .admin-main { padding: 12px; padding-bottom: 140px; }
    .page-header, .data-table, .stat-card, .form-card, .calc-card, .payment-card { box-shadow: 0 8px 22px rgba(91,40,146,0.08); }
    .page-header { padding: 16px; }
    .page-header h4, .page-header h5 { font-size: 1.02rem; }
    .admin-topbar { gap: 12px; border-radius: 18px; }
    .admin-topbar .btn, .page-header .btn, .inline-actions .btn { min-height: 42px; }
    .data-table .table thead th { font-size: .8rem; }
    .data-table .table td { font-size: .86rem; }
    .data-table .table td, .data-table .table th { white-space: nowrap; }
    .floating-whatsapp { width: 54px; height: 54px; font-size: 1.45rem; bottom: 84px; }
    .install-app-btn { bottom: 16px; }
    .login-page { padding: 20px 0; }
}
@media (max-width: 576px) {
    .navbar-custom .container { flex-direction: column; align-items: stretch !important; }
    .navbar-brand-text { justify-content: center; }
    .navbar-custom .d-flex.gap-2.flex-wrap { width: 100%; }
    .admin-topbar h5 { margin: 0; }
    .stat-card { padding: 16px; }
    .stat-number { font-size: 1.3rem; }
    .mobile-quicknav-btn { width: 54px; height: 54px; }
    .mobile-quicknav-fab { bottom: 92px; }
}

.wa-variables-table-wrap {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}
.wa-variables-table thead th {
    background: #f8f9ff;
    white-space: nowrap;
    font-weight: 700;
}
.wa-variables-table tbody td {
    vertical-align: middle;
}
.wa-variables-table code {
    font-size: .95rem;
    color: #6f42c1;
    background: rgba(111,66,193,.08);
    padding: .2rem .45rem;
    border-radius: 8px;
}
.template-preview-box {
    white-space: pre-wrap;
    word-break: break-word;
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    padding: 1rem;
    line-height: 1.8;
}


.wa-variables-section {
    overflow: visible;
}
.wa-mobile-note {
    background: #eef4ff;
    border: 1px solid rgba(13,110,253,.12);
    color: #21436e;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: .9rem;
    line-height: 1.7;
}
.wa-variables-cards {
    display: none;
    gap: 12px;
}
.wa-variable-card {
    background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
    border: 1px solid rgba(111,66,193,.14);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 8px 22px rgba(91,40,146,.06);
}
.wa-variable-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.wa-variable-card-head code {
    font-size: 1rem;
}
.wa-variable-meta {
    font-size: .92rem;
    line-height: 1.8;
    color: var(--dark);
}
.wa-variable-meta + .wa-variable-meta {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(111,66,193,.14);
}
.wa-variable-meta span {
    font-weight: 700;
    color: var(--primary);
}
@media (max-width: 991.98px) {
    .wa-variables-table-wrap {
        display: none;
    }
    .wa-variables-section {
        padding: 14px;
        overflow-x: hidden;
    }
    .wa-variables-cards {
        display: grid;
    }
    .wa-variable-card {
        padding: 14px 13px;
        border-radius: 16px;
    }
    .wa-variable-card-head {
        align-items: stretch;
    }
    .wa-variable-card-head code {
        display: inline-flex;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
        line-height: 1.8;
    }
    .wa-variable-card-head .btn {
        width: 100%;
    }
    .settings-small-card textarea.whatsapp-template-input {
        min-height: 170px;
    }
}
