        /* GOOGLE SEARCH UI OVERRIDES */
        body { background-color: #ffffff; color: #202124; font-family: 'Roboto', sans-serif; overflow-y: scroll; }
        
        .search-header {
            position: sticky; top: 0; z-index: 100;
            background: #fff; border-bottom: 1px solid #ebebeb;
            padding: 20px 20px 0 30px;
        }
        .search-top-row { display: flex; align-items: center; gap: 25px; margin-bottom: 20px; }
        .mini-logi{ width: 92px; height: 30px; object-fit: contain; border-radius: 100%; border: 2px solid orangered;} 
        
        .g-search-bar {
            flex-grow: 1; max-width: 690px;
            display: flex; align-items: center;
            background: #fff; border: 1px solid #dfe1e5;
            box-shadow: none; border-radius: 24px;
            padding: 0 15px; height: 44px;
            transition: all 0.2s;
        }
        .g-search-bar:hover, .g-search-bar:focus-within {
            background: #fff; box-shadow: 0 1px 6px rgba(32,33,36,0.28);
            border-color: rgba(223,225,229,0);
        }
        .g-search-bar input {
            flex-grow: 1; border: none; outline: none;
            font-size: 16px; color: #202124; background: transparent;
            margin: 0; padding: 0 10px; height: 100%;
        }
        .search-btn { background: none; border: none; cursor: pointer; color: #4285f4; padding: 0 10px; }

        /* Tabs */
        .g-tabs { display: flex; gap: 26px; margin-left: 117px; overflow-x: auto; scrollbar-width: none; }
        .g-tab {
            padding: 0 2px 12px 2px; color: #5f6368; font-size: 14px;
            cursor: pointer; display: flex; align-items: center; gap: 6px;
            border-bottom: 3px solid transparent; font-weight: 500; white-space: nowrap;
        }
        .g-tab.active { color: #1a73e8; border-bottom-color: #1a73e8; }
        .g-tab:hover { color: #202124; }

        /* Results */
        .g-container { max-width: 1200px; padding: 0 20px; margin-left: 130px; margin-top: 15px; }
        .g-stats { font-size: 14px; color: #70757a; margin-bottom: 20px; }
        .g-results-col { max-width: 650px; }

        .g-result { margin-bottom: 30px; animation: fadeIn 0.4s ease; }
        .g-url-line { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
        .g-favicon-circle { width: 28px; height: 28px; background: #f1f3f4; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
        .g-favicon-circle img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
        
        .g-site-name { font-size: 14px; color: #202124; }
        .g-site-url { font-size: 12px; color: #5f6368; }
        
        .g-title { display: block; font-size: 20px; color: #1a0dab; text-decoration: none; line-height: 1.3; font-weight: 400; }
        .g-title:hover { text-decoration: underline; }
        .g-desc { color: #4d5156; font-size: 14px; line-height: 1.58; margin-top: 4px; word-wrap: break-word; }
        .g-tag { background: #f1f3f4; color: #5f6368; font-size: 11px; padding: 2px 8px; border-radius: 12px; border: 1px solid #dfe1e5; margin-right: 5px; margin-top: 5px; display: inline-block;}
        .g-desc { 
            color: #4d5156; 
            font-size: 14px; 
            line-height: 1.58; 
            margin-top: 4px; 
            
            /* Multi-line Truncation Magic */
            display: -webkit-box;
            -webkit-line-clamp: 2; /* Limit to 2 lines */
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            word-wrap: break-word;
        }
        .verified-badge { margin-left: 5px; width: 16px; height: 16px; vertical-align: middle; }

        /* --- Image Grid Styles --- */
.img-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding-bottom: 40px;
}

.img-item {
    position: relative;
    height: 200px; /* Fixed height for uniformity */
    border-radius: 12px;
    overflow: hidden;
    background-color: #f8f9fa; /* Placeholder color */
    border: 1px solid #dadce0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.img-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers area without stretching */
    display: block;
    transition: transform 0.3s ease;
}

.img-item:hover img {
    transform: scale(1.05); /* Subtle zoom effect */
}

.img-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* Gradient fade for text readability */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    color: #fff;
    padding: 24px 12px 10px 12px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

        /* --- Professional AI Mode Styles --- */
.ai-chat-feed {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 10px 0 140px 0;
}

.ai-query-bubble-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 8px;
}

.ai-query-bubble {
    background: #f1f3f4;
    color: #202124;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 24px;
    border: 1px solid #dfe1e5;
    display: inline-block;
    max-width: 80%;
    word-break: break-word;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    animation: fadeIn 0.3s ease;
}

.ai-response-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    animation: fadeIn 0.4s ease;
}

.ai-searching-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 16px;
    padding: 12px 20px;
    max-width: fit-content;
    animation: pulseSearching 1.5s infinite ease-in-out;
}

@keyframes pulseSearching {
    0% { opacity: 0.8; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(0.98); }
}

.ai-searching-text {
    font-size: 14px;
    color: #5f6368;
    font-weight: 500;
}

.ai-searching-targets {
    display: flex;
    gap: 6px;
    align-items: center;
}

.ai-searching-target-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #e8f0fe;
    color: #1a73e8;
}

.ai-searching-target-tag.pulse {
    animation: tagPulse 1s infinite alternate;
}

@keyframes tagPulse {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

.ai-typing-bubble {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f1f3f4;
    border-radius: 16px;
    padding: 12px 18px;
    width: fit-content;
    margin-left: 28px;
}

.ai-typing-dot {
    width: 6px;
    height: 6px;
    background: #9333ea;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.ai-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.ai-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

.ai-split-layout {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 32px;
    width: 100%;
}

@media (max-width: 800px) {
    .ai-split-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.ai-left-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-right-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 600;
    color: #9333ea;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.ai-sparkle-icon {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rotateSparkle 3s infinite linear;
}

@keyframes rotateSparkle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ai-text-content {
    font-size: 15px;
    line-height: 1.7;
    color: #202124;
}

.ai-text-content p {
    margin-bottom: 12px;
}

.ai-text-content ul, .ai-text-content ol {
    margin: 12px 0;
    padding-left: 20px;
}

.ai-text-content li {
    margin-bottom: 6px;
}

.ai-text-content strong {
    color: #000000;
    font-weight: 600;
}

.ai-highlight-phrase {
    background: rgba(147, 51, 234, 0.08);
    border-radius: 4px;
    padding: 1px 4px;
    color: #9333ea;
    font-weight: 500;
}

.ai-actions-row {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 8px;
}

.ai-action-btn {
    background: none;
    border: none;
    color: #70757a;
    cursor: pointer;
    font-size: 14px;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    transition: all 0.2s;
}

.ai-action-btn:hover {
    background: #f1f3f4;
    color: #202124;
}

.ai-action-btn.active {
    color: #1a73e8;
}

.ai-sources-title {
    font-size: 13px;
    font-weight: 600;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ai-sources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (max-width: 500px) {
    .ai-sources-grid {
        grid-template-columns: 1fr;
    }
}

.ai-source-card {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.ai-source-card:hover {
    background: #f8f9fa;
    border-color: #bdc1c6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32,33,36,0.08);
}

.ai-source-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-source-card-favicon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    object-fit: cover;
}

.ai-source-card-site {
    font-size: 11px;
    color: #5f6368;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-source-card-title {
    font-size: 13px;
    font-weight: 500;
    color: #1a0dab;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ai-source-card-snippet {
    font-size: 11px;
    color: #4d5156;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ai-sources-sites-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f3f4;
    color: #3c4043;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid #dadce0;
    max-width: fit-content;
    margin-top: 4px;
}

.ai-ask-bar-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255,255,255,1) 75%, rgba(255,255,255,0));
    padding: 24px 20px 32px 20px;
    z-index: 999;
    display: flex;
    justify-content: center;
}

.ai-ask-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe1e5;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-radius: 28px;
    width: 100%;
    max-width: 680px;
    height: 52px;
    padding: 0 8px 0 16px;
    gap: 12px;
    transition: all 0.2s;
}

.ai-ask-bar:hover, .ai-ask-bar:focus-within {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #dadce0;
}

.ai-ask-bar input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #202124;
    background: transparent;
    height: 100%;
}

.ai-ask-btn-plus, .ai-ask-btn-mic, .ai-ask-btn-send {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ai-ask-btn-plus {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f3f4;
    color: #5f6368;
    font-size: 14px;
}

.ai-ask-btn-plus:hover {
    background: #e8eaed;
    color: #202124;
}

.ai-ask-btn-mic {
    color: #5f6368;
    font-size: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.ai-ask-btn-mic:hover {
    background: #f1f3f4;
    color: #202124;
}

.ai-ask-btn-send {
    background: #9333ea;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 14px;
}

.ai-ask-btn-send:hover {
    background: #7e22ce;
    transform: scale(1.05);
}

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

body.ai-mode-active .g-container {
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
    margin-top: 20px;
}
body.ai-mode-active .g-stats {
    display: none;
}

/* --- NEW: Rich User Card Styles for Search --- */
.user-rich-card {
    background: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s;
}
.user-rich-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.user-card-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.user-card-avatar {
    max-width: 44px;
    min-width: 40px;
    max-height: 44px;
    min-height: 40px;
    border-radius: 100%;
    object-fit: cover;
    border: 2px solid #f7ba9f54;
}
.user-card-info { flex-grow: 1; }
.user-card-name {
    font-size: 18px;
    color: #1a0dab;
    text-decoration: none;
    font-weight: 600;
    display: block;
}
.user-card-name:hover { text-decoration: underline; }
.user-card-role {
    font-size: 13px;
    color: #70757a;
    margin-bottom: 6px;
}
.user-card-bio {
    font-size: 14px;
    color: #4d5156;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.u-tag {
    background: #f1f3f4;
    color: #5f6368;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-right: 5px;
    display: inline-block;
}
.user-card-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #dadce0;
    color: #1a73e8;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    align-self: center;
}
.user-card-btn:hover { background: #f8f9fa; }

@media (max-width: 600px) {
    .user-card-layout { flex-wrap: wrap; }
    .user-card-btn { width: 100%; text-align: center; margin-top: 10px; }
}

@media(max-width: 900px) {
    .g-tabs, .g-container { margin-left: 0; }
    .search-header { padding: 15px; }
    .g-search-bar { margin-top: 10px; }
    .search-top-row { flex-wrap: wrap; gap: 10px; }
}

/* --- Google Search Customization (The "Screenshot" Look) --- */
.google-results-container {
    position: relative; 
    width: 100%;
    max-width: 100%; 
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #dfe1e5;
    padding: 20px;
    margin-top: -150px;
    margin-bottom: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); 
}

.gsc-control-cse, .gs-title, .gs-snippet, .gs-visibleUrl {
    font-family: 'Roboto', sans-serif !important;
}

.gsc-control-cse {
    padding: 0 !important;
    border: none !important;
    background-color: transparent !important;
}

.gsc-tabsArea, 
.gsc-clear-button, 
.gsc-search-box { 
    display: none !important; 
}

.gsc-webResult.gsc-result {
    padding: 15px 0 !important;
    border-bottom: 1px solid #eee !important;
    background-color: transparent !important;
    margin-bottom: 0 !important;
}

.gsc-search-box, .gsc-tabsArea, .gsc-clear-button {
    display: none !important;
}

.gcsc-branding {
    display: none !important;
}

.gs-title {
    height: auto !important;
    text-decoration: none !important;
}
.gs-title a {
    color: #1a0dab !important;
    font-size: 18px !important;
    font-weight: 400 !important;
}
.gs-title a:hover {
    text-decoration: underline !important;
}
.gs-title b { color: #1a0dab !important; font-weight: 400 !important; }

.gsc-url-top {
    padding: 0 !important;
    margin: 4px 0 !important;
}
.gs-visibleUrl {
    color: #202124 !important;
    font-size: 14px !important;
}

.gsc-table-result .gsc-table-cell-snippet-close {
    color: #4d5156 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    padding-top: 4px !important;
}
.gs-snippet b { color: #4d5156 !important; font-weight: 700 !important; }

.gsc-adBlock,           
.gsc-result-info-container, 
.gsc-cursor-box {       
    margin-top: 20px !important;
}

.gsc-wrapper {
    background: transparent !important;
}

.gsc-cursor-page {
    color: #1a0dab !important;
    font-size: 16px !important;
    margin-right: 15px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    padding: 5px 10px;
    border-radius: 4px;
}
.gsc-cursor-current-page {
    color: #fff !important;
    background-color: #1a0dab !important;
    font-weight: bold !important;
}