body { font-family: 'Inter', sans-serif; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; }

.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 1);
}

.text-gradient {
  background: linear-gradient(to right, #16A34A, #0EA5E9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

/* Admin/Tutor Styles */
.admin-container { padding: 40px; max-width: 1200px; margin: 0 auto; z-index: 10; position: relative; min-height: 100vh; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.admin-tabs { display: flex; gap: 20px; margin-bottom: 30px; border-bottom: 1px solid var(--glass-border); padding-bottom: 15px; }
.admin-tab { background: transparent; border: none; font-size: 1.1rem; color: var(--gray-dark); cursor: pointer; padding: 10px 20px; border-radius: 12px; transition: all 0.2s; font-family: var(--font-heading); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.admin-tab:hover { background: rgba(0,0,0,0.05); }
.admin-tab.active { background: var(--primary-color); color: white; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
.view-section { display: none; }
.view-section.active { display: block; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; margin-bottom: 30px; }
.kpi-card { background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-radius: 16px; padding: 25px; display: flex; align-items: center; gap: 20px; box-shadow: var(--box-shadow); border: 1px solid var(--glass-border); transition: transform 0.2s; }
.kpi-card:hover { transform: translateY(-5px); box-shadow: var(--box-shadow-hover); }
.kpi-icon { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: white; flex-shrink: 0; }
.kpi-data { display: flex; flex-direction: column; }
.kpi-value { font-size: 2.2rem; font-family: var(--font-heading); font-weight: 700; color: var(--dark-color); line-height: 1.1; }
.kpi-label { font-size: 0.95rem; color: var(--gray-dark); font-weight: 500; margin-top: 4px; }

.tutor-card { background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-radius: 16px; padding: 20px; margin-bottom: 15px; box-shadow: var(--box-shadow); cursor: pointer; transition: all 0.2s; border: 1px solid var(--glass-border); display: flex; flex-direction: column; gap: 12px; }
.tutor-card:hover { transform: translateY(-3px); border-color: var(--primary-color); box-shadow: 0 10px 25px rgba(16,185,129,0.15); }
.tutor-card.selected { border: 2px solid var(--primary-color); background: rgba(16,185,129,0.02); }
.tutor-header { display: flex; justify-content: space-between; margin-bottom: 15px; }
.tutor-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; color: var(--dark-color); }
.tutor-badge { font-size: 0.8rem; padding: 4px 10px; border-radius: 12px; background: rgba(16, 185, 129, 0.1); color: var(--primary-dark); font-weight: 600; }

.editor-container { display: none; background: rgba(255,255,255,0.95); border-radius: 16px; padding: 30px; margin-top: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); border: 1px solid var(--glass-border); }
.editor-container.active { display: block; }
textarea.form-control { min-height: 200px; resize: vertical; font-family: monospace; font-size: 0.95rem; }

.pulse-animation { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.typingPulse {
    display: inline-block;
    animation: pulse 1s infinite alternate;
}

/* Blog & Article Styles */
.content-article p { margin-bottom: 1.5rem; line-height: 1.8; color: #4b5563; font-size: 1.125rem; }
.content-article h2 { font-size: 1.875rem; font-weight: 700; color: #111827; margin-top: 2.5rem; margin-bottom: 1.25rem; border-bottom: 2px solid #f3f4f6; padding-bottom: 0.5rem; }
.content-article h3 { font-size: 1.5rem; font-weight: 600; color: #1f2937; margin-top: 2rem; margin-bottom: 1rem; }
.content-article ul { list-style-type: disc; margin-left: 1.5rem; margin-bottom: 1.5rem; color: #4b5563; font-size: 1.125rem; }
.content-article li { margin-bottom: 0.5rem; }
.content-article .fact-box { background-color: #fffbeb; border-left: 4px solid #f59e0b; padding: 1.5rem; border-radius: 0 0.5rem 0.5rem 0; margin-bottom: 1.5rem; }
.content-article .math-box { background-color: #f3f4f6; border-left: 4px solid #22c55e; padding: 1.5rem; border-radius: 0 0.5rem 0.5rem 0; margin-bottom: 1.5rem; font-family: monospace; font-size: 1.1rem; }

.ai-cta-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 1rem;
  padding: 2rem;
  margin: 3rem 0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}
.ai-cta-box::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: #22c55e;
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(20px);
}
.blog-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* CGU & Privacy Overrides */
.container { background: white; padding: 40px; border-radius: 16px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.content-article.legal-doc { max-width: 800px; margin: 40px auto; }
.back-link { display: inline-block; margin-bottom: 20px; color: #10b981; text-decoration: none; font-weight: 500; }
.back-link:hover { text-decoration: underline; }