.cdp-welcome {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cdp-welcome[data-visible="true"] {
  display: flex;
}

.cdp-welcome-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(8px);
}

.cdp-welcome-card {
  position: relative;
  width: min(580px, 92vw);
  border-radius: 28px;
  padding: 32px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

body.dark-mode .cdp-welcome-card {
  background: linear-gradient(145deg, #0f172a, #111827);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.45);
}

.cdp-welcome-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: inherit;
  cursor: pointer;
}


.cdp-welcome-crest {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}

.cdp-welcome-crest img {
  max-width: 120px;
  height: auto;
}

.cdp-welcome-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 11px;
  color: rgba(15, 23, 42, 0.6);
}

body.dark-mode .cdp-welcome-kicker {
  color: rgba(248, 250, 252, 0.7);
}

.cdp-welcome-body {
  max-width: 420px;
}

.cdp-welcome-body h2 {
  margin: 6px 0 8px;
  font-size: 28px;
}

.cdp-welcome-desc {
  margin: 0;
  color: rgba(15, 23, 42, 0.75);
  line-height: 1.6;
}

body.dark-mode .cdp-welcome-desc {
  color: rgba(248, 250, 252, 0.8);
}

.cdp-welcome-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.cdp-welcome-btn {
  flex: 1 1 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  font-weight: 700;
  border-radius: 14px;
  border: none;
  cursor: pointer;
}

.cdp-welcome-btn--ghost {
  background: transparent;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.2);
}

body.dark-mode .cdp-welcome-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cdp-welcome-btn--primary {
  background: #d9a300;
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(217, 163, 0, 0.35);
}

@media (max-width: 520px) {
  .cdp-welcome {
    padding: 12px;
  }

  .cdp-welcome-card {
    width: min(280px, calc(100vw - 48px));
    min-height: auto;
    border-radius: 20px;
    padding: 16px 14px 14px;
    gap: 10px;
  }

  .cdp-welcome-close {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
  }

  .cdp-welcome-crest {
    margin-top: 0;
  }

  .cdp-welcome-crest img {
    max-width: 58px;
  }

  .cdp-welcome-kicker {
    font-size: 8px;
    letter-spacing: 0.18em;
  }

  .cdp-welcome-body {
    max-width: 228px;
  }

  .cdp-welcome-body h2 {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.14;
  }

  .cdp-welcome-desc {
    font-size: 11px;
    line-height: 1.35;
  }

  .cdp-welcome-actions {
    flex-direction: column;
    width: min(100%, 176px);
    gap: 8px;
  }

  .cdp-welcome-btn {
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 11px;
    flex: 0 0 auto;
  }
}

@media screen and (max-width: 430px) and (hover: none) and (pointer: coarse) {
  .cdp-welcome {
    padding: 12px !important;
  }

  .cdp-welcome-card {
    width: min(270px, calc(100vw - 44px)) !important;
    min-height: auto !important;
    border-radius: 18px !important;
    padding: 14px 12px 12px !important;
    gap: 9px !important;
  }

  .cdp-welcome-close {
    top: 7px !important;
    right: 7px !important;
    width: 26px !important;
    height: 26px !important;
  }

  .cdp-welcome-crest {
    margin-top: 0 !important;
  }

  .cdp-welcome-crest img {
    max-width: 54px !important;
  }

  .cdp-welcome-kicker {
    font-size: 8px !important;
    letter-spacing: 0.16em !important;
  }

  .cdp-welcome-body {
    max-width: 216px !important;
  }

  .cdp-welcome-body h2 {
    margin: 0 0 4px !important;
    font-size: 14px !important;
    line-height: 1.12 !important;
  }

  .cdp-welcome-desc {
    font-size: 10.5px !important;
    line-height: 1.3 !important;
  }

  .cdp-welcome-actions {
    width: min(100%, 164px) !important;
    gap: 8px !important;
  }

  .cdp-welcome-btn {
    min-height: 34px !important;
    padding: 7px 10px !important;
    font-size: 10.5px !important;
    border-radius: 9px !important;
    flex: 0 0 auto !important;
  }
}
