:root { 
  --bg: #2c3541;
  --card: #3a4452;
  --text: #f3f3f3;
  --muted: #9ca3af;
  --accent: #5b9cf5;
  --bad: #ef5350;
  --btn-bg: #4a5568;
  --disabled: #6b7280;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', Ubuntu, Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

/* Header, menu, etc. */
.header { display:flex; justify-content:flex-end; align-items:center; padding:20px 24px; gap:16px; position:relative; z-index:100; }
.logo { font-size:24px; font-weight:700; color:var(--text); letter-spacing:-0.5px; margin-right:auto; }
.license-btn {
  padding:10px 20px; background:linear-gradient(135deg,#f59e0b 0%,#d97706 100%);
  border:none; border-radius:20px; color:white; font-size:13px; font-weight:600;
  cursor:pointer; transition:all .3s ease; box-shadow:0 4px 12px rgba(245,158,11,.3); white-space:nowrap;
}
.license-btn.active { background:linear-gradient(135deg,#10b981 0%,#059669 100%); box-shadow:0 4px 12px rgba(16,185,129,.3); }
.license-btn[disabled]{ opacity:.6; cursor:not-allowed; }

.menu-container { position:relative; display:none; }
.menu-container.show { display:block; }
.menu-container.hidden { display:none; }
.menu-toggle {
  width:50px; height:50px; border-radius:50%; background:var(--btn-bg); border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center; color:var(--text);
  transition:all .3s cubic-bezier(.4,0,.2,1); box-shadow:0 4px 12px rgba(0,0,0,.3);
}
.menu-toggle:hover { background:#5a6578; transform:scale(1.05); }
.menu-toggle.active { background: var(--accent); }
.menu-icon { width:20px; height:20px; position:relative; display:flex; flex-direction:column; justify-content:space-between; }
.menu-icon span { display:block; height:2px; width:100%; background: var(--text); border-radius:2px; transition: all .3s ease; }
.menu-toggle.active .menu-icon span:nth-child(1){ transform: translateY(9px) rotate(45deg); }
.menu-toggle.active .menu-icon span:nth-child(2){ opacity:0; }
.menu-toggle.active .menu-icon span:nth-child(3){ transform: translateY(-9px) rotate(-45deg); }

.menu-items { position:absolute; top:60px; right:0; display:flex; flex-direction:column; gap:12px; opacity:0; pointer-events:none; transform:translateY(-10px); transition:all .3s cubic-bezier(.4,0,.2,1); }
.menu-items.active { opacity:1; pointer-events:all; transform:translateY(0); }
.menu-btn {
  display:flex; align-items:center; gap:12px; padding:14px 20px; background:var(--btn-bg); border:none; border-radius:25px;
  color:var(--text); font-size:14px; font-weight:500; cursor:pointer; white-space:nowrap;
  box-shadow:0 4px 12px rgba(0,0,0,.3); transition:all .3s ease; animation: slideIn .3s ease forwards; opacity:0;
}
.menu-items.active .menu-btn:nth-child(1){ animation-delay:.05s } 
.menu-items.active .menu-btn:nth-child(2){ animation-delay:.1s } 
.menu-items.active .menu-btn:nth-child(3){ animation-delay:.15s } 
.menu-items.active .menu-btn:nth-child(4){ animation-delay:.2s } 
.menu-items.active .menu-btn:nth-child(5){ animation-delay:.25s } 
.menu-items.active .menu-btn:nth-child(6){ animation-delay:.3s } 
@keyframes slideIn { from{opacity:0; transform:translateX(20px)} to{opacity:1; transform:translateX(0)} }
.menu-btn:hover:not(.disabled) { background:#5a6578; transform:translateX(-5px); }
.menu-btn svg { width:18px; height:18px; stroke: currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* GLOBAL DISABLED VISUALS */
.menu-btn.disabled, .menu-btn[disabled],
.action-btn[disabled], .action-btn.disabled {
  opacity: .45;
  cursor: not-allowed;
}
input[type=file]{ display:none; }

/* Canvas area */
.canvas-container { 
  flex:1; display:flex; justify-content:center; align-items:center; 
  padding:20px; overflow:hidden; position:relative; 
}

/* Zoom UI — minimalist vertical control pinned over the canvas */
.zoom-ui {
  display: none;
  position: absolute;
  padding: 6px 8px;
  gap: 6px;
  border-radius: 10px;
  background: rgba(0,0,0,0.20);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 4;
  pointer-events: auto;
  transform-origin: top right;
}
.zoom-ui.show { display: inline-flex; }
.zoom-glyph { opacity: .85; }

.zoom-ui input[type="range"] {
  -webkit-appearance: slider-vertical;
  writing-mode: bt-lr;
  accent-color: var(--accent);
  width: 6px;
  height: 120px;
  margin: 0;
}
@supports not (-webkit-appearance: slider-vertical) {
  .zoom-ui input[type="range"] {
    transform: rotate(-90deg);
    transform-origin: center;
    width: 120px;
    height: 6px;
  }
}
.zoom-value { min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; opacity: 0.9; }

/* License modal */
.license-panel { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 5; pointer-events: none; }
.license-card {
  pointer-events: all;
  width: min(560px, 92vw);
  background: rgba(26, 32, 44, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  display: none;
}
.license-card.show { display: block; }
.license-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.license-sub { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.license-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; }
.license-input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); background: #2f3846; color: var(--text); outline: none; font-size: 14px; }
.license-input.error { border-color:#ef5350; }
.license-input.success { border-color:#10b981; }
.modal-btn { padding:10px 14px; border:none; border-radius:10px; cursor:pointer; font-weight:600; font-size:14px; }
.modal-btn.primary { background:#5b9cf5; color:#fff; }
.modal-btn.secondary { background:#4a5568; color:#fff; }

/* Scrolling showcase behind canvas */
.mockup-showcase { 
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  z-index: 0;
}
.mockup-track { 
  display: inline-flex; 
  align-items: center;
  gap: 40px; 
  will-change: transform; 
  backface-visibility: hidden; 
  transform: translate3d(0,0,0); 
}
.mockup-item { 
  flex: 0 0 auto; 
  width: 512px; 
  height: 512px; 
  border-radius: 16px; 
  object-fit: contain; 
  filter: grayscale(30%) brightness(0.8); 
}

/* Canvas and overlays */
canvas { 
  max-width:100%; 
  max-height:100%; 
  border-radius:16px; 
  box-shadow:0 8px 32px rgba(0,0,0,.4); 
  background:var(--card);
  position: relative;
  z-index: 1;
  display: none;
}

.empty-state { 
  position:absolute; 
  text-align:center; 
  max-width:600px; 
  padding:40px; 
  pointer-events:none; 
  transition:opacity .5s ease, visibility .5s ease;
  z-index: 2;
}
.empty-state.hidden { opacity:0; visibility:hidden; }
.empty-state h2 { font-size:32px; margin:0 0 16px 0; color:var(--text); font-weight:600; }
.empty-state p { font-size:16px; color:var(--muted); line-height:1.6; margin:0 0 12px 0; }
.empty-state .subtitle { font-size:18px; color:var(--muted); margin:0 0 24px 0; line-height:1.5; }
.empty-state .license-notice { display:inline-block; margin-top:24px; padding:12px 20px; background:rgba(245,158,11,.1); border:1px solid rgba(245,158,11,.3); border-radius:8px; color:#f59e0b; font-size:14px; font-weight:500; }
.empty-state .license-notice.active { background:rgba(16,185,129,.1); border-color:rgba(16,185,129,.3); color:#10b981; }

/* Floating buttons & states */
.action-buttons { position:fixed; bottom:30px; right:30px; display:flex; flex-direction:column; gap:16px; z-index:50; }
.action-btn { width:56px; height:56px; border-radius:16px; background:var(--accent); border:none; cursor:pointer; display:flex;
  align-items:center; justify-content:center; color:white; box-shadow:0 4px 16px rgba(91,156,245,.4); transition:all .3s ease; }
.action-btn:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(91,156,245,.6); }
.action-btn:active { transform:scale(.98); }
.action-btn.secondary { background:var(--btn-bg); color:var(--text); box-shadow:0 4px 16px rgba(0,0,0,.3); }
.action-btn.active { outline:3px solid rgba(91,156,245,.6); }
.action-btn[disabled], .action-btn.disabled { opacity:.45; cursor:not-allowed; }
/* Resize glyphs inside action buttons */
.action-btn svg {
  width: 18px;   /* default is ~24px */
  height: 18px;
  stroke-width: 1.2; /* optional: slightly bolder lines */
}


@keyframes pulseRingRed {
  0%   { box-shadow: 0 0 0 0 rgba(230,69,69,.55), 0 0 0 6px rgba(230,69,69,.0); }
  70%  { box-shadow: 0 0 0 6px rgba(230,69,69,.0), 0 0 0 12px rgba(230,69,69,.0); }
  100% { box-shadow: 0 0 0 0 rgba(230,69,69,.0), 0 0 0 0 rgba(230,69,69,.0); }
}
body.editing .action-buttons .action-btn:not(#editBtn) { opacity:.35; pointer-events:auto; }
body.editing #editBtn { 
  animation: pulseRingRed 1.5s ease-out infinite; 
  background: linear-gradient(135deg, #ff6b6b 0%, #e64545 100%);
  box-shadow: 0 4px 16px rgba(230,69,69,.4);
}

/* Toast & error */
.status-toast { position:fixed; bottom:100px; left:50%; transform:translateX(-50%) translateY(100px); padding:12px 24px; border-radius:25px; font-size:14px; font-weight:500; box-shadow:0 4px 16px rgba(0,0,0,.3); transition:transform .3s ease, opacity .3s ease; opacity:0; z-index:1000; pointer-events:none; }
.status-toast.show { transform:translateX(-50%) translateY(0); opacity:1; }
.status-toast.idle { background:var(--btn-bg); color:var(--text); }
.status-toast.loading { background:var(--accent); color:white; }
.status-toast.success { background:#66bb6a; color:white; }
.status-toast.error { background:var(--bad); color:white; }
.error-container { position:fixed; top:80px; left:50%; transform:translateX(-50%); max-width:500px; width:90%; padding:16px 20px; background:rgba(239,83,80,.95); color:white; border-radius:12px; box-shadow:0 4px 16px rgba(239,83,80,.4); font-size:14px; z-index:1000; display:none; }
.error-container.show { display:block; }

/* Footer */
.footer { padding:16px 24px; text-align:center; color:var(--muted); font-size:13px; border-top:1px solid rgba(255,255,255,.05); background:rgba(0,0,0,.2); }
.footer a { color:var(--accent); text-decoration:none; }

/* Strong disabled visuals and override menu animation */
.menu-btn.disabled, .menu-btn[disabled] { 
  opacity: .45 !important; 
  cursor: not-allowed !important; 
}
.menu-items.active .menu-btn.disabled,
.menu-items.active .menu-btn[disabled]{
  animation: none !important;
  opacity: .45 !important;
}
/* Labels that act like buttons */
label.menu-btn.disabled { 
  opacity: .45 !important; 
  cursor: not-allowed !important; 
}

/* --- Fix: White glyphs & Telegram button color --- */
.action-btn svg {
  stroke: #fff;
  fill: none;
}
#browseBtn.action-btn {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(91,156,245,.4);
}
#browseBtn.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91,156,245,.6);
}

/* --- Import buttons: selected state (brand blue) --- */
.menu-btn.selected {
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(91,156,245,.4) !important;
}
.menu-btn.selected svg {
  stroke: currentColor;
}

/* Improve touch interactions on canvas */
canvas { touch-action: none; }



/* =========================
   Mobile-responsive tuning
   Scales UI ~30% down on phones
   ========================= */
@media (max-width: 768px), (pointer: coarse) and (max-width: 1024px) {
  body { font-size: 0.9rem; }
  .logo { font-size: 20px; }

  .header { padding: 14px 16px; gap: 12px; }
  .license-btn { padding: 8px 14px; font-size: 12px; border-radius: 16px; }

  .menu-toggle { width: 42px; height: 42px; }
  .menu-icon { width: 18px; height: 18px; }
  .menu-items { top: 50px; gap: 10px; }
  .menu-btn { padding: 12px 16px; font-size: 13px; border-radius: 20px; gap: 10px; }
  .menu-btn svg { width: 16px; height: 16px; stroke-width: 1.8; }

  .canvas-container { padding: 12px; }

  .empty-state { max-width: 520px; padding: 24px; }
  .empty-state h2 { font-size: 26px; margin-bottom: 12px; }
  .empty-state .subtitle { font-size: 16px; margin-bottom: 16px; }
  .empty-state p { font-size: 14px; }
  .empty-state .license-notice { font-size: 12px; padding: 10px 14px; }

  .zoom-ui { padding: 5px 6px; gap: 4px; font-size: 11px; border-radius: 8px; }
  .zoom-glyph { font-size: 12px; }
  .zoom-ui input[type="range"] { height: 100px; width: 6px; }
  @supports not (-webkit-appearance: slider-vertical) {
    .zoom-ui input[type="range"] { width: 100px; height: 6px; }
  }
  .zoom-value { min-width: 34px; font-size: 11px; }

  .action-buttons { bottom: calc(20px + env(safe-area-inset-bottom)); right: 20px; gap: 12px; }
  .action-btn { width: 48px; height: 48px; border-radius: 14px; }
  .action-btn svg { width: 16px; height: 16px; }

  .status-toast { bottom: calc(86px + env(safe-area-inset-bottom)); font-size: 13px; padding: 10px 18px; }
  .error-container { top: 70px; font-size: 13px; padding: 14px 16px; }

  .footer { padding: 12px 16px; font-size: 12px; }

  .license-card { width: min(480px, 94vw); padding: 18px; }
  .license-title { font-size: 16px; }
  .license-sub { font-size: 13px; }
  .license-row { grid-template-columns: 1fr; gap: 8px; }
  .license-input { font-size: 13px; padding: 10px 12px; }
  .modal-btn { font-size: 13px; padding: 9px 12px; }

  .mockup-item { width: 420px; height: 420px; gap: 28px; }
}

@media (max-width: 380px) {
  .menu-toggle { width: 38px; height: 38px; }
  .menu-btn { padding: 10px 14px; font-size: 12px; }
  .action-btn { width: 44px; height: 44px; }
  .empty-state h2 { font-size: 22px; }
}


/* === Subtle darker backdrop for the menu === */
.menu-items {
  background: rgba(0, 0, 0, 0.28);          /* low opacity */
  padding: 12px;                             /* space around buttons */
  border-radius: 16px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.menu-items.active {                         /* preserve existing transitions, just ensure visible */
  /* (keep existing transition/opacity/pointer-events in prior block) */
}

/* === Logo Button Group (Split Button) === */
.menu-btn-group {
  display: flex;
  gap: 8px;
  align-items: center;
  animation: slideIn .3s ease forwards;
  opacity: 0;
}
.menu-items.active .menu-btn-group { animation-delay: .15s; }

.menu-btn-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--btn-bg);
  border: none;
  border-radius: 25px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  transition: all .3s ease;
}

.menu-btn-main:hover:not(.disabled) {
  background: #5a6578;
  transform: translateX(-5px);
}

.menu-btn-main svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-btn-settings {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all .3s ease;
  box-shadow: 0 4px 12px rgba(91,156,245,.4);
}

.menu-btn-settings:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(91,156,245,.6);
}

.menu-btn-settings svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Split button selected state */
.menu-btn-main.selected {
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(91,156,245,.4) !important;
}

/* === Logo Settings Panel === */
.logo-settings-panel {
  position: absolute;
  top: 60px;
  right: 0;
  width: 280px;
  background: rgba(26, 32, 44, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  z-index: 100;
}

.logo-settings-panel.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.logo-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo-settings-header span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.logo-settings-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all .2s ease;
}

.logo-settings-close:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

.logo-settings-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
}

/* Position buttons */
.logo-position-group {
  margin-bottom: 20px;
}

.settings-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}

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

.position-btn {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all .2s ease;
}

.position-btn:hover {
  background: rgba(255,255,255,0.1);
  transform: scale(1.05);
}

.position-btn.active {
  background: rgba(91,156,245,0.2);
  border-color: var(--accent);
  color: var(--accent);
}

.position-btn svg {
  width: 28px;
  height: 28px;
}

/* Slider settings */
.logo-setting-row {
  display: grid;
  grid-template-columns: 60px 1fr 45px;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.settings-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  outline: none;
}

.settings-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: all .2s ease;
}

.settings-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(91,156,245,0.6);
}

.settings-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
  transition: all .2s ease;
}

.slider-value {
  font-size: 12px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Disabled state for logo button group */
.menu-btn-group.disabled .menu-btn-main,
.menu-btn-group[data-disabled="true"] .menu-btn-main {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}

/* Mobile adjustments for logo settings */
@media (max-width: 768px) {
  .menu-btn-group { gap: 6px; }
  .menu-btn-settings { width: 38px; height: 38px; }
  .logo-settings-panel { width: 240px; padding: 14px; }
  .position-btn svg { width: 24px; height: 24px; }
  .logo-setting-row { grid-template-columns: 50px 1fr 40px; gap: 8px; }
}

/* Drag and Drop Styles */
.drop-zones {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  gap: 20px;
  z-index: 1000;
  padding: 20px;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.canvas-container.drag-over .drop-zones {
  display: flex;
  animation: dropZonesSlideIn 0.3s ease-out;
}

@keyframes dropZonesSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  background: rgba(31, 41, 55, 0.8);
  border: 2px dashed rgba(107, 114, 128, 0.5);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.drop-zone.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(31, 41, 55, 0.4);
  border-color: rgba(107, 114, 128, 0.3);
}

.drop-zone.disabled svg {
  opacity: 0.5;
}

.drop-zone.disabled .drop-zone-title,
.drop-zone.disabled .drop-zone-hint {
  opacity: 0.5;
}

.drop-zone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.drop-zone svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.drop-zone-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.drop-zone-hint {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.7;
}

.drop-zone:not(.disabled):hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--accent);
  transform: scale(1.05);
}

.drop-zone:not(.disabled):hover svg {
  transform: scale(1.1) rotate(5deg);
}

.drop-zone:not(.disabled):hover::before {
  opacity: 0.1;
}

.drop-zone.active:not(.disabled) {
  background: rgba(37, 99, 235, 0.2);
  border-color: var(--accent);
  border-width: 3px;
  animation: pulseZone 0.5s ease infinite;
}

.drop-zone.active:not(.disabled) svg {
  transform: scale(1.15) rotate(10deg);
  color: var(--accent);
}

.drop-zone.active:not(.disabled)::before {
  opacity: 0.15;
  animation: ripple 1s ease infinite;
}

@keyframes pulseZone {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
  50% { 
    box-shadow: 0 0 20px 5px rgba(37, 99, 235, 0.3);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Canvas overlay when dragging */
.canvas-container.drag-over::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  pointer-events: none;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile responsive drop zones */
@media (max-width: 768px) {
  .drop-zones {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    width: 90%;
    max-width: 300px;
  }
  
  .drop-zone {
    width: 100%;
    height: 100px;
    flex-direction: row;
    padding: 0 20px;
  }
  
  .drop-zone svg {
    width: 36px;
    height: 36px;
    margin-bottom: 0;
    margin-right: 15px;
  }
  
  .drop-zone-title {
    font-size: 15px;
  }
}

