@import 'https://fonts.googleapis.com/css?family=Lily+Script+One';

:root {
    --mainColor: #884dc3;
    --mainColorHover: #6e39a4;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;

    box-sizing: border-box;

    overflow: auto;
    overflow-x: hidden;

    background: black;
    background-size: contain;
}

body, main {
    background: transparent;
}

* {
    /*user-select: none;
    -moz-user-modify: none;*/

    font-family: "Barlow", sans-serif;
    font-weight: 700;
    font-size: 2vw;
    text-align: center;
    color: white;
    text-shadow: black 1px 1px 5px;
}

::-webkit-scrollbar {
  width: 0.5vw;
  height: 0.5vw;
}

/* Track */
::-webkit-scrollbar-track {
  background: black;
}

::-webkit-scrollbar-track-piece {
    background: black;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--mainColor);
  border-radius: 1vw;
  border: 2px solid black; /* stesso colore del track */
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--mainColorHover);
}

.containerSito {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;

    width: 100%;
    height: 100%;

    user-select: none;
    -moz-user-modify: none;

    overflow-y: auto;
    overflow-x: hidden;
}

/* Sfondo ambientale animato */
.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-ambient::before {
  content: '';
  position: absolute;
  width: 70vw; height: 70vw;
  left: -20vw; top: -20vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(141,69,213,0.12) 0%, transparent 70%);
  animation: ambientDrift1 12s ease-in-out infinite alternate;
}

.bg-ambient::after {
  content: '';
  position: absolute;
  width: 50vw; height: 50vw;
  right: -10vw; bottom: 10vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,136,0.07) 0%, transparent 70%);
  animation: ambientDrift2 15s ease-in-out infinite alternate;
}

@keyframes ambientDrift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(5vw, 5vw) scale(1.1); }
}
@keyframes ambientDrift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-5vw, -3vw) scale(1.15); }
}

/* Pattern animato */
.bg-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("../img/logo/industry.png");
  background-repeat: repeat;
  background-size: 120px;
  opacity: 0.025;
  filter: brightness(0) invert(1);
  animation: patternDrift 60s linear infinite;
}

@keyframes patternDrift {
  from { background-position: 0 0; }
  to   { background-position: 120px 120px; }
}

/* Griglia decorativa */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(141,69,213,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141,69,213,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
}


/* ═══════════ HEADER ═══════════ */
.header {
  position: relative;
  z-index: 100;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 1vw 4vw;
  height: auto;
  min-height: 5vw;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  background: rgba(8,8,8,0.6);
  gap: 1.2vw;
  animation: headerSlide 0.8s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes headerSlide {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

.imgHeader {
  height: 5vw; width: 5vw;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(141,69,213,0.6));
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%,100% { filter: drop-shadow(0 0 8px rgba(141,69,213,0.5)); }
  50%      { filter: drop-shadow(0 0 20px rgba(141,69,213,0.9)); }
}

.headerText {
  display: inline-block; /* necessario per transform */
  position: relative;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.2em;
  color: white;

  transform-origin: left center; /* si piega partendo da sinistra */

  text-shadow:
    0 0 5px rgba(141,69,213,0.6),
    0 0 15px rgba(141,69,213,0.5),
    0 0 30px rgba(141,69,213,0.4),
    0 0 60px rgba(141,69,213,0.2);

  /* Startup una volta sola (2.5s), poi flicker infinito */
  animation:
    neonStartup 4.5s cubic-bezier(0.22,1,0.36,1) forwards,
    neonFlicker 3s 4.5s infinite alternate;
}

.headerText::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;

  color: rgba(141,69,213,0.3);
  filter: blur(10px);

  animation: glowPulse 3.5s infinite;
}

.headerText::before {
  content: '';

  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.2em;
  color: rgb(33, 33, 33);
  text-shadow: 0 0 30px rgba(33, 33, 33, 0.4);
  animation: none;

  z-index: 0;
}

.headerText > * {
  position: relative;
  z-index: 1;
}

@keyframes neonStartup {
  /* Buio totale */
  0% {
    transform: rotate(0deg) translateY(0px) translateX(0px);
    opacity: 0;
    filter: brightness(0);
    text-shadow: none;
  }

  /* Primo tentativo — scatto violento di luce */
  4% {
    opacity: 1;
    filter: brightness(4);
    text-shadow:
      0 0 5px #fff,
      0 0 20px rgba(141,69,213,1),
      0 0 60px rgba(141,69,213,0.9),
      0 0 120px rgba(141,69,213,0.5);
  }

  /* Muore subito */
  5.5% {
    opacity: 0;
    filter: brightness(0);
    text-shadow: none;
  }

  /* Secondo tentativo — più lungo */
  8% {
    opacity: 1;
    filter: brightness(3);
    text-shadow:
      0 0 5px #fff,
      0 0 20px rgba(141,69,213,1),
      0 0 50px rgba(141,69,213,0.8);
  }

  /* Sfarfallio rapido */
  10%  { opacity: 0.1; filter: brightness(0.3); }
  11%  { opacity: 1;   filter: brightness(2.5); }
  12%  { opacity: 0;   filter: brightness(0); }
  13%  { opacity: 1;   filter: brightness(3); }
  14%  { opacity: 0.2; filter: brightness(0.5); }
  15%  { opacity: 1;   filter: brightness(2); }

  /* Stabile per un momento — finta calma */
  18% {
    opacity: 1;
    filter: brightness(1.8);
    transform: rotate(0deg) translateY(0px);
    text-shadow:
      0 0 5px rgba(141,69,213,0.8),
      0 0 20px rgba(141,69,213,0.6);
  }

  /* BOTTO — il cartello si stacca di scatto */
  22% {
    transform: rotate(-1deg) translateY(-3px) translateX(-2px);
    filter: brightness(4);
    text-shadow:
      0 0 5px #fff,
      0 0 30px rgba(141,69,213,1),
      0 0 80px rgba(141,69,213,0.8),
      0 0 150px rgba(141,69,213,0.4);
  }

  /* Cade di botto verso destra */
  24% {
    transform: rotate(6deg) translateY(8px) translateX(5px);
    filter: brightness(0.5);
    opacity: 0.4;
  }

  /* Rimbalzo — va troppo */
  26% {
    transform: rotate(1deg) translateY(2px) translateX(1px);
    filter: brightness(3);
    opacity: 1;
  }

  /* Ricade più pesante */
  29% {
    transform: rotate(7deg) translateY(10px) translateX(6px);
    filter: brightness(0.3);
    opacity: 0.2;
  }

  /* Altro rimbalzo più piccolo */
  32% {
    transform: rotate(2.5deg) translateY(4px) translateX(2px);
    filter: brightness(2.5);
    opacity: 1;
  }

  /* Sfarfallio mentre si stabilizza */
  34%  { opacity: 0.1; filter: brightness(0.2); }
  35%  { opacity: 1;   filter: brightness(2); }
  36%  { opacity: 0;   filter: brightness(0); }
  37%  { opacity: 1;   filter: brightness(1.8); }
  38%  { opacity: 0.3; filter: brightness(0.4); }
  39%  { opacity: 1;   filter: brightness(1.5); }

  /* Oscilla — pendolo smorzato */
  42% { transform: rotate(5.5deg) translateY(9px) translateX(5px); }
  46% { transform: rotate(3deg)   translateY(5px) translateX(3px); }
  50% { transform: rotate(4.5deg) translateY(8px) translateX(4.5px); }
  55% { transform: rotate(3.2deg) translateY(5.5px) translateX(3.2px); }
  60% { transform: rotate(4deg)   translateY(7px) translateX(4px); }
  68% { transform: rotate(3.4deg) translateY(6px) translateX(3.4px); }
  76% { transform: rotate(3.7deg) translateY(6.5px) translateX(3.7px); }
  84% { transform: rotate(3.5deg) translateY(6px) translateX(3.5px); }

  /* Ultimo sfarfallio prima di stabilizzarsi */
  88%  { opacity: 0.2; filter: brightness(0.3); }
  89%  { opacity: 1;   filter: brightness(1.8); }
  90%  { opacity: 0.5; filter: brightness(0.7); }
  91%  { opacity: 1;   filter: brightness(1.5); }

  /* Posizione finale — pende storto per sempre */
  100% {
    transform: rotate(3.5deg) translateY(6px) translateX(3.5px);
    filter: brightness(1.3);
    opacity: 1;
    text-shadow:
      0 0 5px rgba(141,69,213,0.6),
      0 0 15px rgba(141,69,213,0.5),
      0 0 30px rgba(141,69,213,0.4),
      0 0 60px rgba(141,69,213,0.2);
  }
}

@keyframes neonFlicker {

  0% {
    opacity: 1;
    filter: brightness(1.3);
    text-shadow:
      0 0 5px rgba(141,69,213,0.6),
      0 0 15px rgba(141,69,213,0.5),
      0 0 30px rgba(141,69,213,0.4);
  }

  2% {
    filter: brightness(1);
    opacity: 0.8;
  }

  3% {
    opacity: 1;
  }

  5% {
    filter: brightness(0.8);
    opacity: 0.4;
  }

  6% {
    filter: brightness(1.4);
    opacity: 1;
  }

  10% {
    opacity: 0.9;
  }

  11% {
    opacity: 1;
  }

  50% {
    filter: brightness(1.2);
    opacity: 1;
    text-shadow:
      0 0 10px rgba(141,69,213,0.8),
      0 0 25px rgba(141,69,213,0.6),
      0 0 50px rgba(141,69,213,0.3);
  }

  100% {
    filter: brightness(1.3);
    opacity: 1;
  }
}

@keyframes glowPulse {
  from {
    opacity: 0.4;
    transform: scale(1);
  }
  to {
    opacity: 0.9;
    transform: scale(1.02);
  }
}

.header-accent {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: dotBlink 2s ease-in-out infinite;
}

@keyframes dotBlink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.2; }
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.productsGrid {
    display: flex;
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;

    gap: 1vw;

    align-items: center;
    justify-content: center;

    width: 80%;
    min-height: calc(100vh - 10vw);
    height: fit-content;


    margin: 0 auto;
    overflow: none;
}

.patternIcon {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 250%;
    height: 250%;

    background-image: url("../img/logo/industry.png");
    background-repeat: repeat;
    background-size: 15%;

    opacity: 0.2;
    pointer-events: none;

    z-index: 0;

    filter: brightness(0.1) contrast(2.2);

    mix-blend-mode: soft-light;

    transform: translate(-50%, -50%) rotate(20deg);

    animation: patternMoveIcon 50s linear infinite;
}

@keyframes patternMoveIcon {
    from {
        background-position: 0% 0%;
    }
    to {
        background-position: 0% -100%;
    }
}

.product {
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;


    background: linear-gradient(95deg,rgba(157, 102, 212, 1) 0%, rgba(92, 53, 143, 1) 76%, rgba(73, 36, 110, 1) 100%);

    border: rgba(72, 46, 105, 1) 4px solid;

    height: 25vw;
    width: 30%;

    box-shadow: 0 0 1vw rgba(0, 0, 0, 0.6);

    overflow: hidden;
}

/* Coin grande al centro della card */
.productCoinPreview {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    z-index: 1;
}

.industryCoinBig {
    height: 8vw;
    width: 8vw;
    object-fit: contain;
    filter: drop-shadow(0 0 1.5vw rgba(0,0,0,0.8));
    animation: floatCoin 3s ease-in-out infinite;
}

@keyframes floatCoin {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-0.5vw); }
}

/* Pannello basso */
.bottomProductData {
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0.8vw 1.2vw;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    gap: 0.5vw;

    z-index: 100;
}

/* Riga superiore: nome + coins */
.product-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.product-name {
    font-size: 1.3vw;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1vw;
}

.product-coins {
    display: flex;
    align-items: center;
    gap: 0.4vw;
    font-size: 1.2vw;
    font-weight: 700;
    color: #f0c040;
}

.industryCoinSmall {
    height: 1.2vw;
    width: 1.2vw;
    object-fit: contain;
}

/* Separatore */
.product-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

/* Riga inferiore: prezzo + bottone */
.product-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.product-price {
    font-size: 1.5vw;
    font-weight: 900;
    color: #ffffff;
}

.buy-btn {
    display: flex;
    background: var(--mainColor);
    border: none;
    border-radius: 0.8vw;
    padding: 0.4vw 1.2vw;
    font-size: 1vw;
    text-transform: uppercase;
    letter-spacing: 0.05vw;
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent; /* ← bordo sempre presente ma invisibile */

    pointer-events: all;
    position: relative;
    z-index: 9999;
}

.buy-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    border: var(--mainColor) 2px solid;
}

.product-banner {
    position: absolute;
    bottom: 26%;  /* ← spostalo sopra il bottomProductData, aggiusta % a occhio */
    right: 0;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    gap: 0.4vw;

    padding: 0.4vw 1vw 0.4vw 1.2vw;

    /* Angolo tagliato in basso a sinistra */
    clip-path: polygon(12px 0%, 100% 0%, 100% 100%, 0% 100%);

    background: var(--banner-color);

    font-size: 0.1vw !important;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    white-space: nowrap;

    pointer-events: none;
}

/* Linea decorativa a sinistra del testo */
.product-banner::before {
    content: '';
    display: block;
    width: 2px;
    height: 0.5vw;
    background: rgba(255,255,255,0.5);
    flex-shrink: 0;
}

.bannerText {
    font-size: 0.9vw !important;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    white-space: nowrap;
}

.banner-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    animation: bannerShimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bannerShimmer {
    0%   { left: -60%; }
    100% { left: 160%; }
}

.banner-glow {
    box-shadow:
        -4px 4px 2vw var(--banner-glow),
        -1px 1px 0.5vw var(--banner-color);
}

.banner-pulse {
    animation: bannerPulse 2.5s ease-in-out infinite;
}

@keyframes bannerPulse {
    0%, 100% {
        opacity: 1;
        box-shadow:
            -4px 4px 1.5vw var(--banner-glow);
    }
    50% {
        opacity: 0.85;
        box-shadow:
            -4px 4px 3vw var(--banner-glow),
            -2px 2px 1vw var(--banner-color);
    }
}


/* PAGAMENTO COMPLETATO SUCCESSO */
.successContainer {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 100%;
    min-height: 80vh;

    background: rgba(0, 0, 0, 0.7);
    background-image: url("../img/background/background.png");
    background-size: contain;

    text-align: center; 
    padding: 2rem;

}

.successContainer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.7);
    background-image: url("../img/background/background.png");
    background-size: contain;

    filter: blur(8px); /* ← solo il background viene blurrato */
    z-index: 0;
}

.successContainer > * {
    position: relative;
    z-index: 1;
}

.successContainer .industryCoin {
    height: 2.5vw !important;
    width: 2.5vw !important;
    transform: none !important;
    bottom: 0.2vw !important;
    vertical-align: middle;
    display: inline-block;

    margin-right: 0.6vw;
}

.keyboard {
    background: white;

    font-size: 0.8rem !important;

    height: fit-content;
    width: fit-content;

    padding: 0.2vw 0.5vw;

    border-radius: 0.8vw;

    text-shadow: none;

    color: black;

    box-shadow: 0 0 1vw black;

    text-transform: uppercase;
}

/* PAGAMENTO CANCELLATO CANCEL */
.cancelContainer {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 100%;

    text-align: center; 
    padding: 2rem;

}

.cancelicon-wrap {
  position: relative;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: dropIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-30px) scale(0.5); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cancelicon-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid rgba(255,0,136,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: ringExpand 0.8s ease 0.4s both;
}

@keyframes ringExpand {
  from { box-shadow: 0 0 0 0 rgba(255,0,136,0.4); }
  to   { box-shadow: 0 0 0 20px rgba(255,0,136,0), 0 0 40px rgba(255,0,136,0.15); }
}

.cancelicon-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(255,0,136,0.1);
  animation: ringExpand2 2s ease 0.8s infinite;
}

@keyframes ringExpand2 {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}

.cancelicon-icon {
  font-size: 2.8rem;
  line-height: 1;
  animation: iconPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
}

@keyframes iconPop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}



/* DISCORD LOGIN */

.discord-btn {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    background: none;
    border: 0.1vw solid #5865F2;
    border-radius: 1vw;
    padding: 0.5vw 1vw;
    cursor: pointer;
    margin-left: auto;
    margin-right: 5vw;
    transition: background 0.2s;
}

.discord-btn:hover {
    background: #5865F2;
}

.discordLogo {
    filter: brightness(100);
}

.user-bar {
    display: flex;
    align-items: center;
    gap: 0.8vw;
    margin-left: auto;
    margin-right: 5vw;
}

.avatar {
    height: 2.5vw;
    width: 2.5vw;
    border-radius: 50%;
    object-fit: cover;
}

.logout-btn {
    background: transparent;
    border: 2px solid #5865F2;
    border-radius: 0.8vw;
    padding: 0.3vw 0.8vw;
    cursor: pointer;
    font-size: 1vw;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #5865F2;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */

.site-footer {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.6);
  border-top: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  padding: 3vw 5vw 0;
}

.footer-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3vw;
  padding-bottom: 2.5vw;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  
  justify-content: left;
  gap: 0.7rem;
  max-width: 20%;
}

.footer-logo {
  height: 3rem;
  width: 3rem;
  object-fit: contain;
  filter: drop-shadow(0 0 0.5rem rgba(141,69,213,0.5));
}

.footer-brand-name {
    box-sizing: border-box;
    width: fit-content;
    margin: 0;
    padding: 0;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-shadow: none;
    color: white;
}

.footer-tagline {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  font-weight: 400;
  text-shadow: none;
  text-align: left;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-direction: row;
  gap: 4vw;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col-title {
  font-size: 0.60rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  font-weight: 700;
  margin-bottom: 0.3rem;
  text-shadow: none;
}

.footer-col a {
  font-size: 0.70rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  text-shadow: none;
  text-align: left;
}

.footer-col a:hover {
  color: white;
}

/* Social buttons */
.footer-socials {
  display: flex;
  flex-direction: row;
  gap: 0.6rem;
  margin-top: 0.3rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.6rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.social-discord {
  background: rgba(88, 101, 242, 0.15);
  color: #7289da;
  border: 1px solid rgba(88, 101, 242, 0.25);
}
.social-discord:hover {
  background: rgba(88, 101, 242, 0.35);
  border-color: #7289da;
}

.social-tiktok {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.1);
}
.social-tiktok:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

.social-instagram {
  background: rgba(228, 64, 95, 0.1);
  color: #e4405f;
  border: 1px solid rgba(228, 64, 95, 0.2);
}
.social-instagram:hover {
  background: rgba(228, 64, 95, 0.25);
  border-color: #e4405f;
}

/* Footer bottom bar */
.footer-bottom {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.2rem 0;
  font-size: 0.55rem !important;
  color: rgba(255,255,255,0.2);
  font-weight: 400;
  text-shadow: none;
  flex-wrap: wrap;
}

.footer-bottom span {
    font-size: 0.55rem !important;
}

.footer-bottom a {
    font-size: 0.55rem !important;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.2s;
    text-shadow: none;
}

.footer-bottom a:hover { color: white; }

.footer-bottom-sep {
  color: rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .termini-main {
    flex-direction: column;
    width: 92%;
  }
  .termini-sidebar {
    position: static;
    width: 100%;
    box-sizing: border-box;
  }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; }
  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-links { flex-wrap: wrap; gap: 2rem; }
  .contact-grid { flex-direction: column; }
}

/* ── LOGIN MODAL ── */
#login-modal {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem; /* ← evita che tocchi i bordi su schermi piccoli */
  opacity: 0;
  transition: opacity 0.3s ease;
}

#login-modal.visible { opacity: 1; }

.login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
}

.login-modal-box {
  position: relative;
  width: 100%;
  max-width: 30vw;
  max-height: 90vh;        /* ← non supera l'altezza dello schermo */
  overflow-y: auto;         /* ← scroll interno se serve */
  background: #0e0e0e;
  border: 1px solid rgba(141,69,213,0.25);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}

#login-modal.visible .login-modal-box {
  transform: translateY(0) scale(1);
}

.login-modal-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #8d45d5, #7289da, #8d45d5);
  background-size: 200%;
  animation: bannerShimmer 2s linear infinite;
}

/* Angolini decorativi */
.login-modal-corner {
  position: absolute;
  width: 12px; height: 12px;
}
.login-modal-corner.tl { top: 8px; left: 8px; border-top: 1px solid rgba(141,69,213,0.5); border-left: 1px solid rgba(141,69,213,0.5); }
.login-modal-corner.tr { top: 8px; right: 8px; border-top: 1px solid rgba(141,69,213,0.5); border-right: 1px solid rgba(141,69,213,0.5); }
.login-modal-corner.bl { bottom: 8px; left: 8px; border-bottom: 1px solid rgba(141,69,213,0.5); border-left: 1px solid rgba(141,69,213,0.5); }
.login-modal-corner.br { bottom: 8px; right: 8px; border-bottom: 1px solid rgba(141,69,213,0.5); border-right: 1px solid rgba(141,69,213,0.5); }

.login-modal-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: rgba(114,137,218,0.1);
  border: 1px solid rgba(114,137,218,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.login-modal-title {
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
  text-align: center;
  text-shadow: none;
}

.login-modal-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  line-height: 1.7;
  font-weight: 400;
  text-shadow: none;
}

.login-modal-sub strong {
  color: #c084fc;
  font-weight: 700;
}

/* Perks */
.login-modal-perks {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 0.3rem 0;
}

.login-perk {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  text-shadow: none;
}

.perk-icon { font-size: 1rem; flex-shrink: 0; }

/* Bottone Discord */
.login-modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.9rem;
  background: #5865F2;
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Barlow', sans-serif;
  text-shadow: none;
}

.login-modal-btn:hover {
  background: #4752c4;
  box-shadow: 0 0 25px rgba(88,101,242,0.4);
  transform: translateY(-1px);
}

.login-modal-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.2);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Barlow', sans-serif;
  transition: color 0.2s;
  text-shadow: none;
}

.login-modal-close:hover { color: rgba(255,255,255,0.5); }

/* ═══════════ LEADERBOARD ═══════════ */

.leaderboard-section {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 3vw 0 4vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.leaderboard-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.leaderboard-title {
  font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  color: white;
  text-shadow: 0 0 40px rgba(141,69,213,0.3);
  margin-bottom: 2rem;
  text-align: center;
}

.leaderboard-title .accent { color: var(--mainColor); }

/* Track wrapper con fade laterali */
.leaderboard-track-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.leaderboard-fade-left,
.leaderboard-fade-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.leaderboard-fade-left {
  left: 0;
  background: linear-gradient(90deg, #080808, transparent);
}

.leaderboard-fade-right {
  right: 0;
  background: linear-gradient(270deg, #080808, transparent);
}

/* Track scorrevole */
.leaderboard-track {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  padding: 1rem 0;
  width: max-content;
  animation: leaderboardScroll 20s linear infinite;
}

.leaderboard-track:hover {
  animation-play-state: paused; /* pausa sull'hover */
}

@keyframes leaderboardScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* -50% perché le card sono duplicate */
}

/* ── CARD ── */
.lb-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  width: 200px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(141,69,213,0.15);
  padding: 1.5rem 1rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  cursor: default;
}

.lb-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(141,69,213,0.4), transparent);
}

.lb-card:hover {
  border-color: rgba(141,69,213,0.4);
  transform: translateY(-4px);
}

/* Rank badge */
.lb-rank {
  position: absolute;
  top: 0.6rem; right: 0.6rem;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
  text-shadow: none;
}

.lb-rank.rank-gold   { color: #f0c040; text-shadow: 0 0 10px rgba(240,192,64,0.5); font-size: 1rem; }
.lb-rank.rank-silver { color: #aaaaaa; text-shadow: 0 0 10px rgba(170,170,170,0.4); font-size: 0.9rem; }
.lb-rank.rank-bronze { color: #cd7f32; text-shadow: 0 0 10px rgba(205,127,50,0.4); font-size: 0.85rem; }

/* Avatar */
.lb-avatar-wrap {
  position: relative;
  width: 64px; height: 64px;
}

.lb-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(141,69,213,0.3);
  display: block;
}

.lb-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(141,69,213,0.2);
  animation: avatarRingPulse 3s ease-in-out infinite;
}

@keyframes avatarRingPulse {
  0%,100% { transform: scale(1); opacity: 0.5; }
  50%      { transform: scale(1.08); opacity: 1; }
}

/* Prima card — oro extra */
.lb-card:first-child .lb-avatar,
.lb-card:nth-child(${p => p + 1}):first-child .lb-avatar {
  border-color: #f0c040;
  box-shadow: 0 0 20px rgba(240,192,64,0.3);
}

/* Info */
.lb-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.lb-username {
  font-size: 0.9rem;
  font-weight: 900;
  color: white;
  text-shadow: none;
  text-align: center;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.lb-coins {
  font-size: 0.75rem;
  color: #f0c040;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(240,192,64,0.3);
  text-align: center;
}

.lb-purchases {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.2);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: none;
}

.server-status-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  text-shadow: none;
  white-space: nowrap;
}

.server-status-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: white;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
  transition: background 0.3s;
}

.status-dot.dot-online {
  background: #00ff88;
  box-shadow: 0 0 6px rgba(0,255,136,0.6);
  animation: dotPulse 2s ease-in-out infinite;
}

.status-dot.dot-offline {
  background: #ff3b3b;
  box-shadow: 0 0 6px rgba(255,59,59,0.4);
}

@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 4px rgba(0,255,136,0.5); }
  50%      { box-shadow: 0 0 10px rgba(0,255,136,0.9); }
}

.user-bar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: white;
  transition: opacity 0.2s;
  text-shadow: none;
}

.user-bar-link:hover { opacity: 0.7; }

.admin-link {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  height: 3vw;
  width: 10vw;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mainColor);
  text-decoration: none;
  padding: 0.3rem 0.5rem;
  border: 1px solid rgba(141,69,213,0.3);
  transition: all 0.2s;
  text-shadow: none;
}
.admin-link:hover {
  background: rgba(141,69,213,0.1);
  border-color: var(--mainColor);
}

#particles-canvas {
  position: fixed; /* fixed invece di absolute */
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: transparent !important;
}

/* Tutti gli elementi sopra le particelle */
.header,
.hero,
.productsGrid,
.leaderboard-section,
.containerSito > * {
  position: relative;
  z-index: 1;
}