/* ========================================================
   DISCORD SERVER CLONER — LUXURY GOLDEN EDITION
   Non-Copyable & Cloudflare-Ready Protected Build
   ======================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

:root {
  --bg-obsidian: #080603;
  --bg-card: rgba(18, 14, 8, 0.72);
  --border-gold-subtle: rgba(217, 119, 6, 0.25);
  --border-gold-bright: rgba(251, 191, 36, 0.55);
  --gold-primary: #f59e0b;
  --gold-light: #fbbf24;
  --gold-shimmer: #fef08a;
  --gold-dark: #b45309;
  --gold-glow: rgba(245, 158, 11, 0.3);
}

body, html {
  background-color: var(--bg-obsidian);
  color: #fef3c7;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Global Sleek Golden Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.35);
  border-radius: 9999px;
  border: 1.5px solid transparent;
  background-clip: padding-box;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(251, 191, 36, 0.75);
  border: 1.5px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.35) transparent;
}

/* Allow text selection ONLY in inputs and textareas */
input, textarea {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Disable image dragging */
img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

/* Typography Utility Classes */
.font-syncopate {
  font-family: 'Syncopate', sans-serif;
}
.font-space {
  font-family: 'Space Mono', monospace;
}
.font-orbitron {
  font-family: 'Orbitron', monospace;
}

/* Metallic Golden Gradient Text */
.text-gold-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #fef08a 30%, #fbbf24 60%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold-subtle {
  background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Ambient Animated Golden Orbs */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.22;
  pointer-events-none;
}
.orb-1 {
  top: 3%;
  left: 8%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #f59e0b, #b45309, transparent);
  animation: floatOrb 20s ease-in-out infinite alternate;
}
.orb-2 {
  bottom: 12%;
  right: 6%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #d97706, #78350f, transparent);
  animation: floatOrb 24s ease-in-out infinite alternate-reverse;
}
.orb-3 {
  top: 48%;
  left: 45%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #fbbf24, #92400e, transparent);
  animation: floatOrb 28s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(45px, -35px) scale(1.1); }
  100% { transform: translate(-35px, 45px) scale(0.95); }
}

/* Golden Cyber Matrix Grid Pattern */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(245, 158, 11, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 158, 11, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Starvis Ambient Watermark Art */
.starvis-watermark-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(85vw, 680px);
  height: min(85vw, 680px);
  background: url('starvis-logo.jpg') center/contain no-repeat;
  border-radius: 50%;
  opacity: 0.06;
  filter: drop-shadow(0 0 60px rgba(245, 158, 11, 0.4));
  mask-image: radial-gradient(circle, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 75%);
  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 75%);
  z-index: -2;
  pointer-events: none;
  animation: pulseWatermark 12s ease-in-out infinite alternate;
}
@keyframes pulseWatermark {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.05; }
  100% { transform: translate(-50%, -50%) scale(1.06); opacity: 0.085; }
}

/* Glassmorphism Cards with Golden Accents */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-gold-subtle);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(217, 119, 6, 0.08);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover {
  border-color: var(--border-gold-bright);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.9), 0 0 35px rgba(245, 158, 11, 0.18);
}

/* Stat Box in Gold */
.stat-box {
  background: rgba(10, 8, 4, 0.85);
  border: 1px solid var(--border-gold-subtle);
  transition: all 0.25s ease;
}
.stat-box:hover {
  transform: translateY(-3px);
  border-color: var(--gold-light);
  box-shadow: 0 8px 24px -4px rgba(245, 158, 11, 0.22);
}

/* Premium Inputs with Gold Glow */
.input-premium {
  background: rgba(8, 6, 3, 0.7) !important;
  border: 1px solid var(--border-gold-subtle) !important;
  color: #fffbeb !important;
  transition: all 0.3s ease;
}
.input-premium:focus {
  border-color: var(--gold-light) !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3), inset 0 0 12px rgba(0, 0, 0, 0.6) !important;
}

/* Custom Gold Checkbox */
.checkbox-custom {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: 6px;
  background: rgba(15, 12, 6, 0.8);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}
.checkbox-custom:checked {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}
.checkbox-custom:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #080603;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* Radiant Gold Button */
.btn-gold {
  background: linear-gradient(135deg, #b45309 0%, #d97706 25%, #f59e0b 60%, #fbbf24 100%);
  color: #0c0803;
  font-weight: 800;
  box-shadow: 0 8px 30px rgba(217, 119, 6, 0.35), 0 0 15px rgba(251, 191, 36, 0.2);
  transition: all 0.3s ease;
  border: 1px solid rgba(254, 240, 138, 0.4);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 35%, #fbbf24 75%, #fef08a 100%);
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.5), 0 0 25px rgba(254, 240, 138, 0.35);
  transform: translateY(-1px);
}
.btn-gold:active {
  transform: scale(0.98);
}

/* Molten Gold Shimmer on Progress Bar */
.shimmer-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  animation: shimmerMove 2s infinite;
}
@keyframes shimmerMove {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Rocket Launch Animation */
@keyframes rocketVibrate {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-2px) rotate(-4deg); }
  75% { transform: translateY(1px) rotate(4deg); }
}
.rocket-launching {
  animation: rocketVibrate 0.3s infinite linear;
}

/* Custom Gold Terminal Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(10, 8, 4, 0.6);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(217, 119, 6, 0.45);
  border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(251, 191, 36, 0.85);
}

/* Terminal Log Item Styling in Golden Theme */
.log-item {
  padding: 5px 10px;
  border-radius: 8px;
  transition: all 0.15s ease;
  line-height: 1.5;
  word-break: break-word;
}
.log-item:hover {
  background: rgba(251, 191, 36, 0.05);
}
.log-info {
  color: #fde68a;
}
.log-success {
  color: #86efac;
  background: rgba(34, 197, 94, 0.07);
  border-left: 2px solid #22c55e;
}
.log-warn {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.08);
  border-left: 2px solid #f59e0b;
}
.log-error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border-left: 2px solid #ef4444;
}

/* Modal Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.animate-fade-in {
  animation: fadeIn 0.25s ease-out forwards;
}
.animate-scale-up {
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Slow Spin */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin-slow {
  animation: spinSlow 20s linear infinite;
}
