/* $1,000,000 Global Premium Overhaul */

:root {
  --navy: #0B1221 !important;
  --navy-deep: #050811 !important;
  --sky: #4CA1F0 !important;
  --sky-soft: #85C4F7 !important;
  --sky-tint: #D6ECFF !important;
  
  --near-white: #FCFDFD !important;
  --body: #66768F !important;
  --body-dark: #374660 !important;

  --grad-navy: linear-gradient(135deg, #0B1221 0%, #152238 100%);
  --grad-sky: linear-gradient(135deg, #4CA1F0 0%, #1E7BDB 100%);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --glass-blur: blur(12px);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

body {
  background-color: var(--near-white);
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, .display {
  font-family: 'Noto Serif Display', Georgia, serif;
  letter-spacing: -0.02em;
}

.glass-panel, .ts-letter {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border) !important;
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background 0.4s ease;
}

.glass-panel:hover, .ts-letter:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3);
}

header.hero-header {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(5, 8, 17, 0.85) !important;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hero, .ts-hero {
  background: var(--grad-navy) !important;
  position: relative;
  overflow: hidden;
}

.hero::before, .ts-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(76, 161, 240, 0.15) 0%, transparent 60%);
  animation: slowGlow 15s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.hero-inner, .ts-hero-inner {
  position: relative;
  z-index: 1;
}

@keyframes slowGlow {
  0% { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.1) translate(2%, 2%); }
}

.btn {
  border-radius: 30px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 13px !important;
  box-shadow: 0 4px 14px rgba(76, 161, 240, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 161, 240, 0.4);
}

/* --- POPUPS --- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: var(--navy-deep);
  color: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: 'Inter', sans-serif;
}
.cookie-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
}
.cookie-content p strong {
  color: white;
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-actions .btn {
  padding: 10px 20px;
  font-size: 12px !important;
}
.cookie-actions .btn-secondary {
  padding: 10px 20px;
  font-size: 12px;
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.3s;
}
.cookie-actions .btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.4);
}

.lang-popup {
  position: fixed;
  top: 100px;
  right: -400px; /* start hidden */
  background: white;
  color: var(--navy);
  padding: 16px 24px;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  border-left: 4px solid var(--sky);
  z-index: 9998;
  transition: right 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.lang-popup.visible {
  right: 0;
}
.lang-popup-content {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-popup-content span {
  font-size: 13px;
  font-weight: 500;
}
.lang-popup-content .btn-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--sky);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-bottom: 1px solid var(--sky);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.lang-popup-content .btn-text:hover {
  color: var(--navy);
  border-color: var(--navy);
}
.lang-popup-content .btn-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--body);
  cursor: pointer;
  padding: 0 4px;
}
.lang-popup-content .btn-close:hover {
  color: var(--navy);
}

@media (max-width: 720px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 12px 12px 0 0;
    bottom: 0;
    width: 100%;
    max-width: none;
  }
  .cookie-actions {
    width: 100%;
  }
  .cookie-actions button {
    flex: 1;
  }
  .lang-popup {
    top: auto;
    bottom: -100px; /* start hidden */
    right: 0;
    left: 0;
    border-radius: 12px 12px 0 0;
    border-left: none;
    border-top: 4px solid var(--sky);
    transition: bottom 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  }
  .lang-popup.visible {
    bottom: 0;
    right: 0;
  }
  .lang-popup-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

