
    @import url('https://cdn.fontsource.org/css/fira-sans/400,500,600,700');

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

    body {
      font-family: 'Fira Sans', sans-serif;
      background: #0f0f13;
      color: #e0e0e8;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
    }

    .app-header {
      text-align: center;
      padding: 20px 20px 8px;
      flex-shrink: 0;
    }

    .app-header h1 {
      font-size: 26px;
      font-weight: 700;
      background: linear-gradient(135deg, #6ee7b7, #3b82f6, #a78bfa);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      line-height: 1.2;
    }

    .app-header p {
      color: #888;
      font-size: 13px;
      margin-top: 4px;
    }

    .main-layout {
      display: flex;
      gap: 24px;
      max-width: 1400px;
      margin: 16px auto 20px;
      padding: 0 20px;
      align-items: stretch;
      flex: 1 0 auto;
      width: 100%;
    }

    .preview-area {
      flex: 1 1 55%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-width: 0;
    }

    .canvas-wrapper {
      position: relative;
      background: repeating-conic-gradient(#1a1a24 0% 25%, #15151d 0% 50%) 0 0 / 20px 20px;
      border-radius: 20px;
      padding: 16px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
      border: 1px solid #2a2a3a;
      width: fit-content;
      max-width: 100%;
    }

    #mainCanvas {
      display: block;
      width: 100%;
      height: auto;
      max-width: 620px;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }

    .controls-panel {
      flex: 0 0 360px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      min-width: 280px;
      overflow-y: auto;
      max-height: calc(100vh - 100px);
      padding-right: 4px;
    }

    .controls-panel::-webkit-scrollbar {
      width: 5px;
    }

    .controls-panel::-webkit-scrollbar-thumb {
      background: #3a3a5a;
      border-radius: 10px;
    }

    .control-card {
      background: #1a1a24;
      border: 1px solid #2a2a3a;
      border-radius: 16px;
      padding: 18px 18px;
      transition: border-color 0.2s;
    }

    .control-card:hover {
      border-color: #3a3a5a;
    }

    .control-card h3 {
      font-size: 13px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: #9ca3af;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .upload-zone {
      border: 2px dashed #3a3a5a;
      border-radius: 14px;
      padding: 24px 16px;
      text-align: center;
      cursor: pointer;
      transition: all 0.2s;
      position: relative;
      overflow: hidden;
      background: rgba(0, 0, 0, 0.15);
    }

    .upload-zone:hover {
      border-color: #6ee7b7;
      background: rgba(110, 231, 183, 0.03);
    }

    .upload-zone.has-image {
      border-color: #6ee7b7;
      padding: 12px;
    }

    .upload-zone .upload-icon {
      font-size: 36px;
      margin-bottom: 6px;
    }

    .upload-zone .upload-text {
      font-size: 14px;
      color: #ccc;
      font-weight: 500;
    }

    .upload-zone .upload-hint {
      font-size: 12px;
      color: #666;
      margin-top: 6px;
    }

    .upload-zone input[type="file"] {
      position: absolute;
      inset: 0;
      opacity: 0;
      cursor: pointer;
    }

    .preview-label {
      max-width: 100%;
      max-height: 80px;
      object-fit: contain;
      border-radius: 6px;
      margin: 0 auto;
      display: block;
    }

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

    .slider-label {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 6px;
    }

    .slider-label span:first-child {
      font-size: 13px;
      font-weight: 500;
      color: #ccc;
    }

    .slider-value {
      font-size: 12px;
      color: #6ee7b7;
      font-weight: 600;
      background: rgba(110, 231, 183, 0.1);
      padding: 2px 10px;
      border-radius: 20px;
    }

    input[type="range"] {
      -webkit-appearance: none;
      appearance: none;
      width: 100%;
      height: 6px;
      border-radius: 4px;
      background: #2a2a3a;
      outline: none;
      cursor: pointer;
    }

    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: #6ee7b7;
      box-shadow: 0 2px 8px rgba(110, 231, 183, 0.3);
      transition: 0.1s;
    }

    .filter-buttons {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .filter-btn {
      flex: 1 0 calc(50% - 5px);
      padding: 10px 6px;
      border: 2px solid #2a2a3a;
      border-radius: 12px;
      background: transparent;
      cursor: pointer;
      transition: all 0.2s;
      text-align: center;
      font-size: 12px;
      font-weight: 500;
      color: #ccc;
      font-family: 'Fira Sans', sans-serif;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
    }

    .filter-btn .swatch {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,0.2);
      background: currentColor;
    }

    .filter-btn.active {
      border-color: #6ee7b7;
      color: #6ee7b7;
      background: rgba(110, 231, 183, 0.05);
    }

    .color-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 6px;
    }

    .color-row input[type="color"] {
      width: 44px;
      height: 44px;
      border: 2px solid #3a3a5a;
      border-radius: 12px;
      cursor: pointer;
      background: none;
      padding: 2px;
    }

    .btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      padding: 14px 16px;
      border: none;
      border-radius: 14px;
      font-family: 'Fira Sans', sans-serif;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }

    .btn-download {
      background: linear-gradient(135deg, #6ee7b7, #3b82f6);
      color: #0f0f13;
      box-shadow: 0 6px 18px rgba(110, 231, 183, 0.2);
    }

    .btn-download:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 10px 24px rgba(110, 231, 183, 0.35);
    }

    .btn-download:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }

    .btn-reset {
      background: #2a2a3a;
      color: #ddd;
      margin-top: 6px;
    }

    .btn-reset:hover {
      background: #3a3a4a;
    }

    @media (max-width: 900px) {
      .main-layout {
        flex-direction: column;
        align-items: center;
      }
      .controls-panel {
        max-width: 600px;
        width: 100%;
        max-height: none;
        overflow-y: visible;
      }
      #mainCanvas {
        max-width: 100%;
      }
    }
.mockup-buttons {
  display: flex;
  gap: 6px;
  justify-content: space-between;
}

.mockup-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  border: 2px solid #2a2a3a;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 11px;
  font-weight: 500;
  color: #ccc;
  font-family: 'Fira Sans', sans-serif;
  white-space: nowrap;
}

.mockup-btn span {
  font-size: 14px;
}

.mockup-btn.active {
  border-color: #6ee7b7;
  color: #6ee7b7;
  background: rgba(110, 231, 183, 0.1);
}

.mockup-btn:hover:not(.active) {
  border-color: #3a3a5a;
  background: rgba(110, 231, 183, 0.05);
}
  