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

    :root {
        --bg-primary: #0a0a0f;
        --bg-secondary: #0d0d14;
        --bg-card: #12121c;
        --bg-card-hover: #1a1a28;
        
        --neon-blue: #00f0ff;
        --neon-cyan: #00f0ff;  /* Added - same as neon-blue for consistency */
        --neon-pink: #ff00aa;
        --neon-purple: #bf00ff;
        --neon-blue-dim: rgba(0, 240, 255, 0.6);
        --neon-pink-dim: rgba(255, 0, 170, 0.6);
        --neon-purple-dim: rgba(191, 0, 255, 0.6);
        
        --glow-blue: 0 0 20px rgba(0, 240, 255, 0.5), 0 0 40px rgba(0, 240, 255, 0.3), 0 0 60px rgba(0, 240, 255, 0.1);
        --glow-pink: 0 0 20px rgba(255, 0, 170, 0.5), 0 0 40px rgba(255, 0, 170, 0.3), 0 0 60px rgba(255, 0, 170, 0.1);
        --glow-purple: 0 0 20px rgba(191, 0, 255, 0.5), 0 0 40px rgba(191, 0, 255, 0.3), 0 0 60px rgba(191, 0, 255, 0.1);
        
        --text-primary: #ffffff;
        --text-secondary: #8888aa;
        --text-muted: #555566;
        
        --success: #00ff88;
        --warning: #ffaa00;
        --error: #ff3366;
        
        --border: rgba(255, 255, 255, 0.08);
        --border-glow: rgba(0, 240, 255, 0.3);
    }

    body {
        font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
        background: var(--bg-primary);
        color: var(--text-primary);
        line-height: 1.6;
    }

    /* Animated Grid Background */
    .cyber-grid {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: -1;
        overflow: hidden;
        opacity: 0.4;
    }

    .cyber-grid::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: 
            linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
        background-size: 50px 50px;
        animation: gridMove 20s linear infinite;
    }

    .cyber-grid::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: 
            radial-gradient(ellipse at 20% 80%, rgba(191, 0, 255, 0.15) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 20%, rgba(0, 240, 255, 0.15) 0%, transparent 50%),
            radial-gradient(ellipse at 50% 50%, rgba(255, 0, 170, 0.08) 0%, transparent 60%);
        animation: gradientFloat 15s ease-in-out infinite;
    }

    @keyframes gridMove {
        0% { transform: translate(0, 0); }
        100% { transform: translate(50px, 50px); }
    }

    @keyframes gradientFloat {
        0%, 100% { transform: translate(0, 0) scale(1); }
        33% { transform: translate(2%, 3%) scale(1.02); }
        66% { transform: translate(-2%, 1%) scale(0.98); }
    }

    /* ========== HEADER SECTION ========== */
    .tool-header {
        text-align: center;
        padding: 60px 20px 50px;
        position: relative;
    }

    .tool-header h1 {
        font-size: 2.8rem;
        font-weight: 700;
        background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 20px;
        line-height: 1.2;
        text-shadow: 0 0 80px rgba(0, 240, 255, 0.5);
    }

    .tool-header .subtitle {
        color: var(--text-secondary);
        font-size: 1.15rem;
        max-width: 750px;
        margin: 0 auto 35px;
        line-height: 1.7;
    }

    .platform-tags {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        max-width: 900px;
        margin: 0 auto;
    }

    .platform-tag {
        padding: 8px 18px;
        background: rgba(0, 240, 255, 0.05);
        border: 1px solid rgba(0, 240, 255, 0.2);
        border-radius: 20px;
        font-size: 0.85rem;
        color: var(--neon-blue);
        font-weight: 500;
        transition: all 0.3s ease;
        cursor: default;
    }

    .platform-tag:hover {
        background: rgba(0, 240, 255, 0.1);
        border-color: var(--neon-blue);
        box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
        transform: translateY(-2px);
    }

    /* Alternate colors for variety */
    .platform-tag:nth-child(3n+2) {
        color: var(--neon-purple);
        border-color: rgba(191, 0, 255, 0.2);
        background: rgba(191, 0, 255, 0.05);
    }

    .platform-tag:nth-child(3n+2):hover {
        border-color: var(--neon-purple);
        box-shadow: 0 0 15px rgba(191, 0, 255, 0.3);
    }

    .platform-tag:nth-child(3n) {
        color: var(--neon-pink);
        border-color: rgba(255, 0, 170, 0.2);
        background: rgba(255, 0, 170, 0.05);
    }

    .platform-tag:nth-child(3n):hover {
        border-color: var(--neon-pink);
        box-shadow: 0 0 15px rgba(255, 0, 170, 0.3);
    }
    /* ========== END HEADER SECTION ========== */

    .tool-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 40px 20px;
    }

    /* Section Styling */
    .tool-section {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 35px;
        margin-bottom: 30px;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .tool-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
        opacity: 0.8;
    }

    .tool-section:hover {
        border-color: var(--border-glow);
        box-shadow: 0 0 40px rgba(0, 240, 255, 0.1);
    }

    .section-header {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 25px;
    }

    .section-icon {
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(191, 0, 255, 0.1));
        border: 1px solid var(--border-glow);
        border-radius: 12px;
        flex-shrink: 0;
    }

    .section-icon svg {
        width: 28px;
        height: 28px;
    }

    .section-title {
        font-size: 1.4rem;
        font-weight: 600;
        background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .section-subtitle {
        color: var(--text-secondary);
        font-size: 0.95rem;
        margin-top: 3px;
    }

    /* API Tabs */
    .api-tabs {
        display: flex;
        gap: 12px;
        margin-bottom: 30px;
        flex-wrap: wrap;
    }

    .api-tab {
        padding: 14px 28px;
        background: var(--bg-secondary);
        border: 2px solid var(--border);
        border-radius: 12px;
        color: var(--text-secondary);
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 600;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 10px;
        position: relative;
        overflow: hidden;
    }

    .api-tab::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
        transition: left 0.5s ease;
    }

    .api-tab:hover::before {
        left: 100%;
    }

    .api-tab:hover {
        border-color: var(--neon-blue-dim);
        color: var(--text-primary);
    }

    .api-tab.active {
        background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(191, 0, 255, 0.15));
        border-color: var(--neon-blue);
        color: var(--neon-blue);
        box-shadow: var(--glow-blue);
    }

    .api-tab-icon {
        width: 24px;
        height: 24px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 0.8rem;
    }

    .api-tab-icon.rawg {
        background: linear-gradient(135deg, #1a1a2e, #16213e);
        color: #fff;
    }

    .api-tab-icon.igdb {
        background: linear-gradient(135deg, #9147ff, #772ce8);
        color: #fff;
    }

    .api-tab .status-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--text-muted);
        margin-left: auto;
    }

    .api-tab.enabled .status-dot {
        background: var(--success);
        box-shadow: 0 0 10px var(--success);
    }

    /* API Panel */
    .api-panel {
        display: none;
        animation: panelFadeIn 0.4s ease;
    }

    .api-panel.active {
        display: block;
    }

    @keyframes panelFadeIn {
        from { opacity: 0; transform: translateY(15px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .provider-badge {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        padding: 15px 25px;
        background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(191, 0, 255, 0.05));
        border: 1px solid var(--border);
        border-radius: 12px;
        margin-bottom: 25px;
    }

    .provider-badge-icon {
        width: 45px;
        height: 45px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        font-weight: bold;
    }

    .provider-badge-icon.rawg {
        background: linear-gradient(135deg, #1a1a2e, #16213e);
        border: 1px solid #333;
    }

    .provider-badge-icon.igdb {
        background: linear-gradient(135deg, #9147ff, #772ce8);
    }

    .provider-badge-text h3 {
        font-size: 1.1rem;
        margin-bottom: 2px;
    }

    .provider-badge-text span {
        color: var(--text-secondary);
        font-size: 0.85rem;
    }

    /* Instructions Box */
    .instructions-box {
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 25px 30px;
        margin-bottom: 25px;
        position: relative;
    }

    .instructions-box::before {
        content: '';
        position: absolute;
        left: 0;
        top: 20px;
        bottom: 20px;
        width: 3px;
        background: linear-gradient(180deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
        border-radius: 3px;
    }

    .instructions-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
        color: var(--neon-blue);
        font-weight: 600;
        font-size: 1.05rem;
    }

    .instructions-header svg {
        width: 22px;
        height: 22px;
    }

    .instructions-box ol {
        margin-left: 25px;
        color: var(--text-secondary);
    }

    .instructions-box ol li {
        margin-bottom: 14px;
        line-height: 1.7;
        padding-left: 8px;
    }

    .instructions-box ol li::marker {
        color: var(--neon-purple);
        font-weight: bold;
    }

    .instructions-box ol li strong {
        color: var(--text-primary);
    }

    .instructions-box a {
        color: var(--neon-pink);
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .instructions-box a:hover {
        text-shadow: 0 0 10px var(--neon-pink);
    }

    .instructions-box code {
        background: var(--bg-primary);
        padding: 3px 10px;
        border-radius: 6px;
        font-size: 0.9rem;
        border: 1px solid var(--border);
        color: var(--neon-blue);
    }

    .instructions-box ul {
        margin: 10px 0 10px 25px;
        color: var(--text-secondary);
    }

    .instructions-box ul li {
        margin-bottom: 8px;
    }

    .tip-box {
        background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), rgba(0, 240, 255, 0.05));
        border: 1px solid rgba(0, 255, 136, 0.3);
        border-radius: 10px;
        padding: 15px 18px;
        margin-top: 20px;
        font-size: 0.9rem;
        color: var(--success);
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .tip-box svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        margin-top: 2px;
    }

    /* Input Fields */
    .input-group {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
        margin-bottom: 15px;
    }

    .input-wrapper {
        flex: 1;
        min-width: 220px;
    }

    .input-wrapper label {
        display: block;
        margin-bottom: 10px;
        color: var(--text-secondary);
        font-size: 0.9rem;
        font-weight: 500;
    }

    .tool-container .input-field {
        width: 100% !important;
        padding: 16px 20px !important;
        background: var(--bg-primary) !important;
        border: 2px solid var(--border) !important;
        color: var(--text-primary) !important;
    }

    .input-field:focus {
        outline: none;
        border-color: var(--neon-blue);
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    }

    .input-field::placeholder {
        color: var(--text-muted);
    }

    /* Buttons */
    .btn {
        padding: 16px 32px;
        border: none;
        border-radius: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        position: relative;
        overflow: hidden;
    }

    .btn svg {
        width: 20px;
        height: 20px;
    }

    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
    }

    .btn:hover::before {
        left: 100%;
    }

    .tool-container .btn-primary {
        background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)) !important;
        color: #000 !important;
    }

    .btn-primary:hover:not(:disabled) {
        transform: translateY(-3px);
        box-shadow: var(--glow-blue);
    }

    .btn-primary:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        transform: none;
    }

    .btn-secondary {
        background: transparent;
        border: 2px solid var(--neon-pink);
        color: var(--neon-pink);
    }

    .btn-secondary:hover {
        background: rgba(255, 0, 170, 0.1);
        box-shadow: var(--glow-pink);
    }

    .btn-large {
        padding: 22px 45px;
        font-size: 1.15rem;
        border-radius: 16px;
    }

    .btn-rawg {
        background: linear-gradient(135deg, #2a2a4a, #1a1a2e);
        color: #fff;
        border: 1px solid #444;
    }

    .btn-rawg:hover {
        border-color: var(--neon-blue);
    }

    .btn-igdb {
        background: linear-gradient(135deg, #9147ff, #6b2fb8);
        color: #fff;
    }

    /* Status Messages */
    .status-message {
        margin-top: 15px;
        padding: 14px 20px;
        border-radius: 10px;
        font-size: 0.95rem;
        display: none;
        align-items: center;
        gap: 10px;
    }

    .status-message.show {
        display: flex;
    }

    .status-message svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .status-message.success {
        background: rgba(0, 255, 136, 0.1);
        border: 1px solid var(--success);
        color: var(--success);
    }

    .status-message.error {
        background: rgba(255, 51, 102, 0.1);
        border: 1px solid var(--error);
        color: var(--error);
    }

    .status-message.loading {
        background: rgba(0, 240, 255, 0.1);
        border: 1px solid var(--neon-blue);
        color: var(--neon-blue);
    }

    /* Enabled APIs Summary */
    .enabled-apis {
        display: none;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 25px;
        padding-top: 25px;
        border-top: 1px solid var(--border);
        align-items: center;
    }

    .enabled-apis.show {
        display: flex;
    }

    .enabled-apis-label {
        color: var(--text-secondary);
        font-size: 0.9rem;
    }

    .enabled-api-badge {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 18px;
        background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 240, 255, 0.05));
        border: 1px solid var(--success);
        border-radius: 25px;
        font-size: 0.9rem;
        color: var(--success);
        font-weight: 600;
    }

    .enabled-api-badge svg {
        width: 16px;
        height: 16px;
    }
    
    .api-mode-option {
        transition: all 0.3s ease !important;
    }

    .api-mode-option:hover {
        border-color: var(--neon-purple-dim) !important;
    }

    .api-mode-option:has(input:checked) {
        border-color: var(--neon-purple) !important;
        background: rgba(191, 0, 255, 0.08) !important;
        box-shadow: 0 0 15px rgba(191, 0, 255, 0.15);
    }

    /* Upload Section */
    .upload-area {
        text-align: center;
        padding: 20px;
    }

    .upload-visual {
        width: 120px;
        height: 120px;
        margin: 0 auto 30px;
        position: relative;
    }

    .upload-visual svg {
        width: 100%;
        height: 100%;
    }

    .upload-visual::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 150%;
        height: 150%;
        transform: translate(-50%, -50%);
        background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
        animation: uploadPulse 2s ease-in-out infinite;
    }

    @keyframes uploadPulse {
        0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
        50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
    }

    .upload-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
        background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .upload-subtitle {
        color: var(--text-secondary);
        margin-bottom: 35px;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .upload-buttons {
        display: flex;
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 35px;
    }

    .file-input-hidden {
        display: none;
    }

    .security-badge {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), rgba(0, 240, 255, 0.05));
        border: 1px solid rgba(0, 255, 136, 0.3);
        padding: 15px 25px;
        border-radius: 12px;
        font-size: 0.9rem;
        color: var(--success);
        width: max-content;       /* Shrinks the box to fit the text width */
        max-width: 90%;           /* Ensures it doesn't break on mobile */
        margin: 20px auto;        /* Centers the whole badge horizontally */
        text-align: left;         /* Keeps the text inside pinned to the lock */
    }

    .security-badge svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        margin-top: 2px;       
    }

    /* Progress Section */
    .progress-section {
        display: none;
    }

    .progress-section.active {
        display: block;
    }

    .progress-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .progress-title {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .progress-percent {
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--neon-blue);
        text-shadow: 0 0 20px var(--neon-blue);
    }

    .progress-bar-container {
        height: 14px;
        background: var(--bg-secondary);
        border-radius: 7px;
        overflow: hidden;
        border: 1px solid var(--border);
    }

    .progress-bar {
        height: 100%;
        background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
        border-radius: 7px;
        transition: width 0.3s ease;
        position: relative;
        width: 0%;
        box-shadow: 0 0 20px var(--neon-blue);
    }

    .progress-bar::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        animation: progressShimmer 1.5s infinite;
    }

    @keyframes progressShimmer {
        0% { transform: translateX(-100%); }
        100% { transform: translateX(100%); }
    }

    .current-file {
        margin-top: 20px;
        padding: 15px 20px;
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        border-radius: 10px;
        font-size: 0.95rem;
        color: var(--text-secondary);
        word-break: break-all;
    }

    .current-file strong {
        color: var(--text-primary);
    }

    .progress-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
        margin-top: 30px;
    }

    .stat-card {
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        padding: 25px 20px;
        border-radius: 14px;
        text-align: center;
        transition: all 0.3s ease;
    }

    .stat-card:hover {
        border-color: var(--neon-blue-dim);
        transform: translateY(-3px);
    }

    .stat-value {
        font-size: 2.2rem;
        font-weight: 700;
        background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .stat-label {
        color: var(--text-secondary);
        font-size: 0.85rem;
        margin-top: 8px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* Results Section */
    .results-section {
        display: none;
    }

    .results-section.active {
        display: block;
    }

    .results-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
        margin-bottom: 35px;
    }

    .results-title {
        font-size: 1.8rem;
        background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .results-actions {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }

    /* Filter Tabs */
    .filter-tabs {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin-bottom: 25px;
    }

    .filter-tab {
        padding: 12px 22px;
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        border-radius: 25px;
        color: var(--text-secondary);
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.9rem;
        font-weight: 500;
    }

    .filter-tab:hover {
        border-color: var(--neon-purple-dim);
        color: var(--text-primary);
    }

    .filter-tab.active {
        background: linear-gradient(135deg, rgba(191, 0, 255, 0.2), rgba(255, 0, 170, 0.1));
        border-color: var(--neon-purple);
        color: var(--neon-purple);
        box-shadow: 0 0 15px rgba(191, 0, 255, 0.3);
    }

    .filter-tab .count {
        background: rgba(255,255,255,0.15);
        padding: 3px 10px;
        border-radius: 12px;
        margin-left: 8px;
        font-size: 0.8rem;
    }

    /* Search Box */
    .search-box {
        margin-bottom: 30px;
    }

    .search-wrapper {
        position: relative;
    }

    .search-wrapper input {
        width: 100%;
        padding: 18px 25px 18px 55px;
        background: var(--bg-secondary);
        border: 2px solid var(--border);
        border-radius: 14px;
        color: var(--text-primary);
        font-size: 1rem;
        transition: all 0.3s ease;
    }

    .search-wrapper input:focus {
        outline: none;
        border-color: var(--neon-pink);
        box-shadow: 0 0 25px rgba(255, 0, 170, 0.2);
    }

    .search-wrapper input::placeholder {
        color: var(--text-muted);
    }

    .search-icon {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        width: 22px;
        height: 22px;
        color: var(--text-muted);
    }

    /* Game Cards Grid */
    .games-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
    }

    .game-card {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 18px;
        overflow: hidden;
        transition: all 0.4s ease;
        cursor: pointer;
        position: relative;
    }

    .game-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 18px;
        padding: 1px;
        background: linear-gradient(135deg, transparent, transparent);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        transition: all 0.4s ease;
        pointer-events: none;
    }

    .game-card:hover {
        transform: translateY(-8px);
        border-color: transparent;
    }

    .game-card:hover::before {
        background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
    }

    .game-card:hover {
        box-shadow: 
            0 25px 50px rgba(0, 0, 0, 0.4),
            0 0 40px rgba(0, 240, 255, 0.15);
    }

    .game-card-image {
        width: 100%;
        height: 190px;
        background: var(--bg-secondary);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
    }

    .game-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .game-card:hover .game-card-image img {
        transform: scale(1.08);
    }

    .game-card-image .placeholder {
        width: 60px;
        height: 60px;
        opacity: 0.2;
    }

    .match-badge {
        position: absolute;
        top: 12px;
        right: 12px;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .match-badge.high {
        background: var(--success);
        color: #000;
        box-shadow: 0 0 15px var(--success);
    }

    .match-badge.medium {
        background: var(--warning);
        color: #000;
    }

    .match-badge.low {
        background: var(--error);
        color: #fff;
    }

    .match-badge.none {
        background: var(--text-muted);
        color: #fff;
    }

    .source-badge {
        position: absolute;
        top: 12px;
        left: 12px;
        padding: 5px 12px;
        border-radius: 8px;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .source-badge.rawg {
        background: rgba(26, 26, 46, 0.95);
        color: #fff;
        border: 1px solid #444;
    }

    .source-badge.igdb {
        background: rgba(145, 71, 255, 0.95);
        color: #fff;
    }

    .game-card-content {
        padding: 22px;
    }

    .game-platform {
        display: inline-block;
        padding: 5px 14px;
        background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(191, 0, 255, 0.1));
        border: 1px solid var(--border-glow);
        border-radius: 8px;
        font-size: 0.8rem;
        color: var(--neon-blue);
        margin-bottom: 12px;
        font-weight: 600;
    }

    .game-title {
        font-size: 1.15rem;
        font-weight: 600;
        margin-bottom: 10px;
        line-height: 1.4;
        color: var(--text-primary);
    }

    .game-original-name {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        color: var(--text-muted);
        font-size: 0.8rem;
        margin-bottom: 15px;
        word-break: break-all;
        line-height: 1.4;
    }

    .game-original-name svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .game-meta {
        display: flex;
        gap: 18px;
        flex-wrap: wrap;
        margin-bottom: 15px;
    }

    .game-meta-item {
        display: flex;
        align-items: center;
        gap: 6px;
        color: var(--text-secondary);
        font-size: 0.85rem;
    }

    .game-meta-item svg {
        width: 16px;
        height: 16px;
        color: var(--neon-purple);
    }

    .game-genres {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .genre-tag {
        padding: 5px 12px;
        background: rgba(255, 0, 170, 0.1);
        border: 1px solid rgba(255, 0, 170, 0.3);
        border-radius: 15px;
        font-size: 0.75rem;
        color: var(--neon-pink);
        font-weight: 500;
    }

    .no-results {
        text-align: center;
        padding: 80px 20px;
        color: var(--text-secondary);
        grid-column: 1 / -1;
    }

    .no-results svg {
        width: 80px;
        height: 80px;
        margin-bottom: 25px;
        opacity: 0.3;
    }

    .no-results h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
        color: var(--text-primary);
    }

    /* Spinner */
    .spinner {
        display: inline-block;
        width: 22px;
        height: 22px;
        border: 3px solid var(--border);
        border-top-color: var(--neon-blue);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }

    /* Toast Notifications */
    .toast-container {
        position: fixed;
        bottom: 25px;
        right: 25px;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .toast {
        background: var(--bg-card);
        border: 1px solid var(--border);
        padding: 16px 25px;
        border-radius: 14px;
        animation: toastSlide 0.4s ease;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 500;
    }

    .toast svg {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }

    .toast.success {
        border-color: var(--success);
        color: var(--success);
    }

    .toast.error {
        border-color: var(--error);
        color: var(--error);
    }

    @keyframes toastSlide {
        from { opacity: 0; transform: translateX(100%); }
        to { opacity: 1; transform: translateX(0); }
    }

    /* Modal */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        padding: 20px;
    }

    .modal-overlay.active {
        display: flex;
    }

    .modal {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 24px;
        max-width: 620px;
        width: 100%;
        max-height: 88vh;
        overflow-y: auto;
        position: relative;
    }

    .modal::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
    }

    .modal-header {
        padding: 28px 30px;
        border-bottom: 1px solid var(--border);
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
        background: var(--bg-card);
        z-index: 10;
    }

    .modal-header h3 {
        font-size: 1.25rem;
        padding-right: 20px;
        background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .modal-close {
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        color: var(--text-primary);
        font-size: 1.4rem;
        cursor: pointer;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: all 0.3s ease;
    }

    .modal-close:hover {
        border-color: var(--neon-pink);
        color: var(--neon-pink);
    }

    .modal-body {
        padding: 30px;
    }

    .modal-image {
        width: 100%;
        border-radius: 16px;
        margin-bottom: 30px;
        border: 1px solid var(--border);
    }

    .modal-info-row {
        margin-bottom: 20px;
    }

    .modal-info-row strong {
        display: block;
        color: var(--text-secondary);
        font-size: 0.85rem;
        margin-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .modal-info-row code {
        background: var(--bg-secondary);
        padding: 12px 16px;
        border-radius: 10px;
        display: block;
        word-break: break-all;
        font-size: 0.95rem;
        border: 1px solid var(--border);
        color: var(--text-primary);
    }

    .modal-error-box {
        padding: 25px;
        background: rgba(255, 51, 102, 0.1);
        border: 1px solid var(--error);
        border-radius: 14px;
        margin-top: 20px;
        color: var(--error);
    }

    .modal-error-box strong {
        display: block;
        margin-bottom: 8px;
    }

    /* ============================================
       ROM PATH CONFIGURATION SECTION
       ============================================ */

    .rom-path-section {
        background: linear-gradient(135deg, rgba(0, 240, 255, 0.03), rgba(191, 0, 255, 0.03));
        border: 1px solid rgba(0, 240, 255, 0.15);
        border-radius: 16px;
        padding: 24px 28px;
        margin: 30px 0;
        position: relative;
        overflow: hidden;
        text-align: left;
    }

    .rom-path-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
        opacity: 0.6;
    }

    .rom-path-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 12px;
    }

    .rom-path-title {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--neon-cyan);
    }

    .rom-path-title svg {
        opacity: 0.8;
    }

    .rom-path-hint {
        font-size: 0.8rem;
        color: var(--text-muted);
        background: rgba(0, 240, 255, 0.08);
        padding: 4px 12px;
        border-radius: 20px;
        border: 1px solid rgba(0, 240, 255, 0.15);
    }

    .rom-path-description {
        margin-bottom: 18px;
    }

    .rom-path-description p {
        color: var(--text-secondary);
        font-size: 0.9rem;
        line-height: 1.6;
        margin: 0;
    }

    .rom-path-description strong {
        color: var(--text-primary);
    }

    .rom-path-input-group {
        display: flex;
        gap: 12px;
        align-items: stretch;
    }

    .rom-path-input-wrapper {
        flex: 1;
        position: relative;
        display: flex;
        align-items: center;
    }

    .rom-path-input-icon {
        position: absolute;
        left: 16px;
        width: 20px;
        height: 20px;
        color: var(--text-muted);
        pointer-events: none;
        z-index: 1;
    }

    .rom-path-input {
        width: 100%;
        padding: 14px 16px 14px 48px;
        background: var(--bg-primary);
        border: 1px solid var(--border);
        border-radius: 10px;
        color: var(--text-primary);
        font-size: 0.95rem;
        font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
        transition: all 0.3s ease;
    }

    .rom-path-input:focus {
        outline: none;
        border-color: var(--neon-cyan);
        box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1), 0 0 20px rgba(0, 240, 255, 0.1);
    }

    .rom-path-input::placeholder {
        color: var(--text-muted);
        opacity: 0.7;
    }

    .btn-save-path {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 14px 24px;
        background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(0, 240, 255, 0.05));
        border: 1px solid rgba(0, 240, 255, 0.3);
        border-radius: 10px;
        color: var(--neon-cyan);
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
    }

    .btn-save-path:hover {
        background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(0, 240, 255, 0.1));
        border-color: var(--neon-cyan);
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
        transform: translateY(-1px);
    }

    .btn-save-path svg {
        width: 18px;
        height: 18px;
    }

    .rom-path-status {
        margin-top: 12px;
        padding: 10px 14px;
        border-radius: 8px;
        font-size: 0.88rem;
        display: none;
    }

    .rom-path-status:not(:empty) {
        display: block;
    }

    .rom-path-status.saved {
        background: rgba(0, 255, 136, 0.08);
        border: 1px solid rgba(0, 255, 136, 0.2);
        color: var(--success);
    }

    .rom-path-status:not(.saved) {
        background: rgba(255, 170, 0, 0.08);
        border: 1px solid rgba(255, 170, 0, 0.2);
        color: var(--warning);
    }

    /* Folder Structure Info (shown after file selection) */
    .folder-structure-info {
        margin-top: 20px;
    }

    .folder-structure-card {
        background: rgba(0, 240, 255, 0.05);
        border: 1px solid rgba(0, 240, 255, 0.2);
        border-radius: 12px;
        padding: 18px 20px;
    }

    .structure-header {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 14px;
    }

    .structure-icon {
        font-size: 1.8rem;
        line-height: 1;
    }

    .structure-title {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .structure-title strong {
        color: var(--text-primary);
        font-size: 1.05rem;
    }

    .structure-count {
        color: var(--text-secondary);
        font-size: 0.85rem;
    }

    .structure-subfolders {
        margin: 14px 0;
    }

    .subfolder-label {
        color: var(--text-secondary);
        font-size: 0.8rem;
        display: block;
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .subfolder-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .subfolder-tag {
        background: linear-gradient(135deg, rgba(191, 0, 255, 0.15), rgba(191, 0, 255, 0.08));
        border: 1px solid rgba(191, 0, 255, 0.3);
        color: var(--neon-purple);
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 0.85rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .subfolder-tag small {
        opacity: 0.7;
        font-weight: 400;
    }

    .subfolder-more {
        color: var(--text-muted);
        font-size: 0.85rem;
        padding: 6px 10px;
        font-style: italic;
    }

    .structure-help {
        display: flex;
        gap: 12px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 14px 16px;
        margin-top: 14px;
    }

    .help-icon {
        font-size: 1.3rem;
        flex-shrink: 0;
        line-height: 1;
    }

    .help-text {
        font-size: 0.88rem;
        color: var(--text-secondary);
        line-height: 1.6;
    }

    .help-text strong {
        color: var(--text-primary);
        display: block;
        margin-bottom: 4px;
    }

    .help-text code {
        background: rgba(0, 0, 0, 0.3);
        padding: 3px 8px;
        border-radius: 4px;
        font-size: 0.82rem;
        color: var(--neon-cyan);
        font-family: 'JetBrains Mono', 'Fira Code', monospace;
    }

    /* Path Preview */
    .path-preview {
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 14px 18px;
        margin-top: 16px;
    }

    .preview-header {
        color: var(--text-secondary);
        font-size: 0.82rem;
        margin-bottom: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .preview-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 0;
        font-size: 0.88rem;
        flex-wrap: wrap;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    .preview-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .preview-file {
        color: var(--text-primary);
        font-weight: 500;
        font-family: 'JetBrains Mono', 'Fira Code', monospace;
        font-size: 0.85rem;
    }

    .preview-arrow {
        color: var(--neon-purple);
        font-weight: bold;
    }

    .preview-path {
        background: rgba(0, 240, 255, 0.08);
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 0.82rem;
        color: var(--neon-cyan);
        word-break: break-all;
        font-family: 'JetBrains Mono', 'Fira Code', monospace;
        border: 1px solid rgba(0, 240, 255, 0.15);
    }

    /* ROM Path Examples */
    .rom-path-examples {
        margin-top: 18px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .example-header {
        display: flex;
        align-items: center;
        gap: 6px;
        color: var(--text-muted);
        font-size: 0.8rem;
        margin-bottom: 12px;
    }

    .example-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
    }

    .example-item {
        background: rgba(0, 0, 0, 0.15);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 12px 14px;
    }

    .example-item code {
        display: block;
        color: var(--neon-cyan);
        font-size: 0.88rem;
        font-family: 'JetBrains Mono', 'Fira Code', monospace;
        margin-bottom: 6px;
    }

    .example-subfolders {
        display: block;
        color: var(--text-muted);
        font-size: 0.78rem;
    }

    .example-subfolders::before {
        content: '└─ ';
        opacity: 0.5;
    }

    /* ============================================
       RESPONSIVE STYLES
       ============================================ */
    
    @media (max-width: 768px) {
        .tool-header h1 {
            font-size: 1.8rem;
        }
        
        .tool-header .subtitle {
            font-size: 1rem;
        }
        
        .platform-tag {
            padding: 6px 14px;
            font-size: 0.8rem;
        }

        .tool-container {
            padding: 20px 15px;
        }

        .tool-section {
            padding: 25px 20px;
        }

        .section-title {
            font-size: 1.2rem;
        }

        .upload-buttons {
            flex-direction: column;
            align-items: stretch;
        }

        .btn-large {
            width: 100%;
        }

        .games-grid {
            grid-template-columns: 1fr;
        }

        .results-header {
            flex-direction: column;
            align-items: flex-start;
        }

        .results-actions {
            width: 100%;
        }

        .results-actions .btn {
            flex: 1;
        }

        .api-tabs {
            flex-direction: column;
        }

        .api-tab {
            width: 100%;
            justify-content: flex-start;
        }

        .filter-tabs {
            flex-wrap: nowrap;
            overflow-x: auto;
            padding-bottom: 10px;
        }

        .filter-tab {
            flex-shrink: 0;
        }

        /* ROM Path responsive */
        .rom-path-section {
            padding: 20px;
        }

        .rom-path-input-group {
            flex-direction: column;
        }

        .rom-path-header {
            flex-direction: column;
            align-items: flex-start;
        }

        .example-grid {
            grid-template-columns: 1fr;
        }
    }