
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: linear-gradient(135deg, #1a2332 0%, #0f1923 100%);
    display: flex;
    align-items: center;
    padding: 0 var(--spacing-xl);
    z-index: 1000;
    box-shadow: var(--shadow-navbar);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.3), transparent);
}

.navbar-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px 0 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    flex-shrink: 0;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 8px rgba(212, 168, 83, 0.3);
    transition: all var(--transition-fast);
}

.navbar-brand:hover {
    color: var(--accent-light);
    text-shadow: 0 1px 12px rgba(212, 168, 83, 0.5);
}

.navbar-brand img {
    height: 56px;
    width: auto;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.3));
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2px;
}

.navbar-menu a {
    color: rgba(255, 255, 255, 0.65);
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    border-radius: var(--radius-sm);
}

.navbar-menu a i {
    font-size: 13px;
    opacity: 0.7;
}

.navbar-menu a.active i {
    opacity: 1;
}

.navbar-menu a:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.06);
}

.navbar-menu a.active {
    color: var(--accent);
    font-weight: 700;
    background: rgba(212, 168, 83, 0.08);
}

.navbar-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 1px;
}

.navbar-right-btns {
    display: none;
    align-items: center;
    gap: 6px;
}

.navbar-rate-btn,
.navbar-market-btn {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border: 1px solid rgba(212, 168, 83, 0.5);
    background: rgba(212, 168, 83, 0.12);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.navbar-rate-btn i,
.navbar-market-btn i {
    font-size: 12px;
    line-height: 1;
    position: relative;
    top: 0.5px;
}

.navbar-rate-btn:hover,
.navbar-market-btn:hover {
    background: rgba(212, 168, 83, 0.22);
    border-color: var(--accent);
}

.navbar-toggle {
    display: none;
    color: var(--accent);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.navbar-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-light);
}

/* Rate Modal / Layui Layer Theme */
.layui-layer {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
}

.layui-layer-title {
    background: linear-gradient(135deg, #8b6914, var(--accent), #e8c36a) !important;
    color: #fff !important;
    border-bottom: none !important;
    font-weight: 600 !important;
    line-height: 42px !important;
    height: 42px !important;
}

.layui-layer-title i {
    color: #fff;
}

.layui-layer-setwin {
    top: 0 !important;
    height: 42px;
    display: flex;
    align-items: center;
    right: 8px !important;
}

.layui-layer-setwin .layui-layer-close1 {
    position: static !important;
    background: none !important;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layui-layer-setwin .layui-layer-close1::before {
    content: '\f00d';
    font-family: 'Font Awesome 7 Free';
    font-weight: 900;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.layui-layer-setwin .layui-layer-close1:hover {
    background: rgba(255,255,255,0.18) !important;
}

.layui-layer-setwin .layui-layer-close1:hover::before {
    color: #fff;
}

.rate-date {
    font-size: 13px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 500;
}

.rate-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}

.rate-table tr {
    border-bottom: 1px solid #eee;
}

.rate-table td {
    padding: 10px 8px;
    font-size: 14px;
}

.rate-label {
    color: #333;
    font-weight: 500;
}

.rate-value {
    text-align: right;
    font-weight: 700;
    color: var(--accent);
}

.rate-note {
    font-size: 12px;
    color: #666;
    text-align: center;
    padding-top: 4px;
}

.rate-note i {
    color: var(--accent);
    margin-right: 4px;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1001;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: linear-gradient(180deg, #1a2332, #0f1923);
    z-index: 1002;
    transition: right var(--transition-normal);
    padding: 56px 0 16px;
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    padding: 14px 24px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--accent);
    background: rgba(212, 168, 83, 0.06);
}

.mobile-menu-close {
    position: absolute;
    top: 14px;
    right: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: color var(--transition-fast);
}

.mobile-menu-close:hover {
    color: #fff;
}

/* ============================================
   Fixed Left Category Nav
   justify-content: flex-end → icon anchored right,
   label overflows left (hidden), hover expands to reveal
   ============================================ */
.fixed-left-nav {
    position: fixed;
    left: 3px;
    top: 68px;
    width: 34px;
    height: calc(100vh - 68px);
    background: transparent;
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    gap: 2px;
    pointer-events: none;
}

.fixed-left-nav-entry {
    position: relative;
    pointer-events: auto;
    cursor: pointer;
}

.fixed-left-nav-pill {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 30px;
    max-width: 30px;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd;
    color: #555;
    white-space: nowrap;
    transition: max-width 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.15s ease,
                color 0.15s ease,
                border-color 0.15s ease;
}

.fixed-left-nav-pill i {
    width: 28px;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

/* Layui icons need size override to match FA */
.fixed-left-nav-pill i.layui-icon {
    font-size: 16px;
}

.fixed-left-nav-label {
    font-size: 12px;
    font-weight: 600;
    padding-left: 10px;
}

.fixed-left-nav-entry:hover .fixed-left-nav-pill {
    max-width: 200px;
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.fixed-left-nav-entry.active .fixed-left-nav-pill {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Flyout - outside pill so not clipped */
.fixed-left-nav-flyout {
    position: absolute;
    left: 32px;
    top: 32px;
    width: 180px;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 6px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    z-index: 1001;
    display: none;
    border: 1px solid var(--border-color);
    max-height: 280px;
    overflow-y: auto;
}

.fixed-left-nav-entry:hover .fixed-left-nav-flyout {
    display: block;
}

.fixed-left-nav-flyout-title {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px 6px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2px;
}

.fixed-left-nav-flyout a {
    display: block;
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 12px;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.fixed-left-nav-flyout a:hover {
    color: var(--accent);
    background: rgba(212, 168, 83, 0.08);
}

/* ============================================
   Main Container
   ============================================ */
.main-container {
    max-width: 1280px;
    margin: 80px auto 0;
    padding: 0 16px 0 38px;
    min-height: calc(100vh - 200px);
}


/* ============================================
   Two-Column Layout
   ============================================ */
.main-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ============================================
   Marquee Bar - Dark, Premium
   ============================================ */
.marquee-bar {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(135deg, #1e2d3e, #162231);
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 999;
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
}

.marquee-bar.active {
    display: flex;
}

.marquee-icon {
    flex-shrink: 0;
    width: 36px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 12px;
    background: rgba(212, 168, 83, 0.08);
}

.marquee-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.marquee-text {
    display: inline-block;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    line-height: 32px;
    animation: marquee-scroll 30s linear infinite;
    padding-left: 100%;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ============================================
   Footer - Rich Dark Gradient
   ============================================ */
.footer {
    background: linear-gradient(135deg, #0f1923 0%, #0a1219 50%, #0d161f 100%);
    color: rgba(255, 255, 255, 0.4);
    padding: 32px 20px;
    margin-top: 40px;
    font-size: 12px;
    text-align: center;
    line-height: 1.8;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.2), transparent);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}


/* ============================================
   Floating Contact - Right Side
   ============================================ */
.floating-contact {
    position: fixed;
    right: 8px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 997;
}

.floating-item {
    position: relative;
}

.floating-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    overflow: hidden;
}

.floating-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
    border-color: var(--accent);
}

.floating-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Tooltip (shows to the left of the button) */
.floating-tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: #2c2c2c;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
    pointer-events: none;
}

.floating-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #2c2c2c;
}

/* PC: hover shows tooltip */
.floating-item:hover .floating-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Mobile/click: active state shows tooltip */
.floating-item.active .floating-tooltip {
    opacity: 1;
    visibility: visible;
}

.floating-btn.back-top {
    background: linear-gradient(135deg, #1a2332, #0f1923);
    color: var(--accent);
    border-color: rgba(212, 168, 83, 0.2);
    font-size: 14px;
}

.floating-btn.back-top:hover {
    background: linear-gradient(135deg, #243447, #1a2332);
    box-shadow: 0 6px 20px rgba(15, 25, 35, 0.4);
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.2px;
}

.section-title i {
    color: var(--accent);
    font-size: 16px;
    filter: drop-shadow(0 1px 3px rgba(212, 168, 83, 0.3));
}

/* ============================================
   Ad Slots
   ============================================ */
.ad-text-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 12px 0;
    padding: 10px;
    background: var(--bg-sidebar);
    border-radius: var(--radius-md);
}

.ad-text-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    opacity: 0.85;
    filter: saturate(0.85);
}

.ad-text-btn:hover {
    opacity: 1;
    filter: saturate(1);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.ad-banner {
    width: 100%;
    margin: 12px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.ad-banner img {
    width: 100%;
    display: block;
}

.ad-banner a {
    display: block;
}

/* ============================================
   Sidebar Card
   ============================================ */
.sidebar-card .card-body {
    padding: 10px 14px;
}

.sidebar-card .card-header {
    padding: 10px 14px;
    font-size: 13px;
}
