@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

body{
    padding: 0;
    margin: 0 !important;
    /* gem-themed light gradient */
    background: linear-gradient(135deg, #f3e8ff 0%, #ffffff 100%);
    color: #253746;   
    font-family: 'Montserrat', 'fontm', sans-serif;
    padding-bottom: 140px;
    padding-top: 15px;
}  
img,p{
    margin: 0px;
    padding: 0px;
}  
a{
    list-style: none;
    text-decoration: none;
    color: #6d28d9;
    -webkit-tap-highlight-color:rgba(0,0,0,0);  
}

a:hover{
    color: #ec4899;
}
ul,li{
    list-style: none;
    padding: 0px;
    margin: 0px;
}   
@font-face {
	font-family: 'fontm';
	src: url(../font/Poppins-Medium.otf);
} 
@font-face {
	font-family: 'fontb';
	src: url(../font/Kanit-ExtraBold.ttf);
}
@font-face {
	font-family: 'fontl';
	src: url(../font/Kanit-Light.ttf);
}
.fontm{
    font-family: 'fontm';
}
.fontb{
    font-family: 'fontb';
}
.fontl{
    font-family: 'fontl';
}
.flex_be{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.flex_sta{
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.flex_re{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row-reverse;
}
.flex_ar{
    display: flex;
    justify-content: space-around;
}
.flex_cl{
    display: flex;
    justify-content: flex-start;
    flex-direction: column-reverse;
}
.flex_cen{
    display: flex;
    justify-content: center;
}
.marigntop1{
    margin-top: 12px;
}
.marigntop2{
    margin-top: 20px;
}
.marginbottom1{
    margin-bottom: 20px !important;
} 
.centeritem{
    width: 90%;
    height: auto; 
    margin: 80px auto 160px auto; /* space for header + footer */
}
.modaltitle{
    color: #253746;
    font-size: 14px;
    font-family: 'fontm';
    margin: 8px 0;
  }
  .smalltitle{
    color: #253746;
    font-size: 12px;
    font-family: 'fontl';
    margin-bottom: 10px;
  }
/* 底部导航 */
.footer{
    width: 100%;
    height: 120px;
    position: fixed;
    bottom: 0px;
    left: 0px;
    /* gem gradient footer */
    background: linear-gradient(to top, #6d28d9, #ec4899);
    box-sizing: border-box;
    padding: 0 15px;
    z-index: 10;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}
.footer>a{
    width: 62px;
    height: 48px;
    border-radius: 50%;
    display: block;
    margin-top: 30px;
    color: #ffffff;
    font-size: 12px;
    text-align: center;
}
.footer img{
    width: 24px;
    height: 24px;
    display: block;
    margin: auto;
    margin-top: 12px;
    filter: brightness(0) invert(1); /* force white icon */
    opacity: 1;
}
.footerhome{
    width: 76px !important;
    height: 76px !important; 
    background: #ffffff;
    box-sizing: border-box;
    border: 3px solid rgba(109,40,217,0.12);
    box-shadow: 0 14px 36px rgba(109,40,217,0.18), 0 6px 18px rgba(0,0,0,0.12);
    margin-top: -46px !important;
    border-radius: 50%;
    transform: translateY(-8px);
    transition: transform 200ms ease, box-shadow 200ms ease;
 }
.footerhome:hover{ transform: translateY(-10px) scale(1.03); box-shadow: 0 20px 46px rgba(109,40,217,0.22); }
.footerhome img{ width: 28px; height: 28px; margin-top: 18px; filter: brightness(0) invert(1); }
.foot_on{
    color: #6d28d9 !important;
}
.foot_index{
    background: linear-gradient(to bottom, #6d28d9, #ec4899);
}
.footerhome img{
    margin-top: 20px;
}
.title{
    color: #6d28d9;
    font-size: 16px;
    margin: 18px 0; 
   }
   .title img{
    width: 20px;
    height: 16px;
    margin-right: 10px;
   }
   .title h4{
    margin: 0;
    font-family: 'fontm';
   }
.nothing img{
   width: 68px;
   height: 33px;
   display: block;
   margin: auto;
}
.nothing{ 
    text-align: center;
    font-size: 12px;
    color: #A7A8AC;
    font-family: 'fontl';
    margin-top: 40px;
}
.coverbg{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0; 
    background: rgba(0, 0, 0, 0.60); 
    z-index: 15;
    display: none;
}

/* gem-themed utility classes */
.gem-button {
    background: linear-gradient(to right, #6d28d9, #ec4899);
    color: #fff;
    border-radius: 24px;
    padding: 10px 20px;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.gem-header {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(to right, #6d28d9, #ec4899);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}
.gem-header h1 {
    margin: 0;
    font-size: 18px;
    font-family: 'fontb';
}

.gem-icon{
    border-radius: 12px;
    padding: 6px 8px;
    background: rgba(255,255,255,0.1);
    transition: background 0.3s;
}
.gem-icon:hover{
    background: rgba(255,255,255,0.25);
}

/* footer labels contrast */
.footer-label{
    color: #ffffff; /* user chose white for best contrast */
    font-size: 12px;
    margin: 0;
}

/* floating contact buttons (WhatsApp / Telegram) */
.floating-contact{
    position: fixed;
    right: 18px;
    bottom: 140px; /* above footer */
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}
.floating-contact a{
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 6px 18px rgba(16,24,40,0.25);
}
.wa-btn{
    background: #25D366; /* WhatsApp green */
    background-image: linear-gradient(135deg, #25D366, #1DA851);
}
.tg-btn{
    background: #229ED9; /* Telegram blue */
    background-image: linear-gradient(135deg, #229ED9, #1B9CE6);
}
.wa-btn:after, .tg-btn:after{
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-size: 60% 60%;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.95;
}
.wa-btn:after{ background-image: url('/static/index/v1/img/whatsapp-icon.svg'); }
.tg-btn:after{ background-image: url('/static/index/v1/img/telegram-icon.svg'); }

/* default top padding to make room for header */
body{padding-top:60px;} 

/* Mobile-specific adjustments */
@media (max-width: 600px) {
    .gem-header{ padding: 8px 12px; }
    .gem-header h1{ font-size:16px; }
    body{ padding-top:48px; }
    .centeritem{ margin: 60px auto 110px auto; width:94%; }

    /* Tighten footer for mobile */
    .footer{ height:90px; padding: 0 8px; }
    .footer a{ width: 52px; height:44px; }
    .footer img{ width:20px; height:20px; margin-top:6px; }
    .footerhome{ margin-top:-28px !important; }
    .footer-label{ font-size:11px; color: #ffffff; }

    /* Buttons smaller and closer to footer */
    .buybtn, .paybtn{ height:48px; border-radius:20px; line-height:48px; bottom:22px; }

    /* Floating contact buttons smaller and positioned above footer */
    .floating-contact{ right:12px; bottom:110px; }
    .floating-contact a{ width:44px; height:44px; }
    .wa-btn:after, .tg-btn:after{ background-size:50% 50%; }

    /* Reduce large card paddings and shadows on small screens */
    .productlist li, .orderinfo{ padding:12px; box-shadow: 0 4px 10px rgba(0,0,0,0.06); }

    /* Reduce header / title spacing */
    .title{ margin: 12px 0; font-size:14px; }
    .title img{ width:16px; height:12px; }
}
.tips{ 
    width: 90%;
    text-align: center;
    height: auto; 
    border-radius: 16px; 
    box-sizing: border-box;
    padding: 16px 32px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.60);
    font-size: 16px;
    font-family: 'fontm';
    z-index: 30;
  }
  .failtips{
    border: 1px solid #F9D79E; 
    background: #FEF7EA;
  }
  .successtips{
    border: 1px solid #BCE5C6;
    background: #EBF7EE;
  } 
  .tips p{
    flex: 1;
  }
  .header{
    width: 100%;  
    margin-bottom: 10px;
 }
 .header .backpage{
    width: 24px;
    height: 24px;
    margin-right: 10px;
 }
 .header h6{
    color: #23262F;
    font-size: 16px;
    margin: 0;
 }
 .balancebox{
    color: #A7A8AC;
    font-size: 14px;
    text-align: right;
 }
 .balancebox img{
    width: 24px;
    height: 24px;
    margin-right: 5px;
 }
 .balancebox span{
    color: #6d28d9;
    font-size: 16px;
 }
 .balanceall{
    width: 100%;
    height: 100px;
    background: #ede8ff;
    border-radius: 12px;
    box-sizing: border-box;
    padding: 12px;
    text-align: center;
    font-family: 'fontl';
}
.balanceall p{
    color: #4F5159;
    font-size: 14px;
    text-align: center;
}
.balanceall h4{
    color: #6d28d9;
    font-size: 20px;
    margin: 0;
}
.balanceall .flex_cen p{
    color: #A7A8AC;
    font-size: 14px;
    line-height: 24px;
}
.balanceall .flex_cen img{
    width: 24px;
    height: 24px;
    margin-right: 5px;
}


.flex1{
    text-align: right;
}