@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  
  --primaryColor: rgb(99, 102, 241);           
  --primaryColorHover: rgb(114, 116, 243);      
  --primaryColorGlow: rgba(99, 102, 241, 0.25);
  --secondaryColor: rgb(161, 163, 247);         

  --primaryText: rgb(255, 255, 255);
  --secondaryText: rgb(174, 178, 183);
  --mutedText: rgb(130, 136, 145);

  --bgDark1: rgb(23, 24, 27);                   
  --bgDark2: rgb(30, 31, 35);                   
  --bgDark3: rgb(40, 41, 46);                   
  --bgDark3Hover: rgb(47, 48, 54);
  --bgDark3HoverLight: rgb(43, 44, 50);

  --bgDarkTransparent: rgba(23, 24, 27, 0.75);
  --bgDarkTransparentDarker: rgba(0, 0, 0, 0.65);
  --bgDarkTransparentLighter: rgba(40, 41, 46, 0.85);

  --mainBorder: rgba(255, 255, 255, 0.15);
  --mainBorderDarker: rgba(255, 255, 255, 0.07);
  --mainBorderSubtler: rgba(255, 255, 255, 0.1);
  --mainBorderFaintest: rgba(255, 255, 255, 0.05);

  --successColor: #10b981;
  --errorColor: #ef4444;

  --fontFamily: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--fontFamily);
  background-color: var(--bgDark1);
  color: var(--primaryText);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.content-container {
  width: 92%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1400px) {
  .content-container {
    max-width: 1280px;
  }
}

.block-subtitle {
  color: var(--secondaryColor);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-block;
}

.block-big-title {
  color: var(--primaryText);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .block-big-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .block-big-title {
    font-size: 3.5rem;
  }
}

.hero-title-gradient {
  background: linear-gradient(180deg, #ffffff 30%, #a1a3f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contained-button {
  background-color: var(--primaryColor);
  color: var(--primaryText);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.contained-button:hover {
  background-color: var(--primaryColorHover);
  box-shadow: 0 0 30px var(--primaryColorGlow);
  transform: translateY(-1px);
}

.outlined-button {
  background-color: var(--bgDark2);
  color: var(--primaryText);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--mainBorder);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.outlined-button:hover {
  background-color: var(--bgDark3);
  border-color: var(--primaryColor);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.825rem;
  border-radius: 0.5rem;
}

.btn-block {
  width: 100%;
}

.card {
  background-color: rgba(40, 41, 46, 0.4);
  border: 1px solid var(--mainBorderFaintest);
  border-radius: 1.25rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

.card:hover {
  border-color: var(--mainBorderSubtler);
  background-color: rgba(43, 44, 50, 0.7);
  transform: translateY(-2px);
}

.badge-primary {
  background-color: rgba(99, 102, 241, 0.15);
  color: var(--secondaryColor);
  border-radius: 9999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-neutral {
  background-color: var(--bgDark3);
  color: var(--secondaryText);
  border-radius: 9999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--successColor);
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.image-glow-border {
  position: relative;
  border-radius: 1rem;
}

.image-glow-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 1px;
  background: radial-gradient(ellipse at 0% 0%, rgb(100, 97, 115), transparent 50%),
              radial-gradient(ellipse at 100% 100%, rgb(100, 97, 115), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.image-glow-border::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 1rem;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to right, rgba(99, 102, 241, 0.4), transparent 50%) top / 100% 8px no-repeat,
              linear-gradient(to bottom, rgba(99, 102, 241, 0.4), transparent 50%) left / 8px 100% no-repeat,
              linear-gradient(to left, rgba(99, 102, 241, 0.4), transparent 50%) bottom / 100% 8px no-repeat,
              linear-gradient(to top, rgba(99, 102, 241, 0.4), transparent 50%) right / 8px 100% no-repeat;
  filter: blur(10px);
}

.image-glow-border img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid var(--mainBorder);
}

.shape-divider-bottom {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.shape-divider-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

@media (min-width: 768px) {
  .shape-divider-bottom svg {
    height: 120px;
  }
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  z-index: 50;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background-color: var(--bgDarkTransparent);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--mainBorderDarker);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primaryText);
}

.brand-icon {
  width: auto;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-icon img {
  height: 38px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-badge {
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 999px;
  background-color: rgba(99, 102, 241, 0.18);
  color: var(--secondaryColor);
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 8px;
  list-style: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  color: var(--secondaryText);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--primaryText);
  background-color: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-tabs-container {
  display: flex;
  width: 100%;
  padding: 8px 1rem 0;
}

.mobile-tabs-bar {
  display: flex;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: rgba(26, 27, 32, 0.9);
  border: 1px solid var(--mainBorderDarker);
  border-radius: 999px;
  padding: 4px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  gap: 4px;
}

.mobile-tab-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondaryText);
  transition: all 0.2s ease;
}

.mobile-tab-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: currentColor;
}

.mobile-tab-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-tab-item.active {
  background: var(--primaryColor);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.45);
}

.mobile-toggle {
  display: none !important;
}

.mobile-nav-menu {
  display: none !important;
}

@media (min-width: 768px) {
  .mobile-tabs-container {
    display: none !important;
  }
  .server-status-text-short {
    display: none;
  }
}

.hero-section {
  position: relative;
  padding-top: 130px;
  padding-bottom: 60px;
  background-color: var(--bgDark1);
  text-align: center;
  overflow: hidden;
}

.main-profile-content {
  min-height: 75vh;
  padding-top: 100px;
  padding-bottom: 60px;
  position: relative;
}

@media (max-width: 767px) {
  .navbar {
    height: auto;
    padding: 8px 0 10px;
    flex-direction: column;
    background-color: var(--bgDarkTransparent);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--mainBorderDarker);
  }

  .nav-content {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .brand-icon img {
    height: 32px !important;
  }

  .brand-badge {
    font-size: 0.6rem;
    padding: 1px 6px;
  }

  .server-status-badge {
    padding: 0.25rem 0.55rem;
    font-size: 0.72rem;
  }

  .server-status-text-full {
    display: none;
  }

  .server-status-text-short {
    display: inline;
  }

  .guest-reg-btn {
    display: none !important;
  }

  .hero-section {
    padding-top: 140px;
  }

  .main-profile-content {
    padding-top: 130px !important;
  }
}

.hero-glow {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 860px;
  margin: 0 auto;
}

.hero-subtitle {
  margin-bottom: 1.25rem;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-desc {
  color: var(--secondaryText);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 660px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 3.5rem;
}

.hero-preview {
  margin-top: 1rem;
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
}

.bento-section {
  padding-top: 80px;
  padding-bottom: 90px;
  background-color: var(--bgDark2);
}

.bento-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .bento-col-2 {
    grid-column: span 2;
  }
  .bento-col-3 {
    grid-column: span 3;
  }
  .bento-col-5 {
    grid-column: span 5;
  }
}

.bento-card {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.bento-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 1rem;
  background-color: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primaryColor);
  margin-bottom: 1.5rem;
}

.bento-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primaryText);
}

.bento-card p {
  font-size: 0.9rem;
  color: var(--secondaryText);
  line-height: 1.65;
}

.profile-hub {
  background: linear-gradient(135deg, rgba(40, 41, 46, 0.7) 0%, rgba(30, 31, 35, 0.9) 100%);
  border: 1px solid var(--mainBorderSubtler);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  margin-top: -30px;
  margin-bottom: 60px;
  position: relative;
  z-index: 20;
}

.profile-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 900px) {
  .profile-hub-grid {
    grid-template-columns: 280px 1fr;
  }
}

.avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--bgDark1);
  border: 1px solid var(--mainBorderDarker);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
}

.avatar-img-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(30, 31, 35, 0.8) 100%);
  border: 2px solid var(--primaryColor);
  padding: 4px;
  margin-bottom: 1rem;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.2);
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: #0d0e12;
}

.user-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.user-id-badge {
  background-color: rgba(99, 102, 241, 0.15);
  color: var(--secondaryColor);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.skin-changer-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--secondaryText);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  background-color: rgba(23, 24, 27, 0.8);
  border: 1px solid var(--mainBorderSubtler);
  border-radius: 0.75rem;
  padding: 0.85rem 1.15rem;
  color: var(--primaryText);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--primaryColor);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background-color: var(--bgDark1);
}

.input-with-button {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 640px) {
  .input-with-button {
    flex-direction: row;
  }
  .input-with-button .form-input {
    flex: 1;
  }
  .input-with-button button {
    flex-shrink: 0;
  }
}

.steps-section {
  padding-top: 80px;
  padding-bottom: 90px;
  background-color: var(--bgDark1);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  background-color: var(--bgDark2);
  border: 1px solid var(--mainBorderDarker);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: var(--mainBorderSubtler);
  transform: translateY(-2px);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(99, 102, 241, 0.15);
  color: var(--secondaryColor);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.step-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--secondaryText);
  font-size: 0.875rem;
  line-height: 1.6;
}

.faq-section {
  padding-top: 80px;
  padding-bottom: 90px;
  background-color: var(--bgDark2);
}

.faq-box {
  background-color: var(--bgDark1);
  border: 1px solid var(--mainBorderDarker);
  border-radius: 1.25rem;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.faq-box:hover {
  border-color: var(--mainBorderSubtler);
}

.faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: var(--primaryText);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--secondaryColor);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.faq-box[data-open="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 250ms ease, opacity 200ms ease;
}

.faq-box[data-open="true"] .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-inner p {
  color: var(--secondaryText);
  font-size: 0.925rem;
  padding-top: 1rem;
  line-height: 1.65;
}

.cta-section {
  position: relative;
  padding-top: 100px;
  padding-bottom: 100px;
  background-color: var(--bgDark1);
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse 50% 40% at center, rgba(99, 102, 241, 0.08) 0%, transparent 100%);
  pointer-events: none;
}

.footer {
  background-color: #0f1012;
  border-top: 1px solid var(--mainBorderDarker);
  padding: 60px 0 40px;
  color: var(--secondaryText);
  font-size: 0.875rem;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand img {
  height: 32px;
  width: auto;
  max-width: 42px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.footer-title {
  color: var(--primaryText);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--secondaryText);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primaryText);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bgDarkTransparentDarker);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background-color: rgba(30, 31, 35, 0.95);
  border: 1px solid var(--mainBorderSubtler);
  border-radius: 1.5rem;
  width: 100%;
  max-width: 840px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  position: relative;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--secondaryText);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.modal-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--primaryText);
}

.modal-layout {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .modal-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.modal-left {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(30, 31, 35, 0.4) 100%);
  padding: 3rem 2.5rem;
  border-right: 1px solid var(--mainBorderDarker);
  display: none;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .modal-left {
    display: flex;
  }
}

.modal-right {
  padding: 2.5rem 2rem;
}

@media (min-width: 768px) {
  .modal-right {
    padding: 3rem 2.5rem;
  }
}

.modal-tabs {
  display: flex;
  background-color: var(--bgDark1);
  border-radius: 0.75rem;
  padding: 4px;
  margin-bottom: 2rem;
  border: 1px solid var(--mainBorderDarker);
}

.modal-tab {
  flex: 1;
  padding: 0.65rem 0;
  border: none;
  background: none;
  color: var(--secondaryText);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-tab.active {
  background-color: var(--primaryColor);
  color: var(--primaryText);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background-color: var(--bgDark2);
  border: 1px solid var(--mainBorderSubtler);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  color: var(--primaryText);
  font-size: 0.9rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 420px;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast.toast-success {
  border-left: 4px solid var(--successColor);
}

.toast.toast-error {
  border-left: 4px solid var(--errorColor);
}

.toast.toast-info {
  border-left: 4px solid var(--primaryColor);
}

.modal-msg {
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  display: none;
}

.modal-msg.active {
  display: block;
}

.modal-msg.error {
  background-color: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.modal-msg.success {
  background-color: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.svyaz-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(30, 31, 35, 0.75);
  border: 1px solid var(--mainBorderSubtler);
  border-radius: 16px;
  padding: 14px 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.svyaz-card:hover {
  border-color: rgba(42, 171, 238, 0.5);
  box-shadow: 0 8px 32px rgba(42, 171, 238, 0.2);
  transform: translateY(-2px);
}

.svyaz-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.svyaz-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.svyaz-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a1a3f7;
}

.telegram-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #229ED9 0%, #178bca 100%);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(34, 158, 217, 0.35);
  transition: all 0.25s ease;
}

.telegram-button:hover {
  background: linear-gradient(135deg, #2bb2f3 0%, #1e9ce2 100%);
  box-shadow: 0 6px 20px rgba(34, 158, 217, 0.55);
  transform: translateY(-1px);
  color: #ffffff;
}

.telegram-button svg {
  flex-shrink: 0;
}

.stars-board {
  max-width: 400px;
  background: rgba(22, 23, 27, 0.85);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 215, 0, 0.15);
  margin-top: 14px;
  margin-bottom: 16px;
}

.stars-board-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stars-board-icon {
  font-size: 1.25rem;
  color: #ffc107;
  filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.6));
  flex-shrink: 0;
}

.stars-board-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.stars-board-subtitle {
  font-size: 0.75rem;
  color: var(--mutedText);
}

.stars-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 295px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 193, 7, 0.5) rgba(255, 255, 255, 0.05);
}

.stars-list::-webkit-scrollbar {
  width: 5px;
}

.stars-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.stars-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffc107 0%, #ff9800 100%);
  border-radius: 4px;
}

.stars-list::-webkit-scrollbar-thumb:hover {
  background: #ffe082;
}

.stars-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.stars-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateX(3px);
}

.stars-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.stars-rank {
  font-size: 0.95rem;
  font-weight: 800;
  min-width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.stars-rank.stars-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 2px 4px;
  letter-spacing: -0.02em;
}

.stars-user {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stars-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f2f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.stars-name:hover {
  color: #ffc107;
  text-decoration: underline;
}

.stars-username {
  font-size: 0.72rem;
  color: var(--mutedText);
}

.stars-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 152, 0, 0.2) 100%);
  border: 1px solid rgba(255, 193, 7, 0.4);
  color: #ffc107;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.2);
  flex-shrink: 0;
}

.stars-empty {
  text-align: center;
  padding: 12px;
  font-size: 0.8rem;
  color: var(--mutedText);
}

.stars-footer-note {
  margin-top: 10px;
  font-size: 0.7rem;
  color: var(--mutedText);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

/* --- Telegram & Password Recovery Styles --- */
.forgot-pwd-link {
  font-size: 0.8rem;
  color: var(--secondaryColor);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.forgot-pwd-link:hover {
  color: #fff;
  text-decoration: underline;
}

.badge-tg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.badge-tg-verified {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.badge-tg-pending {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #facc15;
}

.badge-tg-unlinked {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}

.code-sent-banner {
  animation: fadeIn 0.3s ease;
}



/* ==============================================================
   LANGUAGE SWITCHER (EN / RU) - Sleek Dark Pill Design
   ============================================================== */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--mainBorderSubtler, rgba(255, 255, 255, 0.12));
  border-radius: 9999px;
  padding: 3px 5px;
  gap: 2px;
  font-family: inherit;
  user-select: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.lang-switcher:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--secondaryText, #94a3b8);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
  line-height: 1;
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.45);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.7rem;
  line-height: 1;
  pointer-events: none;
  margin: 0 1px;
}

@media (max-width: 640px) {
  .lang-switcher {
    padding: 2px 4px;
    gap: 1px;
  }
  .lang-btn {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
}

/* ==============================================================
   DISCORD BUTTON (Placed above Telegram in Contacts)
   ============================================================== */
.discord-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.35);
  transition: all 0.25s ease;
}

.discord-button:hover {
  background: linear-gradient(135deg, #6975f5 0%, #515dd4 100%);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.55);
  transform: translateY(-1px);
  color: #ffffff;
}

.discord-button svg {
  flex-shrink: 0;
}

/* ==============================================================
   CONTACTS CARD - Hide image in English version
   ============================================================== */
html[lang="en"] .svyaz-img {
  display: none !important;
}
