* {padding: 0; margin: 0;}
html, body {height: 100%;}
body {font-family: Tahoma, Arial, Helvetica, "Microsoft YaHei New", "Microsoft Yahei", SimSun, STXihei, sans-serif; font-size: 18px; position: relative;}
.wrapper img.banner {width: 100%; height: auto;}
.wrapper img.banner.mini {max-width: 440px; width: 100%; height: auto;}
.wrapper {width: 600px; background: #B7E0D5;}
h4 {line-height: 1.5; margin-bottom: 2%;}
p {margin-bottom: 1%;}
ul li {margin-left: 24px;}
.add-padding-sides {padding-left: 32px; padding-right: 32px;}
.remove-padding-top {padding-top: 0px;}
.yes-overflow {overflow: visible;}
.wrapper a, .wrapper a:hover, .wrapper a:active {color: #E36544;}
button:focus, input:focus { outline: none; }
input, button {font-family: 'Noto Sans SC', sans-serif;}

/* Table Border */
.border-top-left {-webkit-border-top-left-radius: 8px;
-moz-border-radius-topleft: 8px;
border-top-left-radius: 8px;}
.border-top-right {-webkit-border-top-right-radius: 8px;
-moz-border-radius-topright: 8px;
border-top-right-radius: 8px;}
.border-bottom-left {-webkit-border-bottom-left-radius: 8px;
-moz-border-radius-bottomleft: 8px;
border-bottom-left-radius: 8px;}
.border-bottom-right {-webkit-border-bottom-right-radius: 8px;
-moz-border-radius-bottomright: 8px;
border-bottom-right-radius: 8px;}

/* Gaps */
.gap__4 {padding: 4px 0 0;}
.gap__8 {padding: 8px 0 0;}
.gap__16 {padding: 16px 0 0;}
.gap__24 {padding: 24px 0 0;}
.gap__32 {padding: 32px 0 0;}

/* Page HD */
.page-hd__8 {padding: 8px;}
.page-hd__16 {padding: 16px;}
.page-hd__24 {padding: 24px;}
.page-hd__32 {padding: 32px;}

/* Fonts Style */
.f-brandy {color: #7E3F3B;}
.f-deep-carmine-pink {color: #EF383E;}
.f-ebony {color: #5E5E5E;}
.f-body {color: rgba(51,51,51,0.95); font-size: 0.95em;}
.f-dark-slate-blue {color: #483B8C;}
.f-night-rider {color: #333333;}

/* Drop Shadow */
.shadow {
    -webkit-text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
    -moz-text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Box Shadow */
.box-shadow {-webkit-box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.24); -moz-box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.24); box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.24);}

/* iOS Safari Overwrite */
input {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}

/* No Padding */
.page-bd-24 {padding: 24px;}
.page-bd-top {padding-top: 0!important;}
.page-bd-bottom {padding-bottom: 0!important;}
.page-bd-left {padding-left: 0!important;}
.page-bd-right {padding-right: 0!important;}

/* Responsive Images */
.resp-100 {width: 100%; height: auto;}
.resp-90 {width: 90%; height: auto;}
.resp-80 {width: 80%; height: auto; max-width: 350px;}

/* Flex Two */
.weui-flex__item.two {
    -webkit-box-flex: 2;
    -webkit-flex: 2;
    flex: 2;
    margin-left: 16px;
}
.weui-flex__item.right-padding {box-sizing: border-box; padding-right: 16px;}
.weui-flex__item.right-padding-8 {box-sizing: border-box; padding-right: 8px;}

hr {
    padding: 0;
    margin: 0;
    border: none;
    width: 100%;
    border-bottom: 1px dashed #FCC360;
}

/* Btn Template */
a.btn {display: inline-block; padding: 0 20px; line-height: 34px; height: 34px; width: auto; background: #CCC; color: #2F2F2F; -webkit-border-radius: 100px; -moz-border-radius: 100px; border-radius: 100px; font-size: 0.84em;}
a.btn:hover {filter: brightness(105%); color: #585858;}
a.btn:active {filter: brightness(90%); color: #000;}
a.btn.large {padding: 0 32px; line-height: 44px; height: 44px; font-size: 0.94em;}

/* Template */
body {background-color: #457862;}
.gain.wrapper {background: #66A28D; min-height: 100%;}
.gain.wrapper.rules {background: url('../images/gainBannerRules.png') #568671 no-repeat top left; background-size: 100% auto;}

.gain {position: relative;}
        
/* BANNER */
.gain .banner {position: relative;} 
.gain .banner img {display: block;}

/* CODE BOX */
.gain .code {padding: 32px 48px 28px; background: #FFF; display: inline-block; width: 74%; position: absolute; bottom: 40px; left: 50%; -webkit-transform: translateX(-50%); -moz-transform: translateX(-50%); transform: translateX(-50%); box-sizing: border-box; -webkit-border-radius: 100px; -moz-border-radius: 100px; border-radius: 100px;}
.f-bottle-green {color: #356C58;}
.f-jet {color: #333;}
.f-silver-chalice {color: #ABADAD;}
.gain .code p, .gain .code h2 {padding: 0; margin: 0; line-height: 1.4;}
.gain .code p {font-size: 0.938em; font-weight: 600;}
.gain .code h2, .gain .code input[type='text'] {font-size: 1.750em; color: #333;}
.gain .code input[type='text'] {
    border: none;
    padding: 0;
    margin: 0;
    background: none;
    width: 100%;
    height: auto;
    margin-top: 4%;
    font-weight: bold;
    outline-width: 0;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}
.gain .code input[type='text']:focus {outline: none;}
.gain .clear {clear: both;}
.gain .red {
    color: #FFF;
    font-weight: bold;
    background: rgb(250,88,80);
    background: -moz-linear-gradient(180deg, rgba(250,88,80,1) 0%, rgba(228,51,42,1) 100%);
    background: -webkit-linear-gradient(180deg, rgba(250,88,80,1) 0%, rgba(228,51,42,1) 100%);
    background: linear-gradient(180deg, rgba(250,88,80,1) 0%, rgba(228,51,42,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#fa5850",endColorstr="#e4332a",GradientType=1);
    text-transform: uppercase;
}
.gain .red:hover {color: #FFF;}
.gain .red:active {position: relative; top: 1px;}
.gain .grass {position: absolute; bottom: -1px; left: 0; z-index: 99;}
.referral--cols {  
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 4% 5%;
    grid-auto-flow: row;
}
.referral--cols div {
    position: relative;
    padding: 0 2%;
}
.referral--cols div.add-line:first-child::after {
    content: '';
    height: 100%;
    width: 1px;
    background: #CCC;
    display: block;
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
}

/* BOXED FRAME */
.gain .boxed-frame p {font-size: 1em;}
.gain .boxed-frame {background: #F6F9F8; padding: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.08); -moz-box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.08); box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.08); box-sizing: border-box;}
.gain .boxed-frame .inner {padding: 24px; border: 2px solid rgba(102, 162, 141, 0.5); box-sizing: border-box;}
.gain .boxed-frame input[type='text'] {
    margin: 0;
    border: none;
    outline-width: 0;
    background: #E2E4E3;
    padding: 8px 24px;
    height: 44px;
    line-height: 44px;
    color: #333;
    font-size: 1em;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
    width: 100%;
    box-sizing: border-box;
}
.gain .boxed-frame input[type='text']:focus {outline: none;}
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #ABADAD;
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: #ABADAD;
}

::-ms-input-placeholder { /* Microsoft Edge */
  color: #ABADAD;
}

.gain .boxed-frame a.yellow {
    background: rgb(255,198,86);
    background: -moz-linear-gradient(180deg, rgba(255,198,86,1) 0%, rgba(247,166,48,1) 100%);
    background: -webkit-linear-gradient(180deg, rgba(255,198,86,1) 0%, rgba(247,166,48,1) 100%);
    background: linear-gradient(180deg, rgba(255,198,86,1) 0%, rgba(247,166,48,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffc656",endColorstr="#f7a630",GradientType=1);
    color: #A7231C;
    min-width: 120px;
}
.gain .boxed-frame a.yellow:active {position: relative; top: 1px;}

/* GREEN PANEL */
.gain .green-panel {background: #356956; -webkit-border-radius: 8px; -moz-border-radius: 8px; border-radius: 8px; overflow: hidden;}

.gain .green-panel .weui-media-box {background: #FFF; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; margin-bottom: 8px;}

.gain .green-panel .weui-media-box:last-child {margin-bottom: 0;}
.gain .green-panel .weui-media-box__desc {font-size: 0.8em;}
.gain .green-panel .weui-media-box__title {font-size: 1em; color: #333;}
.gain .green-panel .weui-media-box__thumb {-webkit-border-radius: 100px; -moz-border-radius: 100px; border-radius: 100px;}

/* NOTE */
.gain .note {padding: 8px 24px; box-sizing: border-box; background: rgba(0,0,0,0.7); color: #FFF; font-weight: bold; -webkit-border-radius: 100px; -moz-border-radius: 100px; border-radius: 100px; font-size: 0.84em; position: fixed; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); -moz-transform: translate(-50%, -50%); transform: translate(-50%, -50%); display: none; z-index: 9999; text-transform: uppercase;}

/* RULES */
.gain .rules img {width: auto; height: 44px;}
.gain .rules {position: fixed; top: 220px; right: 0; z-index: 999;}
.gain .rules:active {top: 221px; opacity: 0.7;}
.gain.rules h3 {font-size: 1.250em; line-height: 1.5; text-transform: uppercase;}
.gain.rules p {font-size: 0.875em; line-height: 1.5;}

/* BOUND */
.gain .bound {padding: 16px 48px;}
.gain .bound .myAvatar img {width: 64px; height: auto; margin: 8px 0; position: relative; left: 50%; -webkit-transform: translateX(-50%); -moz-transform: translateX(-50%); transform: translateX(-50%); -webkit-border-radius: 100px; -moz-border-radius: 100px; border-radius: 100px;}

/* BACK */
.gain #back {position: absolute; top: 40px; left: 40px;}
.gain #back:active {top: 41px; opacity: 0.7;}
.gain #back img {width: 40px; height: auto;}

/* Scroll Button */
#scroll {
    position: fixed;
    z-index: 9999;
    width: 80px;
    height: 80px;
    background: #53933F;
    color: #FFF;
    font-size: 1em;
    text-align: center;
    right: 0;
    bottom: 32px;
    top:auto;
    -webkit-border-top-left-radius: 8px;
    -webkit-border-bottom-left-radius: 8px;
    -moz-border-radius-topleft: 8px;
    -moz-border-radius-bottomleft: 8px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    font-weight: 500;
    opacity: 0.9;
    display: block;
    cursor: pointer;
    line-height: 24px;
}
#scroll:hover, #scroll:active {opacity: 1;}
#scroll:active {background-color: #347C1F;}
#scroll span {position: relative; top: 15px;}

/* Tabs */
.gain ul.tabs {display: inline-block; background: #184333; -webkit-border-radius: 100px; -moz-border-radius: 100px; border-radius: 100px;}
.gain ul.tabs, .gain ul.tabs li {padding: 0; margin: 0; list-style: none;}
.gain ul.tabs li {float: left;} :lang(ar) .gain ul.tabs li {float: right;}
.gain ul.tabs li a {display: inline-block; padding: 8px 20px; color: #FFF; min-width: 120px; text-align: center; box-sizing: border-box; font-size: 0.9em; -webkit-border-radius: 100px; -moz-border-radius: 100px; border-radius: 100px; font-weight: normal;}
.gain ul.tabs li a:hover {color: #FFF;}
.gain ul.tabs li a:active {color: #FFF;}
.gain ul.tabs li a.active {
    background: rgb(255,198,86);
    background: -moz-linear-gradient(180deg, rgba(255,198,86,1) 0%, rgba(247,166,48,1) 100%);
    background: -webkit-linear-gradient(180deg, rgba(255,198,86,1) 0%, rgba(247,166,48,1) 100%);
    background: linear-gradient(180deg, rgba(255,198,86,1) 0%, rgba(247,166,48,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffc656",endColorstr="#f7a630",GradientType=1);
    color: #A7231C;
    cursor: default;
    font-weight: bold;
}
.gain div.section div.inactive {display: none;}
.gain div.section {box-sizing: border-box;}

/* Tally */
.gain .tally {padding: 6px 24px; display: inline-block; font-size: 0.9em; border: 1px solid #6DC396; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px;}

/* Rules */
a#rules {position: fixed; z-index: 9999; right: 0; top: 50px;}
a#rules img {width: auto; height: 44px;}

.gain .weui-media-box__desc {text-overflow: inherit; overflow: visible;}

/* EN */
:lang(en) .gain .note span {display: none;}
:lang(en) .gain .note:after {content: 'Code copied'; text-transform: uppercase;}

/* VN */
:lang(en) .gain .note span {display: none;}
:lang(en) .gain .note:after {content: 'Đã sao chép mã lời mời'; text-transform: uppercase;}

/* AR */
:lang(ar) body {direction: rtl;}
:lang(ar) .gain .note span {display: none;}
:lang(ar) .gain .note:after {content: 'تم نسخ رمز الدعوة'; text-transform: uppercase;}
:lang(ar) .right {float: left;}
:lang(ar) .weui-media-box_appmsg .weui-media-box__hd {
    margin-right: auto;
    margin-left: 0.8em;
}
:lang(ar) .referral--cols div.add-line:first-child::after {
    right: auto;
    left: -5%;
}
:lang(ar) .gain .bound .myAvatar img {
    left: auto;
    right: 50%;
    -webkit-transform: translateX(50%);
    -moz-transform: translateX(50%);
    transform: translateX(50%);
}
:lang(ar) .gain .rules {
    right: auto;
    left: 0;
}
:lang(ar) .gain #back img {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}
:lang(ar) .gain #back {
    left: auto;
    right: 40px;
}
	
@media all and (max-width: 600px) {
	body {background-color: #66A28D; font-size: 16px;}
    .gain.wrapper {width: 100%; overflow: hidden;}
    .gain .code {padding: 24px 40px 20px; width: 84%; bottom: 24px;}
    .gain .green-panel .page-hd__24 {padding: 16px;}
    .gain .green-panel .weui-media-box {padding: 12px 8px;}
    .gain .bound .myAvatar img {width: 44px; margin: 4px 0;}
    .gain .rules img {width: auto; height: 30px;}
    .gain .rules {top: 220px;}
    .gain .bound {padding: 8px 40px;}
    .gain .code p {font-size: 0.84em;}
    .weui-media-box_appmsg .weui-media-box__hd {width: 44px; height: 44px;}
    .gain #back img {width: 30px; height: auto;}
    .gain.rules .boxed-frame .inner {min-height: 500px;}
    .gain ul.tabs li a {padding: 5px 13px; min-width: 80px; font-size: 0.84em;}
    .gain .tally {padding: 4px 16px; font-size: 0.84em;}
}

/* iPhone 5 */
@media all and (max-width: 320px) {.gain .tab button {width: auto; padding: 4px 16px;} body {background-color: #66A28D; font-size: 15px;}
}
/* iPhone 8, etc */
@media only screen and (device-width : 375px) and (device-height : 667px) and (-webkit-device-pixel-ratio : 2) {}
/* iPhone 8+, etc / iPhone X, etc */	
@media only screen and (device-width : 375px) and (device-height : 812px) and (-webkit-device-pixel-ratio : 3),
only screen and (device-width : 414px) and (device-height : 736px) and (-webkit-device-pixel-ratio : 3) {}