/* 3.3.13: scoped learner, landing and manager surfaces; RTL + responsive. */
.hm-smart-student,.hm-smart-card{max-width:1280px;margin:22px auto;padding:24px;border:1px solid #d4e4f6;background:linear-gradient(140deg,#fff 60%,#f4faff 100%);border-radius:22px;box-shadow:0 9px 35px rgba(16,67,126,.07);color:#173653;box-sizing:border-box;direction:rtl}
.hm-smart-student *,.hm-smart-card *,.hm-smart-admin *{box-sizing:border-box}
.hm-smart-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px}
.hm-smart-heading span{display:block;color:#2477bd;font-size:12px;font-weight:700}
.hm-smart-heading h2{font-size:clamp(19px,2.1vw,27px);line-height:1.6;margin:2px 0 0;color:#163d68}
.hm-smart-heading>a{display:inline-block;background:#edf5ff;border:1px solid #c8ddf2;border-radius:11px;padding:9px 14px;text-decoration:none;color:#125aa1;font-weight:700}
.hm-smart-student>p,.hm-smart-sales>p{margin:0 0 16px;color:#536d83;line-height:1.95}
.hm-smart-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.hm-smart-stats>div{padding:16px;background:#eef6ff;border:1px solid #d6eafa;border-radius:16px;min-width:0}
.hm-smart-stats small,.hm-smart-stats span{display:block;line-height:1.6;color:#59738a;font-size:11px}
.hm-smart-stats strong{display:block;color:#124f96;font-size:24px;font-weight:900;line-height:1.6;overflow-wrap:anywhere}
.hm-smart-stats>div:first-child strong{font-size:17px}
.hm-smart-progress-meta{display:flex;justify-content:space-between;gap:12px;margin:22px 0 8px;font-size:13px;color:#2e5879}
.hm-smart-progress{height:11px;border-radius:40px;background:#dce9f4;overflow:hidden}
.hm-smart-progress>span{display:block;background:linear-gradient(90deg,#1383d7,#18b5a1);height:100%;border-radius:inherit}
.hm-smart-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:17px 0}
.hm-smart-steps article{background:#fff;border:1px solid #dae5f2;border-radius:15px;padding:14px;display:flex;align-items:center;gap:10px;min-width:0}
.hm-smart-steps article.is-done{background:#f0fcf8;border-color:#b7e5cf}
.hm-smart-step-num{display:grid;place-items:center;flex:0 0 33px;height:33px;border-radius:50%;color:#135ca8;background:#eaf4ff;font-weight:800}
.hm-smart-steps article>div{min-width:0;flex:1}.hm-smart-steps strong,.hm-smart-steps small{display:block}.hm-smart-steps strong{font-size:13px;color:#234c6c}.hm-smart-steps small{font-size:11px;color:#667f92;line-height:1.65}
.hm-smart-steps article>a,.hm-smart-done{white-space:nowrap;font-size:11px;font-weight:800;text-decoration:none;color:#0a65b1}.hm-smart-done{color:#147957}
.hm-smart-footnote{font-size:11px!important;color:#637b8d!important}
.hm-smart-actions{display:flex;gap:10px;flex-wrap:wrap}.hm-smart-actions a,.hm-smart-sales-cta a{background:#136bbc;padding:11px 16px;border-radius:10px;font-weight:800;text-decoration:none;color:#fff!important}.hm-smart-actions a+ a,.hm-smart-sales-cta a+a{color:#1460a1!important;background:#e7f2fd}
.hm-smart-recent-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hm-smart-recent-grid article{padding:13px;background:#f6faff;border:1px solid #d8e9f8;border-radius:13px;min-width:0}
.hm-smart-recent-grid small,.hm-smart-recent-grid strong,.hm-smart-recent-grid a,.hm-smart-recent-grid article>span{display:block;line-height:1.75}
.hm-smart-recent-grid small{color:#5c7d98;font-size:11px}.hm-smart-recent-grid strong{color:#214d76;font-size:13px}.hm-smart-recent-grid a,.hm-smart-recent-grid article>span{color:#126aaf;font-size:11px;margin-top:5px;text-decoration:none}
.hm-smart-recent-grid article>span{color:#687b8d}.hm-smart-muted{font-size:13px;color:#597184}
.hm-smart-sales-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}
.hm-smart-sales-options article{border:1px solid #cee0ef;padding:20px;background:#fff;border-radius:17px;min-width:0}
.hm-smart-sales-options h3{font-size:18px;color:#173f6a;margin:10px 0 4px}.hm-smart-sales-options p{font-size:13px;line-height:2;color:#61798a;min-height:65px}
.hm-smart-sales-options article>a{font-weight:800;text-decoration:none;color:#136abc}.hm-smart-pill{font-size:11px;padding:4px 10px;border-radius:14px;font-weight:800}.hm-smart-pill.free{background:#def7e9;color:#067a46}.hm-smart-pill.paid{background:#e4efff;color:#1762a1}
.hm-smart-sales-cta{display:flex;flex-wrap:wrap;gap:9px}
.hm-smart-admin{font-family:Vazirmatn,Tahoma,sans-serif;color:#193c62}.hm-smart-admin h1{font-size:27px}.hm-smart-period{display:flex;align-items:center;gap:9px;margin:18px 0;flex-wrap:wrap}.hm-smart-period a{background:#fff;border:1px solid #c9dbea;color:#135b9b;padding:8px 14px;border-radius:10px;text-decoration:none}.hm-smart-period a.current{color:white;background:#1468bb;border-color:#1468bb}
.hm-smart-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.hm-smart-kpis article{background:#fff;border:1px solid #d5e3ef;border-radius:15px;padding:18px;box-shadow:0 5px 18px rgba(21,79,128,.05)}.hm-smart-kpis small,.hm-smart-kpis article>span{display:block;color:#657b90;font-size:12px}.hm-smart-kpis strong{display:block;font-size:25px;line-height:1.8;color:#155f9d}.hm-smart-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.hm-smart-admin-card{margin:16px 0;background:#fff;border:1px solid #d4e3ee;border-radius:16px;padding:20px;box-shadow:0 6px 22px rgba(15,76,133,.06)}.hm-smart-admin-card h2{margin:0 0 13px;color:#164f83}.hm-smart-admin-card li{line-height:2}.hm-smart-admin-card>ul{padding:0;list-style:none}.hm-smart-admin-card li{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #e6eef6;padding:5px 0}.hm-smart-admin-card a{color:#136caf}.hm-smart-recent-orders{list-style:none;padding:0}.hm-smart-recent-orders li>div{flex:1}.hm-smart-recent-orders li small{display:block;color:#607b90;font-size:11px}.hm-smart-recent-orders li strong{font-size:12px}
.hm-smart-table{overflow:auto}.hm-smart-table table{min-width:680px}.hm-smart-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin:15px 0}.hm-smart-settings-grid label{font-weight:700;font-size:13px}.hm-smart-settings-grid input,.hm-smart-settings-grid textarea{width:100%;margin-top:7px;padding:10px;border:1px solid #b6cfe0;border-radius:10px;line-height:1.8}.hm-smart-admin-foot,.hm-smart-footnote{font-size:12px;color:#627a91;line-height:1.9}
@media(max-width:780px){.hm-smart-stats,.hm-smart-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.hm-smart-admin-grid,.hm-smart-settings-grid{grid-template-columns:1fr}.hm-smart-student,.hm-smart-card{padding:16px;border-radius:15px}.hm-smart-steps{grid-template-columns:1fr}}
@media(max-width:480px){.hm-smart-sales-options,.hm-smart-recent-grid{grid-template-columns:1fr}.hm-smart-stats{gap:7px}.hm-smart-stats>div{padding:11px}.hm-smart-stats strong{font-size:20px}.hm-smart-steps article{flex-wrap:wrap}.hm-smart-kpis strong{font-size:20px}}
