
        :root {
            --accent: #30D158;
            --accent-glow: rgba(48, 209, 88, 0.3);
            --bg-page: #121212;
            --bg-panel: #1a1a1a;
            --border-panel: #333;
            --border-accent: #3d4a34;
            --text-1: #ffffff;
            --text-2: #aaaaaa;
            --text-3: #777777;
        }

        /* Match logo highlight color to index.html (green, not yellow) */
        .logo .highlight {
            color: #30D158 !important;
        }

        /* ── Changelog Styled Cards ── */
        #changelogList .panel {
            background: #1e1e1e;
            border: 1px solid #2a2a2a;
            border-radius: 10px;
            padding: 12px 16px;
        }

        #changelogList .panel:hover {
            border-color: #3a3a3a;
            background: #222;
        }

        /* ── SEO Content Styles ── */
        .seo-table {
            width: 100%;
            border-collapse: collapse;
            margin: 25px 0;
            background: rgba(255,255,255,0.02);
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border-panel);
        }
        .seo-table th {
            background: rgba(255,255,255,0.05);
            color: var(--accent);
            text-align: left;
            padding: 14px 18px;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            border-bottom: 2px solid var(--border-panel);
        }
        .seo-table td {
            padding: 14px 18px;
            border-bottom: 1px solid var(--border-panel);
            color: var(--text-2);
            font-size: 0.95rem;
        }
        .seo-table tr:last-child td {
            border-bottom: none;
        }
        .seo-table tr:hover td {
            background: rgba(255,255,255,0.03);
            color: #fff;
        }

        .seo-section {
            margin-bottom: 50px;
            padding: 30px;
            background: var(--bg-panel);
            border: 1px solid var(--border-panel);
            border-radius: 16px;
        }
        .seo-section h2 {
            font-size: 1.8rem;
            margin-bottom: 20px;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .seo-section h2::before {
            content: '';
            width: 4px;
            height: 24px;
            background: var(--accent);
            border-radius: 2px;
        }
        .seo-section h3 {
            font-size: 1.3rem;
            margin-top: 30px;
            margin-bottom: 15px;
            color: var(--accent);
        }
        .seo-section p {
            line-height: 1.7;
            margin-bottom: 18px;
            color: var(--text-2);
            font-size: 1rem;
        }
        .seo-section ul, .seo-section ol {
            margin-bottom: 25px;
            padding-left: 25px;
        }
        .seo-section li {
            margin-bottom: 12px;
            color: var(--text-2);
            line-height: 1.6;
        }
        .seo-section strong {
            color: #fff;
            font-weight: 600;
        }

        /* FAQ Accordion Styling */
        .faq-item {
            background: rgba(255,255,255,0.03);
            border: 1px solid var(--border-panel);
            border-radius: 12px;
            margin-bottom: 12px;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        .faq-item:hover {
            border-color: var(--accent);
            background: rgba(255,255,255,0.05);
        }
        .faq-summary {
            padding: 18px 24px;
            font-weight: 700;
            cursor: pointer;
            list-style: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #fff;
        }
        .faq-summary::-webkit-details-marker {
            display: none;
        }
        .faq-summary::after {
            content: '+';
            font-size: 1.5rem;
            color: var(--accent);
            transition: transform 0.3s ease;
        }
        details[open] .faq-summary::after {
            transform: rotate(45deg);
        }
        .faq-content {
            padding: 0 24px 24px;
            color: var(--text-2);
            line-height: 1.6;
        }

        /* Pet name */
        #changelogList .panel > div:first-child > div:first-child {
            font-size: 0.95rem;
            font-weight: 700;
            color: #fff;
            text-transform: capitalize;
        }

        /* Timestamp */
        #changelogList .panel > div:first-child > div:last-child {
            font-size: 0.75rem;
            color: var(--text-3);
            white-space: nowrap;
        }

        /* Change rows */
        #changelogList .panel > div:nth-child(2) > div {
            font-size: 0.8rem;
            color: var(--text-2);
            line-height: 1.6;
        }

        /* Arrow color green */
        #changelogList .panel b ~ b {
            color: #30D158;
        }

        /* Note text */
        #changelogList .panel > div:last-child:not(:nth-child(-n+2)) {
            color: var(--text-3);
            font-size: 0.75rem;
            margin-top: 6px;
            font-style: italic;
        }

        /* Warn text */
        #changelogList .warn {
            color: var(--text-3);
            font-size: 0.85rem;
            padding: 12px 0;
        }

        /* Scrollable changelog container */
        #changelogList {
            max-height: 400px;
            overflow-y: auto;
            padding-right: 4px;
        }

        /* Custom scrollbar */
        #changelogList::-webkit-scrollbar {
            width: 5px;
        }
        #changelogList::-webkit-scrollbar-track {
            background: #1a1a1a;
            border-radius: 4px;
        }
        #changelogList::-webkit-scrollbar-thumb {
            background: #3a3a3a;
            border-radius: 4px;
        }
        #changelogList::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

        body {
            font-family: 'Outfit', sans-serif;
            background-color: var(--bg-page);
            color: var(--text-1);
            margin: 0;
            line-height: 1.5;
        }

        .main-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }

        /* Layout Panels */
        .value-list-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }

        @media (max-width: 1024px) {
            .value-list-container {
                grid-template-columns: 1fr;
            }
        }

        .panel-box {
            background: var(--bg-panel);
            border: 1px solid var(--border-panel);
            border-radius: 12px;
            padding: 24px;
        }

        .panel-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin: 0 0 20px 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* Controls */
        .control-row {
            display: flex;
            gap: 12px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .search-input {
            flex: 1;
            min-width: 200px;
            padding: 10px 16px;
            border-radius: 10px;
            background: #252525;
            border: 1px solid #333;
            color: white;
            font-size: 0.95rem;
        }

        .filter-select {
            padding: 10px 16px;
            border-radius: 10px;
            background: #252525;
            border: 1px solid #333;
            color: white;
            cursor: pointer;
        }

        .btn-clear {
            padding: 10px 20px;
            background: #2a2a2a;
            border: 1px solid #444;
            color: white;
            border-radius: 10px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .status-bar {
            font-size: 0.85rem;
            color: var(--text-3);
            margin-bottom: 12px;
        }

        /* Pet Grid */
        .pet-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 10px;
            max-height: 500px;
            overflow-y: auto;
            padding-right: 5px;
        }

        .pet-card {
            background: #222;
            border: 2px solid transparent;
            border-radius: 12px;
            aspect-ratio: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            padding: 10px;
        }

        .pet-card:hover {
            background: #282828;
            border-color: #444;
        }

        .pet-card.active {
            border-color: #4CAF50;
            background: rgba(76, 175, 80, 0.1);
            box-shadow: 0 0 15px rgba(76, 175, 80, 0.2);
        }

        .pet-card img {
            width: 50px;
            height: 50px;
            object-fit: contain;
            margin-bottom: 5px;
        }

        .pet-card .pet-name {
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--text-2);
            text-align: center;
            text-transform: capitalize;
        }
        #tradeModalPetGrid .pet-name {
            width: 100%;
            min-width: 0;
            overflow-wrap: anywhere;
            line-height: 1.25;
        }

        /* Detailed Panel (Right) */
        .detail-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .value-large {
            font-size: 3rem;
            font-weight: 800;
            color: #4CAF50;
            margin: 15px 0;
        }

        .value-sub {
            font-size: 0.9rem;
            color: var(--text-3);
            margin-bottom: 15px;
        }

        .pill-group {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 15px;
        }

        .pill-input {
            background: #252525;
            padding: 8px 12px;
            border-radius: 8px;
            border: 1px solid #333;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
        }

        .pill-input label { margin: 0; color: var(--text-2); }

        /* Datapoints Grid */
        .dp-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
            gap: 8px;
            margin-top: 10px;
        }

        .dp {
            background: #222;
            padding: 8px 12px;
            border-radius: 6px;
            border: 1px solid #333;
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
        }

        .dp .w { color: var(--text-3); }
        .dp .v { font-weight: 700; color: var(--accent); }

        /* Trade Calculator (Comparison) */
        .trade-calculator {
            margin-top: 40px;
            background: var(--bg-panel);
            border: 1px solid var(--border-panel);
            border-radius: 12px;
            padding: 24px;
        }

        .trade-summary {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            gap: 20px;
            margin-top: 20px;
            align-items: center;
        }

        @media (max-width: 600px) {
            .trade-summary {
                grid-template-columns: 1fr;
                gap: 10px;
            }
            .diff-box {
                order: -1;
                margin-bottom: 5px;
            }
            .side-total {
                padding: 15px;
            }
            .total-val {
                font-size: 2rem;
            }
        }

        .side-total {
            background: #222;
            border-radius: 12px;
            padding: 20px;
            text-align: center;
        }

        .total-label { font-size: 0.8rem; text-transform: uppercase; color: var(--text-3); }
        .total-val { font-size: 2.5rem; font-weight: 800; color: var(--accent); }

        .diff-box {
            text-align: center;
            min-width: 150px;
        }

        .diff-val { font-size: 1.8rem; font-weight: 800; }
        .diff-val.positive { color: var(--accent); }
        .diff-val.negative { color: #f44336; }

        .trade-cols {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            margin-top: 30px;
        }

        @media (max-width: 768px) {
            .trade-cols { grid-template-columns: 1fr; gap: 20px; }
            .slot-grid { gap: 8px; }
        }

        .slot-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
        }

        .trade-slot {
            background: #252525;
            border: 2px dashed #444;
            border-radius: 12px;
            aspect-ratio: 1;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            padding: 10px;
            position: relative;
        }

        .trade-slot:hover { border-color: var(--accent); background: #2a2a2a; }

        .trade-slot.filled { border-style: solid; border-color: #333; background: #222; }

        .slot-icon { font-size: 1.5rem; color: #555; margin-bottom: 5px; }
        .slot-name { font-size: 0.7rem; font-weight: 600; color: var(--text-2); text-transform: uppercase; }
        .slot-val { font-size: 0.8rem; font-weight: 700; color: var(--accent); margin-top: 5px; }

        /* Ahead badge */
        .trade-header { display:flex; justify-content:space-between; align-items:center; margin-bottom: 10px; }
        #tradeAheadBadge {
            display: inline-block;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 700;
            background: #1a2a1a;
            border: 1px solid #30D158;
            color: #30D158;
            letter-spacing: 0.02em;
            transition: all 0.3s ease;
            white-space: nowrap;
        }
        #tradeAheadBadge.right-ahead { background: #1a2a1a; border-color: #30D158; color: #30D158; }
        #tradeAheadBadge.left-ahead  { background: #2a1a1a; border-color: var(--accent); color: var(--accent); }
        #tradeAheadBadge.even        { background: #1a1a2a; border-color: #888; color: #888; }
        
        .note-red { color: #f44336; font-weight: 700; }
        .note-yellow { color: var(--accent); font-weight: 700; }

        .filled-pet-img { width: 50%; height: 50%; object-fit: contain; }

        /* Modals */
        .modal-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.8);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            padding: 20px;
        }

        .modal-card {
            background: #1a1a1a;
            border: 1px solid #333;
            border-radius: 16px;
            width: 100%;
            max-width: 800px;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .modal-header { padding: 20px; border-bottom: 1px solid #333; display: flex; justify-content: space-between; align-items: center; }
        .modal-body { padding: 20px; overflow-y: auto; flex: 1; }
        .modal-footer { padding: 20px; border-top: 1px solid #333; display: flex; justify-content: flex-end; gap: 10px; }

        .btn-action { padding: 10px 24px; border-radius: 10px; cursor: pointer; border: none; font-weight: 600; }
        .btn-primary { background: var(--accent); color: #000; }
        .btn-ghost { background: transparent; color: #fff; border: 1px solid #444; }

        .warn { color: var(--accent); background: rgba(48, 209, 88, 0.1); padding: 10px; border-radius: 8px; border: 1px solid rgba(48, 209, 88, 0.3); font-size: 0.9rem; }

        /* Responsive Table Container */
        .table-responsive {
            width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            margin-bottom: 1rem;
        }

        @media (max-width: 768px) {
            .modal-two-col {
                grid-template-columns: 1fr !important;
            }
            .modal-card {
                max-height: 95vh;
            }
        }
    