/*******************************************************
 * GLOBAL BASE — PURE BLACK THEME
 *******************************************************/
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: #000 !important;
    color: #fff;
    font-family: Arial, sans-serif;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/*******************************************************
 * HEADER — FIXED TOP BAR
 *******************************************************/
.da-header {
    width: 100%;
    background: #000;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 9999;
    border-bottom: 2px solid #111;
}

.da-menu-btn {
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 15px;
}

.da-menu-btn div {
    width: 28px;
    height: 3px;
    background: #FFA500;
    margin: 4px 0;
    border-radius: 12px;
}

.da-logo {
    width: 48px;
    height: 48px;
    margin-right: 15px;
}

.da-title {
    font-size: 28px;
    font-weight: 700;
    color: #FFA500;
    margin-right: auto;
}

/*******************************************************
 * SLIDE OUT MENU PANEL
 *******************************************************/
.da-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #111;
    padding: 30px 20px;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.6);
    transform: translateX(-100%);
    transition: transform .3s ease;
    z-index: 10000;
    color: #FFA500;

    /* Prevent blocking page when closed */
    pointer-events: none;
}

.da-menu-panel.open {
    transform: translateX(0);
    pointer-events: auto;
}

/*******************************************************
 * UI WRAPPER (TICKER INPUT + TOGGLES)
 *******************************************************/
.da-ui-wrapper {
    width: 100%;
    padding: 20px;
    color: #FFA500;
}

.da-ticker-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.da-ticker-input {
    width: 160px;
    padding: 12px 15px;
    background: #111;
    border: 2px solid #FFA500;
    color: #FFA500;
    font-size: 18px;
    border-radius: 12px;
}

.da-change-btn {
    background: #FFA500;
    color: #000;
    border: none;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
}

/*******************************************************
 * ROUND TOGGLE BUTTONS
 *******************************************************/
.da-toggle-btn,
.da-unit-btn {
    padding: 10px 18px;
    margin: 0 6px;
    border-radius: 30px;
    border: 2px solid #FFA500;
    background: #111;
    color: #FFA500;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all .20s ease;
}

.da-toggle-btn:hover,
.da-unit-btn:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
}

.da-toggle-btn.active,
.da-unit-btn.active {
    background: #FFA500 !important;
    color: #000 !important;
    border-color: #FFA500;
}

/*******************************************************
 * UNITS LABEL
 *******************************************************/
.da-units-label {
    font-size: 16px;
    font-weight: 700;
    color: #FFA500;
    margin-right: 6px;
    padding-top: 12px;
}

/*******************************************************
 * TABLE SECTIONS
 *******************************************************/
.da-table-section {
    width: 95%;
    margin: 30px auto;
}

.da-table-title {
    color: #FFA500;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

/*******************************************************
 * TABLE SCROLL WRAPPER
 *******************************************************/
.da-table-scroll {
    width: 100%;
    overflow-x: auto;
    background: #000;
    padding: 10px;
    border-radius: 12px;
}

/*******************************************************
 * TABLE ITSELF
 *******************************************************/
.da-table {
    width: 100%;
    border-collapse: collapse;
    color: #FFA500;
    font-size: 15px;
}

/*******************************************************
 * HEADER ROW
 *******************************************************/
.da-header-row {
    background: #111;
}

.da-header-cell {
    padding: 10px 8px;
    font-weight: 700;
    border-bottom: 2px solid #222;
    text-align: center;
}

/*******************************************************
 * STICKY METRIC COLUMN
 *******************************************************/
.metric-head.sticky-col,
.metric-label.sticky-col {
    position: sticky;
    left: 0;
    background: #000;
    z-index: 5;
}

/*******************************************************
 * METRIC LABELS
 *******************************************************/
.metric-label {
    font-weight: bold;
    padding: 8px;
    border-right: 2px solid #222;
    white-space: nowrap;
}

/*******************************************************
 * TABLE CELLS
 *******************************************************/
.da-table td {
    padding: 8px 8px;
    border-bottom: 1px solid #111;
    text-align: right;
}

.da-table td:first-child {
    text-align: left;
}

/*******************************************************
 * VALUE COLORS
 *******************************************************/
.da-pos { color: #5cff5c; }
.da-neg { color: #ff5c5c; }

/*******************************************************
 * RESPONSIVE TWEAKS
 *******************************************************/
@media (max-width: 600px) {
    .da-title { font-size: 22px; }
    .da-table-title { font-size: 20px; }
    .da-ticker-input { width: 120px; }
}