:root {
  --bg: #ffffff;
  --text: #1b2433;
  --muted: #5f6f86;
  --card: #0f1726;
  --border: #2d3b56;
  --accent: #67f4cc;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 56px 20px;
}

.header {
  width: 97%;
  margin: 0 auto;
  border: 1.4px dashed var(--border);
  border-radius: 4px;
  background: #ffffff;
  padding: 8px 10px;
}

.header-row {
  display: flex;
  align-items: center;
}

.header-image {
  width: 28px;
  height: 28px;
  margin-left: 8px;
  border-radius: 10px;
  object-fit: cover;
  border: none;
}

.url-link {
  flex: 1;
  margin: 0 18px;
  color: #000000;
  font-size: 1.08rem;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.url-link:hover {
  color: #000000;
}

.copy-btn {
  border: none;
  background: transparent;
  color: #000000;
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.copy-btn:hover {
  color: #000000;
}

.copy-icon {
  display: block;
  width: 30px;
  height: 30px;
}

.copy-icon-copy {
  transform: scaleX(-1);
}

.copy-icon-check {
  display: none;
}

.copy-btn.copied .copy-icon-copy {
  display: none;
}

.copy-btn.copied .copy-icon-check {
  display: block;
}

.photo-card {
  margin-top: 18px;
  border: none;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.photo-view {
  display: block;
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  background: #ffffff;
}

.loading-progress {
  --reveal-pct: 0%;
  clip-path: inset(0 0 calc(100% - var(--reveal-pct)) 0);
}

.terms-card {
  margin-top: 14px;
  padding: 14px 16px;
  border: none;
  border-radius: 14px;
  background: #ffffff;
}

.terms-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.48;
}

@media (max-width: 640px) {
  .page {
    padding: 18px 40px 18px;
  }

  .header-row {
    display: grid;
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
    gap: 6px;
  }

  .header-image {
    width: 28px;
    height: 28px;
    margin-left: 6px;
    grid-row: span 2;
  }

  .copy-btn {
    grid-column: 2;
    justify-self: start;
    height: 38px;
    width: 38px;
  }

  .url-link {
    margin: 0;
    font-size: 1rem;
    text-align: left;
  }

  .photo-view {
    max-height: 78vh;
  }
}
