:root {
      /* Core colors */
      --primary: #4f46e5;
      --primary-dark: #4338ca;
      --primary-light: #818cf8;
      --success: #22c55e;
      --warning: #eab308;
      --error: #ef4444;
      --info: #3b82f6;

      /* Gray scale */
      --gray-50: #f9fafb;
      --gray-100: #f3f4f6;
      --gray-200: #e5e7eb;
      --gray-300: #d1d5db;
      --gray-700: #374151;
      --gray-800: #1f2937;

      /* Gradients */
      --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      --gradient-bg: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);

      /* Shadows */
      --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
      --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
      --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

      /* Transitions */
      --transition: all 0.3s ease;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: "Inter", sans-serif;
      background: var(--gradient-bg);
      min-height: 100vh;
      padding: 2rem;
      color: var(--gray-800);
      line-height: 1.5;
    }

    .container {
      max-width: 1000px;
      margin: 0 auto;
    }

    /* Header */
    .header {
      text-align: center;
      margin-bottom: 3rem;
      padding: 2rem;
      background: white;
      border-radius: 1rem;
      box-shadow: var(--shadow);
    }

    .header h1 {
      font-size: 2.5rem;
      font-weight: 700;
      margin-bottom: 1rem;
      background: var(--gradient-primary);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .header p {
      color: var(--gray-700);
      font-size: 1.25rem;
      max-width: 600px;
      margin: 0 auto;
    }

    /* Feature Pills */
    .features {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-top: 1rem;
      justify-content: center;
    }

    .feature-pill {
      background: var(--gray-50);
      padding: 0.25rem 0.75rem;
      border-radius: 1rem;
      font-size: 0.75rem;
      color: var(--gray-700);
      border: 1px solid var(--gray-200);
      display: flex;
      align-items: center;
      gap: 0.25rem;
    }

    .feature-pill i {
      color: var(--primary);
    }

    /* Card */
    .card {
      background: white;
      border-radius: 1rem;
      padding: 2rem;
      box-shadow: var(--shadow);
      margin-bottom: 2rem;
      transition: var(--transition);
      position: relative;
      overflow: hidden;
    }

    .card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg);
    }

    .card::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background: var(--gradient-primary);
    }

    /* Input Styles */
    .input-group {
      margin-bottom: 2rem;
    }

    .input-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 1rem;
    }

    .input-header i {
      font-size: 1.5rem;
      color: var(--primary);
      background: var(--gray-50);
      padding: 0.5rem;
      border-radius: 0.5rem;
    }

    .input-header label {
      font-weight: 600;
      color: var(--gray-700);
      font-size: 1.125rem;
    }

    textarea {
      width: 100%;
      padding: 1rem;
      border: 2px solid var(--gray-200);
      border-radius: 0.75rem;
      font-size: 1rem;
      font-family: "Inter", sans-serif;
      resize: vertical;
      transition: var(--transition);
      min-height: 120px;
    }

    textarea:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    }

    /* Button Styles */
    button {
      width: 100%;
      padding: 1rem;
      background: var(--gradient-primary);
      color: white;
      border: none;
      border-radius: 0.75rem;
      font-size: 1.125rem;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.75rem;
      position: relative;
      overflow: hidden;
    }

    button:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow);
    }

    button:active {
      transform: translateY(0);
    }

    button i {
      font-size: 1.25rem;
    }

    /* Reset (Limpar) Button - estilo customizado */
    #resetForm {
      background: var(--gray-200);
      color: var(--gray-800);
      border: none;
    }

    /* Progress Bar */
    .progress-bar {
      height: 4px;
      background: var(--gray-200);
      border-radius: 2px;
      margin-top: 1rem;
      overflow: hidden;
    }

    .progress-bar-fill {
      height: 100%;
      background: var(--primary);
      width: 0%;
      transition: width 0.3s ease;
    }

    /* Result Card */
    .result-card {
      display: none;
      animation: slideIn 0.5s ease-out;
    }

    .result-card.active {
      display: block;
    }

    .percentage {
      text-align: center;
      margin-bottom: 2rem;
      position: relative;
    }

    .percentage-circle {
      width: 180px;
      height: 180px;
      margin: 0 auto;
      position: relative;
      background: conic-gradient(var(--primary) var(--percentage), var(--gray-100) 0);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: var(--transition);
    }

    .percentage-circle::before {
      content: "";
      position: absolute;
      width: 140px;
      height: 140px;
      background: white;
      border-radius: 50%;
      transition: var(--transition);
    }

    .percentage-value {
      position: relative;
      font-size: 2.5rem;
      font-weight: 700;
      color: var(--primary);
      transition: var(--transition);
    }

    /* Stats Section */
    .stats-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1rem;
      margin-top: 2rem;
    }

    .stat-card {
      background: white;
      padding: 1.5rem;
      border-radius: 0.75rem;
      text-align: center;
      border: 1px solid var(--gray-200);
    }

    .stat-value {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--primary);
      margin-bottom: 0.5rem;
    }

    .stat-label {
      color: var(--gray-700);
      font-size: 0.875rem;
    }

    /* Tags */
    .result-section {
      background: var(--gray-50);
      border-radius: 0.75rem;
      padding: 1.5rem;
      margin-bottom: 1.5rem;
      border: 1px solid var(--gray-200);
    }

    .result-section h3 {
      font-size: 1.125rem;
      font-weight: 600;
      color: var(--gray-700);
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .result-section h3 i {
      color: var(--primary);
    }

    .tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
    }

    .tag {
      background: white;
      padding: 0.5rem 1rem;
      border-radius: 2rem;
      font-size: 0.875rem;
      border: 1px solid var(--gray-200);
      transition: var(--transition);
      cursor: default;
    }

    .tag:hover {
      background: var(--primary);
      color: white;
      border-color: var(--primary);
      transform: translateY(-2px);
    }

    /* Loading Spinner */
    .loading-spinner {
      display: none;
      width: 40px;
      height: 40px;
      border: 4px solid var(--gray-200);
      border-radius: 50%;
      border-top-color: var(--primary);
      animation: spin 1s linear infinite;
      margin: 1rem auto;
    }

    /* Animations */
    @keyframes slideIn {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    /* Popup Notifications & Overlays */
    .toast {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      padding: 1rem 1.5rem;
      background: white;
      border-radius: 0.5rem;
      box-shadow: var(--shadow-lg);
      display: flex;
      align-items: center;
      gap: 0.75rem;
      animation: slideIn 0.3s ease-out;
      z-index: 1000;
      max-width: 90%;
    }

    .toast.success {
      border-left: 4px solid var(--success);
    }

    .toast.error {
      border-left: 4px solid var(--error);
    }

    .toast i {
      font-size: 1.25rem;
    }

    .toast.success i {
      color: var(--success);
    }

    .toast.error i {
      color: var(--error);
    }

    /* Popup Overlay */
    .popup-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(4px);
      z-index: 1000;
      animation: fadeIn 0.3s ease-out;
    }

    .popup {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: white;
      padding: 2rem;
      border-radius: 1rem;
      max-width: 90%;
      width: 400px;
      text-align: center;
      box-shadow: var(--shadow-lg);
      animation: popIn 0.3s ease-out;
    }

    .popup h2 {
      color: var(--gray-800);
      font-size: 1.5rem;
      margin-bottom: 1rem;
    }

    .popup p {
      color: var(--gray-700);
      margin-bottom: 1.5rem;
      line-height: 1.5;
    }

    .popup-buttons {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
    }

    .popup-button {
      padding: 0.75rem 1.5rem;
      border-radius: 0.5rem;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
    }

    .popup-button.primary {
      background: var(--primary);
      color: white;
      border: none;
    }

    .popup-button.primary:hover {
      background: var(--primary-dark);
    }

    .popup-button.secondary {
      background: var(--gray-100);
      color: var(--gray-700);
      border: 1px solid var(--gray-200);
    }

    .popup-button.secondary:hover {
      background: var(--gray-200);
    }

    /* Token Popup Close Button */
    .close-token-popup {
      position: fixed;
      top: 1px;
      right: 0px;
      width: 10px;
      font-size: 1.2rem;
      color: var(--gray-700);
      background: transparent;
      border: none;
      cursor: pointer;
    }

    .close-token-popup:hover {
      color: var(--primary-dark);
    }

    /* Disclaimer */
    .disclaimer {
      background: var(--gray-50);
      border-radius: 0.75rem;
      padding: 1rem;
      margin-top: 1.5rem;
      font-size: 0.875rem;
      color: var(--gray-700);
      border: 1px solid var(--gray-200);
    }

    /* Tutorial Popup */
    .tutorial-popup {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: white;
      padding: 2rem;
      border-radius: 1rem;
      max-width: 90%;
      width: 500px;
      z-index: 1002;
      box-shadow: var(--shadow-lg);
    }

    .tutorial-step {
      display: none;
      text-align: center;
    }

    .tutorial-step.active {
      display: block;
      animation: fadeIn 0.3s ease-out;
    }

    .tutorial-step img {
      max-width: 100%;
      height: auto;
      margin-bottom: 1rem;
      border-radius: 0.5rem;
    }

    .tutorial-navigation {
      display: flex;
      justify-content: space-between;
      margin-top: 1.5rem;
    }

    /* Animações para Popup e Tutorial */
    @keyframes fadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }

    @keyframes popIn {
      from {
        opacity: 0;
        transform: translate(-50%, -45%);
      }
      to {
        opacity: 1;
        transform: translate(-50%, -50%);
      }
    }

    @media (max-width: 768px) {
      body {
        padding: 1rem;
      }

      .header h1 {
        font-size: 2rem;
      }

      .card {
        padding: 1.5rem;
      }

      .percentage-circle {
        width: 150px;
        height: 150px;
      }

      .percentage-circle::before {
        width: 110px;
        height: 110px;
      }

      .percentage-value {
        font-size: 2rem;
      }

      .stats-container {
        grid-template-columns: 1fr;
      }
    }