/* ==========================================================================
   AuthorityLinks.net — Components
   ========================================================================== */

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink); color: #eaf2f2; font-size: .84rem;
  text-align: center; padding: .55rem 1rem; position: relative; z-index: 60;
}
.announce a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.announce .dot { color: var(--accent); margin-inline: .4rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1.2rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -.03em; color: var(--ink); }
.brand .brand-mark { width: 34px; height: 34px; flex: none; }
.brand .brand-name b { color: var(--brand-600); }
.brand .brand-tld { color: var(--muted-2); font-weight: 500; }

.nav { display: flex; align-items: center; gap: .2rem; margin-left: auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .8rem; border-radius: var(--radius-pill);
  font-weight: 500; font-size: .95rem; color: var(--ink-2);
  transition: background .16s var(--ease), color .16s var(--ease);
}
.nav-link:hover, .nav-item:hover > .nav-link { background: var(--brand-050); color: var(--brand-700); }
.nav-link .chev { width: 13px; height: 13px; transition: transform .2s var(--ease); }
.nav-item:hover .chev { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(760px, 92vw); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.4rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-col h4 { font-size: .74rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); margin-bottom: .7rem; }
.mega-col a { display: block; padding: .42rem .55rem; border-radius: 10px; font-size: .92rem; color: var(--ink-2); transition: background .14s var(--ease), color .14s var(--ease); }
.mega-col a:hover { background: var(--brand-050); color: var(--brand-700); }
.mega-col a span { display: block; font-size: .78rem; color: var(--muted-2); font-weight: 400; }
.mega-feature { grid-column: 1 / -1; background: var(--brand-050); border-radius: var(--radius); padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mega-feature p { font-size: .9rem; color: var(--ink-2); }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface); color: var(--ink-2);
  transition: background .16s var(--ease), border-color .16s var(--ease);
}
.icon-btn:hover { background: var(--brand-050); border-color: var(--brand-100); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--accent); color: #fff; border-radius: var(--radius-pill);
  font-size: .68rem; font-weight: 700; display: grid; place-items: center; font-family: var(--font-mono);
}
.nav-toggle { display: none; }

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: var(--surface);
  z-index: 90; transform: translateX(100%); transition: transform .28s var(--ease);
  padding: 1.2rem; overflow-y: auto; box-shadow: var(--shadow-lg);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .m-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.mobile-nav details { border-bottom: 1px solid var(--border); }
.mobile-nav summary { padding: .9rem .2rem; font-weight: 600; font-family: var(--font-display); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: "+"; color: var(--brand-600); font-weight: 700; }
.mobile-nav details[open] summary::after { content: "–"; }
.mobile-nav details a { display: block; padding: .5rem .2rem .5rem .8rem; font-size: .92rem; color: var(--muted); }
.mobile-nav details a:hover { color: var(--brand-700); }
.scrim { position: fixed; inset: 0; background: rgba(10,26,47,.5); z-index: 80; opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s; }
.scrim.open { opacity: 1; visibility: visible; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d6d6; margin-top: 4rem; }
.footer-top { padding-block: 3.4rem 2.4rem; display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand .brand-tld { color: #7f9a9a; }
.footer-brand p { margin-top: 1rem; font-size: .92rem; color: #9fb2b2; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: .8rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; margin-bottom: .9rem; }
.footer-col a { display: block; padding: .3rem 0; font-size: .9rem; color: #a9bcbc; transition: color .14s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: #8ba0a0; }
.footer-bottom a { color: #a9bcbc; }
.footer-bottom a:hover { color: #fff; }
.footer-trust { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; }
.footer-trust .pill { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #cfe0e0; }
.footer-trust .pill svg { color: var(--brand-500); }

/* ---------- Package card ---------- */
.pkg {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.pkg:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.pkg-top { padding: 1.4rem 1.4rem 0; display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.pkg-tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.pkg-body { padding: 1rem 1.4rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.pkg-index { font-family: var(--font-mono); font-size: .74rem; color: var(--muted-2); }
.pkg h3 { font-size: 1.22rem; margin-bottom: .6rem; }
.pkg h3 a:hover { color: var(--brand-700); }
.pkg-desc { font-size: .92rem; color: var(--muted); flex: 1; }
.pkg-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1.1rem 0; padding: .9rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pkg-specs .spec { text-align: center; }
.pkg-specs .spec dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); font-family: var(--font-mono); }
.pkg-specs .spec dd { font-weight: 700; font-family: var(--font-display); font-size: .98rem; margin-top: .15rem; }
.pkg-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.pkg-price { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; }
.pkg-price small { font-size: .74rem; color: var(--muted-2); font-weight: 500; display: block; font-family: var(--font-body); }
.pkg-features { list-style: none; padding: 0; margin: .2rem 0 1rem; display: grid; gap: .4rem; }
.pkg-features li { font-size: .86rem; color: var(--muted); display: flex; gap: .5rem; align-items: flex-start; }
.pkg-features li::before { content: "✓"; color: var(--brand-600); font-weight: 700; flex: none; }
.pkg-ribbon { position: absolute; top: 0; right: 0; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; padding: .3rem .8rem; border-bottom-left-radius: 12px; }

/* ---------- Marketplace card ---------- */
.site-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .7rem;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.site-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.site-card.selected { border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-050); }
.site-card .sc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.site-card .sc-domain { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; word-break: break-word; }
.site-card .sc-domain a:hover { color: var(--brand-700); }
.site-card .sc-cat { font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.site-card .sc-metrics { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.site-card .sc-metric { font-size: .82rem; }
.site-card .sc-metric b { font-family: var(--font-display); font-size: 1rem; display: block; }
.site-card .sc-metric span { color: var(--muted-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.site-card .sc-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; border-top: 1px solid var(--border); padding-top: .8rem; margin-top: auto; }
.site-card .sc-price { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.add-btn { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .86rem; padding: .5rem .9rem; border-radius: var(--radius-pill); border: 1.5px solid var(--brand); color: var(--brand-700); background: var(--brand-050); transition: all .16s var(--ease); }
.add-btn:hover { background: var(--brand); color: #fff; }
.add-btn.added { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .45rem .9rem; border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: var(--surface); font-size: .86rem; font-weight: 500; color: var(--ink-2);
  transition: all .15s var(--ease);
}
.chip:hover { border-color: var(--brand-500); color: var(--brand-700); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.filter-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .9rem; }
.filter-row .field { margin-bottom: 0; }
.result-count { font-size: .9rem; color: var(--muted); }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--border); }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem .2rem; text-align: left; font-family: var(--font-display);
  font-weight: 600; font-size: 1.05rem; color: var(--ink);
}
.acc-trigger:hover { color: var(--brand-700); }
.acc-icon { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: grid; place-items: center; transition: all .2s var(--ease); position: relative; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; background: var(--brand-600); border-radius: 2px; }
.acc-icon::before { width: 11px; height: 2px; }
.acc-icon::after { width: 2px; height: 11px; transition: transform .2s var(--ease); }
.acc-item.open .acc-icon { background: var(--brand); border-color: var(--brand); }
.acc-item.open .acc-icon::before, .acc-item.open .acc-icon::after { background: #fff; }
.acc-item.open .acc-icon::after { transform: scaleY(0); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.acc-panel-inner { padding: 0 .2rem 1.3rem; color: var(--muted); font-size: .96rem; max-width: 78ch; }
.acc-panel-inner p + p { margin-top: .8rem; }

/* ---------- Reviews ---------- */
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .8rem; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; }
.review-card blockquote { font-size: .96rem; color: var(--ink-2); }
.reviewer { display: flex; align-items: center; gap: .7rem; margin-top: auto; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-050); color: var(--brand-700); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; flex: none; }
.reviewer .r-name { font-weight: 600; font-size: .9rem; }
.reviewer .r-meta { font-size: .76rem; color: var(--muted-2); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.step { position: relative; padding-top: 1.4rem; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-mono); font-size: .8rem; font-weight: 700; color: var(--accent); }
.step h3 { font-size: 1.12rem; margin: .5rem 0 .5rem; }
.step p { font-size: .92rem; color: var(--muted); }
.step-line { position: absolute; top: 1.55rem; left: 2.6rem; right: -1.2rem; height: 1px; background: var(--border); }
.step:last-child .step-line { display: none; }

/* ---------- Stats ---------- */
.stat { text-align: center; }
.stat .stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); letter-spacing: -.03em; color: var(--brand-700); }
.stat .stat-label { font-size: .84rem; color: var(--muted); margin-top: .2rem; }

/* ---------- Cart drawer ---------- */
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 92vw);
  background: var(--surface); z-index: 95; transform: translateX(100%);
  transition: transform .3s var(--ease); display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.3rem; border-bottom: 1px solid var(--border); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.3rem; }
.cart-item { display: flex; justify-content: space-between; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.cart-item .ci-name { font-weight: 600; font-size: .92rem; }
.cart-item .ci-meta { font-size: .78rem; color: var(--muted-2); }
.cart-item .ci-price { font-family: var(--font-display); font-weight: 700; }
.cart-remove { color: var(--danger); font-size: .78rem; }
.cart-foot { padding: 1.2rem 1.3rem; border-top: 1px solid var(--border); background: var(--surface-2); }
.cart-total { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 1rem; }
.cart-empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: .8rem 1.3rem; border-radius: var(--radius-pill);
  font-size: .9rem; font-weight: 500; z-index: 120; opacity: 0; visibility: hidden;
  transition: all .25s var(--ease); box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .82rem; color: var(--muted-2); padding-block: 1rem; }
.breadcrumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumbs li { display: flex; align-items: center; gap: .4rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--border-strong); }
.breadcrumbs a:hover { color: var(--brand-700); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tab { padding: .7rem 1rem; font-weight: 600; font-size: .92rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--brand-700); border-color: var(--brand); }

/* ---------- Progress / meter ---------- */
.meter { height: 8px; border-radius: var(--radius-pill); background: var(--surface-2); overflow: hidden; }
.meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-500)); border-radius: inherit; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius-xl); padding: clamp(2rem, 1.4rem + 3vw, 3.4rem); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(14,124,107,.55), transparent 70%); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9c9c9; }
.cta-band .btn-light { position: relative; z-index: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step-line { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .pkg-specs { grid-template-columns: repeat(3, 1fr); }
  .header-actions .btn { display: none; }
}

/* ==========================================================================
   Floating contact buttons (WhatsApp + Telegram)
   ========================================================================== */
.float-contacts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.float-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 16px 0 14px;
  border-radius: var(--radius-pill);
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  box-shadow: 0 10px 26px -8px rgba(10, 26, 47, .45);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.float-btn svg { width: 26px; height: 26px; flex: none; }
.float-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 34px -10px rgba(10, 26, 47, .5); filter: brightness(1.05); }
.float-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.float-wa { background: #25d366; }
.float-tg { background: #229ed9; }
.float-label { display: inline-block; }
@media (max-width: 640px) {
  .float-contacts { right: 12px; bottom: 12px; gap: 10px; }
  .float-btn { height: 50px; width: 50px; padding: 0; justify-content: center; }
  .float-btn svg { width: 27px; height: 27px; }
  .float-label { display: none; }
}
@media print { .float-contacts { display: none; } }
