/* FOOD FOLLOW - Global Styles */
:root{
  --ff-primary:#ff5a1f;
  --ff-primary-dark:#e64a0f;
  --ff-accent:#ffb703;
  --ff-bg:#fff8f3;
  --ff-text:#1f2937;
  --ff-muted:#6b7280;
  --ff-border:#f1e7df;
  --ff-success:#16a34a;
  --ff-danger:#dc2626;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:'Inter','Cairo',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--ff-text);background:var(--ff-bg);-webkit-font-smoothing:antialiased}
body[dir="rtl"]{font-family:'Cairo','Inter',system-ui,sans-serif}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.7rem 1.1rem;border-radius:999px;font-weight:600;transition:.18s ease;font-size:.95rem;white-space:nowrap}
.btn-primary{background:var(--ff-primary);color:#fff}
.btn-primary:hover{background:var(--ff-primary-dark)}
.btn-outline{background:#fff;color:var(--ff-primary);border:1.5px solid var(--ff-primary)}
.btn-outline:hover{background:#fff3ec}
.btn-ghost{background:transparent;color:var(--ff-text)}
.btn-ghost:hover{background:#f3f4f6}
.btn-danger{background:#fee2e2;color:var(--ff-danger)}
.btn-success{background:#dcfce7;color:var(--ff-success)}
.btn-sm{padding:.4rem .75rem;font-size:.825rem}
.input,.select,textarea.input{width:100%;padding:.7rem .9rem;border-radius:12px;border:1.5px solid var(--ff-border);background:#fff;font-family:inherit;font-size:.95rem;outline:none;transition:.15s}
.input:focus,.select:focus,textarea.input:focus{border-color:var(--ff-primary);box-shadow:0 0 0 3px rgba(255,90,31,.12)}
.label{font-size:.8rem;font-weight:600;color:var(--ff-muted);margin-bottom:.35rem;display:block}
.card{background:#fff;border-radius:18px;box-shadow:0 1px 3px rgba(0,0,0,.04),0 1px 2px rgba(0,0,0,.03);overflow:hidden;transition:.2s}
.card:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.08)}
.container{max-width:1200px;margin:0 auto;padding:0 1rem}
.badge{display:inline-flex;align-items:center;padding:.2rem .6rem;border-radius:999px;font-size:.72rem;font-weight:600;background:#fef3c7;color:#92400e}
.badge-green{background:#dcfce7;color:#166534}
.badge-red{background:#fee2e2;color:#991b1b}
.badge-blue{background:#dbeafe;color:#1e40af}
.badge-gray{background:#f3f4f6;color:#374151}

/* Navbar */
.navbar{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--ff-border);backdrop-filter:blur(8px)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;padding:.85rem 1rem;max-width:1200px;margin:0 auto;gap:1rem}
.logo{display:flex;align-items:center;gap:.5rem;font-weight:800;font-size:1.25rem;color:var(--ff-primary)}
.logo-mark{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,var(--ff-primary),var(--ff-accent));display:grid;place-items:center;color:#fff;font-size:1.1rem}
.nav-actions{display:flex;align-items:center;gap:.5rem}
.lang-switch{display:flex;background:#f3f4f6;border-radius:999px;padding:3px}
.lang-switch button{padding:.3rem .7rem;border-radius:999px;font-size:.8rem;font-weight:600;color:var(--ff-muted)}
.lang-switch button.active{background:#fff;color:var(--ff-primary);box-shadow:0 1px 2px rgba(0,0,0,.06)}

/* Hero */
.hero{background:linear-gradient(135deg,#fff3ec 0%,#fff8f3 60%);padding:3rem 0 2.5rem;position:relative;overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1fr;gap:2rem;align-items:center}
@media(min-width:900px){.hero-grid{grid-template-columns:1.1fr .9fr}}
.hero h1{font-size:2.2rem;line-height:1.15;margin:0 0 .8rem;font-weight:800}
.hero h1 .accent{color:var(--ff-primary)}
@media(min-width:900px){.hero h1{font-size:3rem}}
.hero p{font-size:1.05rem;color:var(--ff-muted);margin:0 0 1.4rem}
.search-bar{display:flex;gap:.5rem;background:#fff;border-radius:999px;padding:.45rem;box-shadow:0 8px 24px rgba(255,90,31,.12);border:1px solid var(--ff-border)}
.search-bar input{flex:1;border:none;outline:none;padding:.6rem 1rem;font-size:1rem;background:transparent}
.hero-img{border-radius:24px;overflow:hidden;aspect-ratio:4/3;background:#ffd7c2}
.hero-img img{width:100%;height:100%;object-fit:cover}

/* Sections */
.section{padding:2.5rem 0}
.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:1.25rem;gap:1rem}
.section-head h2{font-size:1.6rem;margin:0;font-weight:800}
.section-head p{margin:.2rem 0 0;color:var(--ff-muted);font-size:.95rem}

/* Restaurant card */
.grid{display:grid;gap:1rem}
.grid-rest{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.grid-dish{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.rest-card .cover{aspect-ratio:16/9;background:#f3f4f6;position:relative;overflow:hidden}
.rest-card .cover img{width:100%;height:100%;object-fit:cover;transition:.3s}
.rest-card:hover .cover img{transform:scale(1.05)}
.rest-card .logo-circle{position:absolute;bottom:-22px;left:14px;width:54px;height:54px;border-radius:50%;border:3px solid #fff;background:#fff;overflow:hidden;box-shadow:0 4px 12px rgba(0,0,0,.1)}
.rest-card .logo-circle img{width:100%;height:100%;object-fit:cover}
.rest-card .body{padding:1.7rem 1rem 1rem}
.rest-card h3{margin:0 0 .25rem;font-size:1.05rem;font-weight:700}
.rest-card .meta{display:flex;align-items:center;gap:.7rem;color:var(--ff-muted);font-size:.85rem;flex-wrap:wrap}
.rest-card .meta .dot{width:4px;height:4px;background:#d1d5db;border-radius:50%}
.status-open{color:var(--ff-success);font-weight:600}
.status-closed{color:var(--ff-danger);font-weight:600}

/* Dish card */
.dish-card{display:flex;flex-direction:column}
.dish-card .img{aspect-ratio:4/3;background:#f3f4f6;overflow:hidden}
.dish-card .img img{width:100%;height:100%;object-fit:cover;transition:.3s}
.dish-card:hover .img img{transform:scale(1.06)}
.dish-card .body{padding:.85rem 1rem 1rem;display:flex;flex-direction:column;gap:.4rem;flex:1}
.dish-card h4{margin:0;font-size:1rem;font-weight:700}
.dish-card .desc{font-size:.82rem;color:var(--ff-muted);margin:0;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dish-card .row{margin-top:auto;display:flex;align-items:center;justify-content:space-between;padding-top:.4rem}
.price{font-weight:800;color:var(--ff-primary);font-size:1.05rem}
.price small{font-weight:600;font-size:.7rem;opacity:.8;margin-inline-start:2px}

/* Cart drawer */
.drawer{position:fixed;top:0;right:0;height:100%;width:min(420px,100%);background:#fff;z-index:200;transform:translateX(105%);transition:transform .25s ease;display:flex;flex-direction:column;box-shadow:-8px 0 32px rgba(0,0,0,.12)}
body[dir="rtl"] .drawer{right:auto;left:0;transform:translateX(-105%)}
.drawer.open{transform:translateX(0)}
.overlay{position:fixed;inset:0;background:rgba(15,23,42,.5);z-index:199;opacity:0;pointer-events:none;transition:.2s}
.overlay.show{opacity:1;pointer-events:auto}
.drawer header{padding:1rem;border-bottom:1px solid var(--ff-border);display:flex;align-items:center;justify-content:space-between}
.drawer .body{flex:1;overflow:auto;padding:1rem}
.drawer footer{padding:1rem;border-top:1px solid var(--ff-border);background:#fff}
.cart-item{display:flex;gap:.7rem;padding:.7rem 0;border-bottom:1px dashed var(--ff-border)}
.cart-item .thumb{width:56px;height:56px;border-radius:12px;background:#f3f4f6;overflow:hidden;flex-shrink:0}
.cart-item .thumb img{width:100%;height:100%;object-fit:cover}
.qty{display:inline-flex;align-items:center;background:#f3f4f6;border-radius:999px;overflow:hidden}
.qty button{width:28px;height:28px;font-weight:700;color:var(--ff-primary)}
.qty span{padding:0 .6rem;font-weight:700;font-size:.85rem}

/* Footer */
.footer{background:#1f2937;color:#e5e7eb;padding:2.5rem 0 1.2rem;margin-top:3rem}
.footer h4{color:#fff;margin:0 0 .8rem;font-size:1rem}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1.5rem}
.footer a{color:#9ca3af;display:block;padding:.2rem 0;font-size:.9rem}
.footer a:hover{color:#fff}
.footer .copy{margin-top:1.5rem;padding-top:1rem;border-top:1px solid #374151;text-align:center;color:#9ca3af;font-size:.85rem}

/* Tabs */
.tabs{display:flex;gap:.4rem;overflow-x:auto;padding:.4rem 0;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tab{padding:.5rem 1rem;border-radius:999px;background:#fff;border:1.5px solid var(--ff-border);font-weight:600;color:var(--ff-muted);font-size:.9rem;white-space:nowrap}
.tab.active{background:var(--ff-primary);color:#fff;border-color:var(--ff-primary)}

/* Steps timeline */
.timeline{display:flex;flex-direction:column;gap:.8rem;padding:1rem 0}
.timeline .step{display:flex;gap:.9rem;align-items:flex-start}
.timeline .dot{width:30px;height:30px;border-radius:50%;background:#e5e7eb;color:#6b7280;display:grid;place-items:center;font-weight:700;flex-shrink:0;font-size:.85rem}
.timeline .step.done .dot{background:var(--ff-success);color:#fff}
.timeline .step.active .dot{background:var(--ff-primary);color:#fff;animation:pulse 1.5s infinite}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(255,90,31,.5)}50%{box-shadow:0 0 0 8px rgba(255,90,31,0)}}
.timeline .text{flex:1;padding-top:3px}
.timeline .text b{display:block;font-size:.95rem}
.timeline .text small{color:var(--ff-muted);font-size:.78rem}

/* Modal */
.modal-overlay{position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:300;display:none;align-items:center;justify-content:center;padding:1rem}
.modal-overlay.show{display:flex}
.modal{background:#fff;border-radius:20px;width:min(520px,100%);max-height:92vh;overflow:auto}
.modal header{padding:1rem 1.2rem;border-bottom:1px solid var(--ff-border);display:flex;justify-content:space-between;align-items:center}
.modal h3{margin:0;font-size:1.1rem}
.modal .body{padding:1.2rem}
.modal .foot{padding:1rem 1.2rem;border-top:1px solid var(--ff-border);display:flex;gap:.5rem;justify-content:flex-end}

/* Dashboard layout */
.dash{display:grid;grid-template-columns:1fr;min-height:100vh}
@media(min-width:880px){.dash{grid-template-columns:240px 1fr}}
.sidebar{background:#1f2937;color:#e5e7eb;padding:1.2rem 0}
.sidebar .logo{color:#fff;padding:0 1.2rem;margin-bottom:1.5rem}
.sidebar .nav-link{display:flex;align-items:center;gap:.7rem;padding:.7rem 1.2rem;color:#cbd5e1;font-weight:500;font-size:.92rem;cursor:pointer;border-inline-start:3px solid transparent}
.sidebar .nav-link:hover{background:#111827;color:#fff}
.sidebar .nav-link.active{background:#111827;color:#fff;border-inline-start-color:var(--ff-primary)}
.sidebar .nav-link i{width:20px;text-align:center}
.dash-main{padding:1.2rem;background:#f9fafb;overflow:auto}
.dash-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.2rem;gap:1rem;flex-wrap:wrap}
.dash-head h1{margin:0;font-size:1.5rem}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;margin-bottom:1.5rem}
.stat{background:#fff;padding:1.1rem;border-radius:16px;border:1px solid var(--ff-border)}
.stat .lbl{font-size:.78rem;color:var(--ff-muted);font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.stat .val{font-size:1.7rem;font-weight:800;margin-top:.25rem;color:var(--ff-text)}
.stat .ic{font-size:1.4rem;color:var(--ff-primary)}
.stat-row{display:flex;align-items:center;justify-content:space-between}

/* Table */
.tbl{width:100%;border-collapse:collapse;background:#fff;border-radius:14px;overflow:hidden}
.tbl th,.tbl td{padding:.75rem 1rem;text-align:start;font-size:.9rem;border-bottom:1px solid var(--ff-border)}
.tbl th{background:#f9fafb;font-weight:600;font-size:.78rem;text-transform:uppercase;color:var(--ff-muted);letter-spacing:.04em}
.tbl tr:last-child td{border-bottom:none}
.tbl-wrap{overflow-x:auto;border-radius:14px;border:1px solid var(--ff-border)}

/* Login card */
.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:1rem;background:linear-gradient(135deg,#fff3ec,#fff8f3)}
.auth-card{background:#fff;border-radius:22px;padding:2rem;width:min(420px,100%);box-shadow:0 12px 40px rgba(0,0,0,.08)}
.auth-card h1{margin:0 0 .25rem;font-size:1.5rem}
.auth-card p{margin:0 0 1.4rem;color:var(--ff-muted);font-size:.9rem}

/* Misc */
.spacer{height:1rem}
.flex{display:flex}.between{justify-content:space-between}.center{align-items:center}.gap{gap:.6rem}.wrap{flex-wrap:wrap}
.muted{color:var(--ff-muted)}
.hidden{display:none!important}
.mb-1{margin-bottom:.6rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}
.mt-1{margin-top:.6rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}
.text-center{text-align:center}
.fab{position:fixed;bottom:20px;inset-inline-end:20px;z-index:80;background:var(--ff-primary);color:#fff;border-radius:999px;padding:.85rem 1.2rem;box-shadow:0 8px 24px rgba(255,90,31,.4);font-weight:700;display:none;align-items:center;gap:.5rem}
.fab.show{display:inline-flex}
.empty{text-align:center;padding:3rem 1rem;color:var(--ff-muted)}
.empty .ic{font-size:3rem;margin-bottom:.6rem;opacity:.5}

/* RTL adjustments */
body[dir="rtl"] .rest-card .logo-circle{left:auto;right:14px}
