html,
body,
#root {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #120a02;
  font-family: "Segoe UI", sans-serif;
}

.App {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 54px 20px;
  min-height: 100vh;

  background-image: url("/images/airdrop/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  font-family: "Segoe UI", sans-serif;
}

.airdrop-page-wrapper {
  margin: 0 auto; /* 水平居中 */
  padding: 0;
  width: 85vw; /* ✅ 视口宽度的 90% */
  background-attachment: fixed;
  color: #ffc400;
  font-family: "Segoe UI", sans-serif;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

  /* background-image: url("/your-background.png"); */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
}

.airdrop-title {
  text-align: center;
  font-size: 42px; /* 🟡 同NFT页面标题统一 */
  font-weight: 800;
  margin-bottom: 40px;
  color: #ffc400;
  text-shadow: 0 0 10px rgba(255, 196, 0, 0.5);
}

.airdrop-container {
  background: rgba(95, 17, 17, 0.8);
  border: 1px solid #ffc400;
  border-radius: 16px; /* ✅ 与NFT统一的圆角 */
  padding: 32px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 0 20px rgba(255, 196, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.airdrop-rule-title,
.airdrop-invite-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #ffdd55;
  text-align: left;
  width: 100%;
}

.airdrop-rules {
  list-style: none;
  padding-left: 0;
  margin-bottom: 24px;
  width: 100%;
}

.airdrop-rules li {
  margin-bottom: 8px;
  font-size: 15px;
  color: #eee;
}

.airdrop-reward p {
  margin: 4px 0;
  font-size: 15px;
  color: #ffd700;
}

.invite-section {
  width: 100%;
  margin: 0px 0;
  display: flex;
  flex-direction: column;
  align-items: left; /* 👈 让内容靠左 */
}

.invite-label {
  margin-bottom: 8px;
  font-weight: bold;
  color: #ffc400;
  font-size: 16px;
  text-align: left;
}

.invite-link {
  width: 90%;
  max-width: 400px; /* ✅ 控制最大宽度 */
  padding: 12px 16px;
  border: 1px solid #ffc400;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff8e1;
  font-size: 15px;
  font-family: monospace;
  word-break: break-all;
  box-shadow: 0 0 8px rgba(255, 196, 0, 0.2);
  transition: border-color 0.3s ease;
}

.invite-link:focus {
  outline: none;
  border-color: #ffeb3b;
}

.connect-button,
.claim-button {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: bold;
  background: linear-gradient(
    160deg,
    #ffc400,
    #c77e00
  ); /* ✅ NFT 统一按钮渐变 */
  color: #1b0c04;
  border: none;
  border-radius: 12px; /* ✅ NFT 按钮统一圆角 */
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 196, 0, 0.3);
  margin-bottom: 20px;
}

.connect-button:hover,
.claim-button:hover {
  background: linear-gradient(90deg, #ffc400, #ffdb4d);
  box-shadow: 0 0 18px rgba(255, 196, 0, 0.5);
  transform: translateY(-2px);
}

.connect-button2,
.claim-button2 {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: bold;
  background: linear-gradient(
    160deg,
    #ffc400,
    #c77e00
  ); /* ✅ NFT 统一按钮渐变 */
  color: #1b0c04;
  border: none;
  border-radius: 12px; /* ✅ NFT 按钮统一圆角 */
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 196, 0, 0.3);
  margin: 15px auto;
}

.connect-button2:hover,
.claim-button2:hover {
  background: linear-gradient(90deg, #ffc400, #ffdb4d);
  box-shadow: 0 0 18px rgba(255, 196, 0, 0.5);
  transform: translateY(-2px);
}

.invite-list-section {
  margin-top: 16px;
}

.invite-summary {
  font-size: 16px;
  font-weight: bold;
  color: #ffd700;
  margin-bottom: 12px;
  text-align: left;
}

.invite-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invite-item {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: #fff;
}

.invite-wallet {
  font-family: monospace;
  color: #ffecb3;
}

.invite-gen {
  color: #ffe066;
}

.invite-reward {
  color: #00e676;
  font-weight: bold;
}

.invite-btn {
  display: flex;
  justify-content: space-between;
  background: transparent;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: #fff;
}

.airdrop-divider {
  width: 100%;
  border: none;
  border-top: 1px solid rgba(255, 196, 0, 0.3);
  margin: 20px 0;
}
.invite-link-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
}

/* 调整原输入框 padding-right，给按钮留空间 */
.invite-link {
  width: 100%;
  padding: 12px 80px 12px 16px; /* ✅ 增加右侧 padding，避免文字被按钮遮住 */
  box-sizing: border-box; /* ✅ 确保 padding 不会撑大宽度 */
}

/* 内嵌复制按钮样式 */
.copy-inside-button {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: linear-gradient(160deg, #ffc400, #c77e00);
  color: #1b0c04;
  border: none;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(255, 196, 0, 0.3);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.copy-inside-button:hover {
  background: linear-gradient(90deg, #ffc400, #ffdb4d);
  box-shadow: 0 0 10px rgba(255, 196, 0, 0.5);
  transform: translateY(-50%) scale(1.05);
}

