  /* =========================================================
     DESIGN TOKENS
     ========================================================= */
  :root{
    --teal:#0A6E5C; --teal-dark:#075247; --teal-light:#E6F4F1;
    --green:#22C55E; --green-light:#F0FDF4;
    --amber:#F59E0B; --amber-light:#FEF9E7;
    --red:#EF4444; --red-light:#FEF2F2;
    --blue:#3B82F6; --blue-light:#EFF6FF;
    --purple:#8B5CF6; --purple-light:#F5F3FF;
    --pink:#EC4899; --pink-light:#FDF2F8;
    --slate-900:#0F172A; --slate-700:#334155; --slate-500:#64748B; --slate-400:#94A3B8;
    --slate-200:#E2E8F0; --slate-100:#F1F5F9; --slate-50:#F8FAFC; --white:#FFFFFF;
    --bg:var(--slate-100); --surface:var(--white); --surface-2:var(--slate-50);
    --border:var(--slate-200); --text:var(--slate-900); --text-muted:var(--slate-500);
    --radius-sm:10px; --radius:16px; --radius-lg:24px; --radius-pill:100px;
    --shadow-sm:0 2px 6px rgba(0,0,0,.04); --shadow:0 8px 24px rgba(0,0,0,.06); --shadow-lg:0 20px 50px rgba(0,0,0,.10);
    --transition:.18s ease;
    --font:'Inter',system-ui,-apple-system,sans-serif;
  }
  [data-theme="dark"]{
    --slate-900:#F1F5F9; --slate-700:#CBD5E1; --slate-500:#94A3B8; --slate-400:#64748B;
    --slate-200:#334155; --slate-100:#1E293B; --slate-50:#0F172A; --white:#1E293B;
    --bg:#0B1220; --surface:#131C2E; --surface-2:#1E293B; --border:#334155;
    --text:#F1F5F9; --text-muted:#94A3B8;
    --teal-light:#0A6E5C33; --green-light:#22C55E22; --amber-light:#F59E0B22;
    --red-light:#EF444422; --blue-light:#3B82F622; --purple-light:#8B5CF622; --pink-light:#EC489922;
  }
  [dir="rtl"]{ --font:'Vazirmatn','Inter',system-ui,sans-serif; }
  *{margin:0;padding:0;box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    font-family:var(--font); background:var(--bg); color:var(--text); line-height:1.5;
    -webkit-font-smoothing:antialiased; transition:background .3s,color .3s;
    overflow-x:hidden;
  }
  a{text-decoration:none;color:inherit;}
  button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit;}
  input,select,textarea{font-family:inherit;}
  [dir="rtl"] .flip-rtl{transform:scaleX(-1);}
  ::-webkit-scrollbar{width:8px;height:8px;}
  ::-webkit-scrollbar-track{background:transparent;}
  ::-webkit-scrollbar-thumb{background:var(--border);border-radius:10px;}
  /* =========================================================
     APPBAR
     ========================================================= */
  .appbar{
    position:sticky;top:0;z-index:1000;
    background:color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter:blur(20px) saturate(180%);
    border-bottom:1px solid var(--border);
    padding:.75rem 1.5rem;
    display:flex;align-items:center;justify-content:space-between;
    gap:1rem;flex-wrap:wrap;
  }
  .brand{display:flex;align-items:center;gap:.6rem;}
  .brand-logo{
    width:40px;height:40px;border-radius:12px;
    background:linear-gradient(135deg,var(--teal),var(--teal-dark));
    color:#fff;display:grid;place-items:center;font-weight:900;font-size:1.15rem;
    box-shadow:0 6px 16px rgba(10,110,92,.3);
  }
  .brand-name{font-weight:900;font-size:1.15rem;letter-spacing:-.02em;color:var(--text);}
  .brand-name span{color:var(--teal);}
  /* One flat red. The previous three-stop gradient (black/red/green) plus the
     flag emoji read as a flag rather than as part of the wordmark, and the
     client asked for a single colour. */
  .flag-badge{
    font-size:.7rem;font-weight:700;letter-spacing:.04em;
    padding:.2rem .5rem;border-radius:var(--radius-pill);
    background:#D32011;
    color:#fff;display:inline-flex;align-items:center;gap:.3rem;
  }
  .appnav{display:flex;gap:.2rem;flex-wrap:wrap;}
  .appnav button{
    padding:.5rem .85rem;border-radius:var(--radius-pill);
    font-size:.8rem;font-weight:600;color:var(--text-muted);
    display:inline-flex;align-items:center;gap:.4rem;transition:var(--transition);
  }
  .appnav button:hover{background:var(--slate-100);color:var(--text);}
  .appnav button.active{background:var(--teal);color:#fff;box-shadow:0 6px 16px rgba(10,110,92,.3);}
  .appnav button i{font-size:.75rem;}
  .appbar-right{display:flex;align-items:center;gap:.4rem;}
  .icon-btn{
    width:38px;height:38px;border-radius:12px;
    background:var(--surface-2);border:1px solid var(--border);
    display:grid;place-items:center;color:var(--text-muted);
    transition:var(--transition);position:relative;
  }
  .icon-btn:hover{color:var(--teal);border-color:var(--teal);}
  .icon-btn .dot{position:absolute;top:6px;right:6px;width:8px;height:8px;border-radius:50%;background:var(--red);border:2px solid var(--surface);animation:pulse-dot 2s infinite;}
  @keyframes pulse-dot{0%,100%{transform:scale(1);}50%{transform:scale(1.3);}}
  .user-chip{
    display:flex;align-items:center;gap:.55rem;
    padding:.3rem .8rem .3rem .35rem;
    background:var(--surface-2);border:1px solid var(--border);
    border-radius:var(--radius-pill);font-size:.8rem;font-weight:600;color:var(--text);
    cursor:pointer;transition:var(--transition);
  }
  .user-chip:hover{border-color:var(--teal);}
  .user-chip .avatar{
    width:28px;height:28px;border-radius:50%;
    background:linear-gradient(135deg,var(--teal),var(--blue));
    color:#fff;display:grid;place-items:center;font-weight:700;font-size:.75rem;
  }
  /* =========================================================
     PAGES
     ========================================================= */
  .page{display:none;animation:fade .3s ease;}
  .page.active{display:block;}
  @keyframes fade{from{opacity:0;transform:translateY(8px);}to{opacity:1;transform:none;}}
  .container{max-width:1280px;margin:0 auto;padding:1.75rem 1.5rem 3rem;}
  /* =========================================================
     COMPONENTS
     ========================================================= */
  .btn{
    display:inline-flex;align-items:center;justify-content:center;gap:.45rem;
    padding:.7rem 1.2rem;border-radius:var(--radius-pill);
    font-weight:600;font-size:.85rem;transition:var(--transition);
    border:1px solid transparent;white-space:nowrap;
  }
  .btn-primary{background:var(--teal);color:#fff;box-shadow:0 6px 16px rgba(10,110,92,.25);}
  .btn-primary:hover{background:var(--teal-dark);transform:translateY(-2px);}
  .btn-outline{background:var(--surface);border:1px solid var(--border);color:var(--text);}
  .btn-outline:hover{border-color:var(--teal);color:var(--teal);}
  .btn-ghost{background:transparent;color:var(--text);}
  .btn-ghost:hover{background:var(--slate-100);}
  .btn-sm{padding:.45rem .9rem;font-size:.75rem;}
  .btn-block{width:100%;}
  .btn-danger{background:var(--red-light);color:var(--red);}
  .card{
    background:var(--surface);border:1px solid var(--border);
    border-radius:var(--radius-lg);padding:1.25rem;
    box-shadow:var(--shadow-sm);transition:var(--transition);
  }
  .card:hover{box-shadow:var(--shadow);}
  .badge{display:inline-flex;align-items:center;gap:.3rem;padding:.25rem .6rem;border-radius:var(--radius-pill);font-size:.7rem;font-weight:700;}
  .badge-green{background:var(--green-light);color:var(--green);}
  .badge-amber{background:var(--amber-light);color:var(--amber);}
  .badge-red{background:var(--red-light);color:var(--red);}
  .badge-teal{background:var(--teal-light);color:var(--teal);}
  .badge-blue{background:var(--blue-light);color:var(--blue);}
  .badge-purple{background:var(--purple-light);color:var(--purple);}
  .section-title{display:flex;align-items:center;justify-content:space-between;margin:2rem 0 1rem;gap:1rem;flex-wrap:wrap;}
  .section-title h2{font-size:1.35rem;font-weight:800;letter-spacing:-.02em;}
  .section-title p{font-size:.85rem;color:var(--text-muted);}
  .section-title a{font-size:.85rem;font-weight:600;color:var(--teal);}
  .input{
    width:100%;padding:.8rem 1rem;border-radius:var(--radius);
    border:1px solid var(--border);background:var(--surface);
    font-size:.9rem;outline:none;transition:var(--transition);color:var(--text);
  }
  .input:focus{border-color:var(--teal);box-shadow:0 0 0 3px var(--teal-light);}
  .field{margin-bottom:1rem;}
  .field label{display:block;font-size:.8rem;font-weight:600;margin-bottom:.4rem;color:var(--text-muted);}
  .grid{display:grid;gap:1rem;}
  .grid-2{grid-template-columns:repeat(2,1fr);}
  .grid-3{grid-template-columns:repeat(3,1fr);}
  .grid-4{grid-template-columns:repeat(4,1fr);}
  .flex{display:flex;align-items:center;gap:.6rem;}
  .between{display:flex;align-items:center;justify-content:space-between;gap:.6rem;}
  /* =========================================================
     HERO
     ========================================================= */
  .hero-wrap{
    border-radius:var(--radius-lg);overflow:hidden;
    position:relative;min-height:560px;
    box-shadow:var(--shadow-lg);
  }
  .hero-bg{
    position:absolute;inset:0;background-size:cover;background-position:center;
    animation:kenburns 30s ease-in-out infinite alternate;
  }
  @keyframes kenburns{0%{transform:scale(1) translate(0,0);}100%{transform:scale(1.15) translate(-2%,-2%);}}
  .hero-overlay{
    position:absolute;inset:0;
    background:linear-gradient(120deg,rgba(10,110,92,.92) 0%,rgba(7,82,71,.78) 40%,rgba(15,23,42,.65) 100%);
  }
  .hero-content{position:relative;z-index:2;padding:3.5rem 3rem;color:#fff;max-width:780px;}
  .hero-eyebrow{
    display:inline-flex;align-items:center;gap:.5rem;
    background:rgba(255,255,255,.15);padding:.4rem 1rem;
    border-radius:var(--radius-pill);font-size:.78rem;font-weight:600;
    margin-bottom:1.25rem;backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,.2);
  }
  .hero-eyebrow .pulse{width:8px;height:8px;border-radius:50%;background:#4ADE80;animation:pulse-dot 1.5s infinite;}
  .hero h1{font-size:3rem;font-weight:900;line-height:1.1;letter-spacing:-.035em;margin-bottom:1rem;color:#fff;}
  .hero h1 span{color:#4ADE80;}
  .hero p{font-size:1.05rem;opacity:.95;margin-bottom:1.75rem;color:#fff;max-width:620px;}
  .hero-search{
    display:flex;gap:.5rem;background:#fff;padding:.5rem;
    border-radius:var(--radius-pill);box-shadow:0 20px 50px rgba(0,0,0,.4);
    max-width:640px;
  }
  .hero-search input{flex:1;border:none;outline:none;padding:.75rem 1rem;font-size:.9rem;border-radius:var(--radius-pill);color:#0F172A;background:#fff;}
  .hero-stats{display:flex;gap:2.5rem;margin-top:2rem;flex-wrap:wrap;}
  .hero-stats div{display:flex;flex-direction:column;}
  .hero-stats b{font-size:1.6rem;font-weight:900;color:#4ADE80;letter-spacing:-.02em;}
  .hero-stats small{font-size:.75rem;opacity:.85;color:#fff;font-weight:500;}
  /* =========================================================
     SPOT CARDS
     ========================================================= */
  .spot-card{
    background:var(--surface);border:1px solid var(--border);
    border-radius:var(--radius-lg);overflow:hidden;
    transition:var(--transition);box-shadow:var(--shadow-sm);
    display:flex;flex-direction:column;
  }
  .spot-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);}
  .spot-img{
    height:180px;background-size:cover;background-position:center;
    position:relative;cursor:pointer;overflow:hidden;
  }
  .spot-img::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 30%,rgba(0,0,0,.7));transition:var(--transition);}
  .spot-card:hover .spot-img::after{background:linear-gradient(180deg,rgba(0,0,0,.2) 20%,rgba(0,0,0,.8));}
  .spot-card:hover .spot-img{transform:scale(1.05);}
  .spot-loc{position:absolute;bottom:.8rem;inset-inline-start:.85rem;color:#fff;font-size:.75rem;font-weight:700;z-index:2;display:flex;align-items:center;gap:.35rem;text-shadow:0 1px 4px rgba(0,0,0,.5);}
  .spot-fav{position:absolute;top:.75rem;inset-inline-end:.75rem;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.95);color:var(--red);display:grid;place-items:center;z-index:3;cursor:pointer;transition:var(--transition);box-shadow:0 2px 8px rgba(0,0,0,.2);}
  .spot-fav:hover{transform:scale(1.15);}
  .spot-fav.active{background:var(--red);color:#fff;}
  .spot-photo-count{position:absolute;top:.75rem;inset-inline-start:.75rem;background:rgba(0,0,0,.65);color:#fff;padding:.25rem .55rem;border-radius:var(--radius-pill);font-size:.7rem;font-weight:700;z-index:3;display:flex;align-items:center;gap:.3rem;backdrop-filter:blur(4px);}
  .spot-body{padding:1rem 1.1rem 1.1rem;flex:1;display:flex;flex-direction:column;}
  .spot-body h4{font-size:1.02rem;font-weight:800;margin-bottom:.3rem;}
  .spot-body p{font-size:.78rem;color:var(--text-muted);margin-bottom:.75rem;flex:1;}
  .spot-meta{display:flex;justify-content:space-between;align-items:center;font-size:.75rem;margin-bottom:.85rem;}
  .spot-rating{color:var(--amber);font-weight:800;}
  .spot-price{font-weight:800;color:var(--teal);font-size:.95rem;}
  /* =========================================================
     LIGHTBOX
     ========================================================= */
  .lightbox{position:fixed;inset:0;background:rgba(0,0,0,.95);z-index:5000;display:none;align-items:center;justify-content:center;padding:1rem;}
  .lightbox.show{display:flex;animation:fade .2s;}
  .lightbox-inner{max-width:1100px;width:100%;position:relative;background:#0a0a0a;border-radius:var(--radius-lg);overflow:hidden;}
  .lightbox-img{width:100%;height:70vh;background-size:cover;background-position:center;transition:transform .5s ease;}
  .lightbox-img.panorama{background-size:auto 100%;background-repeat:repeat-x;animation:pano-scroll 40s linear infinite;}
  @keyframes pano-scroll{0%{background-position-x:0;}100%{background-position-x:-2000px;}}
  .lightbox-close{position:absolute;top:1rem;inset-inline-end:1rem;z-index:2;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.15);backdrop-filter:blur(10px);color:#fff;display:grid;place-items:center;font-size:1.2rem;cursor:pointer;transition:var(--transition);}
  .lightbox-close:hover{background:var(--red);}
  .lightbox-info{padding:1rem 1.5rem;background:#111;color:#fff;display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;}
  .lightbox-info h3{font-size:1.1rem;font-weight:800;}
  .lightbox-info p{font-size:.8rem;opacity:.7;}
  .lightbox-actions{display:flex;gap:.5rem;}
  .lightbox-btn{padding:.5rem 1rem;border-radius:var(--radius-pill);background:rgba(255,255,255,.15);color:#fff;font-size:.78rem;font-weight:600;display:inline-flex;align-items:center;gap:.4rem;border:1px solid rgba(255,255,255,.2);}
  .lightbox-btn.primary{background:var(--teal);border-color:var(--teal);}
  .lightbox-thumbs{display:flex;gap:.4rem;padding:.75rem 1.5rem;background:#0a0a0a;overflow-x:auto;}
  .lb-thumb{width:70px;height:50px;border-radius:8px;background-size:cover;background-position:center;cursor:pointer;flex-shrink:0;border:2px solid transparent;transition:var(--transition);}
  .lb-thumb.active{border-color:var(--teal);}
  .lb-thumb:hover{transform:scale(1.05);}
  /* =========================================================
     EXPLORE / SIDEBAR LAYOUT
     ========================================================= */
  .explore-layout{display:grid;grid-template-columns:280px 1fr;gap:1.5rem;}
  .filter-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;position:sticky;top:90px;height:fit-content;max-height:calc(100vh - 110px);overflow-y:auto;}
  .filter-panel h4{font-size:.9rem;font-weight:800;margin-bottom:.85rem;}
  .filter-group{margin-bottom:1.25rem;}
  .filter-group > label.title{font-weight:800;color:var(--text);margin-bottom:.5rem;display:block;font-size:.8rem;text-transform:uppercase;letter-spacing:.04em;}
  .filter-group label{display:flex;align-items:center;gap:.55rem;font-size:.82rem;color:var(--text-muted);padding:.35rem 0;cursor:pointer;}
  .filter-group input[type="checkbox"]{accent-color:var(--teal);width:16px;height:16px;}
  .result-card{display:flex;gap:1rem;padding:1rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:.85rem;transition:var(--transition);}
  .result-card:hover{border-color:var(--teal);box-shadow:var(--shadow);}
  .result-thumb{width:90px;height:90px;border-radius:var(--radius);background:var(--slate-100);display:grid;place-items:center;font-size:2rem;flex-shrink:0;overflow:hidden;background-size:cover;background-position:center;}
  .result-body{flex:1;min-width:0;}
  .result-body h4{font-size:1rem;font-weight:800;margin-bottom:.25rem;display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;}
  .result-body .meta{font-size:.78rem;color:var(--text-muted);margin-bottom:.55rem;}
  .result-tags{display:flex;gap:.4rem;flex-wrap:wrap;}
  /* =========================================================
     MAP
     ========================================================= */
  #mapCanvas{height:660px;position:relative;border-radius:var(--radius-lg);border:1px solid var(--border);overflow:hidden;box-shadow:var(--shadow-sm);}
  .map-layout{display:grid;grid-template-columns:1fr 340px;gap:1.25rem;align-items:start;}
  .map-sidebar{background:var(--surface);border-radius:var(--radius-lg);border:1px solid var(--border);padding:1.1rem;max-height:660px;overflow-y:auto;}
  .map-sidebar h4{font-size:.9rem;font-weight:800;margin-bottom:.85rem;}
  .map-poi{display:flex;gap:.7rem;padding:.7rem;border-radius:var(--radius);cursor:pointer;transition:var(--transition);align-items:center;}
  .map-poi:hover{background:var(--surface-2);}
  .map-poi-icon{width:40px;height:40px;border-radius:10px;background-size:cover;background-position:center;flex-shrink:0;}
  .map-poi h5{font-size:.82rem;font-weight:700;}
  .map-poi p{font-size:.72rem;color:var(--text-muted);}
  .map-popup{padding:12px 14px;font-size:.82rem;}
  .map-popup-img{width:100%;height:110px;background-size:cover;background-position:center;border-radius:10px;margin-bottom:.6rem;}
  /* =========================================================
     BLOG / EVENTS
     ========================================================= */
  .blog-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;transition:var(--transition);}
  .blog-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);}
  .blog-img{height:180px;background-size:cover;background-position:center;position:relative;}
  .blog-cat{position:absolute;top:.75rem;inset-inline-start:.75rem;background:var(--teal);color:#fff;padding:.25rem .7rem;border-radius:var(--radius-pill);font-size:.7rem;font-weight:700;}
  .blog-body{padding:1.1rem;}
  .blog-body h4{font-size:1rem;font-weight:800;margin-bottom:.4rem;}
  .blog-body p{font-size:.78rem;color:var(--text-muted);line-height:1.6;margin-bottom:.75rem;}
  .blog-meta{display:flex;justify-content:space-between;font-size:.72rem;color:var(--text-muted);}
  .event-card{display:flex;gap:1rem;padding:1rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:.85rem;transition:var(--transition);}
  .event-card:hover{border-color:var(--teal);box-shadow:var(--shadow);}
  .event-date{background:var(--teal);color:#fff;border-radius:12px;padding:.75rem .9rem;text-align:center;flex-shrink:0;min-width:70px;}
  .event-thumb{
    width:104px;height:78px;border-radius:12px;flex-shrink:0;
    background-size:cover;background-position:center;
  }
  @media (max-width:600px){ .event-thumb{display:none;} }
  .event-date b{display:block;font-size:1.4rem;font-weight:900;line-height:1;}
  .event-date small{font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;opacity:.9;}
  .event-body{flex:1;}
  .event-body h4{font-size:.95rem;font-weight:800;margin-bottom:.3rem;}
  .event-body p{font-size:.78rem;color:var(--text-muted);margin-bottom:.4rem;}
  .event-meta{display:flex;gap:.75rem;font-size:.72rem;color:var(--text-muted);}
  /* =========================================================
     DASHBOARDS
     ========================================================= */
  .dash-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;flex-wrap:wrap;margin-bottom:1.5rem;}
  .dash-header h1{font-size:1.6rem;font-weight:900;letter-spacing:-.025em;}
  .dash-header p{color:var(--text-muted);font-size:.88rem;margin-top:.25rem;}
  .kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-bottom:1.5rem;}
  .kpi{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.15rem;display:flex;flex-direction:column;gap:.35rem;position:relative;overflow:hidden;transition:var(--transition);}
  .kpi:hover{transform:translateY(-2px);box-shadow:var(--shadow);}
  .kpi::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--teal),var(--green));opacity:.9;}
  .kpi .kpi-top{display:flex;justify-content:space-between;align-items:center;}
  .kpi .kpi-icon{width:36px;height:36px;border-radius:10px;background:var(--teal-light);color:var(--teal);display:grid;place-items:center;font-size:.95rem;}
  .kpi .kpi-value{font-size:1.65rem;font-weight:900;letter-spacing:-.025em;}
  .kpi .kpi-label{font-size:.75rem;color:var(--text-muted);font-weight:700;}
  .kpi .trend{font-size:.7rem;font-weight:800;display:inline-flex;align-items:center;gap:.2rem;}
  .trend.up{color:var(--green);}
  .trend.down{color:var(--red);}
  .table{width:100%;border-collapse:collapse;font-size:.83rem;background:var(--surface);border-radius:var(--radius);overflow:hidden;border:1px solid var(--border);}
  .table thead{background:var(--surface-2);}
  .table th{text-align:left;padding:.85rem 1rem;font-weight:800;color:var(--text-muted);font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid var(--border);}
  [dir="rtl"] .table th,[dir="rtl"] .table td{text-align:right;}
  .table td{padding:.9rem 1rem;border-bottom:1px solid var(--border);}
  .table tr:last-child td{border-bottom:none;}
  .table tr:hover td{background:var(--surface-2);}
  .progress-track{height:8px;background:var(--surface-2);border-radius:var(--radius-pill);overflow:hidden;}
  .progress-fill{height:100%;background:var(--teal);border-radius:var(--radius-pill);transition:width .5s;}
  .progress-fill.green{background:var(--green);}
  .progress-fill.amber{background:var(--amber);}
  .timeline{position:relative;padding-inline-start:1.5rem;}
  .timeline::before{content:"";position:absolute;inset-inline-start:.45rem;top:.3rem;bottom:.3rem;width:2px;background:var(--border);}
  .tl-item{position:relative;padding-bottom:1.1rem;}
  .tl-item:last-child{padding-bottom:0;}
  .tl-dot{position:absolute;inset-inline-start:-1.5rem;top:.15rem;width:14px;height:14px;border-radius:50%;background:var(--border);border:3px solid var(--surface);box-shadow:0 0 0 1px var(--border);}
  .tl-dot.done{background:var(--green);box-shadow:0 0 0 1px var(--green);}
  .tl-dot.active{background:var(--teal);box-shadow:0 0 0 1px var(--teal);}
  .tl-item h5{font-size:.85rem;font-weight:700;}
  .tl-item p{font-size:.75rem;color:var(--text-muted);}
  /* Activity log */
  .activity-item{display:flex;gap:.85rem;padding:.85rem 0;border-bottom:1px solid var(--border);}
  .activity-item:last-child{border-bottom:none;}
  .activity-icon{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;flex-shrink:0;font-size:.9rem;}
  .activity-icon.login{background:var(--blue-light);color:var(--blue);}
  .activity-icon.register{background:var(--green-light);color:var(--green);}
  .activity-icon.booking{background:var(--teal-light);color:var(--teal);}
  .activity-icon.report{background:var(--red-light);color:var(--red);}
  .activity-icon.edit{background:var(--amber-light);color:var(--amber);}
  .activity-body{flex:1;}
  .activity-body h5{font-size:.83rem;font-weight:700;margin-bottom:.15rem;}
  .activity-body p{font-size:.75rem;color:var(--text-muted);}
  .activity-body small{font-size:.7rem;color:var(--text-muted);}
  /* =========================================================
     MESSAGES
     ========================================================= */
  .msg-layout{display:grid;grid-template-columns:340px 1fr;gap:1.25rem;height:700px;}
  .msg-list{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow-y:auto;}
  .msg-list-header{padding:1rem 1.25rem;border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--surface);z-index:1;}
  .msg-list-header h4{font-size:.95rem;font-weight:800;}
  .conv{display:flex;gap:.75rem;padding:.85rem 1.25rem;cursor:pointer;border-bottom:1px solid var(--border);transition:var(--transition);}
  .conv:hover{background:var(--surface-2);}
  .conv.active{background:var(--teal-light);border-inline-start:3px solid var(--teal);}
  .conv-avatar{width:44px;height:44px;border-radius:50%;background-size:cover;background-position:center;display:grid;place-items:center;font-size:1.15rem;flex-shrink:0;position:relative;border:2px solid var(--border);}
  .conv-avatar .online{position:absolute;bottom:0;right:0;width:13px;height:13px;border-radius:50%;background:var(--green);border:2px solid var(--surface);}
  .conv-body{flex:1;min-width:0;}
  .conv-body h5{font-size:.85rem;font-weight:700;display:flex;justify-content:space-between;gap:.5rem;color:var(--text);}
  .conv-body h5 small{font-size:.7rem;color:var(--text-muted);font-weight:500;}
  .conv-body p{font-size:.75rem;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:.2rem;}
  .chat-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);display:flex;flex-direction:column;overflow:hidden;}
  .chat-header{padding:1rem 1.25rem;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:.75rem;background:var(--surface-2);}
  .chat-header h4{font-size:.95rem;font-weight:800;}
  .chat-header p{font-size:.72rem;color:var(--green);font-weight:600;display:flex;align-items:center;gap:.3rem;}
  .chat-body{flex:1;overflow-y:auto;padding:1.25rem;display:flex;flex-direction:column;gap:.9rem;background:var(--surface-2);}
  .chat-input{padding:1rem;border-top:1px solid var(--border);display:flex;gap:.5rem;background:var(--surface);}
  .chat-input input{flex:1;padding:.75rem 1rem;border-radius:var(--radius-pill);border:1px solid var(--border);outline:none;font-size:.85rem;background:var(--surface);color:var(--text);}
  .chat-input button{width:44px;height:44px;border-radius:50%;background:var(--teal);color:#fff;display:grid;place-items:center;flex-shrink:0;}
  .msg{max-width:80%;padding:.85rem 1.1rem;border-radius:var(--radius);font-size:.86rem;line-height:1.55;}
  .msg.bot{background:var(--surface);border:1px solid var(--border);border-bottom-left-radius:4px;align-self:flex-start;}
  .msg.user{background:var(--teal);color:#fff;border-bottom-right-radius:4px;align-self:flex-end;}
  .msg .msg-time{font-size:.65rem;opacity:.6;margin-top:.35rem;display:block;}
  /* =========================================================
     AI ASSISTANT
     ========================================================= */
  .ai-layout{display:grid;grid-template-columns:1fr 340px;gap:1.25rem;align-items:start;}
  .ai-chat{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;display:flex;flex-direction:column;height:720px;}
  .ai-header{padding:1rem 1.25rem;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:.7rem;background:var(--surface-2);}
  .ai-avatar{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,var(--teal),var(--blue));color:#fff;display:grid;place-items:center;font-size:1.1rem;}
  .ai-header h4{font-size:.95rem;font-weight:800;}
  .ai-header p{font-size:.72rem;color:var(--green);font-weight:600;display:flex;align-items:center;gap:.3rem;}
  .ai-header p::before{content:"";width:8px;height:8px;background:var(--green);border-radius:50%;animation:pulse-dot 1.5s infinite;}
  .ai-body{flex:1;overflow-y:auto;padding:1.25rem;display:flex;flex-direction:column;gap:1rem;background:var(--surface-2);}
  .ai-input{padding:1rem;border-top:1px solid var(--border);display:flex;gap:.5rem;background:var(--surface);align-items:center;}
  .ai-input input{flex:1;padding:.75rem 1rem;border-radius:var(--radius-pill);border:1px solid var(--border);outline:none;font-size:.85rem;background:var(--surface);color:var(--text);}
  .ai-mic{width:44px;height:44px;border-radius:50%;background:var(--surface-2);color:var(--text-muted);display:grid;place-items:center;flex-shrink:0;border:1px solid var(--border);}
  .ai-mic:hover{color:var(--teal);border-color:var(--teal);}
  .ai-send{width:44px;height:44px;border-radius:50%;background:var(--teal);color:#fff;display:grid;place-items:center;flex-shrink:0;}
  .ai-suggest{display:block;width:100%;text-align:left;padding:.7rem .9rem;background:var(--surface-2);border-radius:var(--radius);font-size:.78rem;margin-bottom:.5rem;color:var(--text);transition:var(--transition);font-weight:500;border:1px solid var(--border);}
  .ai-suggest:hover{background:var(--teal-light);color:var(--teal);border-color:var(--teal);}
  [dir="rtl"] .ai-suggest{text-align:right;}
  /* =========================================================
     WIZARD / MODAL
     ========================================================= */
  .wizard-steps{display:flex;gap:.5rem;margin-bottom:1.5rem;}
  .wstep{flex:1;display:flex;flex-direction:column;align-items:center;gap:.35rem;}
  .wstep .wstep-num{width:32px;height:32px;border-radius:50%;background:var(--surface-2);border:2px solid var(--border);display:grid;place-items:center;font-size:.78rem;font-weight:800;color:var(--text-muted);transition:var(--transition);}
  .wstep.done .wstep-num{background:var(--green);border-color:var(--green);color:#fff;}
  .wstep.active .wstep-num{background:var(--teal);border-color:var(--teal);color:#fff;transform:scale(1.1);}
  .wstep small{font-size:.7rem;color:var(--text-muted);font-weight:700;text-align:center;}
  .wstep.active small{color:var(--teal);}
  .upload-zone{border:2px dashed var(--border);border-radius:var(--radius);padding:2rem;text-align:center;background:var(--surface-2);cursor:pointer;transition:var(--transition);}
  .upload-zone:hover{border-color:var(--teal);background:var(--teal-light);}
  .upload-zone i{font-size:2rem;color:var(--teal);margin-bottom:.5rem;}
  .upload-zone h5{font-size:.9rem;font-weight:800;margin-bottom:.25rem;}
  .upload-zone p{font-size:.75rem;color:var(--text-muted);}
  .modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.7);z-index:2000;display:none;align-items:center;justify-content:center;padding:1rem;backdrop-filter:blur(6px);}
  .modal-overlay.show{display:flex;animation:fade .2s;}
  .modal{background:var(--surface);border-radius:var(--radius-lg);padding:1.75rem;max-width:560px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:var(--shadow-lg);animation:slideUp .3s ease;position:relative;}
  @keyframes slideUp{from{transform:translateY(20px);opacity:0;}to{transform:none;opacity:1;}}
  .modal h3{font-size:1.25rem;font-weight:900;margin-bottom:.35rem;}
  .modal p.sub{font-size:.85rem;color:var(--text-muted);margin-bottom:1.25rem;}
  .modal-close{position:absolute;top:1rem;inset-inline-end:1rem;width:34px;height:34px;border-radius:50%;background:var(--surface-2);display:grid;place-items:center;color:var(--text-muted);cursor:pointer;transition:var(--transition);}
  .modal-close:hover{background:var(--red);color:#fff;}
  .date-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:.35rem;margin-top:.5rem;}
  .date-grid .day{aspect-ratio:1;display:grid;place-items:center;font-size:.8rem;border-radius:10px;cursor:pointer;transition:var(--transition);}
  .date-grid .day:hover{background:var(--surface-2);}
  .date-grid .day.selected{background:var(--teal);color:#fff;font-weight:800;}
  .date-grid .day.disabled{color:var(--text-muted);opacity:.4;cursor:not-allowed;}
  .date-grid .day.head{font-size:.7rem;font-weight:800;color:var(--text-muted);cursor:default;}
  /* =========================================================
     TOASTS
     ========================================================= */
  .toast-container{position:fixed;top:80px;inset-inline-end:1rem;z-index:3000;display:flex;flex-direction:column;gap:.5rem;max-width:340px;}
  .toast{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:.9rem 1.1rem;box-shadow:var(--shadow-lg);display:flex;align-items:center;gap:.75rem;animation:slideIn .3s ease;font-size:.83rem;}
  @keyframes slideIn{from{transform:translateX(20px);opacity:0;}to{transform:none;opacity:1;}}
  .toast .toast-icon{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:#fff;flex-shrink:0;}
  .toast.success .toast-icon{background:var(--green);}
  .toast.info .toast-icon{background:var(--blue);}
  .toast.warn .toast-icon{background:var(--amber);}
  .toast.error .toast-icon{background:var(--red);}
  .toast h5{font-size:.83rem;font-weight:800;margin-bottom:.1rem;}
  .toast p{font-size:.75rem;color:var(--text-muted);}
  /* =========================================================
     FOOTER
     ========================================================= */
  .footer{background:#0F172A;color:#94A3B8;padding:2.5rem 1.5rem 1.5rem;margin-top:3rem;}
  [data-theme="dark"] .footer{background:#050810;border-top:1px solid var(--border);}
  .footer-grid{max-width:1280px;margin:0 auto;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:2rem;}
  .footer h5{color:#fff;font-size:.85rem;font-weight:800;margin-bottom:.85rem;}
  .footer a{display:block;font-size:.8rem;padding:.25rem 0;transition:var(--transition);color:#94A3B8;}
  .footer a:hover{color:#fff;}
  .footer-bottom{max-width:1280px;margin:2rem auto 0;padding-top:1.25rem;border-top:1px solid #1E293B;display:flex;justify-content:space-between;flex-wrap:wrap;gap:1rem;font-size:.75rem;}
  /* =========================================================
     RESPONSIVE
     ========================================================= */
  @media (max-width:1024px){
    .grid-4{grid-template-columns:repeat(2,1fr);}
    .kpi-grid{grid-template-columns:repeat(2,1fr);}
    .explore-layout,.map-layout,.ai-layout,.msg-layout{grid-template-columns:1fr;}
    .filter-panel{position:static;max-height:none;}
    .footer-grid{grid-template-columns:1fr 1fr;}
    .msg-layout{height:auto;}
    .msg-list{max-height:320px;}
    .hero h1{font-size:2rem;}
    .hero-content{padding:2.5rem 2rem;}
  }
  @media (max-width:720px){
    .appnav{display:none;}
    .hero h1{font-size:1.75rem;}
    .hero-content{padding:2rem 1.25rem;}
    .hero-wrap{min-height:480px;}
    .grid-2,.grid-3,.grid-4{grid-template-columns:1fr;}
    .kpi-grid{grid-template-columns:1fr 1fr;}
    .footer-grid{grid-template-columns:1fr;}
    .container{padding:1rem;}
    .appbar{padding:.6rem 1rem;}
    .brand-name{font-size:1rem;}
    #mapCanvas{height:420px;}
    .hero-stats{gap:1.25rem;}
  }
