/* === CelebDAO Global Styles === */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Bungee+Shade&display=swap');

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* Glass Effects */
.glass-nav {
  background: rgba(5,5,5,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.glass-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.37);
}
.glass-card:hover {
  border-color: rgba(59,130,246,0.3);
  box-shadow: 0 0 30px rgba(59,130,246,0.15);
}

/* Logo Font */
.logo-image {
  width: 150px;
  height: auto;
}

.logo-text {
  font-family: 'Bungee Shade', 'Space Grotesk', sans-serif;
  background: linear-gradient(135deg, #00f0ff, #3b82f6, #bc13fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(59,130,246,0.4));
}

/* Particles */
.particles-container { position: absolute; width: 100%; height: 100%; overflow: hidden; z-index: 0; }
.particle {
  position: absolute; border-radius: 50%; background: white; opacity: 0.3;
  animation: float-particle 20s infinite linear;
}
@keyframes float-particle {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

/* 3D Effects */
.perspective-1000 { perspective: 1000px; }
.hover-tilt { transition: transform 0.5s ease; }
.hover-tilt:hover { transform: rotateX(5deg) rotateY(5deg) scale(1.02); }

/* Gradient Text Animation */
.animate-gradient-text {
  background: linear-gradient(to right, #fff, #3b82f6, #bc13fe, #00f0ff);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-text 8s ease infinite;
}
@keyframes gradient-text {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Live Pulse */
.live-pulse-ring {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%); width: 100%; height: 100%;
  border-radius: 50%; border: 1px solid #10b981;
  animation: pulse-ring 2s cubic-bezier(0.215,0.61,0.355,1) infinite;
}
@keyframes pulse-ring {
  0% { transform: translate(-50%,-50%) scale(0.5); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1.5); opacity: 0; }
}

/* 3D Globe Container */
#globe-container {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0.7; mix-blend-mode: screen;
}
#globe-container canvas { width: 100% !important; height: 100% !important; }

/* === Secure Document Viewer === */
.secure-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.95);
  display: none; flex-direction: column;
  overflow: hidden;
}
.secure-overlay.active { display: flex; }

.secure-content {
  position: relative; flex: 1; overflow-y: auto;
  -webkit-user-select: none; -moz-user-select: none;
  -ms-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}

.watermark-layer {
  position: fixed; inset: 0; z-index: 10000;
  pointer-events: none; overflow: hidden;
  opacity: 0.08;
}
.watermark-text {
  font-size: 14px; color: #ff0040;
  font-weight: bold; white-space: nowrap;
  transform: rotate(-35deg);
  font-family: monospace;
  letter-spacing: 2px;
}

/* Screenshot Protection Overlay */
.screenshot-guard {
  position: fixed; inset: 0; z-index: 99999;
  background: #000;
  display: none; align-items: center; justify-content: center;
  color: #ff0040; font-size: 24px; font-weight: bold;
}
.screenshot-guard.active { display: flex; }

/* Price Table */
.price-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  -webkit-user-select: none; user-select: none;
}
.price-table th {
  background: rgba(59,130,246,0.15);
  padding: 16px 20px; text-align: left;
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 2px; color: #60a5fa;
  border-bottom: 1px solid rgba(59,130,246,0.2);
}
.price-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 14px;
}
.price-table tr:hover td { background: rgba(255,255,255,0.02); }

.tier-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 10px; border-radius: 9999px; font-size: 11px;
  font-weight: 700; letter-spacing: 1px;
}
.tier-s-plus { background: linear-gradient(135deg,#bc13fe,#ff0080); color: #fff; }
.tier-s { background: linear-gradient(135deg,#f59e0b,#ef4444); color: #fff; }
.tier-a { background: linear-gradient(135deg,#3b82f6,#00f0ff); color: #fff; }

/* === Chat Widget === */
.chat-widget {
  position: fixed; bottom: 24px; right: 24px; z-index: 1000;
}
.chat-toggle {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg,#3b82f6,#bc13fe);
  border: none; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(59,130,246,0.4);
  transition: all 0.3s;
}
.chat-toggle:hover { transform: scale(1.1); box-shadow: 0 4px 30px rgba(188,19,254,0.5); }
.chat-toggle .material-icons { color: #fff; font-size: 28px; }

.chat-panel {
  position: absolute; bottom: 72px; right: 0;
  width: 380px; height: 500px;
  background: rgba(10,10,10,0.98);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; overflow: hidden;
  display: none; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  backdrop-filter: blur(20px);
}
.chat-panel.active { display: flex; }

.chat-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(188,19,254,0.2));
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex; justify-content: space-between; align-items: center;
}
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; gap: 8px;
}
.chat-input-area input {
  flex: 1; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 10px 16px;
  color: #fff; font-size: 14px; outline: none;
}
.chat-input-area input:focus { border-color: rgba(59,130,246,0.5); }
.chat-input-area button {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg,#3b82f6,#bc13fe);
  border: none; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.chat-input-area button .material-icons { color: #fff; font-size: 20px; }

.msg-bubble {
  max-width: 80%; padding: 10px 14px;
  border-radius: 16px; font-size: 13px; line-height: 1.5;
}
.msg-sent {
  align-self: flex-end;
  background: linear-gradient(135deg,#3b82f6,#2563eb);
  color: #fff; border-bottom-right-radius: 4px;
}
.msg-received {
  align-self: flex-start;
  background: rgba(255,255,255,0.08);
  color: #e5e7eb; border-bottom-left-radius: 4px;
}

/* === Payment Modal === */
.payment-modal {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(0,0,0,0.9);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
}
.payment-modal.active { display: flex; }
.payment-card {
  background: linear-gradient(145deg, rgba(15,15,15,0.98), rgba(5,5,5,0.98));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px; padding: 40px;
  width: 90%; max-width: 480px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.8);
}
.token-selector {
  display: flex; gap: 12px; margin-bottom: 24px;
}
.token-btn {
  flex: 1; padding: 16px;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 16px; background: transparent;
  cursor: pointer; transition: all 0.3s;
  text-align: center; color: #9ca3af;
}
.token-btn.selected {
  border-color: #3b82f6;
  background: rgba(59,130,246,0.1);
  color: #fff;
}
.token-btn:hover { border-color: rgba(59,130,246,0.5); }

/* Responsive */
@media (max-width: 640px) {
  .chat-panel { width: 320px; height: 440px; right: -8px; }
}
