:root{
      --bg:#F9FAFB;
      --card:#FFFFFF;
      --muted:#6b7280;
      --accent-1: #6B4EFF;
      --accent-2: #4F46E5;
      --success: #10B981;
      --danger: #EF4444;
      --warning: #F59E0B;
      --shadow: 0 8px 30px rgba(28,27,31,0.06);
      --radius: 14px;
    }

    * { box-sizing: border-box }
    html, body { height: 100% }
    body {
      margin: 0;
      font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
      background: linear-gradient(180deg, #FBFBFD 0%, #F5F7FB 100%);
      color: #0f172a;
      -webkit-font-smoothing: antialiased;
      line-height: 1.5;
    }

    .container {
      max-width: 1000px;
      margin: 0 auto;
      padding: 20px;
    }

    .header {
      background: linear-gradient(135deg, #6B4EFF 0%, #4F46E5 100%);
      color: white;
      padding: 32px;
      border-radius: 16px;
      margin-bottom: 24px;
      text-align: center;
    }

    .header h1 {
      margin: 0 0 8px;
      font-family: 'Poppins', sans-serif;
      font-size: 28px;
    }

    .progress-bar {
      width: 100%;
      height: 8px;
      background: rgba(255,255,255,0.2);
      border-radius: 4px;
      margin: 16px 0;
      overflow: hidden;
    }

    .progress-fill {
      height: 100%;
      background: linear-gradient(90deg, #10B981, #059669);
      border-radius: 4px;
      transition: width 0.3s ease;
      width: 0%;
    }

    .card {
      background: var(--card);
      border-radius: 16px;
      padding: 24px;
      box-shadow: var(--shadow);
      margin-bottom: 20px;
    }

    .form-group {
      margin-bottom: 20px;
    }

    .form-group label {
      display: block;
      font-weight: 600;
      margin-bottom: 8px;
      color: #374151;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
      width: 100%;
      padding: 12px;
      border: 2px solid #e5e7eb;
      border-radius: 8px;
      font-size: 14px;
      transition: border-color 0.2s;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
      outline: none;
      border-color: var(--accent-2);
    }

    .btn {
      padding: 12px 24px;
      border: 0;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .btn-primary {
      background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
      color: white;
    }

    .btn-success {
      background: var(--success);
      color: white;
    }

    .btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .step {
      display: none;
    }

    .step.active {
      display: block;
    }

    .step-indicator {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin: 24px 0;
    }

    .step-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: #e5e7eb;
      transition: background 0.2s;
    }

    .step-dot.active {
      background: var(--accent-2);
    }

    .step-dot.completed {
      background: var(--success);
    }

    .disclaimer {
      background: rgba(79,70,229,0.08);
      border: 1px solid rgba(79,70,229,0.2);
      border-radius: 12px;
      padding: 16px;
      margin: 20px 0;
      font-size: 13px;
      color: #4338ca;
    }

    .footer-disclaimer {
      background: rgba(79,70,229,0.05);
      border-left: 4px solid var(--accent-2);
      padding: 12px;
      border-radius: 6px;
      margin-top: 20px;
      font-size: 12px;
      color: #4338ca;
    }

    .info-legal {
      cursor: help;
      font-size: 14px;
      opacity: 0.7;
      transition: all 0.2s;
    }

    .info-legal:hover {
      opacity: 1;
      transform: scale(1.1);
    }

    .help-icon {
      cursor: help;
      font-size: 12px;
      opacity: 0.6;
      margin-left: 4px;
      transition: all 0.2s;
    }

    .help-icon:hover {
      opacity: 1;
      transform: scale(1.2);
    }

    .modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.8);
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .modal-content {
      background: white;
      border-radius: 12px;
      max-width: 800px;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }

    .modal-header {
      background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
      color: white;
      padding: 20px;
      border-radius: 12px 12px 0 0;
      position: relative;
    }

    .modal-body {
      padding: 20px;
    }

    .help-section {
      margin-bottom: 24px;
      padding-bottom: 16px;
      border-bottom: 1px solid #e5e7eb;
    }

    .help-section:last-child {
      border-bottom: none;
    }

    .help-section h3 {
      color: var(--accent-2);
      margin: 0 0 12px;
      font-size: 16px;
    }

    .help-section p {
      margin: 6px 0;
      font-size: 14px;
      line-height: 1.5;
    }

    .guarantee {
      background: linear-gradient(135deg, rgba(16,185,129,0.12) 0%, rgba(16,185,129,0.08) 100%);
      border: 2px solid rgba(16,185,129,0.25);
      border-radius: 12px;
      padding: 20px;
      margin: 20px 0;
      text-align: center;
    }

    .download-section {
      background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
      border: 2px solid rgba(16,185,129,0.2);
      border-radius: 16px;
      padding: 32px;
      text-align: center;
      margin-top: 24px;
    }

    .loading {
      display: none;
      text-align: center;
      padding: 40px;
    }

    .spinner {
      width: 40px;
      height: 40px;
      border: 4px solid #f3f4f6;
      border-top: 4px solid var(--accent-2);
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin: 0 auto 16px;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    .customer-info {
      background: rgba(107,78,255,0.05);
      border: 1px solid rgba(107,78,255,0.1);
      border-radius: 12px;
      padding: 16px;
      margin-bottom: 20px;
    }

    .data-types {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 12px;
      margin: 16px 0;
    }

    .data-type {
      padding: 12px;
      border: 2px solid #e5e7eb;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s;
      text-align: center;
    }

    .data-type:hover {
      border-color: var(--accent-2);
      background: rgba(107,78,255,0.05);
    }
    
    .data-type.selected {
      border-color: var(--accent-2);
      background: linear-gradient(135deg, rgba(107,78,255,0.2), rgba(107,78,255,0.1));
      box-shadow: 0 0 0 2px var(--accent-2);
      font-weight: 600;
    }

    @media (max-width: 768px) {
      .container {
        padding: 12px;
      }
      
      .header {
        padding: 24px 16px;
      }
      
      .data-types {
        grid-template-columns: 1fr;
      }
    }

    /* 🎨 SISTEMA DE NOTIFICAÇÕES ELEGANTE */
    .notification-container {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 10000;
      max-width: 400px;
      pointer-events: none;
    }

    .notification {
      background: white;
      border-radius: 12px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.15);
      border-left: 4px solid var(--accent-2);
      padding: 16px 20px;
      margin-bottom: 12px;
      display: flex;
      align-items: flex-start;
      gap: 12px;
      pointer-events: auto;
      transform: translateX(420px);
      opacity: 0;
      transition: all 0.3s ease;
      position: relative;
    }

    .notification.show {
      transform: translateX(0);
      opacity: 1;
    }

    .notification.success {
      border-left-color: var(--success);
      background: linear-gradient(135deg, rgba(16,185,129,0.05), rgba(16,185,129,0.02));
    }

    .notification.error {
      border-left-color: var(--danger);
      background: linear-gradient(135deg, rgba(239,68,68,0.05), rgba(239,68,68,0.02));
    }

    .notification.warning {
      border-left-color: var(--warning);
      background: linear-gradient(135deg, rgba(245,158,11,0.05), rgba(245,158,11,0.02));
    }

    .notification.info {
      border-left-color: var(--accent-2);
      background: linear-gradient(135deg, rgba(107,78,255,0.05), rgba(107,78,255,0.02));
    }

    .notification-icon {
      font-size: 20px;
      flex-shrink: 0;
      margin-top: 2px;
    }

    .notification-content {
      flex: 1;
      min-width: 0;
    }

    .notification-title {
      font-weight: 600;
      font-size: 14px;
      margin-bottom: 4px;
      color: #1f2937;
    }

    .notification-message {
      font-size: 13px;
      color: #6b7280;
      line-height: 1.4;
      white-space: pre-line;
    }

    .notification-close {
      background: none;
      border: none;
      font-size: 18px;
      color: #9ca3af;
      cursor: pointer;
      padding: 0;
      width: 24px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 4px;
      transition: all 0.2s;
      flex-shrink: 0;
    }

    .notification-close:hover {
      background: rgba(0,0,0,0.05);
      color: #6b7280;
    }

    @media (max-width: 480px) {
      .notification-container {
        left: 20px;
        right: 20px;
        max-width: none;
      }

      .notification {
        transform: translateY(-100px);
      }

      .notification.show {
        transform: translateY(0);
      }
    }

    /* 🔧 v0224: BUG-068 - Animação para alerta de DPO */
    @keyframes pulse {
      0%, 100% {
        box-shadow: 0 8px 16px rgba(220,38,38,0.3);
      }
      50% {
        box-shadow: 0 8px 24px rgba(220,38,38,0.5), 0 0 20px rgba(220,38,38,0.3);
      }
    }