  :root{
    --bg: #0A0A0B;
    --surface: #151517;
    --surface-2: #1D1B19;
    --line: #2A2724;
    --orange: #FF5A1F;
    --orange-light: #FF8A3D;
    --orange-dim: #B8420F;
    --text: #F3F1EC;
    --muted: #948E86;
    --success: #33D389;
    --danger: #FF5257;
    --radius: 10px;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{ background: var(--bg); }
  body{
    background: var(--bg);
    color: var(--text);
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    line-height:1.6;
    min-height:100vh;
  }
  .mono{ font-family:'JetBrains Mono', monospace; letter-spacing:0.02em; }
  .display{ font-family:'Space Grotesk', 'IBM Plex Sans Arabic', sans-serif; }
  a{ color:inherit; text-decoration:none; }
  button{ font-family:inherit; cursor:pointer; border:none; }
  ::selection{ background: var(--orange); color:#0A0A0B; }

  /* ===== Layout shell ===== */
  .app{ display:flex; min-height:100vh; }
  .hidden{ display:none !important; }

  /* ===== Topbar (public) ===== */
  .topbar{
    position:sticky; top:0; z-index:40;
    display:flex; align-items:center; justify-content:space-between;
    padding:18px 40px;
    background: rgba(10,10,11,0.85);
    backdrop-filter: blur(10px);
    border-bottom:1px solid var(--line);
  }
  .logo{ display:flex; align-items:center; gap:10px; font-size:20px; font-weight:700; }
  .logo-mark{
    width:30px; height:30px; border-radius:50%;
    background: radial-gradient(circle at 30% 30%, var(--orange-light), var(--orange-dim));
    display:flex; align-items:center; justify-content:center;
    color:#fff; flex-shrink:0;
  }
  .logo-mark svg{ width:60%; height:60%; }
  .nav-links{ display:flex; gap:32px; font-size:14.5px; color:var(--muted); }
  .nav-links a:hover{ color:var(--text); }
  .top-actions{ display:flex; gap:10px; align-items:center; }

  .btn{
    padding:10px 20px; border-radius:8px; font-size:14.5px; font-weight:600;
    transition: all .15s ease; display:inline-flex; align-items:center; gap:6px;
  }
  .btn-primary{ background: var(--orange); color:#0A0A0B; }
  .btn-primary:hover{ background: var(--orange-light); transform: translateY(-1px); }
  .btn-ghost{ background: transparent; color:var(--text); border:1px solid var(--line); }
  .btn-ghost:hover{ border-color: var(--orange); color: var(--orange-light); }
  .btn-sm{ padding:7px 14px; font-size:13px; }
  .btn-danger{ background: rgba(255,82,87,0.12); color: var(--danger); }
  .btn-block{ width:100%; justify-content:center; }

  /* ===== Hero ===== */
  .hero{
    padding: 90px 40px 60px;
    position:relative; overflow:hidden;
    background:
      radial-gradient(ellipse 700px 400px at 85% -10%, rgba(255,90,31,0.18), transparent 60%);
  }
  .hero-inner{ max-width:1180px; margin:0 auto; display:grid; grid-template-columns:1.1fr 0.9fr; gap:60px; align-items:center; }
  .eyebrow{
    display:inline-flex; align-items:center; gap:8px;
    font-family:'JetBrains Mono'; font-size:12.5px; color:var(--orange-light);
    border:1px solid var(--orange-dim); background:rgba(255,90,31,0.08);
    padding:6px 12px; border-radius:100px; margin-bottom:22px;
  }
  .eyebrow::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--orange); box-shadow:0 0 8px var(--orange); }
  .hero h1{ font-size:52px; line-height:1.1; font-weight:700; margin-bottom:20px; }
  .hero h1 span{ color: var(--orange); }
  .hero p{ color:var(--muted); font-size:17px; max-width:520px; margin-bottom:32px; }
  .hero-actions{ display:flex; gap:14px; margin-bottom:40px; }
  .btn-lg{ padding:14px 26px; font-size:15.5px; }

  .stat-row{ display:flex; gap:36px; }
  .stat{ }
  .stat .num{ font-family:'JetBrains Mono'; font-size:26px; font-weight:600; color:var(--text); }
  .stat .num span{ color:var(--orange); }
  .stat .label{ font-size:12.5px; color:var(--muted); margin-top:2px; }

  /* Signature: live panel */
  .panel-card{
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    border:1px solid var(--line); border-radius:16px;
    padding:22px; position:relative;
    box-shadow: 0 30px 60px -30px rgba(255,90,31,0.15);
  }
  .panel-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
  .panel-title{ font-family:'JetBrains Mono'; font-size:12.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; }
  .live-dot{ display:flex; align-items:center; gap:6px; font-family:'JetBrains Mono'; font-size:11.5px; color:var(--success); }
  .live-dot::before{ content:''; width:7px; height:7px; border-radius:50%; background:var(--success); animation:pulse 1.6s infinite; }
  @keyframes pulse{ 0%,100%{opacity:1} 50%{opacity:.3} }
  .feed-row{
    display:flex; justify-content:space-between; align-items:center;
    padding:11px 0; border-bottom:1px dashed var(--line); font-size:13.5px;
  }
  .feed-row:last-child{ border-bottom:none; }
  .feed-plat{ display:flex; align-items:center; gap:8px; color:var(--text); }
  .plat-dot{ width:8px; height:8px; border-radius:2px; }
  .feed-status{ font-family:'JetBrains Mono'; font-size:11.5px; padding:3px 9px; border-radius:5px; }
  .st-completed{ background:rgba(51,211,137,0.12); color:var(--success); }
  .st-processing{ background:rgba(255,90,31,0.12); color:var(--orange-light); }

  /* ===== Sections ===== */
  section{ padding:70px 40px; max-width:1180px; margin:0 auto; }
  .section-head{ margin-bottom:40px; }
  .section-tag{ font-family:'JetBrains Mono'; font-size:12px; color:var(--orange); text-transform:uppercase; letter-spacing:.1em; margin-bottom:10px; }
  .section-head h2{ font-size:32px; font-weight:700; }
  .section-head p{ color:var(--muted); margin-top:10px; max-width:560px; }

  .steps-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
  .step{ background:var(--surface); padding:26px 22px; }
  .step .idx{ font-family:'JetBrains Mono'; color:var(--orange); font-size:13px; margin-bottom:14px; }
  .step h3{ font-size:16px; margin-bottom:8px; }
  .step p{ font-size:13.5px; color:var(--muted); }

  .platform-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
  .platform-card{
    background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:26px;
    display:flex; gap:18px; align-items:flex-start; transition:.15s;
  }
  .platform-card:hover{ border-color:var(--orange-dim); transform:translateY(-2px); }
  .plat-icon{ width:46px; height:46px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
  .plat-ig{ background:linear-gradient(135deg,#f58529,#dd2a7b,#8134af); }
  .plat-tt{ background:#111; border:1px solid #333; }
  .platform-card h3{ font-size:16.5px; margin-bottom:4px; }
  .platform-card p{ font-size:13px; color:var(--muted); }
  .tag-list{ display:flex; gap:6px; flex-wrap:wrap; margin-top:10px; }
  .tag{ font-size:11px; font-family:'JetBrains Mono'; color:var(--muted); border:1px solid var(--line); padding:3px 8px; border-radius:5px; }

  .faq-item{ border-bottom:1px solid var(--line); padding:20px 0; cursor:pointer; }
  .faq-q{ display:flex; justify-content:space-between; align-items:center; font-weight:600; font-size:15px; }
  .faq-a{ color:var(--muted); font-size:14px; margin-top:10px; max-width:640px; display:none; }
  .faq-item.open .faq-a{ display:block; }
  .faq-plus{ color:var(--orange); font-family:'JetBrains Mono'; transition:.2s; }
  .faq-item.open .faq-plus{ transform:rotate(45deg); }

  footer{ border-top:1px solid var(--line); padding:40px; text-align:center; color:var(--muted); font-size:13px; }

  /* ===== Auth ===== */
  .auth-wrap{ min-height:100vh; display:flex; align-items:center; justify-content:center; padding:20px; }
  .auth-card{ width:100%; max-width:400px; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:36px; }
  .auth-card h2{ font-size:22px; margin-bottom:6px; }
  .auth-card > p{ color:var(--muted); font-size:13.5px; margin-bottom:26px; }
  .field{ margin-bottom:16px; }
  .field label{ display:block; font-size:13px; color:var(--muted); margin-bottom:6px; }
  .field input, .field select, .field textarea{
    width:100%; background:var(--bg); border:1px solid var(--line); border-radius:8px;
    padding:11px 13px; color:var(--text); font-size:14.5px; font-family:inherit;
  }
  .field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--orange); }
  .auth-switch{ text-align:center; margin-top:18px; font-size:13.5px; color:var(--muted); }
  .auth-switch a{ color:var(--orange-light); font-weight:600; }
  .error-msg{ background:rgba(255,82,87,0.1); color:var(--danger); font-size:13px; padding:9px 12px; border-radius:8px; margin-bottom:14px; display:none; }

  /* ===== Dashboard shell ===== */
  .dash-shell{ display:flex; width:100%; height:100vh; }
  .sidebar{
    width:230px; background:var(--surface); border-left:1px solid var(--line);
    padding:24px 16px; display:flex; flex-direction:column; flex-shrink:0;
  }
  .side-link{
    display:flex; align-items:center; gap:10px; padding:11px 14px; border-radius:8px;
    color:var(--muted); font-size:14px; margin-bottom:4px; font-weight:500;
  }
  .side-link:hover{ background:var(--surface-2); color:var(--text); }
  .side-link.active{ background:rgba(255,90,31,0.12); color:var(--orange-light); }
  .side-icon{ width:18px; text-align:center; font-family:'JetBrains Mono'; }
  .main{ flex:1; padding:30px 40px; overflow-y:auto; background:var(--bg); }
  .topbar-dash{ display:flex; justify-content:space-between; align-items:center; margin-bottom:28px; }
  .page-title{ font-size:24px; font-weight:700; }
  .balance-pill{
    display:flex; align-items:center; gap:10px; background:var(--surface); border:1px solid var(--line);
    padding:9px 16px; border-radius:100px; font-family:'JetBrains Mono'; font-size:14px;
  }
  .balance-pill span{ color:var(--orange-light); font-weight:600; }

  .cards-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:28px; }
  .kpi-card{ background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:20px; }
  .kpi-card .label{ font-size:12.5px; color:var(--muted); margin-bottom:8px; }
  .kpi-card .value{ font-family:'JetBrains Mono'; font-size:24px; font-weight:600; }
  .kpi-card .value.orange{ color:var(--orange); }

  .card{ background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:22px; margin-bottom:20px; }
  .card-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
  .card-head h3{ font-size:16px; }

  table{ width:100%; border-collapse:collapse; font-size:13.5px; }
  th{ text-align:right; color:var(--muted); font-weight:500; font-size:12px; text-transform:uppercase; letter-spacing:.05em; padding:10px 8px; border-bottom:1px solid var(--line); }
  td{ padding:12px 8px; border-bottom:1px solid var(--line); }
  tr:last-child td{ border-bottom:none; }
  .badge{ font-family:'JetBrains Mono'; font-size:11px; padding:4px 9px; border-radius:5px; display:inline-block; }
  .badge-pending{ background:rgba(255,90,31,0.12); color:var(--orange-light); }
  .badge-completed{ background:rgba(51,211,137,0.12); color:var(--success); }
  .badge-processing{ background:rgba(255,255,255,0.08); color:var(--text); }
  .badge-rejected{ background:rgba(255,82,87,0.12); color:var(--danger); }

  /* Services catalog */
  .filter-row{ display:flex; gap:10px; margin-bottom:20px; }
  .filter-btn{ padding:9px 18px; border-radius:8px; background:var(--surface); border:1px solid var(--line); color:var(--muted); font-size:13.5px; font-weight:600; }
  .filter-btn.active{ background:rgba(255,90,31,0.12); border-color:var(--orange-dim); color:var(--orange-light); }
  .service-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
  .service-card{ background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:18px; }
  .service-card .plat-badge{ font-family:'JetBrains Mono'; font-size:10.5px; color:var(--muted); margin-bottom:10px; display:block; }
  .service-card h4{ font-size:14.5px; margin-bottom:10px; min-height:38px; }
  .service-card .price{ font-family:'JetBrains Mono'; font-size:19px; color:var(--orange-light); font-weight:600; }
  .service-card .price small{ font-size:11px; color:var(--muted); font-weight:400; }
  .service-card .minmax{ font-size:11.5px; color:var(--muted); margin:8px 0 14px; }

  .notif-dot{ position:relative; }
  .notif-dot::after{ content:attr(data-count); position:absolute; top:-6px; left:-6px; background:var(--orange); color:#0A0A0B; font-size:10px; font-family:'JetBrains Mono'; font-weight:700; width:16px; height:16px; border-radius:50%; display:flex; align-items:center; justify-content:center; }

  .empty{ text-align:center; padding:40px 20px; color:var(--muted); font-size:13.5px; }

  /* ===== Mobile app-style dashboard (Perfect-Follow-inspired) ===== */
  .mobile-sticky-top{ }
  .mobile-shell{ max-width:460px; margin:0 auto; }
  .mtop{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
  .micon-btn{ width:42px; height:42px; border-radius:12px; background:var(--surface); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-size:16px; }
  .mbrand{ display:flex; align-items:center; gap:8px; font-weight:700; font-size:16px; }
  .balance-card{
    background: radial-gradient(135% 135% at 12% 8%, var(--orange) 0%, #D2440F 40%, #7A2607 72%, #2E0F04 100%);
    border-radius:20px; padding:22px; margin-bottom:16px; position:relative; overflow:hidden;
    box-shadow: 0 20px 40px -20px rgba(255,90,31,0.5);
  }
  .balance-card::after{ content:''; position:absolute; inset:0; background:radial-gradient(circle at 88% -15%, rgba(255,255,255,0.16), transparent 60%); }
  .bal-top{ display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:22px; position:relative; z-index:1; }
  .bal-charge-btn{ background:rgba(0,0,0,0.28); color:#fff; border:1px solid rgba(255,255,255,0.25); padding:9px 16px; border-radius:100px; font-size:13px; font-weight:600; display:inline-flex; align-items:center; gap:6px; }
  .bal-label{ color:rgba(255,255,255,0.85); font-size:12px; text-align:left; }
  .bal-amount{ color:#fff; font-size:32px; font-weight:700; font-family:'JetBrains Mono'; text-align:left; }
  .bal-amount small{ font-size:14px; font-weight:500; opacity:.85; }
  .bal-pills{ display:flex; gap:10px; position:relative; z-index:1; }
  .bal-pill{ background:rgba(0,0,0,0.28); border:1px solid rgba(255,255,255,0.2); color:#fff; font-size:12.5px; padding:8px 14px; border-radius:100px; font-weight:600; }

  .msearch{ background:var(--surface); border:1px solid rgba(255,255,255,0.06); border-radius:100px; padding:13px 18px; color:var(--muted); font-size:14px; margin-bottom:20px; display:flex; align-items:center; gap:10px; box-shadow: inset 0 1px 2px rgba(0,0,0,0.2); }
  .msearch input{ background:transparent; border:none; color:var(--text); font-size:14px; width:100%; font-family:inherit; }
  .msearch input:focus{ outline:none; }
  .msearch input::placeholder{ color:var(--muted); }

  .mplat-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
  .mplat-head h4{ font-size:15px; color:var(--orange-light); }
  .mplat-grid{ display:grid; grid-template-columns:1fr; gap:12px; padding-bottom:90px; }
  .mplat-card{
    border-radius:16px; padding:16px; display:flex; justify-content:space-between; align-items:flex-start;
    border:1px solid var(--line); position:relative; overflow:hidden; min-height:88px;
  }
  .mplat-card .mp-name{ font-weight:700; font-size:14.5px; margin-bottom:6px; }
  .mplat-card .mp-count{ font-size:11.5px; font-family:'JetBrains Mono'; padding:3px 9px; border-radius:100px; display:inline-block; }
  .mplat-card .mp-icon{ width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }

  .mbottom-nav{
    position:fixed; bottom:0; left:0; right:0; max-width:460px; margin:0 auto;
    background:rgba(10,10,11,0.92); backdrop-filter:blur(10px); border-top:1px solid var(--line);
    display:flex; justify-content:space-around; padding:10px 0 16px; z-index:50;
  }
  .mnav-item{ display:flex; flex-direction:column; align-items:center; gap:4px; font-size:11px; color:var(--muted); }
  .mnav-item.active{ color:var(--orange); }
  .mnav-item .mnav-icon{ display:flex; align-items:center; justify-content:center; }

  @media (min-width:900px){ .mbottom-nav{ display:none; } .admin-mobile-menu-wrap{ display:none; } }

  .empty{ text-align:center; padding:40px 20px; color:var(--muted); font-size:13.5px; }

  @media (max-width:900px){
    .hero-inner{ grid-template-columns:1fr; }
    .nav-links{ display:none; }
    .steps-grid{ grid-template-columns:repeat(2,1fr); }
    .platform-grid, .cards-row, .service-grid{ grid-template-columns:1fr; }
    .sidebar{ display:none; }
    .main{ padding:20px; padding-bottom:100px; }
  }
  #user-dropdown-menu a{ cursor:pointer; }
  #user-dropdown-menu a:hover{ background:var(--surface-2); }
