@
font-face {
    font-family: 'BebasNeueRegular';
    src: url(../../../images/vafa-vb/font/BebasNeue-webfont.eot);
    src: url(../../../images/vafa-vb/font/BebasNeue-webfont.eot?#iefix) format('embedded-opentype'),
         url(../../../images/vafa-vb/font/BebasNeue-webfont.woff) format('woff'),
         url(../../../images/vafa-vb/font/BebasNeue-webfont.ttf) format('truetype'),
         url(../../../images/vafa-vb/font/BebasNeue-webfont.svg#BebasNeueRegular) format('svg');
    font-weight: normal;
    font-style: normal;
}

.wrap {
    width: 95%;
    margin:0 auto;
    text-align:right;
}

input#sboxin:focus, input[type="text"], input[type="password"] {
       outline: none;
}

#logo {
        background: none;
	margin-top: 0px;
        position: absolute;
        width:0px;
        margin-top: 15px;
        opacity: 1;
        -webkit-transition: all 250ms ease-in-out;
       -moz-transition: all 250ms ease-in-out;
       -o-transition: all 250ms ease-in-out;
        transition: all 250ms ease-in-out;
}

#logo:hover {
       opacity: 0.8;
       padding-right: 5px;
}

.header {
	color: #fff;
        background: none;
	padding: 0px;
        height: 130px;
        width: 100%;
        margin :auto auto;
}

.dotwrap {
background: url(../../../images/vafa-vb/dot2.png);
margin: auto;
}

#headerwrap {
	color: #777777;
	background: #000 url(../../../images/vafa-vb/bg2.jpg)top center no-repeat;
	padding: 0px;
        height: 130px;
        margin :auto auto;
        margin-top: 0px;
        -webkit-box-shadow: inset rgba(0, 0, 0, 0.8) 0px 1px 5px, rgba(255, 255, 255, 0.02) 0px 0px 0px 1px, rgba(255, 255, 255, 0.05) 0px 1px 0px;
-moz-box-shadow: inset rgba(0,0,0,0.8) 0px 1px 5px, rgba(255,255,255,0.02) 0px 0px 0px 1px, rgba(255,255,255,0.05) 0px 1px 0px;
box-shadow: inset rgba(0, 0, 0, 0.8) 0px 1px 5px, rgba(255, 255, 255, 0.02) 0px 0px 0px 1px, rgba(255, 255, 255, 0.05) 0px 1px 0px;
}

.topwrap {
	color: #fff;
	background: #333 url(../../../images/vafa-vb/bgg.png);
        border-bottom: 1px solid #000;
	padding: 0px;
        height: 65px;
        margin :auto auto;
        vertical-align: middle;
        font-family: 'SinaBold', SinaBold, Tahoma;
        box-shadow: 0 0 1px rgba(255,255,255,.4) inset,0 0 5px rgba(0,0,0,.5);
}

body {
        background: #fff url(../../../images/vafa-vb/bg1.png);
	color: #606060;
	font-family: 'BKoodak', BKoodak, Tahoma;
	font-size: 13px;
        margin: 0 auto;
	text-align: center; /* IE 5 fix */
	line-height: 1.4;
}

a:link, a:visited {
color: #9f3cd8;
 font-family: 'BKoodak', BKoodak, Tahoma;
text-decoration: none;
}

a:hover, a:active {
color: #606060;
-webkit-transition: all 250ms ease-in-out;
-moz-transition: all 250ms ease-in-out;
-o-transition: all 250ms ease-in-out;
transition: all 250ms ease-in-out;
text-decoration: none;
}

#container {
	margin: auto auto;
	padding: 20px;
	text-align: right;
	
	color: #606060;
	width: 85%;
}

#content {
	/* FIX: Make internet explorer wrap correctly */
	width: auto !important;
}

.menu ul {
	color: #000000;
	font-weight: bold;
	text-align: right;
	padding: 4px;
}

.menu ul a:link {
	color: #000000;
	text-decoration: none;
}

.menu ul a:visited {
	color: #000000;
	text-decoration: none;
}

.menu ul a:hover, .menu ul a:active {
	color: #4874a3;
	text-decoration: none;
}

#panel {
	background: #efefef;
	color: #000000;
	font-size: 11px;
	border: 1px solid #D4D4D4;
	padding: 8px;
}

#panel .remember_me input {
	vertical-align: middle;
	margin-top: -1px;
}

table {
	color: #606060;
	font-family: 'BKoodak', BKoodak, Tahoma;
	font-size: 18px;
}

.tborder {
	background: #f1f1f1;
	width: 100%;
	margin: auto auto;
        padding: 5px;
	border: 1px solid #dadada;
        box-shadow: 0 1px 2px rgba(0,0,0,.05) inset;
}

.tborderr {
	background: none;
	width: 100%;
	margin: auto auto;
	border: 1px solid #dadada;
}

.thead {
	background: #264349 url(../../../images/vafa-vb/tbg.png)repeat-x 0;
	color: #ffffff;
        padding: 10px;
}

.theadd {
	background: #fff;
	color: #606060;
        padding: 10px;
        font-size: 20px;
        font-weight: normal;
        font-family: 'BebasNeueRegular';
        border-bottom: 1px solid #dadada;
}

.tcatt {
	background: #fff;
	color: #606060;
	font-size: 12px;
}

.thead a:link {
	color: #ffffff;
	text-decoration: none;
}

.thead a:visited {
	color: #ffffff;
	text-decoration: none;
}

.thead a:hover, .thead a:active {
	color: #ffffff;
	text-decoration: none;
}

.tcat {
	background: #E7EDF2 url(../../../images/vafa-vb/tcat.png) top left repeat-x;
	color: #606060;
	font-size: 12px;
}

.tcat a:link {
	color: #777;
}

.tcat a:visited {
	color: #777;
}

.tcat a:hover, .tcat a:active {
	color: #888;
}

.trow1 {
	background: #EFEFEF;
	background: rgb(252,252,252); /* Old browsers */  background: -moz-linear-gradient(top,  rgba(252,252,252,1) 0%, rgba(247,247,247,1) 100%); /* FF3.6+ */  
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(252,252,252,1)), color-stop(100%,rgba(247,247,247,1))); /* Chrome,Safari4+ */  
	background: -webkit-linear-gradient(top,  rgba(252,252,252,1) 0%,rgba(247,247,247,1) 100%); /* Chrome10+,Safari5.1+ */  background: -o-linear-gradient(top,  rgba(252,252,252,1) 0%,rgba(247,247,247,1) 100%); /* Opera 11.10+ */  background: -ms-linear-gradient(top,  rgba(252,252,252,1) 0%,rgba(247,247,247,1) 100%); /* IE10+ */  background: linear-gradient(top,  rgba(252,252,252,1) 0%,rgba(247,247,247,1) 100%); /* W3C */  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfcfc', endColorstr='#f7f7f7',GradientType=0 ); /* IE6-9 */;	
    border-top: 1px solid #fff;
    border-bottom: 1px solid #ddd;
    padding: 15px;
    vertical-align: midde;
}

.trow2 {
	background: #EFEFEF;
	background: rgb(252,252,252); /* Old browsers */  background: -moz-linear-gradient(top,  rgba(252,252,252,1) 0%, rgba(247,247,247,1) 100%); /* FF3.6+ */  
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(252,252,252,1)), color-stop(100%,rgba(247,247,247,1))); /* Chrome,Safari4+ */  
	background: -webkit-linear-gradient(top,  rgba(252,252,252,1) 0%,rgba(247,247,247,1) 100%); /* Chrome10+,Safari5.1+ */  background: -o-linear-gradient(top,  rgba(252,252,252,1) 0%,rgba(247,247,247,1) 100%); /* Opera 11.10+ */  background: -ms-linear-gradient(top,  rgba(252,252,252,1) 0%,rgba(247,247,247,1) 100%); /* IE10+ */  background: linear-gradient(top,  rgba(252,252,252,1) 0%,rgba(247,247,247,1) 100%); /* W3C */  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfcfc', endColorstr='#f7f7f7',GradientType=0 ); /* IE6-9 */;
	border-top: 1px solid   #fff;  
	border-bottom: 1px solid   #ddd;
	padding: 15px;
	vertical-align: top;
}

.trow3 {
background: #EFEFEF;
	background: rgb(252,252,252); /* Old browsers */  background: -moz-linear-gradient(top,  rgba(252,252,252,1) 0%, rgba(247,247,247,1) 100%); /* FF3.6+ */  
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(252,252,252,1)), color-stop(100%,rgba(247,247,247,1))); /* Chrome,Safari4+ */  
	background: -webkit-linear-gradient(top,  rgba(252,252,252,1) 0%,rgba(247,247,247,1) 100%); /* Chrome10+,Safari5.1+ */  background: -o-linear-gradient(top,  rgba(252,252,252,1) 0%,rgba(247,247,247,1) 100%); /* Opera 11.10+ */  background: -ms-linear-gradient(top,  rgba(252,252,252,1) 0%,rgba(247,247,247,1) 100%); /* IE10+ */  background: linear-gradient(top,  rgba(252,252,252,1) 0%,rgba(247,247,247,1) 100%); /* W3C */  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfcfc', endColorstr='#f7f7f7',GradientType=0 ); /* IE6-9 */;	
    border-bottom: 1px solid #ddd;
    padding: 13px;
    vertical-align: midde;
    font-family: 'SinaBold', SinaBold, Tahoma;
    font-size: 19px;
    font-weight: normal;
    color: #606060;
}

.trow3:hover {
  background: #606060;
    color: #fff;
    cursor: pointer;
}

.trow_shaded {
	background: #EBEBEB;
}

.trow_selected td {
	background: #EBEBEB;
}

.trow_sep {
	background: #EBEBEB;
	color: #606060
	font-size: 12px;
	font-weight: bold;
}

.tfoot {
	background: #292929 url(../../../images/vafa-vb/tbg.png)repeat-x 0;
        padding: 8px;
	color: #ffffff;
}

.tfoot a:link {
	color: #ffffff;
	text-decoration: none;
}

.tfoot a:visited {
	color: #ffffff;
	text-decoration: none;
}

.tfoot a:hover, .tfoot a:active {
	color: #ffffff;
	text-decoration: none;
}

.navigation {
	color: #606060;
	font-size: 13px;
	font-weight: bold;
}

.navigation a:link {
	text-decoration: none;
}

.navigation a:visited {
	text-decoration: none;
}

.navigation a:hover, .navigation a:active {
	text-decoration: none;
}

.navigation .active {
	color: #000000;
	font-size: 13px;
	font-weight: bold;
}

.smalltext {
	font-size: 13px;
}

.largetext {
	font-size: 16px;
	font-weight: bold;
}

input.textbox, select, input[type="text"] {
    background: none repeat scroll 0 0 #fff;
    border: 1px solid #ccc;
    border-radius: 2px 2px 2px 2px !important;
    color: #606060;
    margin: 0;
    padding: 5px;
}

textarea {
    background: #fff;
    color: #606060;
    border: 1px solid #dadada;
    padding: 2px;
    font-family: Verdana, Arial, Sans-Serif;
    line-height: 1.4;
    font-size: 13px;
}

select {
background: #fff;
}

input.textbox:focus, textarea:focus, select:focus {
outline: none;
}

.editor {
background: #fff;
border: 1px solid #dadada;
}

.editor_control_bar {
background: #fff;
padding: 3px;
  -moz-border-radius: 2px;
        -webkit-border-radius: 2px;
        -khtml-border-radius: 2px;
        border-radius: 2px;
}

.autocomplete {
	background: #fff;
	border: 1px solid #000;
	color: black;
}

.autocomplete_selected {
	background: #adcee7;
	color: #000;
}

.popup_menu {
	background: #fff;
	border: 1px solid #dadada;
}

.popup_menu .popup_item {
	background: #fff;
	color: #000;
}

.popup_menu .popup_item:hover {
	background: #C7DBEE;
	color: #000;
}

.trow_reputation_positive {
	background: rgba(124, 238, 124, 0.46);
}

.trow_reputation_negative {
	background: rgba(238, 114, 66, 0.48);
}

.reputation_positive {
	color: green;
}

.reputation_neutral {
	color: #444;
}

.reputation_negative {
	color: red;
}

.invalid_field {
	border: 1px solid #f30;
	color: #f30;
        padding: 5px;
}

.valid_field {
	border: 1px solid #89AE0A;
        padding: 5px;
}

.validation_error {
	background: url(../../../images/vafa-vb/invalid.gif) no-repeat center left;
	color: #f30;
	margin: 5px 0;
	padding: 5px;
	font-weight: bold;
	font-size: 11px;
	padding-left: 22px;
}

.validation_success {
	background: url(../../../images/vafa-vb/valid.gif) no-repeat center left;
	color: #00b200;
	margin: 5px 0;
	padding: 5px;
	font-weight: bold;
	font-size: 11px;
	padding-left: 22px;
}

.validation_loading {
background: #222 url(../../../images/vafa-vb/spinner.gif) no-repeat center left;
background: -moz-linear-gradient(top, #111 0%, #222 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#111), color-stop(100%,#222));
background: linear-gradient(top, #111 0%,#222 100%);
color: white;
text-align: center;
padding: 6px 0 9px;
width: 8%;
top: 0px;
left: 46%;
-moz-border-radius: 0 0 3px 3px;
-webkit-border-bottom-right-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
border-radius: 0 0 3px 3px;
z-index: 10000;
position: fixed;
-moz-box-shadow: 0px 1px 3px rgba(0,0,0,0.2);
-webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Additional CSS (Master) */
img {
	border: none;
}

.clear {
	clear: both;
}

.hidden {
	display: none;
	float: none;
	width: 1%;
}

.hiddenrow {
	display: none;
}

.selectall {
	background-color: #FFFBD9;
	font-weight: bold;
	text-align: center;
}

.float_left {
	float: left;
}

.float_right {
	float: right;
}

.menu ul {
	list-style: none;
	margin-top: -38px;
}

.menu li {
	display: inline;
	padding-left: 5px;
}

.menu img {
	padding-right: 5px;
	vertical-align: top;
}

#panel .links {
	margin: 0;
	float: left;
}

.expcolimage {
	float: left;
	width: auto;
	vertical-align: middle;
}

.thead:hover .expcolimage {
opacity: 1;
}

img.attachment {
	border: 1px solid #E9E5D7;
	padding: 2px;
}

hr {
	background-color: #606060;
	color: #606060;
	height: 1px;
	border: 0px;
}

#copyright {
	font: 11px Verdana, Arial, Sans-Serif;
	margin: 0;
	padding: 10px 0 0 0;
        text-align: right;
}

blockquote {
	border: 1px solid #ccc;
	margin: 0;
	background: #fff url(../../../images/vafa-vb/quote.png)top left;
        background-repeat: no-repeat;
	padding: 8px;
}

blockquote cite {
	font-weight: bold;
	border-bottom: 0px solid #ccc;
        padding-bottom: 15px;
	font-style: normal;
	display: block;
	margin: 4px 0;
}

blockquote cite span {
	float: right;
	font-weight: normal;
}

blockquote cite span.highlight {
	float: none;
	font-weight: bold;
	padding-bottom: 0;
}

.codeblock {
	background: #fff url(../../../images/vafa-vb/code.png) top left;
        background-repeat: no-repeat;
	border: 1px solid #ccc;
	padding: 8px;
}

.codeblock .title {
	border-bottom: 0px solid #ccc;
	font-weight: bold;
	margin: 4px 0;
}

.codeblock code {
	overflow: auto;
	height: auto;
	max-height: 200px;
	display: block;
	font-family: Monaco, Consolas, Courier, monospace;
	font-size: 13px;
	text-align: left;
}

.subforumicon {
	border: 0;
	vertical-align: middle;
}

.separator {
	margin: 5px;
	padding: 0;
	height: 0px;
	font-size: 1px;
	list-style-type: none;
}

form {
	margin: 0;
	padding: 0;
}

.popup_menu .popup_item_container {
	margin: 1px;
	text-align: right;
}

.popup_menu .popup_item {
	display: block;
	padding: 3px;
	text-decoration: none;
	white-space: nowrap;
}

.popup_menu a.popup_item:hover {
	text-decoration: none;
}

.autocomplete {
	text-align: right;
}

.subject_new {
	font-weight: bold;
}

.highlight {
	background: #FFFFCC;
	padding-top: 3px;
	padding-bottom: 3px;
}

.pm_alert {
	 background: #8fc400; /* Old browsers */
      background-image: url(../../../images/vafa-vb/thb.png);
      background: -moz-linear-gradient(top,  #8fc400 0%, #8fc400 100%); /* FF3.6+ */
      background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#8fc400), color-stop(100%,#8fc400)); /* Chrome,Safari4+ */
      background: -webkit-linear-gradient(top,  #8fc400 0%,#8fc400 100%); /* Chrome10+,Safari5.1+ */
      background: -o-linear-gradient(top,  #8fc400 0%,#8fc400 100%); /* Opera 11.10+ */
      background: -ms-linear-gradient(top,  #8fc400 0%,#8fc400 100%); /* IE10+ */
      background: linear-gradient(top,  #8fc400 0%,#8fc400 100%); /* W3C */
     filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#8fc400', endColorstr='#8fc400',GradientType=0 ); /* IE6-9 */
	border: 1px solid #8fc400;
        color: #fff;
	text-align: center;
	padding: 10px;
	margin-bottom: 15px;
	font-size: 13px;
}

.red_alert {
	background: #c95e53; /* Old browsers */
background: -moz-linear-gradient(top, #c95e53 0%, #a43636 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#c95e53), color-stop(100%,#a43636)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #c95e53 0%,#a43636 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #c95e53 0%,#a43636 100%); /* Opera11.10+ */
background: -ms-linear-gradient(top, #c95e53 0%,#a43636 100%); /* IE10+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c95e53', endColorstr='#a43636',GradientType=0 ); /* IE6-9 */
background: linear-gradient(top, #c95e53 0%,#a43636 100%); /* W3C */
	border: 1px solid #c95e53;
	color: #A5161A;
	text-align: center;
	padding: 10px;
	margin-bottom: 15px;
	font-size: 11px;
}

.high_warning {
	color: #CC0000;
}

.moderate_warning {
	color: #F3611B;
}

.low_warning {
	color: #AE5700;
}

div.error {
        background: #e16355; /* Old browsers */
background: -moz-linear-gradient(top,  #e16355 0%, #e16355 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e16355), color-stop(100%,#e16355)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  #e16355 0%,#e16355 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  #e16355 0%,#e16355 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  #e16355 0%,#e16355 100%); /* IE10+ */
background: linear-gradient(top,  #e16355 0%,#e16355 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e16355', endColorstr='#e16355',GradientType=0 ); /* IE6-9 */
	padding: 10px;
        color: #fff;
	border-top: 1px solid #c95e53;
	border-bottom: 1px solid #c95e53;
	font-size: 12px;
}

div.error p {
	margin: 0;
	color: #000;
	font-weight: normal;
}

div.error p em {
	font-style: normal;
	font-weight: bold;
	padding-left: 24px;
	display: block;
	color: #f7f7f7;
	background: url(../../../images/vafa-vb/error.gif) no-repeat 0;
}

div.error ul {
	margin-left: 24px;
}

.online {
	color: #15A018;
}

.offline {
	color: #C7C7C7;
}

.pagination {
	font-size: 11px;
	padding: 10px;
	margin-bottom: 5px;
}

.tfoot .pagination, .tcat .pagination {
	padding-top: 0;
}

.pagination .pages {
	font-weight: bold;
}

.pagination .pagination_current, .pagination a {
	padding: 4px 8px;
	margin-bottom: 3px;
}

.pagination a {
	border: 1px solid #dadada;
        background: #f7f7f7;
}

.pagination .pagination_current {
	background: #eee;
	border: 1px solid #dadada;
	font-weight: bold;
	color: #418cd1;
}

.pagination a:hover {
	background: #418cd1;
	text-decoration: none;
       color: #fff;
}

.thread_legend, .thread_legend dd {
	margin: 0;
	padding: 0;
}

.thread_legend dd {
	padding-bottom: 4px;
	margin-right: 15px;
}

.thread_legend img {
	margin-right: 4px;
	vertical-align: bottom;
}

.forum_legend, .forum_legend dt, .forum_legend dd {
	margin: 0;
	padding: 0;
}

.forum_legend dd {
	float: right;
	margin-right: 10px;
}

.forum_legend dt {
	margin-right: 10px;
	float: right;
}

.success_message {
	color: #00b200;
	font-weight: bold;
	font-size: 10px;
	margin-bottom: 10px;
}

.error_message {
	color: #C00;
	font-weight: bold;
	font-size: 10px;
	margin-bottom: 10px;
}

.post_body {
	padding: 5px;
}

.post_content {
	padding: 5px 10px;
}

.quick_jump {
	background: url(../../../images/vafa-vb/jump.gif) no-repeat 0;
	width: 13px;
	height: 13px;
	padding-left: 13px; /* amount of padding needed for image to fully show */
	vertical-align: middle;
	border: none;
}

.repbox {
	font-size:16px;
	font-weight: bold;
	padding:5px 7px 5px 7px;
}

._neutral {
	background-color:#FAFAFA;
	color: #999999;
	border:1px solid #CCCCCC;
}

._minus {
	background-color: #FDD2D1;
	color: #CB0200;
	border:1px solid #980201;
}

._plus {
	background-color: rgba(194, 241, 165, 0.4);
        color: #1CDF1C;
        border: 1px solid #C3E0C3;
}

.pagination_breadcrumb {
	background-color: #444;
	border: 1px solid #fff;
	outline: 1px solid #ccc;
	padding: 5px;
	margin-top: 5px;
	font-weight: normal;
	white-space: nowrap;
}

.pagination_breadcrumb_link {
	vertical-align: middle;
	cursor: pointer;
}

.trow_shaded {
    background: #ffdde0;
}


		








.mystories-bar-wrapper {
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    padding: 12px 0;
    margin-bottom: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mystories-bar {
    display: flex;
    gap: 14px;
    padding: 0 12px;
    align-items: center;
}

.story-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 72px;
    text-decoration: none !important;
    color: inherit !important;
}

.story-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.story-avatar.seen {
    border: 2px solid #dbdbdb;
}

.story-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    box-sizing: border-box;
}

.story-avatar.add {
    border: 2px dashed #aaa;
    background: #f5f5f5;
    font-size: 28px;
    color: #777;
    font-weight: bold;
}

.story-rings {
    width: 66px;
    height: 66px;
    position: relative;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-ring {
    border-radius: 50%;
    padding: 2.5px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.story-ring.global {
    background: linear-gradient(45deg, #7b2cbf, #9d4edd, #c77dff);
}

.story-ring.friends {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.story-ring.close-friends {
    background: linear-gradient(45deg, #00c853, #64dd17, #aeea00);
}

.story-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-sizing: border-box;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.story-username {
    font-size: 11px;
    margin-top: 5px;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    color: #262626;
}

/* ---------- ویوئر ---------- */
.story-viewer-body {
    margin: 0;
    padding: 0;
    background: #000;
    overflow: hidden;
    font-family: Tahoma, Arial, sans-serif;
    height: 100vh;
    direction: ltr;
}

.story-viewer {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    direction: ltr;
}

.story-progress {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    flex-direction: row;
    gap: 3px;
    z-index: 30;
    direction: ltr;
}

.story-progress span {
    flex: 1;
    height: 2.5px;
    background: rgba(255,255,255,0.35);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.story-progress span i {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #fff;
    width: 0%;
}

.story-progress span.seen i {
    width: 100% !important;
    animation: none !important;
}

.story-progress span.active i {
    animation: progressAnim 20s linear forwards;
}

@keyframes progressAnim {
    from { width: 0%; }
    to { width: 100%; }
}

.story-header {
    position: absolute;
    top: 18px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 40;
    color: #fff;
    direction: ltr;
}

.story-header .username-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.story-header .username {
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.privacy-badge {
    font-size: 11px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 12px;
    color: #fff;
    text-shadow: none;
    letter-spacing: 0.3px;
    display: none;
}

.privacy-badge.global {
    background: linear-gradient(45deg, #7b2cbf, #9d4edd);
}

.privacy-badge.friends {
    background: linear-gradient(45deg, #e6683c, #dc2743, #bc1888);
}

.privacy-badge.close-friends {
    background: linear-gradient(45deg, #00c853, #64dd17);
}

.close-viewer {
    color: #fff;
    font-size: 28px;
    text-decoration: none;
    line-height: 1;
    padding: 4px;
    z-index: 50;
}

.story-content {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.story-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
    align-items: center;
    justify-content: center;
}

.story-slide.active {
    display: flex;
}

.story-media-916 {
    width: min(100vw, calc(100vh * 9 / 16));
    aspect-ratio: 9 / 16;
    height: auto;
    max-height: 100vh;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: #000;
}

.story-media-916 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: none !important;
    max-height: none !important;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.story-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    z-index: 20;
}

.story-nav.prev { left: 0; }
.story-nav.next { right: 0; }

.delete-story {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(220, 50, 50, 0.85);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    z-index: 50;
}

/* لایک */
.story-like-btn {
    position: fixed !important;
    bottom: 28px !important;
    right: 18px !important;
    z-index: 2147483000 !important;
    pointer-events: auto !important;
    background: rgba(0, 0, 0, 0.45);
    border: none;
    border-radius: 50%;
    width: 58px;
    height: 58px;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.story-like-btn .like-icon {
    display: block;
    font-size: 30px;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.story-like-btn .like-count {
    font-size: 11px;
    font-weight: bold;
    margin-top: 1px;
    min-height: 12px;
}

.story-like-btn.liked {
    background: rgba(255, 45, 85, 0.3);
}

.story-like-btn.liked .like-icon {
    color: #ff2d55;
}

.story-like-btn.anim-like .like-icon {
    animation: heartPop 0.45s cubic-bezier(0.17, 0.89, 0.32, 1.4);
    color: #ff2d55;
}

.story-like-btn.anim-unlike .like-icon {
    animation: heartShrink 0.35s ease;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    25% { transform: scale(0.75); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

@keyframes heartShrink {
    0% { transform: scale(1.2); color: #ff2d55; }
    100% { transform: scale(1); color: #fff; }
}

.viewers-btn {
    position: absolute;
    bottom: 28px;
    right: 18px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 10px 16px;
    border-radius: 22px;
    font-size: 13px;
    cursor: pointer;
    z-index: 50;
}

.viewers-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 50%;
    background: #1a1a1a;
    border-radius: 16px 16px 0 0;
    z-index: 60;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.viewers-header {
    padding: 14px 16px;
    font-weight: bold;
    color: #fff;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.viewers-header span {
    font-size: 22px;
    cursor: pointer;
}

.viewers-list {
    overflow-y: auto;
    padding: 8px 12px 16px;
    color: #ddd;
    font-size: 14px;
}

.viewer-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 6px;
    border-bottom: 1px solid #2a2a2a;
    direction: ltr;
    text-align: left;
}

.viewer-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.viewer-name {
    flex: 1;
    text-align: left;
    color: #eee;
    font-size: 14px;
}

.viewer-liked {
    color: #ff2d55;
    font-size: 18px;
    flex-shrink: 0;
    margin-left: 8px;
}

.viewer-item.is-liked {
    background: rgba(255, 45, 85, 0.08);
    border-radius: 8px;
}

.story-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    white-space: nowrap;
    direction: rtl;
    unicode-bidi: embed;
}

/* ---------- صفحه ساخت استوری ---------- */
.ms-composer {
    max-width: 480px;
    margin: 20px auto;
    padding: 16px;
    box-sizing: border-box;
}

.ms-composer-title {
    text-align: center;
    margin: 0 0 16px;
    font-size: 18px;
}

.ms-hidden { display: none !important; }

.ms-pick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px dashed #aaa;
    border-radius: 16px;
    padding: 40px 16px;
    cursor: pointer;
    background: #fafafa;
    color: #444;
    font-size: 15px;
}

.ms-pick-icon {
    font-size: 36px;
    line-height: 1;
    color: #1a73e8;
}

#story_image {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.ms-hint {
    font-size: 12px;
    color: #777;
    text-align: center;
    margin: 10px 0 0;
}

.ms-preview-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

/* کادر پیش‌نمایش */
.ms-preview-frame {
    width: min(100%, 320px);
    aspect-ratio: 9 / 16;
    height: auto;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    touch-action: none;
    cursor: grab;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    box-sizing: border-box;
    margin: 0 auto;
}
.ms-preview-frame:active { cursor: grabbing; }

/* تصویر داخل پیش‌نمایش - حالت استاندارد و پایدار */
.ms-preview-frame img {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.ms-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 4px;
    flex-wrap: wrap;
}

.ms-tool-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #eee;
    color: #222;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.ms-tool-btn:active {
    background: #ddd;
    transform: scale(0.96);
}

.ms-toolbar input[type=range] {
    width: 120px;
    max-width: 40vw;
}

.ms-privacy-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    justify-content: center;
}

.ms-privacy-row select {
    padding: 8px 12px;
    min-width: 180px;
}

.ms-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.ms-btn-secondary {
    background: #eee !important;
    color: #333 !important;
}

@media (max-width: 480px) {
    .ms-composer { padding: 12px; margin: 10px auto; }
    .ms-preview-frame { width: min(100%, 280px); }
}

/* لایه متن */
.ms-text-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    min-width: 40px;
    max-width: 92%;
    padding: 4px 8px;
    margin: 0;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    line-height: 1.25;
    text-align: center;
    cursor: move;
    outline: none;
    border-radius: 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.55);
    unicode-bidi: plaintext;
    transform-origin: center center;
    -webkit-user-select: text;
    user-select: text;
}

.ms-text-layer:focus {
    background: rgba(0,0,0,0.2);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.35);
}

.ms-tool-wide {
    width: auto !important;
    border-radius: 20px !important;
    padding: 0 14px;
    font-size: 13px !important;
    font-weight: bold;
}

.ms-text-tools {
    margin: 10px 0 4px;
    text-align: center;
}

.ms-text-size {
    display: block;
    font-size: 12px;
    color: #444;
    margin-bottom: 8px;
}

.ms-text-size input[type=range] {
    width: 100%;
    max-width: 260px;
    display: block;
    margin: 6px auto 0;
}

.ms-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin: 8px 0;
}

.ms-color {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    padding: 0;
}

.ms-color:hover {
    transform: scale(1.1);
}

#textColorInput {
    width: 36px;
    height: 28px;
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.ms-align-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 8px 0 10px;
}

.ms-align-btn {
    border: 1px solid #ccc;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    font-family: Tahoma, Arial, sans-serif;
}

.ms-align-btn.active {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}