@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --clr-bg: #0b0b0f;
  --clr-surface: rgba(20,20,28,0.85);
  --clr-card: #15151f;
  --clr-text: #e4e4e8;
  --clr-text-muted: #8a8a99;
  --clr-accent: #9f4fff;
  --clr-accent-dark: #803ecc;
  --clr-border: rgba(255,255,255,0.05);
  --transition: 0.3s ease;
}

/* Reset and base styles */
*, *::before, *::after { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

html { 
  scroll-behavior: smooth; 
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { 
  color: inherit; 
  text-decoration: none; 
}

img { 
  max-width: 100%; 
  display: block; 
}

ul { 
  list-style: none; 
}

/* Container */
.container {
  width: 90%; 
  max-width: 1200px; 
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn {
  display: inline-block; 
  padding: 0.6em 1.5em; 
  border-radius: 30px;
  font-weight: 500; 
  cursor: pointer; 
  transition: var(--transition);
  text-align: center;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--clr-accent); 
  color: #fff; 
  border: 1px solid var(--clr-accent);
}

.btn-primary:hover {
  background: var(--clr-accent-dark); 
  border-color: var(--clr-accent-dark);
}

.btn-outline {
  background: transparent; 
  border: 1px solid var(--clr-accent);
  color: var(--clr-accent);
}

.btn-outline:hover {
  background: var(--clr-accent); 
  color: #fff;
}

/* Header and Navigation */
header {
  background: var(--clr-surface);
  backdrop-filter: blur(10px); 
  z-index: 10;
}

/* Main site header should be sticky */
body > header {
  position: sticky; 
  top: 0;
}

.nav {
  display: flex; 
  justify-content: space-between;
  align-items: center; 
  padding: 1em 0;
}

.logo {
  font-size: 1.5rem; 
  font-weight: 700; 
  color: var(--clr-accent);
}

.nav-links {
  display: flex; 
  gap: 1.5em;
}

.nav-links a {
  position: relative; 
  color: var(--clr-text-muted);
  font-weight: 500; 
  transition: var(--transition);
}

.nav-links a:hover { 
  color: var(--clr-text); 
}

.nav-links a::after {
  content: ''; 
  position: absolute; 
  left: 0; 
  right: 0; 
  bottom: -4px;
  height: 2px; 
  background: var(--clr-accent);
  opacity: 0; 
  transform: scaleX(0); 
  transform-origin: center;
  transition: var(--transition);
}

.nav-links a:hover::after {
  opacity: 1; 
  transform: scaleX(1);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--clr-text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle:hover {
  color: var(--clr-accent);
}

/* Hero section */
.hero {
  position: relative; 
  text-align: center;
  padding: 6em 0 4em; 
  overflow: hidden;
}

.hero::before {
  content: ''; 
  position: absolute; 
  top: 0; 
  left: 50%;
  width: 120%; 
  height: 120%;
  background: radial-gradient(circle at center, rgba(159,79,255,0.3), transparent 60%);
  transform: translateX(-50%) translateY(-20%); 
  z-index: 0;
}

.hero-content {
  position: relative; 
  z-index: 1; 
  max-width: 700px; 
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem; 
  font-weight: 700;
  background: linear-gradient(90deg,#fff,var(--clr-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5em;
}

.hero p {
  color: var(--clr-text-muted); 
  font-size: 1.1rem; 
  margin-bottom: 1.8em;
}

.hero .btn-group a { 
  margin: 0 0.5em; 
}

/* Sections */
section { 
  padding: 4em 0; 
}

section h2 {
  font-size: 2.2rem; 
  text-align: center;
  margin-bottom: 1.2em; 
  color: var(--clr-accent);
}

.stats-section h2 { 
  margin-bottom: 0.4em; 
}

.stats-section .subtext {
  text-align: center; 
  color: var(--clr-text-muted);
  font-size: 1rem; 
  margin-bottom: 2rem;
}

/* Grid layouts */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--clr-card); 
  border: 1px solid var(--clr-border);
  border-radius: 12px; 
  padding: 1.5em 1em; 
  text-align: center;
}

.stat-card h3 {
  font-size: 2.2rem; 
  margin-bottom: 0.4em; 
  color: var(--clr-accent);
}

.stat-card p {
  font-size: 1rem; 
  color: var(--clr-text-muted);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  gap: 2rem;
}

.benefit-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 12px; 
  padding: 2em 1.6em;
  text-align: center; 
  transition: box-shadow var(--transition);
}

.benefit-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.benefit-card h3 {
  font-size: 1.25rem; 
  margin-bottom: 0.6em; 
  color: #fff;
}

.benefit-card p {
  font-size: 0.95rem; 
  color: var(--clr-text-muted);
  line-height: 1.4;
}

.steps-grid {
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 1.2rem;
}

.step {
  position: relative; 
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 12px; 
  padding: 2em 1.6em 1.6em;
  text-align: center;
}

.step-number {
  position: absolute; 
  top: -16px; 
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-accent); 
  color: #fff; 
  font-weight: 600;
  width: 40px; 
  height: 40px; 
  line-height: 40px;
  border-radius: 50%; 
  border: 3px solid var(--clr-bg);
}

.step p {
  color: var(--clr-text-muted);
  margin-top: 1em; 
  font-size: 0.95rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  gap: 2rem; 
  justify-items: center;
}

.testimonial {
  width: 100%; 
  max-width: 500px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 12px; 
  padding: 1.6em; 
  position: relative;
}

.testimonial::before {
  content: "“";
  position: absolute; 
  top: -10px; 
  left: 12px;
  font-size: 3.6rem; 
  color: var(--clr-accent);
}

.testimonial p {
  color: var(--clr-text-muted);
  margin-bottom: 1em; 
  font-size: 0.95rem;
}

.author {
  display: flex; 
  align-items: center; 
  gap: 0.8em;
}

.author img {
  width: 40px; 
  height: 40px;
  border-radius: 50%; 
  border: 2px solid var(--clr-border);
}

.author .name {
  font-weight: 600; 
  color: #fff;
}

.author .role {
  font-size: 0.85rem; 
  color: var(--clr-text-muted);
}

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg,#1d0f3b,#0f0719);
  padding: 4em 0;
}

.final-cta .container { 
  position: relative; 
}

.final-cta-content {
  background: rgba(20,20,28,0.9);
  border-radius: 12px; 
  padding: 2.5em 1.5em;
  text-align: center; 
  max-width: 700px; 
  margin: 0 auto;
}

.final-cta-content h2 {
  color: #fff; 
  font-size: 2rem; 
  margin-bottom: 1em;
}

/* Footer */
footer {
  text-align: center; 
  padding: 2em 0;
  color: var(--clr-text-muted); 
  font-size: 0.9rem;
}

footer a {
  color: var(--clr-text-muted); 
  margin: 0 0.5em;
}

footer a:hover { 
  color: var(--clr-text); 
}

/* Auth pages */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  width: 100%; 
  max-width: 400px;
  padding: 2em;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  margin: 1rem;
}

.auth-container h1 {
  text-align: center;
  margin-bottom: 1em;
  font-size: 1.8rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
}

.auth-form input {
  margin-bottom: 1em;
  padding: .8em;
  border: 1px solid var(--clr-border);
  border-radius: 6px;
  background: var(--clr-surface);
  color: var(--clr-text);
  font-size: 1rem;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--clr-accent);
}

.auth-form button {
  padding: .8em;
  border: none;
  border-radius: 30px;
  background: var(--clr-accent);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.auth-form button:hover {
  background: var(--clr-accent-dark);
}

.auth-help {
  text-align: center;
  margin-top: 1em;
  color: var(--clr-text-muted);
  font-size: .9rem;
}

.error {
  color: #ff6b6b;
  text-align: center;
  margin-bottom: 1em;
  font-size: .95rem;
}

/* Social auth styles */
.social-auth {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
  align-items: stretch;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 4px;
  background: #ffffff;
  color: #3c4043;
  font-weight: 500;
  border: 1px solid #dadce0;
  box-shadow: none;
  transition: background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
  width: 100%;
}

.btn-google:hover {
  background: #f7f8f8;
  border-color: #d2d6db;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  transform: none;
}

.btn-google:active {
  background: #f1f3f4;
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.06);
}

.btn-google:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(66,133,244,0.35);
}


.btn-google .btn-label {
  line-height: 1;
}

.google-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.google-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 20px;
  max-height: 20px;
}

.social-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--clr-text-muted);
  font-size: .9rem;
  margin: .75rem 0;
  letter-spacing: .02em;
}

.social-divider::before,
.social-divider::after {
  content: "";
  flex: 1 1 0;
  height: 1px;
  background: var(--clr-border);
}

.tg-widget-wrap {
  display: flex;
  justify-content: center;
  margin-top: .25rem;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 0 0.5rem;
  }
  
  /* Mobile navigation */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--clr-surface);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    border-top: 1px solid var(--clr-border);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links a {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: background-color var(--transition);
  }
  
  .nav-links a:hover {
    background: var(--clr-card);
  }
  
  .nav-links a::after {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav {
    position: relative;
  }
  
  /* Hero section mobile */
  .hero {
    padding: 4em 0 3em;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero .btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
  
  .hero .btn-group a {
    margin: 0;
    width: 100%;
    max-width: 200px;
  }
  
  /* Sections mobile */
  section {
    padding: 3em 0;
  }
  
  section h2 {
    font-size: 1.8rem;
  }
  
  /* Grid layouts mobile */
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .benefit-card {
    padding: 1.5em 1.2em;
  }
  
  .steps-grid {
    gap: 2rem;
  }
  
  .step {
    padding: 2.5em 1.2em 1.5em;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Final CTA mobile */
  .final-cta {
    padding: 3em 0;
  }
  
  .final-cta-content {
    padding: 2em 1.2em;
  }
  
  .final-cta-content h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  .auth-container {
    padding: 1.5em;
    margin: 0.5rem;
  }
  
  .auth-container h1 {
    font-size: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .stat-card h3 {
    font-size: 1.8rem;
  }
  
  section h2 {
    font-size: 1.6rem;
  }
}

@media (min-width: 600px) {
  .steps-grid { 
    grid-template-columns: repeat(3,1fr); 
  }
}

/* Dashboard and Models page styles */
.search-container {
  margin-bottom: 1rem;
  position: relative;
  max-width: 400px;
}

.search-container input[type="search"] {
  width: 100%;
  padding: 0.5rem 2.25rem 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: 6px;
  outline-offset: 2px;
  transition: border-color 0.3s;
  background-color: var(--clr-surface);
  color: var(--clr-text);
}

.search-container input[type="search"]:focus {
  border-color: var(--clr-accent);
  outline: none;
}

.search-container input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.clear-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--clr-border);
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  border: none;
  cursor: pointer;
  font-weight: bold;
  color: var(--clr-text-muted);
  display: none;
  font-size: 0.875rem;
}

.clear-btn:hover {
  background: var(--clr-accent);
  color: var(--clr-text);
}

.clear-btn.visible {
  display: block;
}

.models-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--clr-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  color: var(--clr-text);
}

.models-table thead {
  background: var(--clr-surface);
}

.models-table thead tr th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  border-bottom: 1px solid var(--clr-border);
  user-select: none;
}

.models-table tbody tr {
  border-bottom: 1px solid var(--clr-border);
}

.models-table tbody tr:last-child {
  border-bottom: none;
}

.models-table tbody tr td {
  padding: 0.75rem 1rem;
  vertical-align: top;
  font-size: 0.875rem;
  color: var(--clr-text);
}

.badge-green {
  background-color: rgba(6, 78, 59, 0.3);
  color: var(--clr-accent);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  display: inline-block;
  border: 1px solid var(--clr-accent);
}

.table-caption {
  text-align: left;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--clr-text-muted);
}

@media (max-width: 768px) {
  .search-container {
    max-width: 100%;
  }
  
  .models-table {
    font-size: 0.8rem;
  }
  
  .models-table thead tr th,
  .models-table tbody tr td {
    padding: 0.5rem;
  }
  
  .badge-green {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }
}

/* Documentation styles */
.docs-layout {
  display: flex;
  min-height: 100vh;
  background: var(--clr-bg);
}

.docs-sidebar {
  width: 16rem;
  background: var(--clr-card);
  border-right: 1px solid var(--clr-border);
  padding: 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.docs-content {
  flex: 1;
  padding: 2rem;
  max-width: calc(100% - 16rem);
}

.docs-nav {
  list-style: none;
}

.docs-nav > li {
  margin-bottom: 1rem;
}

.docs-nav-title {
  font-weight: 600;
  color: var(--clr-accent);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.docs-nav-list {
  list-style: none;
  margin-left: 0.5rem;
}

.docs-nav-list li {
  margin-bottom: 0.25rem;
}

.docs-nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--clr-text-muted);
  border-radius: 6px;
  transition: var(--transition);
  font-size: 0.875rem;
}

.docs-nav-link:hover,
.docs-nav-link.active {
  background: var(--clr-surface);
  color: var(--clr-text);
}

.docs-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--clr-border);
}

.docs-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 0.5rem;
}

.docs-subtitle {
  color: var(--clr-text-muted);
  font-size: 1.1rem;
}

.docs-section {
  margin-bottom: 3rem;
}

.docs-section h2 {
  font-size: 1.75rem;
  color: var(--clr-accent);
  margin-bottom: 1rem;
  padding-top: 1rem;
}

.docs-section h3 {
  font-size: 1.25rem;
  color: var(--clr-text);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.docs-section h4 {
  font-size: 1rem;
  color: var(--clr-text);
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.docs-section p {
  color: var(--clr-text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.docs-section ul,
.docs-section ol {
  color: var(--clr-text-muted);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.docs-section li {
  margin-bottom: 0.5rem;
}

.code-block {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  margin: 1rem 0;
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--clr-card);
  border-bottom: 1px solid var(--clr-border);
}

.code-language {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  font-weight: 500;
}

.code-copy {
  background: none;
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.code-copy:hover {
  background: var(--clr-accent);
  color: var(--clr-text);
  border-color: var(--clr-accent);
}

.code-content {
  padding: 1rem;
  overflow-x: auto;
}

.code-content pre {
  margin: 0;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--clr-text);
}

.language-tabs {
  display: flex;
  background: var(--clr-card);
  border-radius: 8px 8px 0 0;
  border: 1px solid var(--clr-border);
  border-bottom: none;
  overflow-x: auto;
}

.language-tab {
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
  white-space: nowrap;
  border-right: 1px solid var(--clr-border);
}

.language-tab:last-child {
  border-right: none;
}

.language-tab:hover {
  background: var(--clr-surface);
  color: var(--clr-text);
}

.language-tab.active {
  background: var(--clr-surface);
  color: var(--clr-accent);
  font-weight: 500;
}

.code-example {
  margin: 1rem 0;
}

.endpoint-card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.endpoint-method {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-right: 0.5rem;
}

.method-post {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid #22c55e;
}

.method-get {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid #3b82f6;
}

.endpoint-url {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  color: var(--clr-text);
  font-size: 0.875rem;
}

.parameter-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: var(--clr-surface);
  border-radius: 8px;
  overflow: hidden;
}

.parameter-table th,
.parameter-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--clr-border);
}

.parameter-table th {
  background: var(--clr-card);
  color: var(--clr-text);
  font-weight: 600;
  font-size: 0.875rem;
}

.parameter-table td {
  color: var(--clr-text-muted);
  font-size: 0.875rem;
}

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

.parameter-name {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  color: var(--clr-accent);
  font-weight: 500;
}

.parameter-type {
  color: var(--clr-text-muted);
  font-style: italic;
}

.parameter-required {
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 500;
}

.parameter-optional {
  color: var(--clr-text-muted);
  font-size: 0.75rem;
}

.docs-mobile-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  background: var(--clr-accent);
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .docs-layout {
    flex-direction: column;
  }
  
  .docs-sidebar {
    position: fixed;
    top: 0;
    left: -16rem;
    width: 16rem;
    height: 100vh;
    z-index: 50;
    transition: left 0.3s ease;
  }
  
  .docs-sidebar.active {
    left: 0;
  }
  
  .docs-content {
    max-width: 100%;
    padding: 1rem;
    padding-top: 4rem;
  }
  
  .docs-mobile-toggle {
    display: block;
  }
  
  .docs-title {
    font-size: 2rem;
  }
  
  .language-tabs {
    flex-wrap: wrap;
  }
  
  .language-tab {
    flex: 1;
    min-width: auto;
  }
  
  .code-content {
    padding: 0.75rem;
  }
  
  .endpoint-card {
    padding: 1rem;
  }
  
  .parameter-table {
    font-size: 0.8rem;
  }
  
  .parameter-table th,
  .parameter-table td {
    padding: 0.5rem;
  }
}

/* Language switcher */
.language-switcher {
  display: inline-flex;
  background: var(--clr-surface);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 1rem;
  border: 1px solid var(--clr-border);
}

.language-btn {
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  min-width: 70px;
  text-align: center;
}

.language-btn:hover {
  background: var(--clr-card);
  color: var(--clr-text);
}

.language-btn.active {
  background: var(--clr-accent);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.code-example-content {
  display: none !important;
}

.code-example-content.active {
  display: block !important;
}

@media (max-width: 768px) {
  .language-switcher {
    display: flex;
    width: 100%;
    padding: 2px;
  }
  
  .language-btn {
    flex: 1;
    min-width: auto;
    padding: 10px 8px;
  }
}

/* JavaScript utilities */
.hidden {
  display: none !important;
}

.active {
  display: flex !important;
}

/* Social auth: Google dark variant */
.btn-google.btn-google--dark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, #3a4150 0%, #262d3b 100%);
  color: #f7fafc;
  border: 1px solid #586073;
  box-shadow: 0 10px 24px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
  letter-spacing: .02em;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  width: 100%;
}

.btn-google.btn-google--dark:hover {
  background: linear-gradient(180deg, #454e60 0%, #2b3344 100%);
  border-color: #6a7488;
  box-shadow: 0 12px 28px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.06) inset;
  transform: translateY(-1px);
}

.btn-google.btn-google--dark:active {
  background: #323a4a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(0);
}

.btn-google.btn-google--dark:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(138,180,248,0.5), 0 12px 30px rgba(0,0,0,0.5);
}

.btn-google--dark .btn-label {
  color: #f5f7fa;
  font-weight: 600;
}

/* White circular container for Google logo */
.google-icon.circle {
  background: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px; /* inner G ~14px в круге 18px */
  box-shadow: 0 1px 0 rgba(255,255,255,0.30) inset, 0 0 0 1px rgba(0,0,0,0.25);
}

/* Override inline svg size for circle variant */
.google-icon.circle svg {
  width: 14px !important;
  height: 14px !important;
  display: block;
}
