/* ========================================
   GLOBAL STYLES & VARIABLES
   ======================================== */
:root {
  --primary: #1E88E5;
  --primary-dark: #1565C0;
  --primary-light: #42A5F5;
  --secondary: #1A1A2E;
  --secondary-light: #16213E;
  --accent: #FF9800;
  --bg: #F5F6FA;
  --bg-card: #FFFFFF;
  --text: #2D3748;
  --text-light: #718096;
  --text-lighter: #A0AEC0;
  --border: #E2E8F0;
  --success: #38A169;
  --warning: #ECC94B;
  --danger: #E53E3E;
  --info: #3182CE;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --transition: all 0.2s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}
.btn-secondary:hover {
  background: var(--secondary-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 8px 16px;
}
.btn-ghost:hover {
  background: rgba(0,0,0,0.05);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

/* ========================================
   LANDING PAGE - NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.navbar-brand svg {
  width: 36px;
  height: 36px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links a {
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
  font-size: 0.95rem;
}
.navbar-links a:hover {
  color: var(--primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #EBF5FF 0%, #FFF 50%, #F0F4FF 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30,136,229,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--secondary);
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--secondary);
}

.hero-stat span {
  font-size: 0.85rem;
  color: var(--text-light);
}

.hero-visual {
  position: relative;
}

.hero-mockup {
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 24px;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.hero-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dot.red { background: #FF5F57; }
.mockup-dot.yellow { background: #FFBD2E; }
.mockup-dot.green { background: #28CA41; }

.mockup-content {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.mockup-day {
  text-align: center;
  padding: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-light);
}

.mockup-block {
  border-radius: 4px;
  padding: 6px 4px;
  font-size: 0.55rem;
  color: white;
  text-align: center;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-block.subject-1 { background: var(--primary); opacity: 0.9; }
.mockup-block.subject-2 { background: var(--info); opacity: 0.85; }
.mockup-block.subject-3 { background: var(--success); opacity: 0.85; }
.mockup-block.subject-4 { background: var(--accent); opacity: 0.85; }
.mockup-block.empty { background: #F1F5F9; min-height: 28px; }

/* ========================================
   FEATURES
   ======================================== */
.features {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(30,136,229,0.1);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.feature-icon.orange { background: rgba(30,136,229,0.1); }
.feature-icon.blue { background: rgba(49,130,206,0.1); }
.feature-icon.green { background: rgba(56,161,105,0.1); }
.feature-icon.purple { background: rgba(128,90,213,0.1); }
.feature-icon.teal { background: rgba(49,151,149,0.1); }
.feature-icon.pink { background: rgba(213,63,140,0.1); }

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--secondary);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works {
  padding: 100px 0;
  background: var(--secondary);
  color: white;
}

.how-it-works .section-header h2 {
  color: white;
}

.how-it-works .section-header p {
  color: rgba(255,255,255,0.7);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* ========================================
   PRICING
   ======================================== */
.pricing {
  padding: 100px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  transition: var(--transition);
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--primary);
  position: relative;
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.pricing-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--secondary);
}

.pricing-price {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 16px 0;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

.pricing-features {
  text-align: left;
  margin: 24px 0;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials {
  padding: 100px 0;
  background: #FAFBFE;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.testimonial-stars {
  color: #F59E0B;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--secondary);
}

.testimonial-info span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  background: white;
  color: var(--primary);
  font-size: 1.05rem;
}
.cta-section .btn:hover {
  background: #F5F5F5;
  transform: translateY(-2px);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* ========================================
   DASHBOARD LAYOUT
   ======================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--secondary);
  color: white;
  padding: 24px 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar-brand {
  padding: 0 24px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

.sidebar-menu {
  padding: 0 12px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  margin-bottom: 4px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: rgba(30,136,229,0.15);
  color: white;
}

.sidebar-menu a.active {
  background: var(--primary);
}

.sidebar-menu a svg,
.sidebar-menu a .menu-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.sidebar-section-label {
  padding: 20px 16px 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}

.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 0;
}

.topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-greeting h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary);
}

.topbar-greeting p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1.1rem;
  position: relative;
}

.topbar-icon:hover {
  background: var(--border);
}

.notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.dashboard-body {
  padding: 32px;
}

/* ========================================
   DASHBOARD CARDS
   ======================================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.stat-card-icon.orange { background: rgba(30,136,229,0.1); color: var(--primary); }
.stat-card-icon.blue { background: rgba(49,130,206,0.1); color: var(--info); }
.stat-card-icon.green { background: rgba(56,161,105,0.1); color: var(--success); }
.stat-card-icon.purple { background: rgba(128,90,213,0.1); color: #805AD5; }

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 2px;
}

.stat-card .stat-change {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
}

.stat-change.up {
  background: rgba(56,161,105,0.1);
  color: var(--success);
}

/* ========================================
   PROGRESS BAR
   ======================================== */
.progress-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 28px;
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.progress-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
}

.progress-bar-bg {
  width: 100%;
  height: 12px;
  background: var(--bg);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 1s ease;
}

.progress-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ========================================
   WEEKLY CALENDAR
   ======================================== */
.calendar-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 28px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.calendar-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
}

.calendar-nav {
  display: flex;
  gap: 8px;
}

.calendar-nav button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.calendar-nav button:hover {
  background: var(--bg);
}

.weekly-calendar {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  gap: 2px;
  overflow-x: auto;
}

.cal-time {
  font-size: 0.7rem;
  color: var(--text-lighter);
  text-align: right;
  padding: 4px 8px 4px 0;
  height: 48px;
  display: flex;
  align-items: flex-start;
}

.cal-day-header {
  text-align: center;
  padding: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  margin-bottom: 4px;
}

.cal-day-header.today {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.cal-day-header span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-light);
}

.cal-slot {
  height: 48px;
  border-radius: 4px;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2px 4px;
  cursor: pointer;
  transition: var(--transition);
}

.cal-slot.empty {
  background: #FAFAFA;
  border: 1px dashed #E8E8E8;
}

.cal-slot.subject-dir-admin {
  background: rgba(30,136,229,0.15);
  color: var(--primary-dark);
  font-weight: 600;
  border-left: 3px solid var(--primary);
}

.cal-slot.subject-dir-const {
  background: rgba(49,130,206,0.12);
  color: #2B6CB0;
  font-weight: 600;
  border-left: 3px solid var(--info);
}

.cal-slot.subject-portugues {
  background: rgba(56,161,105,0.12);
  color: #276749;
  font-weight: 600;
  border-left: 3px solid var(--success);
}

.cal-slot.subject-rlm {
  background: rgba(128,90,213,0.12);
  color: #6B46C1;
  font-weight: 600;
  border-left: 3px solid #805AD5;
}

.cal-slot.subject-informatica {
  background: rgba(49,151,149,0.12);
  color: #285E61;
  font-weight: 600;
  border-left: 3px solid #319795;
}

.cal-slot.subject-afi {
  background: rgba(213,63,140,0.12);
  color: #97266D;
  font-weight: 600;
  border-left: 3px solid #D53F8C;
}

.cal-slot.revisao {
  background: rgba(236,201,75,0.15);
  color: #975A16;
  font-weight: 600;
  border-left: 3px solid var(--warning);
}

.cal-slot:hover:not(.empty) {
  filter: brightness(0.95);
  transform: scale(1.02);
}

/* ========================================
   QUICK ACCESS
   ======================================== */
.quick-access {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.quick-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.quick-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.quick-card .icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.quick-card span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

/* ========================================
   TWO COLUMN DASHBOARD
   ======================================== */
.dashboard-two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}

.subject-list {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.subject-list h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 20px;
}

.subject-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.subject-item:last-child {
  border-bottom: none;
}

.subject-color {
  width: 4px;
  height: 40px;
  border-radius: 4px;
}

.subject-info { flex: 1; }

.subject-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--secondary);
}

.subject-info span {
  font-size: 0.75rem;
  color: var(--text-light);
}

.subject-progress {
  width: 100px;
  text-align: right;
}

.subject-progress .mini-bar {
  width: 100%;
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.subject-progress .mini-fill {
  height: 100%;
  border-radius: 3px;
}

.subject-progress span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

/* Activity Feed */
.activity-feed {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.activity-feed h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 20px;
}

.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.activity-dot.orange { background: var(--primary); }
.activity-dot.green { background: var(--success); }
.activity-dot.blue { background: var(--info); }

.activity-text {
  font-size: 0.85rem;
  color: var(--text);
}

.activity-time {
  font-size: 0.7rem;
  color: var(--text-lighter);
  margin-top: 2px;
}

/* ========================================
   WIZARD / PLAN CREATION
   ======================================== */
.wizard-page {
  min-height: 100vh;
  background: var(--bg);
}

.wizard-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

.wizard-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 32px;
  cursor: pointer;
  transition: var(--transition);
}

.wizard-back:hover {
  color: var(--primary);
}

.wizard-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-lighter);
  font-weight: 500;
}

.wizard-step.active {
  color: var(--primary);
  font-weight: 700;
}

.wizard-step.completed {
  color: var(--success);
}

.wizard-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.wizard-step.active .wizard-step-num {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.wizard-step.completed .wizard-step-num {
  border-color: var(--success);
  background: var(--success);
  color: white;
}

.wizard-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 12px;
}

.wizard-step-line.completed {
  background: var(--success);
}

.wizard-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.wizard-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
}

.wizard-card > p {
  color: var(--text-light);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-card);
  transition: var(--transition);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,136,229,0.1);
}

.form-control::placeholder {
  color: var(--text-lighter);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-lighter);
  margin-top: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  color: var(--text);
}

.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.chip.selected {
  border-color: var(--primary);
  background: rgba(30,136,229,0.08);
  color: var(--primary);
  font-weight: 600;
}

/* Subject Tags */
.subject-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition);
}

.subject-tag:hover {
  border-color: var(--primary);
}

.subject-tag.selected {
  border-color: var(--primary);
  background: rgba(30,136,229,0.05);
}

.subject-tag input[type="checkbox"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

.subject-tag-info { flex: 1; }

.subject-tag-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
}

.subject-tag-info span {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Hours Input */
.hours-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hours-input input {
  width: 60px;
  padding: 8px;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 0.9rem;
}

.hours-input input:focus {
  outline: none;
  border-color: var(--primary);
}

.hours-input span {
  font-size: 0.85rem;
  color: var(--text-light);
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
}

/* ========================================
   MOBILE SIDEBAR TOGGLE
   ======================================== */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    display: none;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .pricing-card.featured {
    transform: none;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-two-col {
    grid-template-columns: 1fr;
  }
  .quick-access {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }

  /* Dashboard mobile */
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
  .sidebar-toggle {
    display: block;
  }
  .stats-row {
    grid-template-columns: 1fr;
  }
  .quick-access {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-body {
    padding: 16px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-lighter); }

/* ========================================
   DASHBOARD v2 — ICON SIDEBAR
   ======================================== */

/* Show sidebar-toggle on all screen sizes for icon sidebar */
.sidebar-toggle { display: inline-flex !important; }

/* Notification count badge */
.notification-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--primary);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 4px;
  min-width: 16px;
  text-align: center;
  border: 2px solid white;
  line-height: 1.4;
  pointer-events: none;
}

/* Credits badge */
.credits-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(246,201,14,0.15), rgba(246,201,14,0.08));
  border: 1px solid rgba(246,201,14,0.3);
  color: #a07800;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

/* User avatar button */
.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: var(--transition);
}
.user-avatar-btn:hover { background: var(--bg); }

.user-name-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.chevron-icon {
  font-size: 0.75rem;
  color: var(--text-light);
  transition: transform 0.2s;
  line-height: 1;
}
.user-avatar-btn.open .chevron-icon { transform: rotate(180deg); }

/* Dropdown shared */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 500;
  min-width: 280px;
  display: none;
}
.dropdown.show { display: block; }

.dropdown-section-header {
  padding: 13px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dropdown-section-header button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.76rem;
  color: var(--primary);
  font-weight: 500;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: rgba(30,136,229,0.03); }

.notif-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.notif-text { font-size: 0.82rem; color: var(--text); line-height: 1.5; }
.notif-time { font-size: 0.72rem; color: var(--text-lighter); margin-top: 2px; }

.user-dropdown-header {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius) var(--radius) 0 0;
}
.user-dropdown-info strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--secondary); }
.user-dropdown-info small { font-size: 0.76rem; color: var(--text-light); }
.user-dropdown-info .plan-tag {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(30,136,229,0.1);
  padding: 2px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.user-dropdown-info .plan-tag:hover { background: rgba(30,136,229,0.2); }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 0.87rem;
  color: var(--text);
  transition: background 0.15s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.dropdown-item:hover { background: var(--bg); color: var(--primary); }
.dropdown-item.danger { color: #E53E3E; }
.dropdown-item.danger:hover { background: #FFF5F5; color: #E53E3E; }
.dropdown-item .item-icon { font-size: 1rem; }

.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Overlay to close dropdowns */
.overlay-close {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
}
.overlay-close.show { display: block; }

/* Welcome banner extras */
.welcome-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.welcome-title { font-size: 1.6rem; font-weight: 800; color: var(--secondary); margin-bottom: 12px; }
.plan-progress-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.plan-progress-label { font-size: 0.83rem; color: var(--text-light); }
.plan-progress-pct { font-size: 0.83rem; font-weight: 700; color: var(--primary); }
.plan-progress-bar { height: 8px; background: var(--border); border-radius: 20px; overflow: hidden; width: 320px; max-width: 100%; }
.plan-progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #42A5F5); border-radius: 20px; transition: width 1s cubic-bezier(0.4,0,0.2,1); }
.plan-end-text { font-size: 0.8rem; color: var(--text-light); margin-top: 8px; }
.plan-end-text a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.welcome-streak {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #EBF5FF, #fff);
  border: 1px solid rgba(30,136,229,0.2);
  padding: 14px 20px;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.streak-fire { font-size: 1.8rem; }
.streak-info strong { display: block; font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.streak-info span { font-size: 0.78rem; color: var(--text-light); }

/* Avisos section */
.avisos-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-top: 24px;
}
.aviso-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform 0.15s;
}
.aviso-item:last-child { margin-bottom: 0; }
.aviso-item:hover { transform: translateX(4px); }
.aviso-item.warning { background: #FFF8F0; border-left: 4px solid var(--primary); }
.aviso-item.success { background: #F0FFF4; border-left: 4px solid var(--success); }
.aviso-item.info    { background: #EBF8FF; border-left: 4px solid var(--info); }
.aviso-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.aviso-item.warning .aviso-tag { color: var(--primary); }
.aviso-item.success .aviso-tag { color: var(--success); }
.aviso-item.info    .aviso-tag { color: var(--info); }
.aviso-text { font-size: 0.83rem; color: var(--text-light); line-height: 1.5; }
.aviso-date { font-size: 0.72rem; color: var(--text-lighter); margin-top: 4px; }
