       :root { --bg-color: #121212; --card-bg: #1e1e1e; --text-main: #e0e0e0; --accent: #4caf50; }
        body { font-family: 'Outfit', sans-serif; background-color: var(--bg-color); color: var(--text-main); margin: 0; padding: 20px; }
        
        .container { max-width: 1200px; margin: 0 auto; }
        
        .header { text-align: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #333; }
        h1 { font-family: 'Rajdhani', sans-serif; color: var(--accent); text-transform: uppercase; margin: 0; }
        
        .meta-info { font-size: 0.95rem; color: #888; margin-top: 10px; display: flex; justify-content: center; gap: 10px; align-items: center; flex-wrap: wrap;}
        
        /* Control Panel */
        .controls-wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin-top: 20px;
        }

        .refresh-btn { background: var(--card-bg); border: 1px solid var(--accent); color: var(--accent); padding: 8px 20px; border-radius: 20px; cursor: pointer; font-family: 'Rajdhani', sans-serif; font-weight: bold; transition: 0.3s; }
        .refresh-btn:hover { background: var(--accent); color: #fff; }
        
        /* --- AUTO REFRESH SWITCH STYLE --- */
        .auto-refresh-box {
            display: flex;
            align-items: center;
            gap: 10px;
            background: #252525;
            padding: 5px 15px;
            border-radius: 20px;
            border: 1px solid #444;
        }
        
        .switch {
            position: relative;
            display: inline-block;
            width: 40px;
            height: 20px;
        }
        .switch input { opacity: 0; width: 0; height: 0; }
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0; left: 0; right: 0; bottom: 0;
            background-color: #555;
            transition: .4s;
            border-radius: 20px;
        }
        .slider:before {
            position: absolute;
            content: "";
            height: 14px;
            width: 14px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        input:checked + .slider { background-color: var(--accent); }
        input:checked + .slider:before { transform: translateX(20px); }
        
        .timer-text { font-family: monospace; color: #aaa; font-size: 0.9rem; width: 40px; text-align: right; }
        
        /* Grid & Card Styles */
        .cache-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
        .card { background: var(--card-bg); border-radius: 10px; overflow: hidden; border: 1px solid #333; transition: transform 0.2s; display: flex; flex-direction: column; cursor: help; position: relative; }
        .card:hover { transform: translateY(-5px); border-color: var(--accent); }
        .image-box { height: 160px; width: 100%; background: #252525; display: flex; align-items: center; justify-content: center; background-image: linear-gradient(45deg, #2a2a2a 25%, transparent 25%), linear-gradient(-45deg, #2a2a2a 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #2a2a2a 75%), linear-gradient(-45deg, transparent 75%, #2a2a2a 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0px; }
        .image-box img { max-width: 90%; max-height: 90%; object-fit: contain; }
        .card-body { padding: 15px; background: #1a1a1a; }
        .stats-row { display: flex; justify-content: space-between; align-items: center; width: 100%; font-size: 0.85rem; color: #aaa; margin-top: 8px; border-top: 1px solid #333; padding-top: 10px; gap: 15px; }
        .badge { font-weight: bold; padding: 2px 5px; border-radius: 4px; white-space: nowrap; }
        .badge-size { color: #2196f3; background: rgba(33, 150, 243, 0.1); }
        .header-hash { font-family: monospace; font-weight: bold; letter-spacing: 0.5px; }
        .header-hash.error { color: #f44336; background: rgba(244, 67, 54, 0.1); padding: 2px 8px; border-radius: 4px; }
        .header-hash.success { color: #4caf50; background: rgba(76, 175, 80, 0.1); padding: 2px 8px; border-radius: 4px; }
        .btn-row { display: flex; gap: 8px; margin-top: 15px; }
        .btn-action { flex: 1; text-align: center; padding: 8px 5px; font-size: 0.85rem; border-radius: 4px; cursor: pointer; border: 1px solid #444; background: #222; color: #ccc; text-decoration: none; transition: 0.2s; }
        .btn-action:hover { background: #333; color: #fff; border-color: #666; }
        .btn-dl { border-color: #2196f3; color: #2196f3; }
        .btn-dl:hover { background: #2196f3; color: #fff; }
        .icon-tiled { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.7); color: #fff; padding: 5px; border-radius: 5px; font-size: 0.8rem; }
        .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); }
        .modal-content { background-color: #1e1e1e; margin: 5% auto; padding: 20px; border: 1px solid #444; width: 90%; max-width: 800px; border-radius: 10px; color: #fff; }
        .close { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
        .close:hover { color: #fff; }
        .sprite-grid-container { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 20px; max-height: 60vh; overflow-y: auto; background: #121212; padding: 10px; border-radius: 5px; }
        .sprite-item { border: 1px solid #333; transition: 0.2s; background: #252525; cursor: pointer; }
        .sprite-item:hover { transform: scale(1.2); z-index: 10; border-color: var(--accent); box-shadow: 0 0 10px var(--accent); }
        .tip-text { font-size: 0.8rem; color: #aaa; margin-top: 5px; text-align: center; }
