/* LiqscoreAI - Minecraft Theme */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
  /* Minecraft Colors */
  --mc-dirt: #5d3a1a;
  --mc-dirt-light: #7a4f2a;
  --mc-grass: #4a8f29;
  --mc-grass-light: #5cb332;
  --mc-stone: #7d7d7d;
  --mc-stone-light: #9a9a9a;
  --mc-cobble: #696969;
  --mc-wood: #6b4423;
  --mc-wood-light: #8b5a2b;
  --mc-diamond: #4deeea;
  --mc-gold: #ffaa00;
  --mc-redstone: #ff0000;
  --mc-emerald: #00ff66;
  --mc-lapis: #2a59a0;
  --mc-obsidian: #1a1a2e;
  --mc-bedrock: #2d2d2d;
  
  /* UI Colors */
  --mc-bg-dark: #1a1a1a;
  --mc-bg-medium: #252525;
  --mc-bg-panel: #2d2d2d;
  --mc-bg-slot: #3d3d3d;
  --mc-border: #444444;
  --mc-border-light: #555555;
  --mc-border-dark: #1a1a1a;
  --mc-text-white: #ffffff;
  --mc-text-gray: #aaaaaa;
  --mc-text-dark: #555555;
  
  /* Gradients */
  --mc-btn-gradient: linear-gradient(180deg, #5cb332 0%, #4a8f29 100%);
  --mc-btn-gradient-hover: linear-gradient(180deg, #6dcc3a 0%, #5cb332 100%);
  --mc-panel-gradient: linear-gradient(180deg, #3d3d3d 0%, #2d2d2d 100%);
  --mc-dirt-gradient: linear-gradient(180deg, #7a4f2a 0%, #5d3a1a 100%);
  
  /* Pixel Border */
  --pixel-border: 4px solid var(--mc-border-dark);
  --pixel-border-light: 4px solid var(--mc-border-light);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Press Start 2P', cursive;
  background-color: var(--mc-bg-dark);
  background-image: 
    url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h64v64H0z' fill='%231a1a1a'/%3E%3Cpath d='M0 0h32v32H0z' fill='%23222222'/%3E%3Cpath d='M32 32h32v32H32z' fill='%23222222'/%3E%3C/svg%3E");
  color: var(--mc-text-white);
  line-height: 1.8;
  overflow-x: hidden;
  font-size: 10px;
}

/* Minecraft Background Effects */
.mc-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.mc-bg-dirt {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: var(--mc-dirt-gradient);
  background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='32' height='32' fill='%235d3a1a'/%3E%3Crect x='4' y='4' width='4' height='4' fill='%237a4f2a'/%3E%3Crect x='16' y='12' width='4' height='4' fill='%237a4f2a'/%3E%3Crect x='24' y='24' width='4' height='4' fill='%237a4f2a'/%3E%3Crect x='8' y='20' width='4' height='4' fill='%234a8f29'/%3E%3C/svg%3E");
}

.mc-bg-lava {
  position: absolute;
  left: 0;
  bottom: 160px;
  width: 100%;
  height: 46px;
  background: linear-gradient(180deg, #ffde59 0%, #ff7a00 45%, #ff2d00 100%);
  border-top: 4px solid #ffd56a;
  border-bottom: 4px solid #8c1e00;
  box-shadow: 0 0 22px rgba(255, 107, 0, 0.55);
  image-rendering: pixelated;
  animation: mcLavaFlow 3.8s linear infinite, mcLavaGlow 2.1s ease-in-out infinite;
}

.mc-bg-lava::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 216, 107, 0.85) 0,
    rgba(255, 216, 107, 0.85) 18px,
    rgba(255, 132, 0, 0.75) 18px,
    rgba(255, 132, 0, 0.75) 36px,
    rgba(255, 74, 0, 0.82) 36px,
    rgba(255, 74, 0, 0.82) 54px
  );
  animation: mcLavaFlow 2.4s linear infinite reverse;
}

.mc-bg-lava::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    #ffd56a 0,
    #ffd56a 10px,
    #ffad33 10px,
    #ffad33 20px,
    #ff7a00 20px,
    #ff7a00 30px
  );
  opacity: 0.9;
  animation: mcLavaRipple 1.25s ease-in-out infinite;
}

.mc-bg-sky {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 200px);
  background: linear-gradient(180deg, #1a1a2e 0%, #2d2d44 50%, #3d3d5c 100%);
}

.mc-floating-item {
  position: absolute;
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  animation: mcFloat 3s ease-in-out infinite;
  opacity: 0.3;
}

.mc-floating-item:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.mc-floating-item:nth-child(2) {
  top: 20%;
  right: 15%;
  animation-delay: 1s;
}

.mc-floating-item:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 2s;
}

@keyframes mcFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes mcLavaFlow {
  0% { background-position: 0 0; }
  100% { background-position: 120px 0; }
}

@keyframes mcLavaGlow {
  0%, 100% {
    box-shadow: 0 0 14px rgba(255, 107, 0, 0.42);
    filter: saturate(1);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 130, 20, 0.72);
    filter: saturate(1.12);
  }
}

@keyframes mcLavaRipple {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.86;
  }
  50% {
    transform: translateY(-2px);
    opacity: 1;
  }
}

/* Pixel Border Utility */
.mc-border {
  border: 4px solid var(--mc-border-dark);
  box-shadow: 
    inset 4px 4px 0px var(--mc-border-light),
    inset -4px -4px 0px var(--mc-border-dark);
}

.mc-border-light {
  border: 4px solid var(--mc-border-light);
  box-shadow: 
    inset 4px 4px 0px var(--mc-border-dark),
    inset -4px -4px 0px var(--mc-border-light);
}

/* Buttons - Minecraft Style */
.btn {
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  padding: 16px 24px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.1s;
  image-rendering: pixelated;
  position: relative;
  border: 4px solid #000;
  box-shadow: 
    inset 4px 4px 0px rgba(255,255,255,0.3),
    inset -4px -4px 0px rgba(0,0,0,0.5);
}

.btn-primary {
  background: var(--mc-btn-gradient);
  color: var(--mc-text-white);
  text-shadow: 2px 2px 0px #000;
}

.btn-primary:hover {
  background: var(--mc-btn-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 
    inset 4px 4px 0px rgba(255,255,255,0.4),
    inset -4px -4px 0px rgba(0,0,0,0.5),
    0 8px 0px #2d5a1a;
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 
    inset 4px 4px 0px rgba(0,0,0,0.5),
    inset -4px -4px 0px rgba(255,255,255,0.3);
}

.btn-secondary {
  background: linear-gradient(180deg, #7d7d7d 0%, #5d5d5d 100%);
  color: var(--mc-text-white);
  text-shadow: 2px 2px 0px #000;
}

.btn-secondary:hover {
  background: linear-gradient(180deg, #9a9a9a 0%, #7d7d7d 100%);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(180deg, #ff4444 0%, #cc0000 100%);
  color: var(--mc-text-white);
  text-shadow: 2px 2px 0px #000;
}

.btn-small {
  padding: 8px 12px;
  font-size: 8px;
}

.btn-large {
  padding: 20px 32px;
  font-size: 12px;
}

/* Cards - Minecraft Panel Style */
.card {
  background: var(--mc-panel-gradient);
  border: 4px solid var(--mc-border-dark);
  box-shadow: 
    inset 4px 4px 0px rgba(255,255,255,0.1),
    inset -4px -4px 0px rgba(0,0,0,0.5);
  padding: 24px;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255,255,255,0.1);
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0,0,0,0.3);
}

.card:hover {
  background: linear-gradient(180deg, #4a4a4a 0%, #3d3d3d 100%);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease;
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.feature-card,
.pricing-card,
.model-card,
.faq-item,
.stat-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover,
.pricing-card:hover,
.model-card:hover,
.faq-item:hover,
.stat-card:hover {
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-on-scroll.is-visible,
  .feature-card,
  .pricing-card,
  .model-card,
  .faq-item,
  .stat-card,
  .cta .btn-primary,
  .mc-bg-lava,
  .mc-bg-lava::before,
  .mc-bg-lava::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Navigation - Minecraft Style */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--mc-bg-panel);
  border-bottom: 4px solid var(--mc-border-dark);
  box-shadow: 
    inset 4px 4px 0px rgba(255,255,255,0.1),
    inset -4px -4px 0px rgba(0,0,0,0.5);
  z-index: 1000;
  padding: 0;
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.navbar-logo {
  font-family: 'Press Start 2P', cursive;
  font-size: 14px;
  color: var(--mc-diamond);
  text-decoration: none;
  text-shadow: 3px 3px 0px #000;
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo:hover {
  color: var(--mc-emerald);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.navbar-menu li {
  list-style: none;
}

.navbar-link {
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  color: var(--mc-text-gray);
  text-decoration: none;
  padding: 12px 16px;
  transition: all 0.1s;
  border: 2px solid transparent;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.navbar-link:hover {
  color: var(--mc-text-white);
  background: var(--mc-bg-slot);
  border: 2px solid var(--mc-border-light);
  border-bottom: 2px solid var(--mc-border-dark);
}

.navbar-link.active {
  color: var(--mc-gold);
  background: var(--mc-bg-slot);
  border: 2px solid var(--mc-border-light);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-toggle {
  display: none;
  background: var(--mc-bg-slot);
  border: 4px solid var(--mc-border-dark);
  padding: 8px;
  cursor: pointer;
}

.navbar-toggle .toggle-line {
  display: block;
  width: 24px;
  height: 4px;
  background: var(--mc-text-white);
  margin: 4px 0;
  transition: all 0.2s;
}

/* Mobile menu - hidden on desktop by default */
.mobile-menu {
  display: none;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section */
.hero {
  padding: 180px 0 80px;
  text-align: center;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  padding: 0 24px;
}

.hero-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 28px;
  color: var(--mc-text-white);
  text-shadow: 4px 4px 0px #000;
  margin-top: 20px;
  margin-bottom: 24px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-title-icon {
  display: inline-block;
  vertical-align: middle;
}

.hero-subtitle {
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  color: var(--mc-text-gray);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 2.2;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

.hero-trust {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: var(--mc-text-gray);
}

.trust-icon {
  display: inline-block;
  vertical-align: middle;
}

/* Stats Section */
.stats {
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 0 24px;
}

.stat-card {
  background: var(--mc-panel-gradient);
  border: 4px solid var(--mc-border-dark);
  box-shadow:
    inset 4px 4px 0px rgba(255,255,255,0.1),
    inset -4px -4px 0px rgba(0,0,0,0.5);
  padding: 28px 20px;
  text-align: center;
}

.stat-value {
  font-family: 'Press Start 2P', cursive;
  font-size: 28px;
  color: var(--mc-gold);
  text-shadow: 3px 3px 0px #000;
  margin-bottom: 12px;
}

.stat-label {
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  color: var(--mc-text-gray);
  line-height: 1.8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.stat-icon {
  display: inline-block;
  vertical-align: middle;
}

/* Features Section */
.features {
  padding: 80px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 20px;
  color: var(--mc-emerald);
  text-shadow: 3px 3px 0px #000;
  text-align: center;
  margin-bottom: 16px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.section-title-icon {
  display: inline-block;
  vertical-align: middle;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 0 24px;
}

.feature-card {
  background: var(--mc-panel-gradient);
  border: 4px solid var(--mc-border-dark);
  box-shadow:
    inset 4px 4px 0px rgba(255,255,255,0.1),
    inset -4px -4px 0px rgba(0,0,0,0.5);
  padding: 24px;
  text-align: center;
  transition: transform 0.1s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--mc-diamond);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
  image-rendering: pixelated;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  display: inline-block;
  vertical-align: middle;
}

.feature-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  color: var(--mc-gold);
  text-shadow: 2px 2px 0px #000;
  margin-bottom: 12px;
}

.feature-description {
  font-family: 'Press Start 2P', cursive;
  font-size: 7px;
  color: var(--mc-text-gray);
  line-height: 2;
}
/* Pricing Section */
.pricing {
  padding: 80px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding: 0 24px;
}

.pricing-card {
  background: var(--mc-panel-gradient);
  border: 4px solid var(--mc-border-dark);
  box-shadow:
    inset 4px 4px 0px rgba(255,255,255,0.1),
    inset -4px -4px 0px rgba(0,0,0,0.5);
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border-color: var(--mc-gold);
  box-shadow:
    inset 4px 4px 0px rgba(255,215,0,0.2),
    inset -4px -4px 0px rgba(0,0,0,0.5),
    0 0 20px rgba(255,215,0,0.3);
}

.pricing-card.featured::before {
  content: '⭐ POPULAR';
  position: absolute;
  top: 12px;
  right: -30px;
  background: var(--mc-gold);
  color: #000;
  font-family: 'Press Start 2P', cursive;
  font-size: 6px;
  padding: 4px 40px;
  transform: rotate(45deg);
  text-shadow: none;
}

.pricing-name {
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  color: var(--mc-diamond);
  text-shadow: 3px 3px 0px #000;
  margin-bottom: 12px;
}

.pricing-amount {
  font-family: 'Press Start 2P', cursive;
  font-size: 24px;
  color: var(--mc-emerald);
  text-shadow: 3px 3px 0px #000;
  margin-bottom: 16px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
  text-align: left;
  padding: 0 8px;
}

.pricing-features li {
  font-family: 'Press Start 2P', cursive;
  font-size: 6px;
  color: var(--mc-text-gray);
  padding: 8px 0;
  border-bottom: 2px dashed var(--mc-border-dark);
  line-height: 1.8;
}

.pricing-features li::before {
  content: '✅ ';
  color: var(--mc-emerald);
}

/* Footer */
.site-body .footer {
  background: var(--mc-bg-panel);
  border-top: 4px solid var(--mc-border-dark);
  padding: 60px 0 30px;
  width: 100%;
}

.site-body .footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  color: var(--mc-gold);
  text-shadow: 2px 2px 0px #000;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-icon {
  display: inline-block;
  vertical-align: middle;
}

.footer-section p {
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  color: var(--mc-text-gray);
  line-height: 2;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  color: var(--mc-text-gray);
  text-decoration: none;
  transition: color 0.1s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--mc-diamond);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 2px solid var(--mc-border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  color: var(--mc-text-dark);
  margin: 0;
}

.footer-payments {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.footer-payments-text {
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  color: var(--mc-text-gray);
  margin-right: 16px;
}

.footer-payments-list {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-payments-list .badge {
  font-size: 6px;
}

.footer-email {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: var(--mc-diamond);
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
}

.footer-email:hover {
  color: var(--mc-cyan);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  font-size: 24px;
  text-decoration: none;
  transition: transform 0.1s;
}

.footer-social a:hover {
  transform: scale(1.1);
}

/* Cabinet Layout */
.cabinet-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 80px;
}

/* Cabinet Mobile Toggle Button */
.cabinet-mobile-toggle {
  display: none;
  position: fixed;
  top: 90px;
  left: 16px;
  z-index: 1002;
  background: var(--mc-bg-slot);
  border: 4px solid var(--mc-border-dark);
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.cabinet-mobile-toggle:hover {
  background: var(--mc-bg-panel);
  border-color: var(--mc-border-light);
}

.cabinet-mobile-toggle .toggle-line {
  display: block;
  width: 24px;
  height: 4px;
  background: var(--mc-text-white);
  margin: 4px 0;
  transition: all 0.2s;
}

/* Sidebar Overlay for Mobile */
.cabinet-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}

.cabinet-sidebar-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.cabinet-sidebar {
  width: 280px;
  background: var(--mc-bg-panel);
  border-right: 4px solid var(--mc-border-dark);
  padding: 24px;
  position: fixed;
  top: 80px;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.cabinet-sidebar-logo {
  flex-shrink: 0;
}

.cabinet-sidebar-logo {
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  color: var(--mc-diamond);
  text-decoration: none;
  text-shadow: 3px 3px 0px #000;
  display: block;
  margin-bottom: 32px;
  text-align: center;
}

/* Sidebar Close Button - hidden on desktop */
.cabinet-sidebar-close {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--mc-bg-slot);
  border: 4px solid var(--mc-border-dark);
  color: var(--mc-text-white);
  font-family: 'Press Start 2P', cursive;
  font-size: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.1s;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Show close button on mobile */
@media (max-width: 768px) {
  .cabinet-sidebar-close {
    display: flex;
  }
}

.cabinet-sidebar-close:hover {
  background: var(--mc-bg-panel);
  border-color: var(--mc-border-light);
  transform: scale(1.1);
}

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

.cabinet-nav-item {
  margin-bottom: 8px;
}

.cabinet-nav-link {
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  color: var(--mc-text-gray);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid transparent;
  transition: all 0.1s;
}

.cabinet-nav-link:hover {
  background: var(--mc-bg-slot);
  border: 2px solid var(--mc-border-light);
  color: var(--mc-text-white);
}

.cabinet-nav-link.active {
  background: var(--mc-bg-slot);
  border: 2px solid var(--mc-border-light);
  color: var(--mc-gold);
}

.cabinet-nav-link .icon {
  font-size: 16px;
}

.cabinet-sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 2px solid var(--mc-border-dark);
  flex-shrink: 0;
}

.cabinet-main {
  flex: 1;
  margin-left: 280px;
  padding: 40px;
}

/* Cabinet Header */
.cabinet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 4px solid var(--mc-border-dark);
}

.cabinet-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 18px;
  color: var(--mc-text-white);
  text-shadow: 3px 3px 0px #000;
}

/* Balance Display */
.balance-display {
  background: var(--mc-bg-slot);
  border: 4px solid var(--mc-border-dark);
  box-shadow: 
    inset 4px 4px 0px rgba(0,0,0,0.5),
    inset -4px -4px 0px rgba(255,255,255,0.1);
  padding: 16px 24px;
  display: inline-block;
}

.balance-label {
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  color: var(--mc-text-gray);
  margin-bottom: 8px;
}

.balance-amount {
  font-family: 'Press Start 2P', cursive;
  font-size: 16px;
  color: var(--mc-emerald);
  text-shadow: 2px 2px 0px #000;
}

/* Slot Style (Minecraft Inventory) */
.mc-slot {
  width: 64px;
  height: 64px;
  background: var(--mc-bg-slot);
  border: 4px solid var(--mc-border-dark);
  box-shadow: 
    inset 4px 4px 0px rgba(0,0,0,0.5),
    inset -4px -4px 0px rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  image-rendering: pixelated;
}

/* Table - Minecraft Style */
.mc-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--mc-bg-slot);
  border: 4px solid var(--mc-border-dark);
}

.mc-table th {
  background: var(--mc-bg-panel);
  border: 2px solid var(--mc-border-dark);
  padding: 12px;
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  color: var(--mc-gold);
  text-shadow: 2px 2px 0px #000;
  text-align: left;
}

.mc-table td {
  border: 2px solid var(--mc-border-dark);
  padding: 12px;
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  color: var(--mc-text-gray);
}

.mc-table tr:hover td {
  background: var(--mc-bg-panel);
}

/* Badge */
.badge {
  font-family: 'Press Start 2P', cursive;
  font-size: 6px;
  padding: 6px 10px;
  border: 2px solid #000;
  display: inline-block;
  box-shadow: 
    inset 2px 2px 0px rgba(255,255,255,0.3),
    inset -2px -2px 0px rgba(0,0,0,0.5);
}

.badge-success {
  background: linear-gradient(180deg, #00ff66 0%, #00cc44 100%);
  color: #000;
  text-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.badge-icon {
  display: inline-block;
  vertical-align: middle;
}

.badge-warning {
  background: linear-gradient(180deg, #ffaa00 0%, #cc8800 100%);
  color: #000;
  text-shadow: none;
}

.badge-danger {
  background: linear-gradient(180deg, #ff4444 0%, #cc0000 100%);
  color: #000;
  text-shadow: none;
}

/* Input Fields */
.mc-input {
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  background: var(--mc-bg-slot);
  border: 4px solid var(--mc-border-dark);
  box-shadow: 
    inset 4px 4px 0px rgba(0,0,0,0.5),
    inset -4px -4px 0px rgba(255,255,255,0.1);
  padding: 16px;
  color: var(--mc-text-white);
  width: 100%;
  outline: none;
}

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

.mc-input::placeholder {
  color: var(--mc-text-dark);
}

/* Modal */
.mc-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.mc-modal {
  background: var(--mc-bg-panel);
  border: 4px solid var(--mc-border-dark);
  box-shadow: 
    inset 4px 4px 0px rgba(255,255,255,0.1),
    inset -4px -4px 0px rgba(0,0,0,0.5),
    0 0 40px rgba(0,0,0,0.5);
  padding: 32px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.mc-modal-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 14px;
  color: var(--mc-gold);
  text-shadow: 3px 3px 0px #000;
  margin-bottom: 24px;
  text-align: center;
}

.mc-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--mc-bg-slot);
  border: 4px solid var(--mc-border-dark);
  color: var(--mc-text-white);
  font-family: 'Press Start 2P', cursive;
  font-size: 16px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  line-height: 1;
}

/* Flash Messages */
.flash-message {
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  padding: 16px 24px;
  margin: 24px auto;
  max-width: 1280px;
  border: 4px solid;
}

.flash-notice {
  background: linear-gradient(180deg, #00ff66 0%, #00cc44 100%);
  border-color: #000;
  color: #000;
  text-shadow: none;
}

.flash-alert {
  background: linear-gradient(180deg, #ff4444 0%, #cc0000 100%);
  border-color: #000;
  color: #fff;
  text-shadow: 2px 2px 0px #000;
}

/* Section Divider - Minecraft Dirt */
.mc-divider {
  height: 32px;
  background: var(--mc-dirt-gradient);
  background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='32' height='32' fill='%235d3a1a'/%3E%3Crect x='4' y='4' width='4' height='4' fill='%237a4f2a'/%3E%3Crect x='16' y='12' width='4' height='4' fill='%237a4f2a'/%3E%3C/svg%3E");
  border-top: 4px solid var(--mc-grass);
  border-bottom: 4px solid var(--mc-border-dark);
  margin: 60px auto;
  max-width: 1280px;
}

/* Progress Bar - Minecraft Health Bar */
.mc-progress {
  height: 24px;
  background: var(--mc-bg-slot);
  border: 4px solid var(--mc-border-dark);
  position: relative;
  overflow: hidden;
}

.mc-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff4444 0%, #cc0000 100%);
  border-right: 4px solid #000;
  transition: width 0.3s;
}

.mc-progress-bar.success {
  background: linear-gradient(90deg, #00ff66 0%, #00cc44 100%);
}

.mc-progress-bar.warning {
  background: linear-gradient(90deg, #ffaa00 0%, #cc8800 100%);
}

/* Tooltip - Minecraft Item Tooltip */
.mc-tooltip {
  position: relative;
}

.mc-tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a2e;
  border: 4px solid #5d3a1a;
  padding: 8px 12px;
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  color: var(--mc-text-white);
  white-space: nowrap;
  z-index: 100;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 8px;
  }
  
  .navbar-menu {
    display: none;
  }
  
  .navbar-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 20px;
  }
  
  .cabinet-layout {
    flex-direction: column;
  }
  
  .cabinet-sidebar {
    position: relative;
    width: 100%;
    top: auto;
    left: auto;
    border-right: none;
    border-bottom: 4px solid var(--mc-border-dark);
  }
  
  .cabinet-main {
    margin-left: 0;
    padding: 24px;
  }
  
  .stats-grid,
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes mcBlockPlace {
  0% {
    transform: scale(0.5) rotate(-10deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.1) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.mc-animate-in {
  animation: mcBlockPlace 0.3s ease-out;
}

/* Scrollbar - Minecraft Style */
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

::-webkit-scrollbar-track {
  background: var(--mc-bg-slot);
  border: 2px solid var(--mc-border-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--mc-stone);
  border: 2px solid var(--mc-border-light);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--mc-stone-light);
}

/* Selection */
::selection {
  background: var(--mc-diamond);
  color: #000;
}

/* ==================== MINECRAFT CHAT STYLES ==================== */

/* Chat Page Layout */
.chat-page {
  display: flex;
  height: calc(100vh - 80px);
  margin-top: 80px;
  background: var(--mc-bg-dark);
}

/* Model Panel */
.chat-model-panel {
  width: 320px;
  background: var(--mc-bg-panel);
  border-right: 4px solid var(--mc-border-dark);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
}

.chat-model-panel.hidden {
  transform: translateX(-100%);
  position: absolute;
  z-index: 100;
}

.chat-model-panel-header {
  padding: 16px;
  border-bottom: 4px solid var(--mc-border-dark);
}

.chat-model-panel-header h2 {
  font-family: 'Press Start 2P';
  font-size: 10px;
  color: var(--mc-gold);
  text-shadow: 2px 2px 0px #000;
  margin-bottom: 12px;
}

.chat-model-search-wrap input {
  font-family: 'Press Start 2P';
  font-size: 8px;
  background: var(--mc-bg-slot);
  border: 4px solid var(--mc-border-dark);
  padding: 12px;
  color: var(--mc-text-white);
  width: 100%;
  outline: none;
}

.chat-model-search-wrap input::placeholder {
  color: var(--mc-text-dark);
}

.chat-model-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.chat-model-loading {
  text-align: center;
  padding: 40px 16px;
}

.chat-model-loading .spinner {
  width: 32px;
  height: 32px;
  border: 4px solid var(--mc-border-dark);
  border-top-color: var(--mc-diamond);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.chat-model-loading span {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: var(--mc-text-gray);
}

.chat-model-empty {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: var(--mc-text-gray);
  text-align: center;
  padding: 40px 16px;
}

/* Model Item */
.chat-model-item {
  background: var(--mc-bg-slot);
  border: 4px solid var(--mc-border-dark);
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.1s;
}

.chat-model-item:hover {
  background: var(--mc-bg-panel);
  border-color: var(--mc-border-light);
}

.chat-model-item.active {
  border-color: var(--mc-diamond);
  background: linear-gradient(180deg, rgba(77, 238, 234, 0.1) 0%, rgba(77, 238, 234, 0.05) 100%);
  box-shadow: 0 0 20px rgba(77, 238, 234, 0.2);
}

.chat-model-item-name {
  font-family: 'Press Start 2P';
  font-size: 10px;
  color: var(--mc-diamond);
  text-shadow: 2px 2px 0px #000;
  margin-bottom: 4px;
}

.chat-model-item-id {
  font-family: 'Press Start 2P';
  font-size: 6px;
  color: var(--mc-text-dark);
  margin-bottom: 8px;
  word-break: break-all;
}

.chat-model-item-prices {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.price-chip {
  font-family: 'Press Start 2P';
  font-size: 6px;
  padding: 4px 8px;
  background: var(--mc-bg-panel);
  border: 2px solid var(--mc-border-dark);
  color: var(--mc-text-gray);
  white-space: nowrap;
}

.chat-model-item-desc {
  font-family: 'Press Start 2P';
  font-size: 6px;
  color: var(--mc-text-gray);
  margin-top: 8px;
  line-height: 1.8;
}

/* Chat Area */
.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--mc-bg-dark);
}

/* Chat Header */
.chat-header {
  background: var(--mc-bg-panel);
  border-bottom: 4px solid var(--mc-border-dark);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  background: var(--mc-bg-slot);
  border: 4px solid var(--mc-border-dark);
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
}

.icon-btn:hover {
  background: var(--mc-bg-panel);
  border-color: var(--mc-border-light);
}

.icon-btn svg {
  stroke: var(--mc-text-white);
}

.chat-selected-model {
  display: flex;
  align-items: center;
}

.chat-model-name-display {
  font-family: 'Press Start 2P';
  font-size: 10px;
  color: var(--mc-diamond);
  text-shadow: 2px 2px 0px #000;
}

.chat-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chat-balance {
  font-family: 'Press Start 2P';
  font-size: 10px;
  color: var(--mc-gold);
  text-shadow: 2px 2px 0px #000;
  background: var(--mc-bg-slot);
  padding: 8px 16px;
  border: 4px solid var(--mc-border-dark);
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-welcome {
  text-align: center;
  padding: 60px 24px;
  max-width: 600px;
  margin: 0 auto;
}

.chat-welcome-icon {
  font-size: 80px;
  margin-bottom: 24px;
  image-rendering: pixelated;
}

.chat-welcome h3 {
  font-family: 'Press Start 2P';
  font-size: 14px;
  color: var(--mc-gold);
  text-shadow: 3px 3px 0px #000;
  margin-bottom: 12px;
}

.chat-welcome p {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: var(--mc-text-gray);
  line-height: 2;
  margin-bottom: 32px;
}

.chat-welcome-tips {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.chat-tip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--mc-bg-slot);
  border: 4px solid var(--mc-border-dark);
  padding: 12px 16px;
  width: 100%;
}

.chat-tip-icon {
  font-size: 20px;
}

.chat-tip span {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: var(--mc-text-gray);
  line-height: 1.8;
}

/* Message Bubbles */
.chat-msg {
  display: flex;
  gap: 12px;
  max-width: 85%;
}

.chat-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg-assistant {
  align-self: flex-start;
}

.chat-msg-avatar {
  width: 48px;
  height: 48px;
  background: var(--mc-bg-slot);
  border: 4px solid var(--mc-border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  image-rendering: pixelated;
}

.chat-msg-user .chat-msg-avatar {
  background: linear-gradient(180deg, var(--mc-lapis) 0%, var(--mc-stone) 100%);
}

.chat-msg-assistant .chat-msg-avatar {
  background: linear-gradient(180deg, var(--mc-emerald) 0%, var(--mc-stone) 100%);
}

.chat-msg-bubble {
  background: var(--mc-bg-panel);
  border: 4px solid var(--mc-border-dark);
  padding: 16px 20px;
  flex: 1;
  position: relative;
}

.chat-msg-user .chat-msg-bubble {
  background: linear-gradient(180deg, var(--mc-lapis) 0%, #1a3a5c 100%);
}

.chat-msg-content {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: var(--mc-text-white);
  line-height: 2;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.chat-msg-content strong {
  color: var(--mc-gold);
}

.chat-msg-content code {
  background: var(--mc-bg-slot);
  border: 2px solid var(--mc-border-dark);
  padding: 2px 6px;
  font-family: 'Press Start 2P';
  font-size: 7px;
  color: var(--mc-diamond);
}

.chat-msg-content pre {
  background: var(--mc-bg-slot);
  border: 4px solid var(--mc-border-dark);
  padding: 16px;
  overflow-x: auto;
  margin: 12px 0;
}

.chat-msg-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--mc-text-gray);
  font-size: 8px;
}

.chat-msg-time {
  font-family: 'Press Start 2P';
  font-size: 6px;
  color: var(--mc-text-dark);
  margin-top: 8px;
  text-align: right;
}

/* Typing Indicator */
.chat-typing-dots {
  display: flex;
  gap: 4px;
  padding: 8px 0;
}

.chat-typing-dots span {
  width: 8px;
  height: 8px;
  background: var(--mc-text-gray);
  animation: typingBounce 1.4s infinite;
}

.chat-typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-8px);
  }
}

/* Error Message */
.chat-error-msg {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: var(--mc-redstone);
  background: linear-gradient(180deg, #4a1a1a 0%, #2d1a1a 100%);
  border: 4px solid var(--mc-redstone);
  padding: 16px;
  text-align: center;
  margin: 16px auto;
  max-width: 85%;
}

/* Chat Input Area */
.chat-input-area {
  background: var(--mc-bg-panel);
  border-top: 4px solid var(--mc-border-dark);
  padding: 16px 24px;
}

.chat-input-wrap {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.chat-textarea {
  flex: 1;
  font-family: 'Press Start 2P';
  font-size: 10px;
  background: var(--mc-bg-slot);
  border: 4px solid var(--mc-border-dark);
  padding: 16px;
  color: var(--mc-text-white);
  resize: none;
  min-height: 64px;
  max-height: 200px;
  outline: none;
}

.chat-textarea::placeholder {
  color: var(--mc-text-dark);
}

.chat-textarea:focus {
  border-color: var(--mc-diamond);
}

.chat-send-btn {
  width: 64px;
  height: 64px;
  background: var(--mc-btn-gradient);
  border: 4px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.1s;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: var(--mc-btn-gradient-hover);
  transform: translateY(-2px);
}

.chat-send-btn:active {
  transform: translateY(2px);
}

.chat-send-btn svg {
  stroke: var(--mc-text-white);
}

.chat-send-btn:disabled {
  background: var(--mc-stone);
  cursor: not-allowed;
  opacity: 0.5;
}

.chat-input-info {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.chat-input-info span {
  font-family: 'Press Start 2P';
  font-size: 6px;
  color: var(--mc-text-dark);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  body {
    font-size: 7px;
  }

  .hero {
    padding: 140px 0 60px;
  }

  .hero-title {
    font-size: 18px;
  }

  .hero-subtitle {
    font-size: 7px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-trust {
    gap: 16px;
    flex-direction: column;
    align-items: center;
  }

  .stats-grid,
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .section-title {
    font-size: 16px;
  }

  .feature-card,
  .pricing-card {
    padding: 20px;
  }

  .feature-icon {
    font-size: 32px;
  }

  .navbar-container {
    padding: 0 16px;
  }

  .navbar-menu {
    display: none;
  }

  .navbar-toggle {
    display: block;
  }

  .cabinet-layout {
    flex-direction: column;
  }

  .cabinet-sidebar {
    position: relative;
    width: 100%;
    top: auto;
    left: auto;
    border-right: none;
    border-bottom: 4px solid var(--mc-border-dark);
  }

  .cabinet-main {
    margin-left: 0;
    padding: 16px;
  }

  .chat-model-panel {
    position: absolute;
    z-index: 100;
    height: 100%;
    transform: translateX(-100%);
  }

  .chat-model-panel:not(.hidden) {
    transform: translateX(0);
  }

  .chat-msg {
    max-width: 95%;
  }

  .chat-header {
    padding: 12px 16px;
  }

  .chat-messages {
    padding: 16px;
  }

  .chat-input-area {
    padding: 12px 16px;
  }

  .mc-table {
    font-size: 5px;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .pagination-link,
  .pagination-gap {
    font-size: 6px;
    padding: 6px 8px;
  }
}

/* ==================== CABINET PAGE STYLES ==================== */

.cab-page {
  padding: 24px;
}

.cab-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 4px solid var(--mc-border-dark);
}

.cab-page-title {
  font-family: 'Press Start 2P';
  font-size: 18px;
  color: var(--mc-text-white);
  text-shadow: 3px 3px 0px #000;
}

.cab-info-box {
  background: var(--mc-bg-slot);
  border: 4px solid var(--mc-border-dark);
  padding: 20px;
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cab-info-box svg {
  flex-shrink: 0;
  stroke: var(--mc-diamond);
}

.cab-info-box div {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: var(--mc-text-gray);
  line-height: 2;
}

.cab-info-box strong {
  color: var(--mc-gold);
}

.cab-info-box code {
  background: var(--mc-bg-panel);
  border: 2px solid var(--mc-border-dark);
  padding: 4px 8px;
  color: var(--mc-diamond);
}

/* API Keys List */
.api-keys-full-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.api-key-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.api-key-masked {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: var(--mc-diamond);
  word-break: break-all;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  background: var(--mc-bg-panel);
  border: 4px solid var(--mc-border-dark);
}

.empty-icon {
  font-size: 80px;
  margin-bottom: 24px;
  image-rendering: pixelated;
}

.empty-state h3 {
  font-family: 'Press Start 2P';
  font-size: 14px;
  color: var(--mc-gold);
  text-shadow: 3px 3px 0px #000;
  margin-bottom: 12px;
}

.empty-state p {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: var(--mc-text-gray);
  line-height: 2;
  margin-bottom: 32px;
}

/* Toast Notifications */
.toast {
  animation: toastSlide 0.3s ease-out;
}

@keyframes toastSlide {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-box {
  background: var(--mc-bg-panel);
  border: 4px solid var(--mc-border-dark);
  box-shadow: 
    inset 4px 4px 0px rgba(255,255,255,0.1),
    inset -4px -4px 0px rgba(0,0,0,0.5),
    0 0 40px rgba(0,0,0,0.5);
  padding: 32px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--mc-border-dark);
}

.modal-header h3 {
  font-family: 'Press Start 2P';
  font-size: 14px;
  color: var(--mc-gold);
  text-shadow: 3px 3px 0px #000;
}

.modal-header button {
  background: var(--mc-bg-slot);
  border: 4px solid var(--mc-border-dark);
  color: var(--mc-text-white);
  font-family: 'Press Start 2P';
  font-size: 16px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: var(--mc-text-gray);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: var(--mc-text-gray);
  display: block;
  margin-bottom: 8px;
}

.form-input {
  font-family: 'Press Start 2P';
  font-size: 10px;
  background: var(--mc-bg-slot);
  border: 4px solid var(--mc-border-dark);
  padding: 16px;
  color: var(--mc-text-white);
  width: 100%;
  outline: none;
}

.form-input:focus {
  border-color: var(--mc-diamond);
}

.form-input::placeholder {
  color: var(--mc-text-dark);
}

.form-hint {
  font-family: 'Press Start 2P';
  font-size: 6px;
  color: var(--mc-text-dark);
  margin-top: 8px;
}

.form-error {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: var(--mc-redstone);
  margin-top: 16px;
}

/* Auth: загрузочный спиннер в кнопке */
.auth-spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

/* Buttons */
.btn-sm {
  font-family: 'Press Start 2P';
  font-size: 8px;
  padding: 8px 12px;
  border: 4px solid #000;
  cursor: pointer;
  transition: all 0.1s;
}

.btn-danger {
  background: linear-gradient(180deg, #ff4444 0%, #cc0000 100%);
  color: var(--mc-text-white);
  text-shadow: 2px 2px 0px #000;
}

.btn-danger:hover {
  background: linear-gradient(180deg, #ff6666 0%, #dd0000 100%);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(180deg, #00ff66 0%, #00cc44 100%);
  color: #000;
}

.btn-success:hover {
  background: linear-gradient(180deg, #00ff88 0%, #00dd66 100%);
  transform: translateY(-2px);
}

/* Badge Styles */
.badge {
  font-family: 'Press Start 2P';
  font-size: 6px;
  padding: 6px 10px;
  border: 2px solid #000;
  display: inline-block;
  box-shadow: 
    inset 2px 2px 0px rgba(255,255,255,0.3),
    inset -2px -2px 0px rgba(0,0,0,0.5);
      display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0 auto;
    justify-content: center;
}

.badge-success {
  background: linear-gradient(180deg, #00ff66 0%, #00cc44 100%);
  color: #000;
  text-shadow: none;
}

.badge-danger {
  background: linear-gradient(180deg, #ff4444 0%, #cc0000 100%);
  color: #fff;
  text-shadow: 2px 2px 0px #000;
}

.badge-warning {
  background: linear-gradient(180deg, #ffaa00 0%, #cc8800 100%);
  color: #000;
  text-shadow: none;
}

/* Text Utilities */
.text-muted {
  color: var(--mc-text-dark);
}

/* New Key Alert */
.new-key-alert {
  background: linear-gradient(180deg, rgba(255, 170, 0, 0.1) 0%, rgba(255, 170, 0, 0.05) 100%);
  border: 4px solid var(--mc-gold);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.new-key-alert svg {
  flex-shrink: 0;
  stroke: var(--mc-gold);
}

.new-key-alert div {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: var(--mc-text-gray);
  line-height: 1.8;
}

.new-key-value {
  background: var(--mc-bg-slot);
  border: 4px solid var(--mc-diamond);
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.new-key-value code {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: var(--mc-diamond);
  word-break: break-all;
}

/* Responsive */
@media (max-width: 768px) {
  .cab-page {
    padding: 16px;
  }
  
  .cab-page-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .cab-info-box {
    flex-direction: column;
    text-align: center;
  }
  
  .api-key-card-header,
  .api-key-card-body,
  .api-key-display {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==================== DOCUMENTATION STYLES ==================== */

.docs-page {
  max-width: 1000px;
}

.docs-toc {
  background: var(--mc-bg-panel);
  border: 4px solid var(--mc-border-dark);
  padding: 20px;
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.docs-toc a {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: var(--mc-text-gray);
  text-decoration: none;
  padding: 8px 16px;
  border: 2px solid var(--mc-border-dark);
  background: var(--mc-bg-slot);
  transition: all 0.1s;
}

.docs-toc a:hover {
  background: var(--mc-bg-panel);
  border-color: var(--mc-diamond);
  color: var(--mc-diamond);
}

.docs-section {
  scroll-margin-top: 24px;
}

.docs-section h2 {
  font-family: 'Press Start 2P';
  font-size: 14px;
  color: var(--mc-emerald);
  text-shadow: 3px 3px 0px #000;
  margin-bottom: 16px;
}

.docs-section h3 {
  font-family: 'Press Start 2P';
  font-size: 10px;
  color: var(--mc-gold);
  text-shadow: 2px 2px 0px #000;
  margin-top: 32px;
  margin-bottom: 12px;
}

.docs-section p {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: var(--mc-text-gray);
  line-height: 2;
  margin-bottom: 16px;
}

.docs-section code {
  font-family: 'Press Start 2P';
  font-size: 7px;
  color: var(--mc-diamond);
  background: var(--mc-bg-slot);
  padding: 2px 6px;
  border: 2px solid var(--mc-border-dark);
}

.docs-section pre {
  background: var(--mc-bg-slot);
  border: 4px solid var(--mc-border-dark);
  padding: 16px;
  overflow-x: auto;
  margin: 12px 0;
}

.docs-section pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--mc-text-white);
  font-size: 7px;
  line-height: 1.8;
}

/* Code Block */
.code-block {
  position: relative;
  margin: 16px 0;
}

.code-block .code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--mc-bg-panel);
  border: 2px solid var(--mc-border-dark);
  border-bottom: none;
}

.code-block .code-header span {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: var(--mc-text-dark);
}

.code-block pre {
  margin: 0;
  border: 4px solid var(--mc-border-dark);
  border-top: none;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.pagination-link,
.pagination-gap {
  font-family: 'Press Start 2P';
  font-size: 8px;
  padding: 8px 12px;
  border: 4px solid var(--mc-border-dark);
  text-decoration: none;
  transition: all 0.1s;
  display: inline-block;
  min-width: 40px;
  text-align: center;
}

.pagination-link {
  background: var(--mc-bg-slot);
  color: var(--mc-text-gray);
}

.pagination-link:hover {
  background: var(--mc-bg-panel);
  border-color: var(--mc-diamond);
  color: var(--mc-diamond);
  transform: translateY(-2px);
}

.pagination-link.current {
  background: var(--mc-btn-gradient);
  color: var(--mc-text-white);
  border-color: #000;
  text-shadow: 2px 2px 0px #000;
  cursor: default;
}

.pagination-link[rel="prev"],
.pagination-link[rel="next"] {
  background: var(--mc-bg-panel);
  color: var(--mc-gold);
  min-width: 60px;
}

.pagination-gap {
  background: var(--mc-bg-slot);
  color: var(--mc-text-dark);
  cursor: default;
}

/* Mobile Responsive for Footer */
@media (max-width: 768px) {
  .site-body .footer {
    margin-top: 40px;
    padding: 40px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-payments {
    justify-content: center;
  }

  .footer-payments-text {
    margin-right: 0;
    margin-bottom: 12px;
    display: block;
  }
}

/* Mobile Responsive for Docs */
@media (max-width: 768px) {
  .docs-toc {
    flex-direction: column;
  }

  .docs-toc a {
    text-align: center;
  }

  .code-block .code-header {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .docs-section h2 {
    font-size: 12px;
  }

  .docs-section p {
    font-size: 6px;
  }

  .mc-table {
    font-size: 6px;
  }
}

/* ==================== PAYMENTS PAGE STYLES ==================== */

.payments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.payment-card {
  background: var(--mc-bg-panel);
  border: 4px solid var(--mc-border-dark);
  padding: 20px;
}

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

.payment-amount {
  font-family: 'Press Start 2P';
  font-size: 14px;
  color: var(--mc-emerald);
  text-shadow: 3px 3px 0px #000;
}

.payment-status {
  font-family: 'Press Start 2P';
  font-size: 8px;
  padding: 6px 12px;
  border: 2px solid #000;
}

.payment-status-succeeded {
  background: linear-gradient(180deg, #00ff66 0%, #00cc44 100%);
  color: #000;
}

.payment-status-pending {
  background: linear-gradient(180deg, #ffaa00 0%, #cc8800 100%);
  color: #000;
}

.payment-status-failed {
  background: linear-gradient(180deg, #ff4444 0%, #cc0000 100%);
  color: #fff;
  text-shadow: 2px 2px 0px #000;
}

.payment-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.payment-detail {
  font-family: 'Press Start 2P';
  font-size: 6px;
  color: var(--mc-text-dark);
}

.payment-detail span {
  display: block;
  color: var(--mc-text-gray);
  margin-top: 4px;
}

/* ==================== PRICING PAGE STYLES ==================== */

.pricing-page {
  padding: 160px 0 80px;
}

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

.pricing-info-card {
  margin-bottom: 48px;
  text-align: center;
}

.pricing-models-grid {
  margin-bottom: 60px;
}

.pricing-card .pricing-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: 'Press Start 2P';
  font-size: 6px;
  color: var(--mc-gold);
}

.free-tier {
  border-color: var(--mc-emerald);
}

.free-tier-note {
  font-family: 'Press Start 2P';
  font-size: 6px;
  color: var(--mc-text-dark);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px dashed var(--mc-border-dark);
}

.pricing-cta {
  text-align: center;
  margin-top: 60px;
}

/* ==================== LEGAL PAGES STYLES ==================== */

.legal-page {
  padding: 160px 0 80px;
  min-height: 100vh;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-title {
  font-family: 'Press Start 2P';
  font-size: 20px;
  color: var(--mc-emerald);
  text-shadow: 3px 3px 0px #000;
  margin-bottom: 16px;
}

.legal-date {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: var(--mc-text-dark);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px dashed var(--mc-border-dark);
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section h2 {
  font-family: 'Press Start 2P';
  font-size: 12px;
  color: var(--mc-gold);
  text-shadow: 2px 2px 0px #000;
  margin-bottom: 16px;
}

.legal-section p {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: var(--mc-text-gray);
  line-height: 2;
  margin-bottom: 12px;
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.legal-list li {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: var(--mc-text-gray);
  padding: 8px 0 8px 24px;
  position: relative;
  line-height: 2;
}

.legal-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--mc-diamond);
}

.legal-link {
  font-family: 'Press Start 2P';
  font-size: 8px;
  color: var(--mc-diamond);
  text-decoration: none;
}

.legal-link:hover {
  color: var(--mc-cyan);
  text-decoration: underline;
}

/* Mobile Responsive for Legal Pages */
@media (max-width: 768px) {
  .legal-page {
    padding: 120px 0 60px;
  }

  .legal-title {
    font-size: 16px;
  }

  .legal-section h2 {
    font-size: 10px;
  }

  .legal-list li {
    font-size: 7px;
    padding-left: 20px;
  }
}

/* ── Missing classes for home.html.erb ── */

/* Models Category */
.models-category {
  margin-bottom: 64px;
}
.models-category:last-child {
  margin-bottom: 0;
}
.models-category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 32px;
}
.models-category-icon {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.models-category-title {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--mc-text-primary);
  text-shadow: 2px 2px 0px #000;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--mc-panel);
  border: 3px solid var(--mc-border);
  padding: 24px;
  margin-bottom: 12px;
  image-rendering: pixelated;
  transition: border-color 0.2s;
}
.faq-item:hover {
  border-color: var(--mc-diamond);
}
.faq-question {
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  color: var(--mc-gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-question img {
  display: inline-block;
  vertical-align: middle;
}

.faq-answer {
  color: var(--mc-text-secondary);
  line-height: 1.8;
  font-size: 9px;
}

/* CTA Section */
.cta {
  padding: 80px 32px;
  position: relative;
  overflow: hidden;
}
.cta-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--mc-grass);
  border: 4px solid var(--mc-border);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  box-shadow: 8px 8px 0px #000;
  image-rendering: pixelated;
}
.cta-content {
  position: relative;
  z-index: 1;
}
.cta-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--mc-text-primary);
  text-shadow: 3px 3px 0px #000;
}
.cta-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 9px;
  margin-bottom: 40px;
  line-height: 1.8;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

@keyframes ctaPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(77, 238, 234, 0.22);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(77, 238, 234, 0);
  }
}

.cta .btn-primary {
  animation: ctaPulse 2.8s ease-in-out infinite;
}

.cta .btn-primary:hover {
  animation-play-state: paused;
}

.cta .btn-secondary {
  background: rgba(0, 0, 0, 0.3);
  border-color: var(--mc-border);
}
.cta .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* =====================================================
   MOBILE RESPONSIVE DESIGN - COMPREHENSIVE BREAKPOINTS
   ===================================================== */

/* ============================================
   TABLET - 1024px and below
   ============================================ */
@media (max-width: 1024px) {
  /* Adjust container padding */
  .container {
    padding: 0 16px;
  }

  /* Hero section adjustments */
  .hero {
    padding: 160px 0 70px;
  }

  .hero-title {
    font-size: clamp(20px, 4vw, 24px);
  }

  .hero-subtitle {
    font-size: clamp(7px, 2vw, 8px);
  }

  /* Cabinet sidebar - reduce width on tablet */
  .cabinet-sidebar {
    width: 240px;
  }

  .cabinet-main {
    margin-left: 240px;
    padding: 32px;
  }

  /* Chat model panel - reduce width */
  .chat-model-panel {
    width: 280px;
  }

  /* Tables - enable horizontal scroll wrapper */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mc-table {
    min-width: 600px;
  }
}

/* ============================================
   MOBILE LANDSCAPE - 768px and below
   ============================================ */
@media (max-width: 768px) {
  /* Base font size adjustment */
  body {
    font-size: 8px;
  }

  /* Navbar - show mobile toggle */
  .navbar-menu {
    display: none;
  }

  .navbar-actions {
    display: none;
  }

  .navbar-toggle {
    display: block;
    background: var(--mc-bg-slot);
    border: 4px solid var(--mc-border-dark);
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.1s;
  }

  .navbar-toggle:hover {
    background: var(--mc-bg-panel);
    border-color: var(--mc-border-light);
  }

  .navbar-toggle .toggle-line {
    display: block;
    width: 24px;
    height: 4px;
    background: var(--mc-text-white);
    margin: 4px 0;
    transition: all 0.2s;
  }

  /* Mobile menu - proper styling */
  .mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--mc-bg-panel);
    border-bottom: 4px solid var(--mc-border-dark);
    padding: 16px 24px 24px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    z-index: 999;
  }

  .mobile-menu.active {
    display: block;
    animation: slideDown 0.2s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .mobile-menu .navbar-link {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 8px;
    border: 2px solid var(--mc-border-dark);
    background: var(--mc-bg-slot);
    text-align: center;
  }

  .mobile-menu .navbar-link:hover {
    background: var(--mc-bg-panel);
    border-color: var(--mc-border-light);
  }

  .mobile-menu .navbar-link-img {
    margin-right: 5px;
  }

  .mobile-menu-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .mobile-menu-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Hero section */
  .hero {
    padding: 120px 0 50px;
  }

  .hero-title {
    font-size: clamp(16px, 5vw, 20px);
  }

  .hero-subtitle {
    font-size: clamp(6px, 2vw, 7px);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero-trust {
    gap: 12px;
    flex-direction: column;
    align-items: center;
  }

  /* Stats grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
  }

  .stat-card {
    padding: 20px 12px;
  }

  .stat-value {
    font-size: 20px;
  }

  .stat-label {
    font-size: 7px;
  }

  /* Features grid */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
  }

  .feature-card {
    padding: 20px;
  }

  .feature-icon {
    font-size: 32px;
  }

  .feature-title {
    font-size: 9px;
  }

  .feature-description {
    font-size: 6px;
  }

  /* Pricing grid */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
  }

  .pricing-card {
    padding: 20px;
  }

  .pricing-name {
    font-size: 11px;
  }

  .pricing-amount {
    font-size: 20px;
  }

  .pricing-features li {
    font-size: 6px;
  }

  /* Section titles */
  .section-title {
    font-size: clamp(14px, 4vw, 18px);
  }

  /* Footer */
  .site-body .footer {
    margin-top: 40px;
    padding: 40px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-payments {
    justify-content: center;
  }

  .footer-payments-text {
    margin-right: 0;
    margin-bottom: 12px;
    display: block;
  }

  /* Cabinet layout - sidebar becomes slide-in menu */
  .cabinet-layout {
    flex-direction: column;
    padding-top: 0;
  }

  /* Show mobile toggle button */
  .cabinet-mobile-toggle {
    display: block;
    top: 16px;
    z-index: 1002;
  }

  .cabinet-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--mc-bg-panel);
    border-right: 4px solid var(--mc-border-dark);
    border-bottom: none;
    z-index: 1001;
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 80px 24px 24px;
  }

  .cabinet-sidebar.active {
    transform: translateX(0);
    box-shadow: 4px 0 20px rgba(0,0,0,0.5);
  }

  /* Sidebar overlay should be below sidebar but above main content */
  .cabinet-sidebar-overlay {
    z-index: 1000;
    top: 0;
  }

  .cabinet-sidebar-overlay.active {
    display: block;
  }

  .cabinet-sidebar-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .cabinet-sidebar-logo {
    font-size: 10px;
    margin-bottom: 24px;
  }

  .cabinet-nav-link {
    font-size: 8px;
    padding: 14px 16px;
  }

  .cabinet-sidebar-footer {
    position: static;
    padding-top: 24px;
    border-top: 2px solid var(--mc-border-dark);
    margin-top: 24px;
  }

  .cabinet-main {
    margin-left: 0;
    padding: 72px 16px 24px;
  }

  .cabinet-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .cabinet-title {
    font-size: 14px;
  }

  .balance-display {
    padding: 12px 16px;
  }

  .balance-amount {
    font-size: 14px;
  }

  /* Tables - responsive wrapper */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
  }

  .mc-table {
    min-width: 500px;
    font-size: 6px;
  }

  .mc-table th {
    font-size: 7px;
    padding: 10px 8px;
  }

  .mc-table td {
    font-size: 6px;
    padding: 10px 8px;
  }

  /* Modals */
  .mc-modal {
    width: 95%;
    max-width: none;
    padding: 24px 16px;
    max-height: 85vh;
  }

  .mc-modal-title {
    font-size: 12px;
  }

  .mc-modal-close {
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  /* Buttons - touch-friendly sizes */
  .btn {
    padding: 14px 20px;
    font-size: 9px;
    min-height: 44px;
  }

  .btn-small {
    padding: 10px 14px;
    font-size: 8px;
    min-height: 38px;
  }

  .btn-large {
    padding: 18px 28px;
    font-size: 11px;
    min-height: 50px;
  }

  /* Inputs - touch-friendly */
  .mc-input,
  .form-input {
    font-size: 9px;
    padding: 14px;
    min-height: 44px;
  }

  /* Chat interface */
  .chat-page {
    height: calc(100vh - 80px);
    margin-top: 80px;
  }

  .chat-model-panel {
    position: fixed;
    left: -100%;
    top: 80px;
    height: calc(100vh - 80px);
    width: 280px;
    z-index: 900;
    transition: transform 0.3s ease-in-out;
  }

  .chat-model-panel:not(.hidden) {
    transform: translateX(100%);
  }

  .chat-header {
    padding: 12px 16px;
  }

  .chat-model-name-display {
    font-size: 9px;
  }

  .chat-balance {
    font-size: 9px;
    padding: 6px 12px;
  }

  .chat-messages {
    padding: 16px;
  }

  .chat-msg {
    max-width: 95%;
  }

  .chat-msg-avatar {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .chat-msg-bubble {
    padding: 12px 16px;
  }

  .chat-msg-content {
    font-size: 7px;
  }

  .chat-input-area {
    padding: 12px 16px;
  }

  .chat-textarea {
    font-size: 9px;
    padding: 12px;
    min-height: 56px;
  }

  .chat-send-btn {
    width: 56px;
    height: 56px;
  }

  /* Pagination */
  .pagination {
    gap: 6px;
  }

  .pagination-link,
  .pagination-gap {
    font-size: 6px;
    padding: 6px 10px;
    min-width: 34px;
  }

  /* Flash messages */
  .flash-message {
    font-size: 7px;
    padding: 12px 16px;
    margin: 16px auto;
  }

  .flash-message button {
    margin-left: 8px;
  }

  /* Cab page styles */
  .cab-page {
    padding: 16px;
  }

  .cab-page-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .cab-page-title {
    font-size: 14px;
  }

  .cab-info-box {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }

  .cab-info-box svg {
    width: 32px;
    height: 32px;
  }

  /* API keys */
  .api-key-display {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Payment cards */
  .payment-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .payment-amount {
    font-size: 12px;
  }

  .payment-details {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Documentation */
  .docs-toc {
    flex-direction: column;
    padding: 16px;
  }

  .docs-toc a {
    font-size: 7px;
    padding: 10px 12px;
    text-align: center;
  }

  .docs-section h2 {
    font-size: 12px;
  }

  .docs-section h3 {
    font-size: 9px;
  }

  .docs-section p {
    font-size: 7px;
  }

  .docs-section pre {
    padding: 12px;
    font-size: 6px;
  }

  .code-block .code-header {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 8px;
  }

  /* Legal pages */
  .legal-page {
    padding: 120px 0 60px;
  }

  .legal-title {
    font-size: 16px;
  }

  .legal-section h2 {
    font-size: 10px;
  }

  .legal-section p {
    font-size: 7px;
  }

  .legal-list li {
    font-size: 7px;
    padding-left: 20px;
  }

  /* Pricing page */
  .pricing-page {
    padding: 120px 0 60px;
  }

  .pricing-page .section-header {
    margin-bottom: 32px;
  }

  .cta {
    padding: 60px 20px;
  }

  .cta-card {
    padding: 40px 20px;
  }

  .cta-title {
    font-size: 14px;
  }

  .cta-subtitle {
    font-size: 8px;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  /* Models category */
  .models-category-header {
    padding: 0 16px;
    margin-bottom: 24px;
  }

  .models-category-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .models-category-title {
    font-size: 12px;
  }

  /* FAQ */
  .faq-item {
    padding: 16px;
    margin-bottom: 10px;
  }

  .faq-question {
    font-size: 9px;
  }

  .faq-answer {
    font-size: 7px;
  }

  /* Empty states */
  .empty-state {
    padding: 40px 16px;
  }

  .empty-icon {
    font-size: 60px;
  }

  .empty-state h3 {
    font-size: 12px;
  }

  .empty-state p {
    font-size: 7px;
  }

  /* Progress bars */
  .mc-progress {
    height: 20px;
  }

  /* Badges */
  .badge {
    font-size: 6px;
    padding: 5px 8px;
  }

  /* MC slot */
  .mc-slot {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }
}

/* ============================================
   MOBILE PORTRAIT - 480px and below
   ============================================ */
@media (max-width: 480px) {
  /* Base adjustments */
  body {
    font-size: 7px;
  }

  /* Navbar */
  .navbar-container {
    padding: 0 12px;
    height: 70px;
  }

  .navbar-logo {
    font-size: 10px;
  }

  .navbar-toggle {
    padding: 6px 10px;
  }

  .navbar-toggle .toggle-line {
    width: 20px;
    height: 3px;
  }

  .mobile-menu {
    top: 70px;
    padding: 12px 16px 20px;
  }

  /* Cabinet mobile toggle */
  .cabinet-mobile-toggle {
    top: 16px;
    left: 12px;
    padding: 6px 10px;
    z-index: 1002;
  }

  .cabinet-mobile-toggle .toggle-line {
    width: 20px;
    height: 3px;
  }

  /* Cabinet layout */
  .cabinet-layout {
    padding-top: 0;
  }

  .cabinet-sidebar {
    top: 0;
    width: 100%;
    max-width: none;
    left: 0;
    transform: translateX(-100%);
    height: 100vh;
    background: var(--mc-bg-panel);
    z-index: 1001;
    padding: 70px 24px 24px;
  }

  .cabinet-sidebar.active {
    transform: translateX(0);
    z-index: 1001;
  }

  .cabinet-sidebar-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .cabinet-sidebar-logo {
    font-size: 9px;
  }

  /* Chat page */
  .chat-page {
    margin-top: 70px;
    height: calc(100vh - 70px);
  }

  .chat-model-panel {
    top: 70px;
    height: calc(100vh - 70px);
    width: 100%;
  }

  /* Hero */
  .hero {
    padding: 100px 0 40px;
  }

  .hero-title {
    font-size: clamp(14px, 6vw, 18px);
  }

  .hero-subtitle {
    font-size: clamp(6px, 2.5vw, 7px);
  }

  /* Stats grid - single column on small screens */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-value {
    font-size: 18px;
  }

  .stat-label {
    font-size: 6px;
  }

  /* Pricing cards */
  .pricing-card.featured::before {
    font-size: 5px;
    padding: 3px 30px;
  }

  .pricing-amount {
    font-size: 18px;
  }

  /* Footer */
  .site-body .footer {
    padding: 30px 0 16px;
  }

  .footer-section h4 {
    font-size: 9px;
  }

  .footer-section p,
  .footer-links a {
    font-size: 7px;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-social a {
    font-size: 20px;
  }

  /* Cabinet main */
  .cabinet-main {
    padding: 16px 12px;
  }

  .cabinet-title {
    font-size: 12px;
  }

  .balance-amount {
    font-size: 12px;
  }

  /* Tables - smaller font */
  .mc-table {
    min-width: 400px;
    font-size: 5px;
  }

  .mc-table th,
  .mc-table td {
    padding: 8px 6px;
  }

  /* Modals */
  .mc-modal {
    padding: 20px 12px;
    width: 95%;
  }

  .mc-modal-title {
    font-size: 11px;
  }

  /* Buttons */
  .btn {
    padding: 12px 16px;
    font-size: 8px;
  }

  .btn-small {
    padding: 8px 12px;
    font-size: 7px;
  }

  .btn-large {
    padding: 16px 24px;
    font-size: 10px;
  }

  /* Inputs */
  .mc-input,
  .form-input {
    font-size: 8px;
    padding: 12px;
  }

  /* Chat */
  .chat-msg-content {
    font-size: 6px;
  }

  .chat-textarea {
    font-size: 8px;
  }

  .chat-send-btn {
    width: 48px;
    height: 48px;
  }

  /* Pagination */
  .pagination-link,
  .pagination-gap {
    font-size: 5px;
    padding: 5px 8px;
    min-width: 28px;
  }

  /* Flash messages */
  .flash-message {
    font-size: 6px;
    padding: 10px 12px;
  }

  /* Cab info box */
  .cab-info-box {
    padding: 12px;
  }

  .cab-info-box div {
    font-size: 6px;
  }

  /* Payment amount */
  .payment-amount {
    font-size: 11px;
  }

  /* Documentation */
  .docs-section h2 {
    font-size: 11px;
  }

  .docs-section p,
  .docs-section code {
    font-size: 6px;
  }

  .docs-section pre {
    font-size: 5px;
    padding: 10px;
  }

  /* Legal pages */
  .legal-title {
    font-size: 14px;
  }

  .legal-section h2 {
    font-size: 9px;
  }

  .legal-section p,
  .legal-list li {
    font-size: 6px;
  }

  /* FAQ */
  .faq-question {
    font-size: 8px;
  }

  .faq-answer {
    font-size: 6px;
  }

  /* Empty states */
  .empty-icon {
    font-size: 48px;
  }

  .empty-state h3 {
    font-size: 11px;
  }

  .empty-state p {
    font-size: 6px;
  }

  /* MC slot */
  .mc-slot {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  /* Progress bar */
  .mc-progress {
    height: 18px;
  }

  /* Badges */
  .badge {
    font-size: 5px;
    padding: 4px 6px;
  }

  /* Feature cards */
  .feature-icon {
    font-size: 28px;
  }

  .feature-title {
    font-size: 8px;
  }

  .feature-description {
    font-size: 5px;
  }

  /* Models category */
  .models-category-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .models-category-title {
    font-size: 10px;
  }

  /* CTA */
  .cta-card {
    padding: 30px 16px;
  }

  .cta-title {
    font-size: 12px;
  }

  .cta-subtitle {
    font-size: 7px;
  }
}

/* ============================================
   SMALL MOBILE - 375px and below
   ============================================ */
@media (max-width: 375px) {
  /* Base */
  body {
    font-size: 6px;
  }

  /* Navbar */
  .navbar-logo {
    font-size: 9px;
  }

  /* Hero */
  .hero-title {
    font-size: 14px;
  }

  .hero-subtitle {
    font-size: 6px;
  }

  /* Stats */
  .stat-value {
    font-size: 16px;
  }

  .stat-label {
    font-size: 5px;
  }

  /* Pricing */
  .pricing-amount {
    font-size: 16px;
  }

  .pricing-features li {
    font-size: 5px;
  }

  /* Cabinet */
  .cabinet-title {
    font-size: 11px;
  }

  .balance-amount {
    font-size: 11px;
  }

  /* Tables */
  .mc-table {
    min-width: 350px;
  }

  /* Chat */
  .chat-msg-content {
    font-size: 5px;
  }

  /* Documentation */
  .docs-section p,
  .docs-section code {
    font-size: 5px;
  }

  /* Legal */
  .legal-section p,
  .legal-list li {
    font-size: 5px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .navbar,
  .cabinet-sidebar,
  .footer,
  .btn,
  .mc-bg,
  .chat-model-panel,
  .chat-input-area {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 10pt;
  }

  .cabinet-main {
    margin-left: 0;
    padding: 0;
  }

  .card,
  .mc-modal {
    border: 1px solid #000;
    box-shadow: none;
  }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets */
  .btn {
    min-height: 48px;
    padding: 16px 20px;
  }

  .btn-small {
    min-height: 40px;
  }

  .navbar-link {
    padding: 14px 16px;
  }

  .cabinet-nav-link {
    padding: 16px;
  }

  /* Remove hover effects on touch devices */
  .btn:hover,
  .card:hover,
  .feature-card:hover,
  .navbar-link:hover,
  .cabinet-nav-link:hover {
    transform: none;
  }

  /* Ensure inputs are large enough */
  .mc-input,
  .form-input,
  .chat-textarea {
    min-height: 48px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* ============================================
   LANDSCAPE MOBILE OPTIMIZATIONS
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 100px 0 40px;
  }

  .cabinet-sidebar {
    width: 220px;
  }

  .cabinet-main {
    margin-left: 220px;
  }

  .chat-model-panel {
    width: 240px;
  }

  .mc-modal {
    max-height: 90vh;
    padding: 20px;
  }

  .chat-messages {
    max-height: calc(100vh - 200px);
  }
}

/* Payment Methods */
.payment-methods-list {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.payment-method-card {
  font-family: 'Press Start 2P', cursive;
  font-size: 6px;
  padding: 8px 12px;
  border: 2px solid #000;
  display: inline-block;
  box-shadow: 
    inset 2px 2px 0px rgba(255,255,255,0.3),
    inset -2px -2px 0px rgba(0,0,0,0.5);
  margin-right: 8px;
}

.payment-method-cards {
  background: linear-gradient(180deg, #ffaa00 0%, #cc8800 100%);
  color: #000;
  text-shadow: none;
}

.payment-method-sbp {
  background: linear-gradient(180deg, #00ff66 0%, #00cc44 100%);
  color: #000;
  text-shadow: none;
}

.payment-method-invoice {
  background: linear-gradient(180deg, #6b8cff 0%, #4466cc 100%);
  color: #fff;
  text-shadow: 2px 2px 0px #000;
}

.payment-method-crypto {
  background: linear-gradient(180deg, #ffaa00 0%, #cc8800 100%);
  color: #000;
  text-shadow: none;
}

/* ============================================================
   BLOG - PUBLIC PAGES
   ============================================================ */

/* ============================================================
   BLOG INDEX PAGE  (bl-*)
   ============================================================ */

.bl-page {
  min-height: 100vh;
  background: var(--mc-bg-dark);
}

/* ── Hero ── */
.bl-hero {
  padding: 72px 24px 56px;
  text-align: center;
  background: linear-gradient(160deg, #0d0d1a 0%, #12121f 60%, var(--mc-bg-dark) 100%);
  border-bottom: 4px solid var(--mc-border);
  position: relative;
  overflow: hidden;
}
.bl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,170,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.bl-hero-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}
.bl-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--mc-gold);
  border: 2px solid rgba(255,170,0,0.4);
  background: rgba(255,170,0,0.07);
  padding: 8px 16px;
  margin-bottom: 24px;
  margin-top: 60px;
}
.bl-hero-badge img { image-rendering: pixelated; }
.bl-hero-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(18px, 3.5vw, 28px);
  color: var(--mc-gold);
  text-shadow: 4px 4px 0 #000;
  line-height: 1.5;
  margin: 0 0 20px;
}
.bl-hero-sub {
  font-family: monospace;
  font-size: 14px;
  color: #999;
  line-height: 2;
  margin: 0;
}

/* ── Section ── */
.bl-section {
  padding: 56px 0 80px;
}
.bl-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Grid ── */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 52px;
}

/* Featured first card spans 2 cols — REMOVED, all cards equal */

@media (max-width: 960px) {
  .bl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .bl-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Card ── */
.bl-card {
  background: var(--mc-bg-medium);
  border: 3px solid var(--mc-border);
  box-shadow: 5px 5px 0 #000;
  display: flex;
  flex-direction: column;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
  overflow: hidden;
}
.bl-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 #000;
  border-color: var(--mc-gold);
}

.bl-card-img-wrap {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0e0e18;
  text-decoration: none;
}
.bl-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s;
}
.bl-card:hover .bl-card-img { transform: scale(1.05); }
.bl-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}
.bl-card-img-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0e0e18 0%, #151525 100%);
}
.bl-card-img-ph img {
  opacity: 0.18;
  image-rendering: pixelated;
}

.bl-card-body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bl-card-date {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: #666;
  letter-spacing: 0.5px;
}
.bl-card-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--mc-gold);
  line-height: 1.7;
  text-shadow: 2px 2px 0 #000;
  margin: 0;
}
.bl-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.12s;
}
.bl-card-title a:hover { color: #ffe066; }
.bl-card-desc {
  font-family: monospace;
  font-size: 13px;
  color: #888;
  line-height: 1.75;
  flex: 1;
  margin: 0;
}
.bl-card-cta {
  display: inline-block;
  margin-top: 6px;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--mc-green);
  text-decoration: none;
  padding: 9px 14px;
  border: 2px solid var(--mc-green);
  align-self: flex-start;
  transition: background 0.12s, color 0.12s;
}
.bl-card-cta:hover {
  background: var(--mc-green);
  color: #000;
}

/* ── Pagination ── */
.bl-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-top: 8px;
  flex-wrap: wrap;
}
.bl-pag-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: #ccc;
  text-decoration: none;
  padding: 10px 18px;
  border: 3px solid var(--mc-border);
  background: var(--mc-bg-medium);
  box-shadow: 3px 3px 0 #000;
  transition: border-color 0.12s, color 0.12s, transform 0.1s;
}
.bl-pag-btn:hover {
  border-color: var(--mc-gold);
  color: var(--mc-gold);
  transform: translate(-1px, -1px);
}
.bl-pag-info {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: #555;
}

/* ── Empty ── */
.bl-empty {
  text-align: center;
  padding: 100px 24px;
}
.bl-empty img {
  opacity: 0.18;
  image-rendering: pixelated;
  margin-bottom: 24px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.bl-empty p {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: #555;
  line-height: 2;
}

/* ============================================================
   BLOG POST SHOW PAGE  (bsp-*)
   ============================================================ */

.bsp-page {
  background: var(--mc-bg-dark);
  min-height: 100vh;
  padding-bottom: 96px;
}

/* Draft bar */
.bsp-draft-bar {
  background: #cc8800;
  color: #000;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  padding: 10px 20px;
  text-align: center;
  border-bottom: 3px solid #000;
  line-height: 1.8;
}
.bsp-draft-bar a { color: #000; text-decoration: underline; }

/* ── Cover hero image (full-width) ── */
.bsp-cover-hero {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: #0a0a12;
}
@media (max-width: 700px) { .bsp-cover-hero { height: 240px; } }
.bsp-cover-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.6) saturate(0.9);
}
.bsp-cover-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--mc-bg-dark) 0%, transparent 50%);
}

/* ── Article column ── */
.bsp-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 44px 24px 0;
}
@media (max-width: 600px) { .bsp-article { padding: 28px 16px 0; } }

/* ── Breadcrumb ── */
.bsp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
  font-size: 12px;
  color: #555;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.bsp-breadcrumb a { color: #666; text-decoration: none; transition: color 0.15s; }
.bsp-breadcrumb a:hover { color: var(--mc-gold); }
.bsp-bc-sep { color: #444; }
.bsp-bc-cur { color: #555; }

/* ── Header ── */
.bsp-header { margin-bottom: 40px; }

.bsp-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(14px, 2.8vw, 22px);
  color: var(--mc-gold);
  line-height: 1.65;
  text-shadow: 3px 3px 0 #000;
  margin: 0 0 22px;
}

.bsp-lead {
  font-family: monospace;
  font-size: 15px;
  color: #b0b0b0;
  line-height: 1.85;
  margin: 0 0 24px;
  padding: 18px 22px;
  border-left: 5px solid var(--mc-gold);
  background: rgba(255,170,0,0.05);
}
@media (max-width: 600px) { .bsp-lead { font-size: 13px; } }

.bsp-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: monospace;
  font-size: 12px;
  color: #666;
  flex-wrap: wrap;
}
.bsp-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #666;
}
.bsp-meta-item svg { color: #555; flex-shrink: 0; }
.bsp-meta-dot { color: #3a3a3a; font-size: 18px; line-height: 1; }

/* ── Body ── */
.bsp-body {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.9;
  color: #d0d0d0;
  margin-bottom: 60px;
}
@media (max-width: 600px) { .bsp-body { font-size: 15px; } }

.bsp-body h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: var(--mc-gold);
  margin: 52px 0 18px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--mc-border);
  text-shadow: 2px 2px 0 #000;
  line-height: 1.65;
}
.bsp-body h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--mc-green);
  margin: 40px 0 14px;
  text-shadow: 2px 2px 0 #000;
  line-height: 1.7;
}
.bsp-body p { margin: 0 0 20px; }
.bsp-body ul, .bsp-body ol { margin: 0 0 20px 28px; }
.bsp-body li { margin-bottom: 10px; }
.bsp-body ul li::marker { color: var(--mc-gold); content: '▶  '; }
.bsp-body ol li::marker { color: var(--mc-gold); font-family: 'Press Start 2P', monospace; font-size: 10px; }
.bsp-body strong { color: #f0f0f0; font-weight: bold; }
.bsp-body em { color: #bbb; font-style: italic; }
.bsp-body a { color: var(--mc-gold); text-decoration: underline; text-underline-offset: 3px; }
.bsp-body a:hover { color: var(--mc-green); }

.bsp-body blockquote {
  margin: 32px 0;
  padding: 20px 26px;
  border-left: 5px solid var(--mc-gold);
  background: rgba(255,170,0,0.05);
  color: #aaa;
  font-style: italic;
  font-size: 16px;
}
.bsp-body blockquote p { margin: 0; }

.bsp-body code {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  background: #181818;
  border: 2px solid #2a2a2a;
  color: var(--mc-green);
  padding: 2px 7px;
}
.bsp-body pre {
  background: #111;
  border: 3px solid var(--mc-border);
  padding: 20px 22px;
  overflow-x: auto;
  margin: 28px 0;
  line-height: 1.65;
  box-shadow: 4px 4px 0 #000;
}
.bsp-body pre code { border: none; padding: 0; background: none; font-size: 13px; }
.bsp-body img {
  max-width: 100%;
  height: auto;
  border: 3px solid var(--mc-border);
  box-shadow: 5px 5px 0 #000;
  display: block;
  margin: 28px 0;
}
.bsp-body hr { border: none; border-top: 3px solid var(--mc-border); margin: 44px 0; }

/* ── Footer ── */
.bsp-footer { padding-bottom: 16px; }
.bsp-footer-rule { height: 3px; background: var(--mc-border); margin-bottom: 28px; }
.bsp-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .bsp-footer-row { flex-direction: column; align-items: flex-start; }
}

.bsp-back-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: #ccc;
  text-decoration: none;
  padding: 10px 18px;
  border: 3px solid var(--mc-border);
  background: var(--mc-bg-medium);
  box-shadow: 3px 3px 0 #000;
  transition: border-color 0.12s, color 0.12s, transform 0.1s;
}
.bsp-back-btn:hover {
  border-color: var(--mc-gold);
  color: var(--mc-gold);
  transform: translate(-1px, -1px);
}
.bsp-share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bsp-share-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: #555;
}
.bsp-share-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  padding: 9px 14px;
  text-decoration: none;
  border: 2px solid;
  transition: background 0.12s, color 0.12s;
}
.bsp-share-tg { color: #2aabee; border-color: #2aabee; }
.bsp-share-tg:hover { background: #2aabee; color: #000; }
.bsp-share-vk { color: #4a76a8; border-color: #4a76a8; }
.bsp-share-vk:hover { background: #4a76a8; color: #fff; }

/* ============================================================
   BLOG ADMIN FORM
   ============================================================ */

.blog-admin-form {
  padding: 24px 0;
}

.blog-form-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .blog-form-grid {
    grid-template-columns: 1fr;
  }
}

.blog-form-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-form-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-form-card {
  background: var(--mc-bg-medium);
  border: 3px solid var(--mc-border);
  box-shadow: 4px 4px 0px #000;
  padding: 20px;
}

.blog-form-card-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--mc-gold);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--mc-border);
}

/* Form Groups */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--mc-gold);
}

.form-input,
.form-textarea {
  background: #111;
  border: 3px solid var(--mc-border);
  color: #e0e0e0;
  padding: 10px 12px;
  font-family: monospace;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s;
  outline: none;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--mc-gold);
}

.form-hint {
  font-family: monospace;
  font-size: 11px;
  color: var(--mc-text-gray);
  line-height: 1.5;
}

.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: #e0e0e0;
  cursor: pointer;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--mc-green);
  cursor: pointer;
}

/* Image Preview */
.blog-image-preview {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 3px solid var(--mc-border);
  display: block;
  background: #111;
  margin-top: 10px;
}

/* WYSIWYG Editor */
.wysiwyg-wrap {
  border: 3px solid var(--mc-border);
  background: #111;
  display: flex;
  flex-direction: column;
}

/* The div#blog-wysiwyg editor container */
.wysiwyg-editor {
  border: 3px solid var(--mc-border);
  background: #111;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px;
  background: var(--mc-bg-medium);
  border-bottom: 3px solid var(--mc-border);
  align-items: center;
}

.wysiwyg-btn {
  background: #2a2a2a;
  border: 2px solid var(--mc-border);
  color: #e0e0e0;
  padding: 6px 11px;
  font-family: monospace;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
  line-height: 1;
  white-space: nowrap;
}

.wysiwyg-btn:hover {
  background: var(--mc-gold);
  color: #000;
  border-color: var(--mc-gold);
}

.wysiwyg-btn.active {
  background: var(--mc-green);
  color: #000;
  border-color: var(--mc-green);
}

.wysiwyg-sep {
  width: 2px;
  background: var(--mc-border);
  align-self: stretch;
  margin: 2px 4px;
  flex-shrink: 0;
}

.wysiwyg-content {
  flex: 1;
  min-height: 320px;
  padding: 18px 20px;
  font-family: Georgia, serif;
  font-size: 15px;
  color: #e0e0e0;
  line-height: 1.85;
  outline: none;
  overflow-y: auto;
  cursor: text;
}

.wysiwyg-content:focus {
  background: #141414;
}

.wysiwyg-content h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: var(--mc-gold);
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--mc-border);
}

.wysiwyg-content h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--mc-green);
  margin: 20px 0 10px;
}

.wysiwyg-content p { margin: 0 0 14px; }

.wysiwyg-content ul,
.wysiwyg-content ol {
  margin: 0 0 14px 24px;
}

.wysiwyg-content li { margin-bottom: 6px; }

.wysiwyg-content blockquote {
  border-left: 4px solid var(--mc-gold);
  padding: 10px 18px;
  background: rgba(255,170,0,0.06);
  color: #aaa;
  margin: 16px 0;
  font-style: italic;
}

.wysiwyg-content a { color: var(--mc-gold); text-decoration: underline; }
.wysiwyg-content strong { color: #fff; }

.wysiwyg-content:empty::before {
  content: 'Начните вводить текст статьи...';
  color: #444;
  pointer-events: none;
  display: block;
}

.wysiwyg-hidden-input {
  display: none;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border: 3px solid var(--mc-border);
  margin-bottom: 16px;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  line-height: 1.8;
}

.alert-success {
  background: rgba(0, 170, 0, 0.15);
  border-color: var(--mc-green);
  color: var(--mc-green);
}

.alert-danger {
  background: rgba(200, 0, 0, 0.15);
  border-color: var(--mc-redstone);
  color: var(--mc-redstone);
}

/* Blog admin table */
.blog-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-family: monospace;
  font-size: 12px;
}

.blog-admin-table th {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: var(--mc-gold);
  padding: 10px 12px;
  text-align: left;
  border-bottom: 3px solid var(--mc-border);
  background: var(--mc-bg-dark);
}

.blog-admin-table td {
  padding: 10px 12px;
  border-bottom: 2px solid var(--mc-border);
  color: #ccc;
  vertical-align: middle;
}

.blog-admin-table tr:hover td {
  background: rgba(255,170,0,0.04);
}

.blog-status-badge {
  display: inline-block;
  padding: 3px 8px;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  border: 2px solid;
}

.blog-status-published {
  color: var(--mc-green);
  border-color: var(--mc-green);
  background: rgba(0, 200, 0, 0.1);
}

.blog-status-draft {
  color: var(--mc-text-gray);
  border-color: var(--mc-border);
  background: rgba(100,100,100,0.1);
}
