/* ==========================================================================
   NEXTPROXY ENTERPRISE DEVELOPER CONSOLE — Master Design System
   Sleek, High-Performance Monochrome & Emerald Aesthetic (Stripe / GitHub Grade)
   ========================================================================== */

:root {
  --bg-app: #090d16;
  --bg-sidebar: #0d121f;
  --bg-topbar: rgba(13, 18, 31, 0.88);
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(26, 36, 56, 0.85);
  --bg-input: rgba(10, 15, 26, 0.9);
  --bg-elevated: #161f33;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-focus: rgba(255, 255, 255, 0.3);

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-muted: #475569;

  --brand-primary: #ffffff;
  --brand-primary-text: #000000;
  --accent-emerald: #10b981;
  --accent-emerald-dark: #059669;
  --accent-blue: #3b82f6;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --sidebar-w: 260px;
  --topbar-h: 64px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;
}

html.light {
  --bg-app: #f8fafc;
  --bg-sidebar: #ffffff;
  --bg-topbar: rgba(255, 255, 255, 0.92);
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #f8fafc;
  --bg-elevated: #f1f5f9;

  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-focus: #0f172a;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;

  --brand-primary: #0f172a;
  --brand-primary-text: #ffffff;
  --accent-emerald: #059669;
  --accent-emerald-dark: #047857;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* APP SHELL LAYOUT */
.console-app {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  position: relative;
}

/* SIDEBAR */
.console-sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), width 0.25s ease;
}

.sidebar-brand {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-color);
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-dark {
  display: block;
  height: 22px;
  width: auto;
}

.logo-light {
  display: none;
  height: 22px;
  width: auto;
}

html.light .logo-dark {
  display: none;
}

html.light .logo-light {
  display: block;
}

.brand-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  text-transform: uppercase;
}

html.light .brand-tag {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #e2e8f0;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  padding: 12px 10px 6px;
}

.nav-tab-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  user-select: none;
}

.nav-tab-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.nav-tab-item.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 600;
}

html.light .nav-tab-item.active {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #0f172a;
}

.nav-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: var(--text-tertiary);
}

.nav-tab-item.active .nav-tab-icon {
  color: var(--text-primary);
}

.nav-badge-pill {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.nav-badge-pill.pill-pro {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.3);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.08);
}

.sidebar-plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
}

.sidebar-plan-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.sidebar-plan-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.sidebar-plan-upgrade {
  font-size: 11px;
  color: var(--accent-emerald);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

html.light .sidebar-plan-upgrade {
  color: #059669;
}

.sidebar-credit-mini {
  font-size: 11.5px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.mini-bar-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

html.light .mini-bar-track {
  background: #e2e8f0;
}

.mini-bar-fill {
  height: 100%;
  background: var(--accent-emerald);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* MAIN CONTENT AREA */
.console-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: calc(100vw - var(--sidebar-w));
}

/* TOPBAR */
.console-topbar {
  height: var(--topbar-h);
  background: var(--bg-topbar);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

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

.sidebar-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
}

.topbar-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.env-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  gap: 6px;
}

.env-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

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

.credits-pill-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.credits-pill-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.theme-btn, .top-icon-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s ease;
}

.theme-btn:hover, .top-icon-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
}

.user-avatar-mini {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--brand-primary-text);
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-email-label {
  font-size: 12.5px;
  font-weight: 500;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* VIEW WRAPPER */
.console-view-container {
  flex: 1;
  padding: 28px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.console-view {
  display: none;
  animation: fadeIn 0.18s ease-out;
}

.console-view.active-view {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* VIEW HEADERS */
.view-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.view-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.view-subtitle {
  color: var(--text-secondary);
  font-size: 13.5px;
}

/* CARDS & PANELS */
.dash-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.dash-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.dash-panel-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-panel-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* METRICS GRID */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.metric-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.metric-box:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
}

html.light .metric-box:hover {
  border-color: #cbd5e1;
}

.metric-box-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.metric-box-val {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.metric-box-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* BUTTONS */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-elevated);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.c-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

html.light .c-btn:hover {
  border-color: #cbd5e1;
}

.c-btn-primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-primary-text);
  font-weight: 600;
}

.c-btn-primary:hover {
  opacity: 0.92;
}

.c-btn-emerald {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #ffffff;
  font-weight: 600;
}

.c-btn-emerald:hover {
  background: var(--accent-emerald-dark);
}

.c-btn-sm {
  padding: 5px 11px;
  font-size: 12px;
}

.c-btn-danger {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.25);
  color: #f43f5e;
}

.c-btn-danger:hover {
  background: rgba(244, 63, 94, 0.2);
}

/* KEY DISPLAY BOX */
.key-box-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.key-box-val {
  color: var(--text-primary);
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* DATA TABLES */
.c-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.c-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.c-table th {
  background: var(--bg-elevated);
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
}

.c-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.c-table tr:last-child td {
  border-bottom: none;
}

.c-table tr:hover td {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

/* LIVE API STUDIO / TESTER */
.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.studio-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.studio-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.studio-input, .studio-select, .studio-textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.15s ease;
}

.studio-input:focus, .studio-select:focus, .studio-textarea:focus {
  border-color: var(--border-focus);
}

.studio-response-panel {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px;
}

.studio-res-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
}

.studio-res-body {
  flex: 1;
  padding: 12px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  overflow-y: auto;
  max-height: 440px;
  line-height: 1.5;
}

/* GIFT REDEMPTION PORTAL */
.gift-hero-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
}

.gift-input-row {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 18px auto 0;
}

.gift-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-align: center;
  outline: none;
}

.gift-input:focus {
  border-color: var(--border-focus);
}

/* MODALS */
.c-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.c-modal-overlay.open {
  display: flex;
}

.c-modal {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: modalScale 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.c-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 16px;
  cursor: pointer;
}

.c-modal-close:hover {
  color: var(--text-primary);
}

/* CODE BLOCKS */
.code-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.code-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
  font-family: var(--font-mono);
}

.code-box-pre {
  padding: 12px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  overflow-x: auto;
  line-height: 1.5;
}

/* CHIPS & BADGES */
.c-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.c-chip-live {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.c-chip-pro {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.c-chip-free {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* USER PROFILE DROPDOWN */
.user-profile-menu-container {
  position: relative;
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.user-profile-menu:hover {
  border-color: var(--border-focus);
  background: var(--bg-card);
}

.user-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 1050;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: modalScale 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-profile-dropdown.open {
  display: flex;
}

.profile-dropdown-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}

.dropdown-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.dropdown-user-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.dropdown-user-email {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-user-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-emerald);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-dropdown-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-color);
}

.dropdown-stat-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-stat-label {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
}

.dropdown-stat-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-dropdown-menu-list {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.dropdown-menu-item:hover {
  background: var(--bg-elevated);
  color: var(--accent-emerald);
}

.dropdown-menu-item.text-danger {
  color: #f87171;
}

.dropdown-menu-item.text-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .studio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .console-sidebar {
    transform: translateX(-100%);
  }
  .console-sidebar.mobile-open {
    transform: translateX(0);
  }
  .console-main {
    margin-left: 0;
    width: 100vw;
  }
  .sidebar-toggle-btn {
    display: block;
  }
  .metrics-row {
    grid-template-columns: 1fr;
  }
  .topbar-right .env-pill {
    display: none;
  }
}
