:root{
  --bg: #08090b;
  --bg-card: #111216;
  --bg-inset: #0c0d10;
  --border: #212226;
  --border-hover: #2c2e34;
  --text-primary: #f2f2f4;
  --text-secondary: #8d8e96;
  --text-tertiary: #55565e;
  --accent: #3fe0c5;
  --accent-dim: #2a9d8a;
  --accent-glow: rgba(63,224,197,0.14);
  --violet: #8b7cf6;
  --radius: 14px;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--border-hover) transparent;
}

/* Custom Themed Scrollbar (Chrome, Safari, Edge, Opera) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 999px;
  transition: background 0.15s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

::-webkit-scrollbar-thumb:active {
  background: var(--accent-dim);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

button, input, select, textarea {
  font-family: inherit;
}

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

body{
  background:
    radial-gradient(1100px 500px at 15% -10%, rgba(63,224,197,0.06), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(139,124,246,0.05), transparent 55%),
    var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  display:flex;
  flex-direction:column;
}

.mono{ font-family:'JetBrains Mono', monospace; }

/* ---------- Nav ---------- */
nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 28px 40px;
  max-width: 1120px;
  width:100%;
  margin: 0 auto;
}
.logo{
  font-family:'JetBrains Mono', monospace;
  font-weight:600;
  font-size:26px;
  letter-spacing:-0.02em;
  display:flex;
  align-items:center;
  gap:8px;
  cursor: pointer;

}
.logo .bracket{ color: var(--accent); }

.logo a{
  text-decoration: none;
  color: inherit;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:20px;
}
.nav-link{
  font-size:13px;
  color: var(--text-secondary);
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:6px;
  transition: color .15s ease;
}
.nav-link:hover, .nav-link.active{ color: var(--text-primary); }
.nav-link.active {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Hero ---------- */
header.hero{
  text-align:center;
  padding: 44px 24px 40px;
  max-width: 640px;
  margin: 0 auto;
}
.eyebrow{
  font-family:'JetBrains Mono', monospace;
  font-size:11.5px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color: var(--accent);
  margin-bottom:18px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.eyebrow::before{
  content:'';
  width:6px; height:6px;
  border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
h1{
  font-size: clamp(30px, 4.4vw, 42px);
  font-weight: 700;
  letter-spacing:-0.03em;
  line-height:1.12;
  color: var(--text-primary);
}
h1 .em{
  background-color: #5FA8A8;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.sub{
  margin-top:14px;
  font-size:15.5px;
  color: var(--text-secondary);
  line-height:1.5;
}

/* ---------- Card ---------- */
main{
  flex:1;
  display:flex;
  justify-content:center;
  padding: 0 20px 80px;
}
.card{
  width:100%;
  max-width: 580px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
  height: fit-content;
}

/* Segmented tabs */
.tabs{
  display:inline-flex;
  background: var(--bg-inset);
  border:1px solid var(--border);
  border-radius: 9px;
  padding: 3px;
  gap:2px;
  margin-bottom: 16px;
}
.tab{
  border:none;
  background:transparent;
  color: var(--text-secondary);
  font-family:'Inter', sans-serif;
  font-size:12.5px;
  font-weight:600;
  padding: 7px 14px;
  border-radius:6px;
  cursor:pointer;
  transition: all .15s ease;
  display:flex; align-items:center; gap:6px;
}
.tab.active{
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 4px 10px -4px rgba(0,0,0,0.5);
}
.tab svg{ width:13px; height:13px; }

/* Message input */
.field-wrap{
  position:relative;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-inset);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field-wrap:focus-within{
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.message-input-container {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 110px;
  max-height: 320px;
  cursor: text;
}

.message-input {
  width: 100%;
  flex: 1;
  min-height: 80px;
  max-height: 220px;
  overflow-y: auto;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  padding: 10px 16px 14px 16px;
  white-space: pre-wrap;
  word-break: break-word;
}

.message-input:empty::before {
  content: attr(data-placeholder);
  color: var(--text-tertiary);
  pointer-events: none;
  display: block;
}

.message-input:focus {
  outline: none;
}

textarea{
  width:100%;
  min-height: 108px;
  resize: vertical;
  background:transparent;
  border:none;
  outline:none;
  color: var(--text-primary);
  font-family:'Inter', sans-serif;
  font-size:14px;
  line-height:1.55;
  padding: 14px 16px;
}
textarea::placeholder{ color: var(--text-tertiary); }

.dropzone{
  display:none;
  min-height:108px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:8px;
  color: var(--text-tertiary);
  font-size:13px;
  cursor:pointer;
  padding:20px;
  text-align:center;
  width: 100%;
}
.dropzone.active{ display:flex; }
.dropzone.has-file { border-color: var(--accent); color: var(--text-primary); }
.dropzone.drag-over { border-color: var(--accent); background: var(--accent-glow); }
.dropzone svg{ width:22px; height:22px; color: var(--text-secondary); }
.dropzone .browse{ color: var(--accent); font-weight:600; }

/* Dedicated File Attachment Pill/Card inside message container */
.file-pill {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin: 10px 14px 4px 14px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  animation: slideUpFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  flex-shrink: 0;
}

.file-pill[style*="inline-flex"],
.file-pill[style*="display: inline-flex"],
.file-pill[style*="display: flex"] {
  display: flex !important;
}

.file-pill-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.file-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(63, 224, 197, 0.25);
  flex-shrink: 0;
}

.file-pill.is-pdf .file-pill-icon {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.file-pill-icon svg {
  width: 15px;
  height: 15px;
}

.file-pill-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.file-pill-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-pill-sub {
  font-size: 11px;
  color: var(--text-tertiary);
}

.file-pill-remove {
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  border-radius: 6px;
  transition: all 0.15s ease;
  flex-shrink: 0;
  margin-left: 8px;
}

.file-pill-remove:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.25);
  transform: scale(1.05);
}

.file-pill-remove svg {
  width: 13px;
  height: 13px;
  color: inherit;
}

.field-wrap.drag-over {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Cipher preview & actions bottom strip */
.cipher-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-top: 1px dashed var(--border);
  min-height: 42px;
  box-sizing: border-box;
}

.cipher-left {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
}

.cipher-left #cipherText {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cipher-strip .lock-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.cipher-strip .lock-icon svg {
  width: 12px;
  height: 12px;
}

/* Input Actions Bar & Attach Button */
.input-actions-bar {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.attach-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.attach-btn:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: var(--accent-glow);
  transform: translateY(-1px);
}

.attach-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.attach-btn-text {
  font-size: 12px;
  line-height: 1;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
  color: var(--text-tertiary);
}
.cipher-strip .lock-icon svg{ width:11px; height:11px; }

/* Options row */
.options{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top: 14px;
}
.opt-pill{
  display:flex;
  align-items:center;
  gap:7px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 11px;
  font-size:12.5px;
  color: var(--text-secondary);
  cursor:pointer;
  transition: border-color .15s ease, color .15s ease;
  user-select:none;
}
.opt-pill:hover{ border-color: var(--border-hover); color: var(--text-primary); }
.opt-pill svg{ width:14px; height:14px; flex-shrink:0; }
.opt-pill.expanded, .opt-pill.active{ border-color: var(--accent-dim); color: var(--text-primary); background: rgba(63,224,197,0.06); }
.opt-pill.has-password{ border-color: var(--violet); background: rgba(139,124,246,0.08); color: var(--text-primary); }

.opt-pill input[type=password], .opt-pill input[type=text]{
  background:transparent;
  border:none;
  outline:none;
  color: var(--text-primary);
  font-family:'JetBrains Mono', monospace;
  font-size:12px;
  width:130px;
}
.opt-pill .pw-inline-box{ display: none; align-items: center; gap: 4px; }
.opt-pill.expanded .pw-inline-box{ display: flex !important; }
.opt-pill.expanded .opt-label{ display:none; }

.opt-eye-btn, .field-eye-btn{
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s ease;
}
.opt-eye-btn:hover, .field-eye-btn:hover{ color: var(--text-primary); }
.opt-eye-btn svg, .field-eye-btn svg{ width: 14px; height: 14px; }

select.expiry{
  background:transparent;
  border:none;
  outline:none;
  color: var(--text-secondary);
  font-family:'Inter', sans-serif;
  font-size:12.5px;
  cursor:pointer;
}
select.expiry option{ background: var(--bg-card); color: var(--text-primary); }

.toggle-track{
  width:26px; height:15px;
  border-radius:20px;
  background: var(--border);
  position:relative;
  transition: background .15s ease;
  flex-shrink:0;
}
.toggle-track.on{ background: var(--accent-dim); }
.toggle-dot{
  width:11px; height:11px;
  border-radius:50%;
  background: var(--text-secondary);
  position:absolute;
  top:2px; left:2px;
  transition: transform .15s ease, background .15s ease;
}
.toggle-track.on .toggle-dot{
  transform: translateX(11px);
  background: var(--bg-card);
}

/* CTA */
.cta{
  width:100%;
  margin-top:16px;
  background: var(--text-primary);
  color: #0a0a0c;
  border:none;
  border-radius:10px;
  padding: 13px;
  font-family:'Inter', sans-serif;
  font-size:14px;
  font-weight:700;
  letter-spacing:-0.01em;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition: transform .1s ease, background .15s ease;
}
.cta:hover{ background:#fff; }
.cta:active{ transform: scale(0.985); }
.cta svg{ width:15px; height:15px; }

.footnote{
  text-align:center;
  font-size:11.5px;
  color: var(--text-tertiary);
  margin-top:14px;
}

/* ---------- Result state ---------- */
.result{
  display:none;
  flex-direction:column;
  gap:14px;
  animation: rise .35s ease;
}
@keyframes rise{ from{ opacity:0; transform: translateY(6px);} to{opacity:1; transform:none;} }
.result.show{ display:flex; }
.card.result-mode .encrypt-form{ display:none; }

.result-header{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
}

.result-icon{
  width:38px; height:38px;
  min-width:38px; min-height:38px;
  max-width:38px; max-height:38px;
  border-radius:10px;
  background: var(--accent-glow);
  border:1px solid rgba(63,224,197,0.25);
  display:flex; align-items:center; justify-content:center;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}
.result-icon svg{ width:18px; height:18px; }
.result-text-block{
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.result-title{ font-size:15.5px; font-weight:700; text-align: left; color: var(--text-primary); line-height: 1.35; }
.result-sub{ font-size:13px; color: var(--text-secondary); margin-top:4px; text-align: left; line-height: 1.5; }

.link-box{
  display:flex;
  align-items:center;
  gap:10px;
  background: var(--bg-inset);
  border:1px solid var(--border);
  border-radius:10px;
  padding: 12px 14px;
}
.link-box .url{
  font-family:'JetBrains Mono', monospace;
  font-size:12.5px;
  color: var(--accent);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  flex:1;
  text-align: left;
}
.copy-btn{
  background: var(--bg-card);
  border:1px solid var(--border);
  color: var(--text-primary);
  font-size:12px;
  font-weight:600;
  padding:7px 10px;
  border-radius:7px;
  cursor:pointer;
  display:flex; align-items:center; gap:6px;
  flex-shrink:0;
  transition: all 0.2s ease;
}
.copy-btn:hover{ border-color: var(--border-hover); }
.copy-btn svg{ width:12px; height:12px; }

/* Steganography Result Download Card */
.steg-download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: border-color 0.15s ease;
}

.steg-download-card:hover {
  border-color: var(--border-hover);
}

.steg-download-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.steg-download-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  background: var(--accent-glow);
  border: 1px solid rgba(63, 224, 197, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.steg-download-icon svg {
  width: 17px;
  height: 17px;
}

.steg-download-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
  text-align: left;
}

.steg-download-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.steg-download-badge {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

.steg-dl-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  color: #08090b !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 7px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.steg-dl-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--accent-glow);
  background: var(--accent);
}

.steg-dl-action-btn:active {
  transform: translateY(0);
}

.steg-dl-action-btn svg {
  width: 14px;
  height: 14px;
}

.meta-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.meta-chip{
  font-size:11.5px;
  color: var(--text-secondary);
  background: var(--bg-inset);
  border:1px solid var(--border);
  padding:6px 10px;
  border-radius:7px;
  display:flex; align-items:center; gap:6px;
}
.meta-chip svg{ width:12px; height:12px; }

.new-btn{
  font-family: inherit;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.new-btn:hover{
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}
.new-btn:active{
  transform: translateY(0);
}

/* File download component styling */
.pdf-download-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
  margin-top: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: left;
}

.pdf-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pdf-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
}

.pdf-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.pdf-dl-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  color: #08090b !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.pdf-dl-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow);
  background: var(--accent);
  color: #08090b !important;
}

.pdf-dl-btn:active {
  transform: translateY(0);
}

/* Decoder Specific Styling */
.decoder-box {
  width: 100%;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-primary);
  overflow-y: auto;
  max-height: 240px;
  word-break: break-all;
  white-space: pre-wrap;
  text-align: left;
}

.result .decrypted-content {
  margin-top: 0;
  padding: 14px 16px;
}

.result .decrypted-content.has-file {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 320px;
  padding: 12px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.result .decrypted-content.has-file .pdf-download-container {
  flex-shrink: 0;
  width: 100%;
  margin-bottom: 0;
}

.decrypted-text {
  flex: 1;
  min-height: 0;
  max-height: 180px;
  overflow-y: auto;
  margin-top: 10px;
  padding-top: 10px;
  padding-right: 6px;
  border-top: 1px dashed var(--border);
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

/* Decoder States & Unlocking */
.state-card {
  display: flex;
  flex-direction: column;
  animation: rise .35s ease;
}

.pw-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-eye-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s ease;
}
.field-eye-btn:hover {
  color: var(--text-primary);
}
.field-eye-btn svg {
  width: 17px;
  height: 17px;
}

.unlock-error {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  color: #f87171;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.spinner-ring {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(63, 224, 197, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 8px auto 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Result and Prompt Icon Variations */
.result-icon.lock-mode {
  background: rgba(139, 124, 246, 0.15);
  border-color: rgba(139, 124, 246, 0.3);
  color: var(--violet);
}

.result-icon.flame-mode {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.result-icon.destroyed-mode {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.result-icon.unlocked-mode {
  background: var(--accent-glow);
  border-color: rgba(63, 224, 197, 0.3);
  color: var(--accent);
}

.burn-chip-badge {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}

.cta.burn-cta {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}
.cta.burn-cta:hover {
  background: linear-gradient(135deg, #fbbf24, #f87171);
}

@media (max-width: 480px){
  nav{ padding: 20px; }
  .options{ gap:6px; }
  .card{ padding:16px; }
}

[hidden] {
  display: none !important;
}

/* Steganography Specific Layout (Cover card + Secret message card) */
#stegEncryptWrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.steg-cover-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.steg-cover-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

.steg-cover-card.drag-over {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.steg-cover-card.has-file {
  border-color: rgba(245, 158, 11, 0.6);
}

.steg-cover-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.steg-cover-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.steg-cover-icon svg {
  width: 22px;
  height: 22px;
}

.steg-cover-text {
  min-width: 0;
  flex: 1;
}

.steg-cover-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.steg-cover-formats {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-secondary);
}

.steg-cover-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.steg-sample-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 14px;
}

.steg-sample-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #fbbf24;
}

/* Steganography Secret Message Card (Bottom) */
.steg-message-card {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.steg-message-card:focus-within {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.steg-textarea {
  width: 100%;
  min-height: 110px;
  max-height: 320px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  outline: none;
  resize: vertical;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.steg-textarea::placeholder {
  color: var(--text-tertiary);
}

.steg-footer-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.18);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: #6b7280;
}

.steg-footer-left {
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.steg-footer-right {
  white-space: nowrap;
  color: #9ca3af;
  margin-left: 8px;
}
