/* Iran-Travian polished update v12 — RTL MyBB 1.8.x */
:root{--it-green:#073019;--it-green2:#0b4820;--it-green3:#17622b;--it-gold:#b69a51;--it-gold2:#e6d29a;--it-paper:#f3eedc;--it-paper2:#e8dfc5;--it-ink:#183b24}
html{direction:rtl!important;background:#0b2113}
body{margin:0!important;padding:0!important;direction:rtl!important;text-align:right!important;background:radial-gradient(ellipse at 50% 0,#23462a 0,#102c19 60%,#07190e 100%)!important;color:var(--it-ink)!important;font:13px/1.6 Tahoma,Arial,sans-serif!important}
*,*:before,*:after{box-sizing:border-box}
a:link,a:visited{color:#17612d;text-decoration:none}a:hover{color:#0b3518;text-decoration:underline}
img{max-width:100%}input,select,textarea,button{font:inherit}
#container{width:100%!important;max-width:1600px!important;min-width:0!important;margin:0 auto!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.wrapper,#header .wrapper,#panel .upper .wrapper,#panel .lower .wrapper{width:98%!important;max-width:1550px!important;min-width:0!important;margin:0 auto!important}
#header{width:100%!important;display:flex!important;flex-direction:column!important;overflow:visible!important;background:#062915!important;border:0!important;border-bottom:1px solid var(--it-gold)!important;box-shadow:0 5px 18px #0008!important}
#panel{order:0!important;display:block!important;width:100%!important;background:linear-gradient(#041a0c,#0b3519)!important;color:#f3e8c4!important;border:0!important;border-bottom:1px solid #9b8041!important;margin:0!important;padding:0!important}
#panel .upper{display:block!important;background:linear-gradient(#082511,#0e3b1c)!important;min-height:39px!important;padding:4px 0!important;border:0!important}
#panel .upper .wrapper{display:flex!important;direction:rtl!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}
#panel .welcome{flex:0 1 auto!important;margin:0!important;color:#f7edce!important;font-size:12px!important}
#panel .welcome a,#panel a{color:#fff1c5!important}
#panel .upper_links{display:flex!important;flex-direction:row!important;align-items:center!important;gap:6px!important;float:none!important;margin:0!important}
#panel .upper_links a{display:inline-block!important;color:#fff3ca!important;border:1px solid #88763f!important;border-radius:5px!important;background:linear-gradient(#22642a,#0b3418)!important;padding:5px 10px!important;font-weight:bold!important;text-decoration:none!important}
#panel .lower{display:none!important}
.it-toplinks{order:3;display:flex!important;direction:ltr!important;flex:1 1 auto!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:4px!important;margin:0!important;padding:0!important;min-width:0!important}
.it-toplinks a{display:inline-flex!important;align-items:center!important;gap:5px!important;padding:5px 9px!important;border:1px solid #8f7b43!important;border-radius:5px!important;color:#fff2c7!important;background:linear-gradient(#1b6329,#082b15)!important;text-decoration:none!important;white-space:nowrap!important;font-size:11px!important;font-weight:bold!important;box-shadow:inset 0 1px #ffffff18!important}
.it-toplinks a:hover,.it-main-nav a:hover{background:linear-gradient(#328830,#10501f)!important;color:#fff!important}
.it-link-icon,.it-nav-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;color:#e7cf83!important;font-size:15px!important;line-height:1!important;min-width:15px}
#logo{order:1!important;display:block!important;position:relative!important;width:100%!important;height:156px!important;min-height:100px!important;margin:0!important;padding:0!important;overflow:hidden!important;border:0!important;border-bottom:2px solid #b59b52!important;background:#15391e url('/images/iran_travian/brand-banner-v12.jpg') center center/cover no-repeat!important}
#logo .wrapper{display:flex!important;align-items:center!important;height:100%!important;min-height:0!important;position:relative!important}
#logo .wrapper img{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;left:-20px!important;top:-20px!important}
#logo:after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 22px #0004}
.it-main-nav{order:2!important;display:flex!important;direction:rtl!important;align-items:stretch!important;justify-content:flex-start!important;flex-wrap:wrap!important;width:100%!important;min-height:43px!important;margin:0!important;padding:0 8px!important;border:0!important;border-bottom:2px solid #ac9149!important;background:linear-gradient(#105024,#062714)!important;box-shadow:inset 0 1px #ffffff12!important}
.it-main-nav a{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:41px!important;padding:8px 13px!important;color:#fbf0ce!important;border-left:1px solid #d2bb7040!important;text-decoration:none!important;font-size:12px!important;font-weight:bold!important;white-space:nowrap!important}
#content{width:98%!important;max-width:1550px!important;min-width:0!important;position:relative!important;overflow:visible!important;margin:10px auto 12px!important;padding:9px!important;border:1px solid #a48a4b!important;border-radius:9px!important;background:linear-gradient(135deg,#f6f1e2 0,#e8dfc5 100%)!important;color:#233628!important;box-shadow:0 5px 18px #0004!important}
#content>.navigation,.navigation{display:none!important}
#content .it-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 258px!important;direction:ltr!important;align-items:start!important;gap:10px!important;width:100%!important;min-width:0!important}
#content .it-main-column,#content .it-sidebar{direction:rtl!important;min-width:0!important}
#content .it-main-column{grid-column:1;grid-row:1}
#content .it-sidebar{grid-column:2;grid-row:1;display:flex!important;flex-direction:column!important;gap:10px!important}
.it-welcome-bar{display:flex!important;direction:rtl!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;width:100%!important;min-height:40px!important;margin:0 0 11px!important;padding:8px 11px!important;color:#fff0c5!important;border:1px solid #a78a43!important;border-radius:7px!important;background:linear-gradient(#125024,#062916)!important;font-size:11px!important;box-shadow:inset 0 1px #ffffff16!important}
.it-welcome-bar .it-welcome-text{display:flex;align-items:center;gap:7px;min-width:0}
.it-welcome-bar .it-welcome-mark{display:inline-flex;align-items:center;justify-content:center;color:#e7cc7b;font-size:15px;flex:0 0 auto}
.it-welcome-bar a{display:inline-block!important;white-space:nowrap!important;padding:3px 8px!important;color:#fff3cc!important;border:1px solid #a8904c!important;border-radius:4px!important;background:#155725!important}
.tborder{width:100%!important;max-width:100%!important;border:1px solid #a58a4b!important;border-radius:7px!important;overflow:hidden!important;margin:0 0 11px!important;background:#f4efdf!important;box-shadow:0 2px 4px #00000010!important}
.thead{color:#fff1c9!important;background:linear-gradient(#17632b,#073018)!important;border-bottom:1px solid #a78d4b!important;font-weight:bold!important}
.thead a,.thead strong{color:#fff1c9!important}
.tcat{color:#24452a!important;background:linear-gradient(#ece2c5,#dacfad)!important;border-bottom:1px solid #d0c3a0!important}
.trow1{background:#f6f0df!important}.trow2{background:#ede5ce!important}
.trow1:hover,.trow2:hover{background:#e5edcf!important}
.smalltext{font-size:11px!important;color:#606657!important}
.largetext{font-size:16px!important;font-weight:bold!important}
.forum_status,.forum_on,.forum_off{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:46px!important;height:46px!important;min-width:46px!important;border:1px solid #b8a365!important;border-radius:8px!important;overflow:hidden!important;background:linear-gradient(#267b2e,#063217)!important;box-shadow:inset 0 1px #ffffff25,0 1px 2px #0002!important;background-image:none!important;color:#fff!important;font-size:25px!important;vertical-align:middle!important}
.forum_status:after,.forum_on:after,.forum_off:after{content:attr(data-it-icon);color:#fff7d9;font-weight:normal;line-height:1}
.it-forum-table{table-layout:auto!important}
.it-forum-table .forum_status,.it-forum-table .forum_on,.it-forum-table .forum_off{background-image:none!important}
.it-forum-table td{vertical-align:middle!important}
.it-forum-table .trow1 td,.it-forum-table .trow2 td{border-bottom:1px solid #dfd5ba!important}
.it-forum-table .trow1:last-child td,.it-forum-table .trow2:last-child td{border-bottom:0!important}
.it-side-panel{display:block!important;min-width:0!important;margin:0!important;padding:0 7px 7px!important;border:2px solid #a88b48!important;border-radius:9px!important;background:linear-gradient(145deg,#0c371a,#061e10)!important;color:#f7edd0!important;box-shadow:0 3px 9px #0003!important;overflow:hidden!important}
.it-side-heading{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;margin:-1px -6px 7px!important;padding:8px 7px!important;text-align:center!important;font-size:13px!important;line-height:1.4!important;font-weight:bold!important;color:#fff1c7!important;border-bottom:1px solid #b49a50!important;border-radius:6px 6px 0 0!important;background:linear-gradient(#1b6327,#0a3519)!important}
.it-server-card{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important;margin:0 0 6px!important;padding:6px!important;color:#f8f0d5!important;text-decoration:none!important;border:1px solid #a88e4c!important;border-radius:7px!important;background:linear-gradient(105deg,#165923,#062512)!important}
.it-server-card:hover{border-color:#efe0a4!important;background:linear-gradient(105deg,#247b2c,#0a421c)!important}
.it-server-image{flex:0 0 92px!important;width:92px!important;height:64px!important;object-fit:cover!important;border:1px solid #d0b66c!important;border-radius:5px!important;background:#234628!important}
.it-server-info{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;gap:1px!important;min-width:0!important}
.it-server-title{color:#fff1c2!important;font-size:12px!important;line-height:1.5!important}
.it-server-domain{color:#c8d5bd!important;font-size:10px!important;direction:ltr!important;text-align:right!important;overflow-wrap:anywhere!important}
.it-server-count-label{margin-top:2px!important;color:#e6d7a9!important;font-size:10px!important}
.it-server-count{color:#fff8d9!important;font-size:11px!important}
.it-count-unavailable{color:#e4c68a!important;font-size:10px!important}
.it-side-note{margin:6px 2px 0!important;color:#d5cba9!important;font-size:10px!important;line-height:1.6!important}
.it-stat-source{font-size:11px!important;color:#f5edd2!important;line-height:1.7!important}
.it-stat-source table,.it-stat-source .tborder{margin:0!important;width:100%!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.it-stat-source .thead{display:none!important}
.it-stat-source td,.it-stat-source .trow1,.it-stat-source .trow2,.it-stat-source .tcat{padding:4px 3px!important;background:transparent!important;color:#f5edd2!important;border:0!important}
.it-stat-source a{color:#f3df9e!important}
.it-users-list,.it-topics-list{display:flex!important;flex-direction:column!important;gap:0!important;margin:0!important;padding:0!important;list-style:none!important}
.it-users-list li,.it-topics-list li{display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important;padding:5px 2px!important;border-bottom:1px solid #d6c9a355!important;color:#f5edd2!important;font-size:11px!important}
.it-users-list li:last-child,.it-topics-list li:last-child{border-bottom:0!important}
.it-users-list a,.it-topics-list a{color:#f7e8b5!important;min-width:0!important;overflow-wrap:anywhere!important}
.it-user-posts{margin-right:auto!important;white-space:nowrap!important;color:#cfbd85!important;font-size:10px!important}
.it-empty-note{margin:4px 2px 0!important;color:#d8cda9!important;font-size:10px!important}
#footer{width:98%!important;max-width:1550px!important;margin:12px auto 0!important;padding:0!important;color:#e7ddbc!important;background:linear-gradient(#0a381b,#061d10)!important;border:1px solid #a78b48!important;border-radius:8px 8px 0 0!important;overflow:hidden!important}
#footer .it-footer-scenery{display:block!important;height:32px!important;width:100%!important;background:url('/images/iran_travian/brand-banner-v12.jpg') center 88%/cover no-repeat!important;border-bottom:2px solid #bba25b!important;box-shadow:inset 0 -6px 10px #061a0e99!important}
#footer .it-footerbar{display:flex!important;direction:rtl!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;min-height:42px!important;padding:8px 14px!important;background:linear-gradient(#0a381b,#061d10)!important;color:#efe2b8!important;font-size:10px!important}
#footer .it-footerbar span{min-width:0}
#footer .it-footerbar .it-footer-motto{font-weight:bold!important;color:#fff0c2!important;font-size:12px!important}
#footer .upper,#footer .lower,#footer .bottommenu,#footer .social-icons,#footer .social-links,#footer .social,#footer .it-social,#footer .footer-social,#footer [class*=social-icon],#footer [class*=social-link]{display:none!important}
@media(max-width:1000px){#content{width:99%!important}.it-main-nav a{padding:8px 10px!important}.it-layout{grid-template-columns:minmax(0,1fr) 245px!important}.it-server-image{flex-basis:78px!important;width:78px!important;height:58px!important}.forum_status,.forum_on,.forum_off{width:40px!important;height:40px!important;min-width:40px!important}}
@media(max-width:760px){#panel .upper .wrapper{flex-wrap:wrap!important}.it-toplinks{flex:1 1 100%!important;order:3!important;justify-content:center!important}.it-main-nav{justify-content:center!important}.it-main-nav a{min-height:34px!important;padding:6px 8px!important;font-size:11px!important}#logo{height:125px!important}#content{margin:7px auto!important;padding:6px!important;border-radius:5px!important}#content .it-layout{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}.it-main-column{grid-column:1!important;grid-row:2!important}.it-sidebar{grid-column:1!important;grid-row:1!important;display:grid!important;grid-template-columns:1fr!important}.it-welcome-bar{align-items:flex-start!important;flex-direction:column!important}.it-server-image{flex-basis:100px!important;width:100px!important;height:64px!important}.it-footerbar{flex-wrap:wrap!important;justify-content:center!important;text-align:center!important}}
@media(max-width:480px){.it-toplinks{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.it-toplinks a{justify-content:center!important;padding:6px 4px!important;font-size:10px!important;white-space:normal!important}.it-main-nav a{padding:6px!important;font-size:10px!important;gap:4px!important}#logo{height:100px!important}.forum_status,.forum_on,.forum_off{width:33px!important;height:33px!important;min-width:33px!important;font-size:20px!important}.it-server-image{flex-basis:82px!important;width:82px!important;height:57px!important}}

/* v6 structural recovery: after moving forum tables into our grid, hide only
   the old root-level leftovers so the default MyBB layout does not duplicate. */
#content.it-home-content > :not(#it-layout-v6){display:none!important}
#content.it-home-content>#it-layout-v6{display:grid!important;grid-template-columns:minmax(0,1fr) 258px!important;direction:ltr!important;align-items:start!important;width:100%!important;gap:10px!important}
#content.it-home-content .it-main-column,#content.it-home-content .it-sidebar{min-width:0!important;direction:rtl!important}
#content.it-home-content .it-main-column{grid-column:1!important;grid-row:1!important}
#content.it-home-content .it-sidebar{grid-column:2!important;grid-row:1!important}
#content.it-home-content .it-main-column>table{display:table!important;visibility:visible!important}
#content.it-home-content .it-main-column .it-forum-table{display:table!important;width:100%!important}
#content.it-home-content .it-main-column .it-forum-table table{max-width:100%!important}
@media(max-width:760px){#content.it-home-content>#it-layout-v6{grid-template-columns:minmax(0,1fr)!important}.it-main-column{grid-column:1!important;grid-row:2!important}.it-sidebar{grid-column:1!important;grid-row:1!important}}


/* v6: full viewport canvas, larger hero/header and stable forum/sidebar grid. */
html,body{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;overflow-x:hidden!important}
#container,body>#container{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important}
#header{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
#header>.wrapper,#panel .upper .wrapper,#logo .wrapper{width:98%!important;max-width:1550px!important}
#logo{height:156px!important;min-height:156px!important;background-position:center 52%!important;background-size:cover!important}
#panel .upper{min-height:40px!important}
#panel .upper .wrapper{display:flex!important;align-items:center!important;gap:10px!important}
#content{width:98%!important;max-width:1550px!important;margin:10px auto 12px!important}
#content.it-home-content{display:block!important;width:98%!important;max-width:1550px!important;margin:10px auto 12px!important;padding:9px!important}
#content.it-home-content>#it-layout-v6{display:grid!important;grid-template-columns:minmax(0,1fr) 258px!important;direction:ltr!important;align-items:start!important;gap:10px!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
#content.it-home-content>#it-layout-v6>.it-main-column{grid-column:1!important;grid-row:1!important;display:flex!important;flex-direction:column!important;min-width:0!important;direction:rtl!important}
#content.it-home-content>#it-layout-v6>.it-sidebar{grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column!important;gap:10px!important;min-width:0!important;direction:rtl!important}
#content.it-home-content .it-main-column>.it-forum-table{display:table!important;width:100%!important;max-width:100%!important;table-layout:auto!important}
#content.it-home-content .it-main-column .it-forum-table td{font-size:12px!important;padding:8px 7px!important}
#content.it-home-content .it-main-column .it-forum-table .forum_status,
#content.it-home-content .it-main-column .it-forum-table .forum_on,
#content.it-home-content .it-main-column .it-forum-table .forum_off{width:46px!important;height:46px!important;min-width:46px!important}
#content.it-home-content>.it-layout-v4{display:none!important}
#footer{width:98%!important;max-width:1550px!important;margin:12px auto 0!important}
@media(max-width:1000px){
  #content.it-home-content>#it-layout-v6{grid-template-columns:minmax(0,1fr) 238px!important}
  #content.it-home-content .it-main-column .it-forum-table td{padding:6px 4px!important}
  .it-server-image{width:80px!important;height:58px!important;flex-basis:80px!important}
}
@media(max-width:760px){
  #logo{height:125px!important;min-height:125px!important}
  #content.it-home-content>#it-layout-v6{grid-template-columns:minmax(0,1fr)!important}
  #content.it-home-content>#it-layout-v6>.it-sidebar{grid-column:1!important;grid-row:1!important}
  #content.it-home-content>#it-layout-v6>.it-main-column{grid-column:1!important;grid-row:2!important}
  #content.it-home-content .it-main-column .it-forum-table td{padding:5px 3px!important;font-size:11px!important}
}

/* v10 structural correction for the supplied full-page reference screenshot. */
html,body{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;overflow-x:hidden!important}
body>#container,#container{display:block!important;float:none!important;position:relative!important;inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important}
#container>#header,#container>#content,#container>#footer{display:block!important;float:none!important;position:relative!important;left:auto!important;right:auto!important;transform:none!important;max-width:none!important;min-width:0!important}
#header,#panel,#logo{width:100vw!important;max-width:none!important;min-width:0!important;margin-left:0!important;margin-right:0!important;left:auto!important;right:auto!important;transform:none!important}
#panel .upper .wrapper,#logo .wrapper,#header>.wrapper{width:calc(100vw - 32px)!important;max-width:none!important;min-width:0!important;margin-left:16px!important;margin-right:16px!important}
#panel .upper .wrapper{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}
.it-toplinks{flex:1 1 auto!important;min-width:0!important;max-width:none!important}
#logo{height:156px!important;min-height:156px!important;background-size:100% 100%!important;background-position:center center!important;overflow:hidden!important}
#content.it-home-content{display:block!important;position:relative!important;float:none!important;inset:auto!important;transform:none!important;width:calc(100vw - 44px)!important;max-width:none!important;min-width:0!important;margin:10px 22px 12px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
#content.it-home-content>.navigation,#content.it-home-content>.it-welcome-bar{display:none!important}
#content.it-home-content>#it-layout-v6{display:grid!important;grid-template-columns:minmax(0,1fr) clamp(245px,19.6vw,270px)!important;direction:ltr!important;align-items:start!important;gap:10px!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;position:relative!important;left:auto!important;right:auto!important;transform:none!important;border:0!important;background:transparent!important;box-shadow:none!important}
#content.it-home-content>#it-layout-v6>.it-main-column{grid-column:1!important;grid-row:1!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:0!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;float:none!important;position:relative!important;left:auto!important;right:auto!important;transform:none!important;direction:rtl!important}
#content.it-home-content>#it-layout-v6>.it-sidebar{grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;float:none!important;position:relative!important;left:auto!important;right:auto!important;transform:none!important;direction:rtl!important}
#content.it-home-content .it-main-column>.it-main-nav-in-layout{order:0!important;display:flex!important;flex:0 0 auto!important;width:100%!important;max-width:none!important;margin:0 0 10px!important;padding:0 8px!important;direction:rtl!important;justify-content:flex-start!important;flex-wrap:wrap!important}
#content.it-home-content .it-main-column>#it-welcome-bar{order:1!important;display:flex!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0 0 11px!important}
#content.it-home-content .it-main-column>div:not(.it-welcome-bar),#content.it-home-content .it-main-column>table,#content.it-home-content .it-main-column>section{width:100%!important;max-width:100%!important;min-width:0!important;float:none!important;position:static!important;left:auto!important;right:auto!important;transform:none!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box!important}
#content.it-home-content .it-main-column .it-forum-table{display:table!important;table-layout:auto!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0 0 12px!important;float:none!important;position:static!important;transform:none!important}
#content.it-home-content .it-main-column .it-forum-table td{font-size:12px!important;padding:10px 8px!important;vertical-align:middle!important}
#content.it-home-content .it-main-column .it-forum-table .forum_status,#content.it-home-content .it-main-column .it-forum-table .forum_on,#content.it-home-content .it-main-column .it-forum-table .forum_off{flex:0 0 46px!important;width:46px!important;height:46px!important;min-width:46px!important}
#content.it-home-content #it-layout-v6 .it-side-panel{width:100%!important;max-width:100%!important;min-width:0!important;margin:0 0 10px!important;box-sizing:border-box!important}
#content.it-home-content #it-layout-v6 .it-server-card{display:flex!important;flex-direction:row!important;align-items:center!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;padding:7px!important}
#content.it-home-content #it-layout-v6 .it-server-image{width:38%!important;max-width:38%!important;flex:0 0 38%!important;height:auto!important;aspect-ratio:1.5/1!important;object-fit:cover!important}
#content.it-home-content #it-layout-v6 .it-server-info{flex:1 1 0!important;min-width:0!important;overflow-wrap:anywhere!important;word-break:normal!important}
#footer{width:100vw!important;max-width:none!important;margin:14px 0 0!important;padding:0!important;left:auto!important;right:auto!important;transform:none!important}
#footer .it-footer-scenery{height:42px!important}
#footer .it-footerbar{min-height:46px!important;padding:8px 22px!important}
@media(max-width:900px){#content.it-home-content{width:calc(100vw - 24px)!important;margin:8px 12px!important}#content.it-home-content>#it-layout-v6{grid-template-columns:minmax(0,1fr) minmax(220px,30%)!important}#content.it-home-content .it-main-column .it-forum-table td{padding:7px 5px!important}}
@media(max-width:650px){#logo{height:120px!important;min-height:120px!important}#content.it-home-content>#it-layout-v6{grid-template-columns:minmax(0,1fr)!important}#content.it-home-content>#it-layout-v6>.it-sidebar{grid-column:1!important;grid-row:1!important}#content.it-home-content>#it-layout-v6>.it-main-column{grid-column:1!important;grid-row:2!important}#content.it-home-content .it-main-column>.it-main-nav-in-layout{justify-content:center!important}.it-server-image{width:104px!important;max-width:104px!important;flex-basis:104px!important}}


/* === Iran-Travian V12 final visual and navigation polish === */
#logo {
  height: clamp(230px, 20vw, 300px) !important;
  min-height: 230px !important;
  background-image: url('/images/iran_travian/brand-banner-v12.jpg') !important;
  background-position: center center !important;
  background-size: 100% 100% !important;
  border-bottom: 3px solid #d3b76d !important;
  box-shadow: inset 0 0 30px #04150966, 0 8px 24px #0005 !important;
}
#logo:after { box-shadow: inset 0 0 35px #00120766 !important; }
.it-toplinks { gap: 7px !important; }
.it-toplinks a { min-height: 34px !important; padding: 7px 11px !important; font-size: 12px !important; border-radius: 7px !important; }
.it-main-nav { flex-wrap: wrap !important; }
.it-main-nav a { min-height: 45px !important; padding: 9px 15px !important; }
.it-server-card {
  display: grid !important;
  grid-template-columns: 112px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 91px !important;
  padding: 8px !important;
  overflow: hidden !important;
  border: 1px solid #d3b96e !important;
  border-radius: 9px !important;
  background: linear-gradient(120deg, #154e23 0%, #0a2d17 68%, #061d10 100%) !important;
  box-shadow: inset 0 1px #ffffff1a, 0 2px 5px #0005 !important;
}
.it-server-image {
  display: block !important;
  width: 112px !important;
  height: 74px !important;
  min-width: 112px !important;
  max-width: 112px !important;
  aspect-ratio: 3 / 2 !important;
  object-fit: cover !important;
  object-position: center !important;
  border: 2px solid #d4b96d !important;
  border-radius: 6px !important;
  background: #163720 !important;
  box-shadow: 0 2px 7px #0007 !important;
}
.it-server-info { min-width: 0 !important; width: 100% !important; align-items: flex-start !important; gap: 3px !important; }
.it-server-title { display: block !important; font-size: 13px !important; font-weight: 800 !important; line-height: 1.55 !important; color: #fff4ce !important; }
.it-server-domain { font-size: 10px !important; color: #d6e3cf !important; overflow-wrap: anywhere !important; }
.it-server-count-label { display: inline-flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 4px !important; margin-top: 4px !important; padding: 2px 7px !important; border: 1px solid #8eaa67 !important; border-radius: 5px !important; background: #061d10 !important; color: #efe0a8 !important; font-size: 11px !important; }
.it-server-count { color: #f7e5a7 !important; font-size: 12px !important; font-weight: 800 !important; }
.it-stats-panel {
  border: 2px solid #d5b96b !important;
  border-radius: 10px !important;
  background: linear-gradient(145deg, #0c3e20 0%, #062313 100%) !important;
  box-shadow: inset 0 1px #ffffff20, 0 4px 12px #0006 !important;
}
.it-stats-panel .it-side-heading {
  min-height: 42px !important;
  padding: 10px !important;
  margin-bottom: 8px !important;
  font-size: 14px !important;
  background: linear-gradient(90deg, #0b351a, #1b6b2b 48%, #0b351a) !important;
  border-bottom: 2px solid #cfb15f !important;
  letter-spacing: .1px !important;
}
.it-stats-panel .it-stat-source { padding: 3px 4px !important; }
.it-stats-panel .it-stat-source tr { border-bottom: 1px solid #dfc77c35 !important; }
.it-stats-panel .it-stat-source tr:last-child { border-bottom: 0 !important; }
.it-stats-panel .it-stat-source td,
.it-stats-panel .it-stat-source .trow1,
.it-stats-panel .it-stat-source .trow2,
.it-stats-panel .it-stat-source .tcat {
  padding: 7px 5px !important;
  background: transparent !important;
  color: #fff2c7 !important;
  border: 0 !important;
  border-bottom: 1px solid #cfb15f25 !important;
  font-size: 11px !important;
}
.it-stats-panel .it-stat-source strong,
.it-stats-panel .it-stat-source b { color: #f5d982 !important; }
.it-stats-panel .it-stat-source a { color: #e4efcf !important; font-weight: 700 !important; }
.it-stats-panel .it-stat-source table { width: 100% !important; }
#footer .it-footer-scenery {
  height: clamp(74px, 8vw, 116px) !important;
  background-image: url('/images/iran_travian/footer-banner-v12.jpg') !important;
  background-position: center 52% !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  border-bottom: 3px solid #c5a75c !important;
  box-shadow: inset 0 0 22px #00140766 !important;
}
@media (max-width: 1000px) {
  .it-server-card { grid-template-columns: 96px minmax(0,1fr) !important; }
  .it-server-image { width: 96px !important; min-width: 96px !important; max-width: 96px !important; height: 68px !important; }
}
@media (max-width: 760px) {
  #logo { height: 160px !important; min-height: 160px !important; background-size: cover !important; }
  .it-toplinks a { padding: 6px 8px !important; font-size: 11px !important; }
  .it-main-nav a { padding: 7px 9px !important; min-height: 38px !important; }
  .it-server-card { grid-template-columns: 100px minmax(0,1fr) !important; }
  .it-server-image { width: 100px !important; min-width: 100px !important; max-width: 100px !important; height: 68px !important; }
  #footer .it-footer-scenery { height: 70px !important; }
}


/* === Iran-Travian v12: guaranteed vector icons and final header/footer polish === */
.it-svg-icon {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
  stroke: currentColor !important;
  fill: none !important;
  overflow: visible !important;
}
.it-link-icon { display:inline-flex!important;align-items:center!important;justify-content:center!important;width:22px!important;min-width:22px!important;height:22px!important;color:#f3d783!important; }
.it-link-icon .it-svg-icon { width:18px!important;height:18px!important;flex-basis:18px!important; }
.it-main-nav .it-link-icon { color:#f5df9c!important; }
.it-main-nav a:hover .it-link-icon,.it-toplinks a:hover .it-link-icon { color:#fff!important; }
.it-side-heading { display:flex!important;align-items:center!important;gap:8px!important; }
.it-side-heading-icon { display:inline-flex!important;align-items:center!important;justify-content:center!important;width:26px!important;height:26px!important;flex:0 0 26px!important;border-radius:50%!important;border:1px solid #d3b66c!important;background:linear-gradient(145deg,#267b32,#073319)!important;color:#f8e7ab!important; }
.it-side-heading-icon .it-svg-icon { width:17px!important;height:17px!important;flex-basis:17px!important; }
.it-welcome-mark { display:inline-flex!important;align-items:center!important;justify-content:center!important;width:24px!important;height:24px!important;flex:0 0 24px!important;border-radius:50%!important;color:#ffdb70!important; }
.it-welcome-mark .it-svg-icon { width:18px!important;height:18px!important;flex-basis:18px!important; }
.it-svg-status,
#content.it-home-content .it-main-column .it-forum-table .it-svg-status {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:48px!important;height:48px!important;min-width:48px!important;flex:0 0 48px!important;
  border:1px solid #d6b96c!important;border-radius:9px!important;overflow:hidden!important;
  background:linear-gradient(145deg,#23802e 0%,#0b4b20 48%,#062b16 100%)!important;
  box-shadow:inset 0 1px 2px #ffffff28,0 2px 4px #0003!important;color:#fff3c6!important;
  vertical-align:middle!important;box-sizing:border-box!important;
}
.it-svg-status::before,.it-svg-status::after { content:none!important;display:none!important; }
.it-svg-status .it-category-svg { width:29px!important;height:29px!important;min-width:29px!important;flex-basis:29px!important;color:#fff3ce!important;stroke-width:1.85!important; }
.it-forum-table .it-svg-status img { display:none!important; }
.it-server-title-row { display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;width:100%!important;min-width:0!important; }
.it-server-live-dot { display:inline-block!important;flex:0 0 9px!important;width:9px!important;height:9px!important;border-radius:50%!important;background:#7edd38!important;box-shadow:0 0 7px #7edd3866!important;border:1px solid #dcf5b6!important; }
.it-server-image { object-fit:cover!important;object-position:center!important;overflow:hidden!important;background:#103b20!important; }
.it-stats-panel { overflow:hidden!important; }
.it-stats-panel .it-side-heading-icon { background:linear-gradient(145deg,#2c8839,#0b421e)!important; }
#logo {
  height: clamp(235px, 19vw, 300px) !important;
  min-height: 235px !important;
  background-image: url('/images/iran_travian/brand-banner-v12.jpg') !important;
  background-size: 100% 100% !important;
  background-position: center center !important;
  border-bottom: 3px solid #d5b66c !important;
  box-shadow: inset 0 0 26px #03180b66,0 5px 20px #0004 !important;
}
#logo:after { box-shadow:inset 0 0 32px #00130944!important; }
#footer .it-footer-scenery {
  background-image:url('/images/iran_travian/footer-banner-v12.jpg')!important;
  background-size:cover!important;background-position:center center!important;
  height:clamp(76px,8vw,118px)!important;border-top:2px solid #c3a65b!important;
  border-bottom:3px solid #c3a65b!important;
}
/* Stock legend is intentionally removed by JS; hide any residual wrapper if MyBB leaves it. */
.it-removed-forum-legend { display:none!important; }
@media(max-width:760px){
  #logo{height:150px!important;min-height:150px!important;background-size:cover!important;}
  .it-svg-status,#content.it-home-content .it-main-column .it-forum-table .it-svg-status{width:39px!important;height:39px!important;min-width:39px!important;flex-basis:39px!important;}
  .it-svg-status .it-category-svg{width:24px!important;height:24px!important;min-width:24px!important;flex-basis:24px!important;}
  #footer .it-footer-scenery{height:66px!important;}
}
