/**
 * Bluefin - Marine Luxury Design System
 * Deep Oceanic Aesthetics & Bioluminescent Cyber-Marine Theme
 * NO PURPLE (Strictly Banned)
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --color-abyss-black: #040810;
  --color-deep-ocean: #071322;
  --color-marine-card: rgba(11, 28, 48, 0.75);
  --color-marine-card-hover: rgba(16, 38, 64, 0.85);
  --color-marine-border: rgba(30, 68, 105, 0.45);
  --color-marine-border-active: rgba(0, 242, 254, 0.6);

  --color-cyan-glow: #00f2fe;
  --color-cyan-light: #4facfe;
  --color-teal-marine: #00c9a7;
  --color-emerald-profit: #10b981;
  --color-gold-treasure: #f59e0b;
  --color-gold-light: #fbbf24;

  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;

  --glass-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7), 0 0 20px -5px rgba(0, 242, 254, 0.15);
  --cyan-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--color-abyss-black);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(0, 242, 254, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(0, 201, 167, 0.07) 0%, transparent 45%),
    linear-gradient(180deg, #050b14 0%, #081628 50%, #03070d 100%);
  background-attachment: fixed;
  color: var(--color-text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  line-height: 1.5;
  padding-bottom: 85px; /* space for mobile bottom bar */
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 20px;
  }
}

/* Glassmorphism Containers */
.marine-glass {
  background: var(--color-marine-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-marine-border);
  border-radius: 18px;
  box-shadow: var(--glass-shadow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.marine-glass:hover {
  border-color: var(--color-marine-border-active);
}

.marine-glow-border {
  border: 1px solid var(--color-marine-border-active);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

/* Buttons */
.btn-cyan {
  background: linear-gradient(135deg, var(--color-cyan-glow) 0%, var(--color-cyan-light) 100%);
  color: #04101e;
  font-weight: 700;
  font-family: var(--font-main);
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.55);
  color: #020b14;
}

.btn-cyan:active {
  transform: translateY(0);
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold-treasure) 0%, var(--color-gold-light) 100%);
  color: #0b1726;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.btn-marine {
  background: rgba(15, 37, 63, 0.7);
  border: 1px solid var(--color-marine-border);
  color: var(--color-text-main);
  font-weight: 600;
  border-radius: 12px;
  padding: 11px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-marine:hover {
  background: rgba(22, 54, 90, 0.9);
  border-color: var(--color-cyan-glow);
}

/* Pulse animation for Yield Claim & Checkin */
@keyframes pulseBioluminescent {
  0% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(0, 242, 254, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

.pulse-glow {
  animation: pulseBioluminescent 2s infinite;
}

@keyframes pulseGold {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.pulse-gold {
  animation: pulseGold 2.2s infinite;
}

/* Mobile Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: rgba(5, 15, 27, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(30, 68, 105, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 999;
  padding: 0 12px;
}

@media (min-width: 1024px) {
  .bottom-nav {
    display: none;
  }
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s ease;
  flex: 1;
  padding: 8px 0;
}

.nav-item.active {
  color: var(--color-cyan-glow);
}

.nav-item.active svg {
  filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.6));
  transform: translateY(-2px);
}

.nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

/* Desktop Header */
.desktop-header {
  height: 72px;
  border-bottom: 1px solid var(--color-marine-border);
  background: rgba(6, 14, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Badge styles */
.badge-marine {
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: var(--color-cyan-glow);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--color-gold-light);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Forms & Inputs */
.marine-input {
  width: 100%;
  background: rgba(8, 22, 38, 0.8);
  border: 1px solid var(--color-marine-border);
  color: var(--color-text-main);
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-family: var(--font-main);
  outline: none;
  transition: all 0.2s ease;
}

.marine-input:focus {
  border-color: var(--color-cyan-glow);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
  background: rgba(11, 28, 48, 0.95);
}

.marine-input::placeholder {
  color: var(--color-text-dim);
}

/* Modal System */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 15, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #091728;
  border: 1px solid var(--color-marine-border-active);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.2);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #040810;
}
::-webkit-scrollbar-thumb {
  background: #153250;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-cyan-glow);
}

/* Floating Action Buttons (Telegram & Support) */
.floating-actions {
  position: fixed;
  bottom: 82px;
  right: 16px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 1024px) {
  .floating-actions {
    bottom: 24px;
    right: 24px;
  }
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-decoration: none;
  cursor: pointer;
}

.floating-btn-telegram {
  background: radial-gradient(circle at 35% 35%, #0e4c75 0%, #062235 60%, #03111c 100%);
  border: 1.5px solid #2AABEE;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.65), 0 0 18px rgba(42, 171, 238, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.floating-btn-telegram:hover {
  transform: translateY(-3px) scale(1.1);
  border-color: #60c5fa;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75), 0 0 28px rgba(42, 171, 238, 0.8), inset 0 1px 3px rgba(255, 255, 255, 0.6);
}

.floating-btn-support {
  background: radial-gradient(circle at 35% 35%, #0b3d36 0%, #06221e 60%, #02110f 100%);
  border: 1.5px solid #10b981;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.65), 0 0 18px rgba(16, 185, 129, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.floating-btn-support:hover {
  transform: translateY(-3px) scale(1.1);
  border-color: #34d399;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75), 0 0 28px rgba(52, 211, 153, 0.8), inset 0 1px 3px rgba(255, 255, 255, 0.6);
}

.floating-btn .tooltip {
  position: absolute;
  right: 56px;
  background: rgba(7, 19, 34, 0.95);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #fff;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.floating-btn:hover .tooltip {
  opacity: 1;
  transform: translateX(0);
}

