/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle at top, #141418, #0b0b0d);
  font-family: 'Manrope', sans-serif;
  color: #fff;
  min-height: 100vh;
  background-attachment: fixed;
}

/* BACKGROUND GLOW */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background:
    radial-gradient(circle at 30% 20%, rgba(124,58,237,0.25), transparent 40%),
    radial-gradient(circle at 70% 40%, rgba(124,58,237,0.15), transparent 50%);
}

/* CONTAINER */
.container {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px;
}

/* LOGO */
.logo {
  font-family: 'Sora', sans-serif;
  text-align: center;

  font-size: 34px;
  font-weight: 800;
  letter-spacing: 3px;

  margin-bottom: 35px;
}

/* АКЦЕНТ */
.logo-accent {
  color: #7c3aed;
  text-shadow:
    0 0 10px rgba(124,58,237,0.8),
    0 0 20px rgba(124,58,237,0.4);
}

/* 🔥 СМАЙЛ */
.logo-smile {
  display: inline-block;

  width: 70px;
  height: 70px;

  margin-left: -6px; /* 🔥 ОЦЕ ГОЛОВНЕ */
  vertical-align: middle;
}

/* плеєр */
.logo-smile dotlottie-wc {
  width: 100%;
  height: 100%;
  display: block;
}

/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width: 600px) {
  .logo {
    font-size: 24px;
    letter-spacing: 2px;
  }

  .logo-smile {
    width: 45px;
    height: 45px;
    margin-left: -4px;
  }
}

/* GRID */
.grid {
  display: flex;
  flex-wrap: wrap;
}

/* ========================= */
/* CARD WRAPPER */
/* ========================= */

.card {
  width: 50%;
  padding: 12px;
  text-decoration: none;
  color: #fff;
}

/* ========================= */
/* INNER */
/* ========================= */

.inner {
  position: relative;
  overflow: hidden;

  padding: 28px 20px;
  text-align: center;
  border-radius: 18px;

  border: 1px solid rgba(255,255,255,0.08);

  background: rgba(18,18,22,0.85);
  backdrop-filter: blur(12px);

  transition: 0.35s ease;
}

/* ========================= */
/* MESH BACKGROUND */
/* ========================= */

.inner::before {
  content: "";
  position: absolute;
  inset: -80%;

  background:
    radial-gradient(circle at 10% 20%, #0E21A0, transparent 40%),
    radial-gradient(circle at 90% 30%, #4D2FB2, transparent 45%),
    radial-gradient(circle at 30% 90%, #B153D7, transparent 50%),
    radial-gradient(circle at 80% 80%, #F375C2, transparent 45%);

  filter: blur(80px);
  opacity: 0.55;

  animation: meshFlow 28s linear infinite;
  pointer-events: none;
}

.inner::after {
  content: "";
  position: absolute;
  inset: -60%;

  background:
    radial-gradient(circle at 70% 20%, #4D2FB2, transparent 50%),
    radial-gradient(circle at 20% 70%, #F375C2, transparent 50%);

  filter: blur(90px);
  opacity: 0.35;

  animation: meshFlow2 36s linear infinite;
  pointer-events: none;
}

/* ========================= */
/* ICON */
/* ========================= */

.icon {
  position: relative;

  
  height: 120px;

  margin: 0 auto 10px;
}

.icon img {
  position: absolute;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%) scale(1);

  max-width: 100%;
  max-height: 100%;

  transition: 0.3s ease;
}

/* hover zoom */
.inner:hover .icon img {
  transform: translate(-50%, -50%) scale(1.1);
}

/* ========================= */
/* LABEL */
/* ========================= */

.card-label {
  display: inline-block;

  background: #7c3aed;
  color: #fff;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;

  padding: 6px 12px;
  border-radius: 6px;

  margin-bottom: 8px;
}

/* ========================= */
/* TEXT */
/* ========================= */

.text {
  font-size: 14px;
  letter-spacing: 2px;
  color: #ddd;
  font-weight: 800;
  margin-top: 4px;
}

.inner:hover .text {
  color: #fff;
}

/* ========================= */
/* HOVER */
/* ========================= */

.inner:hover {
  transform: translateY(-6px) scale(1.02);

  border-color: rgba(124,58,237,0.6);

  box-shadow:
    0 25px 80px rgba(124,58,237,0.35),
    inset 0 0 30px rgba(124,58,237,0.1);
}

/* ========================= */
/* CONTENT LAYER */
/* ========================= */

.inner > * {
  position: relative;
  z-index: 2;
}

/* ========================= */
/* VARIANTS */
/* ========================= */

.card-white .icon img {
  filter:
    brightness(0)
    invert(1)
    drop-shadow(0 0 12px rgba(255,255,255,0.4));
}

.card-white-soft .icon img {
  filter:
    brightness(0)
    invert(0.85)
    drop-shadow(0 0 10px rgba(255,255,255,0.25));
}

.card-purple .icon img {
  filter: drop-shadow(0 0 12px rgba(124,58,237,0.5));
}

/* ========================= */
/* INDIVIDUAL COLORS */
/* ========================= */

.card-card .inner::before {
  background:
    radial-gradient(circle at 10% 20%, #0E21A0, transparent 40%),
    radial-gradient(circle at 80% 30%, #4D2FB2, transparent 45%),
    radial-gradient(circle at 30% 80%, #6D3DF5, transparent 50%);
}

.card-crypto .inner::before {
  background:
    radial-gradient(circle at 20% 20%, #4D2FB2, transparent 40%),
    radial-gradient(circle at 80% 40%, #7c3aed, transparent 50%),
    radial-gradient(circle at 50% 90%, #2e1065, transparent 60%);
}

.card-video .inner::before {
  background:
    radial-gradient(circle at 20% 30%, #7c3aed, transparent 40%),
    radial-gradient(circle at 80% 70%, #F375C2, transparent 50%),
    radial-gradient(circle at 50% 90%, #4D2FB2, transparent 60%);
}

.card-mono .inner::before {
  background:
    radial-gradient(circle at 30% 30%, #B153D7, transparent 45%),
    radial-gradient(circle at 70% 60%, #9333ea, transparent 50%),
    radial-gradient(circle at 50% 90%, #4c1d95, transparent 60%);
}

/* ========================= */
/* SMOOTH ANIMATION */
/* ========================= */

@keyframes meshFlow {
  0% {
    transform: translate(0%, 0%) scale(1.1);
  }
  25% {
    transform: translate(-5%, 8%) scale(1.15);
  }
  50% {
    transform: translate(8%, 5%) scale(1.2);
  }
  75% {
    transform: translate(-6%, -6%) scale(1.15);
  }
  100% {
    transform: translate(0%, 0%) scale(1.1);
  }
}

@keyframes meshFlow2 {
  0% {
    transform: translate(0%, 0%) scale(1.2);
  }
  25% {
    transform: translate(10%, -6%) scale(1.25);
  }
  50% {
    transform: translate(-8%, 10%) scale(1.3);
  }
  75% {
    transform: translate(6%, -8%) scale(1.25);
  }
  100% {
    transform: translate(0%, 0%) scale(1.2);
  }
}

/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width: 600px) {
  .card {
    width: 100%;
  }

  .icon {
    width: 90px;
    height: 90px;
  }
}

/* ========================= */
/* CRYPTO WRAPPER */
/* ========================= */

.crypto {
  margin-top: 30px;
  padding: 0 12px; /* 🔥 як у card */
  box-sizing: border-box;
}

/* ========================= */
/* CONTAINER */
/* ========================= */

.crypto ul {
  background: #121216;
  padding: 16px;
  border-radius: 18px;

  border: 1px solid rgba(255,255,255,0.05);

  backdrop-filter: blur(10px);
}

/* ========================= */
/* ROW */
/* ========================= */

.crypto li {
  display: flex;
  align-items: center;
  gap: 12px;

  background: #18181d;
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 12px;

  border: 1px solid transparent;

  transition: 0.3s ease;

  position: relative;
  overflow: hidden;
}

/* glow layer */
.crypto li::after {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(circle at 50% 0%, rgba(124,58,237,0.12), transparent 65%);
  opacity: 0;
  transition: 0.3s;

  pointer-events: none;
}

/* hover */
.crypto li:hover {
  background: #1d1d24;
  border: 1px solid rgba(124,58,237,0.5);

  box-shadow:
    0 10px 25px rgba(124,58,237,0.15),
    inset 0 0 15px rgba(124,58,237,0.06);
}

.crypto li:hover::after {
  opacity: 1;
}

/* ========================= */
/* BADGE */
/* ========================= */

.badge {
  flex-shrink: 0;

  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #fff;

  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1px;

  padding: 6px 12px;
  border-radius: 8px;
}

/* ========================= */
/* ADDRESS */
/* ========================= */

.address {
  flex: 1;

  font-size: 14px;
  color: #ddd;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* 🔥 ... */

  min-width: 0; /* 🔥 FIX для flex */
}

/* ========================= */
/* COPY BUTTON */
/* ========================= */

.copy-btn {
  flex-shrink: 0; /* 🔥 не зникає */

  display: flex;
  align-items: center;
  gap: 6px;

  background: transparent;
  border: 1px solid rgba(124,58,237,0.4);
  color: #7c3aed;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;

  padding: 6px 10px;
  border-radius: 8px;

  cursor: pointer;
  transition: 0.25s ease;

  position: relative;
  z-index: 2;
}

/* hover */
.copy-btn:hover {
  background: rgba(124,58,237,0.2);
  color: #fff;
  border-color: #7c3aed;

  box-shadow: 0 0 12px rgba(124,58,237,0.4);
}

/* ========================= */
/* ICON */
/* ========================= */

.copy-icon {
  width: 14px;
  height: 14px;

  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width: 600px) {
  .crypto {
    padding: 0 12px;
  }

  .crypto ul {
    padding: 12px;
  }

  .crypto li {
    padding: 10px 12px;
    gap: 8px;
  }

  .address {
    font-size: 13px;
  }

  .copy-btn {
    font-size: 10px;
    padding: 5px 8px;
  }
}
/* ========================= */
/* FOOTER */
/* ========================= */

.footer {
  text-align: center;
  margin-top: 40px;
  font-size: 12px;
  color: #666;
  letter-spacing: 1px;
}

.footer-link {
  color: #7c3aed;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s;
}

.footer-link:hover {
  color: #a855f7;
  text-shadow: 0 0 10px rgba(124,58,237,0.7);
}

/* ========================= */
/* TOAST */
/* ========================= */

#toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);

  background: rgba(18, 18, 22, 0.85);
  backdrop-filter: blur(8px);

  padding: 6px 12px;
  border-radius: 8px;

  font-size: 12px;
  font-weight: 600;

  border: 1px solid rgba(124,58,237,0.4);

  opacity: 0;
  transition: 0.25s ease;

  white-space: nowrap;

  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  z-index: 9999;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* MOBILE */
@media (max-width: 600px) {
  .card {
    width: 100%;
  }
}


@media (max-width: 600px) {

  /* ❌ прибрали важкі штуки */
  .inner::before,
  .inner::after {
    display: none;
  }

  /* 🔥 новий фон */
  .inner {
    background:
      radial-gradient(circle at 30% 20%, rgba(124,58,237,0.25), transparent 60%),
      radial-gradient(circle at 80% 70%, rgba(179,83,215,0.25), transparent 60%),
      linear-gradient(145deg, #18181d, #121216);

    backdrop-filter: none;

    border: 1px solid rgba(124,58,237,0.15);
  }

  /* трохи живості без лагів */
  .inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(124,58,237,0.25);
  }

  /* crypto теж легший */
  .crypto ul {
    background:
      linear-gradient(145deg, #18181d, #121216);

    backdrop-filter: none;
    border: 1px solid rgba(124,58,237,0.1);
  }
}

.inner,
.crypto ul {
  transform: translateZ(0);
}
