:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --muted: #475569;
    --accent: #0066cc;
    --accent-soft: #e6f2ff;
    --border: #e3e8f0;
    --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}
/* Font Awesome font-display optimization */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-solid-900.woff2') format('woff2');
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at 20% 20%, #f0f5ff, #f5f7fb 50%),
                radial-gradient(circle at 80% 0%, #e6f2ff, transparent 40%),
                var(--bg);
    color: #0f172a;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.page {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 32px 28px 48px;
}
.header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    margin-bottom: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}
.gcsc-more-maybe-branding-root {
    display: none !important;
}
.gcsc-find-more-on-google {
    display: none !important;
}
.gcsc-branding-img-noclear {
    display: none !important;
}
.gsc-results .gsc-cursor {
    font-size: 18px!important;
}
.gs-title {
    font-weight: 600!important;
}
@media (min-width: 1025px) {
    .header {
        justify-content: space-between;
    }
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 18px;
}
.brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}
.brand-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.brand-title {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.header-search {
    flex: 1;
    min-width: 320px;
}
@media (min-width: 1025px) {
    .header {
        position: relative;
    }
    .brand {
        flex-shrink: 0;
    }
    .header-search {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        flex: 0 0 50%;
        max-width: 50%;
        width: 50%;
    }
    .header-actions {
        flex-shrink: 0;
        margin-left: auto;
    }
}
@media (min-width: 1025px) {
    html[dir="rtl"] .header-actions {
        margin-left: 0;
        margin-right: auto;
    }
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow);
}
.search-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #f0f5ff);
    border: 2px solid #0066cc;
    border-radius: 12px;
    padding: 3px 8px;
    box-shadow: 0 14px 40px rgba(0, 102, 204, 0.18), inset 0 1px 0 rgba(255,255,255,0.9);
}
.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: #0f172a;
    font-size: 16px;
    outline: none;
    font-weight: 500;
}
.search-bar button {
    border: none;
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease;
    box-shadow: 0 12px 34px rgba(0, 102, 204, 0.35);
}
.search-bar button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 40px rgba(0, 102, 204, 0.45);
}
.muted { color: var(--muted); }
.result-list { display: grid; gap: 12px; margin-top: 16px; }
.result {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #f9fbff;
}
.result h3 {
    margin: 0 0 6px;
    font-size: 17px;
    letter-spacing: -0.01em;
}
.result p { margin: 0; color: var(--muted); }
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #0c234a;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: -0.01em;
}
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 12px 0 4px;
}
.empty {
    padding: 24px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    text-align: center;
    color: var(--muted);
}
.layout-3col {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 18px;
    align-items: start;
}
.sidebar {
    position: sticky;
    top: 20px;
}
.badge-soft {
    color: #004080;
    background: rgba(0, 102, 204, 0.18);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 102, 204, 0.4);
    font-size: 12px;
    justify-self: end;
}
.lang-switcher-wrapper {
    position: relative;
    display: inline-block;
}
.lang-switcher-wrapper::before {
    content: '\f0ac';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #004080;
    font-size: 13px;
    z-index: 1;
    pointer-events: none;
}
#langSwitcher {
    border: 1px solid rgba(0, 102, 204, 0.45) !important;
    padding: 5px 12px 5px 25px;
    font-weight: 600;
    font-size: 10px;
    position: relative;
    color: #004080 !important;
    background-color: rgba(0, 102, 204, 0.18) !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
#langSwitcher option {
    color: #004080;
    background-color: #ffffff;
}
/* RTL Support for Language Switcher */
html[dir="rtl"] .lang-switcher-wrapper::before {
    left: auto;
    right: 10px;
}
html[dir="rtl"] #langSwitcher {
    padding: 5px 25px 5px 12px;
}
.share-copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #34a853;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    display: none;
    animation: slideInRight 0.3s ease;
}
.share-copy-notification.show {
    display: block;
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@media (max-width: 1024px) {
    .layout-3col { grid-template-columns: 1fr; }
    .sidebar-left { display: none; }
    .sidebar-right { order: 3; }
    .header {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .header::before {
        content: '';
        display: flex;
        align-items: center;
        justify-content: space-between;
        grid-column: 1;
        grid-row: 1;
    }
    .brand {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        align-items: center;
    }
    .header-actions {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        align-items: center;
        justify-self: end;
    }
    .header-search {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        min-width: 0;
    }
}
@media (max-width: 1024px) {
    .header-search {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        flex: 1 1 100%;
    }
}
@media (max-width: 640px) {
    .gsc-control-cse {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
    .search-bar {
        padding: 10px 12px;
        gap: 8px;
    }
    .search-bar input {
        font-size: 16px;
        padding: 0;
    }
    .search-bar button {
        padding: 10px 16px;
        font-size: 14px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .header-actions {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .header-actions select,
    .header-actions button {
        font-size: 12px;
        padding: 8px 10px;
    }
    .brand {
        font-size: 16px;
    }
    .brand-badge {
        width: 32px;
        height: 32px;
    }
    .page { padding: 20px 12px 32px; }
    #results {
        margin-left: -12px !important;
        margin-right: -12px !important;
        width: calc(100% + 24px) !important;
        border-radius: 0 !important;
        padding: 3px !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }
}
.footer {
    margin-top: 60px;
    padding: 40px 28px;
    background: #004080;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-brand h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}
.footer-brand p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links h4 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    transition: color 0.2s;
    text-decoration: none;
}
.footer-links a:hover {
    color: #ffffff;
}
.footer-bottom {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-links-col-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer {
        padding: 32px 20px;
    }
}
