:root {
  color-scheme: light dark;
  --accent: #5645D4;
  --accent-soft: rgba(86, 69, 212, 0.08);
  --accent-hover: #4335BF;
  --accent-shadow: rgba(86, 69, 212, 0.15);
  --secondary: #DD5B00;
  --text: #2C3E50;
  --text-button: #ffffff;
  --muted: #6F8090;
  --surface: #ffffff;
  --bg: #FAF9F6;
  --border: rgba(44, 62, 80, 0.08);
  --preview: rgba(44, 62, 80, 0.03);
  --toast-bg: rgba(44, 62, 80, 0.9);
  --toast-text: #ffffff;
  --radius-card: 24px;
  --radius-btn: 14px;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --accent: #B1A6FF;
  --accent-soft: rgba(177, 166, 255, 0.12);
  --accent-hover: #C5BCFF;
  --accent-shadow: rgba(177, 166, 255, 0.15);
  --secondary: #FCF3CF;
  --text: #EDE9E4;
  --text-button: #191919;
  --muted: #9CA3AF;
  --surface: #222222;
  --bg: #191919;
  --border: rgba(237, 233, 228, 0.12);
  --preview: #2A2A2A;
  --toast-bg: rgba(237, 233, 228, 0.95);
  --toast-text: #191919;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --accent: #B1A6FF;
    --accent-soft: rgba(177, 166, 255, 0.12);
    --accent-hover: #C5BCFF;
    --accent-shadow: rgba(177, 166, 255, 0.15);
    --secondary: #FCF3CF;
    --text: #EDE9E4;
    --text-button: #191919;
    --muted: #9CA3AF;
    --surface: #222222;
    --bg: #191919;
    --border: rgba(237, 233, 228, 0.12);
    --preview: #2A2A2A;
    --toast-bg: rgba(237, 233, 228, 0.95);
    --toast-text: #191919;
  }
}

* {
  box-sizing: border-box;
}

.lc-centered-page {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.lc-card-page-main {
  width: min(100%, 480px);
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  position: relative;
}

.lc-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.lc-app-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  box-shadow: 0 8px 20px var(--accent-shadow);
}

.lc-eyebrow {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.lc-share-type {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.lc-description {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.lc-actions {
  display: grid;
  gap: 12px;
}

.lc-action,
.lc-disabled-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.lc-action {
  border: none;
  cursor: pointer;
  width: 100%;
}

.lc-action:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.lc-primary {
  color: var(--text-button);
  background: var(--accent);
  box-shadow: 0 6px 20px var(--accent-shadow);
}

.lc-primary:hover {
  background: var(--accent-hover);
}

.lc-secondary {
  color: var(--accent);
  background: var(--accent-soft);
}

.lc-hint {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.lc-toast {
  visibility: hidden;
  min-width: 260px;
  background-color: var(--toast-bg);
  color: var(--toast-text);
  text-align: center;
  border-radius: 12px;
  padding: 14px;
  position: fixed;
  z-index: 1000;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}

.lc-toast.show {
  visibility: visible;
  opacity: 1;
}
