/* RoyalQR Studio - Luxury Theme & Layout Styles */
:root {
  --bg-main: #090D16;
  --bg-card: rgba(15, 23, 42, 0.85);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-input: #0B1120;
  --bg-input-border: #1E293B;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --accent-gold: #F59E0B;
  --accent-gold-hover: #D97706;
  --accent-glow: rgba(245, 158, 11, 0.15);
  --primary-btn: #3B82F6;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html.light {
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-border: #E2E8F0;
  --bg-input: #F1F5F9;
  --bg-input-border: #CBD5E1;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --accent-gold: #D97706;
  --accent-gold-hover: #B45309;
  --accent-glow: rgba(217, 119, 6, 0.1);
  --primary-btn: #2563EB;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  background-image: 
    radial-gradient(at 0% 0%, rgba(245, 158, 11, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* App Container */
.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px 60px;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--bg-card-border);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #F59E0B, #B45309);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.brand-text h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #FFFFFF 30%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
html.light .brand-text h1 {
  background: linear-gradient(135deg, #0F172A 30%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.header-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-btn {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.tool-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.tool-btn.btn-presets {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(180, 83, 9, 0.15));
  border-color: rgba(245, 158, 11, 0.3);
  color: #FBBF24;
}
.tool-btn.btn-presets:hover {
  border-color: #F59E0B;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.2);
}

/* Badge counters */
.badge-count {
  background: #3B82F6;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
}

/* Studio Layout (2 Columns: Controls on Left, Sticky Live Preview on Right) */
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 880px) {
  .studio-grid {
    display: flex;
    flex-direction: column;
  }
  .preview-sticky-col {
    order: -1; /* Places the Live Preview at the VERY TOP on mobile / narrow viewports */
    position: static !important;
    width: 100%;
    margin-bottom: 24px;
  }
}

/* Panels */
.studio-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Content Type Bar */
.type-selector-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--bg-card-border);
}

.type-btn {
  background: var(--bg-input);
  border: 1px solid var(--bg-input-border);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.type-btn:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.type-btn.active {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  border-color: #3B82F6;
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Form Panels */
.type-form-panel {
  display: none;
  animation: fadeIn 0.2s ease-in-out;
}
.type-form-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--bg-input-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 10px 14px;
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Accordion Section */
.accordion-wrapper {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-section {
  background: var(--bg-input);
  border: 1px solid var(--bg-input-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.accordion-header {
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  user-select: none;
  background: rgba(255, 255, 255, 0.02);
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.accordion-icon {
  transition: transform 0.25s ease;
  font-size: 12px;
  color: var(--text-muted);
}

.accordion-section.is-open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.accordion-section.is-open .accordion-content {
  padding: 16px 18px 20px;
  max-height: 1200px;
}

/* Visual Button Grids */
.visual-btn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.visual-choice-btn {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.visual-choice-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.visual-choice-btn.active {
  border-color: #F59E0B;
  background: rgba(245, 158, 11, 0.1);
  color: #FBBF24;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.sample-dot-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Color Controls */
.color-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.color-input-wrapper {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--bg-input-border);
  flex-shrink: 0;
  cursor: pointer;
}

.color-picker-native {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  border: none;
  background: none;
}

.color-hex-input {
  width: 110px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 8px 10px;
  font-family: monospace;
  font-size: 13px;
  text-transform: uppercase;
}

/* Swatches */
.palette-swatches-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.palette-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.palette-swatch:hover {
  transform: scale(1.15);
  border-color: white;
}

/* Sliders */
.slider-control-group {
  margin-bottom: 14px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.range-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #1E293B;
  outline: none;
  -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #F59E0B;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

/* Presets Logo Grid */
.preset-icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.preset-icon-btn {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.preset-icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.preset-icon-btn.active {
  border-color: #F59E0B;
  background: rgba(245, 158, 11, 0.15);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.preset-icon-btn svg {
  width: 22px;
  height: 22px;
}

.custom-logo-preview-box {
  margin-top: 10px;
}

.custom-logo-preview-card {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 12px;
  max-width: 224px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.custom-logo-img-wrap {
  width: 100%;
  max-width: 200px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.05) 0% 25%, transparent 0% 50%) 50% / 14px 14px;
  border: 1px dashed var(--bg-card-border);
  border-radius: var(--radius-sm);
  padding: 8px;
}

.custom-logo-preview-img {
  max-width: 200px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.custom-logo-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.custom-logo-status-tag {
  font-size: 11px;
  color: #10B981;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.custom-logo-remove-btn {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.custom-logo-remove-btn:hover {
  background: #EF4444;
  color: white;
}

/* Right Sticky Preview Column */
.preview-sticky-col {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #F87171;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 20px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 6px #EF4444;
  animation: liveDotPulse 1.4s infinite ease-in-out;
}

@keyframes liveDotPulse {
  0% { transform: scale(0.85); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.85); opacity: 0.7; }
}

.quality-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.quality-excellent {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.quality-good {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.quality-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* QR Live Container */
.qr-preview-wrapper {
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.03) 0% 25%, transparent 0% 50%) 50% / 20px 20px;
  border: 1px dashed var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 24px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  margin-bottom: 16px;
}

.qr-box {
  display: inline-block;
  transition: transform 0.2s ease;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
}

.qr-box:hover {
  transform: scale(1.02);
}

.qr-box canvas, .qr-box svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Live Decoded Payload snippet */
.payload-snippet {
  background: var(--bg-input);
  border: 1px solid var(--bg-input-border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: left;
  margin-bottom: 16px;
  word-break: break-all;
}

/* Quick Tools */
.quick-tools-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.btn-secondary {
  background: var(--bg-input);
  border: 1px solid var(--bg-input-border);
  color: var(--text-main);
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Export Hub */
.export-section {
  border-top: 1px solid var(--bg-card-border);
  padding-top: 18px;
  text-align: left;
}

.export-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-download-primary {
  width: 100%;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #000;
  font-weight: 700;
  padding: 13px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: var(--transition);
  margin-bottom: 10px;
}

.btn-download-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
}

.export-formats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.btn-format {
  background: var(--bg-input);
  border: 1px solid var(--bg-input-border);
  color: var(--text-main);
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.btn-format:hover {
  background: #3B82F6;
  border-color: #60A5FA;
  color: white;
}

/* Modals & Backdrop */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: modalScale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1E293B;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

/* Templates Grid */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

.template-card {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
}

.template-card:hover {
  transform: translateY(-3px);
  border-color: #F59E0B;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
}

.template-preview {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.template-sample-dots {
  width: 50px;
  height: 50px;
  border-radius: 10px;
}

.template-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}

.template-meta {
  padding: 10px 12px;
}

.template-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.template-cat {
  font-size: 11px;
  color: var(--text-muted);
}

/* History Drawer */
.history-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: #0B1120;
  border-left: 1px solid #1E293B;
  z-index: 1100;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.history-drawer.active {
  right: 0;
}

.history-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.history-item-card {
  background: #162032;
  border: 1px solid #283548;
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.history-thumb-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: white;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.history-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.history-item-info {
  flex: 1;
  min-width: 0;
}

.history-badge {
  background: #2563EB;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.history-item-title {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
}

.history-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.history-btn-restore {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.history-btn-del {
  background: none;
  border: none;
  color: #EF4444;
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1E293B;
  border: 1px solid #3B82F6;
  color: #F8FAFC;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2000;
}

.toast-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Luxury Agency Footer & Organization Branding */
.app-footer {
  margin-top: 54px;
  padding-top: 24px;
}

.footer-premium-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: var(--transition);
}

html.light .footer-premium-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 0 1px 1px rgba(0, 0, 0, 0.04);
}

.footer-main-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 860px) {
  .footer-main-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Company Identity Column */
.footer-identity-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-crown-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.25));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-company-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-main);
  text-decoration: none;
  background: linear-gradient(135deg, #F59E0B 20%, #FBBF24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: filter 0.2s ease;
}

.footer-company-name:hover {
  filter: brightness(1.25);
}

.footer-verified-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10B981;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
}

.footer-tagline-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 2px;
}

html.light .footer-tagline-text {
  color: #1E293B;
}

.footer-mission-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Info & Actions Column */
.footer-info-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--bg-input-border);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-muted);
}

html.light .footer-contact-pill {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #475569;
}

.pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F59E0B;
  flex-shrink: 0;
}

.pill-text {
  font-size: 12px;
  font-weight: 500;
  word-break: break-word;
}

.footer-buttons-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  background: var(--bg-input);
  border: 1px solid var(--bg-input-border);
  color: var(--text-main);
  transition: var(--transition);
}

.footer-action-btn:hover {
  border-color: #3B82F6;
  color: #60A5FA;
  transform: translateY(-1px);
}

html.light .footer-action-btn {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #334155;
}

html.light .footer-action-btn:hover {
  background: #F1F5F9;
  border-color: #2563EB;
  color: #1D4ED8;
}

.footer-action-highlight {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.2));
  border-color: rgba(245, 158, 11, 0.35);
  color: #FBBF24;
}

.footer-action-highlight:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.35));
  border-color: #F59E0B;
  color: #F59E0B;
}

html.light .footer-action-highlight {
  background: #FEF3C7;
  border-color: #FDE68A;
  color: #B45309;
}

html.light .footer-action-highlight:hover {
  background: #FDE68A;
  border-color: #D97706;
  color: #92400E;
}

.external-arrow {
  transition: transform 0.2s ease;
}

.footer-action-highlight:hover .external-arrow {
  transform: translate(2px, -2px);
}

/* Hairline Divider & Bottom Subbar */
.footer-bottom-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--bg-card-border);
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

html.light .footer-bottom-divider {
  border-top-color: #E2E8F0;
  color: #64748B;
}

.brand-highlight {
  color: var(--text-main);
  font-weight: 700;
}

html.light .brand-highlight {
  color: #0F172A;
}

.footer-cr-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.sep-dot {
  opacity: 0.4;
}
