:root {
  --cp-bg-dark: #181c2b;
  --cp-bg-medium: #232f4a;
  --cp-bg-light: #2cd3b8;
  --cp-accent: #4f8cff;
  --cp-accent2: #ff2e9a;
  --cp-success: #2cd3b8;
  --cp-error: #ff2e9a;
  --cp-text-main: #e8eefc;
  --cp-text-bright: #fff;
  --cp-shadow: 0 8px 32px rgba(44,211,184,0.18), 0 2px 8px rgba(0,0,0,0.08);
}

body::-webkit-scrollbar,
html::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

html {
    scrollbar-width: none !important;
    scrollbar-color: transparent transparent !important;
}
body, html {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-height: 100vh;
    min-width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}
html, body {
    width: 100%;
    min-height: 100vh;
    min-width: 100vw;
}

@media screen and (max-width: 768px) {
    html, body {
      height: none;

    }
}

.main-container-my_links-new {
    max-width: 800px;
    padding: 0 20px 16px 16px;
    margin: 0 auto;
    border-radius: 0 0 16px 16px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.panel-bg-image-layer {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(810px, 100vw);
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;

}

.preview-bg-panel-video {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(810px, 100vw);
    height: 100vh;

    object-fit: cover;

    z-index: 1;
    pointer-events: none;
}

.main-container_my_links-new,
.main-container-my_links-new {
    position: relative;
    z-index: 2;
}
@media (max-width: 750px) {
    .panel-bg-image-layer, .preview-bg-panel-video {
        width: 100vw;
        left: 0;
        transform: none;
    }
}
.main-container-my_links-new > *:not(.panel-bg-image-layer):not(.preview-bg-panel-video) {
    position: relative;
    z-index: 1;
}

.cover-img {
    position: relative;
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 0 4px 4px #000000c4;
    border-left: 3px solid #ffffff;
    border-right: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    overflow: hidden;
}
.cover-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.profile-img-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}
.profile-img, .profile-img.placeholder {
     width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 6px #232946, 0 0 16px 2px rgb(0, 0, 0);
    object-fit: cover;
    background: #fff;
}
.profile-img.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 2em;
}
.links-content {
    padding: 16px;
}


.profile-img-wrapper.profile-img-over-cover {
    margin-top: -90px; /* Sobrepõe a capa */
    margin-bottom: 8px;
}
.profile-img-wrapper.profile-img-no-cover {
    margin-top: 0; /* Sem capa, desce mais */
    margin-bottom: 8px;
}

.profile-img-no-cover{
    margin-top: 30px; /* Sem capa, desce mais */
    margin-bottom: 16px;
}

.ico-social-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    margin-top: 15px;
}
.ico-social-icon {
   width:42px;
  height:42px;
  vertical-align:middle;
  border-radius:50%;
  border-bottom: 2px solid #00f7ff;
  border-right: 3px solid #00f7ff;
  transition:box-shadow .2s;
}
.ico-social-icon:hover {
    transform: scale(1.12);
}
 
.premium-ico-social .ico-social-icon {
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), filter 0.3s;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.10));
}

.premium-ico-social .ico-social-icon:hover {
    transform: scale(1.12) rotate(-4deg);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.18)) brightness(1.15);
}
@keyframes premium-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.premium-ico-social .ico-social-icon {
    animation: premium-pulse 2.8s ease-in-out infinite;
}

.user-username {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
}

.bio-text {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
    padding: 10px;
    box-sizing: border-box;
    max-height: none;
    overflow: visible;
}

.custom-link-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
  box-shadow: 2px 2px 8px #000000ce;
    text-decoration: none;
    color: #222;
    padding: 10px 14px;
    transition: box-shadow 0.15s, transform 0.15s;
    min-height: 60px;
}
.custom-link-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    transform: translateY(-2px) scale(1.01);
}
.custom-link-img {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-link-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.link-info {
    flex: 1;
    min-width: 0;
    position: relative;
    padding-right: 60px;
}
.custom-link-title {
    font-weight: bold;
    font-size: 1.08em;
    margin-bottom: 2px;
    color: #002aff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.custom-link-desc {
  font-size: 0.98em;
  color: #000000;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.footer-affiliate {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 2px 0 2px 0;
    text-align: center;
    background: transparent;
    border-radius: 12px;
}
.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #232946;
    background: rgba(255,255,255,0.85);
    text-shadow: 0 1px 6px #fff, 0 0 2px #fff;
    font-weight: bold;
    font-size: 0.72em;
    text-decoration: none;
    opacity: 0.92;
    transition: opacity 0.2s;
    border-radius: 6px;
    padding: 4px 8px;
}

.footer-logo {
    height: 12px;
    width: auto;
    vertical-align: middle;
}


.toast-message {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translate(-50%, 0); /* X centralizado, Y normal */
  min-width: 220px;
  max-width: 340px;
  background: var(--cp-bg-medium);
  color: var(--cp-text-bright);
  border-radius: 10px;
  box-shadow: 0 4px 24px var(--cp-bg-light), 0 0 8px var(--cp-accent2);
  padding: 18px 22px;
  z-index: 9999;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
  border-left: 4px solid var(--cp-accent2);
}
.toast-message.show {
  opacity: 1;
  pointer-events: auto;
  /* NÃO sobrescreva transform aqui! */
  animation: fadeIn .3s;
}

/* Toast tipos */
.toast-message.success {
  background: rgba(44,211,184, 0.95);
  border-left: 4px solid var(--cp-success);
  color: var(--cp-text-bright);
  box-shadow: 0 0 16px 2px var(--cp-success), 0 0 32px 4px rgba(44,211,184,0.25);
}
.toast-message.error {
  background: rgba(255,46,154, 0.92);
  border-left: 4px solid var(--cp-error);
  color: var(--cp-text-bright);
  box-shadow: 0 0 16px 2px var(--cp-error), 0 0 32px 4px rgba(255,46,154,0.25);
}
.toast-message.alert {
  background: rgba(255, 123, 46, 0.92);
  border-left: 4px solid var(--cp-error);
  color: var(--cp-text-bright);
  box-shadow: 0 0 16px 2px var(--cp-error), 0 0 32px 4px rgba(255,123,46,0.25);
}

.like-btn-minimal {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border-radius: 999px;
  padding: 4px 8px 4px 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border: 1.5px solid #e0e0e0;
  min-width: 28px;
  transition: background 0.2s, border 0.2s;
}

@media (prefers-color-scheme: dark) {
  .like-btn-minimal {
    background: #232946;
    border: 1.5px solid #393e54;
  }
}

.btn-like-minimal {
  background: none;
  border: none;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.18s;
  outline: none;
}

.btn-like-minimal .like-icon-minimal {
  font-size: 1.0em;
  color: #bbb; /* padrão: apagado */
  transition: color 0.18s, transform 0.18s;
}

.btn-like-minimal.liked .like-icon-minimal {
  color: #e74c3c; /* vermelho forte se curtiu */
}

.btn-like-minimal:active .like-icon-minimal {
  transform: scale(1.18);
}

.btn-like-minimal[disabled] {
  cursor: not-allowed;
}

.like-count-minimal {
  font-size: 0.75em;
  color: #232946;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
  background: transparent;
  padding: 0;
  border-radius: 8px;
  line-height: 1;
  user-select: none;
}

@media (prefers-color-scheme: dark) {
  .like-count-minimal {
    color: #fff;
  }
}


@media (max-width: 750px) {
        .main-container-my_links-new {
        box-sizing: border-box;
        max-width: 100vw;
        border-radius: 0;
        min-height: 100vh;
        height: auto;
        padding: 0 7px 0 2px;
    }
     .custom-link-item {
        padding: 8px 8px;
        min-height: 48px;
    }
    .custom-link-img {
        width: 38px;
        height: 38px;
        margin-right: 8px;
    }
    .links-list {
        padding: 5px 3px 15px 5px;
    }
    .main-container-my_links-new {
        padding-bottom: 10px !important; /* ou mais, se quiser mais espaço */
    }
}

@media (prefers-color-scheme: dark) {
    .footer-link {
        color: #fff;
        background: rgba(35,41,70,0.85);
        text-shadow: 0 1px 6px #232946, 0 0 2px #000;
    }
}

.badge-adult {
  background: #e53935;
  color: #fff;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}



.main-container-my_links-new .ico-social-bar,
.main-container-my_links-new .premium-ico-social {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 16px 18px 16px;
  box-sizing: border-box;
  margin: 0;
  margin-top: 10px;
  scrollbar-width: thin;
  /* Remove display: block e width: max-content do inner! */
  justify-content: flex-start;
}

.main-container-my_links-new .ico-social-bar::before,
.main-container-my_links-new .ico-social-bar::after,
.main-container-my_links-new .premium-ico-social::before,
.main-container-my_links-new .premium-ico-social::after {
  content: "";
  flex: 1 1 0;
}

.main-container-my_links-new .ico-social-bar > *,
.main-container-my_links-new .premium-ico-social > * {
  flex-shrink: 0;
}

.main-container-my_links-new .ico-social-bar,
.main-container-my_links-new .premium-ico-social {
  scrollbar-width: thin !important;
  scrollbar-color: #4f8cff transparent !important; /* thumb azul, fundo transparente */
}

/* Chrome, Edge, Safari */
.main-container-my_links-new .ico-social-bar::-webkit-scrollbar,
.main-container-my_links-new .premium-ico-social::-webkit-scrollbar {
  height: 4px !important;      /* barra mais fina */
  background: transparent !important; /* fundo transparente */
}

.main-container-my_links-new .ico-social-bar::-webkit-scrollbar-thumb,
.main-container-my_links-new .premium-ico-social::-webkit-scrollbar-thumb {
  background: #4f8cff !important; /* azul */
  border-radius: 8px !important;
  min-width: 32px;
}




.videos-divider, .category-divider {
    width:max-content;
    margin:35px auto 25px;

    padding:10px 22px;

    border-radius:999px;

    background: rgba(0, 0, 0, 0.582);
    backdrop-filter:blur(12px);

    border:1px solid rgba(255,255,255,.12);

    font-size:15px;
    font-weight:700;
    letter-spacing:.8px;

    color:#fff;
}

.category-divider-first {
  margin-top: 0;
}



.videos-section{
    margin-bottom: 40px;
}


.videos-grid{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.video-item{
    position: relative;
    flex: 0 0 auto;
}

/* Card base */
.video-card{
    position: relative;
    display: block;

    overflow: hidden;
    border-radius: 18px;
    background: #111;
}

.video-card iframe{
    width: 100%;
    height: 100%;
    border: 0;

    /* impede interação */
    pointer-events: none;
}

.video-click-layer{
    position: absolute;
    inset: 0;
    z-index: 10;
}

/* YouTube */
.video-card-youtube{
    width: min(100%, 720px);
    aspect-ratio: 16/9;
}

/* TikTok e Instagram */
.video-card-tiktok,
.video-card-instagram{
    width: 180px;
    aspect-ratio: 9/16;
}

@media (max-width:768px){

    .videos-grid{
        gap:16px;
    }

    .video-card-tiktok,
    .video-card-instagram{
        width:140px;
    }

}


.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    text-decoration: none;
    min-height: 180px;
    background: #222;
    box-shadow: 2px 2px 6px rgb(0, 0, 0);
}

.product-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.product-item:hover img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;

    left: 0;
    bottom: 0;

    padding: 14px 18px 14px 14px;

    border-radius: 0 14px 0 0;

    background: linear-gradient(
        90deg,
        rgb(0, 0, 0) 0%,
        rgba(0, 0, 0, 0.815) 70%,
        rgba(0, 0, 0, 0.096) 100%
    );
}

.product-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-price {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

/* Desktop */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-item img {
        height: 220px;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.products-grid > .product-item:only-child,
.products-grid > .product-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}


.tabs-products {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 8px;

    border-radius: 18px;

    background: rgba(0, 0, 0, 0.582);
    backdrop-filter: blur(18px);

    width: fit-content;
    margin: 0 auto 20px;
}

.tab-button {
    border: 0;
    outline: none;

    cursor: pointer;

    padding: 12px 20px;

    border-radius: 14px;

    font-size: 14px;
    font-weight: 600;

    background: transparent;

    /* 🔥 troca aqui */
    color: rgba(255, 255, 255, 0.85);

    transition: .25s ease;
}

.tab-button:hover {
    background: rgba(255,255,255,.10);
    transform: translateY(-1px);
    color: #fff;
}

.tab-button.active {

    background: linear-gradient(
        135deg,
        #6366f1,
        #8b5cf6
    );

    color: #fff;

    box-shadow:
        0 8px 24px rgba(99,102,241,.35);

}


.category-name {
  margin: 22px 0 10px;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.category-soft-separator {
  height: 1px;
  margin: 22px 0 14px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 106, 255, 0.596),
    transparent
  );
}