/* Features shared by name / nama / names (loaded on every page, with or without the new theme) */

:root { --f-primary: #ff6fae; --f-ink: #333; }
body[class*="theme-"] { --f-primary: var(--primary); --f-ink: var(--ink); }

/* ---------- bottom anchor ad (replaces the centre pop-up) ----------
   Kept on screen width-wise so AdSense can size it, but pushed below the viewport
   until Google reports the slot as filled (or a Shopee banner is inside). */
.anchorad {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 1002;
	max-height: 30vh;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 -6px 20px rgba(0,0,0,0.12);
	border-radius: 16px 16px 0 0;
	transform: translateY(110%);
	transition: transform .35s ease;
}
.anchorad:has(ins.adsbygoogle[data-ad-status="filled"]),
.anchorad:has(.myadds .in) { transform: translateY(0); }
.anchorad-close {
	position: absolute;
	right: 10px; top: 6px;
	z-index: 2;
	width: 28px; height: 28px; line-height: 26px;
	text-align: center;
	border-radius: 50%;
	background: rgba(0,0,0,0.55);
	color: #fff;
	font-size: 18px;
	cursor: pointer;
}
/* collapse any unfilled ad slot instead of leaving an empty gap */
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

/* ---------- name card extras ---------- */
/* nothing from Google auto ads / Ad intents inside the name card (the card is shared and downloaded as an image) */
#capture [class*="google-anno"], #capture ins, #capture iframe, #capture .adsbygoogle { display: none !important; }
.cardmark {
	margin-top: 18px;
	font-size: 12px;
	letter-spacing: .5px;
	color: rgba(0,0,0,0.35);
}
.popbadge {
	display: table;
	margin: 14px auto 0;
	padding: 6px 14px;
	border-radius: 999px;
	background: #fff4e0;
	color: #a35a00;
	font-size: 14px;
	font-weight: 600;
}
.cardtools {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 16px auto 4px;
}
.cardbtn {
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: 999px;
	border: 2px solid var(--f-primary);
	background: #fff;
	color: var(--f-ink) !important;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.2;
	transition: transform .15s, background .15s;
}
.cardbtn:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--f-primary) 12%, #fff); }
.cardbtn.wa { border-color: #25d366; }
.cardbtn.fav.on { background: var(--f-primary); color: #fff !important; }
.cardbtn[disabled] { opacity: .6; cursor: wait; }

/* ---------- 12-month search trend ---------- */
.trendbox {
	max-width: 320px;
	margin: 14px auto 0;
	padding: 10px 14px 6px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
	text-align: center;
}
.trendtitle { font-size: 13px; font-weight: 600; color: rgba(0,0,0,0.55); margin-bottom: 4px; }
.trendbox svg { width: 100%; height: auto; display: block; }
.trendbox rect { fill: color-mix(in srgb, var(--f-primary) 45%, #fff); }
.trendbox rect.now { fill: var(--f-primary); }
.trendbox text { font-size: 9px; fill: rgba(0,0,0,0.45); font-family: inherit; }

/* ---------- favourites box (sidebar) ---------- */
.favbox {
	margin: 0 0 22px;
	padding: 14px 16px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 6px 16px rgba(0,0,0,0.06);
	border: 2px dashed color-mix(in srgb, var(--f-primary) 45%, transparent);
}
.favbox h3 { margin: 0 0 8px; }
.favbox ul { list-style: none; margin: 0 0 10px; padding: 0; }
.favbox li { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.favbox li button { border: 0; background: none; color: rgba(0,0,0,0.4); font-size: 16px; cursor: pointer; }
.favbox .cardbtn { font-size: 13px; padding: 7px 14px; }

/* ---------- "did you mean" (names spelled almost the same) ---------- */
.nearbox {
	max-width: 520px;
	margin: 16px auto 0;
	padding: 12px 16px;
	border-radius: 16px;
	background: #fffbea;
	border: 1px solid #f3e2a6;
}
.neartitle { font-size: 15px; margin-bottom: 6px; }
.nearbox ul { list-style: none; margin: 0 0 6px; padding: 0; }
.nearbox li { padding: 5px 0; border-bottom: 1px dashed rgba(0,0,0,0.08); }
.nearbox li:last-child { border-bottom: 0; }
.nearbox li a { font-weight: 700; font-size: 16px; margin-right: 8px; }
.nearbox li span { color: rgba(0,0,0,0.6); font-size: 14px; }

/* ---------- Ilham Nama (AI tools) ---------- */
.ilham h1 { margin: 4px 0 6px; }
.il-lead { color: rgba(0,0,0,0.65); margin: 0 0 14px; }
.il-tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.il-tabs button, .il-examples button {
	font-family: inherit; cursor: pointer; border-radius: 999px;
	border: 2px solid color-mix(in srgb, var(--f-primary) 40%, transparent); background: #fff; color: var(--f-ink);
}
.il-tabs button { font-size: 16px; font-weight: 600; padding: 9px 18px; }
.il-tabs button.on { background: var(--f-primary); border-color: var(--f-primary); color: #fff; }
.il-form {
	padding: 16px; border-radius: 20px; background: #fff;
	box-shadow: 0 6px 18px rgba(0,0,0,0.06);
	border: 2px solid color-mix(in srgb, var(--f-primary) 25%, transparent);
}
.il-form[hidden], .il-status[hidden] { display: none; }
.il-lbl { display: block; font-weight: 600; margin-bottom: 6px; }
.il-in {
	width: 100%; box-sizing: border-box; font: inherit; font-size: 17px;
	padding: 12px 14px; border-radius: 14px; border: 2px solid rgba(0,0,0,0.12); outline: none;
}
.il-in:focus { border-color: var(--f-primary); }
.il-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.il-seg { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.il-seg label { cursor: pointer; white-space: nowrap; }
.il-type { margin-bottom: 12px; font-weight: 600; }
.il-small { font-size: 14px; color: rgba(0,0,0,0.55); }
.il-sel { font: inherit; padding: 7px 10px; border-radius: 10px; border: 2px solid rgba(0,0,0,0.12); background: #fff; }
.il-go {
	font-family: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
	padding: 11px 26px; border: 0; border-radius: 999px; background: var(--f-primary); color: #fff;
}
.il-go[disabled] { opacity: .6; cursor: wait; }
.il-examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.il-examples button { font-size: 13px; padding: 5px 12px; }
.il-status { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-weight: 600; }
.il-spin {
	width: 20px; height: 20px; border-radius: 50%;
	border: 3px solid color-mix(in srgb, var(--f-primary) 25%, transparent); border-top-color: var(--f-primary);
	animation: ilspin .8s linear infinite;
}
@keyframes ilspin { to { transform: rotate(360deg); } }
.il-cancel { font: inherit; font-size: 13px; border: 0; background: none; color: rgba(0,0,0,0.5); text-decoration: underline; cursor: pointer; }
.il-note { margin: 16px 0 10px; font-size: 14px; color: rgba(0,0,0,0.6); }
.il-note.warn { padding: 10px 14px; border-radius: 12px; background: #fff4e0; color: #8a4b00; }
.il-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.il-card {
	padding: 14px 16px; border-radius: 18px; background: #fff;
	box-shadow: 0 4px 14px rgba(0,0,0,0.06); border-top: 5px solid var(--f-primary);
	display: flex; flex-direction: column; gap: 6px;
}
.il-card.g-L { border-top-color: #7cc4f5; }
.il-card.g-P { border-top-color: #ff9cc8; }
.il-name { font-size: 22px; font-weight: 700; text-decoration: none; }
.il-mean { font-size: 15px; }
.il-why { font-size: 14px; font-style: italic; color: rgba(0,0,0,0.6); }
.il-var { font-size: 13px; color: rgba(0,0,0,0.5); }
.il-act { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; font-size: 14px; }
.il-act .cardbtn { font-size: 13px; padding: 6px 12px; }
.il-foot { margin-top: 18px; font-size: 13px; color: rgba(0,0,0,0.5); }
.il-promo {
	display: block; margin: 16px 0; padding: 14px 18px; border-radius: 18px; text-decoration: none;
	background: linear-gradient(135deg, color-mix(in srgb, var(--f-primary) 18%, #fff), #fff);
	border: 2px dashed color-mix(in srgb, var(--f-primary) 50%, transparent); color: var(--f-ink) !important;
}
.il-promo b { font-size: 17px; }
