.customer-display-setup-container {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: 100vh;
  padding: 40px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  /* ================== HEADER ================== */
  .setup-header {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
    animation: cds-slide-in-down 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .header-content {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  
  .header-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
  }
  
  .header-text {
    flex: 1;
  }
  
  .header-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
  }
  
  .header-subtitle {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
  }
  
  /* ================== CONTENT ================== */
  .setup-content {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Alert */
  .alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    animation: cds-slide-in-down 0.4s ease-out;
  }
  
  .alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
  }
  
  /* Setup Card */
  .setup-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 32px;
    overflow: hidden;
    animation: cds-slide-in-up 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  /* Override global .card-header (e.g. POS) which uses row + space-between and would
     pin .card-subtitle opposite .header-top, breaking title/button + subtitle layout */
  .setup-card .card-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
  }
  
  .header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
  }
  
  .card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
  }
  
  .card-title svg {
    color: #3b82f6;
  }
  
  .card-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
  }
  
  .btn-generate {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
  }
  
  .btn-generate:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  }
  
  .btn-generate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  
  .cds-spinner-icon {
    animation: cds-spin 1s linear infinite;
  }
  
  .card-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  
  /* Sections */
  .info-section {
    animation: cds-fade-in 0.5s ease-out;
  }
  
  .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }
  
  .section-header svg {
    color: #3b82f6;
    flex-shrink: 0;
  }
  
  .section-header label {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
  }
  
  /* URL Section */
  
  .url-input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
  }
  
  .url-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: #f8fafc;
    color: #1e293b;
    transition: all 0.3s ease;
  }
  
  .url-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  }
  
  .btn-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
  }
  
  .btn-copy:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
  }
  
  .url-hint {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
  }
  
  /* Multiple screens */
  .multi-screen-section {
    margin-top: 8px;
  }
  .multi-screen-hint {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.5;
  }
  .screen-url-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .screen-url-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .screen-url-row .screen-label {
    font-weight: 600;
    color: #475569;
    min-width: 72px;
    font-size: 14px;
  }
  .screen-url-row .url-input-sm {
    flex: 1;
    min-width: 180px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .screen-url-row .btn-copy-sm {
    padding: 8px 12px;
    font-size: 13px;
  }
  .btn-qr-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #3b82f6;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }
  .btn-qr-icon:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
  }
  
  /* QR modal (per-screen) */
  .qr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: cds-fade-in 0.2s ease-out;
  }
  .qr-modal-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 360px;
    width: 100%;
    overflow: hidden;
    animation: cds-slide-in-up 0.3s ease-out;
  }
  .qr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
  }
  .qr-modal-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
  }
  .btn-close-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .btn-close-modal:hover {
    background: #f1f5f9;
    color: #1e293b;
  }
  .qr-modal-body {
    padding: 24px;
    text-align: center;
  }
  .qr-modal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    margin-bottom: 12px;
  }
  .qr-modal-container canvas,
  .qr-modal-container img,
  .qr-modal-container table {
    margin: 0 auto;
  }
  .qr-modal-hint {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
  }
  
  /* QR Section */
  
  .qr-description {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px 0;
    line-height: 1.5;
  }
  
  .qr-container {
    display: flex;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
  }
  
  .qr-html,
  .qr-canvas {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }
  
  .qr-canvas {
    background: white;
    border: 1px solid #e2e8f0;
  }
  
  /* QR Canvas Container */
  .qr-canvas-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
  }
  
  /* Style for QRCode library generated content */
  .qr-canvas-container table {
    border-collapse: collapse;
    margin: auto;
    background: white;
    padding: 10px;
    border-radius: 8px;
  }
  
  .qr-canvas-container table tr,
  .qr-canvas-container table td {
    padding: 0;
    margin: 0;
  }
  
  .qr-canvas-container img {
    border-radius: 8px;
  }
  
  /* Empty State */
  .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #94a3b8;
  }
  
  .empty-state svg {
    opacity: 0.3;
    margin-bottom: 16px;
  }
  
  .empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: #475569;
    margin: 0 0 8px 0;
  }
  
  .empty-state p {
    font-size: 14px;
    margin: 0;
  }
  
  /* ================== INFO CARDS GRID ================== */
  .info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
  }
  
  .info-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    animation: cds-slide-in-up 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  }
  
  .card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    margin-bottom: 16px;
  }
  
  .info-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
  }
  
  .info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .info-card li {
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
  }
  
  .info-card li:before {
    content: '✓';
    color: #10b981;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
  }
  
  /* ================== TROUBLESHOOTING ================== */
  .troubleshooting-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    animation: cds-slide-in-up 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
  }
  
  .troubleshooting-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 24px 0;
  }
  
  .troubleshooting-card h3 svg {
    color: #3b82f6;
  }
  
  .troubleshooting-items {
    display: grid;
    gap: 16px;
  }
  
  .troubleshooting-item {
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .troubleshooting-item .question {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
  }
  
  .troubleshooting-item .answer {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
  }
  
  /* ================== ANIMATIONS ================== */
  @keyframes cds-slide-in-down {
    from {
      opacity: 0;
      transform: translateY(-30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes cds-slide-in-up {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes cds-fade-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes cds-spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  
  @keyframes cds-slide-in {
    from {
      opacity: 0;
      transform: translateX(100px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes cds-fade-out {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }
  
  /* ================== RESPONSIVE ================== */
  @media (max-width: 768px) {
    padding: 20px 16px;

    .setup-header {
      margin: 0 auto 24px;
      padding: 24px;
    }
  
    .header-content {
      flex-direction: column;
      text-align: center;
      gap: 16px;
    }
  
    .header-icon {
      width: 64px;
      height: 64px;
    }
  
    .header-title {
      font-size: 24px;
    }
  
    .header-subtitle {
      font-size: 14px;
    }
  
    .setup-card .card-header {
      padding: 24px;
    }
  
    .header-top {
      flex-direction: column;
      align-items: stretch;
    }

    .btn-generate {
      width: 100%;
      justify-content: center;
      margin-top: 0;
    }
  
    .card-body {
      padding: 24px;
      gap: 24px;
    }
  
    .url-input-wrapper {
      flex-direction: column;
    }
  
    .btn-copy {
      width: 100%;
      justify-content: center;
    }
  
    .troubleshooting-card {
      padding: 24px;
    }
  
    .info-cards-grid {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 480px) {
    padding: 16px 12px;

    .setup-header {
      padding: 20px;
      border-radius: 16px;
    }
  
    .header-icon {
      width: 56px;
      height: 56px;
    }
  
    .header-title {
      font-size: 20px;
    }
  
    .card-title {
      font-size: 18px;
    }
  
    .setup-card .card-header {
      padding: 20px;
    }
  
    .card-body {
      padding: 20px;
    }
  
    .btn-generate {
      padding: 8px 16px;
      font-size: 13px;
    }
  }
}
