
/* SAHMAT PREMIUM MASTER LAYER */
:root{
 --accent:#ff0a91; --accent2:#7a4cff; --accent3:#2c9cff;
 --bg:#040616; --bg2:#090b1d; --surface:rgba(7,10,28,.82); --surface2:rgba(16,20,47,.9);
 --text:#f8f8ff; --muted:#a8aec7; --line:rgba(255,255,255,.12); --shadow:0 24px 70px rgba(0,0,0,.48);
 --grad:linear-gradient(135deg,var(--accent),#ff4f58);
}
html[data-accent="pink"]{--accent:#ff0a91;--accent2:#7a4cff;--accent3:#2c9cff}
html[data-accent="purple"]{--accent:#b35cff;--accent2:#5d35e8;--accent3:#a978ff}
html[data-accent="blue"]{--accent:#248dff;--accent2:#2750ff;--accent3:#50c8ff}
html[data-accent="cyan"]{--accent:#12e0d0;--accent2:#168cff;--accent3:#5effe6}
html[data-accent="orange"]{--accent:#ff8a24;--accent2:#ff3e75;--accent3:#ffd36a}
html[data-accent="red"]{--accent:#ff334f;--accent2:#c51d4b;--accent3:#ff846f}
html[data-accent="green"]{--accent:#28d96c;--accent2:#00a58b;--accent3:#91ffae}
html[data-accent="yellow"]{--accent:#ffd229;--accent2:#ff7b18;--accent3:#fff19a}
html[data-accent="white"]{--accent:#e9efff;--accent2:#7d9dff;--accent3:#c4d7ff}
html.sm-light-mode{
 --bg:#edf2ff;--bg2:#f7f9ff;--surface:rgba(255,255,255,.9);--surface2:#fff;--text:#11152b;--muted:#59617b;--line:rgba(30,40,80,.14);--shadow:0 20px 55px rgba(38,47,90,.14);
}
html.sm-light-mode body{background:#edf2ff;color:var(--text)}
html.sm-light-mode .sm-header{background:rgba(248,250,255,.88)!important}
html.sm-light-mode .sm-menu li a,html.sm-light-mode .sm-nav-tools button{color:#303750!important}
html.sm-light-mode .sm-chatbox-body,html.sm-light-mode .sm-chatbox-head{color:#18203a}
html.sm-light-mode .sm-side-card,html.sm-light-mode .sm-home-post{background:rgba(255,255,255,.94);color:#171c34}
html.sm-light-mode .sm-home-post h3 a,html.sm-light-mode .sm-side-row,html.sm-light-mode .sm-pop-row{color:#171c34}
html.sm-light-mode .sm-footer{background:#101429}
html.sm-light-mode .sm-hero:before{opacity:.23}
body,button,input,textarea,select,h1,h2,h3,h4,h5,h6,p,a,span,div,li,small,strong,b,article,section{font-family:"Times New Roman",Times,serif}
body{background-color:var(--bg);color:var(--text);background-image:radial-gradient(circle at 10% 15%,color-mix(in srgb,var(--accent) 16%,transparent),transparent 30%),radial-gradient(circle at 90% 30%,color-mix(in srgb,var(--accent2) 18%,transparent),transparent 34%);background-attachment:fixed}
.sm-header{position:sticky!important;top:0;z-index:99999!important;background:rgba(3,5,16,.82)!important;backdrop-filter:blur(18px);border-bottom:1px solid var(--line)!important}
.sm-nav-wrap{min-height:70px!important;gap:16px!important}
.sm-brand{color:var(--text)!important;text-decoration:none!important}
.sm-brand-icon{background:var(--grad)!important;border-radius:13px!important;color:#fff!important;box-shadow:0 0 28px color-mix(in srgb,var(--accent) 45%,transparent)!important}
.sm-brand-copy strong{font-family:"Times New Roman",Times,serif!important;font-size:20px!important}
.sm-brand-copy small{font-family:"Times New Roman",Times,serif!important}
.sm-menu{gap:2px!important}
.sm-menu li a{font-family:"Times New Roman",Times,serif!important;font-size:14px!important;font-weight:700!important;color:#dce0f1!important}
.sm-menu li a:hover,.sm-menu .current-menu-item>a{background:color-mix(in srgb,var(--accent) 14%,transparent)!important;color:#fff!important}
.sm-menu .current-menu-item>a:after{background:var(--grad)!important}
.sm-nav-tools{gap:7px!important}
.sm-nav-cta{font-family:"Times New Roman",Times,serif!important;font-weight:700!important;background:var(--grad)!important;box-shadow:0 8px 30px color-mix(in srgb,var(--accent) 25%,transparent)!important}
.sm-lang-switch,.sm-theme-toggle{font-family:"Times New Roman",Times,serif!important;color:var(--text)!important}
.sm-color-dots{display:flex;align-items:center;gap:7px;margin-left:3px;padding-left:5px}
.sm-color-dot{width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.22);cursor:pointer;box-shadow:0 0 0 0 transparent;transition:.18s;flex:0 0 16px}
.sm-color-dot:hover{transform:scale(1.25);box-shadow:0 0 13px currentColor}
.sm-color-dot.is-active{box-shadow:0 0 0 2px #fff,0 0 16px currentColor;transform:scale(1.08)}
.c-pink{background:#ff0a91;color:#ff0a91}.c-purple{background:#9b5cff;color:#9b5cff}.c-blue{background:#2196ff;color:#2196ff}.c-cyan{background:#18d9d0;color:#18d9d0}.c-orange{background:#ff8a21;color:#ff8a21}.c-red{background:#ff3b3b;color:#ff3b3b}.c-green{background:#23d66b;color:#23d66b}.c-yellow{background:#ffd21f;color:#ffd21f}.c-white{background:#f3f6ff;color:#f3f6ff}
.sm-hero{position:relative;overflow:hidden;padding:28px 0 22px;background:#030515 url("../img/chess-bg.svg") center/cover no-repeat;border-bottom:1px solid var(--line)}
.sm-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,3,13,.82) 0%,rgba(3,5,18,.32) 48%,rgba(2,3,13,.72) 100%),linear-gradient(0deg,rgba(2,3,13,.75),transparent 45%);pointer-events:none}
.sm-hero-grid{position:relative;z-index:1;display:grid!important;grid-template-columns:290px minmax(0,1fr) 410px!important;gap:24px!important;align-items:center;max-width:1500px!important}
.sm-login-card,.sm-hero-chatbox{background:linear-gradient(145deg,rgba(5,8,24,.91),rgba(16,10,38,.8));border:1px solid color-mix(in srgb,var(--accent) 55%,rgba(255,255,255,.08));box-shadow:var(--shadow),0 0 35px color-mix(in srgb,var(--accent) 10%,transparent);backdrop-filter:blur(14px);border-radius:20px!important}
.sm-login-card{padding:24px!important}
.sm-card-title{font-family:"Times New Roman",Times,serif!important;font-size:21px!important;font-weight:800!important}
.sm-card-title i{color:var(--accent)!important}
.sm-login-subtitle,.sm-login-bottom,.sm-login-divider{font-family:"Times New Roman",Times,serif!important;color:#aeb5cf!important}
.sm-input-wrap{background:rgba(236,243,255,.95)!important;border:0!important;color:#111!important;border-radius:11px!important}
.sm-input-wrap input{font-family:"Times New Roman",Times,serif!important;color:#10162a!important}
.sm-login-btn{background:var(--grad)!important;font-family:"Times New Roman",Times,serif!important;font-size:16px!important}
.sm-free-register{font-family:"Times New Roman",Times,serif!important}
.sm-hero-copy{padding:16px 4px}
.sm-eyebrow{font-family:"Times New Roman",Times,serif!important;color:#d6d9ee!important;letter-spacing:1.3px!important;font-weight:700!important}
.sm-hero-copy h1{font-family:"Times New Roman",Times,serif!important;font-size:clamp(50px,5vw,78px)!important;line-height:.92!important;letter-spacing:-2px!important;text-align:left!important;color:#fff!important;text-shadow:0 8px 30px #000}
.sm-hero-copy h1 span{color:var(--accent)!important}
.sm-hero-copy p{font-family:"Times New Roman",Times,serif!important;text-align:left!important;color:#e2e6f8!important;font-size:18px!important;line-height:1.45!important}
.sm-hero-highlights span{font-family:"Times New Roman",Times,serif!important;font-weight:700!important;color:#f0f3ff!important}
.sm-hero-highlights i{color:var(--accent)!important}
.sm-btn-primary{background:var(--grad)!important;font-family:"Times New Roman",Times,serif!important;font-weight:800!important}
.sm-btn-outline{font-family:"Times New Roman",Times,serif!important}
.sm-live-users{font-family:"Times New Roman",Times,serif!important;color:#eef2ff!important}
.sm-online-dot{background:#23d66b!important}
.sm-hero-chatbox{overflow:hidden}
.sm-chatbox-head{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid var(--line);font-family:"Times New Roman",Times,serif;font-size:19px;font-weight:800;color:#fff}
.sm-chatbox-head i{color:var(--accent);margin-right:7px}
.sm-chatbox-head b{font-size:13px;color:#fff;background:color-mix(in srgb,var(--accent) 20%,transparent);padding:5px 9px;border-radius:20px}
.sm-chatbox-body{display:grid;grid-template-columns:minmax(0,1fr) 108px;min-height:315px}
.sm-chat-stream{padding:13px 15px;border-right:1px solid var(--line);overflow:hidden}
.sm-chat-stream p{font-family:"Times New Roman",Times,serif;font-size:13px;margin:0;padding:8px 0;color:#e8ebfa}
.sm-chat-stream time{color:#77809d;font-size:11px}.sm-chat-stream b{color:var(--accent)}
.sm-active-users{padding:13px 10px;display:flex;flex-direction:column;gap:9px;font-size:12px;color:#d9deef}
.sm-active-users strong{color:#fff;margin-bottom:3px}.sm-active-users span::first-letter{color:var(--accent)}
.sm-chat-compose{margin:10px;border:1px solid var(--line);border-radius:12px;height:42px;display:flex;align-items:center;gap:10px;padding:0 10px;color:#8790ac;font-size:12px}
.sm-chat-compose span{flex:1}.sm-chat-compose button{width:37px;height:32px;border:0;border-radius:9px;background:var(--grad);color:#fff}
.sm-section{padding:34px 0}.sm-blog-section{background:linear-gradient(180deg,rgba(3,5,16,.2),rgba(3,5,16,.62))}
.sm-blog-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}
.sm-section-title{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:16px}
.sm-section-title.compact{margin-bottom:14px}
.sm-section-kicker{font-size:11px;color:var(--accent);font-weight:800;letter-spacing:1px}
.sm-section-title h2,.sm-page-head-pro h1{font-family:"Times New Roman",Times,serif;font-size:34px;margin:4px 0;color:#fff}
.sm-section-title p,.sm-page-head-pro p{margin:0;color:var(--muted);font-size:15px}
.sm-outline-link{border:1px solid color-mix(in srgb,var(--accent) 60%,var(--line));padding:10px 14px;border-radius:11px;color:#fff;text-decoration:none;font-weight:700;white-space:nowrap}
.sm-blog-filters{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px}.sm-blog-filters a{padding:7px 12px;border:1px solid var(--line);border-radius:999px;color:#cbd1e5;text-decoration:none;font-size:12px;font-weight:700}.sm-blog-filters a.active,.sm-blog-filters a:hover{background:var(--grad);border-color:transparent;color:#fff}
.sm-home-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.sm-home-post{overflow:hidden;background:linear-gradient(145deg,rgba(15,19,42,.94),rgba(5,7,20,.96));border:1px solid var(--line);border-radius:15px;box-shadow:0 14px 35px rgba(0,0,0,.22);transition:.25s}
.sm-home-post:hover{transform:translateY(-4px);border-color:color-mix(in srgb,var(--accent) 55%,var(--line));box-shadow:0 18px 40px color-mix(in srgb,var(--accent) 12%,transparent)}
.sm-home-post-img{height:150px;display:block;overflow:hidden}.sm-home-post-img img{width:100%;height:100%;object-fit:cover;transition:.4s}.sm-home-post:hover img{transform:scale(1.06)}
.sm-home-post-body{padding:14px}.sm-post-tag{display:inline-block;color:#fff;background:var(--grad);border-radius:5px;padding:3px 7px;font-size:10px;font-weight:800}.sm-home-post h3{font-size:18px;line-height:1.1;margin:9px 0 6px}.sm-home-post h3 a{color:#fff;text-decoration:none}.sm-home-post p{color:#9ea6bf;font-size:13px;line-height:1.45;margin:0 0 11px}.sm-home-post-meta{display:flex;justify-content:space-between;color:#77819d;font-size:11px}.sm-read-more{display:inline-block;color:var(--accent);text-decoration:none;font-size:12px;font-weight:800;margin-top:10px}
.sm-sidebar-new{display:flex;flex-direction:column;gap:15px}.sm-side-card{background:linear-gradient(145deg,rgba(13,16,38,.94),rgba(5,7,19,.94));border:1px solid var(--line);border-radius:15px;overflow:hidden}.sm-side-head{padding:14px 15px;border-bottom:1px solid var(--line);display:flex;gap:10px;align-items:center;color:#fff}.sm-side-head i{color:var(--accent)}.sm-side-row,.sm-pop-row{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid rgba(255,255,255,.06);color:#d9def0;text-decoration:none;font-size:13px}.sm-side-row:last-child,.sm-pop-row:last-child{border-bottom:0}.sm-side-row i{color:var(--accent);margin-right:8px}.sm-side-row small{color:#71809e}.sm-pop-row{justify-content:flex-start;gap:10px}.sm-pop-row b{width:23px;height:23px;border-radius:7px;background:color-mix(in srgb,var(--accent) 17%,transparent);display:grid;place-items:center;color:var(--accent)}.sm-pop-row span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sm-mobile-card{padding-bottom:14px}.sm-mobile-card .sm-side-head{margin-bottom:12px}.sm-phone{width:175px;height:320px;margin:auto;border:5px solid #171d38;border-radius:27px;background:#050817;box-shadow:0 0 0 2px var(--accent),0 18px 45px rgba(0,0,0,.45);padding:8px;position:relative}.sm-phone-notch{width:72px;height:12px;background:#11162a;border-radius:0 0 10px 10px;margin:-8px auto 8px}.sm-phone-screen{height:280px;border-radius:19px;background:#080a1d url("../img/chess-1.svg") center/cover;display:flex;flex-direction:column;padding:14px;color:#fff}.sm-phone-logo{font-weight:800;font-size:12px}.sm-phone-logo i{color:var(--accent)}.sm-phone-screen h4{font-size:24px;line-height:1;margin-top:auto}.sm-phone-screen h4 span{color:var(--accent)}.sm-phone-screen button{border:0;border-radius:8px;background:var(--grad);color:#fff;padding:8px;font-weight:800}.sm-phone-screen small{font-size:8px;text-align:center;margin-top:8px}
.sm-gallery-section{padding:24px 0 38px;background:#030512 url("../img/chess-bg.svg") center/cover fixed;position:relative}.sm-gallery-section:before{content:"";position:absolute;inset:0;background:rgba(2,3,13,.68)}.sm-gallery-section>.sm-container{position:relative;z-index:1}.sm-chess-gallery{display:grid;grid-template-columns:repeat(8,1fr);gap:8px;overflow:hidden}.sm-gallery-item{height:125px;border-radius:10px;overflow:hidden;border:1px solid var(--line);display:block}.sm-gallery-item img{width:100%;height:100%;object-fit:cover;transition:.35s}.sm-gallery-item:hover img{transform:scale(1.08)}
.sm-blog-page-pro{padding:44px 0 70px;min-height:55vh}.sm-page-head-pro{padding:22px 0 16px}.sm-page-head-pro>span{color:var(--accent);font-weight:800;letter-spacing:1px;font-size:11px}.sm-blog-page-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.sm-blog-pagination{margin-top:22px}.sm-blog-pagination ul{display:flex;justify-content:center;gap:7px;list-style:none;padding:0;margin:0}.sm-blog-pagination a,.sm-blog-pagination span{display:grid;place-items:center;min-width:36px;height:36px;border-radius:9px;background:var(--surface2);border:1px solid var(--line);color:#fff;text-decoration:none}.sm-blog-pagination .current{background:var(--grad);border-color:transparent}.sm-empty-blog{padding:45px;border:1px dashed var(--line);border-radius:15px;text-align:center;color:var(--muted)}
.sm-footer{background:#02030b!important;border-top:1px solid var(--line)!important}.sm-footer-grid{padding-top:46px!important;padding-bottom:32px!important}.sm-footer-brand .sm-brand-icon{background:var(--grad)!important}.sm-footer-col h3{font-family:"Times New Roman",Times,serif!important}.sm-footer-col a,.sm-footer-brand p,.sm-footer-bottom{font-family:"Times New Roman",Times,serif!important}.designer-credit{color:#3d8dff!important;font-family:"Times New Roman",Times,serif!important}
.sm-footer-bottom{border-top:1px solid var(--line)!important}.sm-footer-bottom strong{font-weight:700}
@media(max-width:1250px){.sm-hero-grid{grid-template-columns:260px minmax(0,1fr) 350px!important}.sm-hero-copy h1{font-size:58px!important}.sm-color-dots{gap:5px}.sm-color-dot{width:14px;height:14px;flex-basis:14px}}
@media(max-width:1050px){.sm-hero-grid{grid-template-columns:245px minmax(0,1fr)!important}.sm-hero-chatbox{grid-column:1/-1}.sm-chatbox-body{min-height:220px}.sm-blog-layout{grid-template-columns:1fr}.sm-sidebar-new{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.sm-mobile-card{display:none}.sm-chess-gallery{grid-template-columns:repeat(4,1fr)}.sm-color-dots{display:none}}
@media(max-width:800px){.sm-nav-wrap{padding:10px 16px!important}.sm-menu-toggle{display:block!important;color:#fff!important}.sm-nav{display:none!important;position:absolute!important;left:12px;right:12px;top:68px;background:#080a1d!important;border:1px solid var(--line);border-radius:15px;padding:10px;box-shadow:var(--shadow)}.sm-nav.is-open{display:flex!important;flex-direction:column!important}.sm-nav-tools{flex-wrap:wrap}.sm-color-dots{display:flex}.sm-hero-grid{grid-template-columns:1fr!important}.sm-hero-copy{order:1}.sm-login-card{order:2}.sm-hero-chatbox{order:3;grid-column:auto}.sm-hero-copy h1{font-size:48px!important}.sm-blog-layout{grid-template-columns:1fr}.sm-home-post-grid,.sm-blog-page-grid{grid-template-columns:1fr 1fr}.sm-sidebar-new{grid-template-columns:1fr}.sm-chess-gallery{grid-template-columns:repeat(2,1fr)}.sm-gallery-item{height:145px}}
@media(max-width:520px){.sm-hero-copy h1{font-size:39px!important}.sm-hero-copy p{font-size:15px!important}.sm-home-post-grid,.sm-blog-page-grid{grid-template-columns:1fr}.sm-chatbox-body{grid-template-columns:1fr}.sm-active-users{display:none}.sm-section-title{align-items:flex-start;flex-direction:column}.sm-nav-tools{justify-content:space-between}.sm-lang-switch,.sm-theme-toggle{flex:1}.sm-color-dots{width:100%;justify-content:center;padding-top:5px}.sm-color-dot{width:18px;height:18px;flex-basis:18px}.sm-footer-grid{grid-template-columns:1fr 1fr!important}.sm-footer-brand{grid-column:1/-1}}

/* =========================================================
 * SAHMAT REFERENCE MATCH — v5
 * Desktop composition tuned to the supplied 1536x1024 reference.
 * ========================================================= */
.sm-container{width:min(1500px,calc(100% - 36px))!important;margin-left:auto!important;margin-right:auto!important}

/* Header: compact reference proportions */
.sm-header{height:60px!important;min-height:60px!important}
.sm-nav-wrap{height:60px!important;min-height:60px!important;padding:0 0!important;gap:16px!important}
.sm-brand-icon{width:42px!important;height:42px!important;border-radius:8px!important;font-size:22px!important}
.sm-brand-copy strong{font-size:21px!important}
.sm-brand-copy small{font-size:12px!important;margin-top:2px!important}
.sm-menu li a{font-size:14px!important;padding:10px 12px!important}
.sm-nav-cta{font-size:13px!important;padding:9px 15px!important}
.sm-lang-switch,.sm-theme-toggle{height:34px!important;border-radius:9px!important;padding:0 10px!important}
.sm-color-dots{gap:8px!important}
.sm-color-dot{width:18px!important;height:18px!important;flex-basis:18px!important}

/* Hero: use the supplied reference artwork as the photographic/cinematic base.
   The live PHP controls remain layered above it, so the controls are still usable. */
.sm-hero{
  height:422px!important;min-height:422px!important;
  padding:0!important;
  background:#050713 url("../img/hero-clean.jpg") center center/cover no-repeat!important;
  border-bottom:1px solid rgba(255,255,255,.12)!important;
}
.sm-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,3,12,.16),rgba(2,3,12,.03) 48%,rgba(2,3,12,.12));z-index:0;pointer-events:none}
.sm-hero-grid{
  height:422px!important;min-height:422px!important;
  max-width:1500px!important;
  grid-template-columns:310px minmax(0,1fr) 430px!important;
  gap:24px!important;
  align-items:center!important;
}
.sm-login-card,.sm-hero-chatbox{
  border-radius:14px!important;
  border-color:color-mix(in srgb,var(--accent) 58%,rgba(255,255,255,.14))!important;
}
.sm-login-card{padding:18px!important}
.sm-card-title{font-size:18px!important}
.sm-login-subtitle{font-size:12px!important}
.sm-input-wrap{height:35px!important;margin:7px 0!important}
.sm-login-btn{height:36px!important}
.sm-free-register{height:37px!important}
.sm-hero-copy{padding:10px 0!important}
.sm-eyebrow{font-size:13px!important}
.sm-hero-copy h1{
  font-size:54px!important;line-height:.91!important;letter-spacing:-1px!important;
  margin:8px 0 14px!important;
}
.sm-hero-copy p{font-size:16px!important;line-height:1.4!important;margin:0 0 12px!important}
.sm-hero-highlights{gap:12px!important}
.sm-hero-highlights span{font-size:11px!important}
.sm-hero-actions{margin-top:13px!important}
.sm-btn{min-height:42px!important;padding:0 17px!important}
.sm-live-users{margin-top:10px!important;font-size:12px!important}
.sm-chatbox-head{padding:12px 16px!important;font-size:17px!important}
.sm-chatbox-body{min-height:300px!important}
.sm-chat-stream p{font-size:12px!important;padding:6px 0!important}
.sm-active-users{font-size:11px!important;gap:6px!important}
.sm-chat-compose{height:39px!important;margin:8px!important}

/* Blog block: four article cards + compact side rail like the reference. */
.sm-section{padding:12px 0 8px!important}
.sm-blog-section{background:linear-gradient(180deg,rgba(3,5,16,.84),rgba(3,5,16,.96))!important}
.sm-blog-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 300px!important;
  gap:18px!important;
}
.sm-section-title{margin-bottom:8px!important}
.sm-section-title h2{font-size:26px!important;margin:0!important}
.sm-section-title p{font-size:12px!important}
.sm-section-kicker{font-size:9px!important}
.sm-outline-link{padding:7px 11px!important;font-size:11px!important}
.sm-blog-filters{gap:5px!important;margin-bottom:8px!important}
.sm-blog-filters a{padding:6px 10px!important;font-size:11px!important}
.sm-home-post-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
}
.sm-home-post{border-radius:9px!important}
.sm-home-post-img{height:104px!important}
.sm-home-post-body{padding:9px!important}
.sm-post-tag{font-size:9px!important;padding:3px 6px!important}
.sm-home-post h3{font-size:14px!important;line-height:1.15!important;margin:6px 0 4px!important}
.sm-home-post p{font-size:11px!important;line-height:1.25!important;margin:0 0 7px!important}
.sm-home-post-meta{font-size:9px!important;gap:5px!important}
.sm-sidebar-new{gap:8px!important}
.sm-side-card{border-radius:9px!important}
.sm-side-head{padding:9px 11px!important;font-size:11px!important}
.sm-side-row,.sm-pop-row{padding:7px 10px!important;font-size:10px!important}
.sm-side-row small{font-size:9px!important}
.sm-pop-row b{width:19px!important;height:19px!important;font-size:10px!important}
.sm-pop-row span{font-size:10px!important}

/* Mobile reference panel */
.sm-mobile-card{padding-bottom:8px!important}
.sm-phone{
  width:195px!important;height:335px!important;
  background:#050817 url("../img/mobile-reference.jpg") center/contain no-repeat!important;
  border:0!important;box-shadow:0 0 0 2px var(--accent),0 18px 45px rgba(0,0,0,.45)!important;
  padding:0!important;
}
.sm-phone-notch,.sm-phone-screen{display:none!important}

/* Gallery */
.sm-gallery-section{
  padding:9px 0 10px!important;
  background:#030512 url("../img/chess-bg.svg") center/cover no-repeat!important;
}
.sm-gallery-section:before{background:rgba(2,3,13,.72)!important;pointer-events:none!important}
.sm-section-title.compact{margin-bottom:6px!important}
.sm-section-title.compact h2{font-size:23px!important}
.sm-section-title.compact p{display:none!important}
.sm-chess-gallery{grid-template-columns:repeat(6,1fr)!important;gap:4px!important}
.sm-gallery-item{height:102px!important;border-radius:6px!important}
.sm-gallery-item img{object-fit:cover!important}

/* Footer reference strip */
.sm-footer{padding:18px 0 0!important}
.sm-footer-grid{display:grid!important;grid-template-columns:1.4fr repeat(3,1fr)!important;gap:24px!important;padding-bottom:15px!important}
.sm-footer-brand>p,.sm-footer-col{display:none!important}
.sm-footer-brand .sm-brand{margin-bottom:0!important}
.sm-footer-brand .sm-socials{display:none!important}
.sm-footer-bottom{min-height:52px!important;font-size:11px!important}
.sm-footer-bottom div{display:flex!important;gap:16px!important}

/* Keep the full layout intact on normal desktop; collapse cleanly below it. */
@media(max-width:1250px){
  .sm-hero-grid{grid-template-columns:260px minmax(0,1fr) 350px!important}
  .sm-hero-copy h1{font-size:48px!important}
  .sm-home-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:1050px){
  .sm-header{height:auto!important;min-height:60px!important}
  .sm-nav-wrap{height:auto!important;min-height:60px!important}
  .sm-hero{height:auto!important;min-height:0!important;padding:20px 0!important}
  .sm-hero-grid{height:auto!important;min-height:0!important;grid-template-columns:245px minmax(0,1fr)!important}
  .sm-hero-chatbox{grid-column:1/-1!important}
  .sm-blog-layout{grid-template-columns:1fr!important}
  .sm-sidebar-new{display:grid!important;grid-template-columns:1fr 1fr!important}
}
@media(max-width:680px){
  .sm-container{width:calc(100% - 24px)!important}
  .sm-home-post-grid{grid-template-columns:1fr!important}
  .sm-sidebar-new{grid-template-columns:1fr!important}
  .sm-chess-gallery{grid-template-columns:repeat(2,1fr)!important}
  .sm-gallery-item{height:130px!important}
}

@media(min-width:1251px){
  .sm-blog-layout{grid-template-columns:minmax(0,1fr) 500px!important;gap:18px!important}
  .sm-sidebar-new{
    display:grid!important;
    grid-template-columns:220px 265px!important;
    grid-template-rows:auto auto!important;
    gap:8px!important;
    align-items:start!important;
  }
  .sm-sidebar-new .sm-side-card:nth-child(1){grid-column:1;grid-row:1}
  .sm-sidebar-new .sm-side-card:nth-child(2){grid-column:1;grid-row:2}
  .sm-sidebar-new .sm-side-card:nth-child(3){grid-column:2;grid-row:1 / span 2}
}
.sm-brand-icon{background:transparent!important;border-radius:0!important;box-shadow:0 0 24px color-mix(in srgb,var(--accent) 55%,transparent)!important}
.sm-brand-icon i{filter:drop-shadow(0 0 8px var(--accent))!important}

/* Let the supplied reference artwork carry the decorative card shells; live controls stay on top. */
.sm-login-card,.sm-hero-chatbox{
  background:transparent!important;
  box-shadow:none!important;
}
.sm-login-card{border-color:transparent!important}
.sm-hero-chatbox{border-color:transparent!important}
.sm-chatbox-head,.sm-chatbox-body,.sm-chat-compose{
  background:rgba(2,5,16,.08)!important;
}


/* FINAL INTERACTION SAFETY — decorative layers must never block links/buttons */
.sm-hero:before,.sm-gallery-section:before,.sm-hero-grid:after,.sm-hero-visual:after{pointer-events:none!important}
.sm-header,.sm-nav-wrap,.sm-nav,.sm-main,.sm-section,.sm-gallery-section,.sm-footer{position:relative}
.sm-header{z-index:99999!important}
.sm-nav,.sm-nav-tools,.sm-menu,.sm-menu li,.sm-menu li a,.sm-nav-cta,.sm-lang-switch,.sm-theme-toggle,.sm-color-dot{pointer-events:auto!important}
.sm-hero-grid > *,.sm-blog-layout > *,.sm-footer-grid > *{position:relative;z-index:2}
.sm-blog-filters a,.sm-home-post a,.sm-side-card a,.sm-gallery-item,.sm-outline-link,.sm-footer a{pointer-events:auto!important}
/* hero-clean already contains the small eyebrow artwork; avoid double-rendering it */
.sm-premium-hero .sm-eyebrow{visibility:hidden!important}


/* SAHMAT MOBILE LOGIN PANEL FIX - isolated mobile-only override */
@media (max-width: 600px) {
  .sm-premium-hero {
    height: auto !important;
    min-height: 0 !important;
    padding: 18px 0 16px !important;
    overflow: visible !important;
  }
  .sm-premium-hero .sm-hero-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: min(100% - 24px, 460px) !important;
    max-width: 460px !important;
    height: auto !important;
    min-height: 0 !important;
    margin-inline: auto !important;
    gap: 16px !important;
    align-items: stretch !important;
  }
  .sm-premium-hero .sm-login-card {
    order: 2 !important;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 18px 16px !important;
    margin: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }
  .sm-premium-hero .sm-login-card * {
    box-sizing: border-box;
    min-width: 0;
  }
  .sm-premium-hero .sm-card-title {
    font-size: 19px !important;
    line-height: 1.25 !important;
    margin: 0 0 9px !important;
    overflow-wrap: anywhere;
  }
  .sm-premium-hero .sm-login-subtitle {
    margin: 0 0 14px !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    text-align: left !important;
    overflow-wrap: anywhere;
  }
  #sm-home-login-form {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 8px !important;
  }
  #sm-home-login-form .sm-input-wrap {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 11px !important;
  }
  #sm-home-login-form .sm-input-wrap input {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    padding-left: 42px !important;
    padding-right: 38px !important;
    font-size: 16px !important;
  }
  #sm-home-login-form .sm-login-btn,
  #sm-home-login-form .sm-free-register {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 45px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 11px 12px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    text-align: center !important;
    overflow-wrap: anywhere;
  }
  #sm-home-login-form .sm-login-bottom {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px 12px !important;
    width: 100% !important;
    margin: 4px 0 0 !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
  }
  #sm-home-login-form .sm-login-bottom label,
  #sm-home-login-form .sm-login-bottom a {
    max-width: 100% !important;
    overflow-wrap: anywhere;
  }
  #sm-home-login-form .sm-login-divider {
    margin: 7px 0 !important;
  }
}
