/* CSS reset and variable definitions */
:root {
  --bg-primary: #0a0b0e;
  --bg-secondary: #12141c;
  --panel-bg: rgba(21, 24, 37, 0.65);
  --panel-border: rgba(99, 102, 241, 0.15);
  --panel-border-hover: rgba(99, 102, 241, 0.3);
  
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-secondary: #a855f7;
  --color-accent: #10b981; /* Success Green for Download button */
  --color-accent-hover: #059669;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --status-success: #10b981;
  --status-warning: #f59e0b;
  --status-error: #ef4444;
  
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-neon: 0 0 20px rgba(99, 102, 241, 0.12);
  --shadow-neon-strong: 0 0 25px rgba(168, 85, 247, 0.3);
}

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

body {
  background-color: transparent;
  background-image: 
    radial-gradient(at 10% 10%, rgba(99, 102, 241, 0.07) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(168, 85, 247, 0.07) 0px, transparent 50%);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  padding: 1.5rem;
  min-height: 100vh;
  overflow: hidden; /* Prevent body scroll and layout shifting on desktop */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -999;
  background-color: #000000;
  background-image: 
    linear-gradient(#333333 1px, transparent 1px),
    linear-gradient(90deg, #333333 1px, transparent 1px);
  background-size: 8px 8px;
  image-rendering: pixelated;
  pointer-events: none;
}

/* Allow text selection in inputs and textareas */
input, textarea, [contenteditable="true"] {
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
}


/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}


.app-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Compact Navigation Top Header Navbar */
.app-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--panel-border);
  background: rgba(21, 24, 37, 0.7);
  position: sticky;
  top: 1.5rem;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-separator {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.12);
}
.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}
.logo:hover {
  opacity: 0.85;
}
.logo-accent {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-main {
  color: var(--text-main);
}
.header-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

/* Stats Pills on Header */
.stats-pills {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}
.stat-pill {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 30px;
}

/* Panels styling */
.panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.panel:hover {
  border-color: var(--panel-border-hover);
  box-shadow: var(--shadow-neon);
}
.glassmorphic {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.panel-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.panel-title i {
  color: var(--color-primary);
}

/* 2-Column Grid Layout (Left Widened to 420px) */
.workspace-2col {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Fixed/Sticky Left Sidebar */
.col-left {
  position: sticky;
  top: 6.5rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  border-radius: var(--radius-lg);
  scrollbar-width: thin;
}
.col-left::-webkit-scrollbar {
  width: 4px;
}

/* Fixed/Sticky Right Column */
.col-right {
  position: sticky;
  top: 6.5rem;
  height: calc(100vh - 8rem);
}
#gallery-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

@media (max-width: 990px) {
  body {
    overflow: auto; /* Enable page level scrolling when stacked on mobile */
  }
  .workspace-2col {
    grid-template-columns: 1fr;
  }
  .col-left {
    position: relative;
    top: 0;
    max-height: none;
    overflow-y: visible;
  }
  .col-right {
    position: relative;
    top: 0;
    height: auto;
    max-height: none;
  }
  #gallery-panel {
    max-height: none;
    overflow: visible;
  }
  .cards-grid {
    overflow-y: visible !important;
    height: auto !important;
    padding-right: 0 !important;
  }
}

/* Inputs & Form Controls */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.input-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 700;
  margin: 1rem 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.divider:not(:empty)::before {
  margin-right: 0.5rem;
}
.divider:not(:empty)::after {
  margin-left: 0.5rem;
}

/* Custom textarea / select input styling */
.select-wrapper {
  position: relative;
  width: 100%;
}
.custom-select, .custom-textarea, #card-search-input, .custom-input {
  width: 100%;
  background: rgba(10, 11, 14, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.custom-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2.2rem;
}
.select-arrow {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.custom-textarea {
  resize: vertical;
  line-height: 1.5;
}
.custom-select:focus, .custom-textarea:focus, #card-search-input:focus, .custom-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}
.custom-textarea.textarea-dragover {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 12px var(--color-primary) !important;
  background: rgba(99, 102, 241, 0.05) !important;
}

/* Sidebar action buttons bar toolbar layout */
.toolbar-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  width: 100%;
}

.btn {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 38px;
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
  flex: 1; /* Load cards button expands to take remaining space */
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), #9333ea);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25);
}
.btn-secondary {
  background: #191c28;
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: #212536;
  border-color: rgba(255, 255, 255, 0.08);
}

/* Red Danger theme button for Clear List */
.btn-danger {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--status-error);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Icon-only button styles */
.icon-btn-only {
  width: 38px;
  padding: 0;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  font-size: 1.05rem;
}

/* Download PDF Action button underneath uploader */
.action-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.btn-compile {
  width: 100%;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.65rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 38px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.18);
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-compile:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(6, 182, 212, 0.35);
}
.btn-compile:disabled, .btn-disabled {
  background: #171922 !important;
  color: var(--text-dim) !important;
  border: 1px solid rgba(255, 255, 255, 0.03) !important;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Config panel items */
.configurations-group {
  display: flex;
  flex-direction: column;
}
.option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  gap: 0.5rem;
}
.option-row:last-of-type {
  border-bottom: none;
}
.option-label-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.option-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-main);
}
.option-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Custom toggles */
.toggle-group {
  display: flex;
  background: rgba(10, 11, 14, 0.8);
  padding: 2px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.toggle-group input[type="radio"] {
  display: none;
}
.toggle-btn {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 9px;
  transition: color var(--transition-fast), background-color var(--transition-fast);
  text-align: center;
  user-select: none;
}
.toggle-group input[type="radio"]:checked + .toggle-btn {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2);
}

/* Switch toggles slider */
.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
  flex-shrink: 0;
}
.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #202432;
  transition: .3s;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-muted);
  transition: .3s;
}
.switch input:checked + .slider {
  background-color: var(--color-primary-dark);
}
.switch input:checked + .slider:before {
  transform: translateX(18px);
  background-color: #fff;
}
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}

/* Loading animations */
.progress-bar-container {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: center;
}
.progress-bar {
  height: 4px;
  background: #171922;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.progress-bar::after {
  content: '';
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  width: var(--progress, 0%);
  transition: width var(--transition-fast);
  border-radius: 2px;
}
.progress-text {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Previews gallery header */
.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  padding-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 10;
  background: var(--panel-bg);
}
.gallery-header .panel-title {
  margin-bottom: 0;
}
.gallery-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.size-toggle-group {
  display: flex;
  background: rgba(10, 11, 14, 0.8);
  padding: 2px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.toggle-btn-small {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  width: 24px;
  height: 20px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.toggle-btn-small:hover {
  color: var(--text-main);
}
.toggle-btn-small.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  box-shadow: 0 1px 4px rgba(99, 102, 241, 0.2);
}

/* Card search input styling */
.search-container {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.search-input-wrapper {
  position: relative;
  width: 260px;
}
@media (max-width: 750px) {
  .search-container {
    width: 100%;
  }
  .search-input-wrapper {
    width: 100%;
    flex-grow: 1;
  }
}
.search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.8rem;
}
#card-search-input, .custom-input {
  padding-left: 2.1rem;
  background: rgba(10, 11, 14, 0.7);
  font-size: 0.8rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
#btn-add-card {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.8rem;
  height: 32px;
}

/* Autocomplete suggestion popups */
.autocomplete-list {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  background: #141722;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  z-index: 100;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5), var(--shadow-neon);
  max-height: 200px;
  overflow-y: auto;
}
.autocomplete-item {
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.autocomplete-item:last-child {
  border-bottom: none;
}
.autocomplete-item:hover, .autocomplete-item.active {
  background-color: var(--color-primary-dark);
  color: #fff;
}

/* Interactive Cards Grid Preview */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 0.5rem; /* prevent scrollbar overlap */
  padding-top: 1.25rem;  /* padding top for hover zoom/translate buffer */
  padding-bottom: 8px;   /* add padding at bottom for consistency */
  margin-top: -1.25rem;  /* negative margin to pull the scroll viewport up behind the header */
  align-content: start;
}
.cards-grid.size-sm {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}
.cards-grid.size-lg {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
}

/* Placeholder card slots shapes */
.card-placeholder {
  aspect-ratio: 2.5/3.5;
  border: 2px dashed rgba(255, 255, 255, 0.03);
  background: rgba(255, 255, 255, 0.005);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-dim);
  transition: border-color var(--transition-normal), background-color var(--transition-normal), color var(--transition-normal);
}
.card-placeholder i {
  font-size: 1.5rem;
  opacity: 0.12;
  transition: opacity var(--transition-normal);
}
.card-placeholder span {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.25;
}
.card-placeholder:hover {
  border-color: rgba(99, 102, 241, 0.12);
  background: rgba(99, 102, 241, 0.008);
  color: var(--text-muted);
}
.card-placeholder:hover i {
  opacity: 0.25;
}

/* Active card element blocks */
.card-item {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.card-item:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  z-index: 15; /* Ensure hovered card sits on top of gallery header and other cards */
}
.card-img-container {
  aspect-ratio: 2.5/3.5;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.25);
  position: relative;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  transition: box-shadow 0.25s ease;
}
.card-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating Hover Preview Elements (Floats on top of everything at fixed size) */
#hover-preview {
  display: none;
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(99, 102, 241, 0.45);
  border: 2px solid var(--color-primary);
  background-color: #0c0d12;
  flex-direction: column;
}
#hover-preview-img {
  width: 280px;
  aspect-ratio: 2.5 / 3.5;
  object-fit: cover;
  display: block;
}
#hover-preview-title {
  background: rgba(10, 11, 14, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-main);
  text-align: center;
  line-height: 1.4;
  white-space: normal;
  word-wrap: break-word;
}

.dfc-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(10, 11, 14, 0.85);
  border: 1px solid rgba(255,255,255,0.15);
  color: #06b6d4;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 0.55rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
  pointer-events: none;
}

.card-details {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.card-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card variant set select dropdowns */
.set-select-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.set-select-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
}
.set-select {
  width: 100%;
  background: #0f1118;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  border-radius: 5px;
  padding: 4px 6px;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.set-select:focus {
  border-color: var(--color-primary);
  color: var(--text-main);
}
.set-select option {
  background-color: #0f1118;
  color: var(--text-main);
}

/* Card element bottom bar controls */
.card-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.3rem;
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: 0.45rem;
}
.qty-controller {
  display: flex;
  align-items: center;
  background: rgba(10, 11, 14, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  overflow: hidden;
  height: 24px;
}
.qty-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  width: 20px;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.qty-btn:hover {
  background-color: var(--color-primary-dark);
  color: #fff;
}
.qty-val {
  width: 24px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-main);
  border-left: 1px solid rgba(255,255,255,0.06);
  border-right: 1px solid rgba(255,255,255,0.06);
}
.btn-delete-card {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.75rem;
  transition: color var(--transition-fast);
  padding: 2px;
}
.btn-delete-card:hover {
  color: var(--status-error);
}

/* Card Loading Shimmer Skeleton Vitals */
.card-item.loading {
  pointer-events: none;
  background: rgba(255, 255, 255, 0.005);
  border-color: rgba(255, 255, 255, 0.02);
}
.card-item.loading .card-img-container::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.08), transparent);
  animation: skeleton-shimmer 1.5s infinite;
}
.card-item.loading .card-title,
.card-item.loading .card-meta {
  background: #171922;
  border-radius: 4px;
  height: 12px;
  width: 80%;
  animation: skeleton-pulse 1.5s infinite alternate;
  color: transparent !important;
  text-shadow: none !important;
}
.card-item.loading .card-meta {
  width: 55%;
  height: 10px;
  margin-top: 4px;
}
.card-item.loading .qty-controller,
.card-item.loading .btn-delete-card,
.card-item.loading .set-select-group {
  opacity: 0.2;
}

@keyframes skeleton-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes skeleton-pulse {
  0% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

/* Centered spinner for loading card slots */
.card-loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.6rem;
  z-index: 5;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.65)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85));
}

/* General Popups Modals Layouts */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  overflow: hidden;
}
.modal {
  width: calc(100% - 3rem);
  max-width: 1440px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6), var(--shadow-neon-strong);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  animation: zoomIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover {
  color: var(--text-main);
}
.modal-body {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Specialized Popup Import Modal Styling */
.import-modal-desc {
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
}
.prepopulate-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  align-items: center;
}
.prepopulate-row .btn {
  flex-shrink: 0;
  height: 38px;
}

/* Warnings unmatched modal styling list */
.unmatched-list {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  max-height: 130px;
  overflow-y: auto;
  list-style-type: none;
}
.unmatched-list li {
  color: var(--status-error);
  font-family: monospace;
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.unmatched-list li::before {
  content: '•';
  color: var(--text-dim);
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
}

/* Skipped basic lands styling */
.card-item.skipped-land {
  opacity: 0.35;
  filter: grayscale(80%);
}
.card-item.skipped-land::after {
  content: 'SKIPPED';
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  background: rgba(239, 68, 68, 0.95);
  color: white;
  padding: 3px 10px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  letter-spacing: 0.05em;
}

/* Select Card Printing Modal Box Styles */
.printings-modal-box {
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.printings-modal-body {
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 0.5rem;
  margin-top: 0.5rem;
}
.printings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}
.printing-item {
  background: rgba(10, 11, 14, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}
.printing-item.loading-placeholder {
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.003);
}
.printing-item:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.35);
}
.printing-item.active {
  border-color: var(--color-accent);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.04);
}
.printing-item.active::before {
  content: '✓';
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--color-accent);
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.printing-img-container {
  aspect-ratio: 2.5/3.5;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.3);
}
.printing-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}
.printing-item:hover .printing-img {
  transform: scale(1.03);
}
.printing-info {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  text-align: center;
}
.printing-set-code {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
}
.printing-collector {
  font-size: 0.58rem;
  color: var(--text-muted);
}
.printing-set-name {
  font-size: 0.55rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Specialized Import Modal box width */
.import-modal-box {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.import-modal-box .modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(90vh - 6rem);
  padding-right: 0.5rem;
}

/* 2-Column Bottom Layout Split */
.import-modal-bottom-row {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 1.5rem;
  margin-top: 1rem;
  align-items: start;
}

@media (max-width: 768px) {
  .import-modal-bottom-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.precon-list-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.precon-select-button-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  align-items: center;
}

.custom-search-input {
  width: 100%;
  background: rgba(10, 11, 14, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.custom-search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

/* Premium Drag and Drop zone styling */
.drag-drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  min-height: 105px;
  padding: 1rem;
  text-align: center;
  background: rgba(10, 11, 14, 0.4);
  cursor: pointer; /* Change mouse icon to pointer when hovering */
  transition: border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}
.drag-drop-zone:hover, .drag-drop-zone.dragover {
  border-color: var(--color-primary);
  background: rgba(99, 102, 241, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.1);
}
.upload-icon {
  font-size: 1.8rem;
  color: var(--color-primary);
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}
.drag-drop-zone:hover .upload-icon {
  opacity: 1;
}
.upload-text {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-main);
}
.upload-subtext {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Precon visual decks selection elements */
.precon-visual-section {
  margin-bottom: 1.25rem;
}
.precon-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.precon-deck-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  z-index: 1;
}
.precon-deck-card:hover {
  transform: translateY(-8px) scale(1.15);
  border-color: var(--color-primary);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.6);
  z-index: 10;
}
.precon-deck-card img {
  width: 100%;
  aspect-ratio: 2.5 / 3.5;
  object-fit: cover;
  transition: transform var(--transition-normal);
}
.precon-deck-card:hover img {
  transform: scale(1.05);
}
.precon-deck-card-title {
  position: relative;
  background: rgba(10, 11, 14, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-main);
  text-align: center;
  line-height: 1.3;
  pointer-events: none;
  white-space: normal;
  box-sizing: border-box;
  width: 100%;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sets catalog grid elements */
.sets-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(175px, 100%), 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.set-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 0;
  cursor: pointer;
  background-color: var(--panel-bg);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  z-index: 1;
  box-sizing: border-box;
  overflow: hidden;
}
.set-card:hover {
  transform: translateY(-8px) scale(1.15);
  border-color: var(--color-primary);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.6);
  background-color: #11131e;
  z-index: 10;
}
.set-banner-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.set-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}
.set-card.has-fallback-icon {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1rem;
  min-height: 160px;
}
.set-card.has-fallback-icon .set-banner-container {
  width: 48px;
  height: 48px;
  aspect-ratio: auto;
  border-bottom: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), border var(--transition-fast);
  box-sizing: border-box;
}
.set-card.has-fallback-icon:hover .set-banner-container {
  background: #12100d;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.set-card.has-fallback-icon .set-banner-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: invert(72%) sepia(74%) saturate(415%) hue-rotate(7deg) brightness(97%) contrast(87%) drop-shadow(0 1.5px 3px rgba(0,0,0,0.5));
  transition: transform var(--transition-fast);
}
.set-card.has-fallback-icon:hover .set-banner-img {
  transform: scale(1.15);
}
.set-card.has-fallback-icon .set-details-container {
  padding: 0;
  background: none;
  gap: 0.25rem;
  align-items: center;
  width: 100%;
}
.set-card.has-fallback-icon .set-name {
  text-align: center;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.set-card.has-fallback-icon .set-meta {
  text-align: center;
}
.set-card:hover .set-banner-img {
  transform: scale(1.05);
}
.set-details-container {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: rgba(10, 11, 14, 0.2);
}
.set-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  text-align: left;
}
.set-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  text-align: left;
}


/* About header nav link and modal styling */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.about-nav-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  margin-left: 0.75rem;
}
.about-nav-link:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.05);
}
.about-modal-box {
  width: 100%;
  max-width: 700px;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}
.about-paragraph {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.about-paragraph strong {
  color: var(--text-main);
}

.about-stats-container {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}
.about-stats-title {
  margin-bottom: 0.75rem;
  color: var(--text-highlight);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  font-size: 0.8rem;
}
.about-stats-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.about-stats-col-title {
  font-weight: bold;
  margin-bottom: 0.25rem;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
}
.about-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 1.4;
  white-space: nowrap;
  gap: 0.75rem;
}
.about-stat-label {
  color: var(--text-muted);
}
.about-stat-val {
  font-weight: 500;
  color: var(--text-main);
}

@media (max-width: 680px) {
  .about-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.about-stats-storage {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.about-stats-storage span {
  color: var(--text-muted);
}
.about-stats-storage span strong {
  color: var(--text-highlight);
}
.about-stats-storage span span {
  color: var(--text-main);
  font-weight: 500;
}

/* Theme dropdown and glowing link styles */
.theme-selector-container {
  position: relative;
  display: none !important;
  align-items: center;
  margin-left: 0.5rem;
}
.theme-select {
  background: rgba(10, 11, 14, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px 4px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}
.theme-select:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}
.theme-select:focus {
  border-color: var(--color-primary);
}
.theme-select-icon {
  position: absolute;
  left: 10px;
  pointer-events: none;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.theme-select:hover + .theme-select-icon,
.theme-select:focus + .theme-select-icon {
  color: var(--text-main);
}

/* Guide Link & Glowing animation */
.guide-nav-link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.5rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.glowing-link {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: link-glow 2s infinite ease-in-out;
}

.glowing-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@keyframes link-glow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

/* ==========================================================================
   THEME 1: GILDED LEAF (Organic Gold Leaf)
   ========================================================================== */
.theme-gold-leaf {
  --bg-primary: #080604;
  --bg-secondary: #120f0b;
  --panel-bg: rgba(18, 14, 11, 0.8);
  --panel-border: #d4af37;
  --panel-border-hover: #ffec8b;
  
  --color-primary: #d4af37;
  --color-primary-dark: #aa8c2c;
  --color-secondary: #f3e5ab;
  --color-accent: #c5a02b;
  --color-accent-hover: #aa8c2c;
  
  --text-main: #fffdf8;
  --text-muted: #dcd4c5;
  --text-dim: #a89f8e;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --shadow-neon: 0 0 20px rgba(212, 175, 55, 0.15);
  --shadow-neon-strong: 0 0 25px rgba(243, 229, 171, 0.3);
}

body.theme-gold-leaf {
  background-color: transparent;
  background-image: 
    radial-gradient(at 10% 10%, rgba(212, 175, 55, 0.08) 0px, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='goldLeaf'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.15' numOctaves='3' result='noise'/%3E%3CfeColorMatrix type='matrix' values='0.15 0 0 0 0.85 0 0.15 0 0 0.7 0 0 0.15 0 0.3 0 0 0 0.15 0'/%3E%3CfeBlend mode='multiply' in='SourceGraphic' in2='noise'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23goldLeaf)' fill='%23d4af37'/%3E%3C/svg%3E");
}

.theme-gold-leaf .logo-accent {
  background: linear-gradient(135deg, #d4af37, #f3e5ab);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

.theme-gold-leaf .panel {
  border: 3px double #d4af37;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.3);
}
.theme-gold-leaf .panel:hover {
  border-color: #ffec8b;
  box-shadow: inset 0 0 16px rgba(212, 175, 55, 0.08), 0 8px 22px rgba(212, 175, 55, 0.2);
}

.theme-gold-leaf .btn-primary {
  background: linear-gradient(135deg, #d4af37, #aa8c2c);
  color: #0c0a08;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.18);
}
.theme-gold-leaf .btn-primary:hover {
  background: linear-gradient(135deg, #aa8c2c, #8c7220);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.theme-gold-leaf .btn-secondary {
  background: #181410;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--text-main);
}
.theme-gold-leaf .btn-secondary:hover {
  background: #241d18;
  border-color: #d4af37;
}

.theme-gold-leaf .btn-compile {
  background: linear-gradient(135deg, #e5c158, #b8860b);
  color: #0c0a08;
  box-shadow: 0 4px 12px rgba(218, 165, 32, 0.25);
}

.theme-gold-leaf .stat-pill {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--color-primary);
}

.theme-gold-leaf .toggle-group input[type="radio"]:checked + .toggle-btn {
  background: linear-gradient(135deg, #d4af37, #aa8c2c);
  color: #0c0a08;
}

.theme-gold-leaf .custom-select,
.theme-gold-leaf .custom-textarea,
.theme-gold-leaf #card-search-input, .custom-input {
  background: #120e0a;
  border: 1px solid #aa8c2c;
  color: var(--text-main);
}
.theme-gold-leaf .custom-select:focus,
.theme-gold-leaf .custom-textarea:focus,
.theme-gold-leaf #card-search-input:focus, .custom-input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.theme-gold-leaf .card-item:hover {
  border-color: #d4af37;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.theme-gold-leaf .dfc-badge,
.theme-gold-leaf .qty-badge {
  background: #d4af37;
  color: #0c0a08;
}

.theme-gold-leaf .theme-select {
  background: #181410;
  border: 1px solid #aa8c2c;
  color: var(--text-muted);
}

.theme-gold-leaf .glowing-link {
  background: linear-gradient(135deg, #d4af37, #f3e5ab);
  color: #1a150f;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
  animation: link-glow-leaf 2s infinite ease-in-out;
}
@keyframes link-glow-leaf {
  0%, 100% {
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 16px rgba(243, 229, 171, 0.7);
  }
}

/* ==========================================================================
   THEME 2: BURNISHED AUREUM (Brushed Gold Grain)
   ========================================================================== */
.theme-gold-burnished {
  --bg-primary: #120f0a;
  --bg-secondary: #1a160e;
  --panel-bg: rgba(22, 18, 11, 0.85);
  --panel-border: #aa8c2c;
  --panel-border-hover: #d4af37;
  
  --color-primary: #aa8c2c;
  --color-primary-dark: #8c7220;
  --color-secondary: #cd9b1d;
  --color-accent: #c5a02b;
  --color-accent-hover: #aa8c2c;
  
  --text-main: #f5eedc;
  --text-muted: #cabfa8;
  --text-dim: #9b9079;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  
  --shadow-neon: 0 0 15px rgba(170, 140, 44, 0.12);
  --shadow-neon-strong: 0 0 20px rgba(205, 155, 29, 0.25);
}

body.theme-gold-burnished {
  background-color: transparent;
  background-image: 
    radial-gradient(at 10% 10%, rgba(170, 140, 44, 0.08) 0px, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='brushedGold'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.03 0.8' numOctaves='2' result='noise'/%3E%3CfeColorMatrix type='matrix' values='0.1 0 0 0 0.8 0 0.1 0 0 0.65 0 0 0.1 0 0.4 0 0 0 0.08 0'/%3E%3CfeBlend mode='overlay' in='SourceGraphic' in2='noise'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23brushedGold)' fill='%23aa8c2c'/%3E%3C/svg%3E");
}

.theme-gold-burnished .logo-accent {
  background: linear-gradient(135deg, #aa8c2c, #cd9b1d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.theme-gold-burnished .panel {
  border: 2px solid #aa8c2c;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 175, 55, 0.15), 0 4px 12px rgba(0, 0, 0, 0.2);
}
.theme-gold-burnished .panel:hover {
  border-color: #d4af37;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 175, 55, 0.25), 0 6px 18px rgba(170, 140, 44, 0.15);
}

.theme-gold-burnished .btn-primary {
  background: linear-gradient(135deg, #aa8c2c, #8c7220);
  color: #fff;
  border: 1px solid #8c7220;
}
.theme-gold-burnished .btn-primary:hover {
  background: linear-gradient(135deg, #8c7220, #6e5917);
  box-shadow: 0 4px 12px rgba(170, 140, 44, 0.2);
}

.theme-gold-burnished .btn-secondary {
  background: #1a1610;
  border: 1px solid #8c7220;
  color: var(--text-main);
}
.theme-gold-burnished .btn-secondary:hover {
  background: #242017;
}

.theme-gold-burnished .btn-compile {
  background: linear-gradient(135deg, #cd9b1d, #aa8c2c);
  color: #fff;
}

.theme-gold-burnished .stat-pill {
  background: rgba(170, 140, 44, 0.1);
  border: 1px solid #8c7220;
  color: #aa8c2c;
}

.theme-gold-burnished .toggle-group input[type="radio"]:checked + .toggle-btn {
  background: #aa8c2c;
  color: #fff;
}

.theme-gold-burnished .custom-select,
.theme-gold-burnished .custom-textarea,
.theme-gold-burnished #card-search-input, .custom-input {
  background: #16120c;
  border: 1px solid #8c7220;
  color: var(--text-main);
}

.theme-gold-burnished .card-item {
  border: 2px solid #8c7220;
  background: #1d1912;
}
.theme-gold-burnished .card-item:hover {
  border-color: #aa8c2c;
  box-shadow: 0 8px 20px rgba(170, 140, 44, 0.2);
}

.theme-gold-burnished .dfc-badge,
.theme-gold-burnished .qty-badge {
  background: #aa8c2c;
  color: #fff;
}

.theme-gold-burnished .theme-select {
  background: #1a1610;
  border: 1px solid #8c7220;
  color: var(--text-muted);
}

.theme-gold-burnished .glowing-link {
  background: linear-gradient(135deg, #aa8c2c, #cd9b1d);
  color: #fff;
  border: 1px solid #8c7220;
  animation: link-glow-burnished 2s infinite ease-in-out;
}
@keyframes link-glow-burnished {
  0%, 100% {
    box-shadow: 0 0 6px rgba(170, 140, 44, 0.25);
  }
  50% {
    box-shadow: 0 0 14px rgba(205, 155, 29, 0.6);
  }
}

/* ==========================================================================
   THEME 3: ROYAL DAMASK (Gold Weave Brocade)
   ========================================================================== */
.theme-gold-damask {
  --bg-primary: #0a0a0c;
  --bg-secondary: #121216;
  --panel-bg: rgba(18, 18, 22, 0.85);
  --panel-border: #ffd700;
  --panel-border-hover: #fff3a8;
  
  --color-primary: #ffd700;
  --color-primary-dark: #b8860b;
  --color-secondary: #ffec8b;
  --color-accent: #c5a02b;
  --color-accent-hover: #aa8c2c;
  
  --text-main: #fff8e7;
  --text-muted: #ccc5b3;
  --text-dim: #999385;
  
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  
  --shadow-neon: 0 0 18px rgba(255, 215, 0, 0.15);
  --shadow-neon-strong: 0 0 25px rgba(255, 215, 0, 0.35);
}

body.theme-gold-damask {
  background-color: transparent;
  background-image: 
    radial-gradient(at 10% 10%, rgba(255, 215, 0, 0.1) 0px, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='%23aa8c2c' stroke-width='0.5' opacity='0.15'/%3E%3Ccircle cx='30' cy='30' r='5' fill='none' stroke='%23d4af37' stroke-width='0.5' opacity='0.25'/%3E%3Cpath d='M30 15 C35 15 35 25 30 25 C25 25 25 15 30 15 Z M30 35 C35 35 35 45 30 45 C25 45 25 35 30 35 Z' fill='none' stroke='%23d4af37' stroke-width='0.5' opacity='0.2'/%3E%3C/svg%3E");
}

.theme-gold-damask .logo-accent {
  background: linear-gradient(135deg, #ffd700, #ffec8b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.theme-gold-damask .panel {
  border: 1px solid #ffd700;
  box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.05), 0 0 0 2px rgba(184, 134, 11, 0.3), 0 5px 15px rgba(0, 0, 0, 0.5);
}
.theme-gold-damask .panel:hover {
  border-color: #fff3a8;
  box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.1), 0 0 0 2px rgba(184, 134, 11, 0.5), 0 8px 22px rgba(255, 215, 0, 0.2);
}

.theme-gold-damask .btn-primary {
  background: linear-gradient(135deg, #ffd700, #b8860b);
  color: #0c0a08;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}
.theme-gold-damask .btn-primary:hover {
  background: linear-gradient(135deg, #ffec8b, #ffd700);
  box-shadow: 0 4px 18px rgba(255, 215, 0, 0.45);
}

.theme-gold-damask .btn-secondary {
  background: #121215;
  border: 2px solid #b8860b;
  color: var(--text-main);
}
.theme-gold-damask .btn-secondary:hover {
  background: #1a1a1f;
  border-color: #ffd700;
}

.theme-gold-damask .btn-compile {
  background: linear-gradient(135deg, #ffd700, #b8860b);
  color: #0c0a08;
  font-weight: 700;
}

.theme-gold-damask .stat-pill {
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid #ffd700;
  color: #ffd700;
}

.theme-gold-damask .toggle-group input[type="radio"]:checked + .toggle-btn {
  background: #ffd700;
  color: #0c0a08;
}

.theme-gold-damask .custom-select,
.theme-gold-damask .custom-textarea,
.theme-gold-damask #card-search-input, .custom-input {
  background: #0e0e12;
  border: 1px solid #b8860b;
  color: var(--text-main);
}
.theme-gold-damask .custom-select:focus,
.theme-gold-damask .custom-textarea:focus,
.theme-gold-damask #card-search-input:focus, .custom-input:focus {
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.25);
}

.theme-gold-damask .card-item {
  border: 1px solid #ffd700;
  box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.4);
  background: #111115;
}
.theme-gold-damask .card-item:hover {
  border-color: #fff3a8;
  box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.6), 0 10px 25px rgba(255, 215, 0, 0.35);
}

.theme-gold-damask .dfc-badge,
.theme-gold-damask .qty-badge {
  background: #ffd700;
  color: #0c0a08;
  border: 1px solid #fffec8;
}

.theme-gold-damask .theme-select {
  background: #121215;
  border: 1px solid #b8860b;
  color: var(--text-muted);
}

.theme-gold-damask .glowing-link {
  background: linear-gradient(135deg, #ffd700, #b8860b);
  border: 2px solid #ffd700;
  color: #0c0a08;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
  animation: link-glow-damask 2s infinite ease-in-out;
}
@keyframes link-glow-damask {
  0%, 100% {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.8);
  }
}

/* ==========================================================================
   THEME 4: BAROQUE VELVET (Gold Scroll & Crimson Velvet)
   ========================================================================== */
.theme-gold-velvet {
  --bg-primary: #090304;
  --bg-secondary: #140507;
  --panel-bg: rgba(56, 10, 16, 0.85); /* burgundy velvet panel background */
  --panel-border: #d4af37;
  --panel-border-hover: #ffd700;
  
  --color-primary: #d4af37;
  --color-primary-dark: #aa8c2c;
  --color-secondary: #ffd700;
  --color-accent: #b8860b;
  --color-accent-hover: #8c7220;
  
  --text-main: #fffdf6;
  --text-muted: #e4d7bf;
  --text-dim: #b8a688;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --shadow-neon: 0 8px 24px rgba(212, 175, 55, 0.2);
  --shadow-neon-strong: 0 0 35px rgba(255, 215, 0, 0.4);
}

body.theme-gold-velvet {
  background-color: transparent;
  background-image: 
    radial-gradient(at 10% 10%, rgba(120, 20, 32, 0.35) 0px, transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0 C45 15 35 25 40 40 C45 55 35 65 40 80' fill='none' stroke='%236b131c' stroke-width='0.75' opacity='0.3'/%3E%3Cpath d='M0 40 C15 45 25 35 40 40 C55 45 65 35 80 40' fill='none' stroke='%236b131c' stroke-width='0.75' opacity='0.3'/%3E%3Ccircle cx='40' cy='40' r='3' fill='%23aa8c2c' opacity='0.3'/%3E%3C/svg%3E");
}

.theme-gold-velvet .logo-accent {
  background: linear-gradient(135deg, #ffd700, #ffec8b, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.35);
}

.theme-gold-velvet .panel {
  border: 4px double #d4af37;
  outline: 1px solid #5c0f17;
  outline-offset: -3px;
  box-shadow: inset 0 0 25px rgba(0,0,0,0.85), 0 5px 20px rgba(0,0,0,0.6);
}
.theme-gold-velvet .panel:hover {
  border-color: #ffd700;
  box-shadow: inset 0 0 30px rgba(212,175,55,0.12), 0 8px 25px rgba(212, 175, 55, 0.25);
}

.theme-gold-velvet .btn-primary {
  background: linear-gradient(135deg, #ffd700 0%, #fff3a8 30%, #d4af37 60%, #aa8c2c 100%);
  color: #1a0507;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
  border: 1px solid #aa8c2c;
}
.theme-gold-velvet .btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 18px rgba(255, 215, 0, 0.4);
}

.theme-gold-velvet .btn-secondary {
  background: #2b080c;
  border: 1px solid #aa8c2c;
  color: var(--text-main);
}
.theme-gold-velvet .btn-secondary:hover {
  background: #420d13;
  border-color: #ffd700;
}

.theme-gold-velvet .btn-compile {
  background: linear-gradient(135deg, #ffd700, #b8860b);
  color: #1a0507;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
}

.theme-gold-velvet .stat-pill {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid #aa8c2c;
  color: #ffd700;
}

.theme-gold-velvet .toggle-group input[type="radio"]:checked + .toggle-btn {
  background: linear-gradient(135deg, #ffd700, #d4af37);
  color: #1a0507;
}

.theme-gold-velvet .custom-select,
.theme-gold-velvet .custom-textarea,
.theme-gold-velvet #card-search-input, .custom-input {
  background: #2b080c;
  border: 1px solid #aa8c2c;
  color: var(--text-main);
}
.theme-gold-velvet .custom-select:focus,
.theme-gold-velvet .custom-textarea:focus,
.theme-gold-velvet #card-search-input:focus, .custom-input:focus {
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.theme-gold-velvet .card-item {
  border: 1px solid #aa8c2c;
  background: #2b080c;
}
.theme-gold-velvet .card-item:hover {
  border-color: #ffd700;
  box-shadow: 0 10px 22px rgba(212, 175, 55, 0.3);
}

.theme-gold-velvet .dfc-badge,
.theme-gold-velvet .qty-badge {
  background: #ffd700;
  color: #1a0507;
}

.theme-gold-velvet .theme-select {
  background: #2b080c;
  border: 1px solid #aa8c2c;
  color: var(--text-muted);
}

.theme-gold-velvet .glowing-link {
  background: linear-gradient(135deg, #ffd700, #aa8c2c);
  color: #1a0507;
  border: 1px solid #ffd700;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
  animation: link-glow-velvet 2s infinite ease-in-out;
}
@keyframes link-glow-velvet {
  0%, 100% {
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  }
}

/* ==========================================================================
   THEME 5: ANTIQUE GILDING (Distressed Antique Gold)
   ========================================================================== */
.theme-gold-antique {
  --bg-primary: #0c0a08;
  --bg-secondary: #16120e;
  --panel-bg: rgba(22, 18, 14, 0.88);
  --panel-border: #a89468;
  --panel-border-hover: #cbbba0;
  
  --color-primary: #c5b590;
  --color-primary-dark: #8f7f5d;
  --color-secondary: #e6ddc5;
  --color-accent: #a89468;
  --color-accent-hover: #8f7f5d;
  
  --text-main: #f5f0e6;
  --text-muted: #cfc5b3;
  --text-dim: #9e9482;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  --shadow-neon: 0 0 15px rgba(168, 148, 104, 0.12);
  --shadow-neon-strong: 0 0 25px rgba(230, 221, 197, 0.3);
}

body.theme-gold-antique {
  background-color: transparent;
  background-image: 
    radial-gradient(at 10% 10%, rgba(168, 148, 104, 0.1) 0px, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='distressedGold'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.08' numOctaves='4' result='noise'/%3E%3CfeColorMatrix type='matrix' values='0.25 0 0 0 0.75 0 0.25 0 0 0.65 0 0 0.25 0 0.45 0 0 0 0.25 0'/%3E%3CfeBlend mode='overlay' in='SourceGraphic' in2='noise'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23distressedGold)' fill='%23a89468' opacity='0.45'/%3E%3C/svg%3E");
}

.theme-gold-antique .logo-accent {
  background: linear-gradient(135deg, #c5b590, #e6ddc5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(168, 148, 104, 0.25);
}

.theme-gold-antique .panel {
  border: 3px solid #a89468;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.7), 0 5px 15px rgba(0, 0, 0, 0.4);
}
.theme-gold-antique .panel:hover {
  border-color: #cbbba0;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.7), 0 8px 20px rgba(168, 148, 104, 0.2);
}

.theme-gold-antique .btn-primary {
  background: linear-gradient(135deg, #c5b590, #8f7f5d);
  color: #16120e;
  font-weight: 700;
  border: 1px solid #8f7f5d;
}
.theme-gold-antique .btn-primary:hover {
  background: linear-gradient(135deg, #8f7f5d, #685b41);
}

.theme-gold-antique .btn-secondary {
  background: #1c1814;
  border: 1px solid #8f7f5d;
  color: var(--text-main);
}
.theme-gold-antique .btn-secondary:hover {
  background: #2b2520;
}

.theme-gold-antique .btn-compile {
  background: linear-gradient(135deg, #e6ddc5, #a89468);
  color: #16120e;
  font-weight: 700;
}

.theme-gold-antique .stat-pill {
  background: rgba(168, 148, 104, 0.08);
  border: 1px solid #8f7f5d;
  color: #c5b590;
}

.theme-gold-antique .toggle-group input[type="radio"]:checked + .toggle-btn {
  background: #c5b590;
  color: #16120e;
}

.theme-gold-antique .custom-select,
.theme-gold-antique .custom-textarea,
.theme-gold-antique #card-search-input, .custom-input {
  background: #16120e;
  border: 1px solid #8f7f5d;
  color: var(--text-main);
}
.theme-gold-antique .custom-select:focus,
.theme-gold-antique .custom-textarea:focus,
.theme-gold-antique #card-search-input:focus, .custom-input:focus {
  border-color: #c5b590;
}

.theme-gold-antique .card-item {
  border: 1px solid #8f7f5d;
  background: #1c1814;
}
.theme-gold-antique .card-item:hover {
  border-color: #c5b590;
  box-shadow: 0 8px 18px rgba(168, 148, 104, 0.2);
}

.theme-gold-antique .dfc-badge,
.theme-gold-antique .qty-badge {
  background: #c5b590;
  color: #16120e;
}

.theme-gold-antique .theme-select {
  background: #1c1814;
  border: 1px solid #8f7f5d;
  color: var(--text-muted);
}

.theme-gold-antique .glowing-link {
  background: linear-gradient(135deg, #c5b590, #a89468);
  color: #16120e;
  border: 1px solid #c5b590;
  box-shadow: 0 0 10px rgba(168, 148, 104, 0.35);
  animation: link-glow-antique-t 2s infinite ease-in-out;
}
@keyframes link-glow-antique-t {
  0%, 100% {
    box-shadow: 0 0 8px rgba(168, 148, 104, 0.3);
  }
  50% {
    box-shadow: 0 0 18px rgba(230, 221, 197, 0.65);
  }
}

/* ==========================================================================
   THEME 5b: FLORENTINE BRONZE (Distressed Burnished Bronze)
   ========================================================================== */
.theme-gold-antique-bronze {
  --bg-primary: #0a0806;
  --bg-secondary: #13100d;
  --panel-bg: rgba(22, 17, 13, 0.85);
  --panel-border: #8f6a40; /* copper-bronze */
  --panel-border-hover: #bda17e;
  
  --color-primary: #bda17e;
  --color-primary-dark: #8f6a40;
  --color-secondary: #d9c1a0;
  --color-accent: #a3794b;
  --color-accent-hover: #825f38;
  
  --text-main: #fcf9f5;
  --text-muted: #d5c8b7;
  --text-dim: #a49683;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  
  --shadow-neon: 0 0 15px rgba(143, 106, 64, 0.15);
  --shadow-neon-strong: 0 0 25px rgba(189, 161, 126, 0.35);
}

body.theme-gold-antique-bronze {
  background-color: transparent;
  background-image: 
    radial-gradient(at 10% 10%, rgba(143, 106, 64, 0.1) 0px, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='bronzeNoise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.06' numOctaves='3' result='noise'/%3E%3CfeColorMatrix type='matrix' values='0.2 0 0 0 0.5 0 0.15 0 0 0.35 0 0.1 0 0 0.25 0 0 0 0.2 0'/%3E%3CfeBlend mode='multiply' in='SourceGraphic' in2='noise'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23bronzeNoise)' fill='%238f6a40' opacity='0.35'/%3E%3C/svg%3E");
}

.theme-gold-antique-bronze .logo-accent {
  background: linear-gradient(135deg, #bda17e, #d9c1a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.theme-gold-antique-bronze .panel {
  border: 3px double #8f6a40;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6), 0 5px 15px rgba(0, 0, 0, 0.4);
}
.theme-gold-antique-bronze .panel:hover {
  border-color: #bda17e;
}

.theme-gold-antique-bronze .btn-primary {
  background: linear-gradient(135deg, #bda17e, #8f6a40);
  color: #0c0a08;
  font-weight: 700;
  border: 1px solid #70512f;
}

.theme-gold-antique-bronze .btn-secondary {
  background: #1a1612;
  border: 1px solid #8f6a40;
  color: var(--text-main);
}
.theme-gold-antique-bronze .btn-secondary:hover {
  background: #25201a;
}

.theme-gold-antique-bronze .btn-compile {
  background: linear-gradient(135deg, #d9c1a0, #8f6a40);
  color: #0c0a08;
  font-weight: 700;
}

.theme-gold-antique-bronze .stat-pill {
  background: rgba(143, 106, 64, 0.08);
  border: 1px solid #8f6a40;
  color: #bda17e;
}

.theme-gold-antique-bronze .toggle-group input[type="radio"]:checked + .toggle-btn {
  background: #bda17e;
  color: #0c0a08;
}

.theme-gold-antique-bronze .custom-select,
.theme-gold-antique-bronze .custom-textarea,
.theme-gold-antique-bronze #card-search-input, .custom-input {
  background: #13100c;
  border: 1px solid #8f6a40;
  color: var(--text-main);
}

.theme-gold-antique-bronze .card-item {
  border: 1px solid #8f6a40;
  background: #1a1612;
}
.theme-gold-antique-bronze .card-item:hover {
  border-color: #bda17e;
  box-shadow: 0 8px 18px rgba(143, 106, 64, 0.25);
}

.theme-gold-antique-bronze .dfc-badge,
.theme-gold-antique-bronze .qty-badge {
  background: #bda17e;
  color: #0c0a08;
}

.theme-gold-antique-bronze .theme-select {
  background: #1a1612;
  border: 1px solid #8f6a40;
  color: var(--text-muted);
}

.theme-gold-antique-bronze .glowing-link {
  background: linear-gradient(135deg, #bda17e, #8f6a40);
  color: #0c0a08;
  border: 1px solid #bda17e;
  animation: link-glow-bronze 2s infinite ease-in-out;
}
@keyframes link-glow-bronze {
  0%, 100% {
    box-shadow: 0 0 6px rgba(143, 106, 64, 0.25);
  }
  50% {
    box-shadow: 0 0 14px rgba(217, 193, 160, 0.6);
  }
}

/* ==========================================================================
   THEME 5c: VICTORIAN BRASS (Tarnished Brass & Olive Velvet)
   ========================================================================== */
.theme-gold-antique-brass {
  --bg-primary: #060805;
  --bg-secondary: #0d120a;
  --panel-bg: rgba(18, 30, 16, 0.85); /* dark olive-jade velvet */
  --panel-border: #bca136; /* Victorian brass */
  --panel-border-hover: #e5cd60;
  
  --color-primary: #bca136;
  --color-primary-dark: #8c751e;
  --color-secondary: #ebd371;
  --color-accent: #a58e2d;
  --color-accent-hover: #8c751e;
  
  --text-main: #f7f9f2;
  --text-muted: #c9cca7;
  --text-dim: #94997c;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --shadow-neon: 0 0 15px rgba(188, 161, 54, 0.15);
  --shadow-neon-strong: 0 0 25px rgba(235, 211, 113, 0.35);
}

body.theme-gold-antique-brass {
  background-color: transparent;
  background-image: 
    radial-gradient(at 10% 10%, rgba(18, 30, 16, 0.35) 0px, transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0 C42 12 38 20 40 30 C42 40 38 48 40 60 C42 70 38 76 40 80' fill='none' stroke='%23364f26' stroke-width='0.5' opacity='0.25'/%3E%3Ccircle cx='40' cy='40' r='2' fill='%23bca136' opacity='0.25'/%3E%3C/svg%3E");
}

.theme-gold-antique-brass .logo-accent {
  background: linear-gradient(135deg, #bca136, #ebd371);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.theme-gold-antique-brass .panel {
  border: 2px solid #bca136;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.8), 0 5px 15px rgba(0,0,0,0.5);
}
.theme-gold-antique-brass .panel:hover {
  border-color: #e5cd60;
  box-shadow: inset 0 0 24px rgba(188,161,54,0.1), 0 8px 20px rgba(188, 161, 54, 0.25);
}

.theme-gold-antique-brass .btn-primary {
  background: linear-gradient(135deg, #bca136, #8c751e);
  color: #060805;
  font-weight: 700;
  border: 1px solid #736017;
}

.theme-gold-antique-brass .btn-secondary {
  background: #111a0e;
  border: 1px solid #bca136;
  color: var(--text-main);
}
.theme-gold-antique-brass .btn-secondary:hover {
  background: #1b2916;
}

.theme-gold-antique-brass .btn-compile {
  background: linear-gradient(135deg, #ebd371, #bca136);
  color: #060805;
  font-weight: 700;
}

.theme-gold-antique-brass .stat-pill {
  background: rgba(188, 161, 54, 0.08);
  border: 1px solid #8c751e;
  color: #ebd371;
}

.theme-gold-antique-brass .toggle-group input[type="radio"]:checked + .toggle-btn {
  background: #bca136;
  color: #060805;
}

.theme-gold-antique-brass .custom-select,
.theme-gold-antique-brass .custom-textarea,
.theme-gold-antique-brass #card-search-input, .custom-input {
  background: #111a0e;
  border: 1px solid #8c751e;
  color: var(--text-main);
}

.theme-gold-antique-brass .card-item {
  border: 1px solid #8c751e;
  background: #111a0e;
}
.theme-gold-antique-brass .card-item:hover {
  border-color: #bca136;
  box-shadow: 0 8px 20px rgba(188, 161, 54, 0.25);
}

.theme-gold-antique-brass .dfc-badge,
.theme-gold-antique-brass .qty-badge {
  background: #bca136;
  color: #060805;
}

.theme-gold-antique-brass .theme-select {
  background: #111a0e;
  border: 1px solid #8c751e;
  color: var(--text-muted);
}

.theme-gold-antique-brass .glowing-link {
  background: linear-gradient(135deg, #bca136, #ebd371);
  color: #060805;
  border: 1px solid #bca136;
  animation: link-glow-brass 2s infinite ease-in-out;
}
@keyframes link-glow-brass {
  0%, 100% {
    box-shadow: 0 0 6px rgba(188, 161, 54, 0.25);
  }
  50% {
    box-shadow: 0 0 16px rgba(235, 211, 113, 0.7);
  }
}

/* ==========================================================================
   THEME 5d: ETRUSCAN PATINA (Verdigris Copper & Gold)
   ========================================================================== */
.theme-gold-antique-patina {
  --bg-primary: #050a0a;
  --bg-secondary: #0d1717;
  --panel-bg: rgba(13, 23, 23, 0.85);
  --panel-border: #4eb09d; /* verdigris patina */
  --panel-border-hover: #c9b06b; /* gold highlights */
  
  --color-primary: #c9b06b;
  --color-primary-dark: #8c723a;
  --color-secondary: #ebd371;
  --color-accent: #4eb09d;
  --color-accent-hover: #3d8c7d;
  
  --text-main: #e2f4f1;
  --text-muted: #a6c4bf;
  --text-dim: #7f9995;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  
  --shadow-neon: 0 0 15px rgba(78, 176, 157, 0.15);
  --shadow-neon-strong: 0 0 25px rgba(201, 176, 107, 0.3);
}

body.theme-gold-antique-patina {
  background-color: transparent;
  background-image: 
    radial-gradient(at 10% 10%, rgba(78, 176, 157, 0.15) 0px, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='patinaNoise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.05' numOctaves='3' result='noise'/%3E%3CfeColorMatrix type='matrix' values='0.1 0 0 0 0.25 0 0.2 0 0 0.55 0 0.2 0 0 0.45 0 0 0 0.25 0'/%3E%3CfeBlend mode='multiply' in='SourceGraphic' in2='noise'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23patinaNoise)' fill='%234eb09d' opacity='0.4'/%3E%3C/svg%3E");
}

.theme-gold-antique-patina .logo-accent {
  background: linear-gradient(135deg, #c9b06b, #4eb09d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(201, 176, 107, 0.25);
}

.theme-gold-antique-patina .panel {
  border: 2px solid #4eb09d;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.7), 0 0 0 2px rgba(201, 176, 107, 0.25);
}
.theme-gold-antique-patina .panel:hover {
  border-color: #c9b06b;
  box-shadow: inset 0 0 15px rgba(78,176,157,0.1), 0 0 0 2px rgba(201, 176, 107, 0.5), 0 8px 20px rgba(78, 176, 157, 0.25);
}

.theme-gold-antique-patina .btn-primary {
  background: linear-gradient(135deg, #c9b06b, #8c723a);
  color: #050a0a;
  font-weight: 700;
  border: 1px solid #735d2f;
}

.theme-gold-antique-patina .btn-secondary {
  background: #0d1717;
  border: 1px solid #4eb09d;
  color: var(--text-main);
}
.theme-gold-antique-patina .btn-secondary:hover {
  background: #142424;
}

.theme-gold-antique-patina .btn-compile {
  background: linear-gradient(135deg, #c9b06b, #4eb09d);
  color: #050a0a;
  font-weight: 700;
}

.theme-gold-antique-patina .stat-pill {
  background: rgba(78, 176, 157, 0.08);
  border: 1px solid #4eb09d;
  color: #c9b06b;
}

.theme-gold-antique-patina .toggle-group input[type="radio"]:checked + .toggle-btn {
  background: #c9b06b;
  color: #050a0a;
}

.theme-gold-antique-patina .custom-select,
.theme-gold-antique-patina .custom-textarea,
.theme-gold-antique-patina #card-search-input, .custom-input {
  background: #0d1717;
  border: 1px solid #4eb09d;
  color: var(--text-main);
}
.theme-gold-antique-patina .custom-select:focus,
.theme-gold-antique-patina .custom-textarea:focus,
.theme-gold-antique-patina #card-search-input:focus, .custom-input:focus {
  border-color: #c9b06b;
}

.theme-gold-antique-patina .card-item {
  border: 1px solid #4eb09d;
  background: #0d1717;
}
.theme-gold-antique-patina .card-item:hover {
  border-color: #c9b06b;
  box-shadow: 0 8px 18px rgba(78, 176, 157, 0.3);
}

.theme-gold-antique-patina .dfc-badge,
.theme-gold-antique-patina .qty-badge {
  background: #c9b06b;
  color: #050a0a;
  border: 1px solid #4eb09d;
}

.theme-gold-antique-patina .theme-select {
  background: #0d1717;
  border: 1px solid #4eb09d;
  color: var(--text-muted);
}

.theme-gold-antique-patina .glowing-link {
  background: linear-gradient(135deg, #c9b06b, #4eb09d);
  color: #050a0a;
  border: 1px solid #c9b06b;
  animation: link-glow-patina 2s infinite ease-in-out;
}
@keyframes link-glow-patina {
  0%, 100% {
    box-shadow: 0 0 6px rgba(78, 176, 157, 0.25);
  }
  50% {
    box-shadow: 0 0 16px rgba(201, 176, 107, 0.65);
  }
}

/* ==========================================================================
   CUSTOM BEHAVIORS (Default Theme / Ready Glow / Hover Adjustments)
   ========================================================================== */

/* Ready glow pulsing animation when PDF is compiled and ready to download */
.ready-glow {
  animation: compile-btn-glow 1.5s infinite ease-in-out !important;
}

@keyframes compile-btn-glow {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25), 0 0 0 0px rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.6), 0 0 15px 5px rgba(16, 185, 129, 0.4);
  }
}

/* Theme-specific compiler glows */
[class*="theme-gold"] .ready-glow {
  animation: compile-btn-glow-gold 1.5s infinite ease-in-out !important;
}

@keyframes compile-btn-glow-gold {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25), 0 0 0 0px rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.6), 0 0 15px 5px rgba(212, 175, 55, 0.4);
  }
}

/* Tip / Ko-fi Donation Modal Styles */
.tip-modal-box {
  width: 100%;
  max-width: 650px;
  height: auto;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}
.tip-modal-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.25rem;
}
.tip-modal-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  align-items: start;
}
.tip-modal-left {
  display: flex;
  justify-content: center;
  align-items: center;
}
.tip-modal-left img {
  width: 180px;
  height: 252px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.2);
  transition: transform 0.3s ease;
}
.tip-modal-left img:hover {
  transform: scale(1.03);
}
.tip-modal-right {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 252px;
}
.tip-text-bubble {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-family: var(--font-display), Georgia, serif;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-main);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  font-style: italic;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Highly visible progress bar styles specifically for tip modal */
#tip-progress-indicator .progress-bar {
  height: 8px;
  border-radius: 4px;
  background: #0d0f14;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}
#tip-progress-indicator .progress-bar::after {
  background: linear-gradient(90deg, #10b981, #06b6d4, #8b5cf6);
  border-radius: 4px;
}
#tip-progress-indicator .progress-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.3rem;
}
.tip-text-bubble span {
  position: relative;
  z-index: 2;
}
.quote-icon-left {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 1.2rem;
  color: rgba(212, 175, 55, 0.2);
}
.quote-icon-right {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 1.2rem;
  color: rgba(212, 175, 55, 0.2);
}
.tip-iframe-container {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  background: rgba(255, 255, 255, 0.02);
}
.tip-iframe-container iframe {
  display: block !important;
  height: 46px !important;
  width: 290px !important;
  margin: 0 auto !important;
  border: none !important;
  background: transparent !important;
}

/* ==========================================================================
   RESPONSIVE & MOBILE-FRIENDLY BREAKPOINTS
   ========================================================================== */

@media (max-width: 680px) {
  /* Mobile Tip Modal Overrides */
  .tip-modal-box {
    width: 95% !important;
    height: 90vh !important;
    max-height: 90vh !important;
    padding: 1rem !important;
  }
  .tip-modal-layout {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .tip-modal-left {
    position: static !important;
  }
  .tip-modal-left img {
    max-width: 180px !important;
  }
  .tip-text-bubble {
    font-size: 0.85rem !important;
    padding: 1rem !important;
  }
  .tip-iframe-container iframe {
    height: 480px !important;
  }

  .nav-text {
    display: none !important;
  }
  .header-separator {
    display: none !important;
  }
  .header-title {
    display: none !important;
  }
  .stats-pills {
    font-size: 0.7rem !important;
    gap: 0.35rem !important;
  }
  .stat-pill {
    padding: 2px 6px !important;
  }
  .about-nav-link {
    margin-left: 0.25rem !important;
    padding: 4px 8px !important;
  }
  .guide-nav-link {
    margin-left: 0.25rem !important;
    padding: 4px 8px !important;
  }
  .app-header-compact {
    padding: 0.5rem 1rem !important;
  }
}

@media (max-width: 600px) {
  body {
    padding: 0.75rem !important;
  }
  .app-container {
    gap: 0.75rem !important;
  }
  .app-header-compact {
    top: 0.75rem !important;
  }
  .panel {
    padding: 1rem !important;
  }
  
  /* Cards grid overrides on mobile */
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    gap: 0.75rem !important;
  }
  .cards-grid.size-sm {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    gap: 0.75rem !important;
  }
  .cards-grid.size-lg {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 1rem !important;
  }
  
  /* Precon deck card hover scaling limit to prevent container clipping */
  .precon-deck-card:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4) !important;
  }
  
  /* Modals */
  .modal {
    width: calc(100% - 1.5rem) !important;
    padding: 1rem !important;
    border-radius: var(--radius-md) !important;
  }
  .import-modal-box .modal-body {
    padding-right: 0.25rem !important;
  }
  
  /* Select Card Printing Modal Grid Override */
  .printings-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
    gap: 0.75rem !important;
  }
}

/* ==========================================================================
   FAQ & Guide Layout CSS
   ========================================================================== */

/* FAQ Dropdown in Top Bar */
.faq-dropdown {
  position: relative;
  display: inline-block;
  margin-left: 0.5rem;
}
.faq-trigger {
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.5rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}
.faq-trigger i:last-child {
  transition: transform var(--transition-fast);
}
.faq-dropdown.active .faq-trigger i:last-child {
  transform: rotate(180deg);
}
.faq-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width: 260px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
}
.faq-menu::before {
  content: '';
  position: absolute;
  top: -0.65rem;
  left: 0;
  right: 0;
  height: 0.65rem;
  background: transparent;
}
.faq-dropdown:hover .faq-menu,
.faq-dropdown.active .faq-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.faq-item {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.65rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}
.faq-item:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.05);
}
.faq-item i {
  width: 16px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-primary);
}
[class*="theme-gold"] .faq-item i {
  color: var(--gold-text) !important;
}

/* Guide Common Styles */
.guide-container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 0;
}
.guide-section {
  margin-bottom: 2rem;
}
.guide-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  background: linear-gradient(135deg, var(--text-main) 40%, var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[class*="theme-gold"] .guide-title {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.guide-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.step-card {
  margin-bottom: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}
.step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.4);
}
[class*="theme-gold"] .step-card:hover {
  border-color: var(--gold-border) !important;
}
.step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.step-number {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}
[class*="theme-gold"] .step-number {
  background: var(--gold-grad) !important;
  color: #0c0a08 !important;
  box-shadow: var(--gold-shadow) !important;
}
.theme-paper .step-number {
  color: #fffcf5;
  border-radius: 0px !important;
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}
.step-content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.step-content p {
  margin-bottom: 1rem;
}
.step-content strong {
  color: var(--text-main);
}
.step-content ul, .step-content ol {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
}
.step-content li {
  margin-bottom: 0.5rem;
}

/* Media Components */
.faq-media {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin: 1.5rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.faq-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.faq-placeholder-media {
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.06) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/9;
  color: var(--text-muted);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  gap: 0.5rem;
  text-align: center;
  padding: 2rem;
}
.faq-placeholder-media i {
  font-size: 2.5rem;
  color: var(--color-primary);
  opacity: 0.6;
}
[class*="theme-gold"] .faq-placeholder-media i {
  color: var(--gold-text) !important;
}
.back-btn-row {
  margin-top: 2rem;
  text-align: center;
}

@media (max-width: 680px) {
  .faq-dropdown .nav-text {
    display: none;
  }
  .faq-menu {
    right: auto;
    left: 0;
    min-width: 220px;
  }
}

/* Breadcrumbs styling */
.breadcrumbs {
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  width: 100%;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
}
.breadcrumbs li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.breadcrumbs li a:hover {
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}
.breadcrumbs li.separator {
  color: var(--text-dim);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  user-select: none;
}
.breadcrumbs li span[aria-current="page"] {
  color: var(--text-main);
  font-weight: 600;
  white-space: nowrap;
}

/* Scrollable dropdown menus and separators */
@media (min-width: 681px) {
  .faq-menu.scrollable {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    width: 520px;
    max-height: none;
    overflow-y: visible;
    padding: 0.5rem;
    gap: 0.15rem;
    left: 0;
    right: auto;
  }
  .faq-menu.scrollable .menu-section-title {
    grid-column: span 2;
  }
  .faq-menu.scrollable .menu-divider {
    grid-column: span 2;
  }
}
@media (max-width: 680px) {
  .faq-menu.scrollable {
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
  }
}
.menu-section-title {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 1rem 0.25rem 1rem;
  user-select: none;
  pointer-events: none;
}
.menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.35rem 0;
}




