/* =============================================
   LuxTool — /paste/paste.css
   All styling unique to the Lux Paste tool: the paste/share
   panel, personal-code setup modal, the global Inbox overlay
   (shared with the homepage's "View Inbox" banner), and the
   page's SEO content section. Site chrome and generic shared
   building blocks (.panel, .form-group, .btn, .modal, .badge
   etc.) come from /style.css, which this page also loads.
   ============================================= */

/* ── HERO ── the title/tagline/description/highlight block at the top of
   the page. Scoped to #page-paste (and loaded after the shared
   /style.css) so these win without touching the base .hero/.tagline
   rules other tool pages rely on. */
#page-paste .hero {
  max-width: 640px;
  margin: 0 auto 2.6rem;
  padding: 2.6rem 1.25rem 0;
  text-align: center;
}

#page-paste .hero h1 {
  margin: 0;
  font-family: 'Cinzel Decorative', serif;
  font-size: 3.35rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  background: linear-gradient(180deg, #fff7cc 0%, #facc15 46%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 18px rgba(245, 158, 11, .2));
}

#page-paste .hero .tagline {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: .85rem 0 1.35rem;
  padding: .38rem 1.05rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(251, 191, 36, .07);
  border: 1px solid rgba(251, 191, 36, .28);
  border-radius: 2rem;
}

#page-paste .hero .lp-hero-desc {
  max-width: 480px;
  margin: 0 auto 1.75rem;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.75;
}

#page-paste .hero .lp-hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
}

#page-paste .hero .lp-hero-highlights span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.05rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(15, 23, 42, .5);
  border: 1px solid rgba(251, 191, 36, .2);
  border-radius: 2rem;
  backdrop-filter: blur(6px);
  transition: .25s;
}

#page-paste .hero .lp-hero-highlights span:hover {
  border-color: var(--gold);
  background: rgba(251, 191, 36, .09);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  #page-paste .hero {
    padding-top: 1.8rem;
    margin-bottom: 2rem;
  }

  #page-paste .hero h1 {
    font-size: 2.55rem;
  }
}

.upload-cancel-btn {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .74rem;
  font-weight: 700;
  padding: .28rem .7rem;
  border-radius: .5rem;
  border: 1px solid rgba(248, 113, 113, .35);
  background: rgba(248, 113, 113, .1);
  color: #f87171;
  transition: .2s
}

.upload-cancel-btn:hover {
  background: rgba(248, 113, 113, .2);
  border-color: #f87171
}

/* ── PASTE SPECIFIC ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.history-btn {
  /* Removed fixed positioning to keep button in normal document flow */
  /* position:fixed;top:calc(var(--nav-h) + .6rem);left:1rem;z-index:101; */
  display: inline-block;
  /* Ensure margins apply correctly */
  margin-top: .6rem;
  /* Adjust for visual placement within flow */
  margin-left: 1rem;
  /* Adjust for visual placement within flow */
  padding: .35rem .8rem;
  font-size: .8rem;
  background: rgba(251, 191, 36, .12);
  color: var(--text);
  border: 1px solid var(--gold-dim);
  border-radius: .6rem;
  cursor: pointer;
  transition: .25s;
  font-family: inherit;
}

.history-btn:hover {
  background: rgba(251, 191, 36, .25)
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
}

.modal.show {
  opacity: 1;
  pointer-events: auto
}

.modal-content {
  background: rgba(15, 23, 42, .97);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 1.4rem;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem
}

.modal h3 {
  font-size: 1.1rem;
  color: var(--text)
}

.close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(251, 191, 36, .1);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .25s;
}

.close-btn:hover {
  background: rgba(251, 191, 36, .25);
  transform: rotate(90deg)
}

/* ── Manual IP Exchange fallback (WebRTC/mDNS troubleshooter) ── */
.ip-fallback-content {
  max-width: 560px;
}

.ip-fallback-explain {
  color: #fca5a5;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: .5rem;
}

.ip-fallback-sub {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

.ip-fallback-sub strong {
  color: var(--text);
}

.ip-fallback-os-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .7rem;
  margin-bottom: 1.3rem;
}

.ip-fallback-os-block {
  background: rgba(30, 41, 59, .4);
  border: 1px solid var(--border);
  border-radius: .6rem;
  padding: .75rem .9rem;
}

.ip-fallback-os-block h4 {
  font-size: .82rem;
  color: var(--gold);
  margin-bottom: .4rem;
}

.ip-fallback-os-block ul {
  margin: 0;
  padding-left: 1.1rem;
}

.ip-fallback-os-block li {
  font-size: .76rem;
  color: var(--text);
  line-height: 1.55;
}

.ip-fallback-os-block code {
  background: rgba(251, 191, 36, .12);
  padding: .1rem .35rem;
  border-radius: .3rem;
  font-size: .76rem;
  color: #fbbf24;
}

.ip-fallback-input-group {
  margin-bottom: .8rem;
}

.ip-fallback-warning {
  margin-top: 1rem;
  padding: .7rem .9rem;
  background: rgba(251, 191, 36, .1);
  border: 1px solid var(--gold-dim);
  border-radius: .6rem;
  color: #fcd34d;
  font-size: .78rem;
  line-height: 1.55;
}

.ip-fallback-trigger {
  display: block;
  width: 100%;
  margin-top: .5rem;
  padding: .5rem .7rem;
  font-size: .78rem;
  text-align: center;
  background: rgba(248, 113, 113, .1);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, .3);
  border-radius: .6rem;
  cursor: pointer;
  transition: .2s;
  font-family: inherit;
}

.ip-fallback-trigger:hover {
  background: rgba(248, 113, 113, .2);
}

.ip-fallback-trigger.hidden {
  display: none;
}

.ip-autofix-consent {
  margin-top: .8rem;
  padding: .8rem .95rem;
  background: rgba(52, 211, 153, .08);
  border: 1px solid rgba(52, 211, 153, .3);
  border-radius: .6rem;
}

.ip-autofix-consent p {
  color: var(--text);
  font-size: .85rem;
  line-height: 1.55;
  margin: 0 0 .7rem;
}

.ip-autofix-consent code {
  background: rgba(251, 191, 36, .14);
  padding: .1rem .4rem;
  border-radius: .3rem;
  color: #fbbf24;
  font-weight: 600;
}

.ip-autofix-consent-actions {
  display: flex;
  gap: .6rem;
}

.ip-autofix-consent-actions .lux-btn {
  flex: 1;
  padding: .5rem .7rem;
  font-size: .85rem;
}

.ip-autofix-consent.hidden {
  display: none;
}

.ip-fallback-manual {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: .8rem;
}

.ip-fallback-manual summary {
  cursor: pointer;
  color: var(--muted);
  font-size: .82rem;
  user-select: none;
}

.ip-fallback-manual summary:hover {
  color: var(--text);
}

.ip-fallback-manual[open] summary {
  margin-bottom: .8rem;
}

.ip-fallback-saved-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin: -.4rem 0 .8rem;
  padding: .5rem .7rem;
  background: rgba(96, 165, 250, .08);
  border: 1px solid rgba(96, 165, 250, .25);
  border-radius: .5rem;
  font-size: .78rem;
  color: #93c5fd;
}

.ip-fallback-saved-hint.hidden {
  display: none;
}

.ip-fallback-saved-hint #ip-fallback-forget-btn {
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(248, 113, 113, .35);
  color: #fca5a5;
  border-radius: .4rem;
  padding: .25rem .55rem;
  font-size: .74rem;
  cursor: pointer;
  font-family: inherit;
}

.ip-fallback-saved-hint #ip-fallback-forget-btn:hover {
  background: rgba(248, 113, 113, .15);
}

/* The transfer workspace stays full width. On very wide screens the
   individual cards keep a comfortable working width and spread evenly. */
#page-paste .container {
  width: 100%;
  max-width: none;
}

.cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.75rem
}

@media (max-width: 600px) {
  #page-paste .cards-wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 860px) {
  .cards-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem
  }
}

@media (min-width: 1500px) {
  #page-paste .cards-wrapper {
    grid-template-columns: repeat(2, minmax(480px, 640px));
    justify-content: center;
    gap: 2.25rem;
  }
}

.lux-card {
  background: rgba(15, 23, 42, .75);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.6rem;
  box-shadow: 0 18px 45px -8px rgba(0, 0, 0, .7);
  transition: .35s;
}

.lux-card:hover {
  transform: translateY(-5px)
}

.lux-card h2 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: var(--gold);
}

.lux-btn {
  width: 100%;
  padding: .75rem;
  font-size: .92rem;
  font-weight: 600;
  border: none;
  border-radius: .7rem;
  cursor: pointer;
  transition: .2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lux-btn:hover {
  transform: translateY(-2px)
}

.lux-btn.primary {
  background: linear-gradient(135deg, #fbbf24, #facc15);
  color: #0f172a
}

.lux-btn.primary:hover {
  box-shadow: 0 4px 12px rgba(251, 191, 36, .35)
}

.lux-btn.secondary {
  background: rgba(251, 191, 36, .12);
  color: var(--text);
  border: 1px solid var(--gold-dim)
}

.lux-btn.secondary:hover {
  background: rgba(251, 191, 36, .22)
}

.lux-btn.tiny {
  width: auto;
  padding: .35rem .75rem;
  font-size: .78rem
}

.lux-btn.danger {
  background: rgba(248, 113, 113, .12);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, .3)
}

.lux-btn.danger:hover {
  background: rgba(248, 113, 113, .25)
}

.mode-switcher,
.setup-tabs {
  display: flex;
  gap: .4rem;
  margin-bottom: .8rem;
  background: rgba(30, 41, 59, .5);
  padding: .3rem;
  border-radius: .7rem
}

.mode-btn,
.setup-tab {
  flex: 1;
  padding: .6rem;
  background: transparent;
  color: var(--gold);
  border: none;
  border-radius: .5rem;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  transition: .2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem
}

.mode-btn.active,
.setup-tab.active {
  background: linear-gradient(135deg, #fbbf24, #facc15);
  color: #0f172a
}

.mode-description {
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 1rem;
  padding: .45rem;
  background: rgba(251, 191, 36, .05);
  border-radius: .5rem
}

.setup-content {
  display: none
}

.setup-content.active {
  display: block
}

/* Connection switcher (Local WiFi / Cloud) — sits above both Send/Receive cards */
.conn-switcher-wrap {
  max-width: 640px;
  margin: 0 auto 1.4rem
}

.conn-switcher {
  display: flex;
  gap: .5rem;
  background: rgba(30, 41, 59, .5);
  padding: .35rem;
  border-radius: .8rem;
  border: 1px solid rgba(148, 163, 184, .15)
}

.conn-btn {
  flex: 1;
  padding: .7rem;
  background: transparent;
  color: var(--muted);
  border: none;
  border-radius: .6rem;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 700;
  transition: .2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem
}

.conn-btn:hover {
  color: var(--text)
}

.conn-btn.active {
  background: linear-gradient(135deg, #34d399, #059669);
  color: #06251b
}

.conn-btn[data-conn="cloud"].active {
  background: linear-gradient(135deg, #fbbf24, #facc15);
  color: #0f172a
}

#conn-description {
  margin-top: .6rem;
  margin-bottom: 0
}

/* Local P2P connection status (code, waiting/connected states) */
.local-status {
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
  padding: .6rem .8rem;
  margin-top: .6rem;
  border-radius: .6rem;
  background: rgba(30, 41, 59, .4);
  border: 1px solid rgba(148, 163, 184, .15)
}

.local-status.hidden {
  display: none
}

.local-status .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: .4rem;
  background: #fbbf24;
  animation: lux-pulse 1.2s infinite ease-in-out
}

.local-status.connected .dot {
  background: #34d399;
  animation: none
}

.local-status.error .dot {
  background: #f87171;
  animation: none
}

@keyframes lux-pulse {

  0%,
  100% {
    opacity: .35
  }

  50% {
    opacity: 1
  }
}

@media (max-width: 480px) {
  .conn-btn {
    font-size: .8rem;
    padding: .6rem .4rem
  }
}

/* Live "no code" WiFi feed — auto-received items appear here */
.wifi-feed-empty {
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
  padding: 1.4rem 1rem;
  border: 1px dashed rgba(148, 163, 184, .2);
  border-radius: .7rem;
  margin-top: .6rem
}

.wifi-feed-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: .6rem
}

.wifi-feed-item {
  background: rgba(30, 41, 59, .5);
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: .7rem;
  padding: .8rem .9rem;
  animation: wifi-feed-in .3s ease
}

@keyframes wifi-feed-in {
  from {
    opacity: 0;
    transform: translateY(-6px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.wifi-feed-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .45rem
}

.wifi-feed-from {
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold)
}

.wifi-feed-time {
  font-size: .7rem;
  color: var(--muted)
}

.wifi-feed-text-wrap {
  position: relative;
  margin: 0 0 .5rem;
}

.wifi-feed-text {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: .85rem;
  color: var(--text);
  margin: 0;
  padding-right: 2.6rem;
  font-family: inherit;
  max-height: 132px;
  overflow: hidden;
  transition: max-height .25s ease
}

.wifi-feed-text.expanded {
  max-height: none
}

.wifi-feed-load-more {
  display: block;
  margin: .1rem 0 .5rem;
  padding: .35rem .8rem;
  background: rgba(251, 191, 36, .1);
  border: 1px solid var(--gold-dim);
  border-radius: .5rem;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: .2s
}

.wifi-feed-load-more:hover {
  background: rgba(251, 191, 36, .2)
}

.wifi-feed-file {
  display: flex;
  align-items: center;
  gap: .7rem
}

.wifi-feed-file-icon {
  font-size: 1.4rem
}

.wifi-feed-file-info {
  flex: 1;
  min-width: 0
}

.wifi-feed-file-name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.wifi-feed-file-size {
  font-size: .75rem;
  color: var(--muted)
}

/* ── Nearby Devices panel (Send + Receive cards) ────────────────────── */
.wifi-devices-panel {
  margin-bottom: .9rem
}

.wifi-devices-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .5rem
}

.wifi-devices-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted)
}

.wifi-send-all-btn {
  background: none;
  border: 1px solid rgba(148, 163, 184, .25);
  color: var(--muted);
  font-size: .72rem;
  padding: .3rem .6rem;
  border-radius: .5rem;
  cursor: pointer;
  font-family: inherit;
  transition: .2s
}

.wifi-send-all-btn:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, .45)
}

.wifi-device-list {
  display: flex;
  flex-direction: column;
  gap: .5rem
}

.wifi-device-empty {
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
  padding: .9rem;
  border: 1px dashed rgba(148, 163, 184, .2);
  border-radius: .6rem
}

.wifi-device-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  background: rgba(30, 41, 59, .45);
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: .7rem;
  padding: .6rem .8rem;
  transition: .2s
}

.wifi-device-card.selected {
  border-color: rgba(52, 211, 153, .45);
  background: rgba(52, 211, 153, .07)
}

.wifi-device-main {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0
}

.wifi-device-info {
  min-width: 0
}

.wifi-device-name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.wifi-device-trusted {
  font-size: .75rem
}

.wifi-device-substate {
  font-size: .74rem;
  color: var(--muted)
}

.wifi-device-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #64748b
}

/* Friendly-state → colour. Only these five ever reach the UI — see
   peerFriendlyState() in paste.js, which is the one place allowed to map
   internal ICE/DataChannel state onto them. */
.wifi-device-dot.discovering,
.wifi-device-dot.connecting {
  background: #fbbf24;
  animation: lux-pulse 1.2s infinite ease-in-out
}

.wifi-device-dot.connected {
  background: #34d399
}

.wifi-device-dot.connected-fallback {
  position: relative;
  width: 22px;
  border-radius: 0;
  background: transparent
}

.wifi-device-dot.connected-fallback::before,
.wifi-device-dot.connected-fallback::after {
  content: "";
  position: absolute;
  top: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399
}

.wifi-device-dot.connected-fallback::before {
  left: 0
}

.wifi-device-dot.connected-fallback::after {
  right: 0
}

.wifi-device-dot.transferring {
  background: #60a5fa;
  animation: lux-pulse 1s infinite ease-in-out
}

.wifi-device-dot.blocked,
.wifi-device-dot.disconnected {
  background: #f87171
}

.wifi-device-select-btn {
  flex-shrink: 0
}

.wifi-device-fix-btn {
  flex-shrink: 0;
  margin-left: .4rem
}

.wifi-send-target-summary {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .5rem;
  min-height: 1em
}

/* ── Incoming-transfer confirmation modal ───────────────────────────── */
.incoming-transfer-content {
  max-width: 420px
}

.incoming-transfer-from {
  color: var(--muted);
  font-size: .85rem;
  margin: -.4rem 0 1rem
}

.incoming-transfer-file-row {
  align-items: center;
  gap: .8rem;
  background: rgba(30, 41, 59, .5);
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: .7rem;
  padding: .8rem .9rem;
  margin-bottom: 1rem
}

.incoming-transfer-file-icon {
  font-size: 1.6rem
}

.incoming-transfer-file-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word
}

.incoming-transfer-file-size {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .15rem
}

.incoming-transfer-text-row {
  margin-bottom: 1rem
}

.incoming-transfer-text-preview {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: .85rem;
  color: var(--text);
  background: rgba(30, 41, 59, .5);
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: .7rem;
  padding: .8rem .9rem;
  margin: 0;
  max-height: 180px;
  overflow-y: auto
}

.incoming-transfer-trust-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  margin-bottom: 1rem
}

.incoming-transfer-trust-row input {
  accent-color: var(--gold);
  width: 15px;
  height: 15px
}

.incoming-transfer-actions {
  display: flex;
  gap: .7rem
}

.incoming-transfer-actions .lux-btn {
  flex: 1
}

/* Paste page & modal floating-label inputs — scoped to avoid breaking tool inputs */
.lux-card .form-group textarea,
.lux-card .form-group input[type=text],
.lux-card .form-group input[type=number],
.lux-card .form-group input[type=password],
.modal-content .form-group input[type=text],
.modal-content .form-group input[type=password] {
  width: 100%;
  padding: .8rem 1rem .4rem;
  background: rgba(30, 41, 59, .7);
  border: 1px solid var(--gold-dim);
  border-radius: .6rem;
  color: var(--text);
  font-family: inherit;
  font-size: .92rem;
  max-width: 100%;
}

.lux-card .form-group textarea:focus,
.lux-card .form-group input:focus,
.modal-content .form-group input:focus {
  outline: none;
  border-color: rgba(251, 191, 36, .5)
}

.lux-card .form-group label:not(.lux-label),
.modal-content .form-group label:not(.lux-label) {
  position: absolute;
  left: 1rem;
  top: .75rem;
  color: #fcd34d88;
  transition: .25s;
  pointer-events: none;
  font-size: .9rem
}

.lux-card .form-group,
.modal-content .form-group {
  position: relative
}

.lux-card .form-group textarea:focus+label,
.lux-card .form-group textarea:not(:placeholder-shown)+label,
.lux-card .form-group input:focus+label,
.lux-card .form-group input:not(:placeholder-shown)+label,
.modal-content .form-group input:focus+label,
.modal-content .form-group input:not(:placeholder-shown)+label {
  top: .2rem;
  font-size: .68rem;
  color: var(--gold)
}

/* Composer: message box + attach bar, in one flowing unit — no more
   separate Text/File tabs to switch between. */
.composer {
  display: flex;
  flex-direction: column;
}

.composer .form-group {
  margin-bottom: .6rem
}

.file-upload-area {
  border-radius: .8rem;
  padding: .7rem .75rem;
  transition: .25s;
  background: rgba(30, 41, 59, .25);
  border: 1px solid rgba(148, 163, 184, .12);
  margin-bottom: 1rem;
  position: relative
}

.file-upload-area.drag-active {
  border-color: var(--gold);
  background: rgba(251, 191, 36, .08)
}

.file-upload-area.drag-active .upload-option {
  border-color: var(--gold);
  background: rgba(251, 191, 36, .12)
}

.upload-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
}

.upload-option {
  cursor: pointer;
  pointer-events: auto;
  padding: .5rem .85rem;
  border: 1px solid var(--gold-dim);
  border-radius: .6rem;
  background: rgba(30, 41, 59, .4);
  transition: .2s;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--text);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  min-width: 0;
  appearance: none;
  outline-offset: 2px
}

.upload-option:hover,
.upload-option:focus-visible {
  border-color: var(--gold);
  background: rgba(251, 191, 36, .1);
  transform: translateY(-1px)
}

.upload-option svg {
  color: var(--gold);
  flex-shrink: 0
}

/* Distinguish folder button with a subtle accent so it doesn't read as a duplicate of "Attach Files" */
#folder-trigger {
  background: rgba(148, 163, 184, .06);
  border-color: rgba(148, 163, 184, .3)
}

#folder-trigger:hover {
  border-color: var(--gold);
  background: rgba(251, 191, 36, .08)
}

/* Purely informational — sits between the two buttons to explain that
   dropping files anywhere on this area also works. Not clickable/focusable
   on purpose: only the buttons themselves should open a picker. */
.upload-divider {
  color: var(--muted);
  font-size: .72rem;
  font-style: italic;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.upload-limit-note {
  display: block;
  margin-left: auto;
  color: var(--muted);
  font-size: .72rem;
  white-space: nowrap
}

@media (max-width: 480px) {
  .upload-options {
    gap: .5rem
  }

  .upload-limit-note {
    margin-left: 0;
    flex-basis: 100%;
    white-space: normal
  }

  .upload-divider {
    flex-basis: 100%;
    white-space: normal
  }
}

.file-or-divider {
  color: var(--muted);
  font-size: .8rem;
  margin: .8rem 0
}

.file-or-divider span {
  background: var(--surface);
  padding: 0 .5rem
}

.folder-select-btn {
  width: 100%;
  padding: .75rem;
  margin-top: .8rem;
  background: rgba(251, 191, 36, .1);
  border: 1px solid var(--gold-dim);
  border-radius: .65rem;
  color: var(--text);
  font-size: .9rem;
  font-family: inherit;
  cursor: pointer;
  transition: .2s
}

.folder-select-btn:hover {
  background: rgba(251, 191, 36, .2);
  color: var(--gold)
}

.file-selected {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(251, 191, 36, .08);
  border-radius: .6rem
}

.file-icon {
  font-size: 2rem
}

.file-info {
  flex: 1;
  text-align: left
}

.file-name {
  color: var(--text);
  font-weight: 600;
  margin-bottom: .2rem;
  word-break: break-word
}

.file-size {
  color: var(--muted);
  font-size: .82rem
}

.file-remove {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(248, 113, 113, .2);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, .35);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s
}

.file-remove:hover {
  background: rgba(248, 113, 113, .4);
  transform: rotate(90deg)
}

.received-file {
  text-align: center;
  padding: 1rem
}

.file-icon-large {
  font-size: 3.5rem;
  margin-bottom: .8rem
}

.file-details {
  margin-bottom: 1.2rem
}

.file-name-large {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .4rem;
  word-break: break-word
}

.file-size-large {
  color: var(--muted);
  font-size: .88rem
}

.reveal-box {
  margin-top: .7rem;
  padding: .9rem;
  background: rgba(15, 23, 42, .7);
  border: 1px solid var(--border);
  border-radius: .8rem;
  position: relative;
  max-height: 160px;
  overflow: auto
}

.reveal-box pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: .88rem
}

.copy-top {
  position: absolute;
  top: .5rem;
  right: .5rem
}

.code-value {
  font-family: monospace;
  font-size: 1.7rem;
  letter-spacing: 4px;
  color: var(--gold);
  display: block;
  text-align: center;
  padding: .3rem
}

.personal-code-banner {
  background: linear-gradient(135deg, rgba(251, 191, 36, .12), rgba(251, 191, 36, .06));
  border: 1.5px solid var(--gold-dim);
  border-radius: .8rem;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem
}

.banner-content {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex: 1
}

.banner-icon {
  font-size: 1.6rem
}

.banner-title {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px
}

.banner-code {
  font-family: monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px
}

.banner-device {
  font-size: .72rem;
  color: #64748b;
  margin-top: .2rem
}

.banner-actions {
  display: flex;
  flex-direction: column;
  gap: .4rem
}

.personal-inbox {
  margin-top: 1rem;
  background: rgba(15, 23, 42, .7);
  border: 1px solid var(--border);
  border-radius: .8rem;
  padding: 1rem;
  max-height: 380px;
  overflow-y: auto
}

.inbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--border)
}

.inbox-header h3 {
  font-size: .95rem;
  color: var(--gold);
  margin: 0
}

.inbox-item {
  background: rgba(30, 41, 59, .5);
  border: 1px solid var(--border);
  border-radius: .6rem;
  padding: .75rem;
  margin-bottom: .5rem;
  cursor: pointer;
  transition: .2s
}

.inbox-item:hover {
  background: rgba(30, 41, 59, .9);
  border-color: var(--gold-dim);
  transform: translateX(4px)
}

.inbox-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .3rem
}

.inbox-item-type {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 600
}

.inbox-item-time {
  color: #64748b;
  font-size: .7rem
}

.inbox-item-preview {
  color: var(--muted);
  font-size: .82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.device-item {
  background: rgba(30, 41, 59, .5);
  border: 1px solid var(--border);
  border-radius: .6rem;
  padding: .9rem;
  margin-bottom: .7rem;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.device-info {
  flex: 1
}

.device-name {
  color: var(--text);
  font-weight: 600;
  margin-bottom: .25rem
}

.device-meta {
  color: var(--muted);
  font-size: .78rem
}

.device-current {
  background: rgba(251, 191, 36, .15);
  color: var(--gold);
  padding: .15rem .5rem;
  border-radius: .3rem;
  font-size: .68rem;
  font-weight: 600;
  margin-left: .4rem
}

.device-remove {
  padding: .35rem .7rem;
  background: rgba(248, 113, 113, .12);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, .3);
  border-radius: .4rem;
  cursor: pointer;
  font-size: .78rem;
  transition: .2s
}

.device-remove:hover {
  background: rgba(248, 113, 113, .28)
}

#history-list {
  display: flex;
  flex-direction: column;
  gap: .7rem
}

.history-item {
  padding: .9rem;
  border-radius: .8rem;
  background: rgba(30, 41, 59, .6);
  border: 1px solid var(--border)
}

.history-meta {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  margin-bottom: .4rem
}

.history-type {
  color: var(--gold);
  font-weight: 600
}

.history-key {
  font-family: monospace;
  letter-spacing: 2px
}

.history-time {
  font-size: .7rem;
  color: var(--muted);
  margin-top: .25rem
}

.history-item pre {
  margin-top: .4rem;
  background: rgba(2, 6, 23, .8);
  border: 1px solid var(--border);
  padding: .6rem;
  border-radius: .4rem;
  font-size: .82rem;
  max-height: 100px;
  overflow: auto;
  white-space: pre-wrap
}

/* ══════════════════════════════════════════════════════
   INBOX OVERLAY — Full-screen modal with centered panel
   ══════════════════════════════════════════════════════ */

/* Full-screen overlay background */
.inbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  /* Mobile dynamic viewport */
  background: rgba(5, 7, 15, 0.95);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.inbox-overlay:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.inbox-overlay:not(.hidden) .inbox-panel {
  transform: scale(1);
  opacity: 1;
}

/* Centered panel — mobile full width, desktop constrained */
.inbox-panel {
  width: 100%;
  max-width: 560px;
  height: 100vh;
  height: 100dvh;
  background: rgba(8, 12, 24, .99);
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: relative;
}

.inbox-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, .5), transparent);
  pointer-events: none;
  z-index: 2;
}

@media (min-width: 640px) {
  .inbox-panel {
    border-radius: var(--radius);
    height: 90vh;
    height: 90dvh;
    max-height: 800px;
    margin: auto;
    border: 1px solid var(--border);
  }

  .inbox-overlay {
    align-items: center;
    padding: 1rem;
  }
}

/* Sticky header */
.inbox-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: rgba(8, 12, 24, .96);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .inbox-panel .inbox-header {
    padding-top: calc(1rem + env(safe-area-inset-top, 0px));
  }

  /* Clock tool container overflow protection */
  #tpl-clock-tool .tool-page,
  #tpl-clock-tool .panel {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Tab buttons - prevent overflow */
  #tpl-clock-tool .tab-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  #tpl-clock-tool .tab-row .tab-btn {
    flex: 1 1 auto;
    min-width: 80px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  /* Format/style buttons wrap */
  #ct-format-group,
  #ct-style-group {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Clock time display - prevent overflow */
  #ct-time {
    font-size: clamp(1.6rem, 10vw, 2.5rem) !important;
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    line-height: 1.2;
    text-overflow: ellipsis;
    padding: 0 0.5rem;
    box-sizing: border-box;
  }

  /* Stopwatch and timer displays */
  #ct-sw-display,
  #ct-timer-display {
    font-size: clamp(1.6rem, 10vw, 2.5rem) !important;
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    line-height: 1.2;
    text-overflow: ellipsis;
    padding: 0 0.5rem;
    box-sizing: border-box;
    margin-bottom: 1rem !important;
  }

  /* Analog clock canvas */
  #ct-analog-canvas {
    max-width: 100%;
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
  }

  /* World clocks grid */
  #ct-world-clocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  /* Info grid below clock */
  #ct-clock-tab .panel>div[style*="display:grid"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem;
  }

  /* Timer input fields - prevent overflow */
  #ct-timer-tab .form-group input[type="number"] {
    width: 70px !important;
    font-size: 1rem !important;
  }

  /* Timer preset buttons wrap */
  #ct-timer-tab>div[style*="display:flex"] {
    flex-wrap: wrap;
  }

  /* Laps container */
  #ct-sw-laps {
    max-height: 180px !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Reduce margins on mobile */
  #ct-clock-tab,
  #ct-sw-tab,
  #ct-timer-tab {
    padding: 0.75rem !important;
  }
}

.inbox-header-left {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}

.inbox-header-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 191, 36, .12);
  border: 1px solid rgba(251, 191, 36, .25);
  border-radius: .6rem;
  font-size: 1.1rem;
}

.inbox-header h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0;
  line-height: 1.2;
}

.inbox-header-sub {
  font-size: .72rem;
  color: var(--muted);
  margin-top: .1rem;
}

.inbox-close-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .35rem;
  background: transparent;
  border: 1px solid rgba(251, 191, 36, .2);
  color: var(--muted);
  padding: 0.42rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.inbox-close-btn:hover {
  background: rgba(251, 191, 36, .1);
  border-color: rgba(251, 191, 36, .45);
  color: var(--gold);
}

/* Header actions container */
.inbox-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Reload button */
.inbox-reload-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(251, 191, 36, .2);
  color: var(--muted);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.inbox-reload-btn:hover {
  background: rgba(251, 191, 36, .1);
  border-color: rgba(251, 191, 36, .45);
  color: var(--gold);
  transform: rotate(180deg);
}

.inbox-reload-btn:active {
  transform: rotate(360deg);
  transition: transform 0.4s ease;
}

.inbox-reload-btn.spinning {
  /* Loops for as long as the JS keeps the .spinning class on (i.e. the
     duration of the actual network fetch) instead of playing exactly once
     regardless of how long the reload really takes. */
  animation: spin 0.8s linear infinite;
}

.inbox-reload-btn:disabled {
  opacity: .6;
  cursor: default;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Search bar */
.inbox-search {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.inbox-search input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.inbox-search input::placeholder {
  color: var(--muted);
}

.inbox-search input:focus {
  border-color: var(--gold);
}

/* Sort bar */
.inbox-sort {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.inbox-sort label {
  font-size: 0.875rem;
  color: var(--muted);
  white-space: nowrap;
}

.inbox-sort select {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.875rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.inbox-sort select:focus {
  border-color: var(--gold);
}

.inbox-sort select option {
  background: var(--surface);
  color: var(--text);
}

/* Scrollable content area — ONLY this scrolls */
.inbox-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem;
  scroll-behavior: smooth;
}

/* Hide scrollbar on Webkit browsers but keep functionality */
.inbox-content::-webkit-scrollbar {
  width: 6px;
}

.inbox-content::-webkit-scrollbar-track {
  background: transparent;
}

.inbox-content::-webkit-scrollbar-thumb {
  background: rgba(251, 191, 36, 0.3);
  border-radius: 3px;
}

.inbox-content::-webkit-scrollbar-thumb:hover {
  background: rgba(251, 191, 36, 0.5);
}

/* Inbox item styling */
.inbox-item {
  padding: 1rem 1.25rem;
  margin: 0.5rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.inbox-item:hover {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(30, 41, 59, 0.8);
  transform: translateY(-1px);
}

.inbox-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.inbox-type {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.15);
  color: var(--gold);
}

.inbox-type.text {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.inbox-type.link {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}

.inbox-type.file {
  background: rgba(251, 191, 36, 0.15);
  color: var(--gold);
}

.inbox-date {
  font-size: 0.75rem;
  color: var(--muted);
}

.inbox-preview {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Inbox actions (copy/download buttons) */
.inbox-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.inbox-copy-btn,
.inbox-download-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.inbox-copy-btn:hover,
.inbox-download-btn:hover {
  background: rgba(251, 191, 36, 0.1);
  border-color: var(--gold);
  color: var(--gold);
}

.inbox-copy-btn:disabled,
.inbox-download-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Download progress bar in inbox item */
.inbox-download-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.inbox-download-progress.hidden {
  display: none;
}

.inbox-progress-track {
  flex: 1;
  height: 6px;
  background: var(--surface2);
  border-radius: 3px;
  overflow: hidden;
}

.inbox-progress-bar {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width 0.2s ease;
}

.inbox-progress-text {
  font-size: 0.75rem;
  color: var(--muted);
  min-width: 35px;
  text-align: right;
}

/* Empty state */
.inbox-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
}

.inbox-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Body scroll lock when overlay is open */
body.inbox-open {
  overflow: hidden !important;
}

/* Body scroll lock when any tool overlay or modal is active */
body.tool-open {
  overflow: hidden !important;
}

html.theme-light .bg-gradient {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(234, 179, 8, .1) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 70%, rgba(234, 179, 8, .08) 0%, transparent 60%),
    linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

html.theme-light .bg-particles {
  opacity: .02
}

/* ── LUX PASTE — SEO / PRODUCT CONTENT ── */
.lp-hero-desc {
  max-width: 620px;
  margin: 0 auto 1rem;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--muted);
}

.lp-hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}

.lp-hero-highlights span {
  padding: .3rem .75rem;
  background: rgba(15, 23, 42, .8);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 2rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .03em;
}

html.theme-light .lp-hero-highlights span {
  background: rgba(15, 23, 42, .08);
  border-color: rgba(15, 23, 42, .08);
  color: #92650c;
}

.lp-seo {
  padding-top: 0.5rem;
  padding-bottom: 1rem;
  margin-top: 8rem;
}

.lp-seo-block {
  margin: 3rem 0;
}

.lp-seo-block:first-child {
  margin-top: 1rem;
}

.lp-seo-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: .9rem;
  text-align: center;
}

.lp-seo-lead {
  max-width: 720px;
  margin: 0 auto .8rem;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}

.lp-list {
  max-width: 420px;
  margin: 0 auto 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .5rem;
}

.lp-list li {
  padding: .55rem .9rem;
  background: rgba(15, 23, 42, .7);
  border: 1px solid var(--border);
  border-radius: .6rem;
  font-size: .85rem;
  color: var(--text);
  text-align: center;
}

.lp-ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto;
}

.lp-ways-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1040px;
}

.lp-way-card {
  background: rgba(15, 23, 42, .7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.1rem;
  text-align: center;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.lp-way-card:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 191, 36, .5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4), 0 0 0 1px rgba(251, 191, 36, .1);
}

.lp-way-icon {
  font-size: 1.8rem;
  margin-bottom: .5rem;
}

.lp-way-card h3 {
  font-size: .98rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .4rem;
}

.lp-way-card p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
}

.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.lp-step {
  background: rgba(15, 23, 42, .7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  text-align: center;
}

.lp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1e1305;
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: .6rem;
}

.lp-step p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
}

.lp-features-grid,
.lp-usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  max-width: 860px;
  margin: 0 auto;
}

.lp-feature-item,
.lp-usecase-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  background: rgba(15, 23, 42, .7);
  border: 1px solid var(--border);
  border-radius: .7rem;
  padding: .75rem .9rem;
  font-size: .82rem;
  color: var(--text);
  transition: transform .25s, border-color .25s;
}

.lp-feature-item:hover,
.lp-usecase-item:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 191, 36, .5);
}

.lp-feature-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.lp-faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: .75rem;
}

.lp-faq-item {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, .82), rgba(30, 41, 59, .58));
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0 1.05rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease;
  will-change: height;
}

.lp-faq-item:hover {
  border-color: rgba(251, 191, 36, .28);
  transform: translateY(-2px);
}

.lp-faq-item[open] {
  border-color: rgba(251, 191, 36, .48);
  background: linear-gradient(135deg, rgba(30, 41, 59, .92), rgba(15, 23, 42, .76));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18), 0 0 0 1px rgba(251, 191, 36, .06);
}

.lp-faq-item summary {
  min-height: 58px;
  padding: .9rem .1rem;
  cursor: pointer;
  font-weight: 700;
  font-size: .9rem;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color .2s ease;
}

.lp-faq-item summary::-webkit-details-marker {
  display: none;
}

.lp-faq-item summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: .45rem;
}

.lp-faq-item summary::after {
  content: '+';
  display: inline-grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(251, 191, 36, .3);
  border-radius: 50%;
  background: rgba(251, 191, 36, .08);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), background .25s ease, color .25s ease;
}

.lp-faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--gold);
  color: #241800;
}

.lp-faq-item[open] summary {
  color: var(--gold);
}

.lp-faq-answer {
  border-top: 1px solid rgba(148, 163, 184, .14);
}

.lp-faq-answer p {
  margin: 0;
  padding: .9rem .1rem 1.05rem;
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.7;
  animation: lp-faq-answer-in .28s cubic-bezier(.4, 0, .2, 1) both;
}

@keyframes lp-faq-answer-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

html.theme-light .lp-faq-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(248, 250, 252, .82));
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

html.theme-light .lp-faq-item[open] {
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .09), 0 0 0 1px rgba(202, 138, 4, .06);
}

@media (prefers-reduced-motion: reduce) {
  .lp-faq-item,
  .lp-faq-item summary::after,
  .lp-faq-answer p {
    transition: none;
    animation: none;
  }
}

.lp-seo-closing {
  max-width: 780px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.lp-seo-closing p {
  font-size: .85rem;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 720px) {
  .lp-ways-grid {
    grid-template-columns: 1fr;
  }

  .lp-ways-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-steps {
    grid-template-columns: 1fr;
  }

  .lp-features-grid,
  .lp-usecases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {

  .lp-features-grid,
  .lp-usecases-grid,
  .lp-ways-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ── Real-time transfer stats ────────────────────────────────────────────
   Byte counts, live speed and ETA shown under the progress bars. Uses
   tabular figures so the digits don't jitter as the numbers change several
   times a second. */
.transfer-stats {
  margin-top: .4rem;
  font-size: .78rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  min-height: 1em;
}

#upload-label {
  font-variant-numeric: tabular-nums;
}

/* Indeterminate bar: used only when the server omits Content-Length, so a
   real percentage is genuinely unknowable. The stripe animation makes it
   visually obvious that this is "working" and not a measured position. */
#download-bar.indeterminate,
#upload-bar.indeterminate {
  background-image: linear-gradient(90deg,
      rgba(255, 255, 255, .00) 0%,
      rgba(255, 255, 255, .35) 50%,
      rgba(255, 255, 255, .00) 100%);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  animation: lux-indeterminate 1.1s ease-in-out infinite;
}

@keyframes lux-indeterminate {
  from { background-position: -40% 0; }
  to   { background-position: 140% 0; }
}

/* The action itself is the progress bar; kept here as the standalone
   page loads this stylesheet after the shared site stylesheet. */
button.lux-btn.primary.transfer-progress-button,
div.transfer-progress-button {
  --transfer-progress: 0%;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  min-width: 0;
  contain: inline-size;
  min-height: 56px;
  margin-inline: auto;
  padding: 7px 18px;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #FFD60A;
  color: #241800;
  box-shadow: 0 8px 22px rgba(229, 160, 0, .18);
  font-variant-numeric: tabular-nums;
  align-items: center;
  justify-content: center;
}

div.transfer-progress-button { display: flex; }

.transfer-progress-button::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 auto 0 0;
  width: var(--transfer-progress);
  border-radius: inherit;
  background-color: #E5A000;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .30) 0 8px, rgba(255, 224, 92, .10) 8px 16px);
  background-size: 23px 23px;
  transition: width .25s cubic-bezier(.4, 0, .2, 1);
}

.transfer-progress-button.is-progress::before {
  animation: lux-transfer-stripes .72s linear infinite;
}

.transfer-progress-button.is-receiving {
  background: #D1FAE5;
  color: #052E24;
  box-shadow: 0 8px 22px rgba(5, 150, 105, .16);
}

.transfer-progress-button.is-receiving::before {
  background-color: #34D399;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .34) 0 8px, rgba(167, 243, 208, .12) 8px 16px);
  animation-direction: reverse;
}

.transfer-progress-button.is-complete::before { background-color: #E5A000; }
.transfer-progress-button.is-receiving.is-complete::before { background-color: #059669; }

.transfer-progress-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  pointer-events: none;
}

.transfer-progress-primary {
  max-width: 100%;
  overflow: hidden;
  font-size: .96rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transfer-progress-detail {
  display: none;
  max-width: 100%;
  margin-top: 3px;
  overflow: hidden;
  font-size: .66rem;
  font-weight: 700;
  opacity: .82;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transfer-progress-button.is-progress .transfer-progress-detail,
.transfer-progress-button.is-complete .transfer-progress-detail { display: block; }
button.transfer-progress-button:disabled { cursor: progress; opacity: 1; }
button.transfer-progress-button.is-complete:disabled { cursor: default; }
button.lux-btn.primary.transfer-progress-button:hover { transform: translateY(-1px); box-shadow: 0 10px 25px rgba(229, 160, 0, .24); }

#upload-progress-wrap.transfer-progress-controls {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

#upload-progress-wrap.transfer-progress-controls > div:first-child { justify-content: flex-end !important; margin: 0 !important; }
#upload-progress-wrap.transfer-progress-controls > div:last-child { display: none; }

#upload-progress-wrap.transfer-progress-controls #upload-label,
#upload-progress-wrap.transfer-progress-controls #upload-pct,
.receive-progress-wrap #wifi-feed-progress-pct,
.receive-progress-wrap .transfer-stats {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.receive-progress-wrap .transfer-progress-button { margin-bottom: .55rem; }
.receive-progress-wrap > div:nth-of-type(2) { gap: .65rem; margin-bottom: 0 !important; }
.receive-progress-wrap > div:nth-of-type(2) > span:first-child {
  min-width: 0;
  overflow: hidden;
  color: #94A3B8 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.receive-progress-wrap > div:nth-of-type(3) { display: none; }

@keyframes lux-transfer-stripes {
  from { background-position: 0 0; }
  to { background-position: 23px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .transfer-progress-button.is-progress::before { animation: none; }
}

/* Mobile/tablet receiving focus view. JS activates it only for real
   mobile/tablet user agents, including wide tablets in landscape. */
body.mobile-receive-open {
    overflow: hidden;
    overscroll-behavior: none;
}

.mobile-receive-overlay {
    position: fixed;
    z-index: 320;
    inset: 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    visibility: hidden;
    overflow: hidden;
    background:
      radial-gradient(circle at 50% 18%, rgba(52, 211, 153, .16), transparent 36%),
      rgba(4, 8, 18, .98);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.mobile-receive-overlay.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.mobile-receive-card {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding:
      max(5.5rem, calc(4rem + env(safe-area-inset-top, 0px)))
      max(1.25rem, env(safe-area-inset-right, 0px))
      max(2rem, env(safe-area-inset-bottom, 0px))
      max(1.25rem, env(safe-area-inset-left, 0px));
    overflow-y: auto;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mobile-receive-close {
    position: absolute;
    top: max(1rem, env(safe-area-inset-top, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    z-index: 2;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    background: rgba(15, 23, 42, .9);
    color: #f8fafc;
    font: 400 1.65rem/1 system-ui, sans-serif;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mobile-receive-icon {
    display: grid;
    width: 74px;
    height: 74px;
    margin-bottom: 1.1rem;
    place-items: center;
    border: 1px solid rgba(52, 211, 153, .34);
    border-radius: 24px;
    background: rgba(52, 211, 153, .12);
    color: #6ee7b7;
    font-size: 2.25rem;
    font-weight: 800;
    box-shadow: 0 20px 55px rgba(5, 150, 105, .13);
}

.mobile-receive-eyebrow {
    margin: 0 0 .45rem;
    color: #6ee7b7;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.mobile-receive-card h2 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(1.7rem, 7vw, 2.5rem);
    line-height: 1.1;
}

.mobile-receive-name {
    width: min(100%, 560px);
    margin: .75rem 0 1.5rem;
    overflow: hidden;
    color: #cbd5e1;
    font-size: .98rem;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#mobile-receive-progress-pill {
    width: min(100%, 560px);
    min-height: 68px;
    border-radius: 28px;
}

#mobile-receive-progress-pill .transfer-progress-primary {
    font-size: 1.08rem;
}

.mobile-receive-stats {
    min-height: 1.5em;
    margin: 1rem 0 0;
    color: #e2e8f0;
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
}

.mobile-receive-hint {
    width: min(100%, 480px);
    margin: .65rem 0 0;
    color: #94a3b8;
    font-size: .78rem;
    line-height: 1.5;
}
