* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #f6f8fa;
    color: #2d3748;
    min-height: 100vh;
    padding-top: 70px;
}

/* ================= NAVBAR ================= */

.navbar{
    background:#fff;
    box-shadow:0 2px 10px rgba(0,0,0,0.06);
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:9999;
}

.nav-container{
    max-width:1200px;
    margin:0 auto;
    padding:0 18px;
    height:60px;
    display:flex;
    align-items:center;
}

/* Logo */

.logo{
    font-size:22px;
    font-weight:700;
    color:#3182ce;
    text-decoration:none;
    white-space:nowrap;
}

/* 导航 */

.nav-menu{
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:22px;
}

.nav-menu a{
    text-decoration:none;
    color:#2d3748;
    font-weight:500;
    font-size:15px;
    transition:.2s;
    white-space:nowrap;
}

.nav-menu a:hover,
.nav-menu a.active{
    color:#3182ce;
}

/* 手机按钮 */

.menu-toggle{
    display:none;
    margin-left:auto;
    font-size:28px;
    cursor:pointer;
    color:#2d3748;
}

/* ================= MOBILE ================= */

@media (max-width: 900px){

    .menu-toggle{
        display:block;
    }

    .nav-menu{

        position:absolute;
        top:60px;
        left:0;

        width:100%;

        background:#fff;

        flex-direction:column;
        align-items:flex-start;

        gap:0;

        padding:12px 0;

        box-shadow:0 8px 20px rgba(0,0,0,0.08);

        display:none;
    }

    .nav-menu.show{
        display:flex;
    }

    .nav-menu a{
        width:100%;
        padding:14px 22px;
        font-size:16px;
        border-bottom:1px solid #f1f5f9;
    }

    .user-dropdown,
    .contact-wrap{
        width:100%;
    }

    .user-avatar,
    .contact-btn{
        margin-left:22px;
        margin-top:10px;
    }

    .dropdown-menu,
    .contact-drop{
        position:relative;
        top:auto;
        right:auto;
        width:calc(100% - 30px);
        margin:10px 15px;
        box-shadow:none;
        border:1px solid #edf2f7;
    }

}

.user-btn {
    color: #2d3748;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}
.user-btn:hover {
    color: #3182ce;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px 40px;
}

/* ================= CONTACT TOP ================= */
.contact-top{

    background:rgba(37,99,235,0.08);

    backdrop-filter:blur(12px);

    border:1px solid rgba(37,99,235,0.12);

    border-radius:22px;

    padding:22px 28px;

    margin-bottom:30px;

    display:flex;

    justify-content:flex-start;

    align-items:center;   /* 改这里 */

    gap:20px;

    flex-wrap:wrap;

    color:#1e293b;

    box-shadow:0 8px 24px rgba(37,99,235,0.08);
}

.contact-top-left{
    display:flex;
    flex-direction:column;

    max-width:620px;

    flex-shrink:0;
}

.contact-top-title{
    font-size:22px;
    font-weight:700;
    margin-bottom:6px;
}

.contact-top-desc{
    font-size:14px;
    opacity:0.85;
    line-height:1.8;
}

.contact-links{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
}

.contact-top-btn{
    background:rgba(255,255,255,0.75);
    border:1px solid rgba(37,99,235,0.12);
    color:#1e293b;
    text-decoration:none;
    padding:12px 18px;
    border-radius:14px;
    font-weight:600;
    transition:0.25s;
    backdrop-filter:blur(10px);
    box-shadow:0 4px 12px rgba(37,99,235,0.08);
}

.contact-top-btn:hover{
    transform:translateY(-2px);
    background:white;
    border-color:rgba(37,99,235,0.25);
    box-shadow:0 8px 18px rgba(37,99,235,0.12);
}

/* ================= RIGHT IMAGES ================= */

.contact-top-images{

    display:flex;

    gap:14px;

    align-self:stretch;

    flex-shrink:0;

    margin-left:10px;
}

.contact-top-images img{

    height:100%;

    width:auto;

    max-width:160px;

    object-fit:cover;

    border-radius:18px;

    box-shadow:0 8px 20px rgba(0,0,0,0.10);

    transition:0.25s;

    background:white;

    display:block;
}

.contact-top-images img:hover{
    transform:translateY(-4px);
}

/* 左侧整体 */

.contact-main{

    display:flex;

    align-items:flex-start;

    gap:18px;

    flex:1;   /* 新增 */
}

.contact-top-right{

    margin-left:auto;

    display:flex;

    flex-direction:column;

    flex-shrink:0;

    width:260px;

    height:100%;      /* 新增 */
}

/* ================= TELEGRAM STEPS ================= */

.telegram-steps{

    display:flex;

    flex-direction:column;

    gap:8px;

    margin-top:10px;

    flex:1;

    justify-content:space-between;
}

.step-item{

    display:flex;

    align-items:center;

    gap:6px;

    background:rgba(255,255,255,0.78);

    border:1px solid rgba(37,99,235,0.12);

    border-left:4px solid #2563eb;

    border-radius:14px;

    padding:10px 14px;

    min-width:20px;

    backdrop-filter:blur(8px);

    box-shadow:0 4px 10px rgba(0,0,0,0.04);

    transition:0.2s;
}

.step-item:hover{

    background:white;

    transform:translateX(2px);
}

.step-num{

    width:24px;

    height:24px;

    border-radius:50%;

    background:#2563eb;

    color:white;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:13px;

    font-weight:700;

    flex-shrink:0;
}

.step-text{

    font-size:13px;

    font-weight:600;

    color:#334155;
}

.step-arrow{

    font-size:13px;

    color:#94a3b8;

    line-height:1;
}


.step-icon{

    width:24px;

    height:24px;

    border-radius:50%;

    background:rgba(37,99,235,0.10);

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:13px;

    flex-shrink:0;
}

/* 手机端 */

@media(max-width:768px){

    .contact-top{
        flex-direction:column;
        align-items:flex-start;
    }

    .contact-top-images{
        width:100%;
        justify-content:center;
        margin-top:10px;
    }

    .contact-top-images img{
        width:42%;
        max-width:170px;
    }

    .contact-main{
        flex-direction:column;
        width:100%;
    }

    .contact-top-right{
        width:100%;
        margin-left:0;
        justify-content:center;
    }

    .telegram-steps{
        width:100%;
    }

    .step-item{
        text-align:center;
    }

}

@media(max-width:768px){

    .contact-top{
        padding:20px;
    }

    .contact-top-title{
        font-size:20px;
    }

    .contact-top-desc{
        font-size:13px;
    }

}

.disclaimer {
    max-width: 1200px;
    margin: 40px auto 30px;
    padding: 0 20px;
    font-size: 12px;
    color: #718096;
    text-align: center;
    line-height: 1.6;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
}

.block-title {
    font-size: 17px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.header h1 {
    font-size: 26px;
    color: #1a202c;
    font-weight: 600;
}

#refresh-btn {
    padding: 10px 18px;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

#refresh-btn:hover {
    background: #2b6cb0;
}

.symbol-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 10px;
    margin-bottom: 30px;
}

.symbol-btn {
    padding: 9px 6px;
    background: #fff;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    text-align: center;
    transition: 0.2s;
}

.symbol-btn.active {
    background: #3182ce;
    color: #fff;
    border-color: #3182ce;
}

.symbol-btn:hover:not(.active) {
    border-color: #3182ce;
    background: #f0f7ff;
}

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 10px;
}
.rank-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border: 2px solid transparent;
}
.rank-item.active-card {
    background: #f0f7ff;
    border-color: #3182ce;
    box-shadow: 0 4px 14px rgba(49,130,206,0.2);
}
.rank-item:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.rank-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rank-symbol {
    font-weight: 700;
    font-size: 15px;
    color: #1a202c;
}
.rank-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}
.rank-type.bullish {
    background: #e6f7ef;
    color: #047857;
}
.rank-type.bearish {
    background: #fee2e2;
    color: #b91c1c;
}

.rank-max-prob {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
}
.prob-green {
    color: #047857;
}
.prob-red {
    color: #b91c1c;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.panel-tf-bar {
    display: flex;
    gap: 8px;
}

.panel-tf-btn {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: 0.2s;
}
.panel-tf-btn.active {
    background: #3182ce;
    color: #fff;
    border-color: #3182ce;
}

.tf-arrow {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    display: inline-block;
    margin-left: 2px;
    vertical-align: middle;
}

.tf-arrow.up {
    color: #22c55e;
}

.tf-arrow.down {
    color: #ef4444;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    position: relative;
    min-height: 150px;
}

.vip-lock-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.85);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 16px;
    font-weight: 600;
    z-index: 10;
    cursor: pointer;
    backdrop-filter: blur(4px);
    padding: 10px;
    text-align: center;
    gap: 8px;
}
.vip-lock-icon {
    font-size: 30px;
    color: #f59e0b;
}
.vip-lock-text {
    color: #f59e0b;
    margin-top: 4px;
}

.vip-signal-bg,
.vip-rank-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /*object-fit: cover;*/
    z-index: 1;
    opacity: 0.4;
    display: none;
}

.panel-content {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.chart-container {
    flex: 1;
    max-width: 700px;
    width: 100%;
    height: 360px;
    border-radius: 10px;
    border: 1px dashed #cbd5e0;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.chart-container .real-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /*object-fit: cover;*/
    display: none;
}

.chart-container.placeholder::after {
    content: "No Signal Chart Available";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: #94a3b8;
}

.panel-info {
    width: 260px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.info-row {
    margin: 16px 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.label {
    color: #64748b;
    font-weight: 500;
    display: inline-block;
    width: 110px;
}

.value {
    font-weight: 600;
    color: #1e293b;
    display: inline-block;
    flex: 1;
    white-space: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
}

.bull { color: #38a169; }
.bear { color: #e53e3e; }
.active { color: #38a169; }
.closed { color: #999; }

.img-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}
.img-modal.active {
    display: flex;
}
.img-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}
.img-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    display: block;
}
.img-modal-close {
    position: absolute;
    top: -16px;
    right: -16px;
    background: #fff;
    color: #000;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.value::-webkit-scrollbar {
    height: 3px;
}
.value::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.user-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #3182ce;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}
.user-avatar:hover {
    background: #2b6cb0;
}
.dropdown-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    min-width: 180px;
    padding: 6px 0;
    display: none;
    z-index: 9999;
}
.dropdown-menu.show {
    display: block;
}
.user-email {
    padding: 8px 16px;
    font-size: 13px;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
    word-break: break-all;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.user-email:hover {
    background: #f8fafc;
}
.copy-tip {
    font-size: 12px;
    color: #10b98e;
    margin-left: 8px;
    display: none;
}
.logout-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    color: #e53e3e !important;
    font-weight: 500;
    text-decoration: none !important;
    font-size: 14px;
}
.logout-item:hover {
    background: #fef2f2;
}

.contact-wrap {
    position: relative;
    display: inline-block;
}
.contact-btn {
    color: #2d3748;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
}
.contact-btn:hover {
    color: #3182ce;
    font-weight: 600;
}
.contact-drop {
    position: absolute;
    top: 110%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    min-width: 220px;
    padding: 12px 16px;
    display: none;
    z-index: 9999;
}
.contact-drop.show {
    display: block;
}
.contact-line {
    padding: 8px 0;
    font-size: 14px;
}
.contact-line strong {
    color: #3182ce;
    display: inline-block;
    min-width: 60px;
}
.copy-text {
    cursor: pointer;
    color: #2d3748;
}
.copy-text:hover {
    color: #3182ce;
    text-decoration: underline;
}
.contact-copy-tip {
    font-size: 12px;
    color: #10b98e;
    margin-left: 8px;
    display: none;
}

.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.modal-box {
    background: #fff;
    width: 90%;
    max-width: 420px;
    border-radius: 18px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-icon {
    font-size: 50px;
    margin-bottom: 15px;
}
.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
}
.modal-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 25px;
}
.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.modal-btn {
    padding: 13px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}
.modal-btn.cancel {
    background: #f1f5f9;
    color: #64748b;
}
.modal-btn.cancel:hover {
    background: #e2e8f0;
}
.modal-btn.get-vip {
    background: linear-gradient(90deg, #ff8a00, #ff5a00);
    color: #fff;
}

.mt4-time {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    white-space: nowrap;
    margin-left: auto;   /* 推到最右侧 */
    margin-right: 12px;  /* 紧贴刷新按钮左边 */
    /* 关键：等宽字体，永远不晃动 */
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-variant-numeric: tabular-nums;
    
}

#vol_chart {
    height: 220px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e0;
    border-radius: 10px;
    overflow: hidden;
}

@media (max-width: 768px){

.symbol-grid{
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px){

    .panel-content{
        flex-direction: column;
    }

    .panel-info{
        width: 100%;
    }

    .chart-container{
        height: 52vw;
        max-height: 260px;
        min-height: 180px;
    }
}

@media (max-width: 768px){

    .panel-head{
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .panel-tf-bar{
        flex-wrap: wrap;
    }

    .panel-tf-btn{
        flex: 1;
        min-width: 60px;
    }
}

@media (max-width: 768px){

    .header{
        flex-direction: column;
        align-items: stretch;
    }

    .mt4-time{
        margin: 0;
        text-align: center;
    }

    #refresh-btn{
        width: 100%;
    }
}

@media (max-width: 768px){

    .ranking-grid{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px){

    .modal-box{
        padding: 24px 18px;
    }

    .modal-buttons{
        flex-direction: column;
    }

    .modal-btn{
        width: 100%;
    }
}

@media (max-width:900px){

    .mt4-time{
        margin-left:0;
    }

}

html, body{
    overflow-x: hidden;
}