@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, #f6fbff 0%, #e9f3ff 52%, #dcecff 100%);
  color: rgba(16, 36, 68, 0.94);
}

.page {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.card {
  width: min(92vw, 560px);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 45px rgba(38, 110, 220, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card-inner {
  padding: 28px 26px;
}

.title {
  margin: 0 0 8px;
  font-size: clamp(20px, 3.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0 0 14px;
  font-size: 14px;
  opacity: 0.85;
}

.label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  opacity: 0.9;
}

.input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(178, 205, 255, 0.7);
  background: rgba(255, 255, 255, 0.9);
  color: rgba(16, 36, 68, 0.94);
  outline: none;
  font-size: 15px;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.input:focus {
  border-color: rgba(92, 145, 240, 0.95);
  background: #ffffff;
}

.input.input-error {
  border-color: rgba(185, 32, 83, 0.9);
  background: rgba(255, 226, 236, 0.85);
}

.actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #4f89ff 0%, #2b69df 100%);
  box-shadow: 0 10px 25px rgba(43, 105, 223, 0.24);
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #5d92ff 0%, #2f72f0 100%);
}

.button:active {
  transform: translateY(0);
}

.button.ghost {
  color: rgba(16, 36, 68, 0.94);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(178, 205, 255, 0.75);
  text-decoration: none;
}

.button.danger {
  background: linear-gradient(135deg, #ff5b73 0%, #e24267 100%);
  color: #fff;
}

.error {
  margin: 8px 0 0;
  color: rgba(128, 0, 60, 0.95);
  font-size: 12px;
  font-weight: 500;
}

.status {
  margin: 12px 0 0;
  font-size: 13px;
  opacity: 0.8;
}

.link-area {
  margin-top: 16px;
}

.link-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

.link-label {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.9;
}

.link {
  color: rgba(27, 74, 170, 0.95);
  text-decoration: underline;
  word-break: break-all;
}

.hint {
  margin: 8px 0 0;
  font-size: 13px;
  opacity: 0.8;
}

.shared-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(178, 205, 255, 0.75);
  font-size: 12px;
  font-weight: 600;
  opacity: 0.95;
}

.countdown {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
}

.messages {
  margin-top: 14px;
  max-height: 280px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
}

.message {
  margin: 0;
  padding: 12px 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(178, 205, 255, 0.68);
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.message-meta {
  margin: 0 0 6px;
  font-size: 12px;
  opacity: 0.7;
}

.search-area {
  margin-top: 14px;
}

.results {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.result-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(178, 205, 255, 0.68);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(22, 49, 94, 0.24);
}

.modal[hidden] {
  display: none;
}

.modal-content {
  width: min(92vw, 460px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(178, 205, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px;
}

.modal-title {
  margin: 0 0 14px;
}

@media (max-width: 380px) {
  .card-inner {
    padding: 22px 18px;
  }
}

