@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #1a1200;
  --bg-lighter: #2a1f05;
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --gold-dark: #aa8c2c;
  --text-main: #e0e0e0;
  --text-muted: #999999;
  --white: #ffffff;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--white);
  font-weight: 500;
  letter-spacing: 1px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 90px 0;
}

.text-center {
  text-align: center;
}

.text-gold {
  color: var(--gold-primary);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--gold-primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid var(--gold-primary);
  background: transparent;
  color: var(--gold-primary);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--gold-primary);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover {
  color: var(--bg-color);
}

.btn:hover::before {
  width: 100%;
}

.btn-solid {
  background: var(--gold-primary);
  color: var(--bg-color);
}
.btn-solid::before {
  background: var(--gold-light);
}

/* Header & Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  transition: var(--transition);
}

header.scrolled {
  background-color: rgba(5, 5, 5, 0.95);
  padding: 0;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  gap: 16px;
  transition: var(--transition);
}

header.scrolled .navbar {
  padding: 10px 0;
}

.logo h1 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}
.logo h1 span {
  color: var(--white);
}

/* Site Logo Image */
.site-logo {
  height: 58px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}
.site-logo:hover {
  opacity: 0.85;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
  flex: 1;
  justify-content: center;
}

.nav-links li a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
  color: var(--white);
  position: relative;
  white-space: nowrap;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.nav-links li a:hover {
  color: var(--gold-primary);
}

.nav-links li a.active {
  color: var(--white);
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.dropdown-arrow {
  font-size: 0.7rem;
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.3s ease;
  vertical-align: middle;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 5, 5, 0.97);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  min-width: 185px;
  padding: 10px 0;
  list-style: none;
  z-index: 2000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  animation: dropdownFadeIn 0.22s ease forwards;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Top gold bar accent */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  width: 70%;
  height: 2px;
  background: var(--gold-primary);
  border-radius: 2px;
}

/* Invisible bridge to prevent hover loss when moving mouse down */
.dropdown-menu::after {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}

/* Show ONLY on hover */
.nav-dropdown:hover > .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 11px 22px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-main);
  transition: var(--transition);
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.07);
  padding-left: 28px;
}

.dropdown-menu li a::after {
  display: none;
}


.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background-color: var(--white);
  transition: var(--transition);
}

/* Hero Section */
.hero.split-hero {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  background-color: var(--bg-color);
  position: relative;
  overflow: hidden;
  padding-top: 130px; /* Account for top bar + navbar */
  padding-bottom: 70px;
}

.hero-split-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  gap: 50px;
}

.hero-image-wrapper {
  flex: 1 1 52%;
  max-width: 660px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-img-contained {
  width: 100%;
  height: auto;
  max-height: 72vh;
  display: block;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
}

.hero-content-split {
  flex: 1 1 48%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  z-index: 3;
}

.hero-subtitle {
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0 0 12px 0;
  display: block;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 600;
}

.hero.split-hero .hero-content-split h2,
.hero-content-split h2 {
  font-size: clamp(2rem, 3.1vw, 3rem);
  font-weight: 300;
  line-height: 1.16;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0 0 16px 0;
  color: var(--white);
  word-break: normal;
  overflow-wrap: normal;
}

.hero.split-hero .hero-content-split h2 span,
.hero-content-split h2 span {
  font-weight: 700;
  color: var(--gold-primary);
  display: inline;
}

.hero-content-split p {
  font-size: clamp(0.95rem, 1.05vw, 1.08rem);
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 26px 0;
  max-width: 490px;
}

.hero-content-split .btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

/* Page Header (for inner pages) */
.page-header {
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-lighter);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  position: relative;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, rgba(5,5,5,1) 100%);
}
.page-header h1 {
  font-size: 3.5rem;
  position: relative;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* Cards & Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.card {
  background: var(--bg-lighter);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 40px 30px;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-color: rgba(212, 175, 55, 0.3);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  font-size: 3rem;
  color: var(--gold-primary);
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Image Grid (Gallery/Portfolio) */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  transform: translateY(100%);
  transition: var(--transition);
  opacity: 0;
}

.img-wrapper:hover img {
  transform: scale(1.1);
}

.img-wrapper:hover .img-overlay {
  transform: translateY(0);
  opacity: 1;
}

.img-overlay h4 {
  color: var(--gold-primary);
  margin-bottom: 5px;
}

/* Forms */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 15px;
  background: var(--bg-lighter);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

/* Footer */
footer {
  background-color: var(--bg-lighter);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.1rem;
}

.footer-col p {
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 300px;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--gold-primary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile: always show content — don't rely on JS observer */
@media (max-width: 1100px) {
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* Responsive */
@media (max-width: 992px) {
  .hero.split-hero {
    min-height: auto;
    padding-top: 130px;
    padding-bottom: 60px;
  }
  .hero-split-container {
    flex-direction: column !important;
    text-align: center;
    gap: 36px !important;
  }
  .hero-image-wrapper {
    flex: none !important;
    width: 100% !important;
    max-width: 540px !important;
    margin: 0 auto;
  }
  .hero-content-split {
    flex: none !important;
    width: 100% !important;
    max-width: 580px !important;
    text-align: center;
    align-items: center;
    margin: 0 auto;
  }
  .hero.split-hero .hero-content-split h2,
  .hero-content-split h2 {
    font-size: clamp(1.8rem, 4.5vw, 2.5rem) !important;
  }
  .hero-content-split p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-content-split .btn-group {
    justify-content: center !important;
  }
  .hero-desktop-br {
    display: none;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

/* Medium screens – shrink further before hamburger */
@media (max-width: 1280px) {
  .nav-links {
    gap: 14px;
  }
  .nav-links li a {
    font-size: 0.82rem;
    letter-spacing: 0.4px;
  }
}

@media (max-width: 1100px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 88px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 88px);
    background: var(--bg-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    overflow-y: auto;
    transition: 0.4s ease-in-out;
    z-index: 999;
    flex-wrap: nowrap;
    flex: unset;
    justify-content: center;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li a {
    font-size: 1.1rem !important;
    letter-spacing: 1px !important;
    white-space: normal;
    text-align: center;
  }

  .color-picker-toggle-btn {
    font-size: 1.1rem !important;
    letter-spacing: 1px !important;
  }

  /* Dropdown on medium/mobile */
  .nav-dropdown {
    width: 100%;
    text-align: center;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    animation: none;
    background: rgba(255,255,255,0.03);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    display: none;
    width: 100%;
  }

  .dropdown-menu::before {
    display: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    font-size: 0.85rem;
    padding: 10px 20px;
    color: var(--text-muted);
  }

  .nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
  }

  .nav-dropdown:hover > .dropdown-menu {
    display: none;
  }
  .nav-dropdown.open > .dropdown-menu {
    display: block !important;
  }

  .nav-color-picker-item {
    width: 100%;
    text-align: center;
  }

  .color-picker-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%) !important;
    width: 290px;
    border-radius: 16px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 88px;  /* height of top bar (~34px) + navbar (~54px) */
    right: -100%;
    width: 100%;
    height: calc(100vh - 88px);
    background: var(--bg-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    overflow-y: auto;
    transition: 0.4s ease-in-out;
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }

  /* Responsive logo size for mobile */
  .site-logo {
    height: 40px;
  }

  /* Mobile nav link sizing */
  .nav-links li a {
    font-size: 1rem !important;
    letter-spacing: 1px !important;
    white-space: normal;
    text-align: center;
  }
  
  .section-padding {
    padding: 60px 0 !important;
  }
  
  .section-title {
    font-size: 1.8rem !important;
  }
  
  .page-header {
    padding-top: 120px !important;
    height: auto !important;
    min-height: 50vh !important;
    padding-bottom: 50px !important;
    /* Fix: background-attachment:fixed is broken on iOS/Android */
    background-attachment: scroll !important;
  }
  
  .page-header h1 {
    font-size: 2rem !important;
    text-align: center;
    padding: 0 15px;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .hero .btn-group {
    flex-direction: column;
  }

  /* Mobile Dropdown */
  .nav-dropdown {
    width: 100%;
    text-align: center;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    animation: none;
    background: rgba(255,255,255,0.03);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    display: none;
    width: 100%;
  }

  .dropdown-menu::before {
    display: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    font-size: 0.8rem;
    padding: 10px 20px;
    color: var(--text-muted);
  }

  .dropdown-menu li a:hover {
    padding-left: 20px;
  }

  .nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
  }

  /* Fix inline grid layouts across all pages */
  div[style*="display: grid"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Fix home page hero section layout for mobile */
  .hero.split-hero {
    padding-top: 110px !important;
    padding-bottom: 45px !important;
  }
  
  .hero-split-container {
    flex-direction: column !important;
    gap: 24px !important;
  }
  
  .hero-image-wrapper {
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto;
    flex: none !important;
  }
  
  .hero-content-split {
    max-width: 100% !important;
    flex: none !important;
    text-align: center;
    align-items: center;
  }

  .hero.split-hero .hero-content-split h2,
  .hero-content-split h2 {
    font-size: clamp(1.55rem, 5.5vw, 2.1rem) !important;
    line-height: 1.2 !important;
    letter-spacing: 0.8px !important;
    margin: 0 0 14px 0 !important;
  }

  .hero-subtitle {
    font-size: 0.82rem !important;
    letter-spacing: 2px !important;
    margin-bottom: 8px !important;
  }

  .hero-content-split p {
    font-size: 0.92rem !important;
    margin: 0 0 20px 0 !important;
  }
  
  .hero-content-split .btn-group {
    justify-content: center !important;
    gap: 12px !important;
    width: 100%;
  }

  .hero-content-split .btn-group .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    letter-spacing: 1px;
  }
  
  /* Safe mobile flex overrides — only for known wrapper patterns */
  .hero-split-container,
  div[style*="flex-wrap: wrap"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 25px !important;
  }

  /* Prevent any inline flex/grid item from overflowing horizontally */
  .container > div,
  .container > section {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Fix for specific component alignments */
  footer .footer-content {
    text-align: center;
    gap: 30px;
  }
  
  footer .social-icons {
    justify-content: center !important;
  }
  
  .faq-btn {
    padding: 15px !important;
    gap: 10px !important;
  }
  
  .img-wrapper img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Disable hover for dropdown on mobile to prevent accidental closing */
  .nav-dropdown:hover > .dropdown-menu {
    display: none;
  }
  .nav-dropdown.open > .dropdown-menu {
    display: block !important;
  }
  
  /* Ensure form controls behave on mobile */
  .form-control {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ================================================
   Training Programs Page – Responsive Fixes
   ================================================ */
.training-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}

.pricing-cards-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.pricing-card-value {
  flex: 1;
  min-width: 300px;
  max-width: 550px;
}

.pricing-card-offer {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
}

/* Course detail boxes */
.course-details-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

/* Pillars grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}

@media (max-width: 768px) {
  .training-intro-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .pricing-cards-wrap {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 25px !important;
  }

  .pricing-card-value,
  .pricing-card-offer {
    min-width: unset !important;
    max-width: 100% !important;
    width: 100% !important;
    flex: none !important;
  }

  .pricing-card-value ul li {
    flex-wrap: wrap;
    gap: 4px;
  }

  .pillars-grid {
    grid-template-columns: 1fr !important;
  }

  /* Fix: background-attachment:fixed causes black/broken bg on mobile browsers */
  .page-header {
    background-attachment: scroll !important;
    background-position: center center !important;
  }

  /* Ensure page-header has correct height on mobile */
  .page-header {
    height: 40vh;
    min-height: 200px;
  }

  /* Fix section body content visibility on mobile */
  .section-padding {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.6rem !important;
    letter-spacing: 1.5px;
  }
}

/* ================================================
   COLOR PICKER NAV – Styles
   ================================================ */

/* Nav item container */
.nav-color-picker-item {
  position: relative;
}

/* Toggle button */
.color-picker-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
  color: var(--white) !important;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.color-picker-toggle-btn:hover {
  color: var(--gold-primary) !important;
}

.palette-icon {
  font-size: 1rem;
  line-height: 1;
}

/* Floating panel */
.color-picker-panel {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 260px;
  background: rgba(8, 8, 12, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 18px;
  z-index: 3000;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(212,175,55,0.1) inset;
  animation: cpFadeIn 0.22s ease forwards;
}

/* Invisible bridge so mouse doesn't lose panel */
.color-picker-panel::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}

/* Top gold accent line */
.color-picker-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  border-radius: 2px;
}

@keyframes cpFadeIn {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.color-picker-panel.open {
  display: block;
}

/* Panel header */
.cp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.cp-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-primary);
  font-weight: 600;
}

.cp-reset {
  background: transparent;
  border: 1px solid rgba(212,175,55,0.3);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  letter-spacing: 0.5px;
}

.cp-reset:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* Preset swatches grid */
.cp-presets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.cp-swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
  box-sizing: border-box;
}

.cp-swatch:hover {
  transform: scale(1.18);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.cp-swatch.active {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.4);
  transform: scale(1.12);
}

/* Custom color row */
.cp-custom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.cp-custom-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cp-color-input {
  width: 36px;
  height: 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  background: none;
  outline: none;
}

.cp-color-input::-webkit-color-swatch-wrapper { padding: 0; }
.cp-color-input::-webkit-color-swatch { border: none; border-radius: 6px; }

/* Hint text */
.cp-hint {
  font-size: 0.7rem;
  color: rgba(212,175,55,0.5);
  text-align: center;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Mobile color picker */
@media (max-width: 768px) {
  .nav-color-picker-item {
    width: 100%;
    text-align: center;
  }

  .color-picker-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%) !important;
    width: 290px;
    border-radius: 16px;
  }

  @keyframes cpFadeIn {
    from { opacity: 0; transform: translate(-50%, -48%) scale(0.96); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  }
}


