/* =========================================================================
   ERGANISTAN.COM — MODERN ÜST MENÜ, HEADER & BİLGİ ŞERİDİ (AŞAMA 1)
   Safir Rehber v3.14 ile %100 uyumlu, tema dosyalarına dokunmaz.
   ========================================================================= */

:root {
	--erg-navy: #0f172a;
	--erg-navy-2: #172038;
	--erg-navy-soft: #1e293b;
	--erg-red: #c81e3a;
	--erg-red-dark: #a6152e;
	--erg-gold: #f59e0b;
	--erg-border: #e2e8f0;
	--erg-surface: #f8fafc;
	--erg-text: #0f172a;
	--erg-muted: #64748b;
	--erg-font: "Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.erg-modern-ui {
	background-color: #f1f5f9 !important;
	font-family: var(--erg-font) !important;
	color: var(--erg-text);
	-webkit-font-smoothing: antialiased;
}

/* =========================================================================
   1. HEADER ANA KONTEYNER
   ========================================================================= */
body.erg-modern-ui > header {
	background: #ffffff !important;
	border-bottom: none !important;
	box-shadow: none !important;
	padding-bottom: 0 !important;
	position: relative;
	z-index: 60;
}

/* =========================================================================
   2. EN ÜST BİLGİ ŞERİDİ (#topbar) — KOYU ŞIK & YÜKSEK KONTRAST
   ========================================================================= */
body.erg-modern-ui #topbar {
	background: linear-gradient(90deg, #0b1120 0%, #141e33 100%) !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
	padding: 0 !important;
	overflow: visible !important;
	font-family: var(--erg-font) !important;
}

body.erg-modern-ui #topbar .innerContainer {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	min-height: 38px;
	gap: 16px;
}

body.erg-modern-ui #welcome {
	float: none !important;
	color: #cbd5e1 !important;
	font-size: 12.2px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.erg-modern-ui #welcome::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #10b981;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
	flex-shrink: 0;
}

body.erg-modern-ui #topmenu {
	float: none !important;
	line-height: normal !important;
	flex-shrink: 0;
}

body.erg-modern-ui #topmenu ul {
	float: none !important;
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
	overflow: visible !important;
}

body.erg-modern-ui #topmenu li {
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
}

body.erg-modern-ui #topmenu a {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	padding: 5px 10px !important;
	border-radius: 7px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	color: #e2e8f0 !important;
	background: transparent !important;
	transition: background 0.18s ease, color 0.18s ease !important;
	line-height: 1.2 !important;
}

/* Eski temada sarı/kırmızı inline renk verilmiş linklerin okunabilirliğini düzelt */
body.erg-modern-ui #topmenu a *,
body.erg-modern-ui #topmenu a span {
	color: inherit !important;
}

body.erg-modern-ui #topmenu a:hover {
	background: rgba(255, 255, 255, 0.12) !important;
	color: #ffffff !important;
}

body.erg-modern-ui #topmenu li .safiricon {
	margin-right: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
}

body.erg-modern-ui #topmenu li .safiricon svg {
	width: 13px !important;
	height: 13px !important;
	fill: currentColor !important;
	opacity: 0.9;
}

/* Nöbetçi Eczaneler ve Giriş/Üye Ol linklerine belirgin modern rozet görünümü */
body.erg-modern-ui #topmenu a[href*="eczane"] {
	background: rgba(16, 185, 129, 0.16) !important;
	color: #6ee7b7 !important;
	border: 1px solid rgba(16, 185, 129, 0.32) !important;
}
body.erg-modern-ui #topmenu a[href*="eczane"]:hover {
	background: #059669 !important;
	color: #ffffff !important;
	border-color: #059669 !important;
}

body.erg-modern-ui #topmenu a[href*="uye"],
body.erg-modern-ui #topmenu a[href*="giris"],
body.erg-modern-ui #topmenu a[href*="profil"] {
	background: rgba(200, 30, 58, 0.22) !important;
	color: #fecdd3 !important;
	border: 1px solid rgba(244, 63, 94, 0.36) !important;
}
body.erg-modern-ui #topmenu a[href*="uye"]:hover,
body.erg-modern-ui #topmenu a[href*="giris"]:hover,
body.erg-modern-ui #topmenu a[href*="profil"]:hover {
	background: var(--erg-red) !important;
	color: #ffffff !important;
	border-color: var(--erg-red) !important;
}

/* =========================================================================
   3. LOGO & BANNER ALANI (#header-cont)
   ========================================================================= */
body.erg-modern-ui #header-cont {
	background: #ffffff !important;
	padding: 14px 0 !important;
	border-bottom: 1px solid #eef2f7;
}

body.erg-modern-ui #mobileHeader {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 20px;
	background: transparent !important;
}

body.erg-modern-ui #header-logo {
	flex-shrink: 0;
}

body.erg-modern-ui #header-logo a {
	display: inline-flex;
	align-items: center;
	transition: opacity 0.2s ease;
}

body.erg-modern-ui #header-logo a:hover {
	opacity: 0.9;
}

body.erg-modern-ui #header-logo img {
	height: var(--headerHeight, 80px) !important;
	max-height: 110px !important;
	width: auto !important;
	max-width: 100% !important;
	object-fit: contain;
}

body.erg-modern-ui .bannerAd {
	margin-left: auto !important;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
	line-height: 0;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.erg-modern-ui .bannerAd:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.13);
}

body.erg-modern-ui .bannerAd img {
	display: block;
	border-radius: 10px;
	max-height: 82px;
	width: auto;
}

/* =========================================================================
   4. ANA MENÜ ÇUBUĞU (#mainMenu & #menuGroup) — MODERN FLEXBOX + STICKY
   ========================================================================= */
body.erg-modern-ui #mainMenu {
	margin: 0 auto 14px !important;
	position: relative;
	z-index: 55;
}

body.erg-modern-ui #menuGroup {
	background: linear-gradient(135deg, #111827 0%, #1e293b 100%) !important;
	border-bottom: 3px solid var(--erg-red) !important;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12) !important;
	transition: box-shadow 0.25s ease, background 0.25s ease;
	position: relative;
	z-index: 90;
}

/* Aşağı kaydırılınca yapışkan (sticky) menü */
body.erg-modern-ui #menuGroup.erg-is-sticky {
	position: fixed !important;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 9990 !important;
	background: rgba(15, 23, 42, 0.96) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22) !important;
}

body.admin-bar.erg-modern-ui #menuGroup.erg-is-sticky {
	top: 32px;
}

body.erg-modern-ui #menuGroup .inner {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	min-height: 52px !important;
	gap: 10px;
}

body.erg-modern-ui #menuGroup .inner > div[style*="clear:both"] {
	display: none !important;
}

body.erg-modern-ui #menu {
	height: auto !important;
	min-height: 52px !important;
	flex: 1 1 auto;
	font-family: var(--erg-font) !important;
	display: flex;
	align-items: center;
}

body.erg-modern-ui #menu > ul {
	display: flex !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
	gap: 4px !important;
	width: 100%;
	padding: 6px 0 !important;
}

body.erg-modern-ui #menu > ul > li {
	display: flex !important;
	align-items: center !important;
	padding: 0 !important;
	margin: 0 !important;
	position: relative !important;
	background: transparent !important;
	border-radius: 8px !important;
	transition: background 0.18s ease !important;
}

/* Eski ok/kare üçgen çıkıntılarını tamamen kaldır */
body.erg-modern-ui #menu li.menu-item-home::before,
body.erg-modern-ui #menu li.menu-item-home + li::before {
	display: none !important;
	content: none !important;
}

body.erg-modern-ui #menu > ul > li > a {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 7px !important;
	height: 40px !important;
	line-height: 40px !important;
	padding: 0 14px !important;
	color: #f1f5f9 !important;
	font-size: 13.4px !important;
	font-weight: 700 !important;
	letter-spacing: 0.15px;
	border-radius: 8px !important;
	white-space: nowrap !important;
	transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease !important;
}

body.erg-modern-ui #menu > ul > li:hover > a {
	background: rgba(255, 255, 255, 0.11) !important;
	color: #ffffff !important;
}

body.erg-modern-ui #menu > ul > li.current-menu-item,
body.erg-modern-ui #menu > ul > li.current-menu-ancestor,
body.erg-modern-ui #menu > ul > li.current-post-ancestor,
body.erg-modern-ui #menu > ul > li.current-category-ancestor {
	background: transparent !important;
}

body.erg-modern-ui #menu > ul > li.current-menu-item > a,
body.erg-modern-ui #menu > ul > li.current-menu-ancestor > a,
body.erg-modern-ui #menu > ul > li.current-post-ancestor > a,
body.erg-modern-ui #menu > ul > li.current-category-ancestor > a {
	background: var(--erg-red) !important;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(200, 30, 58, 0.35) !important;
}

/* Anasayfa ikon butonu */
body.erg-modern-ui #menu > ul > li.menu-item-home {
	width: auto !important;
	background: transparent !important;
	margin-right: 2px !important;
}

body.erg-modern-ui #menu > ul > li.menu-item-home > a {
	width: 40px !important;
	height: 40px !important;
	padding: 0 !important;
	gap: 0 !important;
	justify-content: center !important;
	align-items: center !important;
	background: rgba(255, 255, 255, 0.08) !important;
	border-radius: 8px !important;
}

body.erg-modern-ui #menu > ul > li.menu-item-home .safiricon {
	margin: 0 !important;
}

body.erg-modern-ui #menu > ul > li.menu-item-home.current-menu-item > a,
body.erg-modern-ui #menu > ul > li.menu-item-home > a:hover {
	background: var(--erg-red) !important;
	color: #ffffff !important;
}

body.erg-modern-ui #menu .safiricon {
	margin: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0;
}

body.erg-modern-ui #menu svg {
	width: 15px !important;
	height: 15px !important;
	fill: currentColor !important;
	opacity: 0.92;
}

body.erg-modern-ui #menu li.menu-item-has-children svg.themeicon-arrow {
	width: 9px !important;
	height: 9px !important;
	margin-left: 2px !important;
	transition: transform 0.2s ease;
}

body.erg-modern-ui #menu > ul > li.menu-item-has-children:hover > a svg.themeicon-arrow {
	transform: rotate(180deg);
}

/* =========================================================================
   5. AÇILIR ALT MENÜLER (DROPDOWN) — MODERN YÜZEN KART
   ========================================================================= */
body.erg-modern-ui #menu .sub-menu {
	top: calc(100% + 6px) !important;
	left: 0 !important;
	min-width: 230px !important;
	padding: 8px !important;
	background: #ffffff !important;
	border: 1px solid var(--erg-border) !important;
	border-top: 3px solid var(--erg-red) !important;
	border-radius: 12px !important;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16) !important;
	transform: translateY(10px) !important;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease !important;
}

/* Hover köprüsü (fare alt menüye geçerken menünün kapanmasını önler) */
body.erg-modern-ui #menu > ul > li.menu-item-has-children::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 10px;
}

body.erg-modern-ui #menu li:hover > .sub-menu {
	visibility: visible !important;
	opacity: 1 !important;
	z-index: 999 !important;
	transform: translateY(0) !important;
}

body.erg-modern-ui #menu .sub-menu li {
	border: none !important;
	margin: 2px 0 !important;
	padding: 0 !important;
	display: block !important;
}

body.erg-modern-ui #menu .sub-menu a {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	min-width: 220px !important;
	padding: 9px 12px !important;
	line-height: 1.35 !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #1e293b !important;
	border-radius: 8px !important;
	background: transparent !important;
	transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease !important;
}

body.erg-modern-ui #menu .sub-menu a:hover {
	background: #fef2f2 !important;
	color: var(--erg-red) !important;
	padding-left: 16px !important;
}


body.erg-modern-ui #menu .sub-menu a .safiricon {
	color: #64748b !important;
	transition: color 0.15s ease;
}

body.erg-modern-ui #menu .sub-menu a:hover .safiricon {
	color: var(--erg-red) !important;
}

body.erg-modern-ui #menu .sub-menu .sub-menu {
	top: -8px !important;
	left: calc(100% + 6px) !important;
	border-radius: 12px !important;
}

/* =========================================================================
   6. SAĞ AKSİYON BUTONLARI (ÜYELİK & ARAMA)
   ========================================================================= */
body.erg-modern-ui .headerButtons {
	margin-left: auto !important;
	background: transparent !important;
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
	flex-shrink: 0;
}

body.erg-modern-ui #toplogin,
body.erg-modern-ui #topsearch {
	float: none !important;
	position: relative !important;
}

body.erg-modern-ui #toplogin .button,
body.erg-modern-ui #topsearch .button {
	width: 38px !important;
	height: 38px !important;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 9px !important;
	border: 1px solid rgba(255, 255, 255, 0.14) !important;
	background: rgba(255, 255, 255, 0.08) !important;
	color: #ffffff !important;
	transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease !important;
}

body.erg-modern-ui #toplogin:hover .button,
body.erg-modern-ui #topsearch:hover .button,
body.erg-modern-ui #topsearch.active .button {
	background: var(--erg-red) !important;
	border-color: var(--erg-red) !important;
}

body.erg-modern-ui #toplogin .button svg,
body.erg-modern-ui #topsearch .button svg {
	width: 17px !important;
	height: 17px !important;
	fill: currentColor !important;
}

/* Açılır Üyelik Menüsü */
body.erg-modern-ui #loginMenu {
	top: calc(100% + 2px) !important;
	width: 205px !important;
	padding-top: 10px !important;
}

body.erg-modern-ui #loginMenu .items {
	background: #ffffff !important;
	border: 1px solid var(--erg-border) !important;
	border-top: 3px solid var(--erg-red) !important;
	border-radius: 12px !important;
	box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18) !important;
	padding: 6px !important;
}

body.erg-modern-ui #loginMenu .item {
	border-top: none !important;
}

body.erg-modern-ui #loginMenu .item:first-child::before {
	display: none !important;
}

body.erg-modern-ui #loginMenu a {
	line-height: 1.4 !important;
	padding: 9px 12px !important;
	border-radius: 8px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #1e293b !important;
	gap: 9px !important;
}

body.erg-modern-ui #loginMenu a:hover {
	background: #fef2f2 !important;
	color: var(--erg-red) !important;
}

body.erg-modern-ui #loginMenu a svg {
	color: var(--erg-red) !important;
}

/* Açılır Modern Arama Kutusu */
body.erg-modern-ui #topsearch .form {
	top: calc(100% + 2px) !important;
	width: 310px !important;
	padding-top: 10px !important;
}

body.erg-modern-ui #topsearch form {
	background: #ffffff !important;
	border: 1px solid var(--erg-border) !important;
	border-radius: 12px !important;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18) !important;
	padding: 8px !important;
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
}

body.erg-modern-ui #topsearch form::before {
	display: none !important;
}

body.erg-modern-ui #topsearch input[type=text] {
	background: #f8fafc !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 8px !important;
	padding: 0 12px !important;
	height: 38px !important;
	line-height: 38px !important;
	font-family: var(--erg-font) !important;
	font-size: 13px !important;
	color: #0f172a !important;
	flex: 1 1 auto;
}

body.erg-modern-ui #topsearch input[type=text]:focus {
	border-color: var(--erg-red) !important;
	background: #ffffff !important;
}

body.erg-modern-ui #topsearch button {
	position: static !important;
	width: 38px !important;
	height: 38px !important;
	flex-shrink: 0;
	border-radius: 8px !important;
	background: var(--erg-red) !important;
	color: #ffffff !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: background 0.18s ease !important;
}

body.erg-modern-ui #topsearch button:hover {
	background: var(--erg-red-dark) !important;
}

body.erg-modern-ui #topsearch button svg {
	margin: 0 !important;
	fill: #ffffff !important;
}

/* =========================================================================
   7. SON DAKİKA + DÖVİZ + HAVA DURUMU ŞERİDİ (#breakingGroup)
   ========================================================================= */
body.erg-modern-ui #breakingGroup {
	background: #ffffff !important;
	border: 1px solid var(--erg-border) !important;
	border-top: none !important;
	border-radius: 0 0 12px 12px !important;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
	padding: 7px 12px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px !important;
	overflow: hidden !important;
	font-family: var(--erg-font) !important;
}

body.erg-modern-ui #breakingGroup #breaking {
	float: none !important;
	width: auto !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
	height: 32px !important;
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
}

/* Kırmızı canlı "SON DAKİKA" rozeti */
body.erg-modern-ui #breakingGroup #breaking::before {
	content: "SON DAKİKA";
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 6px;
	background: var(--erg-red);
	color: #ffffff;
	font-size: 10.8px;
	font-weight: 800;
	letter-spacing: 0.45px;
	flex-shrink: 0;
	line-height: 1.2;
}

body.erg-modern-ui #breakingGroup #breaking .links {
	float: none !important;
	width: auto !important;
	height: 28px !important;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
	flex-shrink: 0;
}

body.erg-modern-ui #breakingGroup #breaking .links span {
	width: 24px !important;
	height: 24px !important;
	border-radius: 6px !important;
	background: #f1f5f9 !important;
	border: 1px solid #e2e8f0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #334155 !important;
	opacity: 1 !important;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
}

body.erg-modern-ui #breakingGroup #breaking .links span:hover {
	background: var(--erg-red) !important;
	border-color: var(--erg-red) !important;
	color: #ffffff !important;
}

body.erg-modern-ui #breakingGroup #breaking .links span svg {
	margin: 0 !important;
	width: 9px !important;
	height: 9px !important;
}

body.erg-modern-ui #breakingGroup #breaking .titles {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}

body.erg-modern-ui #breakingGroup #breaking .scroll p {
	line-height: 32px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #1e293b !important;
}

body.erg-modern-ui #breakingGroup #breaking .scroll p a:hover {
	color: var(--erg-red) !important;
}

/* Sağ Piyasa & Hava Durumu Kapsülleri */
body.erg-modern-ui #breakingGroup .rightGroup {
	float: none !important;
	display: flex !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
	gap: 6px !important;
	flex-shrink: 0;
	background: transparent !important;
	border-top: none !important;
}

body.erg-modern-ui #breakingGroup .rightGroup .item {
	border: 1px solid #e2e8f0 !important;
	background: #f8fafc !important;
	border-radius: 8px !important;
	padding: 0 9px !important;
	height: 30px !important;
	line-height: 28px !important;
	font-size: 11.8px !important;
	color: #334155 !important;
	gap: 5px !important;
	width: auto !important;
	white-space: nowrap;
}

body.erg-modern-ui #breakingGroup .rightGroup .item .title {
	color: #64748b !important;
	font-weight: 700 !important;
	font-size: 11px !important;
}

body.erg-modern-ui #breakingGroup .rightGroup .item .bold {
	color: #0f172a !important;
	font-weight: 800 !important;
	font-size: 12px !important;
}

body.erg-modern-ui #breakingGroup .rightGroup .item.weather {
	background: #eff6ff !important;
	border-color: #bfdbfe !important;
}

body.erg-modern-ui #breakingGroup .rightGroup .item.weather img {
	width: 20px !important;
	height: 20px !important;
}

/* Masaüstünde temanın JS twolines sınıfı eklense bile tek satır koru */
@media (min-width: 981px) {
	body.erg-modern-ui #breakingGroup.twolines {
		flex-direction: row !important;
	}
	body.erg-modern-ui #breakingGroup.twolines #breaking {
		width: auto !important;
	}
	body.erg-modern-ui #breakingGroup.twolines .rightGroup {
		width: auto !important;
		border-top: none !important;
		background: transparent !important;
	}
	body.erg-modern-ui #breakingGroup.twolines .rightGroup .item {
		width: auto !important;
	}
}

/* =========================================================================
   8. MOBİL HIZLI KATEGORİ ŞERİDİ (JS ile ana menüden otomatik üretilir)
   ========================================================================= */
.erg-mobile-quickbar {
	display: none;
}

/* =========================================================================
   9. MOBİL & TABLET DUYARLI TASARIM (<= 1180px)
   ========================================================================= */
@media all and (max-width: 1180px) {
	body.erg-modern-ui > header {
		position: sticky;
		top: 0;
		z-index: 990;
		box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08) !important;
		border-bottom: 2px solid var(--erg-red) !important;
	}

	body.admin-bar.erg-modern-ui > header {
		top: 32px;
	}

	body.erg-modern-ui #header-cont {
		padding: 0 !important;
		border-bottom: none !important;
	}

	body.erg-modern-ui #mobileHeader {
		min-height: 58px;
		gap: 8px;
		padding: 0 8px;
	}

	body.erg-modern-ui #header-logo img {
		height: 46px !important;
		max-height: 48px !important;
		width: auto !important;
	}

	body.erg-modern-ui #header-cont .toggleMenu,
	body.erg-modern-ui #header-cont .membershipButton {
		width: 42px !important;
		height: 42px !important;
		border: 1px solid #e2e8f0 !important;
		border-radius: 10px !important;
		background: #f8fafc !important;
		color: #0f172a !important;
	}

	body.erg-modern-ui #header-cont .toggleMenu:hover,
	body.erg-modern-ui #header-cont .membershipButton:hover,
	body.erg-modern-ui #header-cont .membershipButton.active {
		background: var(--erg-red) !important;
		border-color: var(--erg-red) !important;
		color: #ffffff !important;
	}

	body.erg-modern-ui #header-cont .toggleMenu svg,
	body.erg-modern-ui #header-cont .membershipButton svg {
		width: 20px !important;
		height: 20px !important;
	}

	/* Mobil kaydırılabilir hızlı kategori çubuğu */
	.erg-mobile-quickbar {
		display: flex;
		align-items: center;
		gap: 6px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		background: #0f172a;
		padding: 8px 10px;
	}
	.erg-mobile-quickbar::-webkit-scrollbar {
		display: none;
	}
	.erg-mobile-quickbar a {
		flex: 0 0 auto;
		display: inline-flex;
		align-items: center;
		gap: 5px;
		padding: 6px 12px;
		border-radius: 99px;
		background: rgba(255, 255, 255, 0.1);
		color: #f1f5f9 !important;
		font-size: 12.2px;
		font-weight: 700;
		white-space: nowrap;
	}
	.erg-mobile-quickbar a.is-active,
	.erg-mobile-quickbar a:active {
		background: var(--erg-red);
		color: #ffffff !important;
	}

	/* Mobil Hamburger Çekmecesi */
	body.erg-modern-ui #hamburgermenu {
		background: #ffffff !important;
		box-shadow: 12px 0 36px rgba(15, 23, 42, 0.25) !important;
		font-family: var(--erg-font) !important;
	}

	body.erg-modern-ui #hamburgermenu .logoBlock {
		background: #0f172a !important;
		border-bottom: 3px solid var(--erg-red) !important;
		padding: 12px 14px !important;
	}

	body.erg-modern-ui #hamburgermenu .logoBlock img {
		max-height: 38px !important;
		height: auto !important;
		background: #ffffff;
		padding: 4px 8px;
		border-radius: 7px;
	}

	body.erg-modern-ui #hamburgermenu span.close {
		background: rgba(255, 255, 255, 0.14) !important;
		color: #ffffff !important;
		border-radius: 9px !important;
	}

	body.erg-modern-ui #hamburgermenu input[type=text] {
		height: 40px !important;
		padding: 0 12px !important;
		border-radius: 9px 0 0 9px !important;
		border: 1px solid #cbd5e1 !important;
		background: #f8fafc !important;
		font-family: var(--erg-font) !important;
	}

	body.erg-modern-ui #hamburgermenu form button {
		height: 40px !important;
		width: 42px !important;
		border: none !important;
		border-radius: 0 9px 9px 0 !important;
		background: var(--erg-red) !important;
		color: #ffffff !important;
	}

	body.erg-modern-ui #mobilemenu a {
		padding: 13px 16px !important;
		font-size: 13.8px !important;
		font-weight: 700 !important;
		color: #0f172a !important;
		border-bottom: 1px solid #f1f5f9 !important;
	}

	body.erg-modern-ui #mobilemenu .sub-menu {
		background: #f8fafc !important;
	}

	body.erg-modern-ui #mobilemenu .sub-menu a {
		font-weight: 600 !important;
		font-size: 13px !important;
		color: #334155 !important;
	}

	body.erg-modern-ui #overlay {
		background: rgba(15, 23, 42, 0.65) !important;
		backdrop-filter: blur(2px);
	}
}

@media all and (max-width: 980px) {
	body.erg-modern-ui #breakingGroup {
		flex-direction: column !important;
		align-items: stretch !important;
		border-radius: 10px !important;
		border-top: 1px solid var(--erg-border) !important;
		gap: 8px !important;
		margin: 8px 10px 0 !important;
	}

	body.erg-modern-ui #breakingGroup .rightGroup {
		flex-wrap: wrap !important;
		justify-content: space-between !important;
	}

	body.erg-modern-ui #breakingGroup .rightGroup .item {
		flex: 1 1 calc(50% - 4px) !important;
		justify-content: center !important;
	}
}

@media all and (max-width: 782px) {
	body.admin-bar.erg-modern-ui > header {
		top: 46px;
	}
}

/* =========================================================================
   10. YAZI OKUMA İLERLEME ÇUBUĞU (SINGLE POSTS)
   ========================================================================= */
.erg-read-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0%;
	background: linear-gradient(90deg, #c81e3a 0%, #f59e0b 100%);
	z-index: 99999;
	pointer-events: none;
	transition: width 0.08s linear;
}
body.admin-bar .erg-read-progress {
	top: 32px;
}
@media (max-width: 782px) {
	body.admin-bar .erg-read-progress {
		top: 46px;
	}
}
