/* Reset dan base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f0f2f5;
    color: #333;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.hero-background {
    position: absolute;
    top: 60px;
    /* start exactly under the header */
    left: 0;
    width: 100%;
    height: 310px;
    background: #1c2536;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    z-index: 0;
}

html {
    width: 100%;
    overflow-x: hidden;
}

/* Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 10;
    padding: 80px 20px 20px;
    transition: all 0.3s ease;
}

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #1c2536;
    color: white;
    box-shadow: none;
    z-index: 900;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    gap: 15px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-logo {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.header-domain {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1px;
    white-space: nowrap;
    pointer-events: none;
    text-transform: lowercase;
    background: linear-gradient(135deg, #FFD700 0%, #FFF 50%, #FFD700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

@media (max-width: 480px) {
    .header-domain {
        font-size: 1.05rem;
        letter-spacing: 0.5px;
    }
}

/* Hamburger Button */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    /* Hidden by default */
    width: 280px;
    height: 100%;
    background: #ffffff;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    background: #191970;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
}

.close-sidebar {
    cursor: pointer;
    font-size: 1.5rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.close-sidebar:hover,
.close-sidebar:active {
    color: #ef4444;
    transform: scale(1.1);
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu li {
    padding: 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.sidebar-menu a img {
    width: 24px;
    height: 24px;
}

.sidebar-menu a:hover {
    background: #f1f5f9;
    color: #191970;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block;
}

/* Modal Body */
.modal-body {
    padding: 10px 0;
    color: #4b5563;
    line-height: 1.6;
}

.about-content {
    text-align: center;
    padding: 20px 10px;
}

.about-icon-section {
    margin-bottom: 20px;
}

.about-logo-large {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.about-description {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #1e293b;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #334155;
}

.feature-icon {
    font-size: 1.4rem;
}

.contact-content {
    text-align: center;
    padding: 20px 10px;
}

.contact-logo-section {
    margin-bottom: 20px;
}

.contact-web-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.contact-intro {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 25px;
}

.contact-methods {
    display: flex;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    width: 100%;
    max-width: 350px;
}

.contact-item.no-click {
    cursor: default;
}


.contact-icon-img {
    width: 32px;
    height: 32px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.contact-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.contact-value {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 700;
}


/* Header */
h1 {
    color: #ffffff;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin: 0 auto 1.5rem;
    padding: 15px 30px;
    display: table;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(30, 60, 114, 0.4);
    clear: both;
}

/* Dashboard Styles */
.hero-section {
    text-align: center;
    margin-bottom: 25px;
    color: white;
    padding-top: 20px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-icon-wrapper {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: white !important;
    margin: 0 0 8px !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    text-align: center !important;
    display: block !important;
    border-radius: 0 !important;
}

.hero-section p {
    font-size: 0.95rem;
    color: #94a3b8;
    margin: 0;
    font-weight: 500;
}

/* List View Grid */
.dashboard-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 10;
    padding: 0;
}

.list-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    text-decoration: none;
    min-height: 120px;
}

.list-card:not(.featured-card) {
    cursor: pointer;
}

.featured-card {
    padding: 35px 30px;
    min-height: 140px;
    border-width: 2px !important;
}

.border-emas {
    border-color: #1c2536 !important;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15), 0 4px 15px rgba(0, 0, 0, 0.05);
}

.border-emas:hover {
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.25);
    background: #e0efff;
}

.border-usdt {
    border-color: #1c2536 !important;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.15), 0 4px 15px rgba(0, 0, 0, 0.05);
}

.border-usdt:hover {
    box-shadow: 0 15px 35px rgba(34, 197, 94, 0.25);
    background: #dcfce7;
}

.border-btc {
    border-color: #1c2536 !important;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.15), 0 4px 15px rgba(0, 0, 0, 0.05);
}

.border-btc:hover {
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.25);
    background: #ffedd5;
}

/* BBCA Stock Styles */
.border-bbca {
    border-color: #1c2536 !important;
    box-shadow: 0 10px 25px rgba(0, 85, 150, 0.15), 0 4px 15px rgba(0, 0, 0, 0.05);
}

.border-bbca:hover {
    box-shadow: 0 15px 35px rgba(0, 85, 150, 0.25);
    background: #e0f2ff;
}

.list-icon.bg-blue-bca {
    box-shadow: 0 10px 25px rgba(0, 85, 150, 0.2);
    background: #1c2536 !important;
}

.featured-card .card-content h3 {
    font-size: 1.4rem;
}

.featured-card .card-price {
    font-size: 1.1rem;
    color: #111827;
}

.list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    background: #e9f0f7;
}

.list-icon {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.list-icon.bg-blue {
    background: #1c2536;
}

.list-icon.bg-green {
    background: #1c2536;
}

.list-icon.bg-orange {
    background: #1c2536;
}

.list-icon img {
    width: 32px;
    height: 32px;
}

.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.card-content h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.card-price {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0 0 6px 0;
    font-weight: 500;
}

.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    width: max-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-tag::before {
    content: "•";
    font-size: 1rem;
    line-height: 0.7;
}

.tag-blue {
    color: #3b82f6;
}

.tag-blue .up,
.tag-blue .down {
    color: #3b82f6 !important;
}

.tag-green {
    color: #22c55e;
}

.tag-green .up,
.tag-green .down {
    color: #22c55e !important;
}

.tag-gray {
    color: #9ca3af;
}

.tag-gray .up,
.tag-gray .down {
    color: #9ca3af !important;
}

.card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    cursor: pointer;
    height: 100%;
    margin: -30px -25px -30px 0;
    /* Align with card boundaries */
    border-left: 2px solid #e5e7eb;
    transition: background 0.2s;
    width: 50px;
}

.featured-card .card-arrow {
    margin: -35px -30px -35px 0;
    width: 60px;
}

.card-arrow:hover {
    background: rgba(0, 0, 0, 0.05);
}

.card-change.up {
    color: #22c55e;
}

.card-change.down {
    color: #ef4444;
}

/* LIVE Badge */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    padding: 3px 8px;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    height: fit-content;
}

.live-dot-anim {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 4px #22c55e;
    animation: live-pulse 2s infinite ease-in-out;
}

@keyframes live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(74, 222, 128, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

/* Sidebar Active State Improvements */
.sidebar-menu li a.active {
    background: #f1f5f9;
    color: #191970;
    border-left: 5px solid #191970;
}

/* Judul aset + icon dalam tabel */
.table-header-row th {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 15px;
    border-radius: 12px 12px 0 0;
}

.asset-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding-left: 10px;
}

.asset-title img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.asset-title h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

h2 {
    color: #000;
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
}

/* Tabel responsif */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #191970;
    border-radius: 12px;
    overflow: hidden;
}

th,
td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid #2a2a6e;
    border-right: 1px solid #2a2a6e;
    white-space: nowrap;
    font-size: 0.9rem;
}

th:last-child,
td:last-child {
    border-right: none;
}

th {
    background: #191970;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.4px;
}

td {
    color: #e2e8f0;
}

tr:hover {
    background: #00008B;
}

/* Efek harga */
.up {
    color: #22c55e;
    font-weight: 700;
}

.down {
    color: #ef4444;
    font-weight: 700;
}

/* Tombol Selengkapnya (pojok kiri bawah) */
.btn-more {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3);
    min-width: 140px;
}

.btn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(34, 197, 94, 0.45);
}

/* tfoot */
tfoot td {
    border-top: 2px solid #2a2a6e;
    background: rgba(34, 197, 94, 0.08);
    text-align: left;
    padding: 16px 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    z-index: 1000;
    align-items: flex-start;
    justify-content: center;
    backdrop-filter: blur(6px);
    padding-top: 50px;
    overflow-y: auto;
}

.modal-box {
    background: #ffffff;
    width: 95%;
    max-width: 1100px;
    max-height: 85vh;
    margin: 0 auto 50px;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.modal-header h3 {
    font-size: 1.35rem;
    color: #000;
    margin: 0;
}

.close {
    font-size: 1.8rem;
    color: #666;
    cursor: pointer;
    padding: 8px;
}

.close:hover {
    color: #ef4444;
}

/* Modal Crypto */
#modal .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0;
}

#modal table {
    width: 100%;
}

#modal th,
#modal td {
    padding: 10px 8px;
    font-size: 0.9rem;
}

/* Input pencarian crypto */
#modal #search {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 2px solid #334155;
    border-radius: 10px;
    font-size: 1.1rem;
    background: #ffffff;
    color: #000;
}

#modal #search::placeholder {
    color: #6b7280;
    font-size: 1rem;
}

#modal #search:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

/* Modal Chart */
.emas-chart-modal {
    background: #ffffff;
    color: #1f2937;
    max-width: 1400px;
}

.emas-chart-modal h3 {
    color: #1e293b;
}

#emas-time,
#usdt-time {
    font-size: 1rem;
    color: #4b5563;
    margin-top: 4px;
    font-family: monospace;
    background: rgba(75, 85, 99, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

/* Chart Controls */
.chart-controls,
.timeframe-buttons {
    text-align: center;
    margin: 12px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.tf-btn {
    padding: 8px 14px;
    background: #334155;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s;
    font-size: 0.9rem;
    flex: 1 1 auto;
    min-width: 80px;
}

.tf-btn:hover {
    background: #475569;
}

.tf-btn.active {
    background: #22c55e;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.4);
}

.tf-btn.reset-zoom {
    background: #ef4444;
}

.tf-btn.reset-zoom:hover {
    background: #dc2626;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
}

@media (min-width: 769px) {
    .mobile-zoom-controls {
        display: none;
    }
}

.chart-container {
    position: relative;
    height: 380px;
    width: 100%;
    overflow-x: auto;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
}

#emasChart,
#usdtChart {
    width: 100% !important;
    height: 100% !important;
    touch-action: none;
}

/* ===== GOLD PRICE PAGE (harga-jual-dan-beli.php) ===== */
.gold-section {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
    margin: 0 auto 30px;
    max-width: 900px;
    overflow: hidden;
}

.gold-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 22px 28px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.galeri24-header {
    background: linear-gradient(135deg, rgba(253, 224, 71, 0.2), rgba(234, 179, 8, 0.1));
}

.antam-header {
    background: linear-gradient(135deg, rgba(167, 243, 208, 0.25), rgba(16, 185, 129, 0.1));
}

.gold-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gold-brand img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gold-brand h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    background: none;
    -webkit-text-fill-color: unset;
}

.gold-subtitle {
    font-size: 0.82rem;
    color: #64748b;
    margin: 2px 0 0;
}

.gold-subtitle a {
    color: #2563eb;
    text-decoration: none;
}

.gold-subtitle a:hover {
    text-decoration: underline;
}

.gold-update-date {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    text-align: right;
}

.cache-info {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

.gold-table-container {
    overflow-x: auto;
}

.gold-table {
    width: 100%;
    border-collapse: collapse;
}

.gold-table thead tr {
    background: linear-gradient(135deg, #1e293b, #334155);
}

.gold-table thead th {
    padding: 14px 20px;
    text-align: center;
    color: #f1f5f9;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gold-table thead th:first-child {
    text-align: left;
}

.gold-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease;
}

.gold-table tbody tr:hover {
    background: rgba(253, 224, 71, 0.1);
}

.gold-table tbody tr:last-child {
    border-bottom: none;
}

.gold-table td {
    padding: 14px 20px;
    text-align: center;
    color: #1e293b;
    font-size: 0.95rem;
}

.weight-cell {
    text-align: left !important;
    font-weight: 700;
    color: #475569 !important;
}

.price-sell {
    color: #059669 !important;
    font-weight: 700;
}

.price-buyback {
    color: #dc2626 !important;
    font-weight: 600;
}

.gold-error {
    padding: 24px;
    text-align: center;
    color: #dc2626;
    font-weight: 600;
    background: #fef2f2;
}

.gold-unavailable {
    padding: 40px 28px;
    text-align: center;
    color: #64748b;
}

.unavailable-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.gold-unavailable h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
}

.gold-unavailable p {
    font-size: 0.92rem;
    color: #64748b;
    margin: 6px 0 16px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.gold-unavailable .note {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 12px;
}

.external-link-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.92rem;
    margin: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}

.external-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.4);
}

.external-link-btn.secondary {
    background: linear-gradient(135deg, #047857, #059669);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.external-link-btn.secondary:hover {
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.4);
}

.refresh-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.88rem;
    color: #64748b;
}

.refresh-btn {
    padding: 10px 22px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(30, 60, 114, 0.35);
}

/* Footer */
footer {
    margin-top: 60px;
    padding: 30px 15px;
    background: #0f172a;
    border-top: 1px solid #334155;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

footer a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    color: #22c55e;
}

/* Responsif Mobile */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    h1 {
        font-size: 1.8rem;
        padding: 12px 20px;
    }

    h2 {
        font-size: 1.4rem;
    }

    h4 {
        font-size: 0.9rem;
        padding: 6px 16px;
    }

    .asset-header {
        gap: 8px;
        margin: 1.5rem 0 0.8rem;
    }

    .asset-header img {
        width: 32px;
        height: 32px;
    }

    th,
    td {
        padding: 10px 6px;
        font-size: 0.85rem;
    }

    .btn-more {
        padding: 10px 18px;
        font-size: 0.9rem;
        min-width: 140px;
    }

    .tf-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        margin: 4px;
        min-width: 70px;
    }

    .zoom-btn {
        padding: 10px 18px;
        font-size: 0.95rem;
        min-width: 100px;
    }

    .chart-container {
        height: 320px;
    }

    .modal-box {
        padding: 12px;
        margin: 10px;
    }

    #modal #search {
        padding: 12px 14px;
        font-size: 1rem;
    }

    #modal th,
    #modal td {
        font-size: 0.85rem;
        padding: 8px 6px;
    }
}

/* Dashboard Toggle Section */
.toggle-section {
    max-width: 1200px;
    margin: 20px auto 40px;
    padding: 0 10px;
    text-align: center;
}

.dash-toggle-btn {
    background: #1e3c72;
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.4);
    margin: 10px 0;
}

.dash-toggle-btn:hover {
    transform: translateY(-2px);
    background: #2a5298;
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.5);
}

.dash-toggle-btn.active {
    background: #ef4444;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.toggle-icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

.dash-toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

.top100-dashboard-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease;
    opacity: 0;
    margin-top: 20px;
}

.top100-dashboard-wrap.active {
    max-height: 5000px;
    opacity: 1;
}

.dashboard-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 25px;
    padding: 10px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-grid-cards .dashboard-card {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

/* Specific media queries for top 10 area if needed, otherwise matches main grid */
@media (max-width: 768px) {
    .dashboard-grid-cards {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 10px 20px 25px;
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
    }

    .dashboard-grid-cards::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .dashboard-grid-cards .dashboard-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        margin: 0;
    }
}

.card-more-info {
    border-style: dashed !important;
    border-color: #cbd5e1 !important;
    background: #f8fafc;
}

.card-more-info:hover {
    background: #e2e8f0 !important;
}