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

        :root {
            --page-bg: #050814;
            --page-bg-soft: rgba(255, 255, 255, 0.02);
            --page-border: rgba(255, 255, 255, 0.08);
            --text: rgba(255, 255, 255, 0.92);
            --muted: rgba(255, 255, 255, 0.62);
            --muted-2: rgba(255, 255, 255, 0.42);
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background:
                radial-gradient(1100px 700px at 20% -10%, rgba(34, 197, 94, 0.10), transparent 55%),
                radial-gradient(900px 600px at 85% 8%, rgba(59, 130, 246, 0.10), transparent 55%),
                var(--page-bg);
            color: var(--text);
            margin: 0;
            padding: 20px;
        }

        .page-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        /* Navbar */
        .navbar {
            background: rgba(5, 8, 20, 0.88);
            backdrop-filter: blur(10px);
            padding: 1rem 2rem;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            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: rgba(255, 255, 255, 0.65);
            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 */
                        .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: rgba(255, 255, 255, 0.65);
            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.06);
        }

        .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);
        }

        @media (max-width: 768px) {
            .dropdown-menu {
                border-radius: 6px;
                padding: 0.3rem;
            }

            .dropdown-menu a {
                padding: 0.6rem 0.8rem;
                border-radius: 6px;
            }

            .dropdown-menu a:first-child,
            .dropdown-menu a:last-child {
                border-radius: 6px;
            }
        }

        .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;
            border: 1px solid rgba(16, 185, 129, 0.2);
        }

        /* Back link */
        .back-link {
            display: inline-flex;
            align-items: center;
            color: #9CA3AF;
            text-decoration: none;
            font-size: 0.95rem;
            transition: color 0.2s;
        }

        .back-link:hover {
            color: #FFFFFF;
        }

        .item-breadcrumbs {
            margin-top: -0.35rem;
            margin-bottom: 0.6rem;
            font-size: 0.83rem;
            color: rgba(255, 255, 255, 0.58);
            display: flex;
            gap: 0.35rem;
            flex-wrap: wrap;
            align-items: center;
        }

        .item-breadcrumbs a {
            color: rgba(255, 255, 255, 0.62);
            text-decoration: none;
        }

        .item-breadcrumbs a:hover {
            color: rgba(255, 255, 255, 0.9);
        }

        .item-summary-panel {
            display: flex;
            flex-wrap: wrap;
            gap: 0.9rem;
            align-items: center;
            justify-content: space-between;
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 12px;
            padding: 0.8rem 0.9rem;
            margin-top: 0.95rem;
            margin-bottom: 0.95rem;
        }

        .item-summary-text {
            margin: 0;
            color: rgba(255,255,255,0.82);
            font-size: 0.93rem;
            line-height: 1.48;
            flex: 1 1 360px;
        }

        .item-summary-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.45rem;
        }

        .item-summary-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.35rem;
            text-decoration: none;
            border-radius: 9px;
            border: 1px solid rgba(255, 255, 255, 0.16);
            padding: 0.48rem 0.7rem;
            font-size: 0.84rem;
            font-weight: 650;
            color: #fff;
            background: rgba(255,255,255,0.03);
            transition: all 0.2s ease;
        }

        .item-summary-btn:hover {
            border-color: rgba(91, 159, 237, 0.55);
            background: rgba(91, 159, 237, 0.14);
        }

        .item-summary-btn.primary {
            border-color: rgba(52, 211, 153, 0.55);
            background: rgba(16, 185, 129, 0.18);
        }

        /* Item header */
        .item-header {
            background: transparent;
            border: none;
            border-radius: 0;
            padding: 0.25rem 0 1.25rem 0;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            align-items: center;
            justify-content: space-between;
        }

        .item-header-main {
            display: flex;
            align-items: center;
            gap: 1rem;
            min-width: 260px;
        }

        .item-icon {
            width: 64px;
            height: 64px;
            border-radius: 12px;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.10);
            padding: 0.35rem;
            object-fit: contain;
        }

        .item-title {
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
        }

        .item-title-row {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            flex-wrap: wrap;
        }

        .item-title h1 {
            font-size: 2rem;
            font-weight: 700;
            color: #FFFFFF;
        }

        .item-period-change {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.28rem 0.62rem;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            background: rgba(255, 255, 255, 0.04);
            font-size: 0.78rem;
            font-weight: 750;
            letter-spacing: 0.02em;
            line-height: 1;
            white-space: nowrap;
        }

        .item-period-change.up {
            color: #34D399;
            border-color: rgba(52, 211, 153, 0.45);
            background: rgba(16, 185, 129, 0.12);
        }

        .item-period-change.down {
            color: #FB7185;
            border-color: rgba(251, 113, 133, 0.45);
            background: rgba(190, 24, 93, 0.12);
        }

        .item-period-change.neutral {
            color: rgba(255, 255, 255, 0.62);
        }

        .item-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.6rem;
            align-items: center;
        }

        .external-link {
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.14);
            color: rgba(255,255,255,0.78);
            text-decoration: none;
            padding: 0.55rem 0.85rem;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            transition: all 0.2s;
        }

        .external-link:hover {
            color: #FFFFFF;
            border-color: rgba(91, 159, 237, 0.5);
            background: rgba(255,255,255,0.06);
        }

        .bookmark-btn {
            background: transparent;
            color: rgba(255, 255, 255, 0.65);
            border: 1px solid rgba(255,255,255,0.14);
            font-size: 1.4rem;
            cursor: pointer;
            transition: all 0.2s;
            padding: 0.35rem 0.7rem;
            line-height: 1;
            border-radius: 8px;
        }

        .bookmark-btn:hover {
            color: #FBBF24;
            border-color: rgba(251, 191, 36, 0.5);
            transform: translateY(-1px);
        }

        .bookmark-btn.bookmarked {
            color: #FBBF24;
            border-color: rgba(251, 191, 36, 0.6);
            background: rgba(251, 191, 36, 0.08);
        }

        .item-alert-btn {
            appearance: none;
            border: 1px solid rgba(91, 159, 237, 0.48);
            background: rgba(91, 159, 237, 0.16);
            color: #dcebff;
            font-size: 0.86rem;
            font-weight: 650;
            cursor: pointer;
            transition: all 0.2s ease;
            padding: 0.58rem 0.86rem;
            line-height: 1;
            border-radius: 8px;
            white-space: nowrap;
        }

        .item-alert-btn:hover {
            border-color: rgba(147, 197, 253, 0.72);
            background: rgba(91, 159, 237, 0.24);
            transform: translateY(-1px);
        }

        .item-alert-btn:disabled {
            cursor: default;
            opacity: 0.66;
            transform: none;
        }

        .item-alert-modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(4, 8, 16, 0.72);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            z-index: 2200;
        }

        .item-alert-modal-backdrop[hidden] {
            display: none !important;
        }

        .item-alert-modal {
            width: min(460px, 100%);
            border-radius: 12px;
            border: 1px solid rgba(136, 173, 223, 0.35);
            background: #0f1828;
            box-shadow: 0 24px 44px rgba(2, 8, 18, 0.6);
            padding: 1rem;
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
        }

        .item-alert-modal[data-view="edit"] #itemAlertChoiceActions {
            display: none !important;
        }

        .item-alert-modal h3 {
            margin: 0;
            font-size: 1.02rem;
            color: #eef5ff;
        }

        .item-alert-modal p {
            margin: 0;
            color: rgba(219, 232, 251, 0.86);
            font-size: 0.88rem;
            line-height: 1.45;
        }

        .item-alert-modal-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.55rem;
        }

        .item-alert-modal-btn {
            appearance: none;
            border-radius: 9px;
            border: 1px solid rgba(160, 191, 233, 0.28);
            background: rgba(25, 40, 63, 0.72);
            color: #dce9fb;
            font-size: 0.84rem;
            font-weight: 650;
            padding: 0.52rem 0.82rem;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .item-alert-modal-btn:hover {
            border-color: rgba(198, 221, 255, 0.52);
            background: rgba(43, 66, 102, 0.8);
        }

        .item-alert-modal-btn.primary {
            border-color: rgba(95, 170, 246, 0.52);
            background: rgba(58, 125, 204, 0.74);
            color: #f7fbff;
        }

        .item-alert-modal-btn.danger {
            border-color: rgba(244, 131, 131, 0.45);
            background: rgba(93, 36, 36, 0.52);
            color: #ffd4d4;
        }

        .item-alert-edit-form {
            display: grid;
            gap: 0.62rem;
        }

        .item-alert-edit-form[hidden] {
            display: none !important;
        }

        .item-alert-field {
            display: grid;
            gap: 0.24rem;
        }

        .item-alert-field label {
            color: rgba(210, 226, 249, 0.86);
            font-size: 0.76rem;
            font-weight: 600;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        .item-alert-field input,
        .item-alert-field select {
            width: 100%;
            border-radius: 8px;
            border: 1px solid rgba(153, 183, 224, 0.3);
            background: rgba(9, 16, 28, 0.92);
            color: #f5f9ff;
            font-size: 0.9rem;
            padding: 0.55rem 0.65rem;
            outline: none;
        }

        .item-alert-field input:focus,
        .item-alert-field select:focus {
            border-color: rgba(147, 197, 253, 0.8);
            box-shadow: 0 0 0 2px rgba(91, 159, 237, 0.16);
        }

        .item-alert-note {
            min-height: 1.05rem;
            color: rgba(199, 219, 247, 0.9);
            font-size: 0.8rem;
            line-height: 1.35;
        }

        .item-alert-note.error {
            color: #fca5a5;
        }

        .spike-warning {
            background: rgba(239, 68, 68, 0.12);
            border: 1px solid rgba(239, 68, 68, 0.35);
            color: #FCA5A5;
            padding: 0.6rem 0.8rem;
            border-radius: 10px;
            font-size: 0.9rem;
        }

        .spike-warning .reason {
            display: block;
            margin-top: 0.25rem;
            color: #FECACA;
            font-size: 0.85rem;
            line-height: 1.3;
        }

        /* Missing state */
        .item-missing {
            background: rgba(251, 191, 36, 0.12);
            border: 1px solid rgba(251, 191, 36, 0.35);
            color: #FBBF24;
            padding: 1rem 1.1rem;
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
        }

        .item-missing strong {
            color: #FDE68A;
        }

        /* Stats grid */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 1.1rem 1.25rem;
            padding: 0.25rem 0;
        }

        .stat-card {
            background: transparent;
            border: none;
            border-radius: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            min-height: unset;
        }

        .stat-label {
            color: var(--muted-2);
            font-size: 0.72rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            line-height: 1.1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .stat-label[data-desktop-title] {
            cursor: default;
        }

        @media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
            .stat-label[data-desktop-title] {
                cursor: help;
            }
        }

        .stat-value {
            color: #FFFFFF;
            font-size: 1.18rem;
            font-weight: 700;
            line-height: 1.15;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .stat-subvalue {
            color: rgba(255, 255, 255, 0.38);
            font-size: 0.78rem;
            line-height: 1.2;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .stat-subvalue.stat-subvalue-latest {
            white-space: normal;
            overflow: visible;
            text-overflow: unset;
        }

        .stat-subvalue.stat-subvalue-latest span {
            white-space: nowrap;
        }

        .margin-positive {
            color: #10B981;
        }

        .margin-negative {
            color: #EF4444;
        }

        /* Graph section */
        .graph-section {
            background: transparent;
            border: none;
            border-radius: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 0.65rem;
        }

        .graph-section-header {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 1rem;
        }

        .graph-section h2 {
            font-size: 1.25rem;
            font-weight: 700;
        }

        .graph-section p {
            color: var(--muted);
            font-size: 0.92rem;
        }

        /* Graph styles (match dashboard) */
        .graph-container {
            background: transparent;
            padding: 0.25rem 0 0 0;
            border-radius: 0;
            margin: 0;
            box-sizing: border-box;
            border: none;
        }

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

        .graph-controls-tabs {
            justify-content: space-between;
            gap: 1rem;
        }

        .graph-line-legend {
            display: flex;
            align-items: center;
            gap: 0.85rem;
            font-size: 0.82rem;
            color: rgba(255, 255, 255, 0.72);
            user-select: none;
        }

        .graph-line-legend .legend-item {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
        }

        .graph-line-legend .legend-dot {
            width: 9px;
            height: 9px;
            border-radius: 50%;
            display: inline-block;
        }

        .graph-line-legend .legend-dot.sell {
            background: #22c55e;
        }

        .graph-line-legend .legend-dot.buy {
            background: #fb7185;
        }

        .graph-range-tabs {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
        }

        .graph-range-btn {
            appearance: none;
            border: 1px solid rgba(255, 255, 255, 0.14);
            background: rgba(255, 255, 255, 0.04);
            color: rgba(255, 255, 255, 0.75);
            padding: 0.4rem 0.7rem;
            font-size: 0.82rem;
            font-weight: 600;
            border-radius: 10px;
            cursor: pointer;
            transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.05s;
        }

        .graph-range-btn:hover {
            border-color: rgba(255, 255, 255, 0.24);
            background: rgba(255, 255, 255, 0.06);
        }

        .graph-range-btn:active {
            transform: translateY(1px);
        }

        .graph-range-btn.active {
            background: rgba(255, 255, 255, 0.92);
            color: rgba(10, 12, 18, 0.95);
            border-color: rgba(255, 255, 255, 0.92);
        }

        .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%;
            margin-top: 0.4rem;
        }

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

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

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

        .period-high-low {
            margin-top: 0.6rem;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.55rem;
        }

        .period-high-low-card {
            appearance: none;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.65rem;
            width: 100%;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.03);
            border-radius: 10px;
            padding: 0.6rem 0.82rem;
            min-width: 0;
            text-align: left;
            cursor: pointer;
            transition: border-color 0.15s ease, background 0.15s ease, transform 0.05s ease;
        }

        .period-high-low-card.compact {
            justify-content: center;
            text-align: center;
        }

        .period-high-low-card.compact .period-high-low-label {
            width: 100%;
            text-align: center;
            margin: 0;
        }

        .period-high-low-card:hover {
            border-color: rgba(255, 255, 255, 0.24);
            background: rgba(255, 255, 255, 0.05);
        }

        .period-high-low-card:active {
            transform: translateY(1px);
        }

        .period-high-low-card:focus-visible {
            outline: 2px solid rgba(147, 197, 253, 0.85);
            outline-offset: 1px;
        }

        .period-high-low-card.disabled {
            cursor: default;
            opacity: 0.68;
        }

        .period-high-low-card:disabled {
            cursor: default;
        }

        .period-high-low-label {
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.56);
            white-space: nowrap;
            flex-shrink: 0;
        }

        .period-high-low-value {
            font-size: 1rem;
            font-weight: 750;
            letter-spacing: 0.01em;
            color: #DBEAFE;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-left: auto;
            text-align: right;
        }

        .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;
        }

        .recent-trades-section {
            margin-top: 1rem;
        }

        .recent-trades-section h2 {
            font-size: 1.15rem;
            font-weight: 700;
            margin: 0 0 0.75rem 0;
        }

        .recent-trades-container {
            background: transparent;
            border: none;
            border-radius: 0;
            overflow: hidden;
        }

        .recent-trades-loading,
        .recent-trades-empty,
        .recent-trades-error {
            padding: 1.25rem;
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9rem;
        }

        .recent-trades-error {
            color: #EF4444;
            background: rgba(239, 68, 68, 0.1);
        }

        .recent-trades-table-wrap {
            width: 100%;
            overflow-x: auto;
        }

        table.recent-trades-table {
            width: 100%;
            border-collapse: collapse;
            min-width: 720px;
            margin-top: 0;
            background: transparent !important;
            border: none !important;
            border-radius: 0 !important;
            overflow: visible !important;
        }

        .recent-trades-table th,
        .recent-trades-table td {
            padding: 0.9rem 1rem;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            vertical-align: middle;
            background: transparent !important;
        }

        .recent-trades-table thead th {
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.48);
            font-weight: 600;
            text-align: left;
            position: static !important;
            top: auto !important;
            z-index: auto !important;
            background: transparent !important;
        }

        .recent-trades-table tbody tr,
        .recent-trades-table tr:nth-child(even),
        .recent-trades-table tr:nth-child(odd) {
            background: transparent !important;
        }

        .recent-trades-table tbody tr:hover {
            background: transparent !important;
        }

        .recent-trades-table td.num,
        .recent-trades-table th.num {
            text-align: right;
            white-space: nowrap;
        }

        .trade-time {
            font-weight: 650;
            color: rgba(255, 255, 255, 0.85);
        }

        .trade-age {
            margin-top: 0.15rem;
            font-size: 0.78rem;
            color: rgba(255, 255, 255, 0.40);
        }

        .gp-value {
            font-weight: 750;
            letter-spacing: 0.2px;
        }

        .gp-suffix {
            margin-left: 0.25rem;
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.45);
            font-weight: 600;
        }

        .cell-dash {
            color: rgba(255, 255, 255, 0.35);
        }

        .recent-trades-table tbody tr:last-child td {
            border-bottom: none;
        }

        @media (max-width: 900px) {
            .item-header-main,
            .item-title,
            .item-title-row {
                min-width: 0;
            }

            .item-header-main {
                width: 100%;
            }

            .item-title h1 {
                font-size: 1.7rem;
                white-space: normal;
                overflow-wrap: anywhere;
                word-break: break-word;
            }

            .item-period-change {
                font-size: 0.72rem;
                padding: 0.25rem 0.55rem;
            }

            .graph-controls-tabs {
                flex-wrap: wrap;
                row-gap: 0.5rem;
            }

            .graph-line-legend {
                min-width: 0;
            }

            .graph-range-tabs {
                margin-left: auto;
                flex-wrap: wrap;
                justify-content: flex-end;
                min-width: 0;
            }

            .price-chart-container {
                height: 230px;
            }

            .period-high-low {
                margin-top: 0.5rem;
                gap: 0.45rem;
            }

            .period-high-low-card {
                gap: 0.48rem;
                padding: 0.5rem 0.62rem;
            }

            .period-high-low-label {
                font-size: 0.65rem;
            }

            .period-high-low-value {
                font-size: 0.86rem;
            }

        }

        @media (max-width: 640px) {
            body {
                padding: 14px;
            }

            .navbar {
                margin: -14px -14px 16px -14px;
                padding: 0.85rem 1rem;
            }
            .navbar-container {
                flex-wrap: wrap;
                gap: 0.65rem;
            }

            .navbar-actions {
                width: 100%;
                flex-wrap: wrap;
                gap: 0.65rem;
                justify-content: space-between;
            }

            .navbar-links {
                gap: 1rem;
                flex-wrap: wrap;
                min-width: 0;
            }

            .user-button {
                max-width: none;
                overflow: visible;
                text-overflow: unset;
                white-space: nowrap;
            }

            .discord-button {
                margin-left: 0;
            }

            .item-header {
                padding: 1.2rem;
            }

            .item-actions {
                width: 100%;
                display: grid;
                grid-template-columns: max-content max-content max-content minmax(0, 1fr);
                gap: 0.44rem;
                align-items: center;
            }

            .external-link {
                padding: 0.5rem 0.66rem;
                font-size: 0.83rem;
            }

            .bookmark-btn {
                padding: 0.34rem 0.56rem;
                font-size: 1.28rem;
            }

            .item-alert-btn {
                width: 100%;
                min-width: 0;
                padding: 0.5rem 0.62rem;
                font-size: 0.83rem;
                text-align: center;
            }

            .item-alert-modal {
                padding: 0.9rem;
            }

            .item-alert-modal-actions {
                gap: 0.46rem;
            }

            .item-alert-modal-btn {
                flex: 1 1 auto;
                text-align: center;
            }

            .stat-card {
                min-height: 88px;
            }

            table.recent-trades-table {
                min-width: 0;
                display: block;
            }

            .recent-trades-table thead {
                display: none;
            }

            .recent-trades-table tbody {
                display: flex;
                flex-direction: column;
                gap: 0.75rem;
            }

            .recent-trades-table tbody tr {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 0.4rem 0.9rem;
                padding: 0.9rem;
                border-radius: 12px;
                border: 1px solid rgba(255, 255, 255, 0.08);
                background: rgba(255, 255, 255, 0.02) !important;
            }

            .recent-trades-table tbody td {
                padding: 0.25rem 0;
                border-bottom: none;
                display: flex;
                justify-content: space-between;
                align-items: baseline;
                gap: 0.75rem;
                min-width: 0;
            }

            .recent-trades-table tbody td::before {
                content: attr(data-label);
                color: rgba(255, 255, 255, 0.45);
                font-size: 0.68rem;
                font-weight: 650;
                text-transform: uppercase;
                letter-spacing: 0.08em;
                white-space: nowrap;
                flex: 0 0 auto;
            }

            .recent-trades-table tbody td:first-child {
                grid-column: 1 / -1;
                padding-bottom: 0.45rem;
                justify-content: flex-start;
                flex-direction: column;
                align-items: flex-start;
                gap: 0;
            }

            .recent-trades-table tbody td:first-child::before {
                content: '';
                display: none;
            }

            .gp-suffix {
                display: none;
            }
        }
