/* Desktop */
.sm-brand { display:flex; align-items:center; gap:10px; }
.sm-brand img { width:42px; height:42px; }
.sm-brand h1 { margin:0; font-size:26px; letter-spacing:.2px; }
.sm-brand p { margin:3px 0 0; font-size:10px; color:#b9c7dc; }
.sm-nav { display:grid; gap:6px; }
.sm-nav a { min-height:46px; border-radius:11px; display:flex; align-items:center; gap:12px; padding:0 14px; color:#dce6f5; text-decoration:none; font-weight:700; }
.sm-nav a.active { color:#fff; background:linear-gradient(90deg,#2f6df6,#1c55db); box-shadow:0 8px 20px rgba(29,85,219,.25); }
.sm-nav a span:first-child { width:24px; text-align:center; }
.sm-side-foot { margin-top:auto; padding-top:18px; border-top:1px solid rgba(255,255,255,.09); display:grid; gap:14px; }
.sm-user { display:flex; align-items:center; gap:10px; }
.sm-avatar { width:42px; height:42px; border-radius:50%; object-fit:cover; background:#f0f4fb; }
.sm-search { flex:1; max-width:720px; height:46px; background:#f5f7fb; border:1px solid #edf0f6; border-radius:12px; display:flex; align-items:center; gap:10px; padding:0 16px; color:#9aa5b8; }
.sm-tools { display:flex; gap:10px; align-items:center; }
.sm-tool { width:42px; height:42px; border-radius:11px; border:1px solid var(--sm-line); background:#fff; display:grid; place-items:center; }
.sm-hero { position:relative; overflow:hidden; min-height:210px; border-radius:20px; background:#eaf3ff; border:1px solid #e4ebf5; box-shadow:var(--sm-shadow-sm); }
.sm-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.85) 44%,rgba(255,255,255,.12) 77%); }
.sm-hero img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 44%; }
.sm-hero-content { position:relative; z-index:1; padding:34px 38px; max-width:720px; }
.sm-hero h2 { margin:0; font-size:44px; line-height:1.15; }
.sm-hero h2 b { color:var(--sm-primary); }
.sm-hero p { font-size:17px; margin:10px 0 18px; color:#34415b; }
.sm-hero-tags { display:flex; gap:10px; flex-wrap:wrap; }
.sm-hero-tag { min-height:36px; display:inline-flex; align-items:center; gap:8px; padding:0 13px; border-radius:10px; background:rgba(255,255,255,.86); border:1px solid rgba(217,227,241,.95); font-weight:700; }
.sm-kpis { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; margin-top:16px; }
.sm-kpi .spark { grid-column:1/-1; height:16px; border-radius:10px; background:linear-gradient(90deg,transparent 0%,rgba(47,109,246,.1) 30%,rgba(47,109,246,.45) 70%,transparent 100%); clip-path:polygon(0 70%,18% 62%,36% 75%,53% 45%,70% 51%,84% 25%,100% 30%,100% 70%,0 70%); }
.sm-grid3 { display:grid; grid-template-columns:1.18fr 1.18fr .94fr; gap:16px; margin-top:16px; }
.sm-panel { padding:18px 20px; min-height:285px; }
.sm-panel-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.sm-panel-head h3 { margin:0; font-size:18px; }
.sm-link { color:var(--sm-primary); font-weight:800; font-size:13px; }
.sm-ai { background:linear-gradient(145deg,#fbf8ff 0%,#fff 46%,#f0f7ff 100%); }
.sm-ai-orb { width:52px; height:52px; border-radius:16px; display:grid; place-items:center; background:linear-gradient(135deg,#7650f2,#2f6df6); color:#fff; font-size:24px; box-shadow:0 12px 30px rgba(79,83,224,.25); }
.sm-ai-input { margin-top:16px; min-height:56px; display:flex; align-items:center; gap:10px; padding:0 14px; border-radius:13px; background:#fff; border:1px solid var(--sm-line); color:#9aa5b8; }
.sm-ai-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:14px; }
.sm-ai-actions button { min-height:46px; border:1px solid var(--sm-line); border-radius:11px; background:#fff; font:inherit; font-weight:700; }
.sm-quick { margin-top:16px; padding:16px 18px 18px; }
.sm-quick h3 { margin:0 0 12px; font-size:17px; }
.sm-portals { display:grid; grid-template-columns:repeat(9,minmax(0,1fr)); gap:10px; }
.sm-portal { min-height:112px; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; gap:8px; border-radius:14px; background:#fff; border:1px solid var(--sm-line); }
.sm-portal .picon { width:44px; height:44px; border-radius:12px; display:grid; place-items:center; font-size:22px; }
.sm-footer { display:flex; justify-content:space-between; color:#758197; font-size:12px; padding:18px 6px 0; }
/* Mobile */
.mob-shell { min-height:100vh; padding-bottom:78px; background:linear-gradient(180deg,#fff 0,#f5f8fc 100%); }
.mob-top { position:sticky; top:0; z-index:10; height:74px; display:flex; align-items:center; gap:10px; padding:10px 14px; background:rgba(255,255,255,.94); backdrop-filter:blur(16px); border-bottom:1px solid var(--sm-line); }
.mob-brand { margin-right:auto; display:flex; align-items:center; gap:8px; }
.mob-brand img { width:36px; height:36px; }
.mob-brand b { font-size:17px; }
.mob-icon { width:42px; height:42px; border:1px solid var(--sm-line); background:#fff; border-radius:12px; display:grid; place-items:center; }
.mob-home { padding:14px; }
.mob-hero { min-height:156px; border-radius:18px; overflow:hidden; position:relative; box-shadow:var(--sm-shadow-md); }
.mob-hero img { width:100%; height:156px; object-fit:cover; }
.mob-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(22,79,185,.2),rgba(27,117,222,.76)); }
.mob-hero-copy { position:absolute; z-index:1; inset:0; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; color:#fff; padding:20px; }
.mob-hero-copy b { font-size:20px; max-width:210px; }
.mob-hero-copy span { font-size:12px; margin-top:6px; }
.mob-kpis { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px; }
.mob-kpi { min-height:88px; padding:13px; display:flex; gap:10px; align-items:center; }
.mob-kpi strong { display:block; font-size:24px; }
.mob-kpi small { color:var(--sm-muted); }
.mob-section { margin-top:12px; padding:14px; }
.mob-section h3 { margin:0 0 10px; font-size:16px; }
.mob-bottom { position:fixed; bottom:0; left:0; right:0; z-index:50; height:68px; display:grid; grid-template-columns:repeat(5,1fr); background:rgba(255,255,255,.96); backdrop-filter:blur(18px); border-top:1px solid var(--sm-line); }
.mob-bottom button { border:0; background:transparent; display:grid; place-items:center; align-content:center; gap:3px; color:#8490a5; font:inherit; font-size:10px; }
.mob-bottom button.active { color:var(--sm-primary); font-weight:800; }
.mob-bottom .navicon { font-size:20px; }
.mob-screen { display:none; }
.mob-screen.active { display:block; }
.mob-portals-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:16px; }
.mob-portal { min-height:118px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; text-align:center; font-weight:800; }
.mob-portal .picon { width:46px; height:46px; border-radius:14px; display:grid; place-items:center; font-size:22px; }
.mob-head { height:64px; display:flex; align-items:center; justify-content:space-between; padding:0 16px; background:#fff; border-bottom:1px solid var(--sm-line); }
.mob-head h2 { margin:0; font-size:18px; }
.mob-list { padding:12px 16px; }
.mob-list .sm-card { margin-bottom:10px; padding:12px; }
.mob-ai { padding:20px 16px 100px; text-align:center; }
.mob-ai .sm-ai-orb { margin:20px auto 12px; }
.mob-ai h2 { margin:0; }
.mob-ai .prompts { display:grid; gap:10px; margin:22px 0; }
.mob-ai .prompts button { min-height:50px; border-radius:14px; border:1px solid #cddcff; background:#fff; color:#2859ae; font:inherit; font-weight:800; }
.mob-profile { padding:24px 16px 90px; }
.mob-profile-top { text-align:center; margin-bottom:20px; }
.mob-profile .avatar-big { width:88px; height:88px; border-radius:50%; margin:0 auto 10px; display:grid; place-items:center; background:linear-gradient(135deg,#f6d1c0,#e6eefc); font-size:38px; }
.mob-menu { overflow:hidden; }
.mob-menu a { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 14px; border-bottom:1px solid var(--sm-line); color:var(--sm-text); text-decoration:none; }
.mob-menu a:last-child { border-bottom:0; }
.mob-drawer { position:fixed; top:0; right:0; bottom:0; width:min(86vw,330px); background:linear-gradient(180deg,#0c1a32,#10284a); color:#fff; z-index:80; transform:translateX(104%); transition:.22s ease; padding:28px 18px; }
.mob-drawer.open { transform:translateX(0); }
.mob-backdrop { position:fixed; inset:0; background:rgba(2,10,22,.46); z-index:79; display:none; }
.mob-backdrop.open { display:block; }
.mob-drawer .sm-nav a { min-height:50px; }
.mob-drawer .sm-brand { margin-bottom:24px; }
.mob-drawer .sm-side-foot { position:absolute; bottom:26px; left:18px; right:18px; }
/* Login preview */
.login-preview { min-height:100vh; display:grid; grid-template-columns:minmax(0,1fr) minmax(360px,470px); background:#fff; direction:ltr; }
.login-image { position:relative; overflow:hidden; background:#e9f2ff; }
.login-image img { width:100%; height:100%; object-fit:cover; }
.login-image::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(18,100,231,.03),rgba(18,64,177,.82)); }
.login-panel { direction:rtl; padding:46px 46px 34px; display:flex; flex-direction:column; justify-content:center; }
.login-logo { text-align:center; margin-bottom:28px; }
.login-logo img { width:74px; height:74px; }
.login-logo h2 { margin:10px 0 4px; font-size:28px; }
.login-tabs { display:grid; grid-template-columns:1fr 1fr; background:#f4f6fa; border-radius:12px; padding:4px; margin-bottom:18px; }
.login-tabs button { min-height:44px; border:0; border-radius:9px; font:inherit; background:transparent; font-weight:800; }
.login-tabs button.active { background:var(--sm-primary); color:#fff; }
.login-form { display:grid; gap:12px; }
.login-social { display:grid; gap:10px; margin-top:14px; }
@media (max-width: 900px){
  .login-preview{grid-template-columns:1fr;min-height:100vh}
  .login-image{display:none}
  .login-panel{padding:30px 20px;justify-content:flex-start}
  .login-logo{margin-top:18px}
}
