/* =============================================================================
   CryptoGames.gg Design System
   Phase 6 — Plugin stylesheet (scoped to CPT pages only)
   Source of truth: .planning/phases/06-redesign/06-UI-SPEC.md
   ============================================================================= */

/* Section 1 — Google Fonts imports */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

/* Section 2 — CSS custom properties */
:root {
  /* Surface hierarchy */
  --color-surface: #131314;
  --color-surface-dim: #131314;
  --color-surface-container-lowest: #0e0e0f;
  --color-surface-container-low: #1c1b1c;
  --color-surface-container: #201f20;
  --color-surface-container-high: #2a2a2b;
  --color-surface-container-highest: #353436;
  --color-surface-variant: #353436;
  --color-surface-bright: #3a393a;
  --color-background: #131314;
  /* Borders */
  --color-outline: #849495;
  --color-outline-variant: #3b494b;
  /* Text */
  --color-on-surface: #e5e2e3;
  --color-on-surface-variant: #b9cacb;
  --color-on-primary-container: #006970;
  --color-on-tertiary-container: #506600;
  --color-on-secondary-container: #480063;
  /* Accents */
  --color-primary-container: #00f0ff;
  --color-primary-fixed-dim: #00dbe9;
  --color-primary-fixed: #7df4ff;
  --color-primary: #dbfcff;
  --color-secondary-container: #cf5cff;
  --color-secondary-fixed-dim: #ecb2ff;
  --color-secondary: #ecb2ff;
  --color-tertiary-container: #bbea00;
  --color-tertiary-fixed-dim: #abd600;
  --color-tertiary: #e9ffa8;
  /* Semantic */
  --color-error: #ffb4ab;
  --color-error-container: #93000a;
  /* Typography */
  --font-headline: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-label: 'Inter', sans-serif;
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
}

/* Section 3 — Base reset and body */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--color-background); color: var(--color-on-surface); font-family: var(--font-body); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; vertical-align: middle; }

/* Section 4 — Page layout shell */
.cg-layout { min-height: 100vh; background: var(--color-background); }
.cg-main { margin-left: 256px; padding-top: 64px; min-height: 100vh; background: var(--color-background); }

/* Top nav */
.cg-top-nav {
  position: fixed; top: 0; width: 100%; z-index: 50;
  height: 64px; background: #131314;
  box-shadow: 0 0 20px rgba(0,240,255,0.08);
  font-family: var(--font-headline);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
}
.cg-nav-logo { font-size: 24px; font-weight: 700; letter-spacing: -0.05em; color: #00dbe9; }
.cg-nav-links { display: flex; align-items: center; gap: 32px; }
.cg-nav-link { color: #b9cacb; font-size: 14px; transition: color 150ms ease; }
.cg-nav-link:hover { color: #e5e2e3; }
.cg-nav-link.active { color: #00dbe9; border-bottom: 2px solid #00dbe9; padding-bottom: 4px; }
.cg-nav-icon-btn { padding: 8px; border-radius: 9999px; background: transparent; border: none; cursor: pointer; color: #b9cacb; }
.cg-nav-icon-btn:hover { background: rgba(58,57,58,0.4); backdrop-filter: blur(24px); }
.cg-nav-actions { display: flex; align-items: center; gap: 8px; }

/* Sidebar */
.cg-sidebar {
  width: 256px; position: fixed; left: 0; top: 64px;
  background: #1c1b1c; display: flex; flex-direction: column;
  padding: 24px 0; gap: 4px; z-index: 40;
  font-family: var(--font-headline); font-size: 14px;
  letter-spacing: 0.025em; height: calc(100vh - 64px);
  overflow-y: auto;
}
.cg-sidebar-section-label {
  padding: 8px 24px 4px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: #849495;
}
.cg-sidebar-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px; color: #b9cacb; opacity: 0.8;
  transition: all 300ms ease; text-decoration: none;
  border-left: 4px solid transparent;
}
.cg-sidebar-nav-item:hover {
  background: #201f20; color: #e5e2e3; opacity: 1;
  transform: translateX(4px);
}
.cg-sidebar-nav-item.active {
  background: linear-gradient(to right, rgba(0,240,255,0.1), transparent);
  border-left: 4px solid #00dbe9; color: #00dbe9;
  font-weight: 700; opacity: 1;
  box-shadow: inset 0 0 10px rgba(0,240,255,0.1);
}
.cg-sidebar-play-btn {
  width: calc(100% - 48px); margin: 0 24px;
  background: #2a2a2b; color: #00dbe9;
  border: 1px solid rgba(59,73,75,0.2); border-radius: 2px;
  font-weight: 700; padding: 12px 24px; font-family: var(--font-headline);
  font-size: 14px; cursor: pointer; text-align: center; display: block;
}
.cg-sidebar-footer { margin-top: auto; padding: 16px 0; border-top: 1px solid rgba(59,73,75,0.1); }

/* Section 5 — Buttons */
.cg-cta-primary {
  background: linear-gradient(to right, #00f0ff, #00dbe9);
  color: #006970; font-weight: 700; border-radius: 2px;
  box-shadow: 0 0 15px rgba(0,219,233,0.3);
  transition: all 150ms ease; border: none; cursor: pointer;
  padding: 12px 24px; font-family: var(--font-headline); font-size: 14px;
  display: inline-block; text-align: center;
}
.cg-cta-primary:active { transform: scale(0.95); }
.cg-btn-ghost {
  background: #201f20; border: 1px solid rgba(59,73,75,0.2);
  color: #e5e2e3; border-radius: 2px; padding: 12px 24px;
  font-family: var(--font-headline); font-size: 14px; cursor: pointer;
  transition: background 150ms ease;
}
.cg-btn-ghost:hover { background: #2a2a2b; }
.cg-btn-ghost-cyan {
  background: rgba(0,240,255,0.1); border: 1px solid rgba(0,240,255,0.2);
  color: #00f0ff; border-radius: 2px; font-weight: 700;
  padding: 12px 24px; font-family: var(--font-headline); font-size: 14px;
  cursor: pointer; transition: all 150ms ease;
}
.cg-btn-ghost-cyan:hover { background: #00f0ff; color: #006970; }
.cg-fab {
  position: fixed; bottom: 32px; right: 32px;
  width: 56px; height: 56px; border-radius: 9999px;
  background: linear-gradient(135deg, #00f0ff, #00dbe9);
  color: #006970; border: none; cursor: pointer; z-index: 60;
  box-shadow: 0 8px 32px rgba(0,219,233,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; transition: all 150ms ease;
}
.cg-fab:hover { transform: scale(1.1); }
.cg-fab:active { transform: scale(0.9); }

/* View toggle pills */
.cg-view-toggle { background: #1c1b1c; padding: 4px; border-radius: 8px; display: inline-flex; }
.cg-view-toggle-active { padding: 6px 16px; background: #201f20; color: #00dbe9; border-radius: 6px; }
.cg-view-toggle-inactive { padding: 6px 16px; color: #b9cacb; cursor: pointer; }
.cg-view-toggle-inactive:hover { color: #e5e2e3; }

/* Section 6 — Cards and containers */
.cg-card {
  background: #201f20; border-radius: 8px;
  border: 1px solid rgba(59,73,75,0.1);
  transition: all 300ms ease;
}
.cg-card:hover { border-color: rgba(0,219,233,0.3); background: #2a2a2b; }
.cg-card-low { background: #1c1b1c; border-radius: 8px; border: 1px solid rgba(59,73,75,0.1); }
.cg-metric-card {
  background: #1c1b1c; padding: 24px; border-radius: 8px;
  border: 1px solid rgba(59,73,75,0.1);
}
.cg-metric-label { font-family: var(--font-label); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #b9cacb; margin-bottom: 4px; }
.cg-metric-value { font-family: var(--font-headline); font-size: 30px; font-weight: 700; color: #e5e2e3; }
.cg-metric-delta-pos { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: #bbea00; }
.cg-metric-delta-neg { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: #ffb4ab; }
.cg-glass-panel, .cg-glass-card {
  background: rgba(58,57,58,0.4); backdrop-filter: blur(24px);
}
.cg-neon-glow:hover { box-shadow: 0 0 15px rgba(0,219,233,0.2); }

/* Event card */
.cg-event-card {
  display: flex; flex-direction: column;
  background: #1c1b1c; border-radius: 8px; padding: 16px; gap: 24px;
  border: 1px solid transparent; transition: all 150ms ease;
}
.cg-event-card:hover { border-color: rgba(0,240,255,0.2); background: #2a2a2b; }
@media (min-width: 768px) { .cg-event-card { flex-direction: row; } }
.cg-event-card-image {
  width: 100%; height: 128px; border-radius: 8px; object-fit: cover;
  transition: transform 500ms ease;
}
@media (min-width: 768px) { .cg-event-card-image { width: 192px; } }
.cg-event-card:hover .cg-event-card-image { transform: scale(1.05); }
.cg-event-countdown { font-family: var(--font-headline); font-size: 18px; font-weight: 700; color: #00dbe9; }

/* Guild card */
.cg-guild-card {
  display: flex; flex-direction: column;
  background: #201f20; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(59,73,75,0.1); transition: all 300ms ease;
}
.cg-guild-card:hover { border-color: rgba(0,219,233,0.3); background: #2a2a2b; }
.cg-guild-card-banner { height: 128px; overflow: hidden; }
.cg-guild-card-banner img { opacity: 0.5; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.cg-guild-card:hover .cg-guild-card-banner img { transform: scale(1.05); }
.cg-guild-logo { width: 48px; height: 48px; border-radius: 8px; background: #131314; border: 2px solid #00dbe9; }
.cg-guild-card-body { padding: 24px; }
.cg-guild-stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: -0.025em; color: #b9cacb; }
.cg-guild-stat-value { font-size: 14px; font-weight: 700; }
.cg-guild-tag { padding: 4px 8px; background: #0e0e0f; border-radius: 2px; font-size: 10px; border: 1px solid rgba(59,73,75,0.2); }

/* Investor card */
.cg-investor-card {
  display: block; background: #201f20; border-radius: 8px; padding: 24px;
  border: 1px solid rgba(59,73,75,0.05); transition: all 150ms ease;
}
.cg-investor-card:hover { border-color: rgba(0,219,233,0.3); transform: translateY(-4px); }
.cg-investor-logo { width: 64px; height: 64px; border-radius: 8px; background: #2a2a2b; }
.cg-investor-role { color: #cf5cff; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.cg-investor-series { color: #bbea00; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.cg-investor-footer { border-top: 1px solid rgba(59,73,75,0.1); padding-top: 16px; margin-top: 16px; display: flex; justify-content: space-between; align-items: center; }

/* Section 7 — Data table */
.cg-data-table-wrap {
  background: #201f20; border-radius: 16px;
  border: 1px solid rgba(59,73,75,0.15); overflow: hidden;
}
.cg-data-table-header { padding: 24px; border-bottom: 1px solid rgba(59,73,75,0.1); display: flex; justify-content: space-between; align-items: center; }
.cg-data-table-header-title { font-family: var(--font-headline); font-size: 20px; font-weight: 700; }
.cg-data-table-action { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #00f0ff; }
.cg-data-table-action:hover { text-decoration: underline; }
.cg-data-table { width: 100%; border-collapse: collapse; }
.cg-data-table thead { background: rgba(28,27,28,0.5); }
.cg-data-table th { padding: 16px 24px; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: #b9cacb; text-align: left; }
.cg-data-table td { padding: 16px 24px; border-top: 1px solid rgba(59,73,75,0.05); font-size: 14px; }
.cg-data-table tbody tr:hover { background: rgba(58,57,58,0.05); }

/* Section 8 — Badges and status chips */
.cg-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 2px 8px; border-radius: 2px;
}
.cg-badge-live { background: #bbea00; color: #506600; }
.cg-badge-upcoming { background: #cf5cff; color: #480063; }
.cg-badge-past { background: #353436; color: #b9cacb; opacity: 0.8; filter: grayscale(0.5); }
.cg-badge-rank { background: #353436; color: #b9cacb; }
.cg-badge-platinum { background: rgba(0,240,255,0.1); color: #00dbe9; border: 1px solid rgba(0,219,233,0.2); }
.cg-chip-platform {
  display: inline-block; padding: 4px 12px; border-radius: 9999px;
  background: rgba(0,240,255,0.2); color: #00dbe9;
  border: 1px solid rgba(0,240,255,0.3); font-size: 12px; font-weight: 700;
}
.cg-badge-tier {
  display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 2px 8px; border-radius: 2px;
  background: rgba(0,240,255,0.1); color: #00dbe9; border: 1px solid rgba(0,219,233,0.2);
}
.cg-badge-hot { background: #bbea00; color: #506600; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 2px; }
.cg-delta-pos { font-size: 14px; font-weight: 700; color: #bbea00; }
.cg-delta-neg { font-size: 14px; font-weight: 700; color: #ffb4ab; }
.cg-confidence-high { color: #bbea00; }
.cg-confidence-medium { color: #cf5cff; }
.cg-confidence-low { color: #ffb4ab; }

/* Section 9 — Hero sections */
.cg-hero {
  position: relative; width: 100%; overflow: hidden;
}
.cg-hero-game { height: 500px; }
.cg-hero-event, .cg-hero-token, .cg-hero-calendar { height: 256px; }
.cg-hero-guild { height: 300px; }
.cg-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, #131314, rgba(19,19,20,0.4), transparent);
}
.cg-hero-overlay-side {
  position: absolute; inset: 0;
  background: linear-gradient(to right, #131314, rgba(19,19,20,0.8), transparent);
}
.cg-hero-content { position: absolute; bottom: 32px; left: 32px; right: 32px; }
.cg-hero-game-logo {
  width: 128px; height: 128px; border-radius: 8px;
  border: 4px solid #131314; background: #201f20; object-fit: cover;
}
@media (min-width: 768px) {
  .cg-hero-game-logo { width: 176px; height: 176px; }
}
.cg-hero-title {
  font-family: var(--font-headline); font-size: 48px; font-weight: 800;
  letter-spacing: -0.05em; color: #e5e2e3; line-height: 1.1;
}
@media (min-width: 768px) { .cg-hero-title { font-size: 72px; } }
.cg-quick-stats-bar {
  padding: 32px; border-top: 1px solid rgba(59,73,75,0.1);
  border-bottom: 1px solid rgba(59,73,75,0.1); background: #1c1b1c;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
@media (min-width: 768px) { .cg-quick-stats-bar { grid-template-columns: repeat(4, 1fr); } }
.cg-quick-stat-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #b9cacb; }
.cg-quick-stat-value { font-family: var(--font-headline); font-size: 20px; font-weight: 700; color: #e5e2e3; margin-top: 4px; }

/* Section 10 — Review score card */
.cg-review-score-card {
  background: #1c1b1c; padding: 32px; border-radius: 8px;
  border: 1px solid rgba(59,73,75,0.05);
}
.cg-score-display {
  font-family: var(--font-headline); font-size: 96px; font-weight: 800;
  color: #00dbe9; letter-spacing: -0.05em; line-height: 1;
}
.cg-score-label { color: #b9cacb; font-size: 14px; margin-top: 4px; }
.cg-rating-bar-track { height: 6px; background: #0e0e0f; border-radius: 9999px; overflow: hidden; margin: 4px 0; }
.cg-rating-bar-fill { height: 100%; background: #7df4ff; border-radius: 9999px; }
.cg-rating-bar-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.025em; color: #b9cacb; }

/* Section 11 — Pros/Cons block */
.cg-pros-block {
  background: rgba(187,234,0,0.05); border-left: 4px solid #bbea00;
  padding: 24px; border-radius: 0 8px 8px 0;
}
.cg-pros-heading { color: #bbea00; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cg-cons-block {
  background: rgba(147,0,10,0.05); border-left: 4px solid #ffb4ab;
  padding: 24px; border-radius: 0 8px 8px 0;
}
.cg-cons-heading { color: #ffb4ab; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }

/* Section 12 — Tab navigation */
.cg-tab-nav {
  position: sticky; top: 64px; z-index: 30;
  padding: 0 32px; background: #131314;
  border-bottom: 1px solid rgba(59,73,75,0.1);
  display: flex; gap: 32px;
}
.cg-tab-nav a { padding: 16px 0; font-size: 14px; font-weight: 500; color: #b9cacb; display: block; }
.cg-tab-nav a:hover { color: #e5e2e3; transition: color 150ms; }
.cg-tab-nav a.active { color: #00f0ff; font-weight: 700; border-bottom: 2px solid #00f0ff; }

/* Section 13 — Form/input patterns */
.cg-search-input {
  background: #0e0e0f; border: none;
  box-shadow: 0 0 0 1px rgba(59,73,75,0.3);
  border-radius: 9999px; padding: 12px 24px 12px 40px;
  color: #e5e2e3; font-family: var(--font-body); font-size: 14px;
  width: 100%;
}
.cg-search-input:focus { outline: none; box-shadow: 0 0 0 2px #00dbe9; }
.cg-filter-btn {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px;
  background: #201f20; border: 1px solid rgba(59,73,75,0.1);
  border-radius: 2px; font-size: 14px; cursor: pointer; color: #e5e2e3;
}
.cg-filter-btn:hover { border-color: rgba(0,240,255,0.3); }
.cg-filter-btn-label { font-size: 12px; text-transform: uppercase; color: #b9cacb; }

/* Section 14 — Data visualisation bars */
.cg-bar-track { width: 100%; background: #0e0e0f; height: 8px; border-radius: 9999px; overflow: hidden; }
.cg-bar-fill-cyan { background: #00f0ff; height: 100%; }
.cg-bar-fill-lime { background: #bbea00; height: 100%; }
.cg-bar-fill-purple { background: #cf5cff; height: 100%; }
.cg-bar-fill-error { background: #ffb4ab; height: 100%; }
.cg-sentiment-track { width: 100%; background: #353436; height: 8px; border-radius: 9999px; overflow: hidden; display: flex; }
.cg-sentiment-pos { background: #abd600; }
.cg-sentiment-neg { background: #ffb4ab; }

/* Bar chart (simulated flex bars) */
.cg-bar-chart-wrap { display: flex; align-items: flex-end; gap: 8px; }
.cg-bar { flex: 1; background: #1c1b1c; border-radius: 2px 2px 0 0; position: relative; }
.cg-bar.active { background: rgba(207,92,255,0.4); }
.cg-bar-hover-overlay { position: absolute; inset: 0; background: #cf5cff; opacity: 0.2; }
.cg-bar:hover .cg-bar-hover-overlay { opacity: 0.4; }

/* Section 15 — Grids */
.cg-metrics-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .cg-metrics-grid { grid-template-columns: repeat(4, 1fr); } }
.cg-cards-grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .cg-cards-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.cg-cards-grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .cg-cards-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .cg-cards-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.cg-cards-grid-4 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .cg-cards-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cg-cards-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.cg-content-area { padding: 32px; max-width: 1400px; margin: 0 auto; }

/* Section 16 — Scrollbar and utility */
.cg-custom-scrollbar::-webkit-scrollbar { width: 4px; }
.cg-custom-scrollbar::-webkit-scrollbar-track { background: #131314; }
.cg-custom-scrollbar::-webkit-scrollbar-thumb { background: #3b494b; }
.cg-section-heading { font-family: var(--font-headline); font-size: 30px; font-weight: 700; color: #e5e2e3; margin-bottom: 24px; }
.cg-muted { color: #b9cacb; }
.cg-accent-text { color: #00dbe9; }
.cg-error-state { color: #b9cacb; font-size: 14px; font-style: italic; }

/* Community thread article */
.cg-thread-article {
  background: #1c1b1c; border-radius: 8px; padding: 24px;
  border-left: 2px solid transparent;
}
.cg-thread-article.active { border-left-color: #00dbe9; }
.cg-thread-article:hover { background: rgba(28,27,28,0.8); }
.cg-thread-avatar { width: 48px; height: 48px; border-radius: 9999px; }
.cg-thread-avatar.active { box-shadow: 0 0 0 2px rgba(0,240,255,0.2); }
.cg-thread-username { font-weight: 700; color: #e5e2e3; }
.cg-thread-timestamp { font-size: 12px; color: rgba(185,202,203,0.6); }
.cg-thread-badge { background: rgba(207,92,255,0.1); color: #ecb2ff; font-size: 10px; text-transform: uppercase; padding: 2px 6px; border-radius: 2px; }
.cg-reply-indent { padding-left: 32px; border-left: 1px solid rgba(59,73,75,0.2); }
.cg-reply-avatar { width: 32px; height: 32px; border-radius: 9999px; }

/* Pagination */
.cg-pagination { display: flex; align-items: center; gap: 8px; }
.cg-pagination-btn { padding: 8px 12px; border-radius: 2px; font-size: 14px; cursor: pointer; border: none; transition: all 150ms ease; }
.cg-pagination-btn.active { background: #00f0ff; color: #006970; font-weight: 700; }
.cg-pagination-btn.inactive { color: #b9cacb; background: transparent; }
.cg-pagination-btn.inactive:hover { color: #e5e2e3; }

/* Investment thesis blockquote */
.cg-thesis { border-left: 4px solid #00dbe9; padding-left: 24px; font-style: italic; color: #b9cacb; font-size: 18px; }

/* Responsive: collapse sidebar below lg */
@media (max-width: 1023px) {
  .cg-sidebar { display: none; }
  .cg-main { margin-left: 0; }
}

/* === Phase 8: Submit Form (EXT-02) === */
.cg-submit-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 32px;
}
.cg-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 767px) {
  .cg-form-grid { grid-template-columns: 1fr; }
}
.cg-form-label {
  display: block;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #b9cacb;
  margin-bottom: 8px;
}
.cg-form-input {
  width: 100%;
  height: 48px;
  background: #0e0e0f !important;
  border: 1px solid rgba(59,73,75,0.2) !important;
  border-radius: 4px;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 0 16px;
  box-sizing: border-box;
  transition: border-color 150ms ease;
  color-scheme: dark;
}
.cg-form-input:-webkit-autofill,
.cg-form-input:-webkit-autofill:hover,
.cg-form-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0 1000px #0e0e0f inset !important;
  box-shadow: 0 0 0 1000px #0e0e0f inset !important;
}
.cg-form-input option {
  background: #0e0e0f;
  color: #ffffff;
}
.cg-form-input:focus {
  outline: none;
  border-color: #00dbe9;
  box-shadow: 0 0 0 2px rgba(0,219,233,0.15);
}
.cg-form-input.error {
  border-color: #ffb4ab;
}
.cg-form-textarea {
  height: auto;
  min-height: 120px;
  padding: 12px 16px;
  resize: vertical;
}
.cg-form-error {
  font-size: 12px;
  font-weight: 700;
  color: #ffb4ab;
  margin-top: 4px;
}
.cg-form-upload {
  border: 2px dashed rgba(59,73,75,0.4);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 150ms ease;
}
.cg-form-upload:hover {
  border-color: #00dbe9;
}
.cg-form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(59,73,75,0.1);
}
@media (max-width: 767px) {
  .cg-submit-content { padding: 24px 16px; }
  .cg-form-footer {
    flex-direction: column;
  }
  .cg-form-footer button { width: 100%; }
}
.cg-submit-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #b9cacb;
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 4px 12px;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}
.cg-submit-tab:hover { color: #e5e2e3; }
.cg-submit-tab.active {
  color: #00dbe9;
  border-bottom-color: #00dbe9;
}
