body {
    background-size: 400% 400%;
    overflow-x: hidden;
    color: #f8fafc;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #c41e3a; border-radius: 10px; }

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Christmas Glass Panel */
.glass-panel-christmas {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(196, 30, 58, 0.3);
    box-shadow: 0 4px 30px rgba(196, 30, 58, 0.2), 0 0 20px rgba(22, 91, 51, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(196, 30, 58, 0.6);
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.3), 0 0 30px rgba(22, 91, 51, 0.2);
}

/* Text Gradients */
.text-gradient-gold {
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-gradient-ice {
    background: linear-gradient(to right, #a5f3fc, #e0f2fe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Christmas Text Gradients */
.text-gradient-christmas {
    background: linear-gradient(135deg, #c41e3a 0%, #ff6b6b 30%, #ffd700 60%, #c41e3a 100%);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-gradient-gold-christmas {
    background: linear-gradient(to right, #ffd700, #ffed4e, #ffd700, #ffed4e, #ffd700);
    background-size: 200% 200%;
    animation: gradient-shift 2s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Shadow Glow */
.shadow-glow-christmas {
    filter: drop-shadow(0 0 8px rgba(22, 91, 51, 0.8)) drop-shadow(0 0 15px rgba(196, 30, 58, 0.4));
}

/* Flying Image Animation Class */
.flying-img {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.perspective-container { perspective: 1000px; }
.card-inner { transform-style: preserve-3d; }

/* Christmas Lights Top */
.christmas-lights-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    z-index: 100;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding-top: 5px;
    pointer-events: none;
}

.light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
    animation: twinkle 1.5s ease-in-out infinite;
}

.light:nth-child(even) {
    animation-delay: 0.5s;
}

.light:nth-child(3n) {
    animation-delay: 1s;
}

.light.red {
    background: #ff0000;
    color: #ff0000;
}

.light.green {
    background: #00ff00;
    color: #00ff00;
}

.light.gold {
    background: #ffd700;
    color: #ffd700;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

/* Floating Ornaments */
.floating-ornaments {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.ornament {
    position: absolute;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
    opacity: 0.6;
}

.ornament-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.ornament-2 {
    top: 25%;
    right: 15%;
    animation-delay: 1s;
}

.ornament-3 {
    top: 45%;
    left: 5%;
    animation-delay: 2s;
}

.ornament-4 {
    top: 65%;
    right: 10%;
    animation-delay: 0.5s;
}

.ornament-5 {
    top: 80%;
    left: 20%;
    animation-delay: 1.5s;
}

.ornament-6 {
    top: 55%;
    right: 25%;
    animation-delay: 2.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Christmas Tree */
.christmas-tree {
    position: absolute;
    width: 200px;
    height: 300px;
    z-index: 5;
}

.left-tree {
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.right-tree {
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.tree-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700;
    animation: twinkle 2s ease-in-out infinite;
}

.tree-section {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 60px solid #165b33;
    filter: drop-shadow(0 0 8px rgba(22, 91, 51, 0.5));
}

.tree-section-1 {
    top: 30px;
    border-left-width: 35px;
    border-right-width: 35px;
    border-bottom-width: 50px;
}

.tree-section-2 {
    top: 70px;
    border-left-width: 50px;
    border-right-width: 50px;
    border-bottom-width: 70px;
}

.tree-section-3 {
    top: 120px;
    border-left-width: 65px;
    border-right-width: 65px;
    border-bottom-width: 90px;
}

.tree-trunk {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 90px;
    background: #8b4513;
    border-radius: 2px;
}

.tree-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tree-light {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffd700;
    box-shadow: 0 0 10px #ffd700;
    animation: twinkle 1.5s ease-in-out infinite;
}

.tree-light:nth-child(2n) {
    background: #ff0000;
    box-shadow: 0 0 10px #ff0000;
    animation-delay: 0.5s;
}

.tree-light:nth-child(3n) {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    animation-delay: 1s;
}

/* Hide trees on mobile */
@media (max-width: 768px) {
    .christmas-tree {
        display: none;
    }
}

/* ----------------------------------------------------
   SNOWY BUTTON STYLES 
   ---------------------------------------------------- */
.snow-btn {
    position: relative;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 12px 16px;
    width: 100%;
    min-width: 8em;
    text-align: center;
    color: #fff;
    /* Christmas Red Gradient Background */
    background-image: linear-gradient(to bottom, #c41e3a, #a00332, #9f0f31), linear-gradient(to bottom, #c41e3a, #8b0000);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.25), inset 0 -1px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.25), 0 0 10px rgba(196, 30, 58, 0.3);
    transition-property: transform, filter;
    transition-duration: 0.2s;
    will-change: transform;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-top: 8px;
}

.snow-btn:hover {
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.25), inset 0 -1px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.25), 0 0 20px rgba(196, 30, 58, 0.5);
}

.snow-btn:active {
    transform: scale(0.92);
    filter: brightness(0.8);
}

.snow-btn::after {
    --overflow-x: 4px;
    --snow-image: url("https://assets.codepen.io/4175254/snow-cap-test-2.png");
    content: "";
    position: absolute;
    top: -6px;
    left: calc(var(--overflow-x) * -1);
    border-image-source: var(--snow-image);
    border-image-slice: calc(6 * 56 / 20) fill;
    border-image-width: calc(28px / 3);
    border-image-repeat: round;
    width: calc(100% + var(--overflow-x) * 2);
    height: 28px;
    filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.25));
    opacity: 1;
    animation: fade-in 2s;
    pointer-events: none;
}

@keyframes fade-in {
    0%, 50% { opacity: 0; }
    100% { opacity: 1; }
}

/* Defs */
@property --angle-1 {
  syntax: "<angle>";
  inherits: false;
  initial-value: -75deg;
}

@property --angle-2 {
  syntax: "<angle>";
  inherits: false;
  initial-value: -45deg;
}

:root {
  --global--size: clamp(2rem, 4vw, 5rem);
  --anim--hover-time: 400ms;
  --anim--hover-ease: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ========== BUTTON ========== */

/* Button Wrap Container */
.button-wrap {
  position: relative;
  z-index: 2;
  border-radius: 999vw;
  background: transparent;
  pointer-events: none;
  transition: all var(--anim--hover-time) var(--anim--hover-ease);
}

/* Button Shadow Container */
.button-shadow {
  --shadow-cuttoff-fix: 2em;
  position: absolute;
  width: calc(100% + var(--shadow-cuttoff-fix));
  height: calc(100% + var(--shadow-cuttoff-fix));
  top: calc(0% - var(--shadow-cuttoff-fix) / 2);
  left: calc(0% - var(--shadow-cuttoff-fix) / 2);
  filter: blur(clamp(2px, 0.125em, 12px));
  overflow: visible;
  pointer-events: none;
}

.button-shadow::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: 999vw;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
  width: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
  height: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
  top: calc(var(--shadow-cuttoff-fix) - 0.5em);
  left: calc(var(--shadow-cuttoff-fix) - 0.875em);
  padding: 0.125em;
  box-sizing: border-box;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: all var(--anim--hover-time) var(--anim--hover-ease);
  overflow: visible;
  opacity: 1;
}

/* ========== BUTTON BASE STYLES ========== */

.glass-button {
  --border-width: clamp(1px, 0.0625em, 4px);
  all: unset;
  cursor: pointer;
  position: relative;
  pointer-events: auto;
  z-index: 3;
  background: linear-gradient(
    -75deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.05)
  );
  border-radius: 999vw;
  box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
    0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.2),
    0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2),
    0 0 0 0 rgba(255, 255, 255, 1);
  backdrop-filter: blur(clamp(1px, 0.125em, 4px));
  transition: all var(--anim--hover-time) var(--anim--hover-ease);
}

.glass-button:hover {
  transform: scale(0.975);
  backdrop-filter: blur(0.01em);
  box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
    0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.25),
    0 0 0.05em 0.1em inset rgba(255, 255, 255, 0.5),
    0 0 0 0 rgba(255, 255, 255, 1);
}

.glass-button span {
  position: relative;
  display: block;
  user-select: none;
  letter-spacing: -0.05em;
  font-weight: 500;
  font-size: 1em;
  color: rgba(50, 50, 50, 1);
  text-shadow: 0em 0.25em 0.05em rgba(0, 0, 0, 0.1);
  transition: all var(--anim--hover-time) var(--anim--hover-ease);
  padding-inline: 1.5em;
  padding-block: 0.875em;
}

.glass-button:hover span {
  text-shadow: 0.025em 0.025em 0.025em rgba(0, 0, 0, 0.12);
}

.glass-button span::after {
  content: "";
  display: block;
  position: absolute;
  z-index: 1;
  width: calc(100% - var(--border-width));
  height: calc(100% - var(--border-width));
  top: calc(0% + var(--border-width) / 2);
  left: calc(0% + var(--border-width) / 2);
  border-radius: 999vw;
  background: linear-gradient(
    var(--angle-2),
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 40% 50%,
    rgba(255, 255, 255, 0) 55%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  background-size: 200% 200%;
  background-position: 0% 50%;
  transition: background-position calc(var(--anim--hover-time) * 1.25)
      var(--anim--hover-ease),
    --angle-2 calc(var(--anim--hover-time) * 1.25) var(--anim--hover-ease);
}

.glass-button:hover span::after {
  background-position: 25% 50%;
}

.glass-button:active span::after {
  background-position: 50% 15%;
  --angle-2: -15deg;
}

/* Touch Devices Fix */
@media (hover: none) and (pointer: coarse) {
  .glass-button span::after,
  .glass-button:active span::after {
    --angle-2: -45deg;
  }
}

/* Outline */
.glass-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999vw;
  width: calc(100% + var(--border-width));
  height: calc(100% + var(--border-width));
  top: calc(0% - var(--border-width) / 2);
  left: calc(0% - var(--border-width) / 2);
  padding: var(--border-width);
  box-sizing: border-box;
  background: conic-gradient(
      from var(--angle-1) at 50% 50%,
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0) 5% 40%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0) 60% 95%,
      rgba(0, 0, 0, 0.5)
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: all var(--anim--hover-time) var(--anim--hover-ease),
    --angle-1 500ms ease;
  box-shadow: inset 0 0 0 calc(var(--border-width) / 2) rgba(255, 255, 255, 0.5);
}

.glass-button:hover::after {
  --angle-1: -125deg;
}

.glass-button:active::after {
  --angle-1: -75deg;
}

@media (hover: none) and (pointer: coarse) {
  .glass-button::after,
  .glass-button:hover::after,
  .glass-button:active::after {
    --angle-1: -75deg;
  }
}

/* Shadow Hover */
.button-wrap:has(.glass-button:hover) .button-shadow {
  filter: blur(clamp(2px, 0.0625em, 6px));
}

.button-wrap:has(.glass-button:hover) .button-shadow::after {
  top: calc(var(--shadow-cuttoff-fix) - 0.875em);
  opacity: 1;
}

/* Active Rotation */
.button-wrap:has(.glass-button:active) {
  transform: rotate3d(1, 0, 0, 25deg);
}

.button-wrap:has(.glass-button:active) .glass-button {
  box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
    0 0.125em 0.125em -0.125em rgba(0, 0, 0, 0.2),
    0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2),
    0 0.225em 0.05em 0 rgba(0, 0, 0, 0.05),
    0 0.25em 0 0 rgba(255, 255, 255, 0.75),
    inset 0 0.25em 0.05em 0 rgba(0, 0, 0, 0.15);
}

.button-wrap:has(.glass-button:active) .button-shadow {
  filter: blur(clamp(2px, 0.125em, 12px));
}

.button-wrap:has(.glass-button:active) .button-shadow::after {
  top: calc(var(--shadow-cuttoff-fix) - 0.5em);
  opacity: 0.75;
}

/* ========== COOKIE POPUP ========== */
.cookie-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.4s ease;
}

.cookie-popup.hidden {
  display: none;
}

.cookie-content {
  max-width: 450px;
  width: 100%;
  padding: 2rem;
  border-radius: 1.5rem;
  text-align: center;
  position: relative;
  animation: slideUp 0.5s ease;
  box-shadow: 0 20px 60px rgba(196, 30, 58, 0.4), 0 0 40px rgba(22, 91, 51, 0.2);
}

.cookie-gif-container {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.cookie-gif {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(196, 30, 58, 0.4), 0 0 30px rgba(22, 91, 51, 0.3);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.cookie-buttons .snow-btn {
  margin-top: 8px;
}

.snow-btn-secondary {
  background-image: linear-gradient(to bottom, #165b33, #0d4023, #0a3019), 
                    linear-gradient(to bottom, #165b33, #0a3019);
  opacity: 0.9;
}

.snow-btn-secondary:hover {
  opacity: 1;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.25), inset 0 -1px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.25), 0 0 20px rgba(22, 91, 51, 0.5);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive */
@media (min-width: 640px) {
  .cookie-buttons {
    flex-direction: row;
  }
  
  .cookie-content {
    padding: 2.5rem;
  }
}