:root {
   --primary: #2563eb;
   --primary-dark: #1d4ed8;
   --secondary: #10b981;
   --danger: #ef4444;
   --white: #ffffff;
   --bg-card: #ffffff;
   --bg-light: #f8fafc;
   --text-primary: #1e293b;
   --text-secondary: #64748b;
   --text-muted: #64748b;
   --border-color: #e2e8f0;
   --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
   --shadow-sm: 0 1px 3px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
   --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
   --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
   --radius: 8px;
}

.hero-rbt {
   padding: 4rem 0;
   text-align: center;
   border-bottom: 1px solid var(--border-color);
   box-shadow: var(--shadow);
   background: linear-gradient(135deg, #ffffff, #fcfdff);
}

.hero-rbt h1 {
   font-size: 2.2rem;
   margin-bottom: 1.5rem;
   color: var(--text-primary);
}

.hero-rbt p {
   font-size: 1.1rem;
   max-width: 800px;
   margin: 0 auto 2rem;
   color: var(--text-secondary);
}

/* Banner Space - CSS movido para style.css */

.features {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 2rem;
   margin: 3rem 0;
}

.feature-card {
   background: var(--white);
   border-radius: var(--radius);
   padding: 2rem;
   box-shadow: var(--shadow);
   transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.feature-card i {
   font-size: 2.5rem;
   color: var(--primary);
   margin-bottom: 1rem;
}

.feature-card h3 {
   font-size: 1.4rem;
   margin-bottom: 1rem;
   color: var(--dark);
}

.generator {
   background: var(--white);
   border-radius: var(--radius);
   padding: 2.5rem;
   margin: 3rem 0;
   box-shadow: var(--shadow);
}

.generator h2 {
   font-size: 2rem;
   margin-bottom: 1.5rem;
   color: var(--primary);
   text-align: center;
}

.form-group {
   margin-bottom: 1.5rem;
}

.form-group label {
   display: block;
   margin-bottom: 0.5rem;
   font-weight: 600;
   color: var(--dark);
}

.form-control {
   width: 100%;
   padding: 0.75rem 1rem;
   border: 1px solid #d1d5db;
   border-radius: var(--radius);
   font-size: 1rem;
   transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
   outline: none;
   border-color: var(--primary);
   box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.btn {
   display: inline-block;
   padding: 0.75rem 1.5rem;
   background: var(--primary);
   color: var(--white);
   border: none;
   border-radius: var(--radius);
   font-size: 1rem;
   font-weight: 600;
   cursor: pointer;
   transition: background-color 0.3s, transform 0.2s;
   text-decoration: none;
   position: relative;
   overflow: hidden;
}

.btn:hover {
   background: var(--primary-dark);
   transform: translateY(-2px);
}

.btn-secondary {
   background: var(--secondary);
}

.btn-secondary:hover {
   background: #059669;
}

.btn-danger {
   background: var(--danger);
}

.btn-danger:hover {
   background: #dc2626;
}

.btn:disabled {
   cursor: not-allowed;
   opacity: 0.7;
}

.download-btn {
   display: inline-block;
   background: var(--secondary);
   color: white;
   text-decoration: none;
   padding: 15px 40px;
   margin-top: 1rem;
   border-radius: 12px;
   transition: all 0.3s ease;
   font-weight: 600;
   font-size: 1.1rem;
   box-shadow: var(--shadow-sm);
   border: none;
   cursor: pointer;
}

.download-btn:hover {
   background: #4cae4c;
   transform: translateY(-2px);
   box-shadow: var(--shadow-md);
}

.btn-group {
   display: flex;
   gap: 10px;
   margin-top: 1rem;
}

.directives-container {
   margin-top: 1.5rem;
}

.directive-item {
   display: flex;
   gap: 10px;
   margin-bottom: 1rem;
   align-items: center;
}

.directive-item select,
.directive-item input {
   flex: 1;
}

.directive-item button {
   padding: 0.5rem;
   background: var(--danger);
   color: var(--white);
   border: none;
   border-radius: var(--radius);
   cursor: pointer;
   transition: background-color 0.3s;
}

.directive-item button:hover {
   background: #dc2626;
}

.preview-container {
   margin-top: 2rem;
   background: #f3f4f6;
   border-radius: var(--radius);
   padding: 1.5rem;
   border: 1px dashed #d1d5db;
}

.preview-container h3 {
   margin-bottom: 1rem;
   color: var(--dark);
}

.preview-content {
   background: var(--white);
   padding: 1rem;
   border-radius: var(--radius);
   font-family: 'Courier New', monospace;
   white-space: pre-wrap;
   max-height: 300px;
   overflow-y: auto;
   border: 1px solid #e5e7eb;
   user-select: none;
   -webkit-user-select: none;
   -moz-user-select: none;
   -ms-user-select: none;
}

.tips {
   background: #eff6ff;
   border-left: 4px solid var(--primary);
   padding: 1rem 1.5rem;
   margin: 2rem 0;
   border-radius: 0 var(--radius) var(--radius) 0;
}

.tips h3 {
   color: var(--primary);
   margin-bottom: 0.5rem;
}

.tips ul {
   padding-left: 1.5rem;
}

.tips li {
   margin-bottom: 0.5rem;
}

/* Seções adicionais */
.info-section {
   width: 100%;
   padding: 80px 0;
   margin: 0;
}


.info-section h2,
.info-section .section-title {
   font-size: 2.5rem;
   font-weight: 800;
   margin-bottom: 16px;
   color: var(--text-primary);
   text-align: center;
   position: relative;
}

.how-to-steps {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 2rem;
   margin-top: 2rem;
}

.step-card {
   background: var(--white);
   border-radius: var(--radius);
   padding: 1.5rem;
   box-shadow: var(--shadow);
   position: relative;
}

.step-number {
   position: absolute;
   top: -15px;
   left: -15px;
   width: 40px;
   height: 40px;
   background: var(--primary);
   color: var(--white);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: bold;
   font-size: 1.2rem;
   box-shadow: var(--shadow);
}

.step-card h3 {
   margin: 0.5rem 0 1rem;
   color: var(--dark);
}

.faq-container-rbt {
   margin-top: 2rem;
}

/* Estilos específicos para benefits-list nas seções de conteúdo da página (não afeta sidebar) */
.info-section .benefits-list,
.benefits-section .benefits-list {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 1.5rem;
   margin-top: 2rem;
}

/* Estilos específicos para page-benefit-item nas seções de conteúdo da página (não afeta sidebar) */
.info-section .benefits-list .page-benefit-item,
.benefits-section .benefits-list .page-benefit-item {
   background: var(--white);
   border-radius: var(--radius);
   padding: 1.5rem;
   box-shadow: var(--shadow);
   display: flex;
   align-items: flex-start;
   gap: 1rem;
}

.info-section .benefits-list .page-benefit-item i,
.benefits-section .benefits-list .page-benefit-item i {
   font-size: 1.5rem;
   color: var(--secondary);
   margin-top: 0.2rem;
}

.examples-container {
   margin-top: 2rem;
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 1.5rem;
}

.example-card {
   background: var(--white);
   border-radius: var(--radius);
   padding: 1.5rem;
   box-shadow: var(--shadow);
}

.example-card h3 {
   margin-bottom: 1rem;
   color: var(--primary);
}

.example-code {
   background: #f3f4f6;
   border-radius: var(--radius);
   padding: 1rem;
   font-family: 'Courier New', monospace;
   font-size: 0.9rem;
   white-space: pre-wrap;
   border-left: 3px solid var(--primary);
}

/* Modal Styles */
/* Modal Styles */
.modal {
   display: none;
   position: fixed;
   z-index: 1000;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   overflow: auto;
   background-color: rgba(0, 0, 0, 0.5);
   backdrop-filter: blur(4px);
}

.modal-content {
   background-color: var(--bg-card);
   margin: 15% auto;
   padding: 30px;
   border: 1px solid var(--border-color);
   width: 80%;
   max-width: 600px;
   border-radius: 16px;
   position: relative;
   box-shadow: var(--shadow-xl);
}

.close {
   color: var(--text-muted);
   float: right;
   font-size: 28px;
   font-weight: bold;
   position: absolute;
   right: 20px;
   top: 15px;
   cursor: pointer;
   transition: color 0.3s ease;
}

.close:hover,
.close:focus {
   color: var(--text-primary);
}

.ad-container {
   margin: 20px auto;
   text-align: center;
   width: 300px;
   height: 250px;
   display: flex;
   align-items: center;
   justify-content: center;
   background-color: #f8fafc;
   border: 1px dashed var(--border-color);
}

.ad-container iframe {
   border: none;
   width: 300px;
   height: 250px;
}

.modal-buttons {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   margin-top: 20px;
   gap: 15px;
}

#countdown-display {
   font-size: 1.1rem;
   color: var(--text-secondary);
   font-weight: 500;
}

#countdown-display #countdown {
   font-size: 1.5rem;
   font-weight: 700;
   color: var(--primary);
}

#closeModal {
   pointer-events: none;
   opacity: 0.5;
   cursor: not-allowed;
}

#closeModal[style*="display: block"] {
   pointer-events: auto;
   opacity: 1;
   cursor: pointer;
}

/* Loading spinner */
.spinner {
   display: inline-block;
   width: 16px;
   height: 16px;
   border: 2px solid rgba(255, 255, 255, 0.3);
   border-radius: 50%;
   border-top-color: var(--white);
   animation: spin 1s ease-in-out infinite;
   margin-right: 8px;
}

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

@media (max-width: 768px) {
   .header-content {
      flex-direction: column;
      gap: 1.5rem;
   }

   nav ul {
      flex-direction: column;
      gap: 10px;
      text-align: center;
   }

   .hero h1 {
      font-size: 2.2rem;
   }

   .btn-group {
      flex-direction: column;
   }

   .directive-item {
      flex-direction: column;
   }

   .directive-item button {
      align-self: flex-end;
   }

   /* Banner responsive rules movidas para style.css */

   .modal-content {
      margin: 10% auto;
      width: 95%;
   }

   .ad-container {
      width: 100%;
      max-width: 300px;
      height: 250px;
   }

   .ad-container iframe {
      width: 100%;
      max-width: 300px;
      height: 250px;
   }
}

/* Feedback Container */
.feedback-container {
   display: none;
   margin-top: 60px;
}

.feedback-container .card {
   background: var(--bg-card);
   padding: 30px;
   border-radius: 20px;
   box-shadow: var(--shadow);
   margin-bottom: 30px;
   border: 1px solid var(--border-color);
   position: relative;
   overflow: hidden;
   text-align: center;
}

.feedback-container .card::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 5px;
   background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.feedback-container .card h3 {
   margin-bottom: 15px;
   color: var(--primary);
   font-size: 1.5rem;
   font-weight: 600;
}

.feedback-container .card p {
   margin-bottom: 20px;
   color: var(--text-secondary);
}

.feedback-container .preview-container {
   background: var(--bg-card);
   padding: 30px;
   border-radius: 20px;
   box-shadow: var(--shadow);
   margin-bottom: 30px;
   border: 1px solid var(--border-color);
}

.feedback-container .preview-container h3 {
   margin-bottom: 20px;
   color: var(--primary);
   font-size: 1.5rem;
   font-weight: 600;
}

.feedback-container pre {
   background: var(--bg-light);
   padding: 20px;
   border-radius: 12px;
   overflow-x: auto;
   max-height: 400px;
   font-size: 0.9rem;
   border: 1px solid var(--border-color);
   font-family: 'Courier New', monospace;
   white-space: pre-wrap;
   /* Proteção contra cópia */
   user-select: none;
   -webkit-user-select: none;
   -moz-user-select: none;
   -ms-user-select: none;
   -webkit-touch-callout: none;
   cursor: default;
   position: relative;
}

.feedback-container .preview-container {
   position: relative;
}

.feedback-container .preview-container::after {
   content: 'Clique no botão "Baixar robots.txt" para obter o arquivo';
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   background: rgba(0, 0, 0, 0.85);
   color: white;
   padding: 15px 25px;
   border-radius: 8px;
   font-size: 0.9rem;
   z-index: 10;
   opacity: 0;
   pointer-events: none;
   transition: opacity 0.3s ease;
   white-space: nowrap;
   text-align: center;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.feedback-container .preview-container.show-message::after {
   opacity: 1;
}

.feedback-container pre {
   position: relative;
}

.feedback-container .preview-container .copy-protection-overlay {
   position: absolute;
   background: transparent;
   z-index: 2;
   cursor: not-allowed;
   pointer-events: auto;
   user-select: none;
   -webkit-user-select: none;
   -moz-user-select: none;
   -ms-user-select: none;
}