        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: #1a1d29;
            color: #FFFFFF;
            margin: 0;
            padding: 20px;
        }

        /* Navbar */
        .navbar {
            background: #21252e;
            padding: 1rem 2rem;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            margin: -20px -20px 20px -20px;
            position: sticky;
            top: 0;
            z-index: 100;
            overflow: visible;
}

        .navbar-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1400px;
            margin: 0 auto;
        }

        .navbar-brand {
            display: flex;
            align-items: center;
            gap: 12px;
            color: white;
            text-decoration: none;
            font-size: 1.3rem;
            font-weight: 700;
        }

        .navbar-brand img {
            width: 32px;
            height: 32px;
        }
        .navbar-links {
            display: flex;
            gap: 2rem;
            align-items: center;
        }
        .navbar-actions {
            display: flex;
            align-items: center;
            gap: 30px;
        }
        .navbar-links a {
            color: #9CA3AF;
            text-decoration: none;
            transition: color 0.2s;
            font-weight: 500;
            font-size: 0.95rem;
        }
        .navbar-links > a:not(.discord-button) {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
        }
        .navbar-links > a .nav-icon {
            width: 18px;
            height: 18px;
            display: block;
            fill: currentColor;
            opacity: 0.75;
            flex-shrink: 0;
        }
        .navbar-links > a:hover .nav-icon {
            opacity: 1;
        }
        .navbar-links a:hover {
            color: #FFFFFF;
        }
        .navbar-links a.active {
            color: #5B9FED;
        }

        /* User dropdown menu */
                        .discord-button {
            display: inline-flex;
            align-items: center;
            margin-left: 50px;
            gap: 0.45rem;
            padding: 1px 0;
            border-radius: 0;
            background: transparent;
            color: #9aa7bf;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.95rem;
            letter-spacing: 0.01em;
            border: none;
            box-shadow: none;
            transition: color 0.2s ease, text-decoration-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
            white-space: nowrap;
            line-height: 1.2;
        }

        .discord-button svg {
            width: 26px;
            height: 26px;
            display: block;
            fill: currentColor;
            opacity: 0.8;
            flex-shrink: 0;
            overflow: visible;
}

        .discord-button:hover {
            color: #c9d6ee;
            text-decoration: underline;
            text-decoration-color: rgba(201, 214, 238, 0.6);
            transform: translateY(-1px);
        }

        .discord-button:hover svg {
            opacity: 1;
        }

        .discord-button:focus-visible {
            outline: 2px solid #6f93e8;
            outline-offset: 2px;
        }

        .user-dropdown {
            position: relative;
            display: inline-block;
        }

        .user-button {
            background: none;
            border: none;
            color: #9CA3AF;
            font-size: 0.95rem;
            font-weight: 500;
            cursor: pointer;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            transition: all 0.2s;
            font-family: 'Inter', sans-serif;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .user-button:hover {
            color: #FFFFFF;
            background: rgba(255, 255, 255, 0.05);
        }

        .user-button::after {
            content: '\25BC';
            font-size: 0.7rem;
            transition: transform 0.2s;
        }

        .user-dropdown.active .user-button::after {
            transform: rotate(180deg);
        }

        .dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            background: #2a2e3a;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            margin-top: 0.5rem;
            min-width: 180px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.2s;
            z-index: 1000;
        }

        .user-dropdown.active .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-menu a {
            display: flex;
            padding: 0.75rem 1rem;
            color: #9CA3AF;
            text-decoration: none;
            transition: all 0.2s;
            font-size: 0.9rem;
            align-items: center;
            gap: 0.5rem;
        }

        .dropdown-menu a:first-child {
            border-radius: 8px 8px 0 0;
        }

        .dropdown-menu a:last-child {
            border-radius: 0 0 8px 8px;
        }

        .dropdown-menu a:hover {
            background: rgba(255, 255, 255, 0.05);
            color: #FFFFFF;
        }


        .dropdown-menu a .menu-icon {
            width: 18px;
            height: 18px;
            display: block;
            fill: currentColor;
            opacity: 0.8;
            flex-shrink: 0;
        }

        .dropdown-menu a:hover .menu-icon {
            opacity: 1;
        }
        .dropdown-menu a.logout {
            color: #EF4444;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        .dropdown-menu a.logout:hover {
            background: rgba(239, 68, 68, 0.1);
        }

        /* Trial Banner */
        .trial-status-banner {
            background: linear-gradient(135deg, rgba(91, 159, 237, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
            color: #10B981;
            padding: 0.75rem;
            text-align: center;
            font-weight: 500;
            font-size: 0.95rem;
            border-radius: 8px;
            margin-bottom: 20px;
            border: 1px solid rgba(16, 185, 129, 0.2);
        }

        /* Filters */
        .profits-dropdown-container,
        .dropdown,
        .latest-buy-dropdown-container,
        .latest-sell-dropdown-container {
            display: inline-block;
            margin-right: 10px;
        }

        .profits-dropdown-button,
        .dropdown-button,
        .latest-buy-dropdown-button,
        .latest-sell-dropdown-button {
            background: #21252e;
            color: #FFFFFF;
            border: 1px solid rgba(255,255,255,0.1);
            padding: 0.5rem 1rem;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.2s;
            font-family: 'Inter', sans-serif;
        }

        .profits-dropdown-button:hover,
        .dropdown-button:hover,
        .latest-buy-dropdown-button:hover,
        .latest-sell-dropdown-button:hover {
            background: #2a2e3a;
            border-color: rgba(91, 159, 237, 0.3);
        }

        .dropdown-content {
            display: none;
            position: absolute;
            background: #21252e;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 8px;
            padding: 1rem;
            margin-top: 5px;
            z-index: 1000;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        }

        .dropdown-content label {
            color: #9CA3AF;
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
            display: block;
        }

        .margin-input,
        .time-input {
            background: #1a1d29;
            border: 1px solid rgba(255,255,255,0.1);
            color: #FFFFFF;
            padding: 0.5rem;
            border-radius: 6px;
            width: 100%;
            font-family: 'Inter', sans-serif;
        }

        .margin-input:focus,
        .time-input:focus {
            outline: none;
            border-color: #5B9FED;
        }

        select {
            background: #1a1d29;
            border: 1px solid rgba(255,255,255,0.1);
            color: #FFFFFF;
            padding: 0.5rem;
            border-radius: 6px;
            margin-top: 0.5rem;
            font-family: 'Inter', sans-serif;
        }

        .avg-price-filter-container {
            display: inline-block;
        }

        .avg-price-label {
            display: flex;
            align-items: center;
            background: #21252e;
            color: #FFFFFF;
            padding: 0.5rem 1rem;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.9rem;
            font-family: 'Inter', sans-serif;
            font-weight: 500;
            transition: all 0.2s;
        }

        .avg-price-label:hover {
            background: #2a2e3a;
            border-color: rgba(91, 159, 237, 0.3);
        }

        .avg-price-checkbox {
            cursor: pointer;
        }

        /* Search Bar */
        #searchBar {
            width: 100%;
            padding: 0.75rem 2.8rem 0.75rem 1rem;
            background: #21252e;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 8px;
            color: #FFFFFF;
            font-size: 1rem;
            margin-bottom: 0;
            font-family: 'Inter', sans-serif;
        }

        #searchBar:focus {
            outline: none;
            border-color: #5B9FED;
        }

        #searchBar::placeholder {
            color: #6B7280;
        }

        .search-input-wrap {
            position: relative;
            width: 100%;
            margin-bottom: 20px;
        }

        .search-clear-btn {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            padding: 0;
            width: 28px;
            height: 28px;
            border: none;
            border-radius: 0;
            background: transparent;
            -webkit-appearance: none;
            appearance: none;
            color: rgba(255, 255, 255, 0.8);
            font-size: 1.15rem;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: color 0.15s;
        }

        .search-clear-btn:hover,
        .search-clear-btn:active,
        .search-clear-btn:focus,
        .search-clear-btn:focus-visible {
            background: transparent;
            border: none;
            box-shadow: none;
            transform: translateY(-50%);
            color: #FFFFFF;
        }

        /* Table */
        table {
            width: 100%;
            background: #21252e;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid rgba(255,255,255,0.05);
            border-collapse: collapse;
        }

        thead {
            background: #2a2e3a;
        }

        th {
            padding: 1rem;
            text-align: left;
            color: #FFFFFF;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            white-space: nowrap;
        }

        th:first-child,
        td:first-child {
            width: 70px !important;
            max-width: 70px !important;
            min-width: 70px !important;
            padding: 0.5rem !important;
            text-align: center !important;
        }

        th:hover {
            background: #323641;
        }

        .sort-icon {
            color: #6B7280;
            margin-left: 5px;
        }

        .sort-icon.active {
            color: #FBBF24;
        }

        /* Column filter styles */
        .filter-header {
            position: relative;
        }

        .header-content {
            display: flex;
            align-items: center;
            gap: 5px;
            flex-wrap: nowrap;
            white-space: nowrap;
        }

        .filter-icon {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 0.8rem;
            padding: 2px 5px;
            border-radius: 4px;
            opacity: 0.7;
            transition: opacity 0.2s, background 0.2s;
        }

        .filter-icon:hover {
            opacity: 1;
            background: rgba(255,255,255,0.1);
        }

        .filter-icon.active {
            opacity: 1;
            background: rgba(16, 185, 129, 0.3);
        }

        .column-filter-dropdown {
            display: none;
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            background: #2a2e3a;
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 8px;
            padding: 12px;
            width: 260px;
            max-width: min(92vw, 320px);
            z-index: 1000;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        }

        .column-filter-dropdown.show {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 8px;
        }

        .column-filter-dropdown,
        .column-filter-dropdown * {
            box-sizing: border-box;
        }

        .column-filter-dropdown label {
            display: block;
            color: #9CA3AF;
            font-size: 0.8rem;
            margin-bottom: 0;
            font-weight: normal;
        }

        .column-filter-dropdown .filter-enable {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 0;
            padding-bottom: 8px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            color: #10B981;
            font-weight: 500;
        }

        .column-filter-dropdown .filter-enable input[type="checkbox"] {
            width: 16px;
            height: 16px;
            cursor: pointer;
        }

        .filter-input {
            display: block;
            width: 100%;
            padding: 8px;
            background: #1a1d24;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 6px;
            color: #FFFFFF;
            font-size: 0.9rem;
            margin: 0;
        }

        .filter-input:focus {
            outline: none;
            border-color: #10B981;
        }

        .filter-select {
            display: block;
            width: 100%;
            max-width: 100%;
            padding: 8px;
            background: #1a1d24;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 6px;
            color: #FFFFFF;
            font-size: 0.9rem;
            cursor: pointer;
            margin: 0;
        }

        .filter-select:focus {
            outline: none;
            border-color: #10B981;
        }

        /* Dashboard column selector + presets */
        .dash-controls {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: nowrap;
            margin-left: auto;
            justify-content: flex-end;
            --dash-control-height: 36px;
        }

        .dash-controls > * {
            flex: 0 0 auto;
        }

        .dash-desktop-only {
            display: flex;
        }

        @media (max-width: 768px) {
            .dash-controls {
                width: 100%;
                margin-left: 0;
                justify-content: flex-start;
                flex-wrap: wrap;
            }

            .dash-column-dropdown {
                display: none;
            }

            .dash-column-menu {
                left: 0;
                right: auto;
                width: min(92vw, 360px);
            }

            .dash-presets {
                width: 100%;
                flex-wrap: wrap;
            }

            .dash-preset-dropdown {
                min-width: 0;
                width: 100%;
            }

            .dash-preset-button {
                width: 100%;
            }

            .dash-presets > button {
                display: inline-flex;
                flex: 1 1 0;
                justify-content: center;
            }
        }

        .dash-column-dropdown {
            position: relative;
            display: flex;
            align-items: center;
        }

        .dash-column-button {
            background: #21252e;
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #E5E7EB;
            padding: 0 0.85rem;
            height: var(--dash-control-height);
            min-height: var(--dash-control-height);
            border-radius: 10px;
            cursor: pointer;
            font-family: 'Inter', Arial, sans-serif;
            font-weight: 600;
            font-size: 0.9rem;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-sizing: border-box;
            transition: background 0.15s ease, border-color 0.15s ease;
            user-select: none;
            margin: 0;
            vertical-align: middle;
        }

        .dash-column-button:hover {
            background: #2a2e3a;
            border-color: rgba(91, 159, 237, 0.35);
        }

        .dash-column-button::after {
            content: '\25BE';
            opacity: 0.85;
            font-size: 0.9rem;
        }

        .dash-column-dropdown.active .dash-column-button::after {
            content: '\25B4';
        }

        .dash-column-menu {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            min-width: 220px;
            background: #1a1d29;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 12px;
            padding: 10px;
            display: none;
            z-index: 50;
            box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35);
        }

        .dash-column-dropdown.active .dash-column-menu {
            display: block;
        }

        .dash-column-option {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 10px;
            border-radius: 10px;
            cursor: pointer;
            color: #E5E7EB;
            font-size: 0.9rem;
            user-select: none;
        }

        .dash-column-option:hover {
            background: rgba(91, 159, 237, 0.12);
        }

        .dash-column-option input {
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: #5B9FED;
        }

        .dash-presets {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: nowrap;
        }

        .dash-presets-native {
            position: absolute;
            left: -9999px;
            width: 1px;
            height: 1px;
            opacity: 0;
            pointer-events: none;
        }

        .dash-preset-dropdown {
            position: relative;
            display: flex;
            align-items: center;
            min-width: 220px;
        }

        .dash-preset-button {
            background: #21252e;
            border: 1px solid rgba(255,255,255,0.1);
            color: #FFFFFF;
            padding: 0 2rem 0 1rem;
            height: var(--dash-control-height);
            min-height: var(--dash-control-height);
            border-radius: 10px;
            font-family: 'Inter', Arial, sans-serif;
            font-size: 0.9rem;
            line-height: calc(var(--dash-control-height) - 2px);
            text-align: center;
            cursor: pointer;
            width: 100%;
            box-sizing: border-box;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            vertical-align: middle;
            transition: background 0.15s ease, border-color 0.15s ease;
            user-select: none;
            position: relative;
        }

        .dash-preset-button::after {
            content: '\25BE';
            position: absolute;
            right: 0.72rem;
            top: 50%;
            transform: translateY(-50%);
            opacity: 0.85;
            font-size: 0.8rem;
            pointer-events: none;
        }

        .dash-preset-dropdown.active .dash-preset-button::after {
            content: '\25B4';
        }

        .dash-preset-button:hover {
            background: #2a2e3a;
            border-color: rgba(91, 159, 237, 0.35);
        }

        .dash-preset-menu {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            min-width: 220px;
            background: #1a1d29;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 12px;
            padding: 6px;
            display: none;
            z-index: 55;
            box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35);
            max-height: min(340px, 62vh);
            overflow-y: auto;
        }

        .dash-preset-dropdown.active .dash-preset-menu {
            display: block;
        }

        .dash-preset-option {
            width: 100%;
            border: 0;
            background: transparent;
            color: #E5E7EB;
            padding: 8px 10px;
            border-radius: 10px;
            cursor: pointer;
            font-family: 'Inter', Arial, sans-serif;
            font-size: 0.9rem;
            line-height: 1.35;
            text-align: left;
            display: block;
            user-select: none;
        }

        .dash-preset-option:hover,
        .dash-preset-option:focus-visible {
            background: rgba(91, 159, 237, 0.18);
            color: #FFFFFF;
            outline: none;
        }

        .dash-preset-option.is-selected {
            background: rgba(91, 159, 237, 0.16);
            color: #FFFFFF;
        }

        .dash-preset-dropdown.is-disabled .dash-preset-button {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .dash-presets > button {
            background: rgba(91, 159, 237, 0.16);
            border: 1px solid rgba(91, 159, 237, 0.35);
            color: #CFE3FF;
            padding: 0 0.8rem;
            height: var(--dash-control-height);
            min-height: var(--dash-control-height);
            border-radius: 10px;
            cursor: pointer;
            font-family: 'Inter', Arial, sans-serif;
            font-weight: 700;
            font-size: 0.85rem;
            line-height: 1;
            box-sizing: border-box;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            vertical-align: middle;
        }

        .dash-presets > button:disabled {
            opacity: 0.55;
            cursor: not-allowed;
        }

        .dash-preset-editor-modal {
            position: fixed;
            inset: 0;
            z-index: 1200;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }

        .dash-preset-editor-modal[hidden] {
            display: none !important;
        }

        body.dash-preset-editor-open {
            overflow: hidden;
        }

        .dash-preset-editor-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(2, 7, 18, 0.72);
            backdrop-filter: blur(4px);
        }

        .dash-preset-editor-panel {
            position: relative;
            z-index: 1;
            width: min(96vw, 760px);
            max-height: min(92vh, 820px);
            overflow: auto;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            background: #111728;
            box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
        }

        .dash-preset-editor-form {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            padding: 1rem;
        }

        .dash-preset-editor-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
        }

        .dash-preset-editor-header h3 {
            margin: 0;
            font-size: 1.08rem;
            color: #FFFFFF;
        }

        .dash-preset-editor-close {
            border: 0;
            background: transparent;
            color: rgba(229, 231, 235, 0.9);
            font-size: 1.2rem;
            line-height: 1;
            cursor: pointer;
            padding: 0.2rem;
        }

        .dash-preset-editor-fields {
            display: flex;
            flex-direction: column;
            gap: 1.1rem;
        }

        .dash-preset-editor-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 1rem;
        }

        .dash-preset-editor-card,
        .dash-preset-editor-section {
            border: 0;
            border-radius: 0;
            background: transparent;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .dash-preset-editor-card-head,
        .dash-preset-editor-field-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 0.5rem;
        }

        .dash-preset-editor-field {
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
        }

        .dash-preset-editor-field > span {
            color: #D1D5DB;
            font-size: 0.82rem;
            font-weight: 600;
        }

        .dash-preset-editor-info {
            position: relative;
            flex-shrink: 0;
            width: 18px;
            height: 18px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            border: 1px solid rgba(91, 159, 237, 0.45);
            background: rgba(91, 159, 237, 0.14);
            color: #A5D2FF;
            font-size: 0.72rem;
            font-weight: 700;
            line-height: 1;
            cursor: pointer;
            user-select: none;
        }

        .dash-preset-editor-info-tooltip {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            width: min(320px, 72vw);
            padding: 0.45rem 0.55rem;
            border-radius: 8px;
            border: 1px solid rgba(148, 163, 184, 0.3);
            background: rgba(7, 12, 22, 0.98);
            color: #E5E7EB;
            font-size: 0.75rem;
            font-weight: 500;
            line-height: 1.4;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-3px);
            transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
            pointer-events: none;
            z-index: 30;
        }

        .dash-preset-editor-info:hover .dash-preset-editor-info-tooltip,
        .dash-preset-editor-info:focus .dash-preset-editor-info-tooltip {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dash-preset-editor-field input,
        .dash-preset-editor-field select {
            background: #1A2336;
            border: 1px solid rgba(255, 255, 255, 0.14);
            color: #FFFFFF;
            border-radius: 8px;
            padding: 0.52rem 0.62rem;
            margin: 0;
            font-family: 'Inter', Arial, sans-serif;
            font-size: 0.9rem;
        }

        .dash-preset-editor-field input:focus,
        .dash-preset-editor-field select:focus {
            outline: none;
            border-color: rgba(91, 159, 237, 0.65);
        }

        .dash-preset-editor-inline {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 130px;
            gap: 0.55rem;
        }

        .dash-preset-editor-toggle {
            display: inline-flex;
            align-items: center;
            gap: 0.55rem;
            color: #E5E7EB;
            font-size: 0.86rem;
            font-weight: 600;
            user-select: none;
        }

        .dash-preset-editor-toggle > span {
            order: 1;
        }

        .dash-preset-editor-toggle input {
            order: 2;
            width: 17px;
            height: 17px;
            accent-color: #5B9FED;
            margin-left: 0.1rem;
        }

        .dash-preset-editor-note {
            margin: 0;
            color: rgba(191, 204, 226, 0.82);
            font-size: 0.82rem;
            line-height: 1.4;
        }

        .dash-preset-editor-note-check {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            width: 100%;
            user-select: none;
        }

        .dash-preset-editor-note-check span {
            flex: 1 1 auto;
        }

        .dash-preset-editor-note-check input {
            width: 16px;
            height: 16px;
            accent-color: #5B9FED;
            flex-shrink: 0;
        }

        .dash-preset-editor-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.65rem;
            flex-wrap: wrap;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 0.8rem;
        }

        .dash-preset-editor-actions-right {
            display: inline-flex;
            gap: 0.55rem;
            margin-left: auto;
        }

        .dash-preset-editor-primary,
        .dash-preset-editor-secondary,
        .dash-preset-editor-danger {
            border-radius: 10px;
            cursor: pointer;
            font-family: 'Inter', Arial, sans-serif;
            font-weight: 700;
            font-size: 0.86rem;
            line-height: 1;
            min-height: 36px;
            padding: 0.58rem 0.85rem;
        }

        .dash-preset-editor-primary {
            border: 1px solid rgba(91, 159, 237, 0.5);
            background: rgba(91, 159, 237, 0.24);
            color: #E6F0FF;
        }

        .dash-preset-editor-secondary {
            border: 1px solid rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.05);
            color: #E5E7EB;
        }

        .dash-preset-editor-danger {
            border: 1px solid rgba(239, 68, 68, 0.45);
            background: rgba(127, 29, 29, 0.42);
            color: #FECACA;
        }

        /* Keep preset controls within mobile width */
        @media (max-width: 768px) {
            .dash-controls {
                --dash-control-height: 34px;
                width: 100%;
                margin-left: 0;
                justify-content: flex-start;
                flex-wrap: wrap;
                gap: 8px;
            }

            .dash-column-dropdown {
                display: flex;
            }

            .dash-column-button {
                padding: 0 0.7rem;
                font-size: 0.84rem;
            }

            .dash-presets {
                width: 100%;
                min-width: 0;
                display: grid;
                grid-template-columns: minmax(0, 1fr);
                gap: 6px;
                align-items: stretch;
            }

            .dash-preset-dropdown {
                min-width: 0;
                width: 100%;
            }

            .dash-preset-button {
                width: 100%;
                max-width: none;
                font-size: 0.82rem;
                text-align: left;
                padding-left: 0.55rem;
                padding-right: 1.45rem;
            }

            .dash-preset-button::after {
                right: 0.45rem;
            }

            .dash-presets > button {
                display: inline-flex;
                min-width: 44px;
                padding: 0 0.4rem;
                font-size: 0.74rem;
                line-height: 1.05;
                white-space: nowrap;
                text-align: center;
            }

            .dash-preset-editor-modal {
                padding: 0.75rem;
            }

            .dash-preset-editor-panel {
                width: min(97vw, 640px);
                max-height: min(94vh, 860px);
            }

            .dash-preset-editor-form {
                padding: 0.85rem;
            }

            .dash-preset-editor-grid {
                grid-template-columns: minmax(0, 1fr);
            }

            .dash-preset-editor-inline {
                grid-template-columns: minmax(0, 1fr);
            }

            .dash-preset-editor-actions {
                align-items: stretch;
            }

            .dash-preset-editor-actions-right {
                width: 100%;
                margin-left: 0;
            }

            .dash-preset-editor-primary,
            .dash-preset-editor-secondary,
            .dash-preset-editor-danger {
                flex: 1 1 0;
            }

        }

        .dash-presets-locked {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #9CA3AF;
            font-size: 0.9rem;
            padding: 0.6rem 0.75rem;
            border-radius: 12px;
            border: 1px dashed rgba(255,255,255,0.18);
            background: rgba(26, 29, 41, 0.6);
        }

        .dash-pro-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 800;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: #0B1020;
            background: linear-gradient(135deg, #21d4fd, #b721ff);
            text-decoration: none;
        }

        .col-hidden {
            display: none !important;
        }

        #dashboardTableWrap.hide-col-bookmark .dashboard-table [data-column="bookmark"],
        #dashboardTableWrap.hide-col-item .dashboard-table [data-column="item"],
        #dashboardTableWrap.hide-col-buy .dashboard-table [data-column="buy"],
        #dashboardTableWrap.hide-col-sell .dashboard-table [data-column="sell"],
        #dashboardTableWrap.hide-col-margin_gp .dashboard-table [data-column="margin_gp"],
        #dashboardTableWrap.hide-col-margin_pct .dashboard-table [data-column="margin_pct"],
        #dashboardTableWrap.hide-col-volume .dashboard-table [data-column="volume"],
        #dashboardTableWrap.hide-col-limit .dashboard-table [data-column="limit"],
        #dashboardTableWrap.hide-col-profit_limit .dashboard-table [data-column="profit_limit"],
        #dashboardTableWrap.hide-col-action .dashboard-table [data-column="action"] {
            display: none !important;
        }

        tbody tr {
            background: #21252e !important;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            transition: background 0.2s;
        }

        tbody tr:hover {
            background: #21252e !important;
        }

        tbody tr:nth-child(even) {
            background: #21252e !important;
        }

        tbody tr:nth-child(odd) {
            background: #21252e !important;
        }

        td {
            padding: 1rem;
            color: #D1D5DB;
            font-size: 0.9rem;
        }

        .latest-trade {
            color: #6B7280;
            font-size: 0.8rem;
            display: inline-block;
            white-space: nowrap;
        }

        .show-graph-btn {
            background: #5B9FED;
            color: #FFFFFF;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.85rem;
            font-weight: 500;
            transition: all 0.2s;
            font-family: 'Inter', sans-serif;
        }

        .show-graph-btn:hover {
            background: #4A8DD8;
            transform: translateY(-1px);
        }

        .bookmark-btn {
            background: transparent;
            color: #9CA3AF;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.2s;
            padding: 0.25rem 0.5rem;
            line-height: 1;
        }

        .bookmark-btn:hover {
            color: #FBBF24;
            transform: scale(1.2);
        }

        .bookmark-btn.bookmarked {
            color: #FBBF24;
        }

        .graph-container {
            background: #1a1d29;
            padding: 1rem 1.5rem;
            border-radius: 12px;
            margin: 0.5rem 0;
            box-sizing: border-box;
        }

        .graph-controls {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            margin-bottom: 0.5rem;
        }

        .graph-period-label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.85rem;
            font-weight: 500;
        }

        .graph-period-select {
            background: #252932;
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 6px;
            padding: 0.4rem 0.75rem;
            font-size: 0.85rem;
            cursor: pointer;
            outline: none;
            transition: border-color 0.2s, background 0.2s;
        }

        .graph-period-select:hover {
            border-color: rgba(255, 255, 255, 0.3);
            background: #2a2e3a;
        }

        .graph-period-select:focus {
            border-color: #5B9FED;
        }

        .chart-wrapper {
            width: 100%;
        }

        .price-chart-container {
            position: relative;
            width: 100%;
            height: 220px;
        }

        .volume-chart-container {
            position: relative;
            width: 100%;
            height: 70px;
            margin-top: 8px;
        }

        .price-chart-container canvas,
        .volume-chart-container canvas {
            display: block;
            width: 100% !important;
            height: 100% !important;
        }

        .graph-row td {
            padding: 0 1rem !important;
        }

        .graph-loading {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 2rem;
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9rem;
        }

        .graph-no-data {
            text-align: center;
            padding: 1.5rem;
            color: rgba(255, 255, 255, 0.5);
        }

        .graph-no-data p {
            margin: 0.5rem 0;
        }

        .graph-error {
            text-align: center;
            padding: 2rem;
            color: #EF4444;
            background: rgba(239, 68, 68, 0.1);
            border-radius: 8px;
        }

        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 1rem;
            margin-top: 2rem;
        }

        .pagination-button {
            background: #21252e;
            color: #FFFFFF;
            border: 1px solid rgba(255,255,255,0.1);
            padding: 0.5rem 1.5rem;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.2s;
            font-family: 'Inter', sans-serif;
        }

        .pagination-button:hover {
            background: #5B9FED;
            border-color: #5B9FED;
        }

        .pagination-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        #currentPage {
            color: #9CA3AF;
            font-weight: 500;
        }

        .items-per-page {
            margin-left: 2rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        /* Profit colors */
        .profit-green {
            color: #10B981;
            font-weight: 600;
        }

        .profit-yellow {
            color: #FBBF24;
            font-weight: 600;
        }

        .profit-red {
            color: #EF4444;
            font-weight: 600;
        }
