/* GriGsi Share – design from GriGsi Community */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #000;
}

.popup-box, .confirm-section, .main-box {
  position: relative;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  padding: 24px;
  width: 360px;
  max-width: 96vw;
  margin: 0 auto;
}

.close-x, #close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: #FFC64B;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  line-height: 32px;
  color: #000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.close-x:hover, #close-btn:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

#title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #8177F0;
}

#subtitle, .label {
  font-size: 16px;
  margin-bottom: 10px;
  color: #555;
  line-height: 1.4;
}

.section {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  background: #fafafa;
  text-align: left;
}

.section-title {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

#buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

#buttons button, .btn {
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.15s ease, opacity 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

#buttons button:hover, .btn:hover {
  transform: scale(1.02);
  opacity: 0.95;
}

.btn-green { background: #7CD17B; }
.btn-cyan { background: #4FC0E6; }
.btn-purple { background: #8177F0; }
.btn-yellow { background: #FFC64B; color: #000; }
.btn-red { background: #FF7E70; }

input[type="text"], input[type="password"], textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 8px;
  box-sizing: border-box;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #8177F0;
}

.link-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.link-display {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  font-size: 12px;
  font-family: monospace;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  background: #f9f9f9;
  color: #333;
  word-break: break-all;
}

.copy-btn {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: #8177F0;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.copy-btn:hover { opacity: 0.9; }
.copy-btn.copied { background: #7CD17B; }

.mode-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  margin-left: 8px;
}

.mode-paid { background: #7CD17B; color: #fff; }
.mode-ad { background: #FFC64B; color: #000; }

.error { color: #FF7E70; font-size: 13px; margin-top: 8px; }
.ok { color: #7CD17B; font-size: 13px; margin-top: 8px; }
