/* TGC Student Forum — Frontend Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --tgc-green:   #005c2e;
  --tgc-green2:  #007a3e;
  --tgc-gold:    #c8960c;
  --tgc-gold-lt: #f0c040;
  --tgc-cream:   #fdf8ef;
  --tgc-dark:    #1a1a2e;
  --tgc-border:  #e0d9cc;
  --tgc-text:    #2d2d2d;
  --tgc-muted:   #7a7a7a;
  --tgc-red:     #c0392b;
  --tgc-white:   #ffffff;
  --tgc-radius:  14px;
  --tgc-shadow:  0 4px 24px rgba(0,0,0,.1);
}

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

.tgc-forum-wrap {
  font-family: 'DM Sans', sans-serif;
  color: var(--tgc-text);
  background: var(--tgc-cream);
  min-height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 60px rgba(0,0,0,.15);
  max-width: 900px;
  margin: 0 auto;
}

/* HEADER */
.tgc-forum-header {
  background: linear-gradient(135deg, var(--tgc-green) 0%, #003d1f 100%);
  padding: 28px 36px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
}
.tgc-forum-header::after {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px;
  border: 40px solid rgba(200,150,12,.15);
  border-radius: 50%;
  pointer-events: none;
}
.tgc-forum-brand { display: flex; align-items: center; gap: 16px; }
.tgc-brand-badge {
  background: var(--tgc-gold); color: #1a1100; font-family: 'Playfair Display', serif;
  font-weight: 800; font-size: 20px; width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.3); flex-shrink: 0;
}
.tgc-forum-title { font-family: 'Playfair Display', serif; font-size: 20px; color: #fff; line-height: 1.2; }
.tgc-forum-subtitle { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 3px; }

#tgc-header-user { color: rgba(255,255,255,.9); font-size: 13px; text-align: right; }
#tgc-header-user button {
  background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.3);
  color: #fff; padding: 6px 14px; border-radius: 8px; cursor: pointer;
  font-size: 12px; margin-top: 6px; transition: background .2s;
}
#tgc-header-user button:hover { background: rgba(255,255,255,.25); }

/* ELECTION BANNER */
.tgc-election-banner {
  background: linear-gradient(90deg, var(--tgc-gold) 0%, #e6ac10 100%);
  color: #1a1100; padding: 10px 36px; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  min-height: 0; transition: min-height .3s;
}
.tgc-election-banner:empty { display: none; }
.tgc-banner-item { display: flex; align-items: center; gap: 6px; }
.tgc-banner-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tgc-green); }
.tgc-banner-dot.active { background: #27ae60; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(1.2)} }

/* FORUM NAV */
.tgc-forum-nav {
  background: #fff; border-bottom: 2px solid var(--tgc-border);
  display: flex; padding: 0 20px; overflow-x: auto;
}
.tgc-fnav-btn {
  padding: 14px 20px; background: none; border: none; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--tgc-muted);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  white-space: nowrap; transition: all .2s; font-family: 'DM Sans', sans-serif;
}
.tgc-fnav-btn:hover { color: var(--tgc-green); background: #f9f7f3; }
.tgc-fnav-btn.active { color: var(--tgc-green); border-bottom-color: var(--tgc-gold); }

/* TABS */
.tgc-tab { display: none; padding: 30px 36px; }
.tgc-tab.active { display: block; }

/* UNAVAILABLE */
.tgc-unavailable {
  text-align: center; padding: 80px 40px;
}
.tgc-unavail-icon { font-size: 64px; margin-bottom: 16px; }
.tgc-unavailable h2 { font-family:'Playfair Display',serif; font-size:24px; color:var(--tgc-green); margin-bottom:10px; }
.tgc-unavailable p  { color:var(--tgc-muted); font-size:15px; }

/* AUTH */
.tgc-auth-container {
  max-width: 520px; margin: 0 auto;
  background: #fff; border-radius: var(--tgc-radius); padding: 36px;
  box-shadow: var(--tgc-shadow); border: 1px solid var(--tgc-border);
}
.tgc-auth-tabs {
  display: flex; border-bottom: 2px solid var(--tgc-border); margin-bottom: 28px;
}
.tgc-auth-tab {
  flex: 1; padding: 12px; background: none; border: none; cursor: pointer;
  font-size: 15px; font-weight: 700; color: var(--tgc-muted); border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: all .2s; font-family: 'DM Sans', sans-serif;
}
.tgc-auth-tab.active { color: var(--tgc-green); border-bottom-color: var(--tgc-gold); }

.tgc-auth-panel { display: none; }
.tgc-auth-panel.active { display: block; }
.tgc-auth-heading { font-family:'Playfair Display',serif; font-size:24px; color:var(--tgc-dark); margin-bottom:6px; }
.tgc-auth-sub { color:var(--tgc-muted); font-size:14px; margin-bottom:24px; }

.tgc-reg-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media(max-width:560px){ .tgc-reg-grid { grid-template-columns:1fr; } }

.tgc-field-group { display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.tgc-reg-grid .tgc-field-group { margin-bottom:0; }
.tgc-field-group label { font-size:12px; font-weight:700; color:#555; text-transform:uppercase; letter-spacing:.5px; }
.tgc-field-group input,
.tgc-field-group select,
.tgc-field-group textarea {
  padding: 11px 14px; border: 2px solid var(--tgc-border); border-radius: 10px;
  font-size: 14px; outline: none; font-family:'DM Sans',sans-serif; color:var(--tgc-text);
  background: #fdfbf7; transition: border .2s, box-shadow .2s;
}
.tgc-field-group input:focus,
.tgc-field-group select:focus,
.tgc-field-group textarea:focus {
  border-color: var(--tgc-green); box-shadow: 0 0 0 3px rgba(0,92,46,.12);
}

/* Buttons */
.tgc-btn-primary {
  width: 100%; padding: 14px; margin-top: 20px;
  background: linear-gradient(135deg, var(--tgc-green), var(--tgc-green2));
  color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family:'DM Sans',sans-serif; letter-spacing: .3px;
  transition: transform .15s, box-shadow .15s;
}
.tgc-btn-primary:hover { transform:translateY(-1px); box-shadow:0 6px 20px rgba(0,92,46,.4); }
.tgc-btn-primary:active { transform:translateY(0); }
.tgc-btn-primary:disabled { opacity:.6; cursor:not-allowed; transform:none; }

.tgc-btn-gold {
  padding: 10px 22px; background: var(--tgc-gold); color: #1a1100;
  border: none; border-radius: 10px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family:'DM Sans',sans-serif; transition: all .2s;
}
.tgc-btn-gold:hover { background: #e6ac10; box-shadow:0 4px 12px rgba(200,150,12,.4); }
.tgc-btn-outline-green {
  padding: 10px 22px; background: transparent; color: var(--tgc-green);
  border: 2px solid var(--tgc-green); border-radius: 10px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family:'DM Sans',sans-serif; transition: all .2s;
}
.tgc-btn-outline-green:hover { background: var(--tgc-green); color:#fff; }

/* Alerts */
.tgc-alert { padding:12px 16px; border-radius:10px; font-size:13px; font-weight:600; margin-bottom:16px; }
.tgc-alert-success { background:#d1eddf; color:#155724; border-left:4px solid #27ae60; }
.tgc-alert-error   { background:#fde8e8; color:#721c24; border-left:4px solid #e74c3c; }
.tgc-alert-info    { background:#e8f4fd; color:#1a4a6e; border-left:4px solid #3498db; }
.tgc-alert-warn    { background:#fef9e7; color:#7d5a00; border-left:4px solid var(--tgc-gold); }

/* Section headers */
.tgc-section-header { margin-bottom:24px; }
.tgc-section-header h2 { font-family:'Playfair Display',serif; font-size:22px; color:var(--tgc-dark); }
.tgc-section-header p  { color:var(--tgc-muted); font-size:14px; margin-top:6px; }

/* Home welcome */
.tgc-welcome-card {
  background: linear-gradient(135deg, var(--tgc-green) 0%, #003d1f 100%);
  color: #fff; border-radius: var(--tgc-radius); padding: 30px 32px; margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.tgc-welcome-card::before {
  content:''; position:absolute; right:-40px; bottom:-40px;
  width:180px; height:180px; border:30px solid rgba(200,150,12,.2); border-radius:50%;
}
.tgc-welcome-card h2 { font-family:'Playfair Display',serif; font-size:24px; margin-bottom:8px; }
.tgc-welcome-card p  { opacity:.85; font-size:14px; line-height:1.6; }

.tgc-home-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:20px; }
@media(max-width:540px){ .tgc-home-grid { grid-template-columns:1fr; } }
.tgc-home-card {
  background:#fff; border-radius:var(--tgc-radius); padding:22px;
  border:1px solid var(--tgc-border); text-align:center;
  box-shadow:0 2px 10px rgba(0,0,0,.05);
}
.tgc-home-card .icon { font-size:36px; margin-bottom:10px; }
.tgc-home-card h3 { font-size:15px; font-weight:700; margin-bottom:6px; color:var(--tgc-dark); }
.tgc-home-card p  { font-size:13px; color:var(--tgc-muted); line-height:1.5; }
.tgc-home-card .status-open  { color:#27ae60; font-weight:700; font-size:13px; margin-top:8px; }
.tgc-home-card .status-closed { color:var(--tgc-red); font-weight:700; font-size:13px; margin-top:8px; }

/* Positions select */
.tgc-position-list { display:grid; gap:12px; }
.tgc-position-item {
  background:#fff; border:2px solid var(--tgc-border); border-radius:12px; padding:18px 20px;
  cursor:pointer; transition:all .2s; display:flex; align-items:center; justify-content:space-between;
}
.tgc-position-item:hover { border-color:var(--tgc-gold); background:#fffbf0; }
.tgc-position-item.selected { border-color:var(--tgc-green); background:#f0faf5; }
.tgc-position-item h4 { font-weight:700; font-size:15px; color:var(--tgc-dark); }
.tgc-position-item p  { font-size:13px; color:var(--tgc-muted); margin-top:3px; }
.tgc-pos-check { width:22px; height:22px; border-radius:50%; border:2px solid var(--tgc-border); flex-shrink:0; display:grid; place-items:center; }
.tgc-position-item.selected .tgc-pos-check { background:var(--tgc-green); border-color:var(--tgc-green); color:#fff; }

/* Candidate cards */
.tgc-candidates-wrap { margin-bottom:28px; }
.tgc-position-label { font-family:'Playfair Display',serif; font-size:17px; color:var(--tgc-green); margin-bottom:14px; padding-bottom:8px; border-bottom:2px solid var(--tgc-border); }
.tgc-candidate-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:14px; margin-bottom:24px; }
.tgc-candidate-card {
  background:#fff; border:2px solid var(--tgc-border); border-radius:12px;
  padding:20px 16px; text-align:center; cursor:pointer; transition:all .2s;
  position:relative;
}
.tgc-candidate-card:hover { border-color:var(--tgc-gold); transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,.1); }
.tgc-candidate-card.voted { border-color:var(--tgc-green); background:#f0faf5; }
.tgc-candidate-card .voted-badge {
  position:absolute; top:10px; right:10px; background:var(--tgc-green); color:#fff;
  font-size:11px; font-weight:700; padding:3px 8px; border-radius:10px;
}
.tgc-cand-photo {
  width:72px; height:72px; border-radius:50%; object-fit:cover; margin:0 auto 10px;
  border:3px solid var(--tgc-border); display:block;
}
.tgc-cand-photo-placeholder {
  width:72px; height:72px; border-radius:50%; background:#f0f0f0; margin:0 auto 10px;
  display:flex; align-items:center; justify-content:center; font-size:30px; border:3px solid var(--tgc-border);
}
.tgc-cand-name { font-weight:700; font-size:15px; color:var(--tgc-dark); }
.tgc-cand-dept { font-size:12px; color:var(--tgc-muted); margin-top:3px; }

/* Results */
.tgc-results-position { margin-bottom:32px; }
.tgc-result-item { display:flex; align-items:center; gap:14px; margin-bottom:14px; }
.tgc-result-rank { font-size:20px; width:32px; text-align:center; flex-shrink:0; }
.tgc-result-info { width:160px; flex-shrink:0; }
.tgc-result-name { font-weight:700; font-size:14px; }
.tgc-result-dept { font-size:12px; color:var(--tgc-muted); }
.tgc-result-bar-wrap { flex:1; }
.tgc-result-bar { height:10px; background:#e8e2d9; border-radius:5px; overflow:hidden; }
.tgc-result-bar-fill { height:100%; background:linear-gradient(90deg,var(--tgc-green),var(--tgc-gold)); border-radius:5px; transition:width .6s ease; }
.tgc-result-votes { font-weight:700; font-size:14px; color:var(--tgc-green); width:60px; text-align:right; flex-shrink:0; }

/* Profile */
.tgc-profile-card {
  background:#fff; border-radius:var(--tgc-radius); padding:28px; border:1px solid var(--tgc-border);
  text-align:center; margin-bottom:20px;
}
.tgc-profile-avatar {
  width:90px; height:90px; border-radius:50%; object-fit:cover; margin:0 auto 14px;
  border:4px solid var(--tgc-gold); display:block;
}
.tgc-profile-name { font-family:'Playfair Display',serif; font-size:22px; color:var(--tgc-dark); }
.tgc-profile-reg  { color:var(--tgc-muted); font-size:14px; margin:4px 0 16px; }
.tgc-profile-meta { display:flex; justify-content:center; gap:20px; flex-wrap:wrap; font-size:13px; color:var(--tgc-muted); }
.tgc-profile-meta span strong { color:var(--tgc-dark); }
.tgc-votes-summary { background:#f9f7f3; border-radius:12px; padding:20px; }
.tgc-votes-summary h3 { font-size:15px; font-weight:700; margin-bottom:14px; color:var(--tgc-dark); }
.tgc-vote-item { display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--tgc-border); font-size:13px; }
.tgc-vote-item:last-child { border-bottom:none; }
.tgc-vote-pos { color:var(--tgc-muted); }
.tgc-vote-name { font-weight:700; color:var(--tgc-green); }

/* Application form */
.tgc-apply-form { background:#fff; border-radius:var(--tgc-radius); padding:28px; border:1px solid var(--tgc-border); margin-top:24px; }
.tgc-apply-form h3 { font-family:'Playfair Display',serif; font-size:18px; margin-bottom:20px; color:var(--tgc-dark); }

/* Loading */
.tgc-loading-state { text-align:center; padding:40px; color:var(--tgc-muted); }
.tgc-loading-state .spinner {
  width:36px; height:36px; border:4px solid var(--tgc-border);
  border-top-color:var(--tgc-green); border-radius:50%;
  margin:0 auto 14px; animation:spin .8s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }

/* Empty state */
.tgc-empty { text-align:center; padding:50px 20px; }
.tgc-empty-icon { font-size:48px; margin-bottom:12px; }
.tgc-empty h3 { font-size:17px; color:var(--tgc-dark); margin-bottom:8px; }
.tgc-empty p  { font-size:14px; color:var(--tgc-muted); }

/* App status card */
.tgc-app-status {
  background:#fff; border-radius:12px; padding:20px 24px; margin-bottom:20px;
  border:2px solid var(--tgc-gold); display:flex; align-items:center; gap:14px;
}
.tgc-app-status .icon { font-size:32px; flex-shrink:0; }
.tgc-app-status h4 { font-weight:700; font-size:15px; }
.tgc-app-status p  { font-size:13px; color:var(--tgc-muted); margin-top:3px; }

/* Footer */
.tgc-forum-footer {
  background: var(--tgc-dark); color:rgba(255,255,255,.5);
  text-align:center; padding:16px; font-size:12px;
}

/* Responsive */
@media(max-width:540px){
  .tgc-forum-header { padding:20px; flex-direction:column; align-items:flex-start; gap:12px; }
  .tgc-tab { padding:20px; }
  .tgc-auth-container { padding:24px; }
}

/* ===== ADDITIONS ===== */

/* Toast notification */
.tgc-toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--tgc-dark); color: #fff; padding: 14px 28px; border-radius: 12px;
  font-size: 14px; font-weight: 600; z-index: 99999; opacity: 0;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .35s;
  box-shadow: 0 8px 30px rgba(0,0,0,.3); white-space: nowrap;
}
.tgc-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.tgc-toast-success { background: #155724; border-left: 4px solid #27ae60; }
.tgc-toast-error   { background: #721c24; border-left: 4px solid #e74c3c; }

/* Vote progress bar */
.tgc-vote-progress { background: #fff; border-radius: 12px; padding: 16px 20px; border: 1px solid var(--tgc-border); margin-bottom: 4px; }

/* Profile sections */
.tgc-profile-avatar-placeholder {
  width: 90px; height: 90px; border-radius: 50%; background: #f0f0f0; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-size: 40px;
  border: 4px solid var(--tgc-gold);
}
.tgc-profile-section {
  background: #fff; border-radius: var(--tgc-radius); padding: 22px 24px;
  border: 1px solid var(--tgc-border); margin-bottom: 16px;
}
.tgc-profile-section-title {
  font-size: 15px; font-weight: 700; color: var(--tgc-dark);
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--tgc-border);
  display: flex; align-items: center; gap: 8px;
}
.tgc-profile-section-title::before { content:''; width:4px; height:16px; background:var(--tgc-gold); border-radius:2px; display:inline-block; }

/* Forgot password panel */
#auth-forgot { display: none; }
#auth-forgot.active { display: block; }

/* Candidate level badge */
.tgc-cand-level { font-size: 11px; color: var(--tgc-muted); margin-top: 2px; }

/* Result item photo gap */
.tgc-result-item { gap: 10px; }

/* Manifesto preview in apply form */
#apply-manifesto { resize: vertical; min-height: 140px; }

/* ===== QUIZ SYSTEM ===== */

/* Quiz info card on home */
.tgc-quiz-info-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff; border-radius: var(--tgc-radius); padding: 24px 28px;
  margin-top: 20px; position: relative; overflow: hidden;
}
.tgc-quiz-info-card::after {
  content: '🧠'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 60px; opacity: .15;
}
.tgc-quiz-info-card h3 { font-family:'Playfair Display',serif; font-size:18px; margin-bottom:8px; }
.tgc-quiz-info-card p  { font-size:13px; opacity:.8; margin-bottom:14px; }
.tgc-quiz-meta { display:flex; gap:16px; flex-wrap:wrap; margin-bottom:16px; }
.tgc-quiz-meta-item { background:rgba(255,255,255,.1); border-radius:8px; padding:8px 14px; font-size:13px; }
.tgc-quiz-meta-item span { font-weight:700; display:block; font-size:18px; }

/* Quiz container */
.tgc-quiz-container {
  background: #fff; border-radius: var(--tgc-radius); border: 1px solid var(--tgc-border);
  overflow: hidden;
}
.tgc-quiz-header {
  background: linear-gradient(135deg, var(--tgc-green), #004d26);
  color: #fff; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.tgc-quiz-header h3 { font-size: 16px; font-weight: 700; margin: 0; }
.tgc-quiz-timer {
  background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.3);
  border-radius: 10px; padding: 8px 16px; font-size: 20px; font-weight: 800;
  font-family: monospace; letter-spacing: 2px; min-width: 90px; text-align: center;
}
.tgc-quiz-timer.warning { border-color: var(--tgc-gold); color: var(--tgc-gold-lt); animation: pulse 1s infinite; }
.tgc-quiz-timer.danger  { border-color: #e74c3c; color: #ff6b6b; animation: pulse .5s infinite; }

.tgc-quiz-progress-bar {
  height: 6px; background: rgba(255,255,255,.2);
}
.tgc-quiz-progress-fill {
  height: 100%; background: var(--tgc-gold); transition: width .3s;
}

/* Question */
.tgc-quiz-body { padding: 28px 24px; }
.tgc-question-counter {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--tgc-muted); margin-bottom: 10px;
}
.tgc-question-text {
  font-size: 17px; font-weight: 700; color: var(--tgc-dark); margin-bottom: 22px; line-height: 1.5;
}
.tgc-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media(max-width:520px){ .tgc-options { grid-template-columns: 1fr; } }

.tgc-option {
  border: 2px solid var(--tgc-border); border-radius: 12px; padding: 14px 16px;
  cursor: pointer; transition: all .2s; display: flex; align-items: center; gap: 12px;
  background: #fdfbf7; text-align: left; font-family: 'DM Sans', sans-serif; font-size: 14px;
}
.tgc-option:hover { border-color: var(--tgc-gold); background: #fffbf0; transform: translateY(-1px); }
.tgc-option.selected { border-color: var(--tgc-green); background: #f0faf5; }
.tgc-option.correct  { border-color: #27ae60; background: #d1eddf; }
.tgc-option.wrong    { border-color: #e74c3c; background: #fde8e8; }
.tgc-option-letter {
  width: 32px; height: 32px; border-radius: 8px; background: var(--tgc-border);
  display: grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0;
  color: var(--tgc-dark); transition: all .2s;
}
.tgc-option.selected .tgc-option-letter { background: var(--tgc-green); color: #fff; }
.tgc-option.correct .tgc-option-letter  { background: #27ae60; color: #fff; }
.tgc-option.wrong   .tgc-option-letter  { background: #e74c3c; color: #fff; }

/* Quiz nav */
.tgc-quiz-footer {
  padding: 16px 24px; border-top: 2px solid var(--tgc-border);
  display: flex; justify-content: space-between; align-items: center;
}
.tgc-quiz-dots { display: flex; gap: 5px; flex-wrap: wrap; max-width: 300px; }
.tgc-quiz-dot  {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--tgc-border); cursor: pointer; transition: background .2s;
}
.tgc-quiz-dot.answered  { background: var(--tgc-green); }
.tgc-quiz-dot.current   { background: var(--tgc-gold); transform: scale(1.4); }

/* Results */
.tgc-quiz-result {
  padding: 32px 24px; text-align: center;
}
.tgc-result-score-circle {
  width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 6px solid var(--tgc-gold); background: #fffbf0;
}
.tgc-result-score-circle .big  { font-size: 36px; font-weight: 900; color: var(--tgc-green); line-height: 1; }
.tgc-result-score-circle .sub  { font-size: 13px; color: var(--tgc-muted); }
.tgc-result-grade { font-size: 24px; font-weight: 800; margin: 12px 0 4px; }
.tgc-result-rank-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
  background: var(--tgc-green); color: #fff; border-radius: 24px;
  font-size: 14px; font-weight: 700; margin: 12px 0;
}

/* Review */
.tgc-review-item {
  background: #fff; border: 1px solid var(--tgc-border); border-radius: 12px;
  padding: 18px 20px; margin-bottom: 14px; text-align: left;
}
.tgc-review-item.correct-item { border-left: 4px solid #27ae60; }
.tgc-review-item.wrong-item   { border-left: 4px solid #e74c3c; }
.tgc-review-q   { font-weight: 700; margin-bottom: 10px; font-size: 14px; }
.tgc-review-ans { font-size: 13px; margin-bottom: 4px; }
.tgc-review-exp { font-size: 12px; color: var(--tgc-muted); margin-top: 8px; font-style: italic; }

/* ===== LEADERBOARD on home tab ===== */
.tgc-leaderboard-strip {
  background: #fff; border: 1px solid var(--tgc-border); border-radius: var(--tgc-radius);
  padding: 20px 24px; margin-top: 20px;
}
.tgc-leaderboard-strip h3 { font-family:'Playfair Display',serif; font-size:16px; margin-bottom:14px; color:var(--tgc-dark); }
.tgc-lb-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.tgc-lb-row:last-child { border-bottom: none; }
.tgc-lb-rank  { font-size: 22px; width: 32px; text-align: center; flex-shrink: 0; }
.tgc-lb-photo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--tgc-border); flex-shrink: 0; }
.tgc-lb-photo-placeholder { width:42px;height:42px;border-radius:50%;background:#f0f0f0;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0; }
.tgc-lb-name  { font-weight: 700; font-size: 14px; }
.tgc-lb-dept  { font-size: 12px; color: var(--tgc-muted); }
.tgc-lb-score { margin-left: auto; text-align: right; flex-shrink: 0; }
.tgc-lb-score .pts  { font-size: 20px; font-weight: 900; color: var(--tgc-green); line-height: 1; }
.tgc-lb-score .pct  { font-size: 11px; color: var(--tgc-muted); }

/* ===== SCORES PAGE ([tgc_scores] shortcode) ===== */
.tgc-scores-page { font-family: 'DM Sans', sans-serif; max-width: 900px; margin: 0 auto; border-radius: 20px; overflow: hidden; box-shadow: 0 12px 60px rgba(0,0,0,.15); }
.tgc-scores-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 32px 40px; text-align: center; color: #fff;
}
.tgc-scores-header .tgc-forum-brand { justify-content: center; }
.tgc-podium-wrap { background: var(--tgc-cream); padding: 32px 40px; }
.tgc-podium-title { font-family:'Playfair Display',serif; font-size: 22px; text-align: center; margin-bottom: 28px; color: var(--tgc-dark); }
.tgc-podium { display: flex; align-items: flex-end; justify-content: center; gap: 16px; }

.tgc-podium-card {
  flex: 1; max-width: 240px; border-radius: 16px; padding: 20px 16px 24px; text-align: center;
  border: 2px solid var(--tgc-border); background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.tgc-podium-card.first  { order: 2; transform: scale(1.08); border-color: var(--tgc-gold); background: linear-gradient(180deg, #fffbf0 0%, #fff 100%); box-shadow: 0 8px 32px rgba(200,150,12,.2); }
.tgc-podium-card.second { order: 1; }
.tgc-podium-card.third  { order: 3; }

.tgc-podium-medal { font-size: 44px; margin-bottom: 10px; }
.tgc-podium-photo {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px;
  border: 3px solid var(--tgc-gold); display: block;
}
.tgc-podium-photo-ph { width:72px;height:72px;border-radius:50%;background:#f0f0f0;margin:0 auto 10px;display:flex;align-items:center;justify-content:center;font-size:32px; }
.tgc-podium-name  { font-weight: 800; font-size: 15px; color: var(--tgc-dark); }
.tgc-podium-dept  { font-size: 12px; color: var(--tgc-muted); margin-bottom: 12px; }
.tgc-podium-score { font-size: 28px; font-weight: 900; color: var(--tgc-green); line-height: 1; }
.tgc-podium-pct   { font-size: 13px; color: var(--tgc-muted); }
.tgc-podium-bar   { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--tgc-green), var(--tgc-gold)); margin: 10px auto 0; border-radius: 3px; }

/* Full scores table */
.tgc-scores-body { background: #fff; padding: 28px 40px; }
.tgc-scores-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.tgc-scores-table-title { font-family:'Playfair Display',serif; font-size: 20px; margin: 0; }
.tgc-scores-search { padding: 10px 14px; border: 2px solid var(--tgc-border); border-radius: 10px; font-size: 14px; font-family: 'DM Sans', sans-serif; outline: none; width: 260px; transition: border .2s; }
.tgc-scores-search:focus { border-color: var(--tgc-green); }

.tgc-rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; font-weight: 800; font-size: 13px;
  background: var(--tgc-light); color: var(--tgc-muted);
}
.tgc-rank-badge.r1 { background: #FFD700; color: #5a3e00; }
.tgc-rank-badge.r2 { background: #C0C0C0; color: #333; }
.tgc-rank-badge.r3 { background: #CD7F32; color: #fff; }

.tgc-scores-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.tgc-page-btn { padding: 7px 13px; border: 2px solid var(--tgc-border); background: #fff; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; transition: all .2s; }
.tgc-page-btn:hover  { border-color: var(--tgc-green); color: var(--tgc-green); }
.tgc-page-btn.active { background: var(--tgc-green); color: #fff; border-color: var(--tgc-green); }

@media(max-width:600px){
  .tgc-podium { flex-direction: column; align-items: center; }
  .tgc-podium-card.first  { transform: none; order: 0; }
  .tgc-podium-card.second { order: 1; }
  .tgc-podium-card.third  { order: 2; }
  .tgc-scores-body { padding: 20px; }
  .tgc-podium-wrap { padding: 24px 20px; }
}

/* Admin quiz tabs */
.tgc-quiz-tabs { display:flex; gap:4px; margin-bottom:20px; flex-wrap:wrap; }
.tgc-quiz-tab-btn { padding:10px 20px; border:2px solid var(--tgc-border); background:#fff; border-radius:8px; cursor:pointer; font-size:13px; font-weight:600; color:#666; transition:all .2s; }
.tgc-quiz-tab-btn:hover  { border-color:var(--tgc-green); color:var(--tgc-green); }
.tgc-quiz-tab-btn.active { background:var(--tgc-green); color:#fff; border-color:var(--tgc-green); }
