/* INS Link — public bio page blocks */

.ins-bio-page { margin: 0; }
.ins-bgvid { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .5; }

.ins-bio-body { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 26px 16px 60px; }
.ins-bio-card { width: 100%; max-width: 560px; }

/* ---------- Cover / header ---------- */
.ins-cover { border-radius: 22px; overflow: hidden; margin-bottom: -54px; height: 170px; }
.ins-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ins-head { position: relative; text-align: inherit; }
.ins-head.has-cover { padding-top: 8px; }
.ins-bio-avatar { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 4px solid var(--acc); background: #0b1220; }
.ins-logo { display: block; max-height: 44px; width: auto; margin: 10px auto 0; border-radius: 8px; }
.ins-name { font-size: 21px; margin: 12px 0 4px; font-weight: 900; }
.ins-verified { color: #38bdf8; }
.ins-user { opacity: .65; font-size: 13px; }
.ins-desc { opacity: .85; font-size: 14px; margin-top: 12px; line-height: 2; }

.ins-bio-socials { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ins-bio-socials a {
	width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: inherit; font-size: 15px;
	transition: .2s;
}
.ins-bio-socials a:hover { transform: translateY(-2px); border-color: var(--acc); }

/* ---------- Blocks wrapper ---------- */
.ins-blocks { display: flex; flex-direction: column; gap: var(--gap); margin-top: 26px; text-align: right; }
.ins-b-title { font-size: 15px; font-weight: 800; margin: 4px 2px 10px; opacity: .95; }
.ins-card-b {
	background: var(--btn); border: 1px solid rgba(255,255,255,.14);
	border-radius: 18px; padding: 16px 18px; font-size: 14px; line-height: 2; box-shadow: var(--sh);
}
.ins-muted-b { opacity: .7; font-size: 13px; }

/* ---------- Link ---------- */
.ins-bio-link {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: var(--pad); border-radius: var(--rad); box-shadow: var(--sh);
	background: var(--btn); border: 1px solid rgba(255,255,255,.14); color: inherit;
	font-weight: 700; font-size: 14.5px; transition: .2s; text-decoration: none;
}
.ins-bio-link:hover { transform: translateY(-2px); border-color: var(--acc); color: inherit; }
.ins-arrow { opacity: .55; }

/* ---------- Superlink ---------- */
.ins-super {
	position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 20px;
	border-radius: 20px; text-decoration: none; color: #fff; overflow: hidden;
	background: linear-gradient(135deg, var(--sl), rgba(0,0,0,.35));
	box-shadow: 0 14px 32px -16px var(--sl); border: 1px solid rgba(255,255,255,.25);
	transition: .2s;
}
.ins-super:hover { transform: translateY(-3px); color: #fff; }
.ins-super::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%); transform: translateX(-100%); animation: insShine 3.2s infinite; }
@keyframes insShine { to { transform: translateX(100%); } }
.ins-super-ico { font-size: 24px; }
.ins-super-txt { flex: 1; display: flex; flex-direction: column; }
.ins-super-txt b { font-size: 15.5px; }
.ins-super-txt small { opacity: .85; font-size: 12px; }
.ins-super-badge { background: rgba(0,0,0,.35); border-radius: 999px; padding: 4px 11px; font-size: 11px; font-weight: 800; }

/* ---------- Chips (socials / messengers / maps) ---------- */
.ins-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ins-chip-net {
	display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px;
	background: var(--btn); border: 1px solid rgba(255,255,255,.14); color: inherit;
	font-size: 12.5px; font-weight: 700; text-decoration: none; cursor: pointer; transition: .2s;
	font-family: inherit;
}
.ins-chip-net i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--nc); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.ins-chip-net:hover { border-color: var(--nc); transform: translateY(-2px); color: inherit; }

/* ---------- Gallery ---------- */
.ins-gal { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--sh); }
.ins-gal-track { position: relative; aspect-ratio: 16/10; background: rgba(0,0,0,.25); }
.ins-gal-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .45s; }
.ins-gal-slide.on { opacity: 1; }
.ins-gal-slide img { width: 100%; height: 100%; object-fit: cover; }
.ins-gal-nav {
	position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%;
	background: rgba(0,0,0,.45); color: #fff; border: 0; cursor: pointer; font-size: 20px; line-height: 1;
}
.ins-gal-nav.prev { right: 10px; } .ins-gal-nav.next { left: 10px; }
.ins-gal-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.ins-gal-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.ins-gal-dots span.on { background: var(--acc); width: 18px; border-radius: 99px; }

/* ---------- Video ---------- */
.ins-video { border-radius: 18px; overflow: hidden; aspect-ratio: 16/9; background: #000; box-shadow: var(--sh); }
.ins-video iframe, .ins-video video { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Contact ---------- */
.ins-contact { padding: 6px 8px; }
.ins-contact-row {
	display: flex; align-items: center; gap: 10px; padding: 11px 10px; color: inherit; text-decoration: none;
	border-bottom: 1px solid rgba(255,255,255,.09); font-size: 13.5px;
}
.ins-contact-row:last-child { border-bottom: 0; }
.ins-contact-row i { font-style: normal; }
.ins-contact-row span { opacity: .7; }
.ins-contact-row b { margin-inline-start: auto; font-weight: 800; }

/* ---------- Address ---------- */
.ins-addr { margin: 0 0 10px; font-size: 13.5px; }
.ins-map { border-radius: 14px; overflow: hidden; height: 190px; }
.ins-map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.9); }

/* ---------- FAQ ---------- */
.ins-faqs { display: flex; flex-direction: column; gap: 8px; }
.ins-faq-b { background: var(--btn); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; overflow: hidden; }
.ins-faq-btn {
	width: 100%; text-align: right; background: 0; border: 0; color: inherit; font-family: inherit;
	font-size: 14px; font-weight: 700; padding: 14px 16px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px;
}
.ins-faq-btn i { font-style: normal; opacity: .6; transition: .2s; }
.ins-faq-b.open .ins-faq-btn i { transform: rotate(45deg); }
.ins-faq-ans { display: none; padding: 0 16px 15px; font-size: 13px; opacity: .8; line-height: 2; }
.ins-faq-b.open .ins-faq-ans { display: block; }

/* ---------- Countdown ---------- */
.ins-cd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ins-cd-grid > div {
	background: var(--btn); border: 1px solid rgba(255,255,255,.14); border-radius: 14px;
	padding: 12px 6px; text-align: center;
}
.ins-cd-grid b { display: block; font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ins-cd-grid span { font-size: 11px; opacity: .65; }
.ins-cd.done .ins-cd-grid { opacity: .45; }

/* ---------- Banner ---------- */
.ins-banner {
	display: flex; align-items: center; justify-content: center; text-align: center;
	border-radius: 18px; padding: 18px; font-weight: 800; font-size: 15px;
	text-decoration: none; box-shadow: var(--sh); transition: .2s;
}
a.ins-banner:hover { transform: translateY(-2px); }

/* ---------- RSS ---------- */
.ins-rss { display: flex; flex-direction: column; gap: 8px; }
.ins-rss-item {
	display: flex; flex-direction: column; gap: 3px; padding: 13px 16px; border-radius: 14px;
	background: var(--btn); border: 1px solid rgba(255,255,255,.14); color: inherit; text-decoration: none; transition: .2s;
}
.ins-rss-item:hover { border-color: var(--acc); color: inherit; }
.ins-rss-item b { font-size: 13.5px; }
.ins-rss-item small { opacity: .6; font-size: 11px; }

/* ---------- Share ---------- */
.ins-share { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.ins-qr { background: #fff; padding: 8px; border-radius: 14px; line-height: 0; }
.ins-qr img { width: 120px; height: 120px; }
.ins-share-side { flex: 1; min-width: 190px; }
.ins-share-side code { display: block; font-size: 11.5px; opacity: .8; margin-bottom: 10px; word-break: break-all; }

/* ---------- Items (file / shop) ---------- */
.ins-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ins-item {
	background: var(--btn); border: 1px solid rgba(255,255,255,.14); border-radius: 16px;
	overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sh);
}
.ins-item-img { aspect-ratio: 16/11; background: rgba(0,0,0,.22); }
.ins-item-img img { width: 100%; height: 100%; object-fit: cover; }
.ins-item-ph { display: flex; align-items: center; justify-content: center; font-size: 30px; opacity: .5; }
.ins-item-body { padding: 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.ins-item-body b { font-size: 13.5px; }
.ins-item-body small { opacity: .7; font-size: 11.5px; line-height: 1.9; }
.ins-item-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ins-price { font-size: 12.5px; font-weight: 800; color: var(--acc); }
.ins-buy {
	background: var(--acc); color: #04150f; border: 0; border-radius: 10px; padding: 8px 14px;
	font-size: 12px; font-weight: 800; cursor: pointer; font-family: inherit; text-decoration: none; transition: .2s;
}
.ins-buy:hover { filter: brightness(1.08); color: #04150f; }
.ins-buy-block { width: 100%; padding: 13px; font-size: 14px; margin-top: 12px; border-radius: 13px; }

/* ---------- Forms ---------- */
.ins-lbl { display: block; font-size: 12px; opacity: .75; margin: 12px 0 5px; font-weight: 700; }
.ins-inp {
	width: 100%; padding: 11px 13px; border-radius: 12px; font-family: inherit; font-size: 13.5px;
	border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.22); color: inherit;
}
.ins-inp:focus { outline: 0; border-color: var(--acc); }
.ins-slots { display: flex; flex-wrap: wrap; gap: 7px; }
.ins-slot input { position: absolute; opacity: 0; pointer-events: none; }
.ins-slot span {
	display: inline-block; padding: 8px 13px; border-radius: 10px; font-size: 12.5px; cursor: pointer;
	border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.18); transition: .15s;
}
.ins-slot input:checked + span { background: var(--acc); color: #04150f; border-color: var(--acc); font-weight: 800; }
.ins-slot.hide { display: none; }

/* ---------- Toast ---------- */
.ins-toast {
	margin-top: 18px; padding: 13px 16px; border-radius: 14px; font-size: 13px; font-weight: 700;
	background: rgba(16,185,129,.16); border: 1px solid rgba(16,185,129,.4);
}

/* ---------- Modal ---------- */
.ins-modal-b {
	position: fixed; inset: 0; background: rgba(2,6,15,.8); backdrop-filter: blur(5px); z-index: 999;
	display: none; align-items: center; justify-content: center; padding: 18px;
}
.ins-modal-b.open { display: flex; }
.ins-modal-in {
	background: #0f172a; color: #e2e8f0; border: 1px solid rgba(255,255,255,.14); border-radius: 20px;
	padding: 22px; width: 100%; max-width: 430px; max-height: 90vh; overflow: auto; position: relative; text-align: right;
}
.ins-modal-in h3 { margin: 0 0 6px; font-size: 17px; }
.ins-modal-x {
	position: absolute; top: 12px; left: 14px; background: 0; border: 0; color: #94a3b8;
	font-size: 24px; cursor: pointer; line-height: 1;
}

/* ---------- Branding ---------- */
.ins-bio-brand { margin-top: 32px; text-align: center; font-size: 12px; opacity: .65; }
.ins-bio-brand a { color: var(--acc); font-weight: 800; text-decoration: none; }

@media (max-width: 480px) {
	.ins-items { grid-template-columns: 1fr; }
	.ins-cover { height: 130px; }
	.ins-share { justify-content: center; text-align: center; }
}

/* ================= Zilink Gold Theme Custom Styles ================= */
.ins-bio-page[style*="zilink_gold"],
body.ins-bio-page:has(.ins-bio-page[style*="zilink_gold"]) {
	--acc: #e0a824;
	--btn: #ffffff;
	--rad: 18px;
	--sh: 0 10px 28px -8px rgba(184, 145, 47, 0.08), 0 1px 3px rgba(0,0,0,0.02);
	--gap: 14px;
}

/* Card customization for Zilink Gold */
.ins-bio-page[style*="zilink_gold"] .ins-card-b,
.ins-bio-page[style*="zilink_gold"] .ins-bio-link {
	border: 1px solid #e3dcce !important;
	background: #ffffff !important;
	color: #3e3830 !important;
}

.ins-bio-page[style*="zilink_gold"] .ins-super {
	border: 1px solid rgba(224, 168, 36, 0.4) !important;
	box-shadow: 0 10px 30px -10px rgba(224, 168, 36, 0.35) !important;
}

/* Countdown numbers styling in Zilink Gold */
.ins-bio-page[style*="zilink_gold"] .ins-cd-grid > div {
	background: #ffffff !important;
	border: 1px solid #e3dcce !important;
	box-shadow: var(--sh) !important;
}
.ins-bio-page[style*="zilink_gold"] .ins-cd-grid b {
	color: var(--acc) !important;
}

/* Messengers / Socials styling in Zilink Gold */
.ins-bio-page[style*="zilink_gold"] .ins-chip-net {
	background: #ffffff !important;
	border: 1px solid #e3dcce !important;
	color: #3e3830 !important;
	box-shadow: var(--sh) !important;
}

/* Buttons in Zilink Gold */
.ins-bio-page[style*="zilink_gold"] .ins-buy {
	background: var(--acc) !important;
	color: #ffffff !important;
}
.ins-bio-page[style*="zilink_gold"] .ins-buy:hover {
	filter: brightness(1.05) !important;
}

/* Items/Products in Zilink Gold */
.ins-bio-page[style*="zilink_gold"] .ins-item {
	background: #ffffff !important;
	border: 1px solid #e3dcce !important;
	box-shadow: var(--sh) !important;
}

/* FAQ style in Zilink Gold */
.ins-bio-page[style*="zilink_gold"] .ins-faq-b {
	background: #ffffff !important;
	border: 1px solid #e3dcce !important;
}
.ins-bio-page[style*="zilink_gold"] .ins-faq-btn i {
	color: var(--acc) !important;
	font-weight: bold;
}
