/* Saudi Market community • RTL responsive • scoped to plugin features */
.sm-community{--sm-accent:#04786d;--sm-accent2:#0f454f;--sm-highlight:#dbad61;direction:rtl;text-align:right;font-family:Almarai,Tajawal,Arial,sans-serif;color:#19383c;line-height:1.9}
.sm-community *{box-sizing:border-box}.sm-community h1,.sm-community h2,.sm-community h3{line-height:1.55}.sm-community .sm-hero{background:radial-gradient(circle at 0 20%,rgba(249,194,110,.18),transparent 38%),linear-gradient(115deg,#071f36,#115d6b 60%,#148275);box-shadow:0 18px 44px rgba(4,60,70,.13)}
.sm-community button,.sm-community input,.sm-community select,.sm-community textarea{font:inherit}.sm-community .sm-btn{gap:8px}.sm-community .sm-ico{flex-shrink:0;vertical-align:middle}.sm-community .sm-info{border-right:4px solid #e1b76a}
.sm-public-profile .sm-profile-cover{height:240px;position:relative;background:radial-gradient(circle at 12% 28%,rgba(234,204,150,.45),transparent 42%),linear-gradient(120deg,#16304a,#047c77)}
.sm-public-profile .sm-user-head{background:#fff;border-radius:15px;padding:6px 19px 15px;max-width:640px;box-shadow:0 12px 25px rgba(5,60,66,.12)}
.sm-community .sm-profile-meta{padding:12px 4px 1px}.sm-community .sm-profile-meta p{font-size:13px;color:#65807e;margin:9px 2px 14px}.sm-community .sm-online{color:#087b63;font-weight:800;margin:0 10px}
.sm-community .sm-badges{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.sm-community .sm-level{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:800;border:1px solid #d7e9e3;background:#ebf5f0;color:#0e675a;padding:5px 11px;border-radius:999px;white-space:nowrap}
.sm-community .sm-level.sm-verified{background:#e4f2ff;border-color:#a1cff8;color:#09609f}.sm-community .sm-level.sm-trusted{background:#fff4dc;border-color:#ecd19a;color:#785210}.sm-community .sm-level.sm-expert{background:#1b3f4a;color:white}
.sm-community .sm-profile-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;margin:17px 0 22px}.sm-community .sm-profile-stats>div{border:1px solid #deebe6;background:white;border-radius:15px;padding:15px 8px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-height:120px;box-shadow:0 5px 19px rgba(9,46,46,.04)}.sm-community .sm-profile-stats .sm-ico{color:#18817a}.sm-community .sm-profile-stats strong{font-size:24px;color:#0c4c53;line-height:1.35}.sm-community .sm-profile-stats small{font-size:11px;line-height:1.4;text-align:center;color:#68817f}
.sm-community .sm-member-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.sm-community .sm-inline{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap}.sm-community .sm-inline>label{display:grid;gap:4px;min-width:160px}.sm-community .sm-inline textarea{width:min(380px,80vw);min-height:70px;padding:9px;border:1px solid #d7e6e2;border-radius:9px}.sm-community .sm-inline select{padding:9px;border-radius:9px}
.sm-community .sm-wa{background:#e5f9eb;color:#00683b!important}.sm-community .sm-social-links{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0;padding:5px 0}.sm-community .sm-social-links>a{border:1px solid #d9e6e5;border-radius:10px;padding:8px 13px;display:flex;gap:8px;align-items:center;color:#1e4c52;background:#fff;font-weight:750;font-size:12px;text-decoration:none;transition:transform .2s,box-shadow .2s}.sm-community .sm-social-links a:hover{transform:translateY(-2px);box-shadow:0 10px 25px #123e4e18}.sm-community .sm-social-links img,.sm-community .sm-btn img{height:19px;width:19px;object-fit:contain}
.sm-community .sm-ads{grid-template-columns:repeat(4,minmax(0,1fr))}.sm-community .sm-level-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0}.sm-community .sm-level-grid article{border:1px solid #d8e7e3;background:linear-gradient(155deg,#fff,#f3f9f7);border-radius:16px;padding:17px 19px;box-shadow:0 9px 25px rgba(21,77,76,.05)}.sm-community .sm-level-grid h2{font-size:18px;margin:0 0 7px}.sm-community .sm-level-grid p{color:#576f72;font-size:13px;margin:0}
.sm-community .sm-member-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:25px 0}.sm-community .sm-member-card{background:white;border:1px solid #e0e9e7;border-radius:16px;padding:22px 12px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;text-decoration:none;box-shadow:0 6px 20px #173e4410;transition:transform .15s}.sm-community .sm-member-card:hover{transform:translateY(-4px)}.sm-community .sm-member-card img{height:90px;width:90px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 5px 17px #143f4020}.sm-community .sm-member-card strong{font-size:15px;color:#1a4d53}.sm-community .sm-member-card span{font-size:11px;color:#6d827e}.sm-community .sm-member-card .sm-level{font-size:10px}
.sm-community .sm-connection{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:9px 0;padding:9px 11px;background:white;border:1px solid #dbe8e5;border-radius:13px}.sm-community .sm-connection img{border-radius:50%}
.sm-community .sm-inbox{display:grid;grid-template-columns:235px minmax(0,1fr);gap:14px;margin:20px 0;min-height:400px}.sm-community .sm-inbox-contacts,.sm-community .sm-inbox-main{border:1px solid #d7e5e2;background:#fff;border-radius:15px;padding:18px}.sm-community .sm-inbox-contacts>a{display:flex;gap:9px;align-items:center;text-decoration:none;padding:10px;border-bottom:1px solid #eef4f1;color:#174850}.sm-community .sm-inbox-contacts img{height:36px;width:36px;border-radius:50%}.sm-community .sm-conversation{height:310px;overflow:auto;border-radius:10px;background:#eff5f2;padding:15px;display:flex;flex-direction:column;gap:9px}.sm-community .sm-bubble{max-width:80%;border-radius:13px;padding:9px 12px;background:white;align-self:flex-start;white-space:pre-wrap;overflow-wrap:anywhere}.sm-community .sm-bubble.mine{background:#d7f0e4;align-self:flex-end}.sm-community .sm-bubble time{display:block;font-size:10px;color:#657e7a;text-align:left}.sm-community .sm-send-form{display:flex;align-items:end;gap:10px;margin-top:13px}.sm-community .sm-send-form>label{flex:1}.sm-community .sm-send-form textarea{border:1px solid #d6e5e0;border-radius:10px;padding:11px;width:100%;resize:vertical}
.sm-community.sm-ad-wizard .sm-form{max-width:100%;background:transparent;border:0;padding:0;gap:17px}.sm-community .sm-ad-form>fieldset{border:1px solid #dae7e4;background:#fff;border-radius:17px;padding:19px clamp(13px,2.5vw,26px);box-shadow:0 9px 27px rgba(16,56,63,.04)}.sm-community .sm-ad-form legend{padding:4px 14px;background:#0d5c62;color:#fff;border-radius:9px;font-size:13px;font-weight:800}.sm-community .sm-ad-form label{margin-bottom:13px;display:grid;gap:5px;color:#21565a;font-weight:700;font-size:13px}.sm-community .sm-ad-form .sm-check{display:flex;gap:9px;align-items:flex-start}.sm-community .sm-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sm-community .sm-form-grid>*{min-width:0}.sm-community .sm-location-map{min-height:300px;border:1px solid #d7e5e1;border-radius:13px;background:linear-gradient(35deg,#d1e7d8,#a8cee0);display:grid;place-items:center;overflow:hidden;margin:12px 0 18px}.sm-community .sm-ad-form input[type=file]{border:2px dashed #bdcfd0;padding:17px;border-radius:10px;background:#f6faf9}
.sm-share{margin:26px auto;border-radius:16px;border:1px solid #d7e8e3;background:#f7faf9;padding:20px;max-width:1200px}.sm-share h2{font-size:20px}.sm-share nav{display:flex;flex-wrap:wrap;gap:9px}.sm-share nav>*{display:inline-flex;align-items:center;gap:7px;color:#174b51!important;text-decoration:none;border:1px solid #d9e6e4;background:white;border-radius:9px;padding:9px 13px;font-size:12px;font-weight:800;cursor:pointer}.sm-share img{height:20px;width:20px}.sm-share nav>*:hover{border-color:#d8b572;transform:translateY(-1px)}
@media(max-width:1050px){.sm-community .sm-profile-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.sm-community .sm-member-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.sm-community .sm-member-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sm-community .sm-level-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sm-community .sm-inbox{grid-template-columns:1fr}.sm-community .sm-inbox-contacts{max-height:180px;overflow:auto}.sm-community .sm-ad-form>fieldset{padding:16px 12px}.sm-community .sm-form-grid{grid-template-columns:1fr}.sm-community .sm-ads{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:450px){.sm-community .sm-profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.sm-community .sm-member-grid{gap:9px}.sm-community .sm-level-grid{grid-template-columns:1fr}.sm-community .sm-member-card{padding:13px 7px}.sm-community .sm-member-card img{height:70px;width:70px}.sm-community .sm-send-form{display:grid}}
@media(prefers-reduced-motion:reduce){.sm-community *{transition:none!important;animation:none!important}}
.sm-market .sm-market-quick{display:flex;gap:15px;flex-wrap:wrap;margin-top:10px}.sm-market .sm-market-quick a{color:#dcefed;font-weight:800;text-decoration:none;border-bottom:1px solid #d6b773;padding-bottom:2px;font-size:12px}.sm-market .sm-card-author{border-top:1px solid #e9f0ed;padding-top:7px;margin:10px 0 0;display:flex;gap:6px;align-items:center;flex-wrap:wrap}.sm-market .sm-card-author>a{color:#18685e;font-weight:800;text-decoration:none}.sm-market .sm-card-author .sm-level{font-size:10px;padding:2px 6px}
