:root {
    color-scheme: dark;
}

body.ac-linktree-body {
    margin: 0;
    height: 100vh;
    /* Altezza esatta dello schermo */
    overflow-y: auto;
    /* Scroll SOLO se necessario */
    overscroll-behavior: contain;
    /* Evita rimbalzi fastidiosi su mobile */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(129, 140, 248, 0.32), transparent 60%), radial-gradient(circle at bottom, rgba(248, 113, 113, 0.28), transparent 60%), #020617;
}

.ac-linktree-page-shell {
    width: 60%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .ac-linktree-page-shell {
        width: 90%;
    }
}

@keyframes ac-linktree-card-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ac-linktree-card {
    margin: 0 auto;
    padding: 26px 22px 24px;
    border-radius: 22px;
    background: radial-gradient(circle at 0% 0%, rgba(248, 113, 113, 0.09), transparent 55%), radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.10), transparent 55%), #020617;
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.85), 0 0 0 1px rgba(15, 23, 42, 0.85);
    position: relative;
    overflow: hidden;
    animation: ac-linktree-card-in 0.38s ease-out 0.06s both;
}

.ac-linktree-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 0% 0%, rgba(249, 115, 22, 0.16), transparent 55%), radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.12), transparent 55%);
    opacity: 0.6;
    pointer-events: none;
}

.ac-linktree-card>* {
    position: relative;
    z-index: 1;
}

/* TABS */

.ac-linktree-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  margin-bottom: 16px;
}

.ac-linktree-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: rgba(209, 213, 219, 0.8);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.ac-linktree-tab.is-active {
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
}

.ac-linktree-tab-label {
  position: relative;
  z-index: 1;
}

.ac-linktree-tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.4);
  box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.ac-linktree-tab.is-active .ac-linktree-tab-dot {
  background: #f97316;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.9);
  transform: scale(1.1);
}

.ac-linktree-tab-panels {
  margin-top: 12px;
}

.ac-linktree-tab-panel {
  display: none;
}

.ac-linktree-tab-panel.is-active {
  display: block;
}

.ac-linktree-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: rgba(209, 213, 219, 0.9);
    background: rgba(15, 23, 42, 0.9);
    margin-bottom: 14px;
}

.ac-linktree-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #f97316;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.9);
}

.ac-linktree-home-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit !important;
}

.ac-linktree-home-link:hover .ac-linktree-title {
  opacity: 0.85;
  transition: opacity .15s ease;
}

.ac-linktree-avatar-wrap {
    position: relative;
    width: 104px;
    height: 104px;
    margin: 2rem auto;
}

.ac-linktree-avatar-glow {
    position: absolute;
    inset: -8px;
    border-radius: 999px;
    background: conic-gradient( from 220deg, #f97316, rgba(59, 130, 246, 0.95), rgba(56, 189, 248, 0.95), #f97316);
    filter: blur(14px);
    opacity: 0.7;
}

.ac-linktree-avatar {
    position: relative;
    width: calc(100% - 1rem);
    height: calc(100% - 1rem);
    padding: .5rem;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(15, 23, 42, 0.95);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.85);
    background: #020617;
}

.ac-linktree-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
    letter-spacing: 0.03em;
}

.ac-linktree-bio {
    font-size: 13px;
    text-align: center;
    opacity: 0.88;
    margin-bottom: 18px;
}

.ac-linktree-links {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

a.ac-linktree-link {
    display: flex;
    align-items: center;
    justify-content: space-between; /* icona sinistra / testo a centro tramite ghost box */
	position: relative;
    gap: 10px;
    padding: 11px 16px;
    background: linear-gradient(90deg, #f97316, rgba(249, 115, 22, 0.85));
    color: #0b1120 !important;
    text-decoration: none;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(15, 23, 42, 0.9);
    position: relative;
    overflow: hidden;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, opacity 0.14s ease;
}

.ac-linktree-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.3), transparent 58%);
    opacity: 0;
    transition: opacity 0.16s ease;
}

.ac-linktree-link:hover,
.ac-linktree-link:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(15, 23, 42, 0.95);
}

.ac-linktree-link:hover::before,
.ac-linktree-link:focus::before {
    opacity: 1;
}

.ac-linktree-link:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(15, 23, 42, 0.95);
}

.ac-linktree-link-label {
    position: absolute;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	width: 100%;
	pointer-events: none;
    z-index: 1;
}

.ac-linktree-icon {
	width: 18px;
	height: 18px;
	display: inline-block;
	flex-shrink: 0;
	opacity: 0.95;
	margin-right: auto; /* spinge il testo verso il centro */
	transition: opacity .2s ease;
}

.ac-linktree-link:hover .ac-linktree-icon {
	opacity: 1;
	color: #fff;
}

.ac-linktree-link-ghost {
	width: 18px; /* stessa grandezza dell'icona */
	height: 18px;
	opacity: 0;
}

.ac-linktree-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ac-linktree-list-item { }

.ac-linktree-list-link {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(226, 232, 240, 0.98);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.9);
  font-size: 13px;
  line-height: 1.4;
  transition:
    background 0.14s ease,
    border-color 0.14s ease,
    transform 0.12s ease;
}

.ac-linktree-list-link:hover,
.ac-linktree-list-link:focus {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.9);
  transform: translateY(-1px);
}

.ac-linktree-list-title {
  display: block;
}

.ac-linktree-empty {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 6px;
}

@media (max-width: 480px) {
    .ac-linktree-card {
        margin: 0 6px;
        padding: 22px 18px 20px;
        border-radius: 18px;
    }
    .ac-linktree-title {
        font-size: 19px;
    }
    .ac-linktree-link {
        font-size: 13px;
    }
}

p.seamless-credits,
p.av-credit-link {
    display: none;
}