/* ============================================
   SHAREENV - Clean Design
   ============================================ */

@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/fira-sans-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/fira-sans-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/fira-sans-600.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-mono-400.woff2') format('woff2');
}

:root {
  /* The blue - matches logo exactly */
  --blue: rgba(17, 0, 198, 0.97);
  --blue-light: rgba(17, 0, 198, 0.85);
  --blue-dark: rgba(12, 0, 160, 0.97);

  /* Grays - refined with subtle cool undertones */
  --gray-bg: #e9eaeb;
  --gray-light: #f3f4f5;
  --color-card: #ffffff;

  /* Text - warmer blacks, cooler muted tones */
  --color-text: #1a1a1c;
  --color-text-secondary: #3d3d42;
  --color-text-muted: #8b8b92;
  --color-text-hint: #9d9da3;
  --color-text-disabled: #87878d;

  /* Border - subtle cool gray */
  --color-border: #d8d9db;
  --color-disabled: #d5d6d8;

  /* Shadows - subtle border-shadow pattern */
  --shadow-border:
    0px 0px 0px 1px rgba(0, 0, 0, 0.06),
    0px 1px 2px -1px rgba(0, 0, 0, 0.06),
    0px 2px 4px 0px rgba(0, 0, 0, 0.04);
  --shadow-border-hover:
    0px 0px 0px 1px rgba(0, 0, 0, 0.08),
    0px 1px 2px -1px rgba(0, 0, 0, 0.08),
    0px 2px 4px 0px rgba(0, 0, 0, 0.06);

  /* Timing */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --duration-fast: 150ms;

  --font-sans: 'Fira Sans', -apple-system, sans-serif;
  --font-mono: 'DM Mono', monospace;

  /* Greens from Vercel Geist (vercel.com/geist/vercel-brand.css), light mode.
     sRGB here is only the fallback; the oklch values below are the real ones.
     oklch is wide-gamut by definition, so a P3 display gets the full chroma
     without a separate display-p3 branch. green-700 is omitted: it is the
     punchier step but only reaches 2.88:1 on the green-100 chip, under the
     3:1 WCAG minimum for a UI component. */
  --green-100: #ecfdec;
  --green-400: #b9f5bc;
  --green-900: #107d32;
}
/* The real values. Kept in a @supports block so the sRGB hexes above remain
   the fallback for anything that cannot parse oklch. */
@supports (color: oklch(50% 0.1 150)) {
  :root {
    --green-100: oklch(97.59% 0.0289 145.42);
    --green-400: oklch(91.49% 0.0976 146.24);
    --green-900: oklch(51.75% 0.1453 147.65);
  }
}


/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  background: white;
}

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(140, 140, 160, 0.04), transparent),
    linear-gradient(180deg, #f5f5f6 0%, #eeeeef 100%);
  min-height: calc(100vh - 16px);
  margin: 8px;
  padding: 24px;
  border-radius: 24px;
}

.container {
  max-width: 520px;
  margin: 0 auto;
}

/* Header */
.header {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-card);
  padding: 5px 16px 5px 5px;
  border-radius: 16px;
  box-shadow: var(--shadow-border);
  text-decoration: none;
  color: inherit;
}

.header__logo {
  width: 52px;
  height: 52px;
  background: #1808C8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px 1px 2px 1px;
}

.header__logo-inner {
  width: 100%;
  height: 100%;
  background: #1100FF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}

.header__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header__name {
  font-size: 32px;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 20px;
}

.hero__title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* Card */
.card {
  background: var(--color-card);
  border-radius: 36px;
  padding: 4px;
  box-shadow: var(--shadow-border);
}

/* Drop Zone */
.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--gray-light);
  border: 1px solid var(--color-border);
  border-radius: 32px;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.drop-zone:hover {
  background: #eaebec;
  border-color: #c0c1c4;
}

.drop-zone.drag-over {
  background: rgba(17, 0, 198, 0.04);
  border-color: var(--blue);
}

.drop-zone__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.drop-zone__text {
  font-size: 22px;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.drop-zone__hint {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Secure Paste Zone */
.paste-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: var(--gray-light);
  border: 1px solid var(--color-border);
  border-radius: 32px;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
  position: relative;
}

.paste-zone:hover {
  background: #eaebec;
  border-color: #c0c1c4;
}

.paste-zone:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(17, 0, 198, 0.1);
}

.paste-zone.drag-over {
  background: rgba(17, 0, 198, 0.04);
  border-color: var(--blue);
}

.paste-zone.has-content {
  cursor: default;
  background: var(--color-card);
  min-height: auto;
}

.paste-zone.has-content:hover {
  background: var(--color-card);
  border-color: var(--color-border);
}

.paste-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
}

.paste-zone__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.paste-zone__text {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.paste-zone__hint {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-muted);
  background: rgba(0, 0, 0, 0.04);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Paste Result - Metadata Display */
.paste-result {
  width: 100%;
  padding: 20px 24px;
}

/* Header row with title and clear button */
.paste-result__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.paste-result__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.paste-result__check {
  width: 18px;
  height: 18px;
  color: var(--green-900);
  flex-shrink: 0;
}

.paste-result__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
}

/* Metadata line */
.paste-result__meta {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 2px;
  margin-bottom: 0;
}

.paste-result__meta-line {
  display: inline;
}

.paste-result__meta-extra {
  color: var(--color-text-hint);
}

.paste-result__meta-extra::before {
  content: ' · ';
}

/* ============================================
   REVIEW TABLE
   A scannable outline, not a flat list: prose comments become section
   headings, blank lines become the gaps between groups, and every value is
   masked at a fixed width so nothing leaks its length.
   ============================================ */

.review {
  margin-top: 14px;
  padding-top: 4px;
  border-top: 1px solid var(--color-border);
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  text-align: left;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  padding-bottom: 2px;
}

.review::-webkit-scrollbar {
  width: 4px;
}

.review::-webkit-scrollbar-track {
  background: transparent;
}

.review::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}

.review::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-hint);
}

.review.is-scrollable {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent 100%);
}

/* Section heading from a prose comment */
.review__label {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text-hint);
  padding: 14px 8px 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.review__label:first-child {
  padding-top: 6px;
}

/* A blank line is a gap, not a row */
.review__spacer {
  height: 9px;
}
.review__spacer + .review__spacer {
  height: 0;
}

.review__row {
  display: grid;
  grid-template-columns: 22px minmax(0, 200px) minmax(0, 1fr) auto 52px;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding: 0 8px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: default;
  transition: background-color 0.1s ease;
}

.review__row:hover {
  background: var(--gray-light);
}

.review__row.is-focused {
  background: var(--gray-light);
}

/* Include / exclude control */
.review__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--green-100);
  /* green-700 is the punchiest step but lands at 2.88:1 on this chip, under
     the 3:1 WCAG minimum for a UI component. green-900 gives 4.92:1. */
  color: var(--green-900);
  cursor: pointer;
  transition: background-color 0.1s ease, color 0.1s ease;
}


.review__toggle .icon {
  width: 12px;
  height: 12px;
}

.review__toggle:hover {
  background: var(--green-400);
}

.review__row.is-excluded .review__toggle {
  background: var(--gray-light);
  color: var(--color-text-hint);
  border-color: var(--color-border);
}

.review__row.is-excluded .review__toggle:hover {
  color: var(--color-text-secondary);
}

.review__toggle.is-static {
  background: transparent;
  cursor: default;
}

.review__key {
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  /* middleTruncate() already fits the text; a CSS ellipsis on top of it
     yields "NEXT_PUBLIC_CL…BLISHABL..." — truncated twice, once badly. */
  text-overflow: clip;
}

.review__key.is-anon {
  color: var(--color-text-hint);
  font-style: italic;
}

.review__row.is-excluded .review__key {
  color: var(--color-text-hint);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

/* Fixed-width mask. Never ellipsised: a clipped mask reads as a rendering
   bug and makes rows look inconsistent for no reason. */
.review__value {
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.review__value.is-masked {
  letter-spacing: 2px;
  font-size: 10px;
  color: #b9b9c0;
  overflow: visible;
}

.review__value.is-revealed {
  color: var(--color-text-secondary);
  user-select: all;
}

.review__row.is-excluded .review__value {
  opacity: 0.45;
}

/* State chip */
.review__chip {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0 6px;
  line-height: 16px;
  border-radius: 4px;
}

.review__chip.is-off {
  color: var(--color-text-hint);
  background: var(--gray-light);
}

.review__chip.is-info {
  color: #92400e;
  background: rgba(245, 158, 11, 0.14);
}

/* Action slot is always present so hover never reflows the row */
.review__acts {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.1s ease;
}

.review__row:hover .review__acts,
.review__row.is-focused .review__acts,
.review__acts:focus-within {
  opacity: 1;
}

.review__act {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  padding: 0;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.1s ease, color 0.1s ease;
}

.review__act .icon {
  width: 14px;
  height: 14px;
}

.review__act:hover {
  color: var(--blue);
  background: rgba(17, 0, 198, 0.08);
}

.review__act:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.review__edit {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 6px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: var(--color-card);
  color: var(--color-text);
}

/* Note for lines excluded by default */
.review__note {
  font-size: 11.5px;
  color: #92400e;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 6px;
  padding: 7px 10px;
  margin: 10px 0 0;
}

.review__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--color-border);
}

.review__showall {
  font-size: 12px;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.review__showall:hover {
  color: var(--blue);
}

.review__hint {
  font-size: 11px;
  color: var(--color-text-hint);
  display: flex;
  align-items: center;
  gap: 4px;
}

.review__hint kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-text-muted);
  background: var(--gray-light);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1px 4px;
  margin-left: 6px;
}

.review__hint kbd:first-child {
  margin-left: 0;
}

/* Opt-in retained copy */
.keep-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px 0;
  font-size: 13px;
  color: var(--color-text-muted);
  cursor: pointer;
}

.send-another {
  display: block;
  width: 100%;
  margin-top: 16px;
}

.kept__body {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.kept__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin: 0 0 6px;
}

.kept__content {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text);
  background: var(--gray-light);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0;
  max-height: 200px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.kept__note {
  font-size: 11px;
  color: var(--color-text-hint);
  margin: 6px 0 0;
}

/* Consequence copy at the burn decision */
.reveal-warning {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  background: var(--gray-light);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0 0 14px;
}

.secret-download {
  margin-top: 10px;
}

.btn--clear {
  background: var(--gray-light);
  color: var(--color-text-secondary);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  transition: background var(--duration-fast) var(--ease-out);
}

.btn--clear:hover {
  background: #e0e1e3;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* Form */
.form-group {
  padding: 0 16px;
}

textarea {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-card);
  border: none;
  border-radius: 16px;
  padding: 20px 24px;
  min-height: 140px;
  resize: none;
  box-shadow: var(--shadow-border);
  transition: box-shadow var(--duration-fast) var(--ease-out);
}

textarea:focus {
  outline: none;
  box-shadow: var(--shadow-border-hover);
}

textarea::placeholder {
  color: var(--color-text-muted);
}

input[type="password"] {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-card);
  border: none;
  border-radius: 16px;
  padding: 16px 24px;
  box-shadow: var(--shadow-border);
  transition: box-shadow var(--duration-fast) var(--ease-out);
}

input[type="password"]:focus {
  outline: none;
  box-shadow: var(--shadow-border-hover);
}

input::placeholder {
  color: var(--color-text-muted);
}

/* Card Footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-bg);
  padding: 14px 20px;
  margin: 16px -4px -4px -4px;
  border-radius: 0 0 36px 36px;
}

.expires-control {
  display: flex;
  align-items: center;
  background: var(--color-card);
  border-radius: 16px;
  box-shadow: var(--shadow-border);
  padding: 0 4px 0 12px;
}

.expires-text {
  font-size: 13px;
  color: var(--color-text-muted);
}

select {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  background: transparent;
  border: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 24px 8px 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238b8b92' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

select:focus {
  outline: none;
}

.expires-label,
.hidden-checkbox,
.hidden {
  display: none !important;
}

/* Button */
.btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--blue);
  color: white;
  padding: 10px 18px;
  border-radius: 16px;
  transition: background var(--duration-fast) var(--ease-out);
}

.btn--primary:hover:not(:disabled) {
  background: var(--blue-dark);
}

.btn--primary:disabled {
  background: var(--color-disabled);
  color: var(--color-text-disabled);
  cursor: not-allowed;
}

.btn--secondary {
  font-size: 14px;
  background: var(--gray-light);
  color: var(--color-text-secondary);
  padding: 10px 16px;
  border-radius: 12px;
  transition: background var(--duration-fast) var(--ease-out);
}

.btn--secondary:hover:not(:disabled) {
  background: #e5e6e8;
}

.btn--secondary:disabled {
  background: var(--gray-light);
  color: var(--color-text-muted);
  cursor: default;
}

.btn--full-width {
  width: 100%;
  padding: 14px 24px;
}

/* ============================================
   Result Card - Minimal Elegant Redesign
   ============================================ */

.result-card {
  background: var(--color-card);
  border-radius: 20px;
  margin-top: 16px;
  box-shadow: var(--shadow-border);
  overflow: hidden;
}

.result-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--color-border);
}

.result-header__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.result-header__subtitle {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Credentials container */
.credentials {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Individual credential */
.cred {
  padding: 14px;
  background: var(--gray-light);
  border-radius: 12px;
}


/* Header row */
.cred__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.cred__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.cred__via {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Copy button */
.cred__copy {
  margin-left: auto;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-card);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.cred__copy:hover {
  background: #e8e9eb;
  color: var(--color-text);
}

/* Value display */
.cred__value {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text);
  background: var(--color-card);
  border-radius: 8px;
  padding: 10px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Legacy form classes kept for compatibility */
.form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.form-hint {
  font-size: 13px;
  color: var(--color-text-hint);
  margin-bottom: 8px;
}

/* Notice */
.notice {
  border-radius: 12px;
  padding: 16px;
  font-size: 14px;
}

.notice--warning {
  background: rgba(17, 0, 198, 0.06);
  color: var(--color-text-secondary);
}

.notice--warning strong {
  color: var(--blue);
}

.notice--danger {
  background: #fef2f2;
  color: #dc2626;
}

/* Reveal */
.reveal-container {
  padding: 40px 24px 32px;
  text-align: center;
}

.reveal-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.reveal-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.reveal-input-group {
  margin-bottom: 20px;
}

.reveal-input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-text);
  background: var(--gray-light);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.reveal-input:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(17, 0, 198, 0.1);
}

.reveal-input::placeholder {
  color: var(--color-text-muted);
}

.reveal-error {
  font-size: 13px;
  color: #dc2626;
  margin-top: 10px;
}

.reveal-btn {
  margin-bottom: 16px;
}

.reveal-info {
  font-size: 12px;
  color: var(--color-text-hint);
}

/* Success State - Secret Viewer */
.success-container {
  padding: 32px 24px 24px;
}

/* Secret box */
.secret-box {
  background: #f3f4f5;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.secret-display {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text);
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 180px;
  overflow-y: auto;
  text-align: left;
}

.secret-display.revealed {
  color: var(--color-text);
}

/* Action bar */
.secret-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.secret-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  background: #ffffff;
  border: 1px solid #d8d9db;
  border-radius: 10px;
  cursor: pointer;
  color: #1a1a1c;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
}

.secret-action-btn svg {
  width: 16px;
  height: 16px;
}

.secret-action-btn:hover {
  background: #f5f5f6;
}

.secret-action-btn:active {
  background: #eeeeef;
}

.secret-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* Metadata - understated */
.secret-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 6px;
}

/* Status - subtle, no garish green */
.secret-status {
  font-size: 13px;
  color: var(--color-text-hint);
  text-align: center;
  margin-bottom: 32px;
}

/* Divider before share link */
.success-divider {
  height: 1px;
  background: var(--color-border);
  margin: 0 -24px 24px;
}

/* Share CTA - prominent but refined */
.share-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: 18px 24px;
  background: var(--gray-light);
  border: none;
  border-radius: 16px;
  transition: background 100ms var(--ease-out);
}

.share-link:hover {
  background: #e8e9eb;
}

.share-link:active {
  background: #e0e1e3;
}

/* Error */
.error-card {
  text-align: center;
  padding: 40px 24px;
}

.error-card__title {
  font-size: 18px;
  font-weight: 500;
  color: #dc2626;
  margin-bottom: 8px;
}

.error-card__text {
  font-size: 15px;
  color: var(--color-text-secondary);
}

/* FAQ Section */
.faq-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.faq-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--color-card);
  border-radius: 12px;
  box-shadow: var(--shadow-border);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  transition: background var(--duration-fast) var(--ease-out);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: transform var(--duration-fast) var(--ease-out);
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-question:hover {
  background: var(--gray-light);
}

.faq-answer {
  padding: 0 18px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.faq-answer a {
  color: var(--blue);
  text-decoration: none;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  margin: 24px auto 0;
  font-size: 13px;
  color: #9d9da3;
  text-align: center;
}

footer a {
  color: #87878d;
  text-decoration: none;
}

footer a:hover {
  color: var(--color-text-secondary);
}

/* Hidden */
.security-advisory {
  display: none !important;
}

.file-input-hidden {
  display: none;
}

.mt-16 {
  margin-top: 16px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-24 {
  margin-top: 24px;
}

/* Privacy Warning - Understated, professional */
.privacy-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  padding: 8px 0;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.privacy-warning__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.5;
}

.privacy-warning strong {
  font-weight: 500;
  color: var(--color-text-secondary);
}

.privacy-warning kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-text-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Responsive */
@media (max-width: 768px) {
  .privacy-warning,
  .desktop-only {
    display: none !important;
  }

  body {
    padding: 16px;
  }

  .header__logo {
    width: 46px;
    height: 42px;
  }

  .header__name {
    font-size: 24px;
  }

  .drop-zone {
    padding: 32px 20px;
  }

  .drop-zone__icon {
    width: 32px;
    height: 32px;
  }

  .drop-zone__text {
    font-size: 18px;
  }

  .drop-zone__hint {
    font-size: 13px;
  }

  .divider {
    font-size: 12px;
  }

  .btn {
    font-size: 18px;
  }

  .link-box {
    flex-direction: column;
  }

  .btn--secondary {
    width: 100%;
  }
}
