@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

:root {
  --bg-color: #060608;
  --text-color: #f8fafc;
  --text-muted: #88888c;

  /* Brand colors */
  --color-gold: #c89352;
  --color-gold-glow: rgba(200, 147, 82, 0.15);

  /* Card colors */
  --card-bg: rgba(15, 15, 20, 0.55);
  --card-border: rgba(255, 255, 255, 0.05);
  --card-glow: rgba(200, 147, 82, 0.1);

  /* Buttons */
  --btn-bg: rgba(255, 255, 255, 0.015);
  --btn-border: rgba(255, 255, 255, 0.04);
  --btn-hover-bg: rgba(255, 255, 255, 0.06);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --viewport-height: 100dvh;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: var(--viewport-height);
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  line-height: 1.5;
  -webkit-text-size-adjust: none;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

/* Video Background */
.video-background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.video-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 6, 8, 0.72);
  z-index: 1;
}

/* Background Animated Glows */
.bg-glows {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  mix-blend-mode: screen;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--color-gold) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  opacity: 0.25;
  animation: floatOrb1 25s ease-in-out infinite alternate;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-gold) 0%, transparent 70%);
  bottom: -15%;
  right: -10%;
  opacity: 0.2;
  animation: floatOrb2 30s ease-in-out infinite alternate;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--color-gold) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.15;
  animation: floatOrb3 20s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(80px, 60px) scale(1.1);
  }

  100% {
    transform: translate(40px, -40px) scale(0.95);
  }
}

@keyframes floatOrb2 {
  0% {
    transform: translate(0, 0) scale(1.05);
  }

  50% {
    transform: translate(-100px, -80px) scale(0.9);
  }

  100% {
    transform: translate(50px, 30px) scale(1.15);
  }
}

@keyframes floatOrb3 {
  0% {
    transform: translate(-50%, -50%) translate(-30px, 40px);
  }

  50% {
    transform: translate(-50%, -50%) translate(50px, -50px);
  }

  100% {
    transform: translate(-50%, -50%) translate(-10px, -10px);
  }
}

/* Site Wrapper */
.site-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 480px;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-main {
  width: 100%;
}

/* Glassmorphism Card Container */
.inner-card {
  background: var(--card-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 0;
  overflow: hidden;
  text-align: center;
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.2),
    0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.5s ease, border-color 0.5s ease;
}

.inner-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.2),
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 40px var(--card-glow),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* Card Video Header Banner */
.card-video-header {
  width: 100%;
  height: auto;
  max-height: 380px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--card-border);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-video-header video {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  display: block;
}

/* Card Content Area */
.card-content {
  width: 100%;
  padding: 40px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.15);
    opacity: 0.8;
  }
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-4px) rotate(3deg);
  }
}

/* Headings */
h1.text-component {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: #ffffff;
}

h1.text-component span.accent {
  color: var(--color-gold);
}

h1.text-component span.p {
  display: block;
}

p.text-component {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 32px;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

p.text-component::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 2px;
}

/* Button Lists */
ul.buttons-component {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

ul.buttons-component li {
  width: 100%;
}

/* Styling Buttons */
ul.buttons-component a {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px 24px;
  text-decoration: none;
  color: var(--text-color);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

ul.buttons-component a svg {
  width: 20px;
  height: 20px;
  fill: var(--color-gold);
  color: var(--color-gold);
  margin-right: 14px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

ul.buttons-component a span.label {
  flex-grow: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
}

ul.buttons-component a span.sub-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
  transition: color 0.3s ease;
}

ul.buttons-component a:hover span.sub-label {
  color: inherit;
  opacity: 0.85;
}

/* Chevron arrow on right */
ul.buttons-component a::after {
  content: '→';
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-gold);
  opacity: 0.6;
  transform: translateX(-5px);
  transition: all 0.3s ease;
  margin-left: 8px;
}

/* Hover States */
ul.buttons-component a:hover {
  background: rgba(200, 147, 82, 0.08);
  border-color: rgba(200, 147, 82, 0.45);
  color: #ffffff;
  box-shadow:
    0 8px 25px rgba(200, 147, 82, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

ul.buttons-component a:hover {
  transform: translateY(-2px);
}

/* Custom Animations for Button Icons */

/* 1. Operator (Bubble) hover shake */
#btn-operator:hover svg {
  animation: bubbleShake 0.6s ease-in-out;
}

/* 2. Buy 24/7 (Cart) hover roll */
#btn-shop:hover svg {
  animation: cartRoll 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Opt (Box) hover bounce */
#btn-opt:hover svg {
  animation: boxBounce 0.6s ease-in-out;
}

/* Giveaway hover wiggle */
#btn-giveaway:hover svg {
  animation: giftWiggle 0.6s ease-in-out;
}

/* 3. Catalog (Grid) hover rotate */
#btn-assortment:hover svg {
  animation: gridRotate 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 4. Signal Group (Globe) infinite rotation & hover speed up */
#btn-group svg {
  animation: globeRotate 24s linear infinite;
  transform-origin: center;
}

#btn-group:hover svg {
  animation: globeRotateHover 1s ease-in-out infinite alternate;
}

ul.buttons-component a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Inline gift icon for Signal Group */
.main-label-text {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.inline-gift-icon {
  display: inline-block !important;
  vertical-align: middle;
  width: 18px !important;
  height: 18px !important;
  fill: var(--color-gold) !important;
  color: var(--color-gold) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#btn-group:hover .inline-gift-icon {
  animation: giftWiggle 0.6s ease-in-out;
}

@keyframes giftWiggle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  20%, 60% { transform: scale(1.25) rotate(-12deg); }
  40%, 80% { transform: scale(1.25) rotate(12deg); }
}

#btn-designer:hover svg {
  animation: pencilDraw 0.6s ease-in-out infinite alternate;
}

@keyframes pencilDraw {
  0% { transform: rotate(0deg) translate(0, 0); }
  50% { transform: rotate(-15deg) translate(-2px, -2px); }
  100% { transform: rotate(15deg) translate(2px, 2px); }
}

/* Click feedback */
ul.buttons-component a:active {
  transform: translateY(1px);
}

/* Entry Animation Classes */
.animate-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Animation Delays */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

.delay-6 {
  transition-delay: 0.6s;
}

.delay-7 {
  transition-delay: 0.7s;
}

.delay-8 {
  transition-delay: 0.8s;
}

.delay-9 {
  transition-delay: 0.9s;
}

.delay-10 {
  transition-delay: 1s;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .site-wrapper {
    padding: 16px;
  }

  .inner-card {
    border-radius: 24px;
  }

  .card-video-header {
    height: auto;
    max-height: 280px;
  }

  .card-content {
    padding: 32px 20px 24px 20px;
  }

  h1.text-component {
    font-size: 1.85rem;
  }

  ul.buttons-component a {
    padding: 14px 18px;
    font-size: 0.95rem;
  }
}

/* Icon Animation Keyframes */
@keyframes bubbleShake {
  0%, 100% { transform: scale(1) rotate(0deg); }
  20%, 60% { transform: scale(1.15) rotate(-10deg); }
  40%, 80% { transform: scale(1.15) rotate(10deg); }
}

@keyframes cartRoll {
  0% { transform: translateX(0) scale(1); }
  25% { transform: translateX(-3px) scale(0.95); }
  60% { transform: translateX(5px) scale(1.1); }
  100% { transform: translateX(0) scale(1); }
}

@keyframes gridRotate {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(45deg); }
  100% { transform: scale(1) rotate(90deg); }
}

@keyframes globeRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes globeRotateHover {
  0% { transform: scale(1.05) rotate(0deg); }
  100% { transform: scale(1.2) rotate(45deg); }
}

@keyframes boxBounce {
  0%, 100% { transform: translateY(0) scale(1) rotate(0); }
  30% { transform: translateY(-4px) scale(1.1) rotate(-5deg); }
  50% { transform: translateY(-4px) scale(1.1) rotate(5deg); }
  80% { transform: translateY(1px) scale(0.95); }
}

/* --- Catalog Modal Overlay Styles --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 6, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 92%;
  max-width: 900px;
  height: 82vh;
  background: rgba(18, 18, 24, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(200, 147, 82, 0.1);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h2 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.modal-header .close-btn {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-header .close-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  transform: rotate(90deg);
}

.modal-header .close-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.modal-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 28px;
  -webkit-overflow-scrolling: touch;
}

/* Grid Layout */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.catalog-item {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(18, 18, 24, 0.45);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalog-item:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 147, 82, 0.4);
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(200, 147, 82, 0.2);
}

.catalog-media-wrap {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.catalog-media-wrap img, 
.catalog-media-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.catalog-item:hover .catalog-media-wrap img, 
.catalog-item:hover .catalog-media-wrap video {
  transform: scale(1.06);
}

.catalog-item-info {
  padding: 14px 10px 52px 10px; /* Added 52px bottom padding to reserve space for absolute BUY button */
  font-family: var(--font-body);
  color: #e5e7eb;
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
  white-space: pre-line;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  flex-grow: 1;
}

.catalog-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.catalog-item:hover .catalog-item-overlay {
  opacity: 1;
}

.catalog-item-overlay span {
  font-family: var(--font-heading);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.catalog-item:hover .catalog-item-overlay span {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

/* Lightbox View Overlay */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.close-lightbox-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.close-lightbox-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.lightbox-content {
  width: 100%;
  max-width: 90%;
  height: auto;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow-y: auto;
  padding: 40px 10px;
  box-sizing: border-box;
  gap: 20px;
}

/* Hide scrollbar for clean lightbox UI */
.lightbox-content::-webkit-scrollbar {
  display: none;
}

.lightbox-content img, 
.lightbox-content video {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(200, 147, 82, 0.1);
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.lightbox-description {
  width: 100%;
  max-width: 440px;
  background: rgba(18, 18, 24, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(200, 147, 82, 0.15);
  border-radius: 20px;
  padding: 24px 28px;
  color: #f3f4f6;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  white-space: pre-line;
  font-weight: 500;
  letter-spacing: 0.01em;
  animation: fadeIn 0.4s ease;
  flex-shrink: 0;
}

/* Premium Catalog BUY Button Styling */
.catalog-buy-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 150px;
  padding: 6px 14px;
  background: rgba(200, 147, 82, 0.08);
  color: var(--color-gold) !important;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 20px;
  border: 1px solid rgba(200, 147, 82, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    0 2px 8px rgba(200, 147, 82, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  z-index: 2;
}

.catalog-buy-btn:hover {
  transform: translate(-50%, -2px);
  background: rgba(200, 147, 82, 0.18);
  border-color: var(--color-gold);
  box-shadow:
    0 6px 18px rgba(200, 147, 82, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

.catalog-buy-btn:active {
  transform: translate(-50%, 0);
  box-shadow: 0 2px 6px rgba(200, 147, 82, 0.2);
}

/* Lightbox description specific button override */
.lightbox-description .catalog-buy-btn {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  width: 100%;
  max-width: 200px;
  margin: 18px auto 0 auto;
  padding: 9px 20px;
  font-size: 0.8rem;
}

.lightbox-description .catalog-buy-btn:hover {
  transform: translateY(-2px);
}

.lightbox-description .catalog-buy-btn:active {
  transform: translateY(0);
}

/* Custom scrollbar for catalog list */
.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

@media (max-width: 480px) {
  .modal-container {
    height: 90vh;
    border-radius: 20px;
  }
  
  .modal-header {
    padding: 16px 20px;
  }
  
  .modal-content {
    padding: 16px;
  }
  
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }
}

/* Reviews Dashboard Container & Grid */
.reviews-container {
  max-width: 800px;
}

.reviews-content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.review-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.review-card:hover {
  border-color: rgba(200, 147, 82, 0.35);
  background: rgba(200, 147, 82, 0.02);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.review-stars {
  display: flex;
  gap: 3px;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.star-filled {
  color: var(--color-gold);
  text-shadow: 0 0 10px rgba(200, 147, 82, 0.3);
}

.star-empty {
  color: rgba(255, 255, 255, 0.1);
}

.review-text {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.5;
  color: #d1d5db;
  margin: 0;
  word-break: break-word;
}

.review-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #6b7280;
}

.review-user {
  font-weight: 600;
  color: var(--color-gold);
}

.review-date {
  font-family: var(--font-body);
}

/* Reviews Pagination Controls */
.reviews-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  width: 100%;
}

.pagination-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 20px;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--color-gold);
  color: #000;
  border-color: var(--color-gold);
  box-shadow: 0 0 15px rgba(200, 147, 82, 0.3);
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-indicator {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: #9ca3af;
}

/* Responsive adjustments for reviews */
@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .review-card {
    padding: 16px;
  }
}

/* Inline SVG Flags Alignment */
.flag-icon {
  display: inline-block;
  vertical-align: middle;
  width: 17px;
  height: 11px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  margin-left: 4px;
  margin-right: 4px;
  transform: translateY(-1px);
}

.flag-latvia {
  display: inline-block;
  vertical-align: middle;
  width: 19px;
  height: 9px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  margin-left: 4px;
  margin-right: 4px;
  transform: translateY(-1px);
}

/* Review Photo Thumbnails */
.review-image-wrap {
  margin-top: 12px;
  margin-bottom: 12px;
  width: 100%;
  max-height: 140px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.review-image {
  width: 100%;
  height: 100%;
  max-height: 140px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.review-image:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

/* ===== Country Picker Modal ===== */
.country-picker-container {
  width: 92%;
  max-width: 440px;
  height: auto;
  min-height: unset;
}

.country-picker-body {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 32px 28px 36px 28px;
  justify-content: center;
  align-items: stretch;
}

.country-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 30px 20px;
  cursor: pointer;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.country-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#btn-country-lv::before {
  background: radial-gradient(ellipse at center, rgba(158, 48, 57, 0.18) 0%, transparent 70%);
}

#btn-country-ee::before {
  background: radial-gradient(ellipse at center, rgba(0, 114, 206, 0.18) 0%, transparent 70%);
}

.country-btn:hover::before {
  opacity: 1;
}

.country-btn:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(200, 147, 82, 0.5);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(200, 147, 82, 0.12);
}

.country-btn:active {
  transform: translateY(0) scale(0.98);
}

.country-flag-svg {
  width: 72px;
  height: 46px;
  border-radius: 6px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  display: block;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.country-btn:hover .country-flag-svg {
  transform: scale(1.1) rotate(-2deg);
}

.country-name {
  color: #ffffff;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

@media (max-width: 400px) {
  .country-picker-body {
    gap: 12px;
    padding: 24px 16px 28px 16px;
  }

  .country-btn {
    padding: 22px 14px;
  }

  .country-flag-svg {
    width: 54px;
    height: 34px;
  }

  .country-name {
    font-size: 0.88rem;
  }
}

/* ── Rules Modal ─────────────────────────────────── */
.rules-modal-container {
  max-width: 600px;
  width: 92%;
}

.rules-modal-content {
  padding: 0 1.5rem 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

.rules-lang-flag {
  font-size: 2.8rem;
  line-height: 1;
  display: block;
  margin-bottom: 0.25rem;
}

.rules-text {
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.75;
}

.rules-intro {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--color-gold);
}

.rules-brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-color);
  margin-bottom: 1.2rem;
  text-align: center;
}

.rules-text ol {
  padding-left: 1.4rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.rules-text ol li {
  color: rgba(248,250,252,0.85);
}

.rules-text ol ol {
  margin-top: 0.5rem;
  gap: 0.3rem;
  list-style-type: decimal;
}

.rules-text strong {
  color: var(--color-gold);
}

/* ── PWA Install Modal ────────────────────────────── */
.install-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.install-modal-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.install-modal-card {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(160deg, #16141a 0%, #0f0e12 100%);
  border: 1px solid rgba(200, 147, 82, 0.22);
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 48px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(200, 147, 82, 0.08);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.install-modal-overlay.is-visible .install-modal-card {
  transform: translateY(0);
}

/* ── Generic Bottom Sheet (Ranks etc) ───────────────── */
.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-sheet-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet-card {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(160deg, #16141a 0%, #0f0e12 100%);
  border: 1px solid rgba(200, 147, 82, 0.22);
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 48px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(200, 147, 82, 0.08);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
  position: relative;
}

.bottom-sheet-overlay.is-visible .bottom-sheet-card {
  transform: translateY(0);
}

.bottom-sheet-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.bottom-sheet-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: rotate(90deg);
}

.bottom-sheet-close svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.install-modal-logo-wrap {
  flex-shrink: 0;
}

.install-modal-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(200, 147, 82, 0.3), 0 0 0 2px rgba(200, 147, 82, 0.2);
  display: block;
}

.install-modal-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.install-modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.02em;
}

.install-modal-sub {
  font-size: 0.82rem;
  color: rgba(248, 250, 252, 0.55);
  margin: 0;
  line-height: 1.4;
}

.install-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #c89352 0%, #a8733e 100%);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 11px 18px;
  cursor: pointer;
  letter-spacing: 0.03em;
  margin-top: 4px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 4px 18px rgba(200, 147, 82, 0.4);
  align-self: flex-start;
}

.install-btn:hover {
  background: linear-gradient(135deg, #d9a462 0%, #b8834e 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(200, 147, 82, 0.55);
}

.install-btn:active {
  transform: translateY(0);
}

.install-btn-icon {
  width: 18px;
  height: 18px;
  fill: #ffffff;
  flex-shrink: 0;
}

.install-ios-hint {
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.55);
  margin: 2px 0 0;
  line-height: 1.5;
}

.install-ios-hint strong {
  color: var(--color-gold);
}

.install-dismiss-btn {
  background: none;
  border: none;
  color: rgba(248, 250, 252, 0.35);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
  margin-top: 4px;
  align-self: flex-start;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.install-dismiss-btn:hover {
  color: rgba(248, 250, 252, 0.65);
}

/* ── Payment Icons Row (Buy button) ────────────────── */

/* Reduce btn-shop padding so icons don't inflate it too much */
#btn-shop {
  padding-top: 10px;
  padding-bottom: 10px;
  align-items: center;
}

.payment-icons-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  flex-wrap: nowrap;
}

/* Card icons (Visa, MC) — rectangular, small */
.pay-icon {
  height: 13px;
  width: auto;
  border-radius: 2px;
  opacity: 0.75;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
  display: block;
}

/* Coin icons — circular */
.pay-icon--coin {
  height: 15px;
  width: 15px;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

#btn-shop:hover .pay-icon {
  opacity: 1;
  transform: translateY(-1px);
}

/* Rank Trigger inside Buy Button */
.rank-trigger {
  margin-top: 10px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s, transform 0.2s;
}

.rank-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.rank-trigger .rank-icon {
  font-size: 1rem;
}

/* ── Center Popup Modal ──────────────────────────────── */
.center-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}

.center-popup-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.center-popup-card {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(160deg, #1a1720 0%, #0f0e13 100%);
  border: 1px solid rgba(200, 147, 82, 0.25);
  border-radius: 24px;
  padding: 32px 28px 28px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(200, 147, 82, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  transform: scale(0.88) translateY(12px);
  transition: transform 0.4s cubic-bezier(0.34, 1.3, 0.64, 1);
}

/* ── Welcome / Promo Redesigned Modal ─────────────────── */
.welcome-modal-card {
  max-width: 440px;
  background: linear-gradient(155deg, rgba(30, 26, 38, 0.96) 0%, rgba(15, 13, 20, 0.98) 100%);
  border: 1px solid rgba(200, 147, 82, 0.38);
  border-radius: 28px;
  padding: 34px 26px 28px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.85),
    0 0 40px rgba(200, 147, 82, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
}

.welcome-modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffe7a0, #c89352, transparent);
  box-shadow: 0 0 12px #c89352;
}

.welcome-modal-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(200, 147, 82, 0.24) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.welcome-modal-content {
  position: relative;
  z-index: 1;
}

.welcome-modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 16px;
  background: rgba(200, 147, 82, 0.12);
  border: 1px solid rgba(200, 147, 82, 0.32);
  border-radius: 50px;
  margin-bottom: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  vertical-align: middle;
}

.welcome-badge-flame {
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
  animation: flamePulse 2s infinite ease-in-out;
  margin-top: -1px;
}

@keyframes flamePulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(255, 140, 0, 0.6)); }
  50% { transform: scale(1.18); filter: drop-shadow(0 0 10px rgba(255, 60, 0, 0.9)); }
}

.welcome-badge-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #f7d98c;
  text-transform: uppercase;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.welcome-modal-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  background: linear-gradient(135deg, #ffffff 0%, #f7e2b8 60%, #d49f5b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.welcome-modal-title:empty {
  display: none;
}

.welcome-modal-body {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(200, 147, 82, 0.18);
  border-radius: 20px;
  padding: 18px 20px;
  margin: 16px 0 24px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
  text-align: left;
}

.welcome-modal-desc {
  font-family: var(--font-sans);
  font-size: 0.94rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.94);
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.welcome-desc-line {
  margin-bottom: 12px;
  line-height: 1.62;
}

.welcome-desc-line:last-child {
  margin-bottom: 0;
}

.welcome-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 28px;
  background: linear-gradient(135deg, #fce598 0%, #c89352 50%, #9e6828 100%);
  color: #0b090f;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 16px;
  text-decoration: none;
  box-shadow:
    0 10px 28px rgba(200, 147, 82, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

.welcome-modal-btn::after {
  content: '→';
  margin-left: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  transition: transform 0.25s ease;
  display: inline-block;
}

.welcome-modal-btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 14px 36px rgba(200, 147, 82, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  filter: brightness(1.08);
}

.welcome-modal-btn:hover::after {
  transform: translateX(5px);
}

.welcome-modal-btn:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 6px 18px rgba(200, 147, 82, 0.35);
}

.welcome-modal-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  animation: btnShimmer 3.5s infinite;
}

@keyframes btnShimmer {
  0% { left: -100%; }
  20%, 100% { left: 140%; }
}

.welcome-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 2;
  padding: 0;
}

.welcome-modal-close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.welcome-modal-close:hover {
  background: rgba(200, 147, 82, 0.22);
  border-color: rgba(200, 147, 82, 0.5);
  color: #ffffff;
  transform: rotate(90deg) scale(1.08);
}

/* ───────────────────────────────────────────────────────────── */
/*  REBUILT GIVEAWAY BUTTON & MODAL (PREMIUM GOLD AESTHETICS)     */
/* ───────────────────────────────────────────────────────────── */

/* Premium Giveaway Button */
a#btn-giveaway.btn-giveaway-premium {
  background: linear-gradient(135deg, rgba(200, 147, 82, 0.18) 0%, rgba(200, 147, 82, 0.05) 100%), var(--btn-bg);
  border: 1px solid rgba(200, 147, 82, 0.45);
  box-shadow: 0 4px 20px rgba(200, 147, 82, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  animation: giveawayPulseBorder 3s infinite ease-in-out;
}

@keyframes giveawayPulseBorder {
  0%, 100% { border-color: rgba(200, 147, 82, 0.45); box-shadow: 0 4px 20px rgba(200, 147, 82, 0.12); }
  50% { border-color: rgba(200, 147, 82, 0.85); box-shadow: 0 4px 25px rgba(200, 147, 82, 0.35); }
}

a#btn-giveaway.btn-giveaway-premium:hover {
  background: linear-gradient(135deg, rgba(200, 147, 82, 0.28) 0%, rgba(200, 147, 82, 0.1) 100%);
  border-color: rgba(200, 147, 82, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 147, 82, 0.4);
}

.giveaway-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-right: 8px;
}

.giveaway-live-tag {
  font-size: 0.68rem;
  font-weight: 800;
  color: #000;
  background: linear-gradient(135deg, #ffd700, #c89352);
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(200, 147, 82, 0.5);
  animation: liveBadgeShimmer 2s infinite alternate;
}

@keyframes liveBadgeShimmer {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.05); filter: brightness(1.2); }
}

/* Giveaway Modal Styling */
.giveaway-modal-card {
  max-width: 440px !important;
  max-height: 85vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  background: linear-gradient(165deg, rgba(28, 24, 34, 0.98) 0%, rgba(14, 13, 18, 0.99) 100%) !important;
  border: 1px solid rgba(200, 147, 82, 0.35) !important;
  padding: 22px 20px 20px !important;
  border-radius: 24px !important;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 30px rgba(200, 147, 82, 0.15) !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 147, 82, 0.4) transparent;
}

.giveaway-modal-card::-webkit-scrollbar {
  width: 5px;
}
.giveaway-modal-card::-webkit-scrollbar-track {
  background: transparent;
}
.giveaway-modal-card::-webkit-scrollbar-thumb {
  background: rgba(200, 147, 82, 0.4);
  border-radius: 10px;
}

.giveaway-modal-header {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.giveaway-modal-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(200, 147, 82, 0.25), rgba(200, 147, 82, 0.05));
  border: 1px solid rgba(200, 147, 82, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 0 15px rgba(200, 147, 82, 0.3);
}

.giveaway-modal-gift-icon {
  width: 24px;
  height: 24px;
  fill: var(--color-gold);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.giveaway-modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.giveaway-modal-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffd700;
  background: rgba(200, 147, 82, 0.12);
  border: 1px solid rgba(200, 147, 82, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.giveaway-date-icon {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.giveaway-prize-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgba(200, 147, 82, 0.25), rgba(200, 147, 82, 0.1));
  border: 1px solid rgba(200, 147, 82, 0.4);
  padding: 6px 14px;
  border-radius: 12px;
  margin-top: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Scrollable Middle Container */
.giveaway-scroll-body {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 4px;
  text-align: center;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 147, 82, 0.4) transparent;
}

.giveaway-scroll-body::-webkit-scrollbar {
  width: 4px;
}
.giveaway-scroll-body::-webkit-scrollbar-track {
  background: transparent;
}
.giveaway-scroll-body::-webkit-scrollbar-thumb {
  background: rgba(200, 147, 82, 0.4);
  border-radius: 10px;
}

.giveaway-modal-footer-note {
  font-size: 0.82rem;
  color: #ffd700;
  background: rgba(200, 147, 82, 0.08);
  border: 1px dashed rgba(200, 147, 82, 0.3);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 10px;
  line-height: 1.45;
  white-space: pre-wrap;
}

/* Compact Action Link Button for Conditions */
.giveaway-cond-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 3px 10px;
  background: linear-gradient(135deg, rgba(200, 147, 82, 0.25), rgba(200, 147, 82, 0.12));
  border: 1px solid rgba(200, 147, 82, 0.5);
  border-radius: 8px;
  color: #ffd700 !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  vertical-align: middle;
}

.giveaway-cond-btn:hover {
  background: var(--color-gold);
  color: #000 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 147, 82, 0.4);
}

.giveaway-modal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Conditions Box & Numbered Items */
.giveaway-conditions-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(200, 147, 82, 0.2);
  border-radius: 16px;
  padding: 14px 14px 12px;
  margin-bottom: 16px;
  text-align: left;
  backdrop-filter: blur(4px);
}

.giveaway-conditions-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(200, 147, 82, 0.15);
}

.giveaway-conditions-icon {
  width: 15px;
  height: 15px;
  fill: var(--color-gold);
}

.giveaway-conditions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.giveaway-condition-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #e5e7eb;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.giveaway-condition-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold), #996e38);
  color: #000;
  font-weight: 800;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  box-shadow: 0 2px 6px rgba(200, 147, 82, 0.4);
}

.giveaway-condition-text {
  flex-grow: 1;
}

.giveaway-condition-text a,
.giveaway-modal-desc a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.giveaway-condition-text a:hover,
.giveaway-modal-desc a:hover {
  opacity: 0.8;
}

/* Inline SVG flag icons for giveaway description/conditions */
.inline-flag-svg {
  width: 22px !important;
  height: 14px !important;
  display: inline-block !important;
  vertical-align: -2px !important;
  margin: 0 3px !important;
  border-radius: 2px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5) !important;
}

/* Giveaway Form & Input */
.giveaway-participate-form {
  flex-shrink: 0;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.giveaway-input-wrap {
  position: relative;
  width: 100%;
}

.giveaway-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.4);
  transition: fill 0.3s ease;
  pointer-events: none;
}

.giveaway-input-wrap input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.3s ease;
}

.giveaway-input-wrap input:focus {
  border-color: var(--color-gold);
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 15px rgba(200, 147, 82, 0.25);
}

.giveaway-input-wrap input:focus + .giveaway-input-icon,
.giveaway-input-wrap input:focus ~ .giveaway-input-icon {
  fill: var(--color-gold);
}

.giveaway-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #ffd700 0%, #c89352 100%);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(200, 147, 82, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.giveaway-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200, 147, 82, 0.55);
  filter: brightness(1.08);
}

.giveaway-submit-btn:disabled,
.giveaway-submit-btn.is-disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(0.6) !important;
  box-shadow: none !important;
  transform: none !important;
}

.giveaway-submit-btn:active {
  transform: translateY(0);
}

.giveaway-btn-arrow {
  width: 16px;
  height: 16px;
  stroke: #000;
  stroke-width: 2.5;
  fill: none;
  transition: transform 0.3s ease;
}

.giveaway-submit-btn:hover .giveaway-btn-arrow {
  transform: translateX(4px);
}

.center-popup-overlay.is-visible .center-popup-card {
  transform: scale(1) translateY(0);
}

/* Success Modal Styling */
.giveaway-success-card {
  max-width: 380px !important;
  text-align: center;
  padding: 28px 22px 22px !important;
  border-radius: 24px !important;
  background: linear-gradient(165deg, rgba(28, 24, 34, 0.98) 0%, rgba(14, 13, 18, 0.99) 100%) !important;
  border: 1px solid rgba(200, 147, 82, 0.4) !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(200, 147, 82, 0.2) !important;
}

.giveaway-success-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(200, 147, 82, 0.3), rgba(200, 147, 82, 0.08));
  border: 1px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 0 20px rgba(200, 147, 82, 0.35);
  animation: successIconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successIconPop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.giveaway-success-check-icon {
  width: 28px;
  height: 28px;
  fill: var(--color-gold);
}

.giveaway-success-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.giveaway-success-msg {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 15px;
}
