/* ════════════════════════════════════════════════════════════════════════════
   DCGC STUDENT PORTAL — Premium CSS v1.0
   DC Global College Brazil · #0B4D4A teal · #C8A415 gold
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  --teal:       #0B4D4A;
  --teal-mid:   #1a6b66;
  --teal-light: #2d8a82;
  --teal-pale:  #F0FAF9;
  --teal-pale2: #e0f5f3;
  --gold:       #C8A415;
  --gold-light: #E8C425;
  --gold-pale:  #FFFBEB;
  --red:        #DC2626;
  --red-pale:   #FEF2F2;
  --green:      #059669;
  --green-pale: #ECFDF5;
  --blue:       #2563EB;
  --blue-pale:  #EFF6FF;
  --text:       #0A1628;
  --text-mid:   #374151;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border:     #E5E7EB;
  --border-mid: #D1D5DB;
  --bg:         #F4F6F8;
  --bg-card:    #FFFFFF;
  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.06);
  --shadow:     0 4px 16px rgba(11,77,74,.08);
  --shadow-lg:  0 8px 32px rgba(11,77,74,.12);
  --font:       'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --topbar-h:   64px;
  --sidebar-w:  240px;
  --sidebar-w-collapsed: 64px;
  --transition: all .2s cubic-bezier(.4,0,.2,1);
}

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

html, body {
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ════════════════════════════════════════════════════════════════════════════
   AUTH PAGES (Login / 2FA)
   ════════════════════════════════════════════════════════════════════════════ */

.dcgc-auth-page {
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
}

.dcgc-auth-card {
  width: 100%;
  max-width: 480px;
  padding: 48px 44px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 4px 0 40px rgba(0,0,0,.06);
  min-height: 100vh;
}

.dcgc-auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}
.dcgc-auth-logo { flex-shrink: 0; }
.dcgc-auth-title { font-weight: 800; font-size: 1rem; color: var(--teal); letter-spacing: .5px; }
.dcgc-auth-subtitle { font-size: .78rem; color: var(--text-muted); }

.dcgc-auth-heading { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 700; color: var(--teal); margin-bottom: 8px; }
.dcgc-auth-desc { color: var(--text-muted); font-size: .95rem; margin-bottom: 28px; line-height: 1.6; }

.dcgc-auth-side {
  flex: 1;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-mid) 50%, #0d3d3b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}
.dcgc-auth-side::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(200,164,21,.12);
}
.dcgc-auth-side::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}

.dcgc-auth-side-content { position: relative; z-index: 1; }
.dcgc-auth-tagline {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 40px;
}
.dcgc-auth-tagline span { color: var(--gold); }

.dcgc-auth-features { display: flex; flex-direction: column; gap: 14px; }
.dcgc-auth-feature {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dcgc-auth-footer { text-align: center; margin-top: 28px; }
.dcgc-auth-footer p { color: var(--text-muted); font-size: .85rem; margin: 6px 0; }

/* 2FA specific */
.dcgc-2fa-page .dcgc-auth-page { justify-content: center; background: linear-gradient(135deg,var(--teal-pale),var(--gold-pale)); }
.dcgc-2fa-icon { font-size: 3rem; text-align: center; margin-bottom: 16px; }
.dcgc-code-input {
  text-align: center !important;
  font-size: 2rem !important;
  letter-spacing: 10px !important;
  font-weight: 800 !important;
  padding: 16px !important;
}

/* ════════════════════════════════════════════════════════════════════════════
   FORM ELEMENTS
   ════════════════════════════════════════════════════════════════════════════ */

.dcgc-form { display: flex; flex-direction: column; gap: 16px; }
.dcgc-field { display: flex; flex-direction: column; gap: 6px; }
.dcgc-label { font-size: .875rem; font-weight: 600; color: var(--text-mid); }
.dcgc-input-wrap { position: relative; display: flex; align-items: center; }
.dcgc-input-icon { position: absolute; left: 14px; font-size: .95rem; z-index: 1; opacity: .6; pointer-events: none; }
.dcgc-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text);
  background: #fff;
  transition: var(--transition);
  outline: none;
}
.dcgc-input:not(.dcgc-input-wrap .dcgc-input) { padding-left: 14px; }
.dcgc-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,77,74,.12); }
.dcgc-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text);
  resize: vertical;
  min-height: 120px;
  outline: none;
  transition: var(--transition);
}
.dcgc-textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,77,74,.12); }

.dcgc-pwd-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: .6;
  padding: 4px;
}

.dcgc-field-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dcgc-field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.dcgc-checkbox-label { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--text-mid); cursor: pointer; }
.dcgc-checkbox-label input { accent-color: var(--teal); width: 16px; height: 16px; }

/* ════════════════════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════════════════════ */

.dcgc-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  background: linear-gradient(135deg, var(--teal), var(--teal-mid));
  color: #fff;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.dcgc-btn-primary:hover { background: linear-gradient(135deg,var(--teal-mid),var(--teal-light)); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(11,77,74,.25); }

.dcgc-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--gold-pale);
  color: var(--teal);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 700;
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.dcgc-btn-secondary:hover { background: var(--gold); color: var(--teal); }

.dcgc-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  color: var(--teal);
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.dcgc-btn-ghost:hover { border-color: var(--teal); background: var(--teal-pale); }

.dcgc-btn-ghost-sm { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; font-size: .8rem; font-weight: 600; color: var(--teal); background: var(--teal-pale); border-radius: 20px; transition: var(--transition); }
.dcgc-btn-ghost-sm:hover { background: var(--teal); color: #fff; }

.dcgc-btn-sm { padding: 8px 16px; font-size: .85rem; }
.dcgc-btn-full { width: 100%; }
.dcgc-link { color: var(--teal); font-weight: 600; text-decoration: none; }
.dcgc-link:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════════════════════════════
   ALERTS
   ════════════════════════════════════════════════════════════════════════════ */

.dcgc-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  line-height: 1.5;
}
.dcgc-alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.dcgc-alert-error   { background: var(--red-pale);   color: #991B1B;  border: 1px solid #FECACA; }
.dcgc-alert-success { background: var(--green-pale); color: #065F46;  border: 1px solid #A7F3D0; }
.dcgc-alert-warn    { background: var(--gold-pale);  color: #92400E;  border: 1px solid #FDE68A; }

/* ════════════════════════════════════════════════════════════════════════════
   PORTAL LAYOUT
   ════════════════════════════════════════════════════════════════════════════ */

.dcgc-portal-body { /* on the body tag */ }

.dcgc-portal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* TOPBAR */
.dcgc-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.15);
}

.dcgc-topbar-brand { display: flex; align-items: center; gap: 12px; }
.dcgc-topbar-name { display: flex; flex-direction: column; }
.dcgc-topbar-college { color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: .5px; }
.dcgc-topbar-portal  { color: var(--gold); font-size: .72rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }

.dcgc-topbar-right { display: flex; align-items: center; gap: 8px; }
.dcgc-topbar-btn {
  position: relative;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1.1rem;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.dcgc-topbar-btn:hover { background: rgba(255,255,255,.2); }

.dcgc-badge-dot {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--red);
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

.dcgc-topbar-user {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 30px;
  padding: 4px 12px 4px 4px;
  color: #fff;
  cursor: pointer;
  font-family: var(--font);
  font-size: .875rem;
  font-weight: 600;
  transition: var(--transition);
}
.dcgc-topbar-user:hover { background: rgba(255,255,255,.2); }
.dcgc-topbar-username { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dcgc-avatar-sm { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(200,164,21,.5); }
.dcgc-avatar-lg { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }

/* Notification panel */
.dcgc-notif-wrap, .dcgc-user-menu-wrap { position: relative; }
.dcgc-notif-panel, .dcgc-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 300px;
  border: 1px solid var(--border);
  z-index: 200;
  overflow: hidden;
}
.dcgc-notif-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: .875rem; }
.dcgc-notif-item { padding: 12px 16px; border-bottom: 1px solid var(--border); transition: var(--transition); }
.dcgc-notif-item:hover { background: var(--teal-pale); }
.dcgc-notif-title { font-size: .875rem; font-weight: 600; color: var(--text); }
.dcgc-notif-body  { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.dcgc-notif-time  { font-size: .75rem; color: var(--text-light); margin-top: 4px; }
.dcgc-notif-empty { padding: 24px 16px; text-align: center; color: var(--text-muted); font-size: .875rem; }

.dcgc-user-dropdown-header { padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--teal-pale); }
.dcgc-dropdown-item { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: .875rem; font-weight: 500; color: var(--text-mid); transition: var(--transition); }
.dcgc-dropdown-item:hover { background: var(--teal-pale); color: var(--teal); }
.dcgc-dropdown-danger { color: var(--red); }
.dcgc-dropdown-danger:hover { background: var(--red-pale); }
.dcgc-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* PORTAL BODY LAYOUT */
.dcgc-portal-body {
  display: flex;
  margin-top: var(--topbar-h);
  min-height: calc(100vh - var(--topbar-h));
}

/* SIDEBAR */
.dcgc-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  bottom: 0;
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid var(--border);
  z-index: 50;
}
.dcgc-sidebar::-webkit-scrollbar { width: 4px; }
.dcgc-sidebar::-webkit-scrollbar-track { background: transparent; }
.dcgc-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.dcgc-sidebar-inner { padding: 16px 8px 80px; }

.dcgc-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
  position: relative;
}
.dcgc-nav-item:hover { background: var(--teal-pale); color: var(--teal); }
.dcgc-nav-item.active { background: linear-gradient(135deg,var(--teal),var(--teal-mid)); color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(11,77,74,.25); }
.dcgc-nav-icon { font-size: 1.1rem; flex-shrink: 0; width: 24px; text-align: center; }
.dcgc-nav-label { flex: 1; }
.dcgc-nav-badge { background: var(--teal); color: #fff; font-size: .68rem; font-weight: 800; padding: 2px 6px; border-radius: 10px; }
.dcgc-nav-badge-red { background: var(--red); }
.dcgc-nav-item.active .dcgc-nav-badge { background: var(--gold); color: var(--teal); }

/* Visa Widget */
.dcgc-visa-widget {
  margin: 16px 6px 0;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--teal-pale);
  border: 1px solid var(--teal-pale2);
}
.dcgc-visa-label { font-size: .75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.dcgc-visa-days { font-size: 1.6rem; font-weight: 800; color: var(--teal); line-height: 1; margin: 4px 0; }
.dcgc-visa-urgent { background: var(--red-pale); border-color: #FECACA; }
.dcgc-visa-urgent .dcgc-visa-days { color: var(--red); }
.dcgc-visa-warn { background: var(--gold-pale); border-color: #FDE68A; }
.dcgc-visa-warn .dcgc-visa-days { color: #92400E; }
.dcgc-visa-alert { font-size: .78rem; color: var(--red); font-weight: 700; margin-top: 4px; }

/* MAIN CONTENT */
.dcgc-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 28px 32px 60px;
  min-width: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   CONTENT COMPONENTS
   ════════════════════════════════════════════════════════════════════════════ */

.dcgc-page-header { margin-bottom: 24px; }
.dcgc-page-header h1 { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700; color: var(--teal); margin-bottom: 4px; }
.dcgc-page-header p  { color: var(--text-muted); font-size: .95rem; }

.dcgc-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.dcgc-section-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.15rem; font-weight: 700;
  color: var(--teal);
  margin-bottom: 18px;
}
.dcgc-section-icon {
  background: linear-gradient(135deg,var(--gold),#E8C425);
  color: var(--teal);
  width: 34px; height: 34px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}

.dcgc-breadcrumb {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.dcgc-breadcrumb a { color: var(--teal); font-weight: 600; }
.dcgc-breadcrumb a:hover { text-decoration: underline; }

/* Stats Grid */
.dcgc-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.dcgc-stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.dcgc-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dcgc-stat-icon { font-size: 1.6rem; margin-bottom: 8px; }
.dcgc-stat-value { font-size: 2.2rem; font-weight: 800; color: var(--teal); line-height: 1; }
.dcgc-stat-label { font-size: .8rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
.dcgc-stat-teal  { border-top: 3px solid var(--teal); }
.dcgc-stat-gold  { border-top: 3px solid var(--gold); }
.dcgc-stat-blue  { border-top: 3px solid var(--blue); }
.dcgc-stat-green { border-top: 3px solid var(--green); }

/* Course Cards */
.dcgc-course-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 16px; }
.dcgc-course-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.dcgc-course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal-pale2); }

.dcgc-course-img {
  height: 140px;
  background: linear-gradient(135deg,var(--teal),var(--teal-mid));
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.dcgc-course-img-placeholder { background: linear-gradient(135deg,var(--teal),var(--teal-light)); }

.dcgc-course-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.dcgc-course-tier { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--gold); background: var(--gold-pale); display: inline-block; padding: 2px 8px; border-radius: 10px; }
.dcgc-course-title { font-weight: 700; font-size: .95rem; color: var(--text); flex: 1; }
.dcgc-course-meta { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--text-muted); }
.dcgc-cta { color: var(--teal); font-weight: 700; }

.dcgc-course-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(320px,1fr)); gap: 20px; }
.dcgc-course-card-lg {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex; flex-direction: column;
  text-decoration: none;
}
.dcgc-course-card-lg:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dcgc-course-img-lg {
  height: 180px;
  background: linear-gradient(135deg,var(--teal),var(--teal-mid));
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.dcgc-course-overlay { position: absolute; top: 12px; left: 12px; }
.dcgc-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--teal);
  font-size: .72rem; font-weight: 800;
  padding: 3px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .5px;
}
.dcgc-course-footer { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--text-muted); margin-top: 8px; }

/* Progress bars */
.dcgc-progress-wrap { display: flex; align-items: center; gap: 8px; }
.dcgc-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.dcgc-progress-bar-lg { height: 8px; }
.dcgc-progress-bar-xl { flex: 1; height: 10px; border-radius: 5px; }
.dcgc-progress-fill { height: 100%; background: linear-gradient(90deg,var(--teal),var(--gold)); border-radius: 3px; transition: width .5s ease; }
.dcgc-progress-label { font-size: .8rem; font-weight: 700; color: var(--teal); white-space: nowrap; }
.dcgc-progress-hero { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: .9rem; font-weight: 600; color: var(--teal); }

/* Module accordion */
.dcgc-module-list { display: flex; flex-direction: column; gap: 12px; }
.dcgc-module { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.dcgc-module-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  transition: var(--transition);
}
.dcgc-module-header:hover { background: var(--teal-pale); }
.dcgc-module-num { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--gold); letter-spacing: .5px; display: block; margin-bottom: 2px; }
.dcgc-module-title { font-weight: 700; color: var(--text); }
.dcgc-module-meta { display: flex; align-items: center; gap: 12px; font-size: .8rem; color: var(--text-muted); }
.dcgc-module-toggle { font-size: .75rem; transition: var(--transition); }
.dcgc-module.open .dcgc-module-toggle { transform: rotate(180deg); }

.dcgc-lesson-list { border-top: 1px solid var(--border); }
.dcgc-lesson-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-mid);
  font-size: .875rem;
  transition: var(--transition);
}
.dcgc-lesson-item:last-child { border-bottom: none; }
.dcgc-lesson-item:hover { background: var(--teal-pale); color: var(--teal); }
.dcgc-lesson-done { color: var(--text-muted); }
.dcgc-lesson-status { width: 20px; text-align: center; font-size: .85rem; flex-shrink: 0; }
.dcgc-lesson-title { flex: 1; }
.dcgc-lesson-type { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; text-transform: uppercase; background: var(--teal-pale); color: var(--teal); }
.dcgc-type-video { background: var(--blue-pale); color: var(--blue); }
.dcgc-lesson-dur { font-size: .75rem; color: var(--text-light); white-space: nowrap; }

/* Lesson view */
.dcgc-lesson-view { max-width: 860px; }
.dcgc-lesson-heading { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--teal); margin-bottom: 20px; }
.dcgc-video-wrap { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; background: #000; aspect-ratio: 16/9; }
.dcgc-video-frame { width: 100%; height: 100%; display: block; }
.dcgc-video-native { width: 100%; height: 100%; display: block; }
.dcgc-lesson-content { font-size: 1rem; line-height: 1.8; color: var(--text-mid); margin-bottom: 24px; }
.dcgc-lesson-content h2,.dcgc-lesson-content h3 { color: var(--teal); font-family: var(--font-serif); margin: 20px 0 10px; }
.dcgc-lesson-content p { margin-bottom: 14px; }
.dcgc-lesson-attachment { margin-bottom: 20px; }
.dcgc-lesson-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding-top: 20px; border-top: 1px solid var(--border); }
.dcgc-badge-done { display: inline-flex; align-items: center; gap: 6px; background: var(--green-pale); color: var(--green); padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 700; font-size: .9rem; }

/* Live sessions */
.dcgc-live-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.dcgc-live-item:last-child { border-bottom: none; }
.dcgc-live-date { text-align: center; min-width: 44px; flex-shrink: 0; }
.dcgc-live-day { font-size: 1.5rem; font-weight: 800; color: var(--teal); line-height: 1; }
.dcgc-live-mon { font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.dcgc-live-info { flex: 1; min-width: 0; }
.dcgc-live-title { font-weight: 700; color: var(--text); font-size: .95rem; }
.dcgc-live-meta  { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }

.dcgc-live-card {
  display: flex; align-items: center; gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  transition: var(--transition);
}
.dcgc-live-card:hover { box-shadow: var(--shadow); }
.dcgc-live-card-date { text-align: center; background: var(--teal); border-radius: var(--radius-sm); padding: 12px 16px; min-width: 60px; flex-shrink: 0; }
.dcgc-live-card-date .dcgc-live-day { color: var(--gold); }
.dcgc-live-card-date .dcgc-live-mon { color: rgba(255,255,255,.7); }
.dcgc-live-card-info { flex: 1; min-width: 0; }
.dcgc-live-card-info h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.dcgc-live-card-info p  { font-size: .85rem; color: var(--text-muted); margin-bottom: 6px; }

.dcgc-recording-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.dcgc-recording-item:last-child { border-bottom: none; }
.dcgc-recording-icon { font-size: 1.4rem; }
.dcgc-recording-info { flex: 1; }
.dcgc-recording-title { font-weight: 600; color: var(--text); font-size: .9rem; }
.dcgc-recording-date  { font-size: .78rem; color: var(--text-muted); }

/* Assignment cards */
.dcgc-assignments-list,.dcgc-doc-list,.dcgc-invoice-list,.dcgc-message-list { display: flex; flex-direction: column; gap: 10px; }
.dcgc-asgn-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-decoration: none;
  transition: var(--transition);
}
.dcgc-asgn-card:hover { box-shadow: var(--shadow); border-color: var(--teal-pale2); }
.dcgc-asgn-card-icon { font-size: 1.4rem; flex-shrink: 0; }
.dcgc-asgn-card-info { flex: 1; min-width: 0; }
.dcgc-asgn-card-title { font-weight: 700; color: var(--text); }
.dcgc-asgn-card-meta  { font-size: .8rem; color: var(--text-muted); margin-top: 3px; }
.dcgc-asgn-card-status { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dcgc-asgn-overdue { border-color: #FECACA; background: var(--red-pale); }
.dcgc-assignment-desc { font-size: .95rem; line-height: 1.7; color: var(--text-mid); margin-bottom: 16px; }
.dcgc-meta-row { font-size: .9rem; color: var(--text-muted); margin-bottom: 10px; }
.dcgc-meta-row strong { color: var(--text); }

/* Assignment item (overview) */
.dcgc-assignment-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.dcgc-assignment-item:last-child { border-bottom: none; }
.dcgc-asgn-info { flex: 1; }
.dcgc-asgn-title { font-weight: 600; font-size: .9rem; }
.dcgc-asgn-due   { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }

/* Badges */
.dcgc-badge-green  { display: inline-block; background: var(--green-pale); color: var(--green);  font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.dcgc-badge-red    { display: inline-block; background: var(--red-pale);   color: var(--red);    font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.dcgc-badge-blue   { display: inline-block; background: var(--blue-pale);  color: var(--blue);   font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.dcgc-badge-yellow { display: inline-block; background: var(--gold-pale);  color: #92400E;       font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.dcgc-score { font-size: .8rem; font-weight: 700; color: var(--text-muted); }

/* Exams */
.dcgc-exams-list { display: flex; flex-direction: column; gap: 16px; }
.dcgc-exam-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: var(--transition); }
.dcgc-exam-card:hover { box-shadow: var(--shadow); }
.dcgc-exam-passed { border-color: #A7F3D0; background: linear-gradient(135deg,#fff,var(--green-pale)); }
.dcgc-exam-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.dcgc-exam-card-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--teal); margin-bottom: 4px; }
.dcgc-exam-desc { font-size: .875rem; color: var(--text-muted); }
.dcgc-exam-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: var(--text-muted); margin-bottom: 16px; }

/* Certificates */
.dcgc-cert-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 16px; }
.dcgc-cert-card {
  background: linear-gradient(135deg,var(--teal),var(--teal-mid));
  border-radius: var(--radius);
  padding: 24px;
  color: #fff;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 8px 24px rgba(11,77,74,.2);
  position: relative;
  overflow: hidden;
}
.dcgc-cert-card::after { content: ''; position: absolute; top: -30px; right: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(200,164,21,.15); }
.dcgc-cert-seal { font-size: 2.5rem; position: relative; z-index: 1; }
.dcgc-cert-body { position: relative; z-index: 1; }
.dcgc-cert-type { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--gold); margin-bottom: 6px; }
.dcgc-cert-programme { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.dcgc-cert-number { font-size: .78rem; color: rgba(255,255,255,.6); }
.dcgc-cert-date   { font-size: .82rem; color: rgba(255,255,255,.7); }
.dcgc-cert-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.dcgc-cert-actions .dcgc-btn-primary { background: var(--gold); color: var(--teal); }
.dcgc-cert-actions .dcgc-btn-ghost   { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; }

/* Documents */
.dcgc-doc-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.dcgc-doc-icon { font-size: 1.6rem; flex-shrink: 0; }
.dcgc-doc-info { flex: 1; min-width: 0; }
.dcgc-doc-title { font-weight: 700; color: var(--text); }
.dcgc-doc-meta  { font-size: .8rem; color: var(--text-muted); margin-top: 3px; }

/* Invoices */
.dcgc-invoice-item {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: var(--transition);
}
.dcgc-invoice-unpaid { border-color: #FDE68A; background: linear-gradient(135deg,#fff,var(--gold-pale)); }
.dcgc-inv-label { font-weight: 700; color: var(--text); font-size: .9rem; }
.dcgc-inv-date  { font-size: .78rem; color: var(--text-muted); }
.dcgc-invoice-desc { flex: 1; font-size: .875rem; color: var(--text-muted); min-width: 0; }
.dcgc-invoice-amount { font-weight: 800; color: var(--teal); white-space: nowrap; }
.dcgc-payment-methods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.dcgc-payment-badge { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 5px 12px; font-size: .82rem; font-weight: 600; color: var(--text-mid); }

/* Messages */
.dcgc-thread-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-decoration: none;
  transition: var(--transition);
}
.dcgc-thread-item:hover { box-shadow: var(--shadow); border-color: var(--teal-pale2); }
.dcgc-thread-unread { border-left: 3px solid var(--teal); }
.dcgc-thread-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg,var(--teal),var(--teal-mid));
  color: var(--gold); font-weight: 800; font-size: .95rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dcgc-thread-info { flex: 1; min-width: 0; }
.dcgc-thread-subject { font-weight: 700; font-size: .9rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcgc-thread-preview { font-size: .8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcgc-thread-time { font-size: .75rem; color: var(--text-light); white-space: nowrap; }

.dcgc-thread { display: flex; flex-direction: column; gap: 16px; }
.dcgc-msg { display: flex; gap: 12px; }
.dcgc-msg-mine    { flex-direction: row-reverse; }
.dcgc-msg-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg,var(--teal),var(--teal-mid));
  color: var(--gold); font-weight: 800; font-size: .85rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dcgc-msg-bubble { max-width: 72%; }
.dcgc-msg-mine .dcgc-msg-bubble { align-items: flex-end; }
.dcgc-msg-meta { display: flex; gap: 8px; align-items: center; font-size: .75rem; color: var(--text-muted); margin-bottom: 6px; }
.dcgc-msg-mine .dcgc-msg-meta { justify-content: flex-end; }
.dcgc-msg-body {
  background: var(--teal-pale);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 12px 16px;
  font-size: .9rem; line-height: 1.6; color: var(--text);
}
.dcgc-msg-mine .dcgc-msg-body { background: var(--teal); color: #fff; border-radius: var(--radius) 0 var(--radius) var(--radius); }

/* ID Card */
.dcgc-idcard-wrap { display: flex; flex-direction: column; align-items: center; }
.dcgc-idcard {
  width: 100%; max-width: 400px;
  background: linear-gradient(135deg,var(--teal) 0%,var(--teal-mid) 60%,#0d3d3b 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(11,77,74,.3);
  color: #fff;
}
.dcgc-idcard-header { display: flex; align-items: center; gap: 12px; padding: 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.dcgc-idcard-body { display: flex; gap: 20px; padding: 20px; }
.dcgc-idcard-photo { width: 90px; height: 110px; border-radius: var(--radius-sm); overflow: hidden; border: 3px solid var(--gold); flex-shrink: 0; }
.dcgc-idcard-photo img { width: 100%; height: 100%; object-fit: cover; }
.dcgc-idcard-photo-placeholder { width: 100%; height: 100%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; color: var(--gold); }
.dcgc-idcard-details { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.dcgc-idcard-name { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; }
.dcgc-idcard-programme { font-size: .8rem; color: var(--gold); font-weight: 600; margin-bottom: 4px; }
.dcgc-idcard-field { font-size: .78rem; color: rgba(255,255,255,.7); }
.dcgc-idcard-field span { opacity: .6; }
.dcgc-idcard-footer { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-top: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.15); }
.dcgc-idcard-verify { font-size: .68rem; color: rgba(255,255,255,.5); }
.dcgc-idcard-status { font-size: .72rem; font-weight: 800; letter-spacing: 1px; padding: 3px 10px; border-radius: 20px; }
.dcgc-status-active { background: var(--green); color: #fff; }
.dcgc-status-inactive { background: var(--red); color: #fff; }

/* Profile */
.dcgc-profile-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(420px,1fr)); gap: 20px; }
.dcgc-profile-avatar-row { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.dcgc-profile-name  { font-weight: 800; font-size: 1.1rem; color: var(--teal); }
.dcgc-profile-email { font-size: .875rem; color: var(--text-muted); }
.dcgc-profile-since { font-size: .8rem; color: var(--text-light); margin-top: 4px; }

/* 2FA toggle */
.dcgc-2fa-toggle { display: flex; align-items: flex-start; gap: 20px; }
.dcgc-2fa-info { flex: 1; }
.dcgc-2fa-info strong { font-size: 1rem; color: var(--text); }
.dcgc-2fa-info p { font-size: .875rem; color: var(--text-muted); margin-top: 6px; line-height: 1.6; }

.dcgc-toggle-switch { position: relative; width: 48px; height: 26px; flex-shrink: 0; cursor: pointer; }
.dcgc-toggle-switch input { opacity: 0; width: 0; height: 0; }
.dcgc-toggle-slider {
  position: absolute; inset: 0;
  background: var(--border-mid);
  border-radius: 13px;
  transition: var(--transition);
}
.dcgc-toggle-slider::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.dcgc-toggle-switch input:checked + .dcgc-toggle-slider { background: var(--teal); }
.dcgc-toggle-switch input:checked + .dcgc-toggle-slider::after { left: 25px; }

.dcgc-method-options { display: flex; gap: 10px; margin-top: 8px; }
.dcgc-method-option {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .875rem; font-weight: 600;
  transition: var(--transition);
}
.dcgc-method-option input { display: none; }
.dcgc-method-option.selected,.dcgc-method-option:has(input:checked) { border-color: var(--teal); background: var(--teal-pale); color: var(--teal); }
.dcgc-method-icon { font-size: 1.1rem; }

/* Empty states */
.dcgc-empty-state { text-align: center; padding: 48px 24px; }
.dcgc-empty-icon { font-size: 3rem; margin-bottom: 14px; }
.dcgc-empty-state h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.dcgc-empty-state p  { color: var(--text-muted); font-size: .9rem; margin-bottom: 20px; }

/* Text utilities */
.dcgc-text-red   { color: var(--red); }
.dcgc-text-green { color: var(--green); }
.dcgc-text-muted { color: var(--text-muted); }

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .dcgc-stats-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .dcgc-auth-side { display: none; }
  .dcgc-auth-card { padding: 32px 24px; max-width: 100%; min-height: 100vh; }

  .dcgc-sidebar { transform: translateX(-100%); transition: var(--transition); }
  .dcgc-sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .dcgc-main { margin-left: 0; padding: 16px; }

  .dcgc-topbar { padding: 0 12px; }
  .dcgc-topbar-username { display: none; }

  .dcgc-stats-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .dcgc-course-cards,.dcgc-course-grid,.dcgc-cert-grid { grid-template-columns: 1fr; }
  .dcgc-profile-grid { grid-template-columns: 1fr; }
  .dcgc-field-row-2 { grid-template-columns: 1fr; }
  .dcgc-2fa-toggle { flex-direction: column; }
  .dcgc-live-card { flex-wrap: wrap; }
  .dcgc-invoice-item { flex-wrap: wrap; }
  .dcgc-auth-tagline { font-size: 2rem; }

  /* Mobile bottom nav */
  .dcgc-main { padding-bottom: 80px; }
}

@media (max-width: 480px) {
  .dcgc-stats-grid { grid-template-columns: 1fr 1fr; }
  .dcgc-main { padding: 12px 10px; }
  .dcgc-page-header h1 { font-size: 1.4rem; }
}

/* Pre-Master tier badge */
.dcgc-tier-premaster {
    background: linear-gradient(135deg, #FFFBEB, rgba(200,164,21,0.15)) !important;
    color: #92400E !important;
    border: 1px solid rgba(200,164,21,0.4) !important;
    font-weight: 800 !important;
}
.dcgc-tier-premaster::before { content: '🎓 '; }

/* ════════════════════════════════════════════════════════════════════════════
   LESSON ENHANCEMENTS — Access control, classroom mode, resources
   ════════════════════════════════════════════════════════════════════════════ */

.dcgc-lesson-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.dcgc-lesson-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.dcgc-lesson-dur-badge {
  background: var(--teal-pale);
  color: var(--teal);
  font-size: .78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
}

/* Resources section */
.dcgc-lesson-resources {
  background: var(--teal-pale);
  border: 1px solid var(--teal-pale2);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.dcgc-resources-title {
  font-size: .875rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 12px;
}
.dcgc-resources-list { display: flex; flex-direction: column; gap: 8px; }
.dcgc-resource-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-size: .875rem;
  font-weight: 600;
  transition: var(--transition);
}
.dcgc-resource-item:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-pale); }
.dcgc-resource-icon { font-size: 1.1rem; }

/* Locked lesson state */
.dcgc-empty-state .dcgc-empty-icon { font-size: 3.5rem; }

