* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.animate-gpu {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");
body {
  padding-bottom: 80px;
  font-family: "Inter", sans-serif;
  background: #0a0d14;
  color: #ffffff;
  overflow-x: hidden;
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0d14 0%, #1a1f2e 100%);
  position: relative;
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  will-change: background-position;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px) 0 0 / 50px 50px,
    linear-gradient(0deg, rgba(0,212,255,0.03) 1px, transparent 1px) 0 0 / 50px 50px;
  pointer-events: none;
  z-index: 0;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(16, 20, 30, 0.5);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #00d4ff, #0047ff);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #059669, #047857);
}
.social-tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  z-index: 40;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}
.social-tabs a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #94a3b8;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.social-tabs a i {
  font-size: 24px;
  margin-bottom: 4px;
}

.social-tabs a:hover {
  color: #10b981;
  transform: translateY(-3px);
}

.glass {
  background: rgba(16, 20, 30, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 40, 80, 0.37);
}

.fade-in {
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards; 
}
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.float {
  animation: float 3s ease-in-out infinite;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  border: none !important;
  box-shadow: none !important;
}
@keyframes float {
  0%, 100% { 
    transform: translateY(0) translateZ(0);
  }
  50% { 
    transform: translateY(-15px) translateZ(0);
  }
}

.gradient-text, .roleplay-text, .paragraph-animate, .button-animate, .stat-card, .connect-card, .staff-stats, .animate-text-slide {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

.paragraph-animate:nth-child(1),
.paragraph-animate:nth-child(2),
.paragraph-animate:nth-child(3) {
  animation-delay: 0s !important;
}

.stat-card:nth-child(1),
.stat-card:nth-child(2),
.stat-card:nth-child(3),
.stat-card:nth-child(4),
.connect-card:nth-child(1),
.connect-card:nth-child(2),
.connect-card:nth-child(3),
.connect-card:nth-child(4) {
  animation-delay: 0s !important;
}

.staff-stats.animate {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.btn-modern {
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: all 0.3s ease;
  background: linear-gradient(45deg, #0a1527, #1a2942);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.1);
}

.btn-modern:hover {
  background: linear-gradient(45deg, #1a2942, #2a3952);
  border: 1px solid rgba(0, 212, 255, 0.4);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
}

.btn-modern::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(45deg, #00d4ff, #0047ff);
  opacity: 0.3;
  z-index: -1;
  animation: cyberpulse 2s infinite;
}

.btn-modern.discord {
  background: linear-gradient(45deg, #2a3952, #3a4962);
  border: 1px solid rgba(88, 101, 242, 0.3);
}

.btn-modern.connect {
  background: linear-gradient(45deg, #2a3952, #3a4962);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.btn-modern.bacardi-host {
  background: linear-gradient(45deg, #2a3952, #3a4962);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.btn-modern.clicked::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.8) 0%, transparent 100%);
  transform: scale(0);
  opacity: 0.5;
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    background: linear-gradient(135deg, rgba(10, 13, 20, 0.95), rgba(26, 31, 46, 0.95));
    backdrop-filter: blur(10px);
  }
  .mobile-menu.open {
    transform: translateX(0);
  }
  .float {
    animation-duration: 4s;
  }
  
  .gradient-text, .roleplay-text, .paragraph-animate {
    animation-duration: 0.6s;
  }

  #ai-chat-container {
    position: fixed;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    margin: 0;
    border-radius: 0;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    background: #1a1a1a !important;
    display: flex;
    flex-direction: column;
  }

  #ai-chat-container.active {
    transform: translateY(0);
    opacity: 1;
    
    & ~ #ai-chat-button {
      opacity: 0;
      pointer-events: none;
      transform: scale(0);
      transition: all 0.3s ease;
    }
  }

  #chat-messages {
    flex: 1;
    height: auto !important;
    padding: 12px;
    padding-bottom: 80px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #1a1a1a;
  }

  #ai-chat-form {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: #1a1a1a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10000;
  }

  .message-in {
    margin-bottom: 16px;
    animation: messageSlideIn 0.3s ease forwards;
  }

  .ai-message {
    background: #2d2d2d;
    color: #e0e0e0;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    border-left: 3px solid #27ae60;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .user-message {
    background: #27ae60;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    border: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .ai-message button,
  .user-message button {
    width: 100%;
    margin-top: 8px;
    white-space: normal;
    height: auto;
    min-height: 40px;
    padding: 8px 16px;
    line-height: 1.3;
  }

  .ai-message img,
  .user-message img {
    max-width: 100%;
    height: auto;
    margin: 8px 0;
  }

  @keyframes messageSlideIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  #qr-container img {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto;
  }

  .message-in .text-emerald-400 {
    color: #27ae60;
  }

  .message-in .font-semibold {
    font-weight: 600;
  }

  #copy-notification {
    background: #1a1a1a;
    border: 1px solid #27ae60;
  }

  #ai-chat-button button {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  #ai-chat-button button img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transform: none;
    margin: 0;
    display: block;
  }

  #ai-chat-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .stat-card {
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
  }

  video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
    will-change: transform;
  }

  nav.glass {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-overflow-scrolling: touch;
}

.nav-link {
  position: relative;
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  background: transparent;
}

.nav-link:hover {
  color: #00d4ff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.nav-link.active {
  color: #ffffff;
  background: linear-gradient(90deg, #404040, #2a2a2a);
  -webkit-background-clip: text;
  background-clip: text;
  background-size: 300% 100%;
  animation: rgbFlow 3s linear infinite;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    #ff0000,
    #00ff00,
    #0000ff,
    #ff0000
  );
  background-size: 300% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  animation: rgbFlow 3s linear infinite;
}

@keyframes rgbFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.nav-link:hover::after {
  transform: scaleX(0.8);
}

.nav-link.active::after {
  transform: scaleX(1);
}

.nav-container {
  position: relative;
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: transparent;
}

.nav-link .indicator {
  display: none;
}

.animate-text-slide {
  opacity: 0;
  transform: translateY(20px);
}

.animate-text-slide.active {
  animation: slideInText 0.8s forwards;
}

@keyframes slideInText {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.gradient-text {
  background: linear-gradient(135deg, #00d4ff, #0047ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.roleplay-text {
  opacity: 0;
  transform: translateX(30px);
  will-change: transform, opacity;
  backface-visibility: hidden;
  animation: slideInRight 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.paragraph-animate {
  opacity: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
  animation: slideInRight 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.paragraph-animate:nth-child(1) { animation-delay: 0.4s; }
.paragraph-animate:nth-child(2) { animation-delay: 0.6s; }
.paragraph-animate:nth-child(3) { animation-delay: 0.8s; }

.button-animate {
  opacity: 0;
  animation: slideInRight 1s cubic-bezier(0.4, 0, 0.2, 1) forwards 1.2s;
}

.social-button-fixed {
  transition: all 0.3s ease;
  position: relative;
}

.social-button-fixed:hover {
  transform: translateY(-5px);
}

.stat-card, .connect-card {
  background: linear-gradient(135deg, rgba(16, 20, 30, 0.9), rgba(26, 31, 46, 0.9));
  border: 1px solid rgba(0, 212, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover, .connect-card:hover {
  border: 1px solid rgba(0, 212, 255, 0.3);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.1);
}

.staff-stats {
  opacity: 0;
  transform: translateX(30px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.staff-stats.animate {
  opacity: 1;
  transform: translateX(0);
}

.nav-link .indicator {
  display: none;
}

.animate-text-slide {
  opacity: 0;
  transform: translateY(20px);
}

.animate-text-slide.active {
  animation: slideInText 0.8s forwards;
}

.gradient-text {
  background: linear-gradient(135deg, #00d4ff, #0047ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.roleplay-text {
  opacity: 0;
  transform: translateX(30px);
  will-change: transform, opacity;
  backface-visibility: hidden;
  animation: slideInRight 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.paragraph-animate {
  opacity: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
  animation: slideInRight 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.paragraph-animate:nth-child(1) { animation-delay: 0.4s; }
.paragraph-animate:nth-child(2) { animation-delay: 0.6s; }
.paragraph-animate:nth-child(3) { animation-delay: 0.8s; }

.button-animate {
  opacity: 0;
  animation: slideInRight 1s cubic-bezier(0.4, 0, 0.2, 1) forwards 1.2s;
}

.social-button-fixed {
  transition: all 0.3s ease;
  position: relative;
}

.social-button-fixed:hover {
  transform: translateY(-5px);
}

.stat-card {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.2s; }
.stat-card:nth-child(2) { animation-delay: 0.4s; }
.stat-card:nth-child(3) { animation-delay: 0.6s; }
.stat-card:nth-child(4) { animation-delay: 0.8s; }

.staff-stats {
  opacity: 0;
  animation: fadeInRight 1s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.5s;
}

.connect-card {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.connect-card:nth-child(1) { animation-delay: 0.3s; }
.connect-card:nth-child(2) { animation-delay: 0.6s; }
.connect-card:nth-child(3) { animation-delay: 0.9s; }
.connect-card:nth-child(4) { animation-delay: 1.2s; }

.hamburger-menu {
  width: 24px;
  height: 20px;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  border-radius: 4px;
}

.hamburger-line:nth-child(1) {
  width: 50%;
  margin-left: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-line:nth-child(2) {
  width: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-line:nth-child(3) {
  width: 75%;
  margin-left: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-menu:hover .hamburger-line {
  width: 100%;
  margin-left: 0;
}

.mobile-menu.translate-y-0 ~ nav .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  width: 100%;
  margin-left: 0;
}

.mobile-menu.translate-y-0 ~ nav .hamburger-line:nth-child(2) {
  transform: scaleX(0);
  opacity: 0;
}

.mobile-menu.translate-y-0 ~ nav .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  width: 100%;
  margin-left: 0;
}

.mobile-menu.translate-y-0 ~ #ai-chat-button {
  display: none !important;
}

#open-gallery {
  opacity: 0;
  position: fixed;
  bottom: 8px;
  right: 8px;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: auto;
  z-index: 60;
}

#ai-chat-container.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  max-height: 600px;
}

#chat-messages::-webkit-scrollbar {
  width: 6px;
}

#chat-messages::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
  border-radius: 10px;
}

#chat-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #10b981, #059669);
  border-radius: 10px;
}

.message-in {
  animation: messageSlideIn 0.3s ease forwards;
  margin-bottom: 1rem;
}

.ai-message {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.1));
  border-left: 3px solid #10b981;
  line-height: 1.6;
  font-size: 0.95rem;
}

.user-message {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(99, 102, 241, 0.1));
  border-right: 3px solid #3b82f6;
}

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

.ai-message:hover, .user-message:hover {
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
  transition: all 0.3s ease;
}

@media (min-width: 769px) {
  #ai-chat-container {
    position: fixed;
    right: 24px;
    bottom: 120px;
    width: 380px !important;
    transform-origin: bottom right;
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 9999;
  }

  #ai-chat-container.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .ai-chat-header {
    background: #27ae60;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .ai-chat-header h3 {
    color: white;
    font-size: 16px;
    font-weight: 600;
  }

  #chat-messages {
    height: 400px !important;
    overflow-y: auto;
    padding: 16px;
    background: #1a1a1a;
  }

  #ai-chat-form {
    padding: 12px;
    background: #1a1a1a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  #ai-chat-input {
    width: 100%;
    background: #2d2d2d;
    border: none;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
  }

  #ai-chat-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.3);
  }

  .message-in {
    margin-bottom: 16px;
  }

  .ai-message {
    background: #2d2d2d;
    padding: 12px;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.5;
  }

  .user-message {
    background: #27ae60;
    padding: 12px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    line-height: 1.5;
  }

  #ai-chat-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    transition: all 0.3s ease;
  }

  #ai-chat-button button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #27ae60;
    color: white;
    transition: all 0.3s ease;
    transform-origin: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
  }

  #ai-chat-button button img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    transition: all 0.3s ease;
  }

  #ai-chat-button button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.4);
  }

  #ai-chat-container.active ~ #ai-chat-button button {
    background: #e53e3e;
  }

  #ai-chat-container.active ~ #ai-chat-button button img {
    transform: rotate(45deg);
    opacity: 0;
  }

  #ai-chat-container.active ~ #ai-chat-button button::after {
    content: '×';
    position: absolute;
    font-size: 32px;
    font-weight: 300;
    opacity: 1;
    transform: rotate(-45deg);
  }
}

@media (max-width: 768px) {
  #ai-chat-button button {
    width: 60px;
    height: 60px;
  }

  #ai-chat-button button img {
    width: 45px;
    height: 45px;
  }

  #ai-chat-container.active ~ #ai-chat-button {
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
  }
}

.bacardi-host-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.bacardi-host-popup.active {
  opacity: 1;
  pointer-events: auto;
}

.bacardi-host-content {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
  border-radius: 20px;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bacardi-host-popup.active .bacardi-host-content {
  transform: scale(1);
}

.bacardi-host-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #10b981, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bacardi-host-content .btn-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bacardi-host-btn {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bacardi-host-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.bacardi-host-btn i {
  font-size: 1.25rem;
}

.bacardi-host-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bacardi-host-close:hover {
  color: white;
  transform: rotate(90deg);
}

.max-w- {
  position: relative;
  z-index: 2;
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  pointer-events: none;
  z-index: 1;
}

.newget-btn {
  background: linear-gradient(to right, #6366f1, #8b5cf6) !important;
  color: white !important;
}

.newget-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

#newget-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.newget-content {
  background: #1a1f2e;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  border: 1px solid rgba(99, 102, 241, 0.2);
  animation: newgetSlideIn 0.3s ease-out;
}

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

.newget-content img {
  width: 100%;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

@media (max-width: 1023px) {
  #mobile-menu-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10000;
    display: block !important;
  }
  nav.glass {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
}
.popup-content {
  animation: fadeIn 0.3s ease-in-out;
}

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


.role-item, .title-item, .asset-item {
  @apply border border-gray-700 p-4 rounded-lg mb-4;
}

.role-item h3, .title-item h3, .asset-item h3 {
  @apply text-xl font-bold text-emerald-400 mb-2;
}

.feature-list {
  @apply text-gray-300 ml-4 list-disc;
}

@keyframes cyberpulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 212, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
  }
}

.cyber-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(90deg, 
      rgba(0, 212, 255, 0.03) 0px,
      rgba(0, 212, 255, 0.03) 1px,
      transparent 1px,
      transparent 100px),
    repeating-linear-gradient(0deg,
      rgba(0, 212, 255, 0.03) 0px,
      rgba(0, 212, 255, 0.03) 1px,
      transparent 1px,
      transparent 100px);
  pointer-events: none;
  z-index: 0;
}


.cyber-grid {
  background-image: 
    linear-gradient(to right, rgba(0, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}


.role-card {
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.role-card:hover::before {
  transform: translateX(100%);
}


.price-glow {
  animation: priceGlow 2s infinite;
}

@keyframes priceGlow {
  0%, 100% { text-shadow: 0 0 5px rgba(0, 255, 255, 0.5); }
  50% { text-shadow: 0 0 20px rgba(0, 255, 255, 0.8); }
}

.feature-item {
  transition: all 0.3s;
  position: relative;
  padding-left: 1.5rem;
}

.feature-item::before {
  content: '>';
  position: absolute;
  left: 0;
  color: #00ffff;
  opacity: 0;
  transition: all 0.3s;
}

.feature-item:hover::before {
  opacity: 1;
  transform: translateX(5px);
}


.cyber-scroll::-webkit-scrollbar {
  width: 6px;
}

.cyber-scroll::-webkit-scrollbar-track {
  background: rgba(0, 255, 255, 0.05);
}

.cyber-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #00ffff, #0077ff);
  border-radius: 3px;
}


.role-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 255, 255, 0.1);
}


.price-glow {
  background: linear-gradient(90deg, #00ffff, #0077ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: priceShine 2s linear infinite;
}

@keyframes priceShine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}


.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.feature-item::before {
  content: '→';
  color: currentColor;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s;
}

.feature-item:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.rules-btn {
  @apply px-6 py-3 rounded-xl font-semibold text-white bg-gradient-to-r from-emerald-500 to-blue-500 shadow-lg hover:scale-105 hover:shadow-emerald-500/25 transition-all duration-300 text-lg;
  border: none;
  outline: none;
  cursor: pointer;
}
.rules-btn:active {
  transform: scale(0.97);
}
.rules-popup-content {
  max-width: 900px;
  min-width: 320px;
  width: 100%;
  border-radius: 2rem;
  background: rgba(16, 20, 30, 0.95);
  box-shadow: 0 8px 32px 0 rgba(16, 185, 129, 0.25), 0 2px 8px 0 rgba(0,0,0,0.15);
  border: 1.5px solid #334155;
  animation: fadeIn 0.3s ease-in-out;
}
@media (max-width: 900px) {
  .rules-popup-content {
    max-width: 98vw;
    padding: 1.5rem;
  }
  .rules-popup-content .flex-row {
    flex-direction: column;
  }
  .rules-popup-content .border-l {
    border-left: none;
    border-top: 1px solid #334155;
    padding-left: 0;
    padding-top: 2rem;
  }
}
#rules-popup-body-id, #rules-popup-body-en {
  min-height: 300px;
  transition: opacity 0.3s, filter 0.3s;
}
.hide-lang {
  opacity: 0.2;
  pointer-events: none;
  filter: blur(2px);
  transition: opacity 0.3s, filter 0.3s;
}

#rules-popup {
  align-items: flex-start !important;
  overflow-y: auto;
  padding-top: 40px;
  padding-bottom: 40px;
}
@media (max-width: 900px) {
  #rules-popup {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}


@media (max-width: 600px) {
  .rules-popup-content {
    padding: 1rem !important;
    max-width: 98vw;
    min-width: 0;
  }
  .rules-columns {
    flex-direction: column !important;
    gap: 2rem !important;
  }
  .rules-popup-content .border-l {
    border-left: none !important;
    border-top: 1px solid #334155 !important;
    padding-left: 0 !important;
    padding-top: 2rem !important;
    margin-top: 2rem !important;
  }
  #rules-popup-title {
    font-size: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  #rules-popup-body-id, #rules-popup-body-en {
    min-height: unset !important;
    font-size: 1rem !important;
  }
  .rules-popup-content .flex-1 {
    width: 100% !important;
    min-width: 0 !important;
  }
  .rules-popup-content .text-lg {
    font-size: 1.1rem !important;
  }
  .rules-popup-content .mb-2 {
    margin-bottom: 0.5rem !important;
  }
  .rules-popup-content .mb-8 {
    margin-bottom: 1rem !important;
  }
  .rules-popup-content .mt-8 {
    margin-top: 1.5rem !important;
  }
  .rules-btn-row {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .rules-btn-row button {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 1rem !important;
    padding: 0.7rem 0 !important;
  }
}
