:root {
  color-scheme: dark light;
  --bg: #090b10;
  --frost: rgba(255, 255, 255, 0.08);
  --frost-strong: rgba(255, 255, 255, 0.15);
  --accent: #7c5cff;
  --accent-soft: rgba(124, 92, 255, 0.2);
  --accent-strong: rgba(124, 92, 255, 0.5);
  --text: #f7f7ff;
  --muted: #9da7be;
  --shadow-strong: 0 35px 55px -35px rgba(0, 0, 0, 0.6);
  --shadow-subtle: 0 20px 40px -25px rgba(124, 92, 255, 0.4);
  --radius-lg: 26px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 40px clamp(24px, 4vw, 72px) 64px;
  background: radial-gradient(circle at top, #161a28, #07070f 55%);
  color: var(--text);
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont,
    sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.wallet-shell {
  width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: linear-gradient(120deg, var(--frost), rgba(0, 0, 0, 0.2));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.search input {
  flex: 1;
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.15rem;
  font-weight: 500;
  outline: none;
}

.search button {
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 20px;
  border: 1px solid rgba(124, 92, 255, 0.4);
  background: linear-gradient(140deg, rgba(124, 92, 255, 0.9), rgba(72, 47, 255, 0.85));
  color: var(--text);
  box-shadow: 0 18px 32px -24px rgba(124, 92, 255, 0.75);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.2s ease;
}

.search button:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 20px 36px -20px rgba(124, 92, 255, 0.85);
  border-color: rgba(124, 92, 255, 0.65);
}

.search-suggestions {
  position: fixed;
  top: var(--suggestions-top);
  left: var(--suggestions-left);
  width: var(--suggestions-width);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(15, 18, 28, 0.98), rgba(9, 11, 16, 0.96));
  border: 1px solid rgba(124, 92, 255, 0.35);
  border-radius: 20px;
  box-shadow: 0 25px 65px -20px rgba(0, 0, 0, 0.85),
              0 10px 35px -15px rgba(124, 92, 255, 0.45),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px);
  z-index: 9999;
  animation: slideIn 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-suggestions[hidden] {
  display: none;
}

.suggestion {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
  padding: 14px 16px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.suggestion-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.suggestion::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.15), rgba(124, 92, 255, 0.08));
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: inherit;
}

.suggestion:hover::before,
.suggestion:focus-visible::before {
  opacity: 1;
}

.suggestion:hover,
.suggestion:focus-visible {
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.22), rgba(124, 92, 255, 0.12));
  border-color: rgba(124, 92, 255, 0.5);
  outline: none;
  transform: translateX(4px) scale(1.01);
  box-shadow: 0 8px 20px -10px rgba(124, 92, 255, 0.4);
}

.suggestion-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.suggestion-meta {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(124, 92, 255, 0.15);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(124, 92, 255, 0.25);
  position: relative;
  z-index: 1;
}

.suggestion-subcontent {
  display: flex;
  gap: 8px;
  padding-left: 40px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
  overflow: hidden;
}

.suggestion-subcontent > span:last-child {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-sublabel {
  font-weight: 600;
  color: rgba(124, 92, 255, 0.8);
  flex-shrink: 0;
}

.search-suggestions mark {
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.5), rgba(124, 92, 255, 0.35));
  color: var(--text);
  border-radius: 6px;
  padding: 2px 5px;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.3);
}

.folder-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}

.folder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.folder-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.folder-name-display {
  min-height: 32px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), rgba(124, 92, 255, 0.06));
  border-radius: 14px;
  border: 1px solid rgba(124, 92, 255, 0.15);
  backdrop-filter: blur(12px);
}

.sync-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sync-btn,
.settings-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(124, 92, 255, 0.3);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sync-btn:hover,
.settings-btn:hover {
  background: rgba(124, 92, 255, 0.15);
  border-color: rgba(124, 92, 255, 0.5);
  color: var(--text);
}

.settings-btn:hover {
  transform: rotate(90deg);
}

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

.sync-btn.syncing {
  animation: syncPulse 1.5s ease-in-out infinite;
}

@keyframes syncPulse {
  0%, 100% {
    background: rgba(124, 92, 255, 0.1);
    border-color: rgba(124, 92, 255, 0.3);
  }
  50% {
    background: rgba(124, 92, 255, 0.25);
    border-color: rgba(124, 92, 255, 0.6);
  }
}

.sync-btn .icon,
.settings-btn .icon {
  width: 18px;
  height: 18px;
}

.folder-name-display .current-folder-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.folder-name-display .folder-card-count {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.folders {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.folder-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  background: var(--frost);
  border-radius: 16px;
  border: 1px solid transparent;
  color: var(--muted);
  cursor: grab;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease,
    border 0.3s ease;
}

.folder-chip.dragging {
  opacity: 0.4;
  cursor: grabbing;
  transform: scale(0.92) rotate(2deg);
}

.folder-chip.drag-over {
  background: rgba(124, 92, 255, 0.3);
  border-color: rgba(124, 92, 255, 0.7);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px -12px rgba(124, 92, 255, 0.6),
              inset 0 0 0 2px rgba(124, 92, 255, 0.4);
}

.folder-chip.active {
  color: var(--text);
  background: var(--accent-soft);
  border-color: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-subtle);
}

.add-folder {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(124, 92, 255, 0.4);
  color: rgba(255, 255, 255, 0.7);
}

.add-folder:hover {
  background: rgba(124, 92, 255, 0.15);
  border-style: solid;
}

.folder-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.folder-label {
  display: none;
}

.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.deck {
  position: relative;
  width: 100%;
  overflow-x: clip;
  overflow-y: visible;
  padding: 48px 0 24px;
}

.deck-controls {
  position: absolute;
  top: 8px;
  right: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.view-toggle,
.add-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(124, 92, 255, 0.35);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(124, 92, 255, 0.12));
  color: rgba(240, 238, 255, 0.85);
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 32px -28px rgba(124, 92, 255, 0.65);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
  position: relative;
}

.view-toggle:hover,
.add-card-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: 0 20px 42px -28px rgba(124, 92, 255, 0.75);
}

.view-toggle svg {
  position: absolute;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  opacity: 0;
  transform: scale(0.7);
}

.deck[data-mode="carousel"] .view-toggle .icon-carousel,
.deck[data-mode="grid"] .view-toggle .icon-grid {
  opacity: 1;
  transform: scale(1);
}

.add-card-menu,
.add-folder-menu {
  position: fixed;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(15, 18, 28, 0.98), rgba(9, 11, 16, 0.96));
  border: 1px solid rgba(124, 92, 255, 0.35);
  border-radius: 20px;
  box-shadow: 0 25px 65px -20px rgba(0, 0, 0, 0.85),
              0 10px 35px -15px rgba(124, 92, 255, 0.45),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px);
  z-index: 9999;
  animation: slideIn 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
  min-width: 280px;
}

.card-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.add-card-menu[data-open="true"],
.add-folder-menu[data-open="true"] {
  display: flex;
}

.menu-header {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px;
  border-bottom: 1px solid rgba(124, 92, 255, 0.2);
  margin-bottom: 4px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.menu-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.15), rgba(124, 92, 255, 0.08));
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: inherit;
}

.menu-item:hover::before {
  opacity: 1;
}

.menu-item:hover {
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.22), rgba(124, 92, 255, 0.12));
  border-color: rgba(124, 92, 255, 0.5);
  transform: translateX(4px) scale(1.01);
  box-shadow: 0 8px 20px -10px rgba(124, 92, 255, 0.4);
}

.menu-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(124, 92, 255, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.3);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.menu-item-text {
  flex: 1;
  position: relative;
  z-index: 1;
}

.menu-item-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.menu-item-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.01em;
}

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

.expanded-data-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  transition: all 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.expanded-data-line:last-child {
  border-bottom: none;
}

.expanded-data-line:hover {
  padding-left: 4px;
}

.expanded-data-line:hover .copy-line-btn {
  opacity: 1;
}

.copy-line-btn {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 6px;
  border: none;
  background: rgba(124, 92, 255, 0.2);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
  opacity: 0.4;
}

.copy-line-btn:hover {
  background: rgba(124, 92, 255, 0.4);
  transform: scale(1.1);
  opacity: 1;
}

.copy-line-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.line-text {
  flex: 1;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.expanded-card-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  overflow-y: auto;
  padding-right: 8px;
}

.expanded-card-content-wrapper > div:first-child {
  margin-bottom: 4px;
}

.expanded-card-content-wrapper::-webkit-scrollbar {
  width: 6px;
}

.expanded-card-content-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.expanded-card-content-wrapper::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 255, 0.4);
  border-radius: 10px;
}

.expanded-card-content-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 92, 255, 0.6);
}

/* Custom scrollbar for main screen */
body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 255, 0.5);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

body::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 92, 255, 0.7);
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* Firefox scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 92, 255, 0.5) rgba(255, 255, 255, 0.03);
}

.original-content-modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 11, 16, 0.97);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  backdrop-filter: blur(32px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10000;
}

.original-content-modal[data-open="true"] {
  visibility: visible;
  opacity: 1;
}

.original-content-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.original-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: linear-gradient(180deg, rgba(9, 11, 16, 0.95), transparent);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.original-content-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.original-content-title svg {
  width: 20px;
  height: 20px;
  stroke: rgba(124, 92, 255, 0.9);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.original-content-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.original-zoom-controls {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(124, 92, 255, 0.3);
  backdrop-filter: blur(12px);
}

.zoom-btn,
.close-original {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  font-size: 1.1rem;
  font-weight: 600;
}

.zoom-btn:hover,
.close-original:hover {
  background: rgba(124, 92, 255, 0.3);
  transform: scale(1.05);
}

.zoom-level {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  min-width: 50px;
  justify-content: center;
}

.original-content-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
  padding: 80px 24px 24px;
  position: relative;
}

.original-content-container::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.original-content-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.original-content-container::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 255, 0.5);
  border-radius: 10px;
}

.original-content-container::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 92, 255, 0.7);
}

.original-content-inner {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease;
  transform-origin: center;
}

.original-content-container img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  height: auto;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(124, 92, 255, 0.3);
  background: rgba(255, 255, 255, 0.02);
  cursor: grab;
}

.original-content-container img.zoomed {
  cursor: grabbing;
  max-width: none;
  max-height: none;
}

.original-content-container pre {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(124, 92, 255, 0.3);
  overflow-x: auto;
  color: var(--text);
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.8;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-width: 900px;
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.8);
}

.original-content-container iframe {
  width: 100%;
  height: calc(100vh - 120px);
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}

.processing-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, rgba(15, 18, 28, 0.98), rgba(9, 11, 16, 0.96));
  border: 1px solid rgba(124, 92, 255, 0.45);
  border-radius: 20px;
  padding: 32px 48px;
  box-shadow: 0 25px 65px -20px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(28px);
  z-index: 10001;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.processing-indicator[data-visible="true"] {
  display: flex;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(124, 92, 255, 0.2);
  border-top-color: rgba(124, 92, 255, 0.9);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.processing-text {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.custom-instruction-modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 11, 16, 0.84);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(24px, 6vw, 40px);
  backdrop-filter: blur(28px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10001;
}

.custom-instruction-modal[data-open="true"] {
  visibility: visible;
  opacity: 1;
}

.custom-instruction-content {
  width: min(520px, 92vw);
  background: linear-gradient(135deg, rgba(15, 18, 28, 0.98), rgba(9, 11, 16, 0.96));
  border: 1px solid rgba(124, 92, 255, 0.35);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 25px 65px -20px rgba(0, 0, 0, 0.85),
              0 10px 35px -15px rgba(124, 92, 255, 0.45),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px);
}

.custom-instruction-header {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.custom-instruction-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.custom-instruction-textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 18px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  resize: vertical;
  margin-bottom: 20px;
}

.custom-instruction-textarea:focus {
  border-color: rgba(124, 92, 255, 0.5);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(124, 92, 255, 0.05));
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}

.custom-instruction-textarea::placeholder {
  color: var(--muted);
}

.custom-instruction-actions {
  display: flex;
  gap: 12px;
}

.add-folder-menu {
  min-width: 360px;
  padding: 24px;
}

.menu-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.menu-input-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.menu-input {
  width: 100%;
  padding: 14px 18px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.menu-input:focus {
  border-color: rgba(124, 92, 255, 0.5);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(124, 92, 255, 0.05));
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}

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

.icon-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.icon-option {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-option:hover {
  background: rgba(124, 92, 255, 0.15);
  border-color: rgba(124, 92, 255, 0.3);
}

.icon-option.selected {
  background: rgba(124, 92, 255, 0.25);
  border-color: rgba(124, 92, 255, 0.6);
  box-shadow: 0 4px 16px -8px rgba(124, 92, 255, 0.6);
}

.menu-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.menu-btn {
  flex: 1;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 14px;
  border: 1px solid rgba(124, 92, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.menu-btn-primary {
  background: linear-gradient(140deg, rgba(124, 92, 255, 0.9), rgba(72, 47, 255, 0.85));
  color: var(--text);
  box-shadow: 0 12px 24px -18px rgba(124, 92, 255, 0.75);
}

.menu-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -18px rgba(124, 92, 255, 0.85);
  border-color: rgba(124, 92, 255, 0.6);
}

.menu-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.15);
}

.menu-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
}

.trash-zone {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  width: 280px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 50, 80, 0.15), rgba(180, 30, 50, 0.25));
  border: 2px dashed rgba(255, 80, 100, 0.5);
  border-radius: 24px;
  backdrop-filter: blur(28px);
  box-shadow: 0 25px 65px -20px rgba(255, 50, 80, 0.6),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.35s ease;
  z-index: 9998;
}

.trash-zone.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(32px);
}

.trash-zone.drag-over {
  background: linear-gradient(135deg, rgba(255, 50, 80, 0.35), rgba(180, 30, 50, 0.45));
  border-color: rgba(255, 80, 100, 0.9);
  border-style: solid;
  transform: translateX(-50%) translateY(32px) scale(1.08);
  box-shadow: 0 35px 75px -20px rgba(255, 50, 80, 0.8),
              inset 0 0 0 3px rgba(255, 100, 120, 0.5);
}

.trash-zone-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 80, 100, 0.25);
  border: 1px solid rgba(255, 80, 100, 0.4);
}

.trash-zone-icon svg {
  width: 32px;
  height: 32px;
  stroke: rgba(255, 150, 160, 0.95);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trash-zone-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 180, 190, 0.95);
  letter-spacing: 0.02em;
  text-align: center;
}

.deck::before,
.deck::after {
  display: none;
}

.cards-track {
  display: flex;
  gap: 26px;
  margin-top: 32px;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.deck[data-mode="carousel"] .cards-track {
  padding: 0 12px;
}

.deck[data-mode="grid"] {
  overflow: visible;
  padding: 36px 0 8px;
}

.deck[data-mode="grid"]::before,
.deck[data-mode="grid"]::after {
  display: none;
}

.deck[data-mode="grid"] .cards-track {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 28px;
  transform: none !important;
  padding: 0;
}

.deck[data-mode="grid"] .card {
  flex: 1 1 calc((100% - 56px) / 3);
  max-width: calc((100% - 56px) / 3);
  min-width: 260px;
  height: 210px;
}

.card {
  position: relative;
  flex: 0 0 320px;
  height: 200px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.55));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  padding: 24px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-origin: center;
  transition: transform 0.4s ease, filter 0.4s ease, opacity 0.4s ease,
    box-shadow 0.4s ease;
  backdrop-filter: blur(18px);
  --accent-primary: rgba(124, 92, 255, 0.75);
  --accent-secondary: rgba(124, 92, 255, 0.28);
  --corner-base: rgba(124, 92, 255, 0.85);
  --corner-edge: rgba(255, 255, 255, 0.75);
  --glow-x: 50%;
  --glow-y: 64%;
  --sheen-x: 50%;
  --sheen-y: 45%;
  --sheen-angle: 140deg;
  --sheen-opacity: 0.35;
  --card-tilt-x: 0deg;
  --card-tilt-y: 0deg;
  --shimmer-opacity: 0;
  user-select: none;
  transform-style: preserve-3d;
  cursor: grab;
}

.card.dragging {
  opacity: 0.5;
  cursor: grabbing;
  transform: scale(0.95) rotate(3deg);
}

.card.drag-preview {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  opacity: 0.9;
  transform: scale(0.98) rotate(-2deg);
  box-shadow: 0 45px 85px -35px rgba(124, 92, 255, 0.8);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(255, 255, 255, 0.25),
    rgba(124, 92, 255, 0.15) 40%,
    transparent 70%
  );
  mix-blend-mode: screen;
  opacity: var(--shimmer-opacity);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: perspective(1000px) rotateX(var(--card-tilt-x)) rotateY(var(--card-tilt-y)) !important;
  transition: transform 0.1s ease, filter 0.4s ease, opacity 0.4s ease,
    box-shadow 0.4s ease;
}

.card[data-state="dim"]:not(:hover) {
  filter: saturate(0.85) brightness(0.9);
  opacity: 0.75;
  transform: scale(0.94) translateY(8px);
}

.card[data-state="focus"]:not(:hover) {
  transform: perspective(1200px) rotateY(0deg) scale(1.04);
  border-color: rgba(124, 92, 255, 0.4);
  box-shadow: 0 35px 55px -24px rgba(124, 92, 255, 0.5);
}

.card[data-state="focus"]:hover {
  transform: perspective(1000px) rotateX(var(--card-tilt-x)) rotateY(var(--card-tilt-y)) scale(1.04) !important;
  border-color: rgba(124, 92, 255, 0.4);
  box-shadow: 0 35px 55px -24px rgba(124, 92, 255, 0.5);
}

.card .tag {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.tag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tag-icon svg,
.icon-mini {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.card p {
  font-size: 0.85rem;
}

.card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

.card::after {
  content: "";
  position: absolute;
  inset: auto;
  right: 0px;
  bottom: 0px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 54px 54px;
  border-color: transparent transparent rgba(255, 255, 255, 0.08) transparent;
  border-bottom-right-radius: 18px;
  opacity: 0;
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
  transform: scale(1.02) translate(-1px, -1px);
}

.expand-btn {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(124, 92, 255, 0.95));
  border: none;
  border-radius: 14px 8px 20px 8px;
  color: rgba(9, 11, 16, 0.85);
  font-weight: 700;
  letter-spacing: -0.02em;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 18px -12px rgba(124, 92, 255, 0.7);
  opacity: 0;
  transform: translate(22px, 22px) scale(0.88);
  transition: transform 0.26s ease, opacity 0.2s ease;
}

.card:hover .expand-btn {
  opacity: 1;
  transform: translate(6px, 6px) scale(1);
}

.expand-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(124, 92, 255, 0.4));
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.expand-btn:hover::before {
  opacity: 1;
}

.expanded-card {
  position: fixed;
  inset: 0;
  background: rgba(9, 11, 16, 0.84);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(24px, 6vw, 40px);
  backdrop-filter: blur(28px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  perspective: 1600px;
}

.expanded-card[data-open="true"] {
  visibility: visible;
  opacity: 1;
}

.expanded-card .card {
  flex: 0 0 auto;
  width: min(620px, 92vw);
  height: 360px;
  padding: clamp(32px, 6vw, 44px);
  border: 1px solid rgba(124, 92, 255, 0.45);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shadow-x: 0px;
  --shadow-y: 62px;
  --glow-opacity: 0.6;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(1.02);
  box-shadow: var(--shadow-x) var(--shadow-y) 140px -60px rgba(124, 92, 255, 0.55),
    0 65px 120px -60px rgba(0, 0, 0, 0.8);
  transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.25s ease;
  backdrop-filter: blur(24px);
  user-select: text;
}

.expanded-card .card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(255, 255, 255, 0.22),
    transparent 65%
  );
  mix-blend-mode: screen;
  opacity: var(--glow-opacity);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.expanded-card .card::after {
  display: none;
}

.expanded-card-actions {
  position: absolute;
  top: clamp(16px, 6vw, 40px);
  right: clamp(16px, 6vw, 40px);
  display: flex;
  gap: 12px;
  z-index: 1;
}

.edit-card-btn,
.view-original-modal-btn {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(124, 92, 255, 0.4);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.9), rgba(72, 47, 255, 0.85));
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 24px -18px rgba(124, 92, 255, 0.75);
  transition: all 0.2s ease;
  display: grid;
  place-items: center;
}

.edit-card-btn:hover,
.view-original-modal-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 32px -18px rgba(124, 92, 255, 0.85);
  border-color: rgba(124, 92, 255, 0.6);
}

.edit-card-btn.editing {
  background: linear-gradient(135deg, rgba(50, 205, 50, 0.9), rgba(34, 139, 34, 0.85));
  border-color: rgba(50, 205, 50, 0.4);
}

.edit-card-btn svg,
.view-original-modal-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  position: absolute;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.edit-card-btn .icon-edit {
  opacity: 1;
}

.edit-card-btn .icon-check {
  opacity: 0;
  transform: scale(0.8);
}

.edit-card-btn.editing .icon-edit {
  opacity: 0;
  transform: scale(0.8);
}

.edit-card-btn.editing .icon-check {
  opacity: 1;
  transform: scale(1);
}

.card-edit-input,
.card-edit-textarea,
.card-edit-input select {
  width: 100%;
  padding: 10px 14px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(124, 92, 255, 0.05));
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

select.card-edit-input {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(124, 92, 255, 0.05)),
    linear-gradient(45deg, transparent 50%, rgba(124, 92, 255, 0.8) 50%),
    linear-gradient(135deg, rgba(124, 92, 255, 0.8) 50%, transparent 50%);
  background-position: calc(100% - 20px) center,
    calc(100% - 15px) calc(50% - 2px),
    calc(100% - 10px) calc(50% - 2px);
  background-size: 100% 100%, 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 35px;
}

select.card-edit-input option {
  background: #161a28;
  color: var(--text);
}

.card-edit-input:focus,
.card-edit-textarea:focus {
  border-color: rgba(124, 92, 255, 0.6);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(124, 92, 255, 0.08));
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}

.card-edit-textarea {
  min-height: 80px;
  resize: vertical;
  font-size: 0.9rem;
}

.card-edit-input::placeholder,
.card-edit-textarea::placeholder {
  color: var(--muted);
}

.card-edit-field {
  margin-bottom: 14px;
}

.card-edit-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(124, 92, 255, 0.9);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.settings-modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 11, 16, 0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(24px, 6vw, 40px);
  backdrop-filter: blur(28px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10002;
}

.settings-modal[data-open="true"] {
  visibility: visible;
  opacity: 1;
}

.settings-content {
  width: min(480px, 92vw);
  background: linear-gradient(135deg, rgba(15, 18, 28, 0.98), rgba(9, 11, 16, 0.96));
  border: 1px solid rgba(124, 92, 255, 0.35);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 25px 65px -20px rgba(0, 0, 0, 0.85),
              0 10px 35px -15px rgba(124, 92, 255, 0.45),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px);
}

.settings-header {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-header svg {
  width: 24px;
  height: 24px;
  stroke: rgba(124, 92, 255, 0.9);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.settings-section {
  margin-bottom: 24px;
}

.settings-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(124, 92, 255, 0.9);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.settings-section-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.settings-input {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'Courier New', monospace;
  outline: none;
  transition: all 0.2s ease;
}

.settings-input:focus {
  border-color: rgba(124, 92, 255, 0.5);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(124, 92, 255, 0.05));
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}

.settings-input::placeholder {
  color: var(--muted);
  font-family: inherit;
}

.settings-danger-zone {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 80, 100, 0.2);
}

.settings-danger-btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 14px;
  border: 1px solid rgba(255, 80, 100, 0.4);
  background: linear-gradient(140deg, rgba(255, 80, 100, 0.15), rgba(180, 30, 50, 0.2));
  color: rgba(255, 150, 160, 0.95);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.settings-danger-btn:hover {
  background: linear-gradient(140deg, rgba(255, 80, 100, 0.25), rgba(180, 30, 50, 0.3));
  border-color: rgba(255, 80, 100, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(255, 80, 100, 0.4);
}

.settings-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 780px) {
  body {
    padding: 32px clamp(16px, 6vw, 32px) 48px;
  }

  .wallet-shell {
    gap: 24px;
  }

  .cards-track {
    gap: 18px;
  }

  .card {
    flex-basis: clamp(260px, 70vw, 320px);
    height: 180px;
  }

  .deck[data-mode="grid"] .card {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 100%;
    height: 180px;
  }

  .deck::before,
  .deck::after {
    width: 60px;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.12);
    opacity: 0.1;
  }
}

.glow {
  position: absolute;
  inset: auto;
  left: 50%;
  bottom: -40px;
  width: 280px;
  height: 80px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(124, 92, 255, 0.75), transparent 70%);
  filter: blur(22px);
  opacity: 0.55;
  mix-blend-mode: screen;
}

.expanded-card .glow {
  bottom: -60px !important;
  width: 360px;
  height: 160px;
  filter: blur(30px);
  opacity: 0.75;
}

.card[data-accent="gold"] {
  background: linear-gradient(160deg, rgba(255, 224, 130, 0.25), rgba(120, 84, 0, 0.65));
}

.card[data-accent="sea"] {
  background: linear-gradient(160deg, rgba(125, 243, 255, 0.25), rgba(0, 74, 113, 0.6));
}

.card[data-accent="rose"] {
  background: linear-gradient(160deg, rgba(255, 155, 216, 0.25), rgba(111, 0, 120, 0.6));
}

.card[data-accent="purple"] {
  background: linear-gradient(160deg, rgba(200, 155, 255, 0.25), rgba(80, 0, 160, 0.6));
}

.card[data-accent="green"] {
  background: linear-gradient(160deg, rgba(155, 255, 180, 0.25), rgba(0, 120, 60, 0.6));
}

.card[data-accent="orange"] {
  background: linear-gradient(160deg, rgba(255, 200, 130, 0.25), rgba(200, 100, 0, 0.6));
}

.card[data-accent="red"] {
  background: linear-gradient(160deg, rgba(255, 155, 155, 0.25), rgba(180, 0, 0, 0.6));
}

.card[data-accent="blue"] {
  background: linear-gradient(160deg, rgba(155, 200, 255, 0.25), rgba(0, 60, 180, 0.6));
}

.color-picker {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.color-option {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 2px solid transparent;
  position: relative;
  flex-shrink: 0;
}

.color-option:hover {
  transform: scale(1.15);
  border-color: rgba(124, 92, 255, 0.4);
}

.color-option.selected {
  border-color: rgba(124, 92, 255, 0.9);
  box-shadow: 0 2px 8px -4px rgba(124, 92, 255, 0.8);
  transform: scale(1.1);
}

.color-option.selected::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 14px;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
}

.color-option[data-color="default"] {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.55));
}

.color-option[data-color="gold"] {
  background: linear-gradient(160deg, rgba(255, 224, 130, 0.25), rgba(120, 84, 0, 0.65));
}

.color-option[data-color="sea"] {
  background: linear-gradient(160deg, rgba(125, 243, 255, 0.25), rgba(0, 74, 113, 0.6));
}

.color-option[data-color="rose"] {
  background: linear-gradient(160deg, rgba(255, 155, 216, 0.25), rgba(111, 0, 120, 0.6));
}

.color-option[data-color="purple"] {
  background: linear-gradient(160deg, rgba(200, 155, 255, 0.25), rgba(80, 0, 160, 0.6));
}

.color-option[data-color="green"] {
  background: linear-gradient(160deg, rgba(155, 255, 180, 0.25), rgba(0, 120, 60, 0.6));
}

.color-option[data-color="orange"] {
  background: linear-gradient(160deg, rgba(255, 200, 130, 0.25), rgba(200, 100, 0, 0.6));
}

.color-option[data-color="red"] {
  background: linear-gradient(160deg, rgba(255, 155, 155, 0.25), rgba(180, 0, 0, 0.6));
}

.color-option[data-color="blue"] {
  background: linear-gradient(160deg, rgba(155, 200, 255, 0.25), rgba(0, 60, 180, 0.6));
}

/* Intro Guide Styles */
.intro-guide {
  position: fixed;
  inset: 0;
  background: rgba(9, 11, 16, 0.96);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(24px, 6vw, 40px);
  backdrop-filter: blur(32px);
  z-index: 10003;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.intro-guide[data-active="true"] {
  visibility: visible;
  opacity: 1;
}

.intro-guide-container {
  width: min(700px, 95vw);
  max-height: min(620px, 90vh);
  background: linear-gradient(135deg, rgba(15, 18, 28, 0.98), rgba(9, 11, 16, 0.96));
  border: 1px solid rgba(124, 92, 255, 0.35);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 40px) clamp(32px, 6vw, 48px);
  box-shadow: 0 35px 95px -35px rgba(124, 92, 255, 0.7),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.intro-guide-header-inline {
  text-align: center;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.intro-guide-logo {
  font-size: 2.5rem;
  margin-bottom: 12px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.intro-guide-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 8px;
  background: linear-gradient(135deg, #f7f7ff, rgba(124, 92, 255, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.intro-guide-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.intro-guide-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 8px;
}

.intro-guide-content::-webkit-scrollbar {
  width: 6px;
}

.intro-guide-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.intro-guide-content::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 255, 0.4);
  border-radius: 10px;
}

.intro-guide-content::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 92, 255, 0.6);
}

.intro-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 16px 0;
  animation: slideIn 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  min-height: 100%;
  justify-content: center;
}

.intro-slide.active {
  display: flex;
}

.intro-slide-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(124, 92, 255, 0.1));
  border: 1px solid rgba(124, 92, 255, 0.4);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  box-shadow: 0 20px 40px -25px rgba(124, 92, 255, 0.6);
  flex-shrink: 0;
}

.intro-slide-icon svg {
  width: 36px;
  height: 36px;
  stroke: rgba(124, 92, 255, 0.95);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.intro-slide-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.intro-slide-description {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.intro-slide-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 480px;
}

.intro-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), rgba(124, 92, 255, 0.05));
  border: 1px solid rgba(124, 92, 255, 0.2);
  border-radius: 12px;
  text-align: left;
}

.intro-feature-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: rgba(124, 92, 255, 0.9);
}

.intro-feature-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.4;
}

.intro-guide-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(124, 92, 255, 0.2);
  flex-shrink: 0;
}

.intro-guide-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.intro-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.intro-dot.active {
  width: 24px;
  border-radius: 4px;
  background: rgba(124, 92, 255, 0.9);
}

.intro-guide-nav {
  display: flex;
  gap: 12px;
}

.intro-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 14px;
  border: 1px solid rgba(124, 92, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.intro-nav-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.intro-nav-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transform: translateX(-2px);
}

.intro-nav-btn-primary {
  background: linear-gradient(140deg, rgba(124, 92, 255, 0.9), rgba(72, 47, 255, 0.85));
  color: var(--text);
  box-shadow: 0 12px 24px -18px rgba(124, 92, 255, 0.75);
}

.intro-nav-btn-primary:hover {
  transform: translateX(2px);
  box-shadow: 0 16px 32px -18px rgba(124, 92, 255, 0.85);
}

.intro-skip-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(124, 92, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  font-size: 1.2rem;
}

.intro-skip-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transform: scale(1.05);
}
