/* Vagibond Developers - Shared Styles */

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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --maps-primary: #1a73e8;
  --maps-primary-dark: #1557b0;
  --gutter-primary: #ffd030;
  --bindle-primary: #8b7355;
  --vagibeats-primary: #ff00ff;
  --asshology-primary: #9d4edd;
  --secondary: #5f6368;
  --success: #34a853;
  --warning: #fbbc04;
  --danger: #ea4335;
  --dark: #111827;
  --light: #f9fafb;
  --gray: #6b7280;
  --border: #e5e7eb;
  --code-bg: #1e1e1e;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: white;
  padding-top: 0 !important;
}

/* Header */
.dev-header {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--dark);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dev-header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.dev-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.dev-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dev-logo-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.dev-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.dev-logo-text span {
  color: var(--primary);
}

/* Mobile Hamburger */
.mobile-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mobile-hamburger svg {
  width: 28px;
  height: 28px;
}

.mobile-hamburger .close-icon {
  display: none;
}

.mobile-hamburger.active .hamburger-icon {
  display: none;
}

.mobile-hamburger.active .close-icon {
  display: block;
}

/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.mobile-sidebar-overlay.open {
  display: block;
}

/* API Picker Dropdown (Sidebar) */
.api-picker {
  margin: 0 16px 24px 16px;
  position: relative;
}

.api-picker-btn {
  width: 100%;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}

.api-picker-btn:hover {
  border-color: var(--sidebar-accent, var(--maps-primary));
}

.api-picker-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
}

.api-picker-icon.maps {
  background: linear-gradient(135deg, #ea4335 25%, #fbbc04 25%, #fbbc04 50%, #34a853 50%, #34a853 75%, #1a73e8 75%);
}

.api-picker-icon.gutter {
  background: linear-gradient(135deg, #ffd030, #ffb800);
}

.api-picker-icon.bindle {
  background: linear-gradient(135deg, #8b7355, #6b5344);
}

.api-picker-icon.gruntslate {
  background: linear-gradient(135deg, #4361ee, #7209b7);
}

.api-picker-icon.vagibeats {
  background: linear-gradient(135deg, #ff00ff, #00ffff);
}

.api-picker-icon.asshology {
  background: linear-gradient(135deg, #9d4edd, #e0aaff);
}

.api-picker-icon.holeofglory {
  background: linear-gradient(135deg, #4a1c6b, #d4af37);
}

.api-picker-icon.cunilingo {
  background: linear-gradient(135deg, #58CC02, #FFC800);
}

.api-picker-icon.terminal {
  background: linear-gradient(135deg, #1a1a1a, #dc2626);
}

.api-picker-icon.enableme {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.api-picker-icon.home {
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.api-picker-icon.home svg {
  width: 14px;
  height: 14px;
}

.api-picker-icon.dashboard {
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.api-picker-info {
  flex: 1;
  text-align: left;
}

.api-picker-label {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.5px;
}

.api-picker-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
}

.api-picker-chevron {
  width: 20px;
  height: 20px;
  color: var(--gray);
  transition: transform 0.2s;
}

.api-picker.open .api-picker-chevron {
  transform: rotate(180deg);
}

.api-picker-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
  display: none;
  overflow: hidden;
}

.api-picker.open .api-picker-dropdown {
  display: block;
}

.api-picker-option {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.api-picker-option:hover {
  background: var(--light);
}

.api-picker-option-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
}

.api-picker-option-icon.maps {
  background: linear-gradient(135deg, #ea4335 25%, #fbbc04 25%, #fbbc04 50%, #34a853 50%, #34a853 75%, #1a73e8 75%);
}

.api-picker-option-icon.gutter {
  background: linear-gradient(135deg, #ffd030, #ffb800);
}

.api-picker-option-icon.bindle {
  background: linear-gradient(135deg, #8b7355, #6b5344);
}

.api-picker-option-icon.gruntslate {
  background: linear-gradient(135deg, #4361ee, #7209b7);
}

.api-picker-option-icon.vagibeats {
  background: linear-gradient(135deg, #ff00ff, #00ffff);
}

.api-picker-option-icon.asshology {
  background: linear-gradient(135deg, #9d4edd, #e0aaff);
}

.api-picker-option-icon.holeofglory {
  background: linear-gradient(135deg, #4a1c6b, #d4af37);
}

.api-picker-option-icon.cunilingo {
  background: linear-gradient(135deg, #58CC02, #FFC800);
}

.api-picker-option-icon.enableme {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.api-picker-option-icon.terminal {
  background: linear-gradient(135deg, #1a1a1a, #dc2626);
}

.api-picker-option-icon.home {
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.api-picker-option-icon.home svg {
  width: 12px;
  height: 12px;
}

.api-picker-option-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
}

.api-picker-option-desc {
  font-size: 12px;
  color: var(--gray);
}

.api-picker-option + .api-picker-option {
  border-top: 1px solid var(--border);
}

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

.dev-search {
  position: relative;
}

.dev-search input {
  padding: 8px 12px 8px 36px;
  border: 1px solid #374151;
  border-radius: 6px;
  font-size: 14px;
  width: 200px;
  background: #1f2937;
  color: white;
}

.dev-search input::placeholder {
  color: #6b7280;
}

.api-key-btn {
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.api-key-btn:hover {
  background: var(--primary-dark);
}

.dev-login-btn {
  padding: 8px 16px;
  background: transparent;
  color: #9ca3af;
  border: 1px solid #374151;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.dev-login-btn:hover {
  color: white;
  border-color: #6b7280;
}

.dev-user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.dev-user-menu:hover {
  background: rgba(255,255,255,0.15);
}

.dev-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.dev-user-name {
  color: white;
  font-size: 13px;
  font-weight: 500;
}

footer {
  width: calc(100%-260px);
  justify-items: center;
  margin-left: 260px;
  padding: 0 20px;
}

.api-selector-btn.active[data-api="dashboard"] {
  background: linear-gradient(135deg, #10b981, #059669);
}

/* Dashboard Page Styles */
.dashboard-page {
  display: flex;
  min-height: 100vh;
}

/* Hide main header on desktop - all pages have sidebars */
.dev-header {
  display: none;
}

/* Dashboard Sidebar */
.dashboard-sidebar {
  width: 280px;
  background: var(--light);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 36px;
  bottom: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Dashboard Sidebar Header (logo + search) */
.dashboard-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: white;
}

.dashboard-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 16px;
}

.dashboard-sidebar-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-sidebar-logo-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.dashboard-sidebar-logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.dashboard-sidebar-logo-text span {
  color: var(--primary);
}

.dashboard-sidebar-search {
  position: relative;
}

.dashboard-sidebar-search input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: var(--light);
}

.dashboard-sidebar-search input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}

.dashboard-sidebar-search::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") no-repeat center;
}

.dashboard-sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.dashboard-sidebar-section {
  margin-bottom: 24px;
}

.dashboard-sidebar-title {
  padding: 0 24px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray);
  margin-bottom: 8px;
}

.dashboard-sidebar-links {
  list-style: none;
}

.dashboard-sidebar-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  color: var(--dark);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.dashboard-sidebar-links a:hover {
  background: white;
  color: var(--primary);
}

.dashboard-sidebar-links a.active {
  background: white;
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

.dashboard-sidebar-links svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

/* Sidebar User Profile */
.dashboard-sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: white;
}

.dashboard-sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.dashboard-sidebar-user-details {
  flex: 1;
  min-width: 0;
}

.dashboard-sidebar-user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-sidebar-user-email {
  font-size: 12px;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-sidebar-logout {
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.2s;
}

.dashboard-sidebar-logout:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #ef4444;
}

/* Dashboard Content */
.dashboard-content {
  flex: 1;
  margin-left: 280px;
  padding: 40px;
  max-width: 1200px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.dashboard-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
}

.dashboard-subtitle {
  color: var(--gray);
  margin-top: 4px;
}

.dashboard-actions {
  display: flex;
  gap: 12px;
}

.dashboard-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.dashboard-btn.primary {
  background: var(--primary);
  color: white;
  border: none;
}

.dashboard-btn.secondary {
  background: white;
  color: var(--dark);
  border: 1px solid var(--border);
}

/* Bill Alert Banner */
.bill-alert {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border: 2px solid #ef4444;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.bill-alert-icon {
  width: 56px;
  height: 56px;
  background: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 28px;
}

.bill-alert-content {
  flex: 1;
}

.bill-alert-title {
  font-size: 18px;
  font-weight: 700;
  color: #991b1b;
}

.bill-alert-amount {
  font-size: 42px;
  font-weight: 800;
  color: #ef4444;
  margin: 4px 0;
}

.bill-alert-details {
  color: #7f1d1d;
  font-size: 14px;
}

.bill-alert-action {
  padding: 12px 24px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.bill-alert-action:hover {
  background: #dc2626;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.stat-card-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card-change {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}

.stat-card-change.up {
  background: #d1fae5;
  color: #059669;
}

.stat-card-change.down {
  background: #fee2e2;
  color: #dc2626;
}

.stat-card-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
}

.stat-card-subtext {
  font-size: 13px;
  color: var(--gray);
  margin-top: 4px;
}

/* Charts Grid */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 1024px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.chart-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
}

.chart-card-subtitle {
  font-size: 13px;
  color: var(--gray);
  margin-top: 2px;
}

.chart-legend {
  display: flex;
  gap: 16px;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray);
}

.chart-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.chart-container {
  height: 200px;
  position: relative;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

/* API Usage Breakdown */
.usage-breakdown {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

.usage-breakdown-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 20px;
}

.usage-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.usage-row:last-child {
  border-bottom: none;
}

.usage-api-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.usage-api-icon.maps { background: linear-gradient(135deg, #e8f0fe, #c2e0ff); }
.usage-api-icon.gutter { background: linear-gradient(135deg, #fff8e1, #ffecb3); }
.usage-api-icon.bindle { background: linear-gradient(135deg, #efebe9, #d7ccc8); }

.usage-info {
  flex: 1;
}

.usage-api-name {
  font-weight: 600;
  color: var(--dark);
}

.usage-api-calls {
  font-size: 13px;
  color: var(--gray);
}

.usage-bar-container {
  flex: 2;
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}

.usage-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

.usage-bar.maps { background: var(--maps-primary); }
.usage-bar.gutter { background: #d4a000; }
.usage-bar.bindle { background: var(--bindle-primary); }

.usage-cost {
  width: 100px;
  text-align: right;
  font-weight: 600;
  color: var(--dark);
}

/* Billing Table */
.billing-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.billing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.billing-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
}

.billing-table {
  width: 100%;
  border-collapse: collapse;
}

.billing-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.billing-table td {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

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

.billing-item-name {
  font-weight: 500;
}

.billing-item-desc {
  font-size: 13px;
  color: var(--gray);
}

.billing-total-row td {
  padding-top: 20px;
  font-weight: 700;
  font-size: 18px;
}

/* ===== LANDING PAGE STYLES ===== */
.landing-page {
  display: flex;
}

.landing-page-content {
  flex: 1;
  margin-left: 280px;
}

/* Hero */
.dev-hero {
  position: relative;
  padding: 120px 24px 100px;
  text-align: center;
  overflow: hidden;
  min-height: 400px;  
}

/* Background video/image container */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background: linear-gradient(135deg, var(--dark) 0%, #1f2937 100%);
}

.hero-bg video,
.hero-bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-bg img {
  display: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(17,24,39,0.4) 0%, rgba(31,41,55,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Mobile video wrapper */
.hero-video-mobile-wrapper {
  display: none;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-bottom: 24px;
}

.hero-video-mobile {
  width: 100%;
  display: block;
}

.hero-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.hero-video-play-btn:hover {
  background: rgba(255, 255, 255, 1);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: translate(-50%, -50%) scale(1.1);
}

.hero-video-play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--primary);
  margin-left: 4px;
}

.hero-video-play-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

.dev-hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.dev-hero h1 span {
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dev-hero p {
  font-size: 18px;
  color: #9ca3af;
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.hero-btn {
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.hero-btn.primary {
  background: var(--primary);
  color: white;
}

.hero-btn.primary:hover {
  background: var(--primary-dark);
}

.hero-btn.secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid #374151;
}

.hero-btn.secondary:hover {
  background: rgba(255,255,255,0.15);
}

/* API Grid */
.api-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--gray);
}

.api-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.api-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  background: white;
}

.api-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
  transform: translateY(-4px);
}

.api-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 28px;
}

.api-card-icon.maps {
  background: linear-gradient(135deg, #ea4335 25%, #fbbc04 25%, #fbbc04 50%, #34a853 50%, #34a853 75%, #1a73e8 75%);
}

.api-card-icon.gutter {
  background: linear-gradient(135deg, #ffd030, #ffb800);
}

.api-card-icon.bindle {
  background: linear-gradient(135deg, #8b7355, #6b5344);
}

.api-card-icon.gruntslate {
  background: linear-gradient(135deg, #4361ee, #7209b7);
}

.api-card-icon.vagibeats {
  background: linear-gradient(135deg, #ff00ff, #00ffff);
}

.api-card-icon.asshology {
  background: linear-gradient(135deg, #9d4edd, #e0aaff);
}

.api-card-icon.holeofglory {
  background: linear-gradient(135deg, #4a1c6b, #d4af37);
}

.api-card-icon.cunilingo {
  background: linear-gradient(135deg, #58CC02, #FFC800);
}

.api-card-icon.terminal {
  background: linear-gradient(135deg, #1a1a1a, #dc2626);
}

.api-card-icon.enableme {
  background: linear-gradient(135deg, #1a1a2e, #f4c430);
}

.api-card-icon.zilcho {
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
}

.api-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.api-card p {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.6;
}

.api-card-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.api-stat {
  font-size: 12px;
  color: var(--gray);
}

.api-stat strong {
  color: var(--dark);
}

.api-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.api-card-link:hover {
  text-decoration: underline;
}

.api-card-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.api-card-visit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.api-card-visit:hover {
  color: var(--dark);
  text-decoration: underline;
}

.api-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.api-badge.stable {
  background: #dcfce7;
  color: #166534;
}

.api-badge.beta {
  background: #fef3c7;
  color: #92400e;
}

.api-badge.coming {
  background: #e5e7eb;
  color: #4b5563;
}

.api-badge.new {
  background: #e0e7ff;
  color: #4338ca;
}

/* Code Example */
.code-section {
  background: var(--dark);
  padding: 80px 24px;
}

.code-section .section-header h2 {
  color: white;
}

.code-section .section-header p {
  color: #9ca3af;
}

.code-example {
  max-width: 800px;
  margin: 0 auto;
}

.code-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
}

.code-tab {
  padding: 10px 20px;
  background: #374151;
  border: none;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
}

.code-tab.active {
  background: var(--code-bg);
  color: white;
}

.code-block {
  background: var(--code-bg);
  border-radius: 0 8px 8px 8px;
  overflow: hidden;
}

pre {
  padding: 24px;
  overflow-x: auto;
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #e0e0e0;
}

.code-comment { color: #6a9955; }
.code-string { color: #ce9178; }
.code-keyword { color: #569cd6; }
.code-number { color: #b5cea8; }
.code-property { color: #9cdcfe; }

/* Features */
.features-section {
  padding: 80px 24px;
  background: var(--light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  padding: 24px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.feature-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--gray);
}

/* Vagicon Banner */
.vagicon-banner {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  padding: 16px 24px;
  margin: 32px 24px 32px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.vagicon-banner h3 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.vagicon-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #6366f1;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.vagicon-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media (max-width: 600px) {
  .vagicon-banner {
    flex-direction: column;
    text-align: center;
    margin: 24px 16px 24px;
    padding: 16px 20px;
  }

  .vagicon-banner h3 {
    font-size: 16px;
  }
}

/* CTA */
.cta-section {
  padding: 80px 24px;
  text-align: center;
}

.cta-section h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 24px;
}

/* ===== DOCS PAGE STYLES ===== */
/* Docs Layout */
.docs-layout {
  display: flex;
}

/* Sidebar */
.docs-sidebar {
  width: 280px;
  background: var(--light);
  border-right: 1px solid var(--border);
  padding: 0;
  position: fixed;
  top: 36px;
  bottom: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Docs Sidebar Header (logo + search) */
.docs-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: white;
  flex-shrink: 0;
}

.docs-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 16px;
}

.docs-sidebar-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.docs-sidebar-logo-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.docs-sidebar-logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.docs-sidebar-logo-text span {
  color: var(--primary);
}

.docs-sidebar-search {
  position: relative;
}

.docs-sidebar-search input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: var(--light);
}

.docs-sidebar-search input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}

.docs-sidebar-search::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 13px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") no-repeat center;
  z-index: 1;
}

/* Search Dropdown */
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  margin-top: 4px;
  z-index: 1000;
  display: none;
  max-height: 400px;
  overflow-y: auto;
}

.search-dropdown.open {
  display: block;
}

.search-result-item {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.search-result-item:last-of-type {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--light);
}

.search-result-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
  font-family: 'Fira Code', monospace;
  word-break: break-word;
}

.search-result-desc {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.4;
  font-family: 'Fira Code', monospace;
  word-break: break-word;
}

.search-powered-by {
  padding: 10px 14px;
  background: linear-gradient(90deg, #1a0a2e 0%, #2d1b4e 100%);
  font-size: 11px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 0 0 7px 7px;
}

.search-powered-by a {
  color: #ff00ff;
  text-decoration: none;
  font-weight: 600;
}

.search-powered-by a:hover {
  text-decoration: underline;
}

.docs-sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
}

.sidebar-section {
  margin-bottom: 24px;
}

.sidebar-title {
  padding: 0 24px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray);
  margin-bottom: 8px;
}

.sidebar-links {
  list-style: none;
}

.sidebar-links a {
  display: block;
  padding: 8px 24px;
  color: var(--dark);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.sidebar-links a:hover {
  background: white;
  color: var(--maps-primary);
}

.sidebar-links a.active {
  background: white;
  color: var(--maps-primary);
  border-left-color: var(--maps-primary);
  font-weight: 600;
}

.sidebar-links .method {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
}

.method.get { background: #e6f4ea; color: #1e8e3e; }
.method.post { background: #e8f0fe; color: #1a73e8; }
.method.put { background: #fef7e0; color: #f9ab00; }
.method.delete { background: #fce8e6; color: #d93025; }

/* Main Content */
.docs-content {
  flex: 1;
  margin-left: 280px;
  padding: 48px 64px;
}

/* Docs Header (site link + prev/next nav) */
.docs-header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.docs-site-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.docs-site-link:hover {
  background: white;
  border-color: var(--primary);
  color: var(--primary);
}

.docs-site-link svg {
  width: 16px;
  height: 16px;
}

.docs-prev-next {
  display: flex;
  gap: 8px;
}

.docs-prev-next a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--secondary);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.15s ease;
}

.docs-prev-next a:hover {
  background: white;
  border-color: var(--primary);
  color: var(--primary);
}

.docs-prev-next svg {
  width: 14px;
  height: 14px;
}

.docs-prev-next .prev svg {
  transform: rotate(180deg);
}

.docs-content h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.docs-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.docs-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-top: 32px;
  margin-bottom: 12px;
}

.docs-content p {
  color: var(--secondary);
  margin-bottom: 16px;
  font-size: 15px;
}

.docs-content ul, .docs-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.docs-content li {
  margin-bottom: 8px;
  color: var(--secondary);
}

.intro-text {
  font-size: 18px;
  color: var(--secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* Code Blocks in Docs */
.docs-content .code-block {
  margin: 16px 0 24px;
  border-radius: 8px;
}

.code-header {
  background: #2d2d2d;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.code-lang {
  font-size: 12px;
  color: #888;
  font-weight: 500;
}

.code-copy {
  padding: 4px 10px;
  background: transparent;
  border: 1px solid #444;
  border-radius: 4px;
  color: #888;
  font-size: 11px;
  cursor: pointer;
}

.code-copy:hover {
  background: #333;
  color: white;
}

.docs-content pre {
  padding: 16px;
}

/* Inline Code */
code {
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  background: var(--light);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--danger);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

th {
  text-align: left;
  padding: 12px 16px;
  background: var(--light);
  font-weight: 600;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--secondary);
}

td code {
  font-size: 12px;
}

/* Endpoint Cards */
.endpoint-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 24px 0;
  overflow: hidden;
}

.endpoint-header {
  padding: 16px 20px;
  background: var(--light);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.endpoint-method {
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.endpoint-method.get { background: #e6f4ea; color: #1e8e3e; }
.endpoint-method.post { background: #e8f0fe; color: #1a73e8; }

.endpoint-path {
  font-family: 'Fira Code', monospace;
  font-size: 14px;
  color: var(--dark);
}

.endpoint-body {
  padding: 20px;
}

.endpoint-desc {
  margin-bottom: 16px;
  color: var(--secondary);
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--maps-primary);
  box-shadow: 0 4px 20px rgba(26, 115, 232, 0.15);
}

.pricing-card.featured .pricing-badge {
  display: inline-block;
}

.pricing-badge {
  display: none;
  background: var(--maps-primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.pricing-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.pricing-desc {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 16px;
}

.pricing-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray);
}

.pricing-features {
  list-style: none;
  margin: 20px 0;
  text-align: left;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 13px;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li::before {
  content: '\2713';
  color: var(--success);
  font-weight: 700;
}

.pricing-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.pricing-btn.primary {
  background: var(--maps-primary);
  color: white;
}

.pricing-btn.secondary {
  background: var(--light);
  color: var(--dark);
  border: 1px solid var(--border);
}

/* Alerts */
.alert {
  padding: 16px 20px;
  border-radius: 8px;
  margin: 16px 0;
  display: flex;
  gap: 12px;
}

.alert-icon {
  font-size: 18px;
}

.alert-info {
  background: #e8f0fe;
  border-left: 4px solid var(--maps-primary);
}

.alert-warning {
  background: #fef7e0;
  border-left: 4px solid var(--warning);
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.alert-text {
  font-size: 14px;
  color: var(--secondary);
}

/* SDK Cards */
.sdk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.sdk-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.sdk-icon {
  width: 48px;
  height: 48px;
  background: var(--light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.sdk-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2px;
}

.sdk-info p {
  font-size: 13px;
  color: var(--gray);
  margin: 0;
}

/* Sponsors Grid */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.sponsor-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sponsor-card:hover {
  border-color: var(--maps-primary, #4285f4);
  background: var(--light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sponsor-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

.sponsor-card span {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  text-align: center;
}

.sponsor-card:hover span {
  color: var(--maps-primary, #4285f4);
}

/* Changelog */
.changelog-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.changelog-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.changelog-version {
  font-family: 'Fira Code', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--maps-primary);
}

.changelog-date {
  font-size: 13px;
  color: var(--gray);
}

.changelog-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.changelog-tag.feature { background: #e6f4ea; color: #1e8e3e; }
.changelog-tag.fix { background: #fce8e6; color: #d93025; }
.changelog-tag.deprecated { background: #fef7e0; color: #f9ab00; }

/* Placeholder pages */
.coming-soon {
  text-align: center;
  padding: 100px 24px;
}

.coming-soon h2 {
  font-size: 32px;
  margin-bottom: 16px;
  border: none;
  padding: 0;
  margin-top: 0;
}

.coming-soon p {
  font-size: 16px;
  color: var(--gray);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-menu-toggle .menu-close {
  display: none;
}

.mobile-menu-toggle.active .menu-open {
  display: none;
}

.mobile-menu-toggle.active .menu-close {
  display: block;
}

/* Responsive */
@media (max-width: 900px) {
  .api-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .docs-sidebar {
    display: none;
  }

  .docs-content {
    margin-left: 0;
    padding: 32px 24px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .sdk-grid {
    grid-template-columns: 1fr;
  }

  /* Show header on mobile */
  .dev-header {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
  }

  .dev-header-right {
    margin-left: auto;
  }

  /* Remove hero padding on mobile - no gap needed */
  .dev-hero {
    padding-top: 0;
  }

  /* Mobile video needs aspect ratio to prevent layout shift */
  .hero-video-mobile-wrapper {
    aspect-ratio: 16/9;
  }

  .hero-video-mobile {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Show hamburger on mobile */
  .mobile-hamburger {
    display: flex;
  }

  /* All sidebars become mobile drawers - slide from right */
  .docs-sidebar,
  .dashboard-sidebar {
    position: fixed;
    top: 36px;
    right: 0;
    left: auto;
    bottom: 0;
    width: 300px;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding-top: 0;
  }

  /* Show sidebar headers on mobile drawer */
  .docs-sidebar-header,
  .dashboard-sidebar-header {
    display: block;
  }

  /* Hide logo in sidebar on mobile - already visible in header */
  .docs-sidebar-logo {
    display: none;
  }

  .docs-sidebar.mobile-open,
  .dashboard-sidebar.mobile-open {
    transform: translateX(0);
  }

  /* Landing page mobile */
  .landing-page {
    margin-top: 70px;
    display: block;
    background: var(--dark);
  }

  .landing-page > .docs-sidebar {
    display: flex;
    flex-direction: column;
  }

  .landing-page-content {
    margin-left: 0;
  }

  /* Docs pages need header offset on mobile */
  .docs-layout {
    margin-top: 54px;
  }

  .docs-content {
    margin-left: 0;
  }

  /* Dashboard mobile */
  .dashboard-page {
    margin-top: 104px;
    min-height: calc(100vh - 104px);
  }

  .dashboard-content {
    margin-left: 0;
  }

  /* Hide the old FAB toggle */
  .mobile-menu-toggle {
    display: none !important;
  }

  /* Hide sidebar header on mobile - use main header instead */
  .dashboard-sidebar-header {
    display: none;
  }

  .dashboard-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }

  .dashboard-sidebar-overlay.open {
    display: block;
  }

  .dashboard-content {
    margin-left: 0;
    padding: 24px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 16px;
  }

  .dashboard-actions {
    width: 100%;
  }

  .dashboard-actions button {
    flex: 1;
  }

  .bill-alert {
    flex-direction: column;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .charts-grid {
    grid-template-columns: 1fr;
  }

  /* Header auth hidden on mobile when dashboard active */
  .dashboard-page.active ~ .dev-header #authContainer {
    display: none;
  }

  /* footer */
  footer {
    width: calc(100%);
    margin-left: 0px;
  }
}

@media (max-width: 768px) {
  .dev-hero {
    padding-top: 0;
    padding-bottom: 40px;
  }

  .hero-bg video {
    display: none;
  }

  .hero-bg img {
    display: block;
  }

  .hero-video-mobile-wrapper {
    display: block;
  }

  .dev-hero h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }
}

@media (max-width: 600px) {
  .api-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }
}
