: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);
}

/* Para navegadores baseados em Webkit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 8px;
    background: #1d1d1d;
}
::-webkit-scrollbar-thumb {
    background: #232946;
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: #393e54;
}

/* Para Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #232946 #161616;
}

body {
    background: #ffffff;
    color: #e0e6ed;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.no-access-container {
    max-width: 400px;
    margin: 80px auto 0 auto;
    padding: 32px 24px;
    background: #232946;
    border-radius: 12px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.18);
    text-align: center;
    color: #e0e6ed;
    border: 1px solid #393e54;
}


.no-access-container h2 {
    color: #ff3864;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(255,56,100,0.12);
}


.no-access-container p {
    font-size: 16px;
    color: #a0aec0;
}

.no-access-container a {
    color: #3be8b0;
    text-decoration: underline;
    transition: color 0.2s;
}
.no-access-container a:hover {
    color: #ff3864;
}

.mylinks-container {
    max-width: 800px;
    padding: 0 16px 16px 16px;
    margin: 0 auto;
    border-radius: 0 0 16px 16px;
    position: relative;
    font-family: Arial, sans-serif;
}
.cover-img {
    position: relative;
    width: 100%;
    height: 140px;
    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: 16px;
}
.profile-img-wrapper.profile-img-no-cover {
    margin-top: 10px; /* Sem capa, desce mais */
    margin-bottom: 16px;
}

.ico-social-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
    margin-top: 15px;
}
.ico-social-icon {
    width: 36px;
    height: 36px;
    border: 2px solid #00ffff;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 2px 2px rgb(0, 0, 0);
    transition: transform 0.15s;
    object-fit: cover;
}
.ico-social-icon:hover {
    transform: scale(1.12);
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
 
.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;
}

.username {
 margin-bottom: 16px;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}
.link-card {
    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;
}
.link-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    transform: translateY(-2px) scale(1.01);
}
.link-thumb {
    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;
}
.link-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.link-info {
    flex: 1;
    min-width: 0;
    position: relative;
    padding-right: 60px;
}
.link-title {
    font-weight: bold;
    font-size: 1.08em;
    margin-bottom: 2px;
    color: #232946;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.link-desc {
    font-size: 0.98em;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-affiliate {
    width: 100%;
    margin-top: 50px;
    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: 1px 4px 1px 6px;
  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) {
    .mylinks-container {
        max-width: 100vw;
        border-radius: 0;
        min-height: 100vh;
        height: auto;
        padding: 0 7px 0 2px;
    }
     .link-card {
        padding: 8px 8px;
        min-height: 48px;
    }
    .link-thumb {
        width: 38px;
        height: 38px;
        margin-right: 8px;
    }
    .links-list {
        padding: 0 15px 15px 15px;
    }
}

@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;
    }
}
