/* ============================================================================
 * leptos-store Showcase — Unified Scoped CSS
 * Auto-generated by: make showcase-css
 * DO NOT EDIT — regenerate with: make showcase-css
 * ============================================================================ */

/* --- counter --- */
.demo-counter {
  /* Counter Example - Styles */
  
  & {
    /* Colors - Vibrant modern palette */
    --color-bg: #0f0f12;
    --color-surface: #1a1a22;
    --color-surface-hover: #252530;
    --color-text: #f5f5f7;
    --color-text-muted: #8b8b9a;
    --color-primary: #6366f1;
    --color-primary-glow: rgba(99, 102, 241, 0.3);
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-border: #2a2a36;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 100ms ease;
    --transition-base: 200ms ease;
    --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* Reset */
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  & {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  & {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
  }
  
  /* App Container */
  .app {
    min-height: 100vh;
  }
  
  /* Counter Page */
  .counter-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background: 
      radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
      radial-gradient(ellipse at 20% 80%, rgba(239, 68, 68, 0.06) 0%, transparent 40%),
      var(--color-bg);
  }
  
  .counter-card {
    background: var(--color-surface);
    padding: var(--space-3xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    width: 100%;
    max-width: 480px;
    text-align: center;
    box-shadow: 
      0 0 0 1px rgba(255, 255, 255, 0.03),
      0 20px 50px -12px rgba(0, 0, 0, 0.5);
  }
  
  .counter-card h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-xs);
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .counter-card .subtitle {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--space-2xl);
  }
  
  .counter-card .subtitle code {
    background: var(--color-surface-hover);
    padding: 0.2em 0.5em;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--color-primary);
  }
  
  /* Counter Component */
  .counter {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
  }
  
  /* Count Display */
  .count-display {
    padding: var(--space-xl);
  }
  
  .count-value {
    font-size: 5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px var(--color-primary-glow);
    transition: transform var(--transition-smooth);
  }
  
  /* Button Group */
  .button-group {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    align-items: center;
  }
  
  .btn {
    border: none;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 600;
  }
  
  .btn-increment,
  .btn-decrement {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .btn-increment {
    background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
    color: white;
    box-shadow: 
      0 0 0 1px rgba(255, 255, 255, 0.1) inset,
      0 4px 16px rgba(16, 185, 129, 0.4);
  }
  
  .btn-increment:hover {
    transform: scale(1.08);
    box-shadow: 
      0 0 0 1px rgba(255, 255, 255, 0.15) inset,
      0 8px 24px rgba(16, 185, 129, 0.5);
  }
  
  .btn-increment:active {
    transform: scale(0.95);
  }
  
  .btn-decrement {
    background: linear-gradient(135deg, var(--color-danger) 0%, #dc2626 100%);
    color: white;
    box-shadow: 
      0 0 0 1px rgba(255, 255, 255, 0.1) inset,
      0 4px 16px rgba(239, 68, 68, 0.4);
  }
  
  .btn-decrement:hover {
    transform: scale(1.08);
    box-shadow: 
      0 0 0 1px rgba(255, 255, 255, 0.15) inset,
      0 8px 24px rgba(239, 68, 68, 0.5);
  }
  
  .btn-decrement:active {
    transform: scale(0.95);
  }
  
  .btn-reset {
    padding: 0.75rem 1.5rem;
    background: var(--color-surface-hover);
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    border: 1px solid var(--color-border);
  }
  
  .btn-reset:hover {
    background: var(--color-border);
    color: var(--color-text);
  }
  
  /* Info Panel */
  .info-panel {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
  }
  
  .info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
  }
  
  .info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
  }
  
  .info-value {
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--color-primary);
  }
  
  /* Code Hint */
  .code-hint {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
    text-align: left;
  }
  
  .code-hint p {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin-bottom: var(--space-sm);
  }
  
  .code-hint pre {
    background: var(--color-bg);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    overflow-x: auto;
  }
  
  .code-hint code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.7;
  }
  
  /* Responsive */
  @media (max-width: 480px) {
    .counter-card {
      padding: var(--space-xl);
    }
    
    .count-value {
      font-size: 4rem;
    }
    
    .btn-increment,
    .btn-decrement {
      width: 52px;
      height: 52px;
      font-size: 1.5rem;
    }
    
    .info-panel {
      flex-direction: column;
      gap: var(--space-md);
    }
  }
  
  /* Animation for count change */
  @keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }
  
  .count-value:focus-within {
    animation: pop 0.2s ease-out;
  }

}

/* --- auth-store --- */
.demo-auth-store {
  /* Auth Store Example - SSR Styles */
  
  & {
    /* Colors - Warm sophisticated palette */
    --color-bg: #faf9f7;
    --color-surface: #ffffff;
    --color-surface-hover: #f5f4f2;
    --color-text: #1a1a1a;
    --color-text-muted: #6b6b6b;
    --color-primary: #2d5a27;
    --color-primary-hover: #3d7a37;
    --color-error: #c53030;
    --color-error-bg: #fff5f5;
    --color-border: #e8e6e3;
    --color-shadow: rgba(0, 0, 0, 0.05);
    
    /* Typography */
    --font-sans: 'Söhne', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'Söhne Mono', 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Borders */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
  }
  
  /* Reset */
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  & {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  & {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
  }
  
  /* App Container */
  .app {
    min-height: 100vh;
  }
  
  .auth-router {
    min-height: 100vh;
  }
  
  /* Login Page */
  .login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background: linear-gradient(135deg, #f8f7f4 0%, #ebe9e4 100%);
  }
  
  .login-card {
    background: var(--color-surface);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: 
      0 1px 3px var(--color-shadow),
      0 4px 20px var(--color-shadow);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--color-border);
  }
  
  .login-card h1 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xs);
  }
  
  .login-card .subtitle {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    font-size: 0.95rem;
  }
  
  /* Form Elements */
  .form-group {
    margin-bottom: var(--space-lg);
  }
  
  .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
  }
  
  .form-group input[type="email"],
  .form-group input[type="password"],
  .form-group input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: var(--color-surface);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  }
  
  .form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
  }
  
  .form-group input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.6;
  }
  
  /* Checkbox */
  .form-group.checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
  }
  
  .form-group.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
  }
  
  .form-group.checkbox label {
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
  }
  
  /* Buttons */
  .btn-primary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
  }
  
  .btn-primary:hover:not(:disabled) {
    background: var(--color-primary-hover);
  }
  
  .btn-primary:active:not(:disabled) {
    transform: scale(0.98);
  }
  
  .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  
  .btn-secondary {
    padding: 0.625rem 1.25rem;
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
  }
  
  .btn-secondary:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-text-muted);
  }
  
  /* Error Message */
  .error-message {
    background: var(--color-error-bg);
    color: var(--color-error);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-lg);
    font-size: 0.875rem;
    border: 1px solid rgba(197, 48, 48, 0.2);
  }
  
  /* Demo Hint */
  .demo-hint {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
  }
  
  /* Dashboard */
  .dashboard {
    min-height: 100vh;
    background: var(--color-bg);
  }
  
  .dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
  }
  
  .dashboard-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
  }
  
  .user-menu {
    display: flex;
    align-items: center;
    gap: var(--space-md);
  }
  
  /* Avatar */
  .avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .avatar-initials {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
  }
  
  /* Dashboard Content */
  .dashboard-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-xl);
  }
  
  .welcome-card {
    background: var(--color-surface);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    margin-bottom: var(--space-xl);
  }
  
  .welcome-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
  }
  
  .welcome-card p {
    color: var(--color-text-muted);
  }
  
  /* Info Cards */
  .info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
  }
  
  .info-card {
    background: var(--color-surface);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
  }
  
  .info-card h3 {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
  }
  
  .info-card p {
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-mono);
    word-break: break-all;
  }
  
  /* Responsive */
  @media (max-width: 640px) {
    .login-card {
      padding: var(--space-xl);
    }
    
    .dashboard-header {
      flex-direction: column;
      gap: var(--space-md);
      text-align: center;
    }
    
    .dashboard-content {
      padding: var(--space-lg);
    }
  }
  
  /* Loading state animation */
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
  }
  
  .btn-primary:disabled {
    animation: pulse 1.5s ease-in-out infinite;
  }

}

/* --- token-explorer --- */
.demo-token-explorer {
  /* Token Explorer - Solana Token Dashboard */
  /* Modern crypto aesthetic with dark theme */
  
  & {
      /* Colors */
      --bg-primary: #0a0b0d;
      --bg-secondary: #12141a;
      --bg-card: #181b23;
      --bg-card-hover: #1f2330;
      --border-color: #2a2f3d;
      --border-highlight: #3d4558;
      
      /* Text */
      --text-primary: #e8eaed;
      --text-secondary: #9ca3af;
      --text-muted: #6b7280;
      
      /* Accents */
      --accent-primary: #9945ff;
      --accent-secondary: #14f195;
      --accent-gradient: linear-gradient(135deg, #9945ff 0%, #14f195 100%);
      
      /* Status */
      --positive: #10b981;
      --positive-bg: rgba(16, 185, 129, 0.1);
      --negative: #ef4444;
      --negative-bg: rgba(239, 68, 68, 0.1);
      --warning: #f59e0b;
      
      /* Typography */
      --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
      --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      
      /* Spacing */
      --radius-sm: 6px;
      --radius-md: 10px;
      --radius-lg: 16px;
      
      /* Shadows */
      --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
      --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
      --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
      --shadow-glow: 0 0 40px rgba(153, 69, 255, 0.2);
  }
  
  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }
  
  /* Utility classes */
  .hidden {
      display: none !important;
  }
  
  & {
      font-family: var(--font-sans);
      background: var(--bg-primary);
      color: var(--text-primary);
      min-height: 100vh;
      line-height: 1.5;
  }
  
  /* Background pattern */
  &::before {
      content: '';
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: 
          radial-gradient(circle at 20% 20%, rgba(153, 69, 255, 0.05) 0%, transparent 50%),
          radial-gradient(circle at 80% 80%, rgba(20, 241, 149, 0.05) 0%, transparent 50%);
      pointer-events: none;
      z-index: -1;
  }
  
  .app {
      max-width: 1400px;
      margin: 0 auto;
      padding: 20px;
  }
  
  /* Header */
  .header {
      margin-bottom: 30px;
      padding-bottom: 20px;
      border-bottom: 1px solid var(--border-color);
  }
  
  .header-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
  }
  
  .logo {
      display: flex;
      align-items: center;
      gap: 12px;
  }
  
  .logo-icon {
      font-size: 32px;
      background: var(--accent-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
  }
  
  .logo h1 {
      font-size: 24px;
      font-weight: 700;
      letter-spacing: -0.5px;
  }
  
  .header-stats {
      display: flex;
      gap: 24px;
  }
  
  .header-stats .stat {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
  }
  
  .header-stats .stat-label {
      font-size: 12px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
  }
  
  .header-stats .stat-value {
      font-size: 20px;
      font-weight: 600;
      font-family: var(--font-mono);
  }
  
  .header-stats .update-info .stat-value {
      font-size: 14px;
      color: var(--text-secondary);
  }
  
  /* Refresh Button */
  .refresh-btn {
      width: 36px;
      height: 36px;
      border: 1px solid var(--border-color);
      background: var(--bg-secondary);
      border-radius: 50%;
      color: var(--text-secondary);
      font-size: 18px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
  }
  
  .refresh-btn:hover:not(:disabled) {
      background: var(--accent-primary);
      border-color: var(--accent-primary);
      color: white;
  }
  
  .refresh-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
  }
  
  .refresh-btn.refreshing {
      animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
  }
  
  /* Poll Indicator */
  .poll-indicator {
      margin-top: 8px;
      font-size: 11px;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 4px;
  }
  
  .poll-indicator .refreshing-indicator {
      color: var(--accent-secondary);
      animation: pulse 1s ease-in-out infinite;
  }
  
  @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.5; }
  }
  
  /* Loading State */
  .loading-state {
      grid-column: 1 / -1;
      text-align: center;
      padding: 80px 20px;
      color: var(--text-muted);
  }
  
  .loading-spinner {
      width: 48px;
      height: 48px;
      border: 4px solid var(--border-color);
      border-top-color: var(--accent-primary);
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin: 0 auto 16px;
  }
  
  /* Controls */
  .controls {
      display: flex;
      gap: 16px;
      margin-bottom: 24px;
      flex-wrap: wrap;
  }
  
  .search-box {
      flex: 1;
      min-width: 200px;
      position: relative;
  }
  
  .search-box input {
      width: 100%;
      padding: 12px 40px 12px 16px;
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      color: var(--text-primary);
      font-size: 14px;
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
  }
  
  .search-box input::placeholder {
      color: var(--text-muted);
  }
  
  .search-box input:focus {
      border-color: var(--accent-primary);
      box-shadow: 0 0 0 3px rgba(153, 69, 255, 0.1);
  }
  
  .clear-search {
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      width: 24px;
      height: 24px;
      border: none;
      background: var(--bg-card);
      border-radius: 50%;
      color: var(--text-muted);
      font-size: 16px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
  }
  
  .clear-search:hover {
      background: var(--negative);
      color: white;
  }
  
  /* Active filter indicator */
  .controls.has-filters {
      border-color: var(--accent-primary);
  }
  
  .filter-summary {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 0;
      font-size: 13px;
      color: var(--text-secondary);
  }
  
  .filter-summary .count {
      color: var(--accent-secondary);
      font-weight: 600;
  }
  
  .filter-summary .clear-all {
      margin-left: auto;
      color: var(--text-muted);
      text-decoration: underline;
      cursor: pointer;
      background: none;
      border: none;
      font-size: 12px;
  }
  
  .filter-summary .clear-all:hover {
      color: var(--accent-primary);
  }
  
  .sort-buttons {
      display: flex;
      gap: 8px;
  }
  
  .sort-btn {
      padding: 10px 16px;
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      color: var(--text-secondary);
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
  }
  
  .sort-btn:hover {
      background: var(--bg-card);
      border-color: var(--border-highlight);
      color: var(--text-primary);
  }
  
  .sort-btn.active {
      background: var(--accent-primary);
      border-color: var(--accent-primary);
      color: white;
  }
  
  /* Token Grid */
  .token-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 16px;
  }
  
  .empty-state {
      grid-column: 1 / -1;
      text-align: center;
      padding: 60px 20px;
      color: var(--text-muted);
  }
  
  /* Token Card */
  .token-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      padding: 20px;
      cursor: pointer;
      transition: all 0.2s;
  }
  
  .token-card:hover {
      background: var(--bg-card-hover);
      border-color: var(--border-highlight);
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
  }
  
  .token-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
  }
  
  .token-icon {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      overflow: hidden;
      background: var(--bg-secondary);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
  }
  
  .token-icon img {
      width: 100%;
      height: 100%;
      object-fit: cover;
  }
  
  .token-icon-placeholder {
      font-size: 18px;
      font-weight: 700;
      color: var(--accent-primary);
  }
  
  .token-info {
      flex: 1;
      min-width: 0;
  }
  
  .token-name {
      font-size: 16px;
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
  }
  
  .token-symbol {
      font-size: 13px;
      color: var(--text-muted);
      font-family: var(--font-mono);
  }
  
  .verified-badge {
      width: 24px;
      height: 24px;
      background: var(--accent-secondary);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      color: var(--bg-primary);
      font-weight: 700;
  }
  
  .token-price {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      margin-bottom: 16px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--border-color);
  }
  
  .token-price .price {
      font-size: 20px;
      font-weight: 700;
      font-family: var(--font-mono);
  }
  
  .price-change {
      font-size: 14px;
      font-weight: 600;
      font-family: var(--font-mono);
      padding: 4px 8px;
      border-radius: var(--radius-sm);
  }
  
  .price-change.positive {
      color: var(--positive);
      background: var(--positive-bg);
  }
  
  .price-change.negative {
      color: var(--negative);
      background: var(--negative-bg);
  }
  
  .token-stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-bottom: 16px;
  }
  
  .stat-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 6px 0;
  }
  
  .stat-row .stat-label {
      font-size: 12px;
      color: var(--text-muted);
  }
  
  .stat-row .stat-value {
      font-size: 13px;
      font-weight: 500;
      font-family: var(--font-mono);
  }
  
  .stat-row .stat-value.positive {
      color: var(--positive);
  }
  
  .stat-row .stat-value.negative {
      color: var(--negative);
  }
  
  .token-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 12px;
      border-top: 1px solid var(--border-color);
  }
  
  .token-address {
      font-size: 11px;
      font-family: var(--font-mono);
      color: var(--text-muted);
  }
  
  .launchpad-badge {
      font-size: 10px;
      padding: 3px 8px;
      background: var(--bg-secondary);
      border-radius: var(--radius-sm);
      color: var(--text-secondary);
      text-transform: uppercase;
      letter-spacing: 0.5px;
  }
  
  /* Token Detail Modal */
  .token-detail-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(8px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      padding: 20px;
  }
  
  .token-detail {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      max-width: 600px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      padding: 32px;
      position: relative;
      box-shadow: var(--shadow-lg), var(--shadow-glow);
  }
  
  .close-btn {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 36px;
      height: 36px;
      border: none;
      background: var(--bg-secondary);
      border-radius: 50%;
      color: var(--text-secondary);
      font-size: 24px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
  }
  
  .close-btn:hover {
      background: var(--negative);
      color: white;
  }
  
  .detail-header {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 24px;
  }
  
  .detail-icon {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      overflow: hidden;
      background: var(--bg-secondary);
      display: flex;
      align-items: center;
      justify-content: center;
  }
  
  .detail-icon img {
      width: 100%;
      height: 100%;
      object-fit: cover;
  }
  
  .detail-icon .icon-placeholder {
      font-size: 24px;
      font-weight: 700;
      color: var(--accent-primary);
  }
  
  .detail-title h2 {
      font-size: 24px;
      font-weight: 700;
  }
  
  .detail-title .symbol {
      font-size: 14px;
      color: var(--text-muted);
      font-family: var(--font-mono);
  }
  
  .detail-price {
      display: flex;
      align-items: baseline;
      gap: 16px;
      margin-bottom: 24px;
      padding-bottom: 24px;
      border-bottom: 1px solid var(--border-color);
  }
  
  .big-price {
      font-size: 36px;
      font-weight: 700;
      font-family: var(--font-mono);
  }
  
  .big-change {
      font-size: 16px;
      font-weight: 600;
  }
  
  .big-change.positive {
      color: var(--positive);
  }
  
  .big-change.negative {
      color: var(--negative);
  }
  
  .detail-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
  }
  
  .detail-stat {
      background: var(--bg-secondary);
      padding: 16px;
      border-radius: var(--radius-md);
  }
  
  .detail-stat .label {
      font-size: 12px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      display: block;
      margin-bottom: 4px;
  }
  
  .detail-stat .value {
      font-size: 18px;
      font-weight: 600;
      font-family: var(--font-mono);
  }
  
  .detail-stat .value.positive {
      color: var(--positive);
  }
  
  .detail-stat .value.negative {
      color: var(--negative);
  }
  
  .detail-section {
      margin-top: 24px;
      padding-top: 24px;
      border-top: 1px solid var(--border-color);
  }
  
  .detail-section h3 {
      font-size: 14px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--text-secondary);
      margin-bottom: 16px;
  }
  
  .audit-badges {
      display: flex;
      gap: 8px;
      margin-bottom: 16px;
      flex-wrap: wrap;
  }
  
  .audit-badge {
      padding: 6px 12px;
      border-radius: var(--radius-sm);
      font-size: 12px;
      font-weight: 500;
      background: var(--negative-bg);
      color: var(--negative);
  }
  
  .audit-badge.safe {
      background: var(--positive-bg);
      color: var(--positive);
  }
  
  .detail-footer {
      margin-top: 24px;
      padding-top: 24px;
      border-top: 1px solid var(--border-color);
  }
  
  .full-address {
      display: block;
      font-size: 11px;
      font-family: var(--font-mono);
      color: var(--text-muted);
      background: var(--bg-secondary);
      padding: 12px;
      border-radius: var(--radius-sm);
      margin-bottom: 16px;
      word-break: break-all;
  }
  
  .detail-links {
      display: flex;
      gap: 12px;
  }
  
  .link-btn {
      padding: 10px 20px;
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      color: var(--text-primary);
      text-decoration: none;
      font-size: 14px;
      font-weight: 500;
      transition: all 0.2s;
  }
  
  .link-btn:hover {
      background: var(--accent-primary);
      border-color: var(--accent-primary);
  }
  
  /* Responsive */
  @media (max-width: 768px) {
      .app {
          padding: 16px;
      }
  
      .header-content {
          flex-direction: column;
          gap: 16px;
      }
  
      .header-stats {
          align-self: stretch;
          justify-content: space-between;
      }
  
      .controls {
          flex-direction: column;
      }
  
      .sort-buttons {
          flex-wrap: wrap;
      }
  
      .token-grid {
          grid-template-columns: 1fr;
      }
  
      .detail-grid {
          grid-template-columns: 1fr;
      }
  
      .token-detail {
          padding: 20px;
      }
  
      .big-price {
          font-size: 28px;
      }
  }
  
  /* Scrollbar */
  ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
  }
  
  ::-webkit-scrollbar-track {
      background: var(--bg-secondary);
  }
  
  ::-webkit-scrollbar-thumb {
      background: var(--border-color);
      border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
      background: var(--border-highlight);
  }

}

/* --- middleware --- */
.demo-middleware {
  /* Middleware Example Styles */
  
  * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
  }
  
  & {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
      min-height: 100vh;
      color: #e0e0e0;
  }
  
  .app {
      display: flex;
      justify-content: center;
      padding: 2rem;
  }
  
  .task-page {
      width: 100%;
      max-width: 600px;
  }
  
  .task-card {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 16px;
      padding: 2rem;
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  h1 {
      text-align: center;
      font-size: 2rem;
      margin-bottom: 0.5rem;
      background: linear-gradient(90deg, #00d2ff, #3a7bd5);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
  }
  
  .subtitle {
      text-align: center;
      color: #888;
      margin-bottom: 2rem;
      font-size: 0.9rem;
  }
  
  /* Task Input */
  .task-input {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 1.5rem;
  }
  
  .task-input-field {
      flex: 1;
      padding: 0.75rem 1rem;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.05);
      color: #fff;
      font-size: 1rem;
  }
  
  .task-input-field::placeholder {
      color: #666;
  }
  
  .task-input-field:focus {
      outline: none;
      border-color: #3a7bd5;
  }
  
  /* Buttons */
  .btn {
      padding: 0.75rem 1.5rem;
      border: none;
      border-radius: 8px;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.2s;
  }
  
  .btn-add {
      background: linear-gradient(90deg, #00d2ff, #3a7bd5);
      color: #fff;
  }
  
  .btn-add:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 210, 255, 0.3);
  }
  
  .btn-clear {
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: #888;
      font-size: 0.85rem;
      padding: 0.5rem 1rem;
  }
  
  .btn-clear:hover {
      border-color: #ff6b6b;
      color: #ff6b6b;
  }
  
  /* Task List */
  .task-list {
      list-style: none;
      margin-bottom: 1.5rem;
  }
  
  .task-item {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.75rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      transition: background 0.2s;
  }
  
  .task-item:hover {
      background: rgba(255, 255, 255, 0.05);
  }
  
  .task-item.completed .task-title {
      text-decoration: line-through;
      color: #666;
  }
  
  .task-checkbox {
      position: relative;
      cursor: pointer;
  }
  
  .task-checkbox input {
      position: absolute;
      opacity: 0;
      cursor: pointer;
  }
  
  .checkmark {
      display: inline-block;
      width: 20px;
      height: 20px;
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-radius: 4px;
      transition: all 0.2s;
  }
  
  .task-checkbox input:checked ~ .checkmark {
      background: linear-gradient(90deg, #00d2ff, #3a7bd5);
      border-color: transparent;
  }
  
  .task-checkbox input:checked ~ .checkmark::after {
      content: '✓';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: #fff;
      font-size: 12px;
  }
  
  .task-title {
      flex: 1;
  }
  
  .btn-remove {
      background: transparent;
      border: none;
      color: #666;
      font-size: 1.2rem;
      cursor: pointer;
      padding: 0.25rem 0.5rem;
      opacity: 0;
      transition: all 0.2s;
  }
  
  .task-item:hover .btn-remove {
      opacity: 1;
  }
  
  .btn-remove:hover {
      color: #ff6b6b;
  }
  
  /* Task Footer */
  .task-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
      padding-top: 1rem;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      margin-bottom: 2rem;
  }
  
  .task-stats {
      display: flex;
      gap: 1rem;
  }
  
  .stat {
      font-size: 0.85rem;
      color: #888;
  }
  
  .stat strong {
      color: #00d2ff;
  }
  
  .task-filters {
      display: flex;
      gap: 0.25rem;
  }
  
  .filter-btn {
      background: transparent;
      border: 1px solid transparent;
      color: #888;
      padding: 0.25rem 0.75rem;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.85rem;
      transition: all 0.2s;
  }
  
  .filter-btn:hover {
      color: #fff;
  }
  
  .filter-btn.active {
      border-color: rgba(255, 255, 255, 0.2);
      color: #00d2ff;
  }
  
  /* Middleware Demo */
  .middleware-demo {
      background: rgba(0, 210, 255, 0.1);
      border: 1px solid rgba(0, 210, 255, 0.3);
      border-radius: 12px;
      padding: 1.5rem;
      margin-bottom: 1.5rem;
  }
  
  .middleware-demo h3 {
      color: #00d2ff;
      margin-bottom: 0.5rem;
  }
  
  .demo-desc {
      color: #888;
      font-size: 0.9rem;
      margin-bottom: 1rem;
  }
  
  .btn-demo {
      background: linear-gradient(90deg, #00d2ff, #3a7bd5);
      color: #fff;
      padding: 1rem 2rem;
      font-size: 1rem;
      font-weight: 600;
      margin-bottom: 1rem;
  }
  
  .btn-demo:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 20px rgba(0, 210, 255, 0.4);
  }
  
  .log-output {
      background: rgba(0, 0, 0, 0.3);
      border-radius: 8px;
      padding: 1rem;
      margin-bottom: 1rem;
  }
  
  .log-label {
      font-size: 0.75rem;
      color: #666;
      text-transform: uppercase;
      margin-bottom: 0.5rem;
  }
  
  .log-messages {
      font-family: 'Monaco', 'Menlo', monospace;
      font-size: 0.8rem;
      min-height: 80px;
  }
  
  .log-msg {
      color: #00d2ff;
      padding: 0.25rem 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .demo-hint {
      color: #f7971e;
      font-size: 0.85rem;
      font-style: italic;
  }
  
  /* Code Hint */
  .code-hint {
      background: rgba(0, 0, 0, 0.3);
      border-radius: 8px;
      padding: 1rem;
      margin-top: 1rem;
  }
  
  .code-hint p {
      color: #888;
      font-size: 0.85rem;
      margin-bottom: 0.5rem;
  }
  
  .code-hint pre {
      overflow-x: auto;
  }
  
  .code-hint code {
      font-family: 'Monaco', 'Menlo', monospace;
      font-size: 0.75rem;
      color: #a0e0a0;
      white-space: pre;
  }

}

/* --- persistence --- */
.demo-persistence {
  /* Persistence Example Styles */
  
  * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
  }
  
  & {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
      min-height: 100vh;
      color: #e0e0e0;
  }
  
  .app {
      display: flex;
      justify-content: center;
      padding: 2rem;
  }
  
  .notes-page {
      width: 100%;
      max-width: 900px;
  }
  
  .notes-container {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 16px;
      padding: 2rem;
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .notes-header {
      text-align: center;
      margin-bottom: 2rem;
  }
  
  .notes-header h1 {
      font-size: 2rem;
      background: linear-gradient(90deg, #f093fb, #f5576c);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
  }
  
  .subtitle {
      color: #888;
      font-size: 0.9rem;
      margin-top: 0.5rem;
  }
  
  /* Notes Layout */
  .notes-layout {
      display: grid;
      grid-template-columns: 250px 1fr;
      gap: 1.5rem;
      margin-bottom: 2rem;
  }
  
  /* Sidebar */
  .notes-sidebar {
      display: flex;
      flex-direction: column;
      gap: 1rem;
  }
  
  .sidebar-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
  }
  
  .note-count {
      font-size: 0.85rem;
      color: #888;
  }
  
  .btn {
      padding: 0.5rem 1rem;
      border: none;
      border-radius: 6px;
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.2s;
  }
  
  .btn-add {
      background: linear-gradient(90deg, #f093fb, #f5576c);
      color: #fff;
  }
  
  .btn-add:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
  }
  
  .notes-list {
      list-style: none;
      flex: 1;
      overflow-y: auto;
      max-height: 400px;
  }
  
  .note-item {
      padding: 0.75rem;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.2s;
      margin-bottom: 0.5rem;
      background: rgba(255, 255, 255, 0.03);
  }
  
  .note-item:hover {
      background: rgba(255, 255, 255, 0.08);
  }
  
  .note-item.selected {
      background: rgba(240, 147, 251, 0.2);
      border-left: 3px solid #f093fb;
  }
  
  .note-title {
      display: block;
      font-weight: 500;
      margin-bottom: 0.25rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
  }
  
  .note-preview {
      display: block;
      font-size: 0.75rem;
      color: #666;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
  }
  
  .btn-clear {
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: #888;
  }
  
  .btn-clear:hover {
      border-color: #ff6b6b;
      color: #ff6b6b;
  }
  
  /* Editor */
  .note-editor {
      background: rgba(0, 0, 0, 0.2);
      border-radius: 8px;
      min-height: 400px;
  }
  
  .editor-content {
      display: flex;
      flex-direction: column;
      height: 100%;
      padding: 1rem;
  }
  
  .editor-title {
      background: transparent;
      border: none;
      font-size: 1.5rem;
      font-weight: 600;
      color: #fff;
      padding: 0.5rem 0;
      margin-bottom: 0.5rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .editor-title:focus {
      outline: none;
      border-bottom-color: #f093fb;
  }
  
  .editor-body {
      flex: 1;
      background: transparent;
      border: none;
      color: #e0e0e0;
      font-size: 1rem;
      line-height: 1.6;
      resize: none;
      min-height: 250px;
  }
  
  .editor-body:focus {
      outline: none;
  }
  
  .editor-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 1rem;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .note-date {
      font-size: 0.75rem;
      color: #666;
  }
  
  .btn-delete {
      background: transparent;
      border: 1px solid rgba(255, 107, 107, 0.5);
      color: #ff6b6b;
  }
  
  .btn-delete:hover {
      background: rgba(255, 107, 107, 0.1);
  }
  
  .editor-empty {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100%;
      min-height: 400px;
  }
  
  .editor-empty p {
      color: #666;
  }
  
  /* Code Hint */
  .code-hint {
      background: rgba(0, 0, 0, 0.3);
      border-radius: 8px;
      padding: 1rem;
  }
  
  .code-hint p {
      color: #888;
      font-size: 0.85rem;
      margin-bottom: 0.5rem;
  }
  
  .code-hint pre {
      overflow-x: auto;
  }
  
  .code-hint code {
      font-family: 'Monaco', 'Menlo', monospace;
      font-size: 0.75rem;
      color: #fba0e3;
      white-space: pre;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
      .notes-layout {
          grid-template-columns: 1fr;
      }
      
      .notes-list {
          max-height: 200px;
      }
  }

}

/* --- composition --- */
.demo-composition {
  /* Composition Example Styles */
  
  * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
  }
  
  & {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
      min-height: 100vh;
      color: #e0e0e0;
  }
  
  .app {
      padding: 2rem;
  }
  
  .dashboard-page {
      max-width: 1200px;
      margin: 0 auto;
  }
  
  .dashboard-header {
      text-align: center;
      margin-bottom: 2rem;
  }
  
  .dashboard-header h1 {
      font-size: 2rem;
      background: linear-gradient(90deg, #667eea, #764ba2);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
  }
  
  .subtitle {
      color: #888;
      margin-top: 0.5rem;
  }
  
  .subtitle strong {
      color: #667eea;
  }
  
  /* Dashboard Grid */
  .dashboard-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
      margin-bottom: 2rem;
  }
  
  /* Panels */
  .panel {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      padding: 1.5rem;
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .panel h2 {
      font-size: 1.1rem;
      color: #888;
      margin-bottom: 1rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
  }
  
  /* Auth Panel */
  .auth-info, .auth-login {
      display: flex;
      align-items: center;
      gap: 1rem;
  }
  
  .user-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: linear-gradient(135deg, #667eea, #764ba2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      color: #fff;
  }
  
  .user-name {
      flex: 1;
      font-weight: 500;
  }
  
  .btn {
      padding: 0.5rem 1rem;
      border: none;
      border-radius: 6px;
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.2s;
  }
  
  .btn-login {
      background: linear-gradient(90deg, #667eea, #764ba2);
      color: #fff;
  }
  
  .btn-logout {
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: #888;
  }
  
  .btn-logout:hover {
      border-color: #ff6b6b;
      color: #ff6b6b;
  }
  
  /* Cart Panel */
  .cart-stats {
      display: flex;
      gap: 2rem;
      margin-bottom: 1rem;
  }
  
  .stat {
      text-align: center;
  }
  
  .stat-value {
      display: block;
      font-size: 1.5rem;
      font-weight: bold;
      color: #667eea;
  }
  
  .stat-label {
      font-size: 0.75rem;
      color: #666;
      text-transform: uppercase;
  }
  
  .product-list {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 1rem;
  }
  
  .product-btn {
      flex: 1;
      padding: 0.5rem;
      background: rgba(102, 126, 234, 0.2);
      border: 1px solid rgba(102, 126, 234, 0.3);
      border-radius: 6px;
      color: #667eea;
      font-size: 0.75rem;
      cursor: pointer;
      transition: all 0.2s;
  }
  
  .product-btn:hover {
      background: rgba(102, 126, 234, 0.3);
  }
  
  .cart-items {
      list-style: none;
      max-height: 150px;
      overflow-y: auto;
  }
  
  .cart-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .cart-item span:first-child {
      flex: 1;
  }
  
  .item-price {
      color: #888;
      font-size: 0.85rem;
  }
  
  .btn-remove {
      background: transparent;
      border: none;
      color: #666;
      cursor: pointer;
      font-size: 1rem;
  }
  
  .btn-remove:hover {
      color: #ff6b6b;
  }
  
  /* UI Panel */
  .theme-toggle {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1rem;
  }
  
  .btn-theme {
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: #fff;
      min-width: 80px;
  }
  
  .notifications h3 {
      font-size: 0.85rem;
      color: #666;
      margin-bottom: 0.5rem;
  }
  
  .notification-list {
      list-style: none;
      max-height: 100px;
      overflow-y: auto;
  }
  
  .notification {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem;
      background: rgba(102, 126, 234, 0.1);
      border-radius: 4px;
      margin-bottom: 0.25rem;
      font-size: 0.85rem;
  }
  
  .notification span {
      flex: 1;
  }
  
  .btn-dismiss {
      background: transparent;
      border: none;
      color: #666;
      cursor: pointer;
  }
  
  /* Checkout Panel */
  .checkout-panel {
      grid-column: span 2;
  }
  
  .derived-desc {
      color: #888;
      font-size: 0.85rem;
      margin-bottom: 1rem;
  }
  
  .checkout-status {
      display: flex;
      gap: 2rem;
      margin-bottom: 1rem;
  }
  
  .status-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
  }
  
  .status-icon {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.1);
      font-size: 0.75rem;
  }
  
  .status-icon.ready {
      background: rgba(46, 213, 115, 0.2);
      color: #2ed573;
  }
  
  .btn-checkout {
      width: 100%;
      padding: 1rem;
      background: linear-gradient(90deg, #667eea, #764ba2);
      color: #fff;
      font-size: 1rem;
      font-weight: 600;
  }
  
  .btn-checkout:disabled {
      opacity: 0.5;
      cursor: not-allowed;
  }
  
  /* Code Hint */
  .code-hint {
      background: rgba(0, 0, 0, 0.3);
      border-radius: 8px;
      padding: 1rem;
  }
  
  .code-hint p {
      color: #888;
      font-size: 0.85rem;
      margin-bottom: 0.5rem;
  }
  
  .code-hint pre {
      overflow-x: auto;
  }
  
  .code-hint code {
      font-family: 'Monaco', 'Menlo', monospace;
      font-size: 0.75rem;
      color: #a78bfa;
      white-space: pre;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
      .dashboard-grid {
          grid-template-columns: 1fr;
      }
  
      .checkout-panel {
          grid-column: span 1;
      }
  }

}

/* --- feature-flags --- */
.demo-feature-flags {
  /* Feature Flags Example Styles */
  
  * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
  }
  
  & {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
      min-height: 100vh;
      color: #e0e0e0;
  }
  
  .app {
      padding: 2rem;
  }
  
  .landing-page {
      max-width: 900px;
      margin: 0 auto;
  }
  
  .landing-header {
      text-align: center;
      margin-bottom: 2rem;
  }
  
  .landing-header h1 {
      font-size: 2rem;
      background: linear-gradient(90deg, #f7971e, #ffd200);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
  }
  
  .subtitle {
      color: #888;
      margin-top: 0.5rem;
  }
  
  /* Flag Controls */
  .flag-controls {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      padding: 1.5rem;
      margin-bottom: 2rem;
      border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .flag-controls h2 {
      font-size: 1rem;
      color: #888;
      margin-bottom: 1rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
  }
  
  .flag-list {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
  }
  
  .flag-item {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.5rem 1rem;
      background: rgba(0, 0, 0, 0.2);
      border-radius: 8px;
  }
  
  .flag-toggle {
      position: relative;
      display: inline-block;
      width: 40px;
      height: 22px;
  }
  
  .flag-toggle input {
      opacity: 0;
      width: 0;
      height: 0;
  }
  
  .toggle-slider {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 22px;
      transition: 0.3s;
  }
  
  .toggle-slider::before {
      position: absolute;
      content: "";
      height: 16px;
      width: 16px;
      left: 3px;
      bottom: 3px;
      background: white;
      border-radius: 50%;
      transition: 0.3s;
  }
  
  input:checked + .toggle-slider {
      background: linear-gradient(90deg, #f7971e, #ffd200);
  }
  
  input:checked + .toggle-slider::before {
      transform: translateX(18px);
  }
  
  .flag-name {
      font-size: 0.9rem;
  }
  
  .flag-variant {
      font-size: 0.75rem;
      color: #888;
  }
  
  /* Feature Demos */
  .feature-demos {
      display: grid;
      gap: 1.5rem;
      margin-bottom: 2rem;
  }
  
  /* Hero Section */
  .hero-section {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      padding: 1.5rem;
      border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .hero-section h2 {
      font-size: 1rem;
      color: #888;
      margin-bottom: 1rem;
      text-transform: uppercase;
  }
  
  .hero {
      padding: 2rem;
      border-radius: 8px;
      text-align: center;
      margin-bottom: 1rem;
  }
  
  .new-hero {
      background: linear-gradient(135deg, rgba(247, 151, 30, 0.2), rgba(255, 210, 0, 0.2));
      border: 1px solid rgba(247, 151, 30, 0.3);
  }
  
  .new-hero h3 {
      font-size: 1.5rem;
      margin-bottom: 0.5rem;
  }
  
  .classic-hero {
      background: rgba(255, 255, 255, 0.05);
  }
  
  .btn {
      padding: 0.75rem 1.5rem;
      border: none;
      border-radius: 8px;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.2s;
  }
  
  .btn-hero {
      background: linear-gradient(90deg, #f7971e, #ffd200);
      color: #000;
      font-weight: 600;
      margin-top: 1rem;
  }
  
  .btn-hero:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(247, 151, 30, 0.4);
  }
  
  .variant-demo {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 1rem;
      background: rgba(0, 0, 0, 0.2);
      border-radius: 8px;
  }
  
  .variant-label {
      font-size: 0.85rem;
      color: #888;
  }
  
  .variant-badge {
      padding: 0.25rem 0.75rem;
      border-radius: 4px;
      font-size: 0.75rem;
      font-weight: 600;
  }
  
  .variant-badge.modern {
      background: rgba(247, 151, 30, 0.2);
      color: #f7971e;
  }
  
  .variant-badge.classic {
      background: rgba(100, 100, 255, 0.2);
      color: #6464ff;
  }
  
  .variant-badge.minimal {
      background: rgba(100, 255, 100, 0.2);
      color: #64ff64;
  }
  
  /* Beta Section */
  .beta-section {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      padding: 1.5rem;
      border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .beta-section h2 {
      font-size: 1rem;
      color: #888;
      margin-bottom: 1rem;
      text-transform: uppercase;
  }
  
  .beta-content {
      padding: 1.5rem;
      background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.2));
      border-radius: 8px;
      border: 1px solid rgba(139, 92, 246, 0.3);
  }
  
  .beta-badge {
      display: inline-block;
      padding: 0.25rem 0.5rem;
      background: linear-gradient(90deg, #8b5cf6, #a855f7);
      color: #fff;
      font-size: 0.7rem;
      font-weight: bold;
      border-radius: 4px;
      margin-bottom: 0.5rem;
  }
  
  .beta-content h3 {
      margin-bottom: 0.5rem;
  }
  
  .beta-content ul {
      list-style: none;
      margin-top: 1rem;
  }
  
  .beta-content li {
      padding: 0.5rem 0;
      padding-left: 1.5rem;
      position: relative;
  }
  
  .beta-content li::before {
      content: "✨";
      position: absolute;
      left: 0;
  }
  
  .beta-locked {
      padding: 2rem;
      text-align: center;
      background: rgba(0, 0, 0, 0.2);
      border-radius: 8px;
  }
  
  .lock-icon {
      font-size: 2rem;
      display: block;
      margin-bottom: 0.5rem;
  }
  
  .beta-locked p {
      color: #666;
  }
  
  /* Premium Section */
  .premium-section {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      padding: 1.5rem;
      border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .premium-section h2 {
      font-size: 1rem;
      color: #888;
      margin-bottom: 1rem;
      text-transform: uppercase;
  }
  
  .premium-content {
      padding: 1.5rem;
      background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(244, 114, 182, 0.2));
      border-radius: 8px;
      border: 1px solid rgba(236, 72, 153, 0.3);
  }
  
  .premium-badge {
      display: inline-block;
      padding: 0.25rem 0.5rem;
      background: linear-gradient(90deg, #ec4899, #f472b6);
      color: #fff;
      font-size: 0.7rem;
      font-weight: bold;
      border-radius: 4px;
      margin-bottom: 0.5rem;
  }
  
  .premium-upsell {
      padding: 1.5rem;
      text-align: center;
      background: rgba(0, 0, 0, 0.2);
      border-radius: 8px;
  }
  
  .premium-upsell h3 {
      margin-bottom: 0.5rem;
  }
  
  .premium-upsell p {
      color: #888;
      margin-bottom: 1rem;
  }
  
  .btn-upgrade {
      background: linear-gradient(90deg, #ec4899, #f472b6);
      color: #fff;
  }
  
  /* Code Hint */
  .code-hint {
      background: rgba(0, 0, 0, 0.3);
      border-radius: 8px;
      padding: 1rem;
  }
  
  .code-hint p {
      color: #888;
      font-size: 0.85rem;
      margin-bottom: 0.5rem;
  }
  
  .code-hint pre {
      overflow-x: auto;
  }
  
  .code-hint code {
      font-family: 'Monaco', 'Menlo', monospace;
      font-size: 0.75rem;
      color: #ffd200;
      white-space: pre;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
      .flag-list {
          flex-direction: column;
      }
  
      .variant-demo {
          flex-direction: column;
          text-align: center;
      }
  }

}

/* --- devtools --- */
.demo-devtools {
  /* Devtools Example Styles */
  
  * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
  }
  
  & {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
      min-height: 100vh;
      color: #e0e0e0;
  }
  
  .app {
      padding: 2rem;
  }
  
  .devtools-page {
      max-width: 900px;
      margin: 0 auto;
  }
  
  .devtools-header {
      text-align: center;
      margin-bottom: 2rem;
  }
  
  .devtools-header h1 {
      font-size: 2rem;
      background: linear-gradient(90deg, #00f5a0, #00d9f5);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
  }
  
  .subtitle {
      color: #888;
      margin-top: 0.5rem;
  }
  
  /* Layout */
  .devtools-layout {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
      margin-bottom: 2rem;
  }
  
  /* Panels */
  .panel {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      padding: 1.5rem;
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .panel h2 {
      font-size: 1.1rem;
      color: #00f5a0;
      margin-bottom: 0.5rem;
  }
  
  .panel-desc {
      color: #888;
      font-size: 0.85rem;
      margin-bottom: 1rem;
  }
  
  /* Counter Demo */
  .counter-display {
      text-align: center;
      margin-bottom: 1.5rem;
  }
  
  .count-value {
      display: block;
      font-size: 4rem;
      font-weight: bold;
      background: linear-gradient(90deg, #00f5a0, #00d9f5);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
  }
  
  .count-doubled {
      font-size: 0.9rem;
      color: #666;
  }
  
  .button-group {
      display: flex;
      justify-content: center;
      gap: 0.5rem;
      margin-bottom: 1rem;
  }
  
  .btn {
      padding: 0.75rem 1.5rem;
      border: none;
      border-radius: 8px;
      font-size: 1.25rem;
      cursor: pointer;
      transition: all 0.2s;
  }
  
  .btn-inc, .btn-dec {
      background: rgba(0, 245, 160, 0.2);
      color: #00f5a0;
      border: 1px solid rgba(0, 245, 160, 0.3);
      min-width: 50px;
  }
  
  .btn-inc:hover, .btn-dec:hover {
      background: rgba(0, 245, 160, 0.3);
  }
  
  .btn-reset {
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: #888;
      font-size: 0.9rem;
  }
  
  .btn-reset:hover {
      border-color: rgba(255, 255, 255, 0.4);
      color: #fff;
  }
  
  .quick-set {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      margin-bottom: 1.5rem;
      font-size: 0.85rem;
      color: #888;
  }
  
  .btn-small {
      padding: 0.25rem 0.75rem;
      font-size: 0.85rem;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: #fff;
  }
  
  .btn-small:hover {
      background: rgba(255, 255, 255, 0.2);
  }
  
  /* History Panel */
  .history-panel {
      background: rgba(0, 0, 0, 0.2);
      border-radius: 8px;
      padding: 1rem;
  }
  
  .history-panel h3 {
      font-size: 0.85rem;
      color: #888;
      margin-bottom: 0.5rem;
  }
  
  .history-values {
      display: flex;
      flex-wrap: wrap;
      gap: 0.25rem;
      margin-bottom: 0.75rem;
      min-height: 30px;
  }
  
  .history-value {
      padding: 0.25rem 0.5rem;
      background: rgba(0, 245, 160, 0.1);
      border-radius: 4px;
      font-size: 0.75rem;
      color: #00f5a0;
  }
  
  .btn-clear {
      width: 100%;
      padding: 0.5rem;
      background: transparent;
      border: 1px solid rgba(255, 107, 107, 0.3);
      color: #ff6b6b;
      font-size: 0.8rem;
  }
  
  .btn-clear:hover {
      background: rgba(255, 107, 107, 0.1);
  }
  
  /* Console Guide */
  .api-commands {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      margin-bottom: 1.5rem;
  }
  
  .api-command {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      padding: 0.75rem;
      background: rgba(0, 0, 0, 0.3);
      border-radius: 6px;
  }
  
  .api-command code {
      font-family: 'Monaco', 'Menlo', monospace;
      font-size: 0.8rem;
      color: #00f5a0;
  }
  
  .api-desc {
      font-size: 0.75rem;
      color: #666;
  }
  
  .inspector-hint {
      background: rgba(0, 217, 245, 0.1);
      border: 1px solid rgba(0, 217, 245, 0.2);
      border-radius: 8px;
      padding: 1rem;
  }
  
  .inspector-hint h3 {
      font-size: 0.9rem;
      color: #00d9f5;
      margin-bottom: 0.5rem;
  }
  
  .inspector-hint p {
      font-size: 0.85rem;
      margin-bottom: 0.5rem;
  }
  
  .inspector-hint ul {
      list-style: none;
      font-size: 0.8rem;
      color: #888;
  }
  
  .inspector-hint li {
      padding: 0.25rem 0;
      padding-left: 1rem;
      position: relative;
  }
  
  .inspector-hint li::before {
      content: "→";
      position: absolute;
      left: 0;
      color: #00d9f5;
  }
  
  /* Code Hint */
  .code-hint {
      background: rgba(0, 0, 0, 0.3);
      border-radius: 8px;
      padding: 1rem;
  }
  
  .code-hint p {
      color: #888;
      font-size: 0.85rem;
      margin-bottom: 0.5rem;
  }
  
  .code-hint pre {
      overflow-x: auto;
  }
  
  .code-hint code {
      font-family: 'Monaco', 'Menlo', monospace;
      font-size: 0.75rem;
      color: #00f5a0;
      white-space: pre;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
      .devtools-layout {
          grid-template-columns: 1fr;
      }
  }

}

/* --- csr --- */
.demo-csr {
  & {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      max-width: 600px;
      margin: 2rem auto;
      padding: 0 1rem;
      background: #1a1a2e;
      color: #e0e0e0;
  }
  h1 { color: #e94560; margin-bottom: 0.25rem; }
  .subtitle { color: #888; margin-top: 0; font-size: 0.9rem; }
  .todo-input { display: flex; gap: 0.5rem; margin: 1rem 0; }
  .todo-input input { flex: 1; padding: 0.5rem; border: 1px solid #333; border-radius: 4px; background: #16213e; color: #e0e0e0; }
  .todo-input button { padding: 0.5rem 1rem; background: #e94560; color: white; border: none; border-radius: 4px; cursor: pointer; }
  .todo-filters { display: flex; gap: 0.5rem; margin: 0.5rem 0; }
  .todo-filters button { padding: 0.25rem 0.75rem; background: #16213e; color: #e0e0e0; border: 1px solid #333; border-radius: 4px; cursor: pointer; }
  .todo-list { list-style: none; padding: 0; }
  .todo-list li { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0; border-bottom: 1px solid #222; }
  .todo-list li.done span { text-decoration: line-through; color: #666; }
  .delete { background: none; border: none; color: #e94560; cursor: pointer; font-size: 1.2rem; margin-left: auto; }
  .todo-footer { margin-top: 1rem; color: #888; font-size: 0.9rem; }

}

/* --- selectors --- */
.demo-selectors {
  /* Selectors Example - Styles */
  
  & {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      max-width: 900px;
      margin: 2rem auto;
      padding: 0 1rem;
      background: #1a1a2e;
      color: #e0e0e0;
  }
  
  h1 {
      color: #e94560;
      margin-bottom: 0.25rem;
  }
  
  h2 {
      color: #0f3460;
      margin-top: 1.5rem;
  }
  
  h3 {
      color: #e94560;
      margin-top: 0;
  }
  
  .subtitle {
      color: #888;
      margin-top: 0;
  }
  
  .controls {
      margin: 1rem 0;
      padding: 1rem;
      background: #16213e;
      border-radius: 8px;
  }
  
  .control-panel {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
  }
  
  .control-panel button {
      padding: 0.5rem 1rem;
      background: #0f3460;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
  }
  
  .control-panel button:hover {
      background: #e94560;
  }
  
  .panels {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
      margin-top: 1rem;
  }
  
  .panel {
      padding: 1rem;
      background: #16213e;
      border-radius: 8px;
      border: 1px solid #333;
  }
  
  .hint {
      color: #666;
      font-size: 0.8rem;
      font-style: italic;
      margin-top: 0.5rem;
  }
  
  .empty {
      color: #666;
      font-style: italic;
  }
  
  ul {
      padding-left: 1.2rem;
  }
  
  @media (max-width: 600px) {
      .panels {
          grid-template-columns: 1fr;
      }
  
      .control-panel {
          flex-direction: column;
      }
  }

}


