/* ==============================================================================
   TIPP.PL - ULTRA-PREMIUM MODERN DESIGN SYSTEM (VANILLA CSS)
   ============================================================================== */

:root {
  --bg-dark: #07090e;
  --bg-card: rgba(18, 22, 34, 0.75);
  --bg-card-hover: rgba(26, 32, 50, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(99, 102, 241, 0.4);
  
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --accent-cyan: #00f2fe;
  --accent-purple: #a855f7;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px -10px var(--primary-glow);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
}

/* Ambient Glow Backgrounds */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.05) 70%, transparent 100%);
}

.glow-2 {
  width: 450px;
  height: 450px;
  top: 900px;
  right: -100px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography Helpers */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, #a5b4fc 50%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

.brand-icon {
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-accent {
  color: var(--primary);
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-glow {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-blue { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-green { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-success { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language Selector */
.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 8px 13px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.lang-globe-icon {
  color: var(--accent-cyan);
}

.lang-arrow {
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.lang-selector.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 195px;
  max-height: 380px;
  overflow-y: auto;
  background: rgba(13, 17, 26, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.15);
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 1000;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-dropdown::-webkit-scrollbar {
  width: 5px;
}

.lang-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.lang-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.lang-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
}


@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lang-selector.open .lang-dropdown {
  display: flex;
}

.lang-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: all 0.15s ease;
}

.lang-opt:hover {
  background: rgba(99, 102, 241, 0.15);
  color: #ffffff;
}

.lang-opt.active {
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  font-weight: 700;
}

.lang-opt .flag {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-opt .lang-name {
  flex: 1;
}

.lang-opt .lang-code {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.lang-opt.active .lang-code {
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.15);
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  min-height: 48px;
  min-width: 48px;
  touch-action: manipulation;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px -4px rgba(99, 102, 241, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -4px rgba(99, 102, 241, 0.7);
  background: linear-gradient(135deg, #6b70f6 0%, #554ce9 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  min-height: 52px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px -2px rgba(99, 102, 241, 0.7);
  background: linear-gradient(135deg, #7073ff 0%, #5850ec 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text-main);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.w-full {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 90px 0 60px;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 740px;
  margin-bottom: 38px;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 20px 36px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}

/* Sections General */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
}

/* Comparison Section */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.comparison-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.comparison-card.blocked:hover {
  border-color: rgba(239, 68, 68, 0.4);
}

.comparison-card.success {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 35px -10px rgba(16, 185, 129, 0.15);
}

.comparison-card.success:hover {
  border-color: rgba(16, 185, 129, 0.6);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.model-badge {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.prompt-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.prompt-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.prompt-box p {
  font-size: 0.95rem;
  color: var(--text-main);
  font-style: italic;
}

.response-box {
  border-radius: var(--radius-md);
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.response-error {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.response-ok {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.response-status {
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 12px;
}

.response-error .response-status { color: #f87171; }
.response-ok .response-status { color: #34d399; }

.response-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.response-text code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.impact-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fca5a5;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.impact-tag.green {
  color: #6ee7b7;
}

/* Code Terminal */
.code-terminal {
  background: #0d1117;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-tabs {
  display: flex;
  gap: 8px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

.tab-btn:hover:not(.active) {
  color: var(--text-main);
}

.copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

.terminal-body {
  padding: 24px;
  overflow-x: auto;
}

.code-block {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.65;
  color: #e2e8f0;
}

.code-block.active {
  display: block;
}

.kw { color: #f472b6; font-weight: 600; }
.str { color: #34d399; }
.comment { color: #64748b; font-style: italic; }
.num { color: #38bdf8; }

/* Models Grid */
.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.model-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.model-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
}

.model-card.popular {
  border-color: rgba(99, 102, 241, 0.5);
  background: linear-gradient(180deg, rgba(30, 36, 60, 0.85) 0%, rgba(18, 22, 34, 0.85) 100%);
}

.card-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 14px;
  border-radius: var(--radius-full);
}

.model-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.model-size {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.model-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.model-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 22px;
  flex: 1;
}

.model-features {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.model-features li {
  font-size: 0.86rem;
  color: #cbd5e1;
}

.model-footer {
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.price-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.pricing-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.highlighted {
  border-color: var(--primary);
  box-shadow: 0 0 40px -10px rgba(99, 102, 241, 0.35);
  background: linear-gradient(180deg, rgba(28, 34, 58, 0.9) 0%, rgba(18, 22, 34, 0.9) 100%);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.plan-period {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 500;
}

.plan-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.plan-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}

.plan-list li {
  font-size: 0.9rem;
  color: #cbd5e1;
}

/* Order Box */
.order-box {
  background: linear-gradient(135deg, rgba(24, 29, 48, 0.8) 0%, rgba(14, 17, 28, 0.8) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.order-box-header {
  text-align: center;
  margin-bottom: 30px;
}

.order-box-header h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.order-box-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
}

.form-group input,
.form-group select {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px -3px var(--primary-glow);
}

/* Anonymous Account & Credentials Box */
.anon-cred-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(99, 102, 241, 0.1) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
}

.anon-cred-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.anon-cred-header h4 {
  font-size: 1rem;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.anon-cred-subtitle {
  font-size: 0.84rem;
  color: #cbd5e1;
}

.cred-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-with-action {
  display: flex;
  position: relative;
  align-items: stretch;
}

.input-with-action input {
  flex: 1;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  min-height: 48px;
  font-family: var(--font-mono);
  font-weight: 600;
}

.text-cyan {
  color: #00f2fe !important;
}

.btn-addon {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-left: none;
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  color: #cbd5e1;
  padding: 0 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  min-height: 48px;
  min-width: 48px;
}

.btn-addon:hover {
  background: rgba(99, 102, 241, 0.3);
  color: #ffffff;
}

.btn-text-action {
  background: none;
  border: none;
  color: #a5b4fc;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-text-action:hover {
  color: #00f2fe;
  background: rgba(255, 255, 255, 0.05);
}

.field-hint {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 6px;
  line-height: 1.4;
  display: block;
}

.label-optional {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 400;
  margin-left: 6px;
}

/* Model Filters Bar */
.model-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  touch-action: manipulation;
}

.filter-pill:hover {
  background: rgba(99, 102, 241, 0.15);
  color: var(--text-main);
  border-color: rgba(99, 102, 241, 0.4);
}

.filter-pill.active {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 18px -4px rgba(99, 102, 241, 0.6);
}

/* Model Specs Accordion */
.model-spec-accordion {
  margin-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 14px;
}

.spec-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #a5b4fc;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
  text-align: left;
  touch-action: manipulation;
}

.spec-toggle-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: #ffffff;
}

.spec-chevron {
  transition: transform 0.25s ease;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.model-spec-accordion.open .spec-chevron {
  transform: rotate(180deg);
}

.spec-content {
  display: none;
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
}

.model-spec-accordion.open .spec-content {
  display: block;
  animation: dropdownFadeIn 0.2s ease;
}

.spec-id-box {
  margin-bottom: 14px;
}

.spec-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 6px;
}

.spec-copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.spec-copy-row code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  overflow-x: auto;
  white-space: nowrap;
}

.btn-copy-sm {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
  min-width: 44px;
  white-space: nowrap;
  touch-action: manipulation;
}

.btn-copy-sm:hover {
  background: var(--primary);
  color: #fff;
}

.spec-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-prop {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.spec-val {
  font-size: 0.84rem;
  color: #ffffff;
  font-family: var(--font-mono);
}

/* Sub-list of models inside expandable accordion */
.spec-models-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.spec-model-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: all 0.2s ease;
}

.spec-model-row:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.08);
}

.spec-model-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.spec-model-name {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #00f2fe;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spec-model-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.73rem;
  color: var(--text-dim);
}

.badge-ctx {
  background: rgba(99, 102, 241, 0.25);
  color: #c7d2fe;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
}

.badge-tag {
  color: #34d399;
  font-size: 0.72rem;
}

/* Quick Model Selector Dropdown Bar */
.model-selector-bar {
  background: linear-gradient(135deg, rgba(20, 24, 40, 0.85) 0%, rgba(14, 18, 30, 0.85) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.model-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.model-selector-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.model-quick-dropdown {
  width: 100%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  min-height: 48px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.model-quick-dropdown:focus {
  border-color: #00f2fe;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.model-quick-dropdown optgroup {
  background: #111827;
  color: #94a3b8;
  font-family: var(--font-sans);
  font-weight: 700;
  padding: 8px 4px;
}

.model-quick-dropdown option {
  background: #1a2035;
  color: #e2e8f0;
  font-family: var(--font-mono);
  padding: 8px 12px;
}

.model-preview-box {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: dropdownFadeIn 0.2s ease;
}

.model-preview-details {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.model-preview-id {
  font-family: var(--font-mono);
  color: #00f2fe;
  font-weight: 700;
  font-size: 0.92rem;
}

.model-preview-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Models Passthrough Callout Card */
.models-passthrough-card {
  margin-top: 36px;
  background: linear-gradient(135deg, rgba(20, 24, 40, 0.85) 0%, rgba(12, 15, 26, 0.85) 100%);
  border: 1px dashed rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  gap: 24px;
  backdrop-filter: blur(16px);
  transition: all 0.25s ease;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.models-passthrough-card:hover {
  border-color: rgba(0, 242, 254, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px -8px rgba(0, 242, 254, 0.15);
}

.passthrough-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 14px;
}

.passthrough-body {
  flex: 1;
}

.passthrough-body h4 {
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.passthrough-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.passthrough-body code {
  background: rgba(255, 255, 255, 0.08);
  color: #00f2fe;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.passthrough-action {
  flex-shrink: 0;
}

/* Payment Methods Selection */
.payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-option:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(255, 255, 255, 0.02);
}

.payment-option.active {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  box-shadow: 0 0 20px -5px rgba(99, 102, 241, 0.3);
}

.payment-option input[type="radio"] {
  margin-top: 4px;
  cursor: pointer;
  accent-color: var(--primary);
}

.pay-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pay-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.pay-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.payment-instruction-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.instruction-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.instruction-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.order-success-msg {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  text-align: center;
  margin-top: 10px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 9, 14, 0.95);
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 12px;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.link-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-col h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.link-col a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.link-col a:hover {
  color: var(--primary);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}


/* Client Portal Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: dropdownFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-box {
  background: #0d111c;
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 45px rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 32px;
  position: relative;
}

.modal-box.dashboard-modal {
  max-width: 860px;
  max-height: 92vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.4) transparent;
}

.portal-nav-tabs {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.portal-tab-btn {
  flex: 1;
  background: transparent;
  color: #94a3b8;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.portal-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.portal-tab-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(0, 242, 254, 0.2) 100%);
  color: #00f2fe;
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 2px 10px rgba(0, 242, 254, 0.15);
}

.modal-plan-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.modal-plan-btn:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.1);
}

.modal-plan-btn.active {
  border-color: #00f2fe;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(0, 242, 254, 0.15) 100%);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.25);
}

.plan-btn-title {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.modal-plan-btn.active .plan-btn-title {
  color: #00f2fe;
}

.plan-btn-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
}

.plan-btn-tok {
  font-size: 0.75rem;
  color: #34d399;
  font-weight: 600;
}

.pay-method-toggle-btn {
  flex: 1;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: #94a3b8;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.pay-method-toggle-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.pay-method-toggle-btn.active {
  background: rgba(99, 102, 241, 0.25);
  border-color: #00f2fe;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.6rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.modal-header {
  margin-bottom: 24px;
}

.modal-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.modal-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-footer-note {
  margin-top: 20px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.modal-footer-note a {
  color: #00f2fe;
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
}

/* Success Box Credentials Callout */
.credentials-display-card {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 12px;
  padding: 18px;
  margin: 16px 0;
  box-shadow: 0 0 25px rgba(52, 211, 153, 0.15);
}

.cred-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cred-row:last-child {
  border-bottom: none;
}

.cred-label {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
}

.cred-value {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: #34d399;
  font-weight: 700;
}

.cred-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* Responsive & Mobile-First Touch Targets */
@media (max-width: 992px) {
  .hero-title { font-size: 2.8rem; }
  .comparison-grid,
  .models-grid,
  .pricing-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; justify-content: center; gap: 20px; }
  .stat-divider { display: none; }
  .nav-links { display: none; }
}

@media (max-width: 768px) {
  .cred-inputs-row { grid-template-columns: 1fr; gap: 14px; }
  .payment-methods-grid { grid-template-columns: 1fr; gap: 12px; }
  .order-box { padding: 24px 18px; }
  .model-card { padding: 24px 18px; }
  .model-filters { gap: 8px; }
  .filter-pill { padding: 10px 16px; font-size: 0.85rem; }
  .btn, .filter-pill, .payment-option, .spec-toggle-btn {
    min-height: 48px;
    touch-action: manipulation;
  }
  .models-passthrough-card { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
  .passthrough-action, .passthrough-action .btn { width: 100%; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 2.1rem; }
  .nav-container { padding: 0 16px; }
  .nav-actions { gap: 8px; }
  .lang-btn { padding: 8px 12px; font-size: 0.85rem; min-height: 44px; }
  .badge-glow { display: none; }
  .footer-content { flex-direction: column; gap: 30px; }
  .footer-links { flex-wrap: wrap; gap: 30px; }
  .hero-cta-group { flex-direction: column; width: 100%; gap: 12px; }
  .hero-cta-group .btn { width: 100%; min-height: 50px; }
  .spec-details-grid { grid-template-columns: 1fr; gap: 10px; }
  .cred-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cred-actions { flex-direction: column; }
  .cred-actions .btn { width: 100%; }
}

/* ==============================================================================
   MODELS ACCORDION LIST (ROW-BY-ROW CATALOG)
   ============================================================================== */

/* Models Tabs Navigation by "B" Parameter Count */
.models-tabs-container {
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.models-tabs-container::-webkit-scrollbar {
  display: none;
}

.models-tabs-nav {
  display: flex;
  gap: 8px;
  background: rgba(15, 23, 42, 0.75);
  padding: 6px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
  min-width: max-content;
}

.model-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.model-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.model-tab-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(0, 242, 254, 0.2) 100%);
  color: #ffffff;
  border-color: rgba(0, 242, 254, 0.5);
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.25);
}

.tab-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-family: monospace;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.4);
  color: #a5b4fc;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.model-tab-btn.active .tab-count-badge {
  background: rgba(0, 242, 254, 0.2);
  color: #00f2fe;
  border-color: rgba(0, 242, 254, 0.4);
}

.tab-price-hint {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-family: monospace;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.model-tab-btn.active .tab-price-hint {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}

/* Controls Bar: Search + Sorting Dropdown + Bulk Actions */
.models-controls-bar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.model-search-box {
  position: relative;
  flex: 1 1 320px;
  min-width: 260px;
}

.model-search-box .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.05rem;
  color: #a5b4fc;
  pointer-events: none;
}

.model-search-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  padding: 12px 48px 12px 48px;
  color: #ffffff;
  font-size: 0.92rem;
  outline: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
}

.model-search-input:focus {
  border-color: #00f2fe;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.25);
  background: rgba(15, 23, 42, 0.9);
}

.model-search-input::placeholder {
  color: #64748b;
}

.search-clear-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  display: none;
}

.search-clear-btn:hover {
  color: #ffffff;
}

.models-actions-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Sorting Dropdown (TIPP.PL Model Catalog) */
.models-sort-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.models-sort-group:hover {
  border-color: rgba(0, 242, 254, 0.4);
}

.sort-icon {
  color: #00f2fe;
  font-size: 1.1rem;
  font-weight: bold;
}

.sort-label {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.models-sort-select {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  padding-right: 4px;
}

.models-sort-select option {
  background: #0f172a;
  color: #ffffff;
  padding: 8px;
}

.models-bulk-actions {
  display: flex;
  gap: 8px;
}

.btn-bulk-toggle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-bulk-toggle:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #ffffff;
  border-color: rgba(99, 102, 241, 0.4);
}

/* Accordion List Container */
.model-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.model-row-item {
  background: rgba(18, 22, 34, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.model-row-item:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.6);
}

.model-row-item.open {
  border-color: rgba(0, 242, 254, 0.5);
  box-shadow: 0 0 30px -5px rgba(0, 242, 254, 0.2);
  background: linear-gradient(180deg, rgba(22, 28, 48, 0.95) 0%, rgba(14, 18, 30, 0.95) 100%);
}

.model-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  gap: 16px;
  min-height: 64px;
}

.model-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.model-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  flex-shrink: 0;
}

.model-row-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.model-row-name {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  word-break: break-all;
}

.model-row-item:hover .model-row-name,
.model-row-item.open .model-row-name {
  color: #00f2fe;
}

.model-row-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-tag-size {
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-tag-ctx {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-tag-type {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-tag-highlight {
  background: rgba(244, 114, 182, 0.15);
  color: #f472b6;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.model-row-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.model-row-pricing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.price-pill {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
}

.speed-pill {
  font-size: 0.72rem;
  color: #94a3b8;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.model-row-chevron {
  font-size: 0.75rem;
  color: #64748b;
  transition: transform 0.25s ease, color 0.25s ease;
  padding: 4px;
}

.model-row-item.open .model-row-chevron {
  transform: rotate(180deg);
  color: #00f2fe;
}

/* Expanded Details */
.model-row-details {
  display: none;
  padding: 0 24px 24px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  animation: fadeInAccordion 0.25s ease;
}

@keyframes fadeInAccordion {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.model-row-item.open .model-row-details {
  display: block;
}

.model-detail-desc {
  font-size: 0.94rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 18px 0 20px;
}

.model-specs-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.spec-cell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.spec-cell-label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
}

.spec-cell-val {
  font-size: 0.86rem;
  color: #ffffff;
  font-family: var(--font-mono);
  text-align: right;
}

.spec-cell-val.text-green { color: #34d399; }
.spec-cell-val.text-cyan { color: #00f2fe; font-weight: 700; }

.code-alias {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Quick Copy Box */
.model-code-quickcopy {
  margin-top: 14px;
}

.quickcopy-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 8px;
}

.quickcopy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.quickcopy-box code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #38bdf8;
  overflow-x: auto;
  white-space: nowrap;
  flex: 1;
}

.btn-copy-code {
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-copy-code:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-copy-sm {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-copy-sm:hover {
  background: rgba(0, 242, 254, 0.25);
  border-color: #00f2fe;
  color: #ffffff;
}

/* Uncensored collection tabs distinct visual accents */
.model-tab-btn.highlight-tab-abl {
  border-color: rgba(244, 63, 94, 0.35);
  color: #fda4af;
}

.model-tab-btn.highlight-tab-abl:hover {
  background: rgba(244, 63, 94, 0.15);
  border-color: #f43f5e;
  color: #fff;
}

.model-tab-btn.highlight-tab-abl.active {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.4) 0%, rgba(251, 146, 60, 0.3) 100%);
  border-color: #f43f5e;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.3);
}

.model-tab-btn.highlight-tab-abl.active .tab-count-badge {
  background: rgba(244, 63, 94, 0.3);
  color: #fff;
  border-color: #f43f5e;
}

.model-tab-btn.highlight-tab-her {
  border-color: rgba(168, 85, 247, 0.35);
  color: #d8b4fe;
}

.model-tab-btn.highlight-tab-her:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: #a855f7;
  color: #fff;
}

.model-tab-btn.highlight-tab-her.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.4) 0%, rgba(99, 102, 241, 0.3) 100%);
  border-color: #a855f7;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
}

.model-tab-btn.highlight-tab-her.active .tab-count-badge {
  background: rgba(168, 85, 247, 0.3);
  color: #fff;
  border-color: #a855f7;
}

.model-tab-btn.highlight-tab-unc {
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.model-tab-btn.highlight-tab-unc:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #fff;
}

.model-tab-btn.highlight-tab-unc.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4) 0%, rgba(0, 242, 254, 0.3) 100%);
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.model-tab-btn.highlight-tab-unc.active .tab-count-badge {
  background: rgba(16, 185, 129, 0.3);
  color: #fff;
  border-color: #10b981;
}

.btn-load-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 242, 254, 0.5) !important;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .model-specs-table {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .model-row-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .model-row-right {
    width: 100%;
    justify-content: space-between;
  }
  .model-row-pricing {
    align-items: flex-start;
  }
}

/* Portal Auth & Account Switcher Styles */
.portal-input-group {
  margin-bottom: 14px;
  text-align: left;
}
.portal-input-label {
  display: block;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.portal-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.portal-input:focus {
  outline: none;
  border-color: #00f2fe;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
  background: rgba(15, 23, 42, 0.95);
}
.portal-auth-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  text-align: left;
  transition: border-color 0.2s ease;
}
.portal-auth-card.featured {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(0, 242, 254, 0.1) 100%);
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.08);
}
.portal-auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 18px 0;
}
.portal-auth-divider::before,
.portal-auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.portal-auth-divider::before {
  margin-right: 12px;
}
.portal-auth-divider::after {
  margin-left: 12px;
}
.btn-portal-logout {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-portal-logout:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #fff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}
.btn-portal-switch {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-portal-switch:hover {
  background: rgba(99, 102, 241, 0.22);
  border-color: #818cf8;
  color: #fff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

/* Wyróżniony przycisk Panel Klienta w Navbar */
.btn-portal-nav {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%) !important;
  color: #0b0f19 !important;
  font-weight: 800 !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4) !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  font-size: 0.9rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}
.btn-portal-nav:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 0 28px rgba(0, 242, 254, 0.6) !important;
}

/* Pływający przycisk wejścia do panelu (zawsze widoczny na ekranie) */
.floating-panel-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #0b0f19;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.5);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.floating-panel-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(0, 242, 254, 0.7);
}
@media (max-width: 640px) {
  .floating-panel-btn {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 0.88rem;
  }
}

/* Chipy szybkiego wyboru kwoty w modalu doładowania */
.btn-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(0, 242, 254, 0.4);
}
.btn-chip.active {
  background: rgba(0, 242, 254, 0.18);
  border-color: #00f2fe;
  color: #00f2fe;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

/* Tabele w panelu klienta (Klucze API i Logi wykorzystania) */
.portal-table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.6);
  margin-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 242, 254, 0.3) transparent;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.portal-table th {
  background: rgba(30, 41, 59, 0.7);
  color: #94a3b8;
  padding: 11px 14px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.73rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.portal-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  vertical-align: middle;
}

.portal-table tr:last-child td {
  border-bottom: none;
}

.portal-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.btn-delete-sm {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-delete-sm:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
}
