/* Scoped Styles for Package Builder */
  #pb-root {
    font-family:  Roboto, Helvetica, Arial, sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    padding: 2rem;
    border-radius: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
  }

  #pb-root * { box-sizing: border-box; }

  /* Grid Layouts */
  .pb-grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
  .pb-grid-cols-panel { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
  
  @media (min-width: 768px) {
    .pb-grid-3 { grid-template-columns: repeat(3, 1fr); }
  }
  @media (min-width: 1024px) {
    .pb-grid-cols-panel { grid-template-columns: 300px 1fr; }
  }

  /* Cards */
  .pb-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  /* Sidebar Buttons */
  .pb-cat-btn {
    width: 100%;
    text-align: left;
    padding: 1rem;
    background: transparent;
    border: none;
    border-left: 4px solid transparent;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #334155;
  }
  .pb-cat-btn:hover { background-color: rgba(51, 65, 85, 0.5); }
  .pb-cat-btn.active {
    background-color: rgba(16, 185, 129, 0.1);
    border-left-color: #10b981;
  }
  
  /* Option Buttons */
  .pb-opt-btn {
    width: 100%;
    text-align: left;
    padding: 1rem;
    background-color: #1e293b;
    border: 2px solid #475569;
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
  .pb-opt-btn:hover { border-color: #64748b; }
  .pb-opt-btn.selected {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
  }

  /* Typography */
  .pb-text-emerald { color: #34d399; }
  .pb-text-blue { color: #60a5fa; }
  .pb-text-rose { color: #fb7185; }
  .pb-text-muted { color: #94a3b8; font-size: 0.875rem; }
  .pb-font-bold { font-weight: 700; }
  .pb-text-xl { font-size: 1.25rem; }
  .pb-text-3xl { font-size: 1.875rem; }
  
  /* Tags */
  .pb-tag {
    font-family: monospace;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
    display: inline-block;
    margin-top: 0.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
  }

  /* Buttons */
  .pb-btn {
    font-weight: bold;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s;
  }
  .pb-btn:hover { transform: translateY(-2px); }
  
  .pb-cta-btn {
    background: linear-gradient(to right, #10b981, #059669);
    color: white;
    width: 100%;
    max-width: 600px;
    margin-top: 2rem;
    font-size: 1.125rem;
    padding: 1rem 2rem;
  }
  .pb-cta-btn:disabled {
    background: #475569;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
  }

  /* Modal Styles */
  .pb-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
  }
  .pb-modal-content {
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: pbFadeIn 0.3s ease-out;
  }
  .pb-input {
    width: 100%;
    padding: 0.75rem;
    margin: 1rem 0;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
  }
  .pb-input:focus { outline: 2px solid #10b981; border-color: transparent; }

  .pb-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
  }
  .pb-btn-primary { background: #10b981; color: white; }
  .pb-btn-secondary { background: #334155; color: #cbd5e1; }
  .pb-btn-secondary:hover { background: #475569; }

  /* Utilities */
  .pb-progress-container {
    position: relative;
    margin-top: 1rem;
  }
  
  .pb-progress-bg {
    background-color: #334155;
    height: 0.75rem;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
  }
  
  .pb-discount-indicator {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: repeating-linear-gradient(
      45deg,
      rgba(148, 163, 184, 0.3),
      rgba(148, 163, 184, 0.3) 10px,
      rgba(100, 116, 139, 0.3) 10px,
      rgba(100, 116, 139, 0.3) 20px
    );
    border-right: 2px solid rgba(251, 113, 133, 0.5);
    transition: width 0.3s ease;
    z-index: 1;
    display: none;
  }
  
  .pb-progress-fill {
    background: linear-gradient(to right, #10b981, #34d399);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
    z-index: 2;
  }
  
  .pb-discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fb7185, #f43f5e);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 1rem;
    margin-left: 0.75rem;
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(251, 113, 133, 0.4);
    animation: pbPulse 2s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  @keyframes pbPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.9; }
  }
  
  @media (max-width: 768px) {
    .pb-discount-badge {
      display: block;
      margin: 0.5rem auto 0;
      width: fit-content;
    }
  }
  
  .hidden { display: none !important; }

  @keyframes pbFadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }