@font-face {
	font-family: IRANSansX;
	font-style: normal;
	font-weight: 500;
	src: url('fonts/woff/IRANSansX-MediumD4.woff') format('woff'),   
	url('fonts/woff2/IRANSansX-MediumD4.woff2') format('woff2');		 
}

/* ============================================================
   Design Tokens — "Clarity"
   A disciplined, authentic search-engine language: near-flat
   surfaces, generous whitespace, one confident accent used with
   precision. Chrome (shadows/blur) is reserved for things that
   truly float — the header, dropdowns, modals — not every card.
   ============================================================ */
:root {
    /* Base surface — quiet, almost flat, with a whisper of texture */
    --bg: linear-gradient(180deg, #FAFAFC 0%, #F4F3F9 100%);
    --bg-solid: #F6F6FA;
    --aurora: radial-gradient(1300px 800px at 50% -25%, rgba(0, 98, 204, 0.05), transparent 62%);
    --noise-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");

    /* Brand + accent — matches the real logo mark (#0078FE → #4A70AE) */
    --accent: #0062CC;
    --accb: #0062CC;
    --primary: #0062CC;
    --secondary: #565E76;
    --gold: #B8863E;
    --gold-strong: #96692C;
    --gold-soft: rgba(184, 134, 62, 0.13);

    --border: rgba(20, 26, 42, 0.11);
    --border-subtle: rgba(20, 26, 42, 0.08);
    --divider: rgba(20, 26, 42, 0.09);
    --hover-bg: rgba(20, 26, 42, 0.04);
    --radius: 14px;
    --shadow: 0 1px 2px rgba(18, 24, 40, 0.05), 0 1px 1px rgba(18, 24, 40, 0.04);
    --glass-shadow: 0 18px 44px rgba(18, 24, 40, 0.16), 0 3px 10px rgba(18, 24, 40, 0.07);
    --gold-shadow: 0 10px 26px rgba(184, 134, 62, 0.18), 0 2px 6px rgba(18, 24, 40, 0.06);
    --accent-shadow: 0 4px 14px rgba(0, 98, 204, 0.18);

    /* Glass Properties — reserved for header/dropdowns/modals only */
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-bg-strong: rgba(255, 255, 255, 0.99);
    --glass-blur: blur(10px);
    --glass-border: 1px solid rgba(20, 26, 42, 0.10);
    --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    --card-solid: #FFFFFF;

    --text-main: #12172A;
    --text-muted: #565E76;
    --input-bg: rgba(255, 255, 255, 0.94);
    --header-bg: rgba(250, 250, 252, 0.92);
    --btn-bg: rgba(255, 255, 255, 0.9);
    --btn-text: #0062CC;
    --btn-hover-border: rgba(0, 98, 204, 0.38);
    --btn-hover-text: #12172A;
    --news-border: rgba(20, 26, 42, 0.09);
    --news-bg: transparent;
    --news-title: #12172A;
    --news-text: #565E76;
    --viewer-bg: rgba(13, 16, 26, 0.97);
    --viewer-img-bg: rgba(255, 255, 255, 0.04);
    --viewer-text: #F1F4FA;
    --viewer-text-muted: rgba(241, 244, 250, 0.62);
    --close-btn-bg: rgba(255, 255, 255, 0.9);
    --favicon-bg: transparent;
    --logo-start: #0078FE;
    --logo-end: #4A70AE;
    --skeleton: rgba(20, 26, 42, 0.08);
}

[data-theme="dark"] {
    --bg: linear-gradient(180deg, #0A0D16 0%, #0D111C 100%);
    --bg-solid: #0A0D16;
    --aurora: radial-gradient(1300px 800px at 50% -25%, rgba(61, 150, 255, 0.10), transparent 62%);
    --noise-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");

    --accent: #3D96FF;
    --accb: #3D96FF;
    --primary: #3D96FF;
    --secondary: #939CB3;
    --gold: #E4B96E;
    --gold-strong: #F0CA85;
    --gold-soft: rgba(228, 185, 110, 0.16);

    --border: rgba(255, 255, 255, 0.12);
    --border-subtle: rgba(255, 255, 255, 0.09);
    --divider: rgba(255, 255, 255, 0.10);
    --hover-bg: rgba(255, 255, 255, 0.055);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 1px rgba(0, 0, 0, 0.2);
    --glass-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 3px 10px rgba(0, 0, 0, 0.35);
    --gold-shadow: 0 12px 28px rgba(228, 185, 110, 0.14), 0 2px 6px rgba(0, 0, 0, 0.3);
    --accent-shadow: 0 4px 16px rgba(61, 150, 255, 0.26);

    /* Dark Glass Properties — reserved for header/dropdowns/modals only */
    --glass-bg: rgba(18, 23, 36, 0.92);
    --glass-bg-strong: rgba(22, 28, 44, 0.98);
    --glass-blur: blur(12px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.12);
    --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --card-solid: #10141F;

    --text-main: #E7EBF6;
    --text-muted: #939CB3;
    --input-bg: rgba(255, 255, 255, 0.07);
    --header-bg: rgba(9, 12, 20, 0.88);
    --btn-bg: rgba(255, 255, 255, 0.07);
    --btn-text: #E7EBF6;
    --btn-hover-border: rgba(61, 150, 255, 0.45);
    --btn-hover-text: #FFFFFF;
    --news-border: rgba(255, 255, 255, 0.09);
    --news-bg: transparent;
    --news-title: #E7EBF6;
    --news-text: #939CB3;
    --viewer-bg: rgba(6, 8, 13, 0.98);
    --viewer-img-bg: rgba(255, 255, 255, 0.03);
    --close-btn-bg: rgba(255, 255, 255, 0.1);
    --favicon-bg: transparent;
    --skeleton: rgba(255, 255, 255, 0.07);
}

* { box-sizing: border-box; outline: none; }

body {
    font-family: IRANSansX; 
    background:
        var(--noise-bg) 0 0/200px 200px repeat,
        var(--aurora),
        var(--bg);
    background-attachment: fixed;
    margin: 0;
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-feature-settings: "kern" on, "liga" on, "calt" on;
    -moz-font-feature-settings: "kern" on, "liga" on, "calt" on;
    -webkit-font-feature-settings: "kern" on, "liga" on, "calt" on;
}
a { text-decoration: none; color: inherit; }

/* ============================================================
   Glass Utility — subtle, formal
   ============================================================ */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow), var(--glass-highlight);
}

/* Skeleton Animation */
@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}
.skeleton {
    background: linear-gradient(to right, var(--skeleton) 8%, rgba(140,150,190,0.16) 18%, var(--skeleton) 33%);
    background-size: 800px 104px;
    animation: shimmer 1.5s infinite linear;
    border-radius: 6px;
}

/* ============================================================
   Search Box
   ============================================================ */
.search-box-wrapper { position: relative; width: 100%; display: flex; align-items: center; z-index: 1001; }

.search-input {
    width: 100%;
    padding: 18px 56px 18px 26px;
    border-radius: 15px; 
    border: 1.5px solid var(--border);
    background: var(--input-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-main);
    font-family: inherit;
    font-size: 16.5px;
    line-height: 1.5;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
}
.search-input::placeholder { color: var(--text-muted); opacity: 0.75; }
.search-input:hover { 
    border-color: rgba(0, 98, 204, 0.32);
    box-shadow: 0 8px 24px rgba(18, 24, 40, 0.11);
}
.search-input:focus { 
    border-color: var(--accent);
    background: var(--glass-bg-strong);
    box-shadow: var(--accent-shadow), 0 0 0 3px rgba(0, 98, 204, 0.12);
    outline: none;
}
[data-theme="dark"] .search-input:focus { 
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--accent);
    box-shadow: var(--accent-shadow), 0 0 0 3px rgba(61, 150, 255, 0.18);
}
/* signature: thin brass underline that locks in on focus, like an instrument bearing */
.search-box-wrapper::after {
    content: '';
    position: absolute;
    left: 26px; right: 26px; bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: scaleX(0);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    pointer-events: none;
}
.search-box-wrapper:focus-within::after { transform: scaleX(1); opacity: 1; }

.search-icon-btn { 
    position: absolute; right: 18px; background: none; border: none; 
    color: var(--secondary); cursor: pointer; padding: 6px; display: flex; 
    align-items: center; justify-content: center; border-radius: 50%; 
    transition: all 0.2s ease; 
}
.search-icon-btn:hover { color: #fff; background: var(--accent); transform: scale(1.06); }

/* Autocomplete */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(22, 27, 46, 0.08);
    border-radius: 14px;
    margin-top: 8px;
    box-shadow: 0 14px 34px rgba(22, 27, 46, 0.14);
    z-index: 2000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    padding: 6px 0;
}
[data-theme="dark"] .autocomplete-results {
    background: rgba(13, 17, 30, 0.98);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
.suggestion-item {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
    text-align: right; 
    justify-content: flex-start; 
    border-radius: 10px;
    margin: 2px 6px;
}
.suggestion-item span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
    color: var(--text-main);
    text-align: right; 
    line-height: 1.5;
}
.suggestion-item:hover, .suggestion-item.active { 
    background: rgba(0, 98, 204, 0.08);
}
[data-theme="dark"] .suggestion-item:hover, [data-theme="dark"] .suggestion-item.active { 
    background: rgba(61, 150, 255, 0.12);
}
.suggestion-item svg { color: var(--secondary); opacity: 0.45; }
.suggestion-highlight { color: var(--accent) !important; font-weight: 700; opacity: 1 !important; }
[data-theme="light"] .suggestion-highlight { color: var(--primary) !important; }
[data-theme="dark"] .suggestion-highlight { color: var(--accent) !important; }

/* ============================================================
   Home View
   ============================================================ */
#home-view { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    height: 100vh; 
    padding: 20px; 
    text-align: center; 
    position: relative;
    overflow: hidden;
}

/* The quietest hint of depth behind the mark — restrained, not a marketing hero */
#home-view::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 640px;
    height: 640px;
    transform: translate(-50%, -55%);
    background: radial-gradient(circle, rgba(0, 98, 204, 0.06) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}
#home-view::after { content: none; }
[data-theme="dark"] #home-view::before {
    background: radial-gradient(circle, rgba(61, 150, 255, 0.09) 0%, transparent 65%);
}
@keyframes floatOrb {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.home-logo { 
    width: 100%;
    max-width: 280px;
    margin: 0 auto 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none; 
    animation: calmFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
    position: relative;
    z-index: 1;
}
.logo-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 6px 18px rgba(36, 45, 110, 0.18));
}
[data-theme="dark"] .logo-img {
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5));
}

.home-search-container { 
    width: 100%; 
    max-width: 620px; 
    animation: calmFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
    position: relative;
    z-index: 1;
}

.trending-searches {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    animation: calmFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.trending-label { font-weight: 600; opacity: 0.8; }
.trending-tags { display: flex; gap: 10px; }
.trend-tag { 
    color: var(--secondary); 
    transition: all 0.2s ease; 
    cursor: pointer;
    padding: 4px 14px;
    border-radius: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    font-size: 12px;
}
.trend-tag:hover { 
    color: var(--accent); 
    background: rgba(0, 98, 204, 0.08);
    border-color: rgba(0, 98, 204, 0.3);
    transform: translateY(-1px);
}

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

/* ============================================================
   Header & Results
   ============================================================ */
#results-view { display: none; }

.header { 
    position: sticky; top: 0; z-index: 100; 
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 20px 0 0; 
}

.header-top { display: flex; align-items: center; gap: 30px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.small-logo { 
    font-weight: 800; font-size: 23px; 
    background: linear-gradient(135deg, var(--logo-start), var(--logo-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px; cursor: pointer; 
}
.header-search { flex: 1; max-width: 690px; }

/* Tab Navigation — restrained, underline-led (see .tab-slider) */
.tabs-nav {
    display: flex;
    gap: 4px;
    max-width: 1200px;
    margin: 14px auto 0;
    padding: 6px 20px 0;
    position: relative;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
}
.tab-btn {
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    border-radius: 8px 8px 0 0;
    border: 1px solid transparent;
    background: transparent;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.tab-btn:hover {
    background: var(--hover-bg);
    color: var(--text-main);
}
.tab-btn.active {
    color: var(--accent);
    font-weight: 700;
}
[data-theme="dark"] .tab-btn.active {
    color: var(--accent);
}
/* signature: precise sliding underline in brand-to-brass gradient */
.tab-slider {
    position: absolute;
    bottom: -1px;
    height: 2px;
    left: 0; width: 0;
    background: var(--accent);
    border-radius: 2px;
    transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   Main Container & Results
   ============================================================ */
.main-container { max-width: 1200px; margin: 0 auto; padding: 30px 20px; display: grid; grid-template-columns: 652px 1fr; gap: 60px; width: 100%; }
.main-container.is-image-tab { grid-template-columns: 1fr; max-width: 100%; padding: 30px 5%; }
.main-container.is-image-tab .sidebar { display: none; }

.result-item { 
    margin-bottom: 2px; 
    animation: revealUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    padding: 16px 12px;
    border-radius: 10px;
    border-bottom: 1px solid var(--divider);
    transition: background-color 0.15s ease;
}
.result-item:last-of-type { border-bottom: none; }
.result-item:nth-child(1) { animation-delay: 0.02s; }
.result-item:nth-child(2) { animation-delay: 0.05s; }
.result-item:nth-child(3) { animation-delay: 0.08s; }
.result-item:nth-child(4) { animation-delay: 0.11s; }
.result-item:nth-child(5) { animation-delay: 0.14s; }
.result-item:nth-child(6) { animation-delay: 0.17s; }
.result-item:hover {
    background: var(--hover-bg);
}
.result-meta { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.favicon { 
    width: 18px; height: 18px; border-radius: 4px; 
    object-fit: contain; 
}
.site-info { display: flex; flex-direction: column; line-height: 1.2; overflow: hidden; }
.site-name { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.site-url { font-size: 12px; color: var(--secondary); direction: ltr; text-align: right; }
.result-title { 
    font-size: 19px; color: var(--accent); font-weight: 600; 
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; 
    overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; 
}
.result-title:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.result-desc { overflow: hidden; text-overflow: ellipsis; font-size: 14px; color: var(--text-muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Related Searches */
.related-box { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border-subtle); }
.related-title { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.related-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.related-link { 
    background: var(--glass-bg);
    padding: 12px 15px; border-radius: 12px; font-size: 14px; 
    display: flex; align-items: center; gap: 10px; 
    border: var(--glass-border); transition: all 0.2s; 
}
.related-link:hover { 
    background: var(--glass-bg-strong);
    border-color: rgba(0, 98, 204, 0.28); 
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Image Grid */
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.img-card { 
    position: relative;
    background: var(--card-solid);
    border-radius: 12px; overflow: hidden; cursor: pointer; 
    transition: transform 0.22s ease, box-shadow 0.22s ease; 
    animation: revealUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; 
    aspect-ratio: 4 / 3;
}
.img-card:nth-child(5n+1) { animation-delay: 0.02s; }
.img-card:nth-child(5n+2) { animation-delay: 0.06s; }
.img-card:nth-child(5n+3) { animation-delay: 0.10s; }
.img-card:nth-child(5n+4) { animation-delay: 0.14s; }
.img-card:nth-child(5n+5) { animation-delay: 0.18s; }
.img-card:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 12px 28px rgba(18, 24, 40, 0.18);
}
[data-theme="dark"] .img-card:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5); }
.img-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.img-card:hover img { transform: scale(1.045); }
.img-info { 
    position: absolute; left: 0; right: 0; bottom: 0; 
    padding: 30px 12px 10px; 
    background: linear-gradient(to top, rgba(5, 7, 12, 0.85) 0%, rgba(5, 7, 12, 0.35) 60%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
}
.img-title { font-size: 12.5px; font-weight: 600; color: #FFFFFF; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.img-domain { font-size: 11px; color: rgba(255, 255, 255, 0.78); display: flex; align-items: center; gap: 6px; }

/* ============================================================
   Image Viewer — Modal
   ============================================================ */
#image-viewer { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: var(--viewer-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 2000; display: none; 
}
.viewer-content { display: flex; width: 100%; height: 100%; flex-direction: row-reverse; }
.viewer-img-box { 
    flex: 1; display: flex; align-items: center; justify-content: center; 
    padding: 40px; 
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.38) 72%); 
}
.viewer-img-box img { max-width: 95%; max-height: 95%; border-radius: 10px; box-shadow: 0 24px 64px rgba(0,0,0,0.55); object-fit: contain; }
.viewer-side { 
    width: 380px; padding: 50px 30px; 
    border-right: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    display: flex; flex-direction: column; overflow-y: auto; 
}
.viewer-side h2 { font-size: 21px; color: var(--viewer-text); line-height: 1.5; margin: 0 0 15px 0; font-weight: 700; }
.viewer-side p { font-size: 15px; color: var(--viewer-text-muted); margin: 0 0 30px 0; display: flex; align-items: center; gap: 8px; }
.close-viewer-btn { 
    position: absolute; top: 20px; left: 20px; z-index: 2010; 
    background: var(--close-btn-bg);
    color: var(--text-main); 
    border: var(--glass-border); 
    border-radius: 50%; width: 42px; height: 42px; cursor: pointer; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 18px; transition: all 0.2s; 
    box-shadow: var(--shadow); 
}
.close-viewer-btn:hover { 
    background: rgba(255,255,255,0.16);
    transform: scale(1.06); 
}

/* ============================================================
   Sidebar & Knowledge Panel
   ============================================================ */
.sidebar { padding-top: 10px; }
body:not(.is-province-mode) .knowledge-panel { 
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--radius); padding: 20px; 
    box-shadow: var(--shadow);
    position: sticky; top: 120px; 
}
body.is-province-mode .knowledge-panel { border: none; box-shadow: none; padding: 0; position: relative; top: 0; }

/* Theme Toggle */
.theme-toggle-btn { 
    position: fixed; bottom: 30px; left: 30px; width: 50px; height: 50px; 
    border-radius: 50%; 
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border); 
    color: var(--text-main); display: flex; align-items: center; justify-content: center; 
    cursor: pointer; 
    box-shadow: var(--shadow);
    z-index: 9999; 
    transition: all 0.2s ease;
}
.theme-toggle-btn:hover { transform: scale(1.07); border-color: var(--gold); }
.sun-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; color: var(--gold); }
[data-theme="dark"] .moon-icon { display: none; }

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes revealUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 157, 107, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(31, 157, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 157, 107, 0); } }

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 900px) {
    body:not(.is-province-mode) .sidebar { display: none !important; }
    body:not(.is-province-mode) .main-container { display: block !important; }
    .is-province-mode .main-container { display: flex !important; flex-direction: column !important; padding: 10px !important; }
    .is-province-mode .sidebar { display: block !important; width: 100% !important; order: 2 !important; }
    .is-province-mode #content-area { order: 1 !important; }
    .news-item { flex-direction: column-reverse; }
    .news-image { width: 100% !important; height: 180px !important; }
    #image-viewer { overflow-y: auto; }
    .viewer-content { flex-direction: column !important; height: auto; }
    .viewer-img-box { padding: 20px; height: 60vh; }
    .viewer-img-box img { max-width: 100%; max-height: 100%; }
    .viewer-side { width: 100% !important; height: auto; border-right: none; border-top: 1px solid var(--border); padding: 25px 20px; }
    .close-viewer-btn { top: 15px; left: 15px; width: 40px; height: 40px; }
}

/* ============================================================
   Empty State & Buttons
   ============================================================ */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px; text-align: center; }
.empty-icon { width: 72px; height: 72px; margin-bottom: 22px; color: var(--secondary); opacity: 0.55; }
.empty-title { font-size: 22px; color: var(--text-main); margin-bottom: 12px; font-weight: 700; }
.empty-desc { font-size: 15px; color: var(--text-muted); margin-bottom: 32px; max-width: 450px; line-height: 1.8; }
.report-btn { 
    background: var(--glass-bg);
    color: var(--text-main); 
    border: var(--glass-border); 
    padding: 12px 24px; border-radius: 12px; cursor: pointer; 
    display: flex; align-items: center; gap: 10px; transition: all 0.2s;
    font-family: inherit; 
}
.report-btn:hover { 
    background: var(--glass-bg-strong);
    border-color: var(--gold);
    box-shadow: var(--shadow); 
}

.btn { 
    background: var(--glass-bg);
    border: var(--glass-border);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s ease;
}
.btn:hover { background: var(--glass-bg-strong); box-shadow: var(--shadow); }

/* ============================================================
   Scrollbar
   ============================================================ */
.autocomplete-results::-webkit-scrollbar { width: 8px; }
.autocomplete-results::-webkit-scrollbar-track { background: transparent; border-radius: 10px; }
.autocomplete-results::-webkit-scrollbar-thumb { background-color: rgba(0, 98, 204, 0.22); border-radius: 20px; border: 2px solid transparent; background-clip: content-box; }
.autocomplete-results::-webkit-scrollbar-thumb:hover { background-color: rgba(0, 98, 204, 0.38); }

/* ============================================================
   City Explorer
   ============================================================ */
.city-explorer { margin-top: 32px; width: 100%; animation: fadeIn 0.8s ease; max-width: 450px; margin-left: auto; margin-right: auto; }
.explorer-title { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; font-weight: 600; }
.city-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.city-card { 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    gap: 12px; padding: 15px 10px; 
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 14px; cursor: pointer; 
    transition: all 0.25s ease; 
    box-shadow: var(--shadow);
    user-select: none; 
}
.city-card:hover { 
    background: var(--glass-bg-strong);
    border-color: var(--gold);
    transform: translateY(-4px); 
    box-shadow: var(--glass-shadow); 
}
.city-icon { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; }
.city-img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease; }
.city-card:hover .city-img { transform: scale(1.08); }
.city-name { font-size: 14px; color: var(--text-main); font-weight: 500; text-align: center; }

/* ============================================================
   Province Panel
   ============================================================ */
.province-special-card { 
    position: relative; width: 95%; max-width: 500px; margin: 30px auto 15px; 
    padding: 20px 15px; 
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--radius); cursor: pointer; overflow: hidden; 
    transition: all 0.25s ease; 
    box-shadow: var(--shadow);
}
.province-card-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.province-text-side { flex: 1; min-width: 0; }
.province-text-side h4 { margin: 0 0 4px; font-size: clamp(16px, 4vw, 19px); color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.province-text-side p { margin: 0; font-size: clamp(11px, 3vw, 13px); color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.province-visual-side { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.img-container { position: relative; width: 50px; height: 50px; }
.floating-img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 2; }
.map-bg-icon { position: absolute; inset: -5px; color: var(--accent); opacity: 0.14; }
.province-badge { 
    position: absolute; top: 0; left: 20px; 
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: white; font-size: 9px; padding: 2px 10px; 
    border-radius: 0 0 8px 8px; font-weight: bold; letter-spacing: 0.5px; 
}

@media (max-width: 360px) {
    .province-card-inner { gap: 5px; }
    .province-visual-side { gap: 5px; }
    .img-container { width: 40px; height: 40px; }
}

.province-panel { 
    background: var(--glass-bg);
    border-radius: var(--radius); overflow: hidden; 
    border: var(--glass-border); 
    animation: fadeIn 0.6s ease-out; 
    box-shadow: var(--shadow);
}
.province-header { position: relative; height: 180px; background: url('https://itto.org/iran/image-bin/190503105240hspvi1hpyi.jpg') center/cover; }
.province-header-overlay { position: absolute; bottom: 0; right: 0; left: 0; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,0.75)); color: white; }
.province-content { padding: 20px; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.stat-item { 
    background: var(--glass-bg);
    border: var(--glass-border);
    padding: 10px; border-radius: 12px; text-align: center; 
}
.stat-val { font-weight: bold; display: block; font-size: 14px; color: var(--gold-strong); }
[data-theme="dark"] .stat-val { color: var(--gold); }
.stat-lbl { font-size: 11px; color: var(--secondary); }

.news-section-title { font-size: 16px; font-weight: 700; margin: 15px 0 10px; display: flex; align-items: center; gap: 8px; }
.mini-news-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); cursor: pointer; }
.mini-news-item:last-child { border: none; }
.mini-news-img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; }
.mini-news-text { font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--text-main); }
.action-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.chip { 
    padding: 6px 15px; border-radius: 50px; 
    background: var(--glass-bg);
    font-size: 12px; border: var(--glass-border); 
    transition: all 0.2s; cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--accent); background: rgba(0, 98, 204, 0.06); }
.chip.active-chip { 
    background: linear-gradient(135deg, var(--accent), var(--gold)) !important; 
    color: white !important; border-color: transparent !important; 
}

/* Province mode */
.is-province-mode .tabs-nav, 
.is-province-mode .tabs-container { display: none !important; }
.is-province-mode .header { padding-bottom: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
@media (max-width: 900px) {
    .is-province-mode .main-container { margin-top: 0 !important; padding-top: 10px !important; }
}
.is-province-mode #related-area { display: none !important; }

#province-details-container { transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); transform: translateY(10px); opacity: 0; }
.detail-item:hover { background: var(--hover-bg) !important; transform: scale(1.01); cursor: pointer; }

/* ============================================================
   Person Card
   ============================================================ */
.person-card { 
    display: flex; flex-direction: column; align-items: center; 
    background: var(--glass-bg);
    border: var(--glass-border);
    padding: 25px; border-radius: var(--radius); margin-top: 20px; 
    box-shadow: var(--shadow);
    transition: all 0.25s ease; 
}
.person-img-wrapper { margin-bottom: 15px; }
.person-img { 
    width: 116px; height: 116px; border-radius: 50%; object-fit: cover; 
    border: 3px solid var(--gold); 
    padding: 3px; 
    background: var(--glass-bg); 
    box-shadow: var(--shadow);
}
.person-info { text-align: center; width: 100%; }
.person-name { font-size: 18px; font-weight: 800; margin: 0 0 5px 0; }
.person-role { font-size: 14px; color: var(--secondary); margin-bottom: 15px; display: block; }

/* ============================================================
   CV Dropdown
   ============================================================ */
.cv-dropdown { 
    width: 100%; border: var(--glass-border); 
    border-radius: 12px; overflow: hidden; 
    background: var(--glass-bg);
}
.cv-header { padding: 12px 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; transition: background 0.2s; }
.cv-header:hover { background: var(--hover-bg); }
.cv-content { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); background: var(--glass-bg); text-align: right; }
.cv-content ul { margin: 0; padding: 15px 25px 15px 15px; list-style-type: disc; }
.cv-content li { font-size: 14px; line-height: 1.8; color: var(--text-main); margin-bottom: 8px; }
.cv-open .cv-content { max-height: 500px; }
.cv-open .chevron-icon { transform: rotate(180deg); }
.chevron-icon { transition: transform 0.3s; }

/* ============================================================
   Service Cards
   ============================================================ */
.service-card { 
    text-decoration: none; display: flex; align-items: center; gap: 10px; 
    padding: 15px 10px; border-radius: 14px; 
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09); 
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); 
}
.service-card.hotel:hover { border-color: rgba(61, 98, 217, 0.5); background: rgba(61, 98, 217, 0.1); }
.service-card.history:hover { border-color: rgba(192, 138, 46, 0.5); background: rgba(192, 138, 46, 0.1); }
.service-card.food:hover { border-color: rgba(217, 84, 77, 0.5); background: rgba(217, 84, 77, 0.1); }
.service-card.mall:hover { border-color: rgba(31, 157, 107, 0.5); background: rgba(31, 157, 107, 0.1); }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }
.service-icon { font-size: 22px; background: rgba(255, 255, 255, 0.07); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.service-info { display: flex; flex-direction: column; }
.service-title { color: #fff; font-size: 13px; font-weight: bold; }
.service-desc { color: rgba(255, 255, 255, 0.5); font-size: 10px; margin-top: 2px; }

/* Breaking news */
.breaking-news-container:hover { transform: scale(1.01); transition: 0.3s; cursor: pointer; }

.news-item-row { transition: all 0.2s ease; border-radius: 8px; }
.news-item-row:hover { background: var(--hover-bg); padding-right: 5px; }
.news-item-row:hover div:first-child { color: var(--accent) !important; }

/* ============================================================
   News Items
   ============================================================ */
.news-item {
    display: flex;
    gap: 16px;
    margin-bottom: 2px;
    padding: 16px 12px;
    border-radius: 10px;
    border-bottom: 1px solid var(--divider);
    animation: revealUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: background-color 0.15s ease;
    text-decoration: none;
    color: inherit;
}
.news-item:last-of-type { border-bottom: none; }
.news-item:nth-child(1) { animation-delay: 0.02s; }
.news-item:nth-child(2) { animation-delay: 0.05s; }
.news-item:nth-child(3) { animation-delay: 0.08s; }
.news-item:nth-child(4) { animation-delay: 0.11s; }
.news-item:nth-child(5) { animation-delay: 0.14s; }
.news-item:hover {
    background: var(--hover-bg);
}
.news-content { flex: 1; min-width: 0; }
.news-source-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.news-source-name { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.news-time { font-size: 12px; color: var(--text-muted); }
.news-title { font-size: 16.5px; color: var(--accent); text-decoration: none; line-height: 1.5; display: block; margin-bottom: 6px; font-weight: 600; }
.news-title:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.news-image { width: 100px; height: 100px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }

#province-dynamic-news { display: flex; flex-direction: column; gap: 12px; padding: 5px; }
.modern-news-card { 
    display: block; text-decoration: none; 
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; 
    transition: all 0.25s ease; 
}
.modern-news-card:hover { 
    transform: translateY(-1px); 
    border-color: rgba(0, 98, 204, 0.3); 
    background: var(--glass-bg-strong); 
    box-shadow: var(--shadow); 
}
.news-tag { font-size: 9px; font-weight: bold; color: var(--gold-strong); margin-bottom: 4px; }
[data-theme="dark"] .news-tag { color: var(--gold); }
.news-footer { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: var(--news-text); }
.news-source { display: flex; align-items: center; gap: 4px; }
.news-arrow { color: var(--accent); opacity: 0; transform: translateX(10px); transition: 0.3s; }
.modern-news-card:hover .news-arrow { opacity: 1; transform: translateX(0); }

/* ============================================================
   Fars Dashboard
   ============================================================ */
.fars-dashboard { padding: 20px; }
.dash-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 25px; flex-wrap: wrap; gap: 15px; }
.dash-brand { display: flex; gap: 15px; align-items: center; }
.emblem { width: 45px; height: auto; }
.dash-brand h1 { font-size: 20px; margin: 0; font-weight: 800; }
.dash-brand span { font-size: 12px; color: var(--secondary); }
.bento-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.bento-item { 
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--radius); padding: 20px; transition: 0.25s; 
    box-shadow: var(--shadow);
}
.gov-hero { display: flex; gap: 20px; align-items: center; }
.gov-img { width: 120px; height: 150px; object-fit: cover; border-radius: 12px; }
.gov-meta h2 { font-size: 22px; margin: 10px 0; }
.btn-minimal { 
    background: rgba(255,255,255,0.10); 
    border: 1px solid rgba(255,255,255,0.16); 
    color: inherit; padding: 8px 15px; 
    border-radius: 8px; cursor: pointer; font-size: 12px; 
}
.news-section h3 { font-size: 16px; margin-top: 0; border-right: 3px solid var(--gold); padding-right: 10px; }
.news-list { display: flex; flex-direction: column; gap: 12px; margin-top: 15px; }
.news-card { 
    padding: 12px; border-radius: 12px; 
    background: var(--glass-bg);
    border: var(--glass-border);
    cursor: pointer; transition: all 0.2s; 
}
.news-card:hover { border-color: rgba(0, 98, 204, 0.3); background: var(--glass-bg-strong); }
.news-tag-badge { display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: 6px; margin-bottom: 5px; font-weight: bold; }
.ostan { background: rgba(31, 157, 107, 0.12); color: #1F9D6B; }
.dad { background: rgba(194, 58, 58, 0.12); color: #C23A3A; }
.shahr { background: rgba(185, 130, 46, 0.12); color: #B9822E; }
.news-card h4 { margin: 0; font-size: 13px; color: var(--text-main); }

@media (max-width: 900px) {
    .bento-grid { grid-template-columns: 1fr; }
    .gov-hero { flex-direction: column; text-align: center; }
}

/* Metro Card */
.metro-card { 
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--radius); padding: 16px; color: var(--text-main); 
    margin-bottom: 20px; cursor: pointer; transition: all 0.25s ease; 
    box-shadow: var(--shadow); 
}
.metro-card:hover { border-color: rgba(0, 98, 204, 0.32); background: var(--glass-bg-strong); }
.metro-modal-overlay { 
    position: fixed; inset: 0; 
    background: rgba(10, 14, 26, 0.55); 
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    display: none; align-items: center; justify-content: center; z-index: 10000; 
    opacity: 0; transition: opacity 0.3s ease; 
}
.metro-modal-overlay.active { display: flex; opacity: 1; }
.metro-modal-content { 
    background: var(--glass-bg-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-main); 
    width: 90%; max-width: 420px; border-radius: var(--radius); padding: 25px; 
    border: var(--glass-border); 
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
    transform: translateY(20px); transition: transform 0.3s ease; 
}
.metro-modal-overlay.active .metro-modal-content { transform: translateY(0); }
.metro-select { 
    width: 100%; padding: 12px; border-radius: 12px; 
    border: var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-main); font-family: inherit; outline: none; margin-top: 8px; 
}
.metro-select:focus { border-color: var(--accent); }
.route-info-display { 
    margin-top: 20px; padding: 15px; 
    background: var(--glass-bg);
    border-radius: 12px; border: var(--glass-border); 
    display: none; 
}
.route-info-display.active { display: block; animation: fadeIn 0.4s ease; }
.route-item { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.route-val { font-weight: 800; color: var(--gold-strong); }
[data-theme="dark"] .route-val { color: var(--gold); }
.metro-close-btn { 
    width: 100%; padding: 12px; margin-top: 20px; 
    background: var(--glass-bg); color: var(--btn-text); 
    border: var(--glass-border); border-radius: 12px; 
    font-weight: bold; cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.metro-close-btn:hover { background: var(--glass-bg-strong); }

/* ============================================================
   Dashboard Widgets
   ============================================================ */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin-bottom: 25px; }
.info-widget { 
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--radius); padding: 15px; display: flex; align-items: center; gap: 15px; 
    transition: transform 0.25s ease; 
    box-shadow: var(--shadow);
}
.info-widget:hover { transform: translateY(-2px); }
.widget-icon { width: 45px; height: 45px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.tourist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 15px; }
.tourist-card { position: relative; border-radius: 14px; overflow: hidden; height: 140px; }
.tourist-card img { width: 100%; height: 100%; object-fit: cover; }
.tourist-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); display: flex; align-items: flex-end; padding: 15px; color: white; font-weight: bold; }
.interactive-map-wrapper { 
    width: 100%; height: 250px; 
    background: var(--glass-bg);
    border-radius: var(--radius); margin-top: 15px; position: relative; overflow: hidden; 
    display: flex; align-items: center; justify-content: center; 
    border: var(--glass-border); 
}

/* ============================================================
   Modals
   ============================================================ */
.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(10, 14, 26, 0.55);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    z-index: 10000; display: flex; align-items: center; justify-content: center; 
}
.report-modal-content { 
    background: var(--glass-bg-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-main); 
    width: 92%; max-width: 450px; padding: 30px; border-radius: 20px; 
    box-shadow: 0 30px 64px rgba(0, 0, 0, 0.3);
    border: var(--glass-border);
    font-family: inherit; 
}
[data-theme='dark'] .report-modal-content { 
    background: rgba(13, 17, 30, 0.92);
    border: 1px solid rgba(255,255,255,0.11);
}
.report-modal-content button, .report-modal-content select, .report-modal-content textarea, .report-modal-content input { font-family: inherit !important; }
.report-input { 
    width: 100%; padding: 14px; border-radius: 12px; 
    background: var(--glass-bg);
    border: var(--glass-border);
    color: var(--text-main); font-size: 14px; margin-top: 5px; 
    appearance: none; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235B6172'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E"); 
    background-repeat: no-repeat; background-position: left 12px center; background-size: 18px; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
}
.report-input:focus { 
    border-color: var(--accent); 
    background-color: rgba(0, 98, 204, 0.05);
    outline: none; 
}
[data-theme='dark'] .report-input:focus { background-color: rgba(61, 150, 255, 0.08); }
.btn-submit { 
    flex: 2; 
    background: linear-gradient(135deg, #D9544D, #B93636);
    color: white; border: none; padding: 15px; border-radius: 12px; 
    cursor: pointer; font-weight: 800; font-size: 15px; 
    transition: transform 0.2s, box-shadow 0.2s; 
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(217, 84, 77, 0.32); }
.btn-cancel { 
    flex: 1; 
    background: var(--glass-bg);
    color: var(--text-muted); 
    border: var(--glass-border); 
    padding: 15px; border-radius: 12px; cursor: pointer; font-weight: 600; 
    transition: all 0.2s;
}
.btn-cancel:hover { background: var(--glass-bg-strong); }
.video-upload-box { 
    border: 2px dashed var(--border); 
    border-radius: 12px; padding: 20px; text-align: center; cursor: pointer; transition: all 0.3s; 
}
.video-upload-box:hover { border-color: rgba(217, 84, 77, 0.4); background: rgba(217, 84, 77, 0.02); }

.modal-content {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 90%; max-width: 500px; border-radius: 20px; padding: 25px; 
    animation: slideUp 0.3s ease;
    border: var(--glass-border);
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
    color: var(--text-main);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-subtle); padding-bottom: 15px; }
.close-btn { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--secondary); }
.modal-body { padding-top: 20px; font-size: 14px; line-height: 1.8; color: var(--text-muted); }

/* ============================================================
   Live Broadcast
   ============================================================ */
.live-broadcast-card { 
    margin-bottom: 20px; 
    background: var(--glass-bg);
    border-radius: var(--radius); overflow: hidden; 
    border: var(--glass-border);
    box-shadow: var(--shadow); transition: all 0.25s ease; 
}
.live-card-header { 
    padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; 
    background: var(--glass-bg);
    border-bottom: 1px solid var(--border-subtle); 
}
.live-indicator { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--text-main); }
.live-dot { width: 9px; height: 9px; background: #E5484D; border-radius: 50%; box-shadow: 0 0 8px rgba(229,72,77,0.6); animation: blink 1.5s infinite; }
.live-link { color: var(--accent); font-size: 11px; font-weight: bold; text-decoration: none; }
.live-player-area { position: relative; aspect-ratio: 16/9; background: #000; cursor: pointer; overflow: hidden; }
.live-thumbnail { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: opacity 0.3s ease; }
.live-player-area:hover .live-thumbnail { opacity: 0.4; }
.live-play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.3); }

/* ============================================================
   Inline Image Results
   ============================================================ */
.inline-image-results { 
    margin: 18px 0; padding: 14px 0; 
    border-top: 1px solid var(--border-subtle); 
    border-bottom: 1px solid var(--border-subtle); 
}
.inline-image-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding: 0 10px; }
.inline-image-title { font-weight: bold; font-size: 16px; color: var(--text-main); }
.see-more-images { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 13px; font-family: inherit; }
.inline-image-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 5px 10px; scrollbar-width: thin; }
.inline-img-card { 
    flex: 0 0 auto; width: 150px; height: 110px; border-radius: 12px; overflow: hidden; 
    cursor: pointer; transition: all 0.22s; 
    background: var(--glass-bg);
    border: var(--glass-border);
}
.inline-img-card:hover { transform: scale(1.04); box-shadow: var(--shadow); }
.inline-img-card img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Quick Buttons & Luxury Grid
   ============================================================ */
.q-btn { 
    display: flex; flex-direction: column; align-items: center; 
    background: var(--glass-bg) !important;
    border: var(--glass-border) !important;
    padding: 15px; border-radius: 14px; text-decoration: none; transition: all 0.25s; 
}
.q-btn:hover { background: var(--glass-bg-strong) !important; transform: translateY(-2px); }
.luxury-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 15px; }
.luxury-card { 
    position: relative; height: 140px; border-radius: 16px; overflow: hidden; 
    text-decoration: none; border: var(--glass-border); 
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
}
.luxury-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28); }
.card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.6s ease; }
.luxury-card:hover .card-bg { transform: scale(1.08); }
.card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 20%, rgba(0,0,0,0.15)); padding: 15px; display: flex; flex-direction: column; justify-content: space-between; }
.card-icon { width: 26px; height: 26px; background: rgba(255, 255, 255, 0.16); padding: 6px; border-radius: 8px; filter: brightness(0) invert(1); }
.card-title { display: block; color: white; font-size: 13px; font-weight: 800; }
.card-subtitle { display: block; color: rgba(255, 255, 255, 0.6); font-size: 9px; margin-top: 2px; }

/* ============================================================
   Project Items
   ============================================================ */
.project-item { 
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 14px; padding: 12px; margin-bottom: 12px; transition: all 0.25s ease; 
}
.project-item:hover { border-color: rgba(31, 157, 107, 0.4); transform: scale(1.01); }
.project-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.project-name { color: var(--text-main); font-size: 12px; font-weight: 700; }
.project-status { font-size: 8px; padding: 2px 8px; border-radius: 20px; font-weight: bold; }
.status-active { background: rgba(31, 157, 107, 0.12); color: #1F9D6B; }
.status-planning { background: rgba(192, 138, 46, 0.12); color: #C08A2E; }
.progress-container { height: 6px; background: var(--hover-bg); border-radius: 10px; margin: 8px 0; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, #1F9D6B, #3DBE86); border-radius: 10px; transition: width 1s ease-in-out; }
.project-footer { display: flex; justify-content: space-between; font-size: 9px; color: var(--text-muted); }
.live-pulse { width: 8px; height: 8px; background: #1F9D6B; border-radius: 50%; box-shadow: 0 0 0 rgba(31, 157, 107, 0.4); animation: pulse 2s infinite; }

/* ============================================================
   Officials & Services Grid
   ============================================================ */
.section-title-sm { color: var(--text-muted); font-size: 11px; font-weight: bold; margin-bottom: 12px; opacity: 0.8; border-right: 2px solid var(--gold); padding-right: 8px; letter-spacing: 0.2px; }
.officials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.official-card { 
    display: flex; align-items: center; gap: 10px; 
    background: var(--glass-bg);
    padding: 8px; border-radius: 12px; 
    border: var(--glass-border); transition: all 0.25s; 
}
.official-card:hover { border-color: rgba(0, 98, 204, 0.3); background: var(--glass-bg-strong); }
.official-thumb { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 2px solid var(--border); flex-shrink: 0; }
.official-thumb img { width: 100%; height: 100%; object-fit: cover; }
.official-info { display: flex; flex-direction: column; }
.official-name { color: var(--text-main); font-size: 11px; font-weight: 800; }
.official-role { color: var(--text-muted); font-size: 9px; opacity: 0.8; }

.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.service-tile { 
    display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; 
    text-decoration: none; 
    border: var(--glass-border);
    background: var(--glass-bg);
    transition: all 0.2s ease; 
}
.service-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.tile-text { display: flex; flex-direction: column; }
.tile-label { font-size: 9px; color: var(--text-muted); font-weight: 500; }
.tile-value { font-size: 13px; font-weight: 800; color: var(--text-main); margin-top: 2px; }

.tile-red .tile-icon { background: rgba(217, 84, 77, 0.10); color: #D9544D; }
.tile-blue .tile-icon { background: rgba(61, 98, 217, 0.10); color: #3D62D9; }
.tile-orange .tile-icon { background: rgba(201, 122, 46, 0.10); color: #C97A2E; }
.tile-gray .tile-icon { background: rgba(91, 100, 114, 0.10); color: #5B6472; }
.tile-red:hover { border-color: rgba(217, 84, 77, 0.35); }
.tile-blue:hover { border-color: rgba(61, 98, 217, 0.35); }
.tile-orange:hover { border-color: rgba(201, 122, 46, 0.35); }
.tile-gray:hover { border-color: rgba(91, 100, 114, 0.35); }
