:root {
  --bg: #07090e;
  --surface: #0e121a;
  --surface-hover: #161c28;
  --border: #1e2638;
  --border-light: #2d3748;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --primary: #38bdf8;
  --accent: #818cf8;
  --success: #34d399;
  --danger: #f87171;
  --sidebar-w: 280px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
}
.sidebar-header {
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #07090e;
  font-size: 14px;
}
.brand-name {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 10px;
  color: var(--text-muted);
  font-family: monospace;
}
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 8px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  transition: all 0.15s ease;
}
.nav-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}
.nav-btn.active {
  background: rgba(56, 189, 248, 0.12);
  color: var(--primary);
  border-color: rgba(56, 189, 248, 0.3);
}
.nav-icon {
  font-size: 15px;
  flex-shrink: 0;
}
.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #05070a;
}
.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #07090e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
}
.logout-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  padding: 4px;
}
.logout-btn:hover {
  color: var(--danger);
}
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1400px;
}
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}
.card:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
}
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.card-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  font-family: monospace;
  background: rgba(56, 189, 248, 0.12);
  color: var(--primary);
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.card-action {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
}
.card-action:hover {
  text-decoration: underline;
}
.gate-wrapper {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #030508;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gate-box {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}
.gate-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--danger);
}
.gate-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}
.gate-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.google-btn {
  width: 100%;
  padding: 12px 18px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  color: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.15s ease;
}
.google-btn:hover {
  background: #334155;
}
.error-msg {
  margin-top: 14px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fca5a5;
  font-size: 11.5px;
}
.lang-pill {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.15s ease;
}
.lang-pill:hover {
  background: #1e2638;
  color: var(--text);
}
.lang-pill.active {
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary);
  border-color: rgba(56, 189, 248, 0.3);
}
