/* ========================================================
   CSS Stylesheet: Thư Mời VIP — U.S. - Vietnam Summit 2026
   Phong cách thiết kế: Royal Sapphire Blue & Metallic Gold Luxury
   ======================================================== */

@import url('fonts.css');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&display=swap');

:root {
  --color-gold-light: #fff0a8;
  --color-gold-main: #dfb235;
  --color-gold-dark: #9e7819;
  --color-sapphire-deep: #031433;
  --color-sapphire-card: rgba(6, 26, 68, 0.88);
  --color-sapphire-border: rgba(223, 178, 53, 0.28);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #020d24;
}

::-webkit-scrollbar-thumb {
  background: #14356e;
  border-radius: 9999px;
  border: 1px solid rgba(223, 178, 53, 0.25);
}

::-webkit-scrollbar-thumb:hover {
  background: #1e4b9c;
}

/* Glassmorphism Panel */
.glass-panel {
  background: linear-gradient(135deg, rgba(7, 28, 73, 0.9) 0%, rgba(3, 16, 46, 0.95) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(223, 178, 53, 0.22);
  box-shadow: 0 12px 35px -10px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 240, 168, 0.12);
}

.glass-panel-sub {
  background: rgba(4, 19, 51, 0.65);
  border: 1px solid rgba(223, 178, 53, 0.16);
}

/* Metallic Shimmer */
.gold-shimmer {
  background: linear-gradient(
    90deg,
    #dfb235 0%,
    #fff2b2 30%,
    #dfb235 50%,
    #fff9da 70%,
    #9e7819 100%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: goldShine 6s linear infinite;
}

@keyframes goldShine {
  to {
    background-position: 200% center;
  }
}

/* Primary Gold Button */
.btn-gold-primary {
  background: linear-gradient(135deg, #ffe073 0%, #dfb235 50%, #b88612 100%);
  color: #031433;
  font-weight: 800;
  border: 1px solid #ffea9f;
  box-shadow: 0 4px 18px rgba(223, 178, 53, 0.4);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-gold-primary:hover {
  background: linear-gradient(135deg, #ffe78a 0%, #ebb93e 50%, #c59117 100%);
  box-shadow: 0 6px 25px rgba(223, 178, 53, 0.6);
  transform: translateY(-1px);
}

.btn-gold-primary:active {
  transform: translateY(0) scale(0.98);
}

/* Secondary Outline Button */
.btn-gold-outline {
  background: rgba(7, 28, 73, 0.6);
  color: #f7df94;
  border: 1px solid rgba(223, 178, 53, 0.35);
  transition: all 0.2s ease;
}

.btn-gold-outline:hover {
  background: rgba(223, 178, 53, 0.15);
  border-color: #dfb235;
  color: #fff0a8;
}

.btn-gold-outline.active {
  background: linear-gradient(135deg, #dfb235 0%, #b88612 100%);
  color: #031433;
  font-weight: 700;
  border-color: #ffe073;
}

/* Input range styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #092150;
  border-radius: 9999px;
  outline: none;
  border: 1px solid rgba(223, 178, 53, 0.2);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff4a3, #dfb235 60%, #9e7819);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(223, 178, 53, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 14px rgba(255, 240, 168, 0.9);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff4a3, #dfb235 60%, #9e7819);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(223, 178, 53, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 14px rgba(255, 240, 168, 0.9);
}

input[type="range"]::-moz-range-track {
  height: 6px;
  background: #092150;
  border-radius: 9999px;
  border: 1px solid rgba(223, 178, 53, 0.2);
}

/* Canvas container */
.canvas-wrapper {
  position: relative;
  border-radius: 18px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(223, 178, 53, 0.35) 0%, rgba(9, 36, 92, 0.9) 25%, rgba(3, 16, 46, 0.96) 100%);
  box-shadow: 0 18px 48px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(223, 178, 53, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  touch-action: none;
}

#bannerCanvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  cursor: grab;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

#bannerCanvas:active {
  cursor: grabbing;
}

/* Gender / Prefix toggle switches */
.prefix-btn {
  transition: all 0.2s ease;
}
.prefix-btn.selected {
  background: linear-gradient(135deg, #ffe073 0%, #dfb235 100%);
  color: #031433;
  font-weight: 800;
  border-color: #fff0a8;
}

/* Toast Notification */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Mobile floating action bar */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(3, 16, 46, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(223, 178, 53, 0.3);
  padding: 10px 16px;
  z-index: 50;
}
