 /* ============================================
       CSS CUSTOM PROPERTIES
       ============================================ */
    :root {
      /* Theme colors */
      --bg-primary: #0b1020;
      --bg-panel: rgba(255, 255, 255, 0.07);
      --bg-panel-hover: rgba(255, 255, 255, 0.10);
      --border-default: rgba(255, 255, 255, 0.12);
      --text-primary: rgba(255, 255, 255, 0.92);
      --text-secondary: rgba(255, 255, 255, 0.70);
      --text-muted: rgba(255, 255, 255, 0.55);
      /* Palette colors (updated by JS) */
      --c1: #6d28d9;
      --c2: #22c55e;
      --c3: #06b6d4;
      --c4: #f59e0b;
      --c5: #ef4444;
      --c6: #8b5cf6;
      --c7: #ec4899;
      /* Layout tokens */
      --radius-sm: 10px;
      --radius-md: 14px;
      --radius-lg: 18px;
      --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
      --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.45);
      /* Animation */
      --transition-fast: 150ms ease;
      --transition-normal: 250ms ease;
    }

    /* ============================================
       BASE STYLES
       ============================================ 
    *,
    *::before,
    *::after {
      box-sizing: border-box;
    }

    body {
      min-height: 100vh;
      margin: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: var(--bg-primary);
      color: var(--text-primary);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

   
    body {
      background:
        radial-gradient(900px 500px at 12% 10%, rgba(109, 40, 217, 0.35), transparent 60%),
        radial-gradient(700px 500px at 80% 15%, rgba(6, 182, 212, 0.35), transparent 60%),
        radial-gradient(900px 700px at 70% 85%, rgba(239, 68, 68, 0.25), transparent 65%),
        linear-gradient(180deg, #070a12 0%, var(--bg-primary) 55%, #05070d 100%);
    }

    @supports (background: color-mix(in oklab, white, black)) {
      body {
        background:
          radial-gradient(900px 500px at 12% 10%, color-mix(in oklab, var(--c1) 55%, transparent), transparent 60%),
          radial-gradient(700px 500px at 80% 15%, color-mix(in oklab, var(--c3) 55%, transparent), transparent 60%),
          radial-gradient(900px 700px at 70% 85%, color-mix(in oklab, var(--c5) 45%, transparent), transparent 65%),
          linear-gradient(180deg, #070a12 0%, var(--bg-primary) 55%, #05070d 100%);
      }
    }
	*/
	
	 body {
      min-height: 100vh;
	  }
	  
.btn-sh:hover {
  box-shadow: 0 12px 16px 0 rgba(0,0,0,0.64),0 17px 50px 0 rgba(0,0,0,0.32);
  transition: 0.9s;
  }
.btn-sh-red:hover {
  box-shadow: 0 8px 10px 0 rgba(216,7,34,0.64),0 8px 10px 0 rgba(216,7,34,0.32);
  transition: 0.9s;
  cursor:pointer;
  }
.btn-sh-green:hover {
  box-shadow: 0 14px 18px 0 rgba(0,95,64,0.64),0 14px 18px 0 rgba(0,95,64,0.32);
  transition: 0.9s;
  cursor:pointer;
  } 
.btn-sh-slate:hover {
  box-shadow: 0 14px 18px 0 rgba(89,93,120,0.64),0 14px 18px 0 rgba(89,93,120,0.32);
  transition: 0.9s;
  cursor:pointer;
  }   	  

    /* ============================================
       GLASS PANEL COMPONENT
       ============================================ */
    .glass {
      background: rgba(20, 25, 40, 0.85);
      border: 1px solid var(--border-default);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-md);
    }

    @supports (backdrop-filter: blur(10px)) {
      .glass {
        background: var(--bg-panel);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
      }
    }

    /* ============================================
       GLOW EFFECT
       ============================================ */
    .glow {
      position: relative;
      isolation: isolate;
    }

    .glow::before {
      content: '';
      position: absolute;
      inset: -2px;
      border-radius: inherit;
      background: conic-gradient(from 180deg,
          var(--c1),
          var(--c3),
          var(--c5),
          var(--c2),
          var(--c1));
      filter: blur(18px);
      opacity: 0.45;
      z-index: -1;
      mix-blend-mode: screen;
      animation: glow-spin 16s linear infinite;
      will-change: transform;
    }

    @keyframes glow-spin {
      to {
        transform: rotate(360deg);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .glow::before {
        animation: none;
      }
    }

    /* ============================================
       FORM CONTROLS
       ============================================ */
    .form-input {
      width: 100%;
      height: 44px;
      padding: 0 12px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: var(--radius-md);
      background: rgba(255, 255, 255, 0.05);
      color: var(--text-primary);
      font-size: 14px;
      transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    }

    .form-input:focus {
      outline: none;
      border-color: var(--c3);
      box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
    }

    .form-input:focus-visible {
      outline: 2px solid var(--c3);
      outline-offset: 2px;
    }

    .form-input[aria-invalid="true"] {
      border-color: var(--c5);
    }

    .form-label {
      display: block;
      margin-bottom: 8px;
      font-size: 14px;
      color: var(--text-secondary);
    }

    /* Range input styling */
    input[type="range"] {
      -webkit-appearance: none;
      appearance: none;
      width: 100%;
      height: 6px;
      border-radius: 3px;
      background: rgba(255, 255, 255, 0.1);
      cursor: pointer;
    }

    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: var(--c3);
      border: 2px solid white;
      cursor: pointer;
      transition: transform var(--transition-fast);
    }

    input[type="range"]::-webkit-slider-thumb:hover {
      transform: scale(1.1);
    }

    input[type="range"]:focus-visible {
      outline: 2px solid var(--c3);
      outline-offset: 4px;
    }

    /* ============================================
       BUTTONS
       ============================================ */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 20px;
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: var(--radius-md);
      font-size: 14px;
      font-weight: 500;
      color: white;
      cursor: pointer;
      transition: filter var(--transition-fast), transform var(--transition-fast);
    }

    .btn:hover {
      filter: brightness(1.1);
    }

    .btn:active {
      transform: scale(0.98);
    }

    .btn:focus-visible {
      outline: 2px solid white;
      outline-offset: 2px;
    }

    .btn-primary {
      background: linear-gradient(135deg,
          color-mix(in oklab, var(--c1) 70%, #111827),
          color-mix(in oklab, var(--c3) 55%, #111827));
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    }

    .btn-ghost {
      background: rgba(255, 255, 255, 0.06);
    }

    .btn-ghost:hover {
      background: rgba(255, 255, 255, 0.12);
    }

    /* ============================================
       PALETTE CARDS
       ============================================ */
    .palette-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 16px;
    }

    .palette-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .palette-card {
      contain: layout style paint;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: var(--radius-lg);
      background: rgba(255, 255, 255, 0.05);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
      overflow: hidden;
      transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    }

    .palette-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
    }

    .palette-list .palette-card {
      display: flex;
      flex-direction: row;
    }

    .swatch {
      position: relative;
      width: 100%;
      height: 140px;
      background: var(--swatch-color);
      border: none;
      cursor: pointer;
      transition: filter var(--transition-fast);
    }

    .palette-list .swatch {
      width: 140px;
      height: auto;
      min-height: 100%;
      flex-shrink: 0;
    }

    .swatch:hover {
      filter: brightness(1.05);
    }

    .swatch:focus-visible {
      outline: 3px solid white;
      outline-offset: -3px;
    }

    .swatch-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      padding: 12px;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent 60%);
      opacity: 0;
      transition: opacity var(--transition-fast);
    }

    .swatch:hover .swatch-overlay,
    .swatch:focus .swatch-overlay {
      opacity: 1;
    }

    .card-meta {
      padding: 16px;
      flex: 1;
    }

    .color-sample {
      margin-top: 12px;
      padding: 12px;
      border-radius: var(--radius-md);
      border: 1px solid rgba(255, 255, 255, 0.12);
    }

    /* ============================================
       BADGES & TAGS
       ============================================ */
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 10px;
      border-radius: var(--radius-sm);
      font-size: 12px;
      font-weight: 500;
    }

    .badge-success {
      background: rgba(34, 197, 94, 0.2);
      border: 1px solid rgba(34, 197, 94, 0.35);
      color: #4ade80;
    }

    .badge-warning {
      background: rgba(245, 158, 11, 0.2);
      border: 1px solid rgba(245, 158, 11, 0.35);
      color: #fbbf24;
    }

    .badge-error {
      background: rgba(239, 68, 68, 0.2);
      border: 1px solid rgba(239, 68, 68, 0.35);
      color: #f87171;
    }

    .tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 9999px;
      font-size: 12px;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.14);
    }

    /* ============================================
       TOAST NOTIFICATIONS
       ============================================ */
    .toast {
      position: fixed;
      right: 16px;
      bottom: 16px;
      z-index: 1000;
      padding: 12px 16px;
      border-radius: var(--radius-md);
      border: 1px solid rgba(255, 255, 255, 0.14);
      background: rgba(10, 12, 18, 0.9);
      box-shadow: var(--shadow-lg);
      font-size: 14px;
      color: var(--text-primary);
      transform: translateY(10px);
      opacity: 0;
      pointer-events: none;
      transition: transform var(--transition-normal), opacity var(--transition-normal);
    }

    @supports (backdrop-filter: blur(10px)) {
      .toast {
        background: rgba(10, 12, 18, 0.75);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
      }
    }

    .toast.show {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }

    .toast[role="alert"] {
      /* Ensure screen readers announce this */
    }

    /* ============================================
       KEYBOARD HINTS
       ============================================ */
    .kbd {
      display: inline-block;
      padding: 2px 8px;
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: var(--radius-sm);
      background: rgba(255, 255, 255, 0.07);
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      font-size: 12px;
      color: rgba(255, 255, 255, 0.85);
    }

    /* ============================================
       UTILITY CLASSES
       ============================================ */
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border-width: 0;
    }

    .visually-hidden:not(:focus):not(:active) {
      clip: rect(0 0 0 0);
      clip-path: inset(50%);
      height: 1px;
      overflow: hidden;
      position: absolute;
      white-space: nowrap;
      width: 1px;
    }

    /* ============================================
       RESPONSIVE ADJUSTMENTS
       ============================================ */
    @media (max-width: 640px) {
      .palette-grid {
        grid-template-columns: 1fr;
      }

      .palette-list .swatch {
        width: 100px;
      }
    }

    /* ============================================
       REDUCED MOTION
       ============================================ */
    @media (prefers-reduced-motion: reduce) {

      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
    }

    /* ============================================
       HIGH CONTRAST MODE
       ============================================ */
    @media (prefers-contrast: high) {
      .glass {
        background: rgba(0, 0, 0, 0.95);
        border: 2px solid white;
      }

      .palette-card {
        border: 2px solid white;
      }

      .swatch:focus-visible {
        outline: 4px solid yellow;
        outline-offset: 0;
      }

      .btn:focus-visible {
        outline: 4px solid yellow;
      }
    }

    /* ============================================
       PRINT STYLES
       ============================================ */
    @media print {
      body {
        background: white;
        color: black;
      }

      .glass {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
      }

      .glow::before {
        display: none;
      }

      .btn-ghost,
      .toast,
      [data-no-print] {
        display: none !important;
      }

      .palette-card {
        break-inside: avoid;
        page-break-inside: avoid;
      }
    }