* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  overflow-x: hidden;
  width: 100%;
  height: 100%;
  scrollbar-color: #0f3460 #1a1a2e;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}


::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
  background: #889eb9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00d4ff;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  background-attachment: fixed;
  min-height: 100svh;
  min-height: 100vh;
  color: #ffffff;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body.telegram-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(10, 10, 20, 0.95), rgba(20, 20, 40, 0.95));
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  padding: 1rem 2rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
  font-size: 28px;
  font-weight: bold;
  background: linear-gradient(135deg, #00d4ff, #0099ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  font-size: 32px;
}

.auth-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.discord-btn {
  background: rgba(88, 101, 242, 0.2);
  border-color: rgba(88, 101, 242, 0.5);
  color: #ffffff;
}

.discord-btn:hover {
  background: rgba(88, 101, 242, 0.4);
  border-color: rgba(88, 101, 242, 0.8);
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}




header .footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px solid rgba(0, 212, 255, 0.5);
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.15);
  color: #00d4ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

header .footer-link i {
  font-size: 16px;
}

header .footer-link h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #00d4ff, #00ffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header .footer-link:hover {
  background: rgba(0, 212, 255, 0.25);
  border-color: rgba(0, 212, 255, 0.8);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  transform: translateY(-2px);
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.telegram-btn {
  background: rgba(0, 136, 204, 0.2);
  border-color: rgba(0, 136, 204, 0.5);
}

.telegram-btn:hover {
  background: rgba(0, 136, 204, 0.4);
  border-color: rgba(0, 136, 204, 0.8);
  box-shadow: 0 0 20px rgba(0, 136, 204, 0.4);
}

#telegram-login-authspark_bot {
  display: inline-flex !important;
  align-items: center !important;
  vertical-align: middle !important;
}

#telegram-login-authspark_bot iframe {
  border-radius: 12px !important;
  border: 2px solid rgba(0, 136, 204, 0.5) !important;
  width: auto !important;
  height: 40px !important;
  padding: 0 !important;
}


main {
  margin-top: 80px;
  min-height: calc(100svh - 80px);
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  animation: fadeInUp 0.8s ease-out;
}

.container {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 0 auto;
  padding: 0 20px;
}


.hero-left h1 {
  font-size: 64px;
  font-weight: bold;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #00d4ff, #0099ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-left p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  line-height: 1.6;
}

.server-stats {
  display: flex;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.stat-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 20px 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 150px;
}

.stat-value {
  font-size: 28px;
  font-weight: bold;
  color: #00d4ff;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.join-button {
  padding: 16px 40px;
  font-size: 16px;
  font-weight: bold;
  background: linear-gradient(135deg, #00d4ff, #0099ff);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 20px;
  display: inline-block;
  text-decoration: none;
}

.join-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* Description Card */
.description-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.description-card h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #00d4ff;
}

.description-card p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 15px;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 30px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 212, 255, 0.1);
  border-left: 3px solid #00d4ff;
  border-radius: 8px;
}

.feature i {
  font-size: 20px;
  color: #00d4ff;
}

.feature-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}


.page-container {
  max-width: 800px;
  margin: 90px auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.page-container h1 {
  color: #00d4ff;
  margin-bottom: 30px;
  font-size: 32px;
}

.page-container h2 {
  color: #00d4ff;
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: 20px;
}

.page-container p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 10px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #00d4ff;
  text-decoration: none;
  margin-bottom: 30px;
}

.back-link:hover {
  gap: 12px;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid rgba(0, 212, 255, 0.5);
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.back-btn:hover {
  transform: translateY(-2px);
  background: rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.8);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}


.telegram-page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  margin-top: 80px;
  text-align: center;
}

.telegram-page-container h1 {
  color: #00d4ff;
  margin-bottom: 30px;
  font-size: 32px;
}

.telegram-page-container p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  font-size: 16px;
  line-height: 1.6;
}


.telegram-widget-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

footer {
  background: rgba(10, 10, 20, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 20px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 25px 0;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link {
  color: #00d4ff;
  text-decoration: none;
  font-size: 14px;
}

.footer-link:hover {
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.footer-divider {
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}


.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  margin: 15% auto;
  padding: 30px;
  max-width: 500px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: slideDown 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 24px;
  color: #ff6b6b;
  font-weight: bold;
}

.close-btn {
  color: rgba(255, 255, 255, 0.7);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: #ff6b6b;
}

.modal-body {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 20px;
}

.modal-body p {
  margin-bottom: 12px;
}

.modal-footer {
  text-align: right;
}

.modal-btn {
  padding: 10px 25px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #00d4ff, #0099ff);
  color: white;
  cursor: pointer;
  font-weight: bold;
}

.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0.8rem 1rem;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
  }

  .logo {
    font-size: 20px;
    flex: 0 0 auto;
  }

  .logo i {
    font-size: 24px;
  }

  header .footer-link {
    flex: 0 0 auto;
    min-width: auto;
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 8px;
    gap: 4px;
  }

  header .footer-link h3 {
    display: none;
  }

  header .footer-link i {
    font-size: 16px;
    margin-right: 0;
  }

  .auth-buttons {
    gap: 8px;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .auth-btn {
    padding: 8px 12px;
    font-size: 12px;
    gap: 4px;
    white-space: nowrap;
  }

  .auth-btn i {
    font-size: 14px;
  }

  .container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px 15px;
  }

  .hero-left h1 {
    font-size: 42px;
  }

  .hero-left p {
    font-size: 16px;
  }

  .server-stats {
    gap: 10px;
  }

  .stat-item {
    min-width: 120px;
    padding: 15px 15px;
    font-size: 13px;
  }

  .stat-value {
    font-size: 22px;
  }

  .description-card {
    padding: 25px;
    margin: 0 auto;
    width: 100%;
  }

  .description-card h2 {
    font-size: 24px;
  }

  .description-card p {
    font-size: 14px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature {
    padding: 10px;
    gap: 10px;
  }

  .feature i {
    font-size: 16px;
    min-width: 16px;
  }

  .feature-text {
    font-size: 13px;
  }

  main {
    padding: 30px 15px !important;
  }
  /* mobile*/
  .page-container {
    margin: 75px 40px;
    padding: 20px 15px;
  }

  .telegram-widget-container {
    padding: 20px;
  }
}

@media (max-width: 400px) {
  header {
    padding: 0.6rem 0.8rem;
  }

  .logo {
    font-size: 18px;
  }

  .logo i {
    font-size: 20px;
  }

  header .footer-link {
    padding: 6px 8px;
  }

  header .footer-link i {
    font-size: 14px;
  }

  .auth-btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .back-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .hero-left h1 {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .hero-left p {
    font-size: 14px;
  }

  .stat-item {
    min-width: 10px;
    padding: 12px 10px;
  }

  .stat-value {
    font-size: 20px;
  }

  .stat-label {
    font-size: 11px;
  }

  .join-button {
    padding: 12px 24px;
    font-size: 14px;
  }

  .description-card h2 {
    font-size: 20px;
  }

  .container {
    padding: 15px 12px;
  }

  main {
    padding: 20px 12px !important;
  }

  .page-container h1 {
    font-size: 24px;
  }

  .page-container {
    padding: 15px;
    margin: 30px 10px;
  }

  .telegram-widget-container {
    padding: 15px;
  }

  .telegram-page-container {
    margin-top: 60px;
  }

  .telegram-page-container h1 {
    font-size: 24px;
  }

  .telegram-page-container p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .telegram-page-container {
    padding: 20px 15px;
    margin-top: 50px;
  }

  .telegram-page-container h1 {
    font-size: 20px;
  }

  .telegram-page-container p {
    font-size: 13px;
  }

  .telegram-widget-container {
    padding: 15px;
  }
}

