/* ============================================================
 * Origin & Source — Dynamic Header — Frontend Styles
 * Scope: only .oas and its descendants — no risky global selectors,
 * so it never conflicts with the theme or other plugins.
 * ============================================================ */

.oas {
	--oas-gold: #c0a020;
	--oas-gold-lt: #f0d98a;
	--oas-ink: #0b0f14;
	--oas-ink2: #121a22;
	--oas-line: rgba(240, 217, 138, .18);
	--oas-txt: #e8eaed;
	--oas-muted: #9aa4ad;
	--oas-overlay: rgba(6, 9, 12, .62);
	--oas-panel-shadow: 0 18px 40px rgba(0, 0, 0, .5);
	--oas-radius: 14px;
	font-family: inherit;
	color: var(--oas-txt);
	position: relative;
	z-index: 10050;
	-webkit-tap-highlight-color: transparent;
	isolation: isolate;
	line-height: 1.4;
}
html[data-oas-theme="light"] .oas {
	--oas-ink: #f7f5ef;
	--oas-ink2: #ffffff;
	--oas-txt: #141a22;
	--oas-muted: #5c6670;
	--oas-line: rgba(192, 160, 32, .22);
	--oas-overlay: rgba(20, 26, 34, .45);
	--oas-panel-shadow: 0 18px 40px rgba(20, 26, 34, .12);
}
.oas, .oas *, .oas *::before, .oas *::after { box-sizing: border-box; }
.oas a { text-decoration: none; color: inherit; }
.oas button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
.oas ul { margin: 0; padding: 0; list-style: none; }
.oas img { max-width: 100%; display: block; }

/* Aurora background */
.oas__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--oas-ink); transition: background .3s; }
.oas__bg::before {
	content: "";
	position: absolute; inset: -40%;
	background:
		radial-gradient(38% 48% at 18% 25%, rgba(192, 160, 32, .28), transparent 60%),
		radial-gradient(45% 55% at 82% 15%, rgba(18, 26, 34, .55), transparent 60%),
		radial-gradient(50% 60% at 60% 95%, rgba(240, 217, 138, .12), transparent 60%);
	filter: blur(22px);
	animation: oas-aurora 20s ease-in-out infinite alternate;
	pointer-events: none;
}
html[data-oas-theme="light"] .oas__bg::before {
	background:
		radial-gradient(38% 48% at 18% 25%, rgba(192, 160, 32, .18), transparent 60%),
		radial-gradient(45% 55% at 82% 15%, rgba(255, 255, 255, .9), transparent 60%),
		radial-gradient(50% 60% at 60% 95%, rgba(192, 160, 32, .10), transparent 60%);
}
@keyframes oas-aurora { to { transform: translate(-4%, 3%) rotate(8deg) scale(1.15); } }

/* ===== Announcement bar ===== */
.oas__announce {
	display: flex; align-items: center; justify-content: center; gap: 14px;
	padding: 9px 44px 9px 16px; position: relative;
	background: linear-gradient(90deg, var(--oas-gold), var(--oas-gold-lt));
	color: var(--oas-ink); font-size: 13px; font-weight: 600; text-align: center;
	flex-wrap: wrap;
}
.oas__announce-in { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.oas__announce-link { text-decoration: underline; font-weight: 700; }
.oas__countdown { font-variant-numeric: tabular-nums; background: rgba(11, 15, 20, .18); padding: 2px 8px; border-radius: 8px; letter-spacing: .5px; }
.oas__announce-close { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 18px; line-height: 1; }
.oas__announce-close:hover { background: rgba(11, 15, 20, .18); }
.oas[dir="rtl"] .oas__announce-close, html[dir="rtl"] .oas .oas__announce-close { left: auto; right: 12px; }
.oas__announce.is-hidden { display: none; }

/* ===== Top bar ===== */
.oas__top { border-bottom: 1px solid var(--oas-line); font-size: 12.5px; }
.oas__top-in { max-width: 1320px; margin: 0 auto; padding: 9px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.oas__trust { display: flex; flex-wrap: wrap; gap: 12px 18px; color: var(--oas-muted); }
.oas__trust b { color: var(--oas-gold-lt); }
.oas__top-r { display: flex; flex-wrap: wrap; gap: 12px 16px; color: var(--oas-muted); }
.oas__top-r a:hover, .oas__top-r a:focus-visible { color: var(--oas-gold-lt); }

/* ===== Main row ===== */
.oas__main { max-width: 1320px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 18px; }
.oas__brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; min-width: 0; }
.oas__logo-img { max-height: 42px; width: auto; }
.oas__globe {
	width: 36px; height: 36px; border-radius: 50%; position: relative; overflow: hidden; flex-shrink: 0;
	background: radial-gradient(circle at 30% 30%, var(--oas-gold-lt), var(--oas-gold) 46%, var(--oas-ink2) 100%);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 0 22px rgba(192, 160, 32, .45);
}
.oas__globe::after {
	content: ""; position: absolute; inset: 2px; border-radius: 50%;
	background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(255, 255, 255, .16) 6px 7px);
	animation: oas-spin 9s linear infinite;
}
@keyframes oas-spin { to { transform: rotate(360deg); } }
.oas__name { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; min-width: 0; color: var(--oas-txt); }
.oas__name .src { background: linear-gradient(90deg, var(--oas-gold), var(--oas-gold-lt)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.oas__route { position: relative; width: 36px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, .25), var(--oas-gold)); flex-shrink: 0; }
html[data-oas-theme="light"] .oas__route { background: linear-gradient(90deg, rgba(20, 26, 34, .2), var(--oas-gold)); }
.oas__route i {
	position: absolute; top: 50%; left: 0; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
	background: var(--oas-gold-lt); box-shadow: 0 0 10px 2px var(--oas-gold-lt);
	animation: oas-travel 3.2s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes oas-travel { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* ===== Main menu ===== */
.oas__nav { display: flex; align-items: center; gap: 22px; margin-inline: auto; font-size: 15px; font-weight: 500; }
.oas__nav > span { position: relative; display: inline-flex; align-items: center; }
.oas__nav a { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 8px 0; opacity: .92; transition: .25s; color: var(--oas-txt); }
.oas__nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--oas-gold), var(--oas-gold-lt)); transition: width .3s; }
.oas__nav a:hover, .oas__nav a:focus-visible { opacity: 1; }
.oas__nav > span > a:hover::after, .oas__nav > a:hover::after, .oas__nav > span > a:focus-visible::after { width: 100%; }
.oas__sub-desc { display: block; font-size: 11px; font-weight: 400; opacity: .65; }

.oas__sub-toggle { display: none; width: 44px; height: 44px; place-items: center; color: var(--oas-gold-lt); border-radius: 10px; }
.oas__caret { opacity: .8; transition: transform .25s; display: block; }
.oas__has-sub:hover > a .oas__caret, .oas__has-sub.is-open > .oas__sub-toggle .oas__caret { transform: rotate(180deg); }

.oas__sub {
	position: absolute; top: 100%; left: 0; min-width: 220px; display: flex; flex-direction: column; gap: 2px;
	padding: 8px; background: var(--oas-ink2); border: 1px solid var(--oas-line); border-radius: var(--oas-radius);
	box-shadow: var(--oas-panel-shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .28s; z-index: 10060;
}
.oas__has-sub:hover > .oas__sub, .oas__has-sub:focus-within > .oas__sub { opacity: 1; visibility: visible; transform: translateY(6px); }
.oas__sub a { padding: 10px 12px; border-radius: 9px; opacity: .9; flex-direction: column; align-items: flex-start; gap: 2px; }
.oas__sub a::after { display: none !important; }
.oas__sub a:hover, .oas__sub a:focus-visible { background: rgba(192, 160, 32, .12); color: var(--oas-gold); opacity: 1; }

/* Mega menu */
.oas__sub--mega {
	min-width: 560px;
	display: grid !important;
	grid-template-columns: repeat(var(--oas-mega-cols, 3), 1fr);
	gap: 2px 18px;
}

/* ===== Buttons and icons ===== */
.oas__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-inline-start: auto; }
.oas__ic {
	width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
	background: rgba(255, 255, 255, .06); border: 1px solid var(--oas-line); cursor: pointer; transition: .25s;
	position: relative; color: var(--oas-txt);
}
html[data-oas-theme="light"] .oas__ic { background: rgba(20, 26, 34, .04); }
.oas__ic:hover, .oas__ic:focus-visible { background: rgba(240, 217, 138, .14); border-color: var(--oas-gold); color: var(--oas-gold); }
.oas__ic .cnt {
	position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; font-size: 11px;
	font-weight: 700; border-radius: 9px; display: grid; place-items: center; background: var(--oas-gold); color: var(--oas-ink);
}
.oas__cta {
	padding: 11px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; white-space: nowrap;
	background: linear-gradient(90deg, var(--oas-gold), var(--oas-gold-lt)); color: var(--oas-ink);
	box-shadow: 0 6px 18px rgba(192, 160, 32, .35); transition: .25s; display: inline-flex; align-items: center;
}
.oas__cta:hover, .oas__cta:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(192, 160, 32, .5); }
.oas__ghost { padding: 11px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; white-space: nowrap; border: 1px solid var(--oas-gold); color: var(--oas-gold); transition: .25s; display: inline-flex; align-items: center; }
.oas__ghost:hover, .oas__ghost:focus-visible { background: rgba(240, 217, 138, .12); }

.oas__theme-btn .oas-ico-sun { display: none; }
html[data-oas-theme="light"] .oas__theme-btn .oas-ico-moon { display: none; }
html[data-oas-theme="light"] .oas__theme-btn .oas-ico-sun { display: block; }

.oas__slogan { text-align: center; padding: 8px 12px; font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--oas-muted); border-top: 1px solid var(--oas-line); }
.oas__slogan em { font-style: normal; color: var(--oas-gold); font-weight: 700; }

/* ===== Sticky on scroll ===== */
.oas.is-stuck { position: fixed; top: 0; left: 0; right: 0; box-shadow: 0 8px 30px rgba(0, 0, 0, .28); animation: oas-drop .35s ease; }
html[data-oas-theme="light"] .oas.is-stuck { box-shadow: 0 8px 30px rgba(20, 26, 34, .1); }
.oas.is-stuck .oas__top, .oas.is-stuck .oas__slogan, .oas.is-stuck .oas__announce { display: none; }
.oas.is-stuck .oas__main { padding-top: 10px; padding-bottom: 10px; }
@keyframes oas-drop { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.oas.is-auto-hidden { transform: translateY(-100%); }
.oas[data-hide-scroll="1"] { transition: transform .35s ease; }

/* ===== Burger ↔ close icon ===== */
.oas__burger { display: none !important; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--oas-line); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; position: relative; z-index: 10070; color: var(--oas-gold-lt); }
html[data-oas-theme="light"] .oas__burger { background: rgba(20, 26, 34, .04); }
.oas__burger span { display: block; width: 20px; height: 2px; background: currentColor; transition: .3s; transform-origin: center; border-radius: 2px; }
.oas.is-open .oas__burger { background: rgba(192, 160, 32, .16); border-color: var(--oas-gold); color: var(--oas-gold); }
.oas.is-open .oas__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.oas.is-open .oas__burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.oas.is-open .oas__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Overlay ===== */
.oas__overlay { position: fixed; inset: 0; background: var(--oas-overlay); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; visibility: hidden; pointer-events: none; transition: .3s; z-index: 10040; }
.oas.is-open .oas__overlay { opacity: 1; visibility: visible; pointer-events: auto; }
html.oas-menu-lock, html.oas-menu-lock body { overflow: hidden !important; touch-action: none; }

.oas__drawer-head { display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--oas-line); }
.oas__drawer-title { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--oas-muted); }
.oas__drawer-close { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--oas-line); background: rgba(192, 160, 32, .12); color: var(--oas-gold); font-weight: 700; font-size: 13px; cursor: pointer; transition: .2s; }
.oas__drawer-close:hover, .oas__drawer-close:focus-visible { background: rgba(192, 160, 32, .2); border-color: var(--oas-gold); }
.oas__drawer-close svg { display: block; flex-shrink: 0; }

/* ===== Floating buttons ===== */
.oas-float {
	position: fixed; z-index: 10030; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .25s, box-shadow .25s; color: #fff;
}
.oas-float:hover { transform: translateY(-3px) scale(1.05); }
.oas-float--whatsapp { background: #25d366; right: 22px; bottom: 22px; }
.oas-float--call { background: #1c6fd0; right: 22px; bottom: 86px; }
.oas-float--top { background: var(--oas-ink2); border: 1px solid var(--oas-line); right: 22px; bottom: 150px; color: var(--oas-gold-lt); opacity: 0; pointer-events: none; }
.oas-float--top.is-visible { opacity: 1; pointer-events: auto; }
html[dir="rtl"] .oas-float, [dir="rtl"] .oas-float { right: auto; left: 22px; }

/* If the mobile bottom bar is active, floating buttons move up */
body.oas-has-mbar .oas-float--whatsapp { bottom: 84px; }
body.oas-has-mbar .oas-float--call { bottom: 148px; }
body.oas-has-mbar .oas-float--top { bottom: 212px; }

/* ===== Mobile bottom navigation bar ===== */
.oas-mbar {
	display: none !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10020;
	background: var(--oas-ink2, #121a22); border-top: 1px solid var(--oas-line, rgba(240,217,138,.18));
	padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
	box-shadow: 0 -8px 24px rgba(0, 0, 0, .25);
}
html[data-oas-theme="light"] .oas-mbar { background: #ffffff; }
.oas-mbar__item {
	flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px;
	font-size: 10.5px; color: var(--oas-muted, #9aa4ad); border-radius: 10px; position: relative;
}
.oas-mbar__item:hover, .oas-mbar__item:focus-visible { color: var(--oas-gold, #c0a020); }
.oas-mbar__badge {
	position: absolute; top: 0; right: calc(50% - 20px); min-width: 16px; height: 16px; font-size: 10px; font-weight: 700;
	border-radius: 8px; background: var(--oas-gold, #c0a020); color: #0b0f14; display: grid; place-items: center; padding: 0 3px;
}

/* ===== Live search ===== */
.oas-srch { position: fixed; inset: 0; z-index: 10100; display: none; background: rgba(6, 9, 12, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: max(8vh, 24px) 14px 14px; }
html[data-oas-theme="light"] .oas-srch { background: rgba(20, 26, 34, .5); }
.oas-srch.is-active { display: block; animation: oas-fade .25s ease; }
@keyframes oas-fade { from { opacity: 0; } to { opacity: 1; } }
.oas-srch__panel { max-width: 680px; margin: 0 auto; background: var(--oas-ink2, #121a22); border: 1px solid rgba(240, 217, 138, .22); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); color: var(--oas-txt, #e8eaed); }
html[data-oas-theme="light"] .oas-srch__panel { background: #ffffff; color: #141a22; }
.oas-srch__form { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(240, 217, 138, .15); color: var(--oas-muted, #9aa4ad); }
.oas-srch__form input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; font-size: 17px; color: inherit; }
.oas-srch__close { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; font-size: 26px; line-height: 1; color: inherit; cursor: pointer; }
.oas-srch__close:hover, .oas-srch__close:focus-visible { color: var(--oas-gold-lt, #f0d98a); background: rgba(192, 160, 32, .1); }
.oas-srch__results { max-height: min(52vh, 420px); overflow-y: auto; padding: 8px; -webkit-overflow-scrolling: touch; }
.oas-srch__item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; color: inherit; text-decoration: none; transition: .2s; }
.oas-srch__item:hover, .oas-srch__item:focus-visible { background: rgba(192, 160, 32, .1); }
.oas-srch__item img, .oas-srch__ph { width: 46px; height: 46px; object-fit: cover; border-radius: 9px; flex-shrink: 0; }
.oas-srch__ph { background: rgba(127, 127, 127, .15); display: block; }
.oas-srch__meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.oas-srch__meta b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oas-srch__meta span { font-size: 12px; color: var(--oas-gold, #c0a020); }
.oas-srch__price { font-size: 12.5px; font-weight: 700; color: var(--oas-gold-lt, #f0d98a); white-space: nowrap; }
.oas-srch__empty { padding: 26px; text-align: center; color: var(--oas-muted, #9aa4ad); font-size: 14px; }

/* ============================================================
 *  Responsive
 * ============================================================ */
@media (max-width: 1100px) {
	.oas__nav { gap: 16px; }
	.oas__ghost { display: none; }
}
@media (max-width: 980px) {
	.oas__burger { display: inline-flex !important; }
	.oas__drawer-head { display: flex; }
	.oas__nav {
		position: fixed; top: 0; right: 0; bottom: 0; width: min(90vw, 380px);
		flex-direction: column; align-items: stretch; gap: 0;
		padding: max(16px, env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
		background: var(--oas-ink2); margin: 0;
		transform: translateX(105%);
		transition: transform .35s cubic-bezier(.22, .61, .36, 1);
		z-index: 10060; box-shadow: -12px 0 40px rgba(0, 0, 0, .35);
		overflow-y: auto; -webkit-overflow-scrolling: touch;
	}
	.oas.is-open .oas__nav { transform: translateX(0); }
	.oas__nav > span, .oas__nav > a { width: 100%; }
	.oas__nav > span { flex-wrap: wrap; border-bottom: 1px solid var(--oas-line); }
	.oas__nav > a, .oas__nav > span > a { width: 100%; font-size: 16px; padding: 14px 8px; border-bottom: 1px solid var(--oas-line); justify-content: space-between; min-height: 48px; }
	.oas__nav > span > a { width: calc(100% - 48px); border-bottom: 0; }
	.oas__nav a::after { display: none !important; }
	.oas__sub-toggle { display: inline-grid; }
	.oas__sub, .oas__sub--mega {
		position: static; width: 100%; min-width: 0; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; background: transparent; padding: 0 0 10px 8px; display: none !important;
		grid-template-columns: 1fr !important;
	}
	.oas__has-sub.is-open > .oas__sub { display: flex !important; }
	.oas__has-sub:hover > .oas__sub, .oas__has-sub:focus-within > .oas__sub { transform: none; }
	.oas__sub a { padding: 12px 12px; border-radius: 10px; min-height: 44px; }
	.oas-mbar { display: flex !important; }
}
@media (max-width: 640px) {
	.oas__top { display: none; }
	.oas__main { gap: 10px; padding: 12px 14px; }
	.oas__name { font-size: 16px; }
	.oas__route { width: 24px; }
	.oas__cta { padding: 10px 12px; font-size: 13px; }
	.oas__actions { gap: 8px; }
	.oas__ic, .oas__burger { width: 42px; height: 42px; }
	.oas__announce { font-size: 12px; padding: 8px 40px 8px 12px; }
}
@media (max-width: 380px) {
	.oas__name span:not(.src):not(.oas__route) { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.oas__cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.oas *, .oas *::before, .oas *::after { animation: none !important; transition: none !important; }
}
