/* ==========================================================================
   GoldLab & Co. - Fresh Luxury Design System CSS (v38)
   Design Concept: Swiss Private Bank & High-End Jewelry Niche Luxury
   Color Palette: Deep Navy Obsidian (#0b0d14) & Warm Champagne Gold (#f0d375)
   Typography: Senior-Friendly Large & Readable Typography
   ========================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Tokens */
  --bg-dark-primary: #0a0c12;
  --bg-dark-secondary: #131722;
  --bg-dark-tertiary: #1b2130;
  --bg-card: #161b28;
  --bg-card-hover: #1e2538;
  
  --gold-primary: #e0b848;
  --gold-light: #f5e4a2;
  --gold-dark: #b89128;
  --gold-gradient: linear-gradient(135deg, #f5e4a2 0%, #e0b848 50%, #b89128 100%);
  --gold-glow: rgba(224, 184, 72, 0.3);
  
  --text-white: #ffffff;
  --text-light: #f1f5f9;
  --text-muted: #a0aec0;
  --text-gold: #f3d069;
  
  --pnl-plus: #10b981;
  --pnl-plus-bg: rgba(16, 185, 129, 0.15);
  --pnl-minus: #ef4444;
  --pnl-minus-bg: rgba(239, 68, 68, 0.15);
  
  --border-dark: rgba(224, 184, 72, 0.22);
  --border-gold-bright: rgba(245, 228, 162, 0.5);
  
  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif: 'Cinzel', serif;
  --font-num: 'Inter', sans-serif;
  
  --shadow-gold: 0 12px 35px -10px rgba(224, 184, 72, 0.35);
  --shadow-card: 0 20px 45px rgba(0, 0, 0, 0.45);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 17px; /* Senior-Friendly Larger Base Font */
}

body {
  background-color: var(--bg-dark-primary);
  color: var(--text-light);
  font-family: var(--font-body);
  line-height: 1.75;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

button, input, select {
  font-family: inherit;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

/* Container */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section Common */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.4rem;
  border-radius: 50px;
  background: rgba(224, 184, 72, 0.1);
  border: 1px solid var(--border-dark);
  color: var(--gold-light);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.7rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.18rem;
  margin-top: 0.7rem;
  line-height: 1.6;
}

.gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   TOP BAR & NAVBAR (대형 폰트 & 프레시 헤더)
   -------------------------------------------------------------------------- */
.sticky-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 12, 18, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.top-bar {
  background: #06070a;
  border-bottom: 1px solid rgba(224, 184, 72, 0.25);
  font-size: 1.15rem;
  padding: 0.85rem 0;
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-gradient);
  color: #000;
  font-weight: 900;
  font-size: 0.92rem;
  padding: 0.35rem 0.95rem;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 0 15px rgba(224, 184, 72, 0.4);
}

.navbar {
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b0c10;
  font-size: 1.35rem;
  box-shadow: 0 0 22px rgba(224, 184, 72, 0.45);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-link, .nav-menu a {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--text-light);
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover, .nav-link.active, .nav-menu a:hover, .nav-menu a.active {
  color: var(--gold-light) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.92rem;
  border-radius: 10px;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #0b0c10;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(224, 184, 72, 0.5);
}

.btn-outline-gold {
  background: rgba(224, 184, 72, 0.08);
  border: 1px solid var(--border-gold-bright);
  color: var(--gold-light);
}

.btn-outline-gold:hover {
  background: rgba(224, 184, 72, 0.2);
  color: #fff;
}

/* --------------------------------------------------------------------------
   HERO BRAND INTRO
   -------------------------------------------------------------------------- */
.hero {
  padding: 4.5rem 0 4rem 0;
  background: radial-gradient(circle at 70% 30%, rgba(224, 184, 72, 0.08) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.32;
  letter-spacing: -0.8px;
  margin-bottom: 1.4rem;
  word-break: keep-all;
}

.hero-desc {
  font-size: 1.18rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.2rem;
  word-break: keep-all;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.stat-item h4 {
  font-family: var(--font-num);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold-light);
}

.stat-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   PRICE BOARD & METAL CARDS
   -------------------------------------------------------------------------- */
.metal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 20px;
  padding: 1.5rem 1.4rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
  flex: 1;
}

.metal-card:hover, .metal-card.active {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.metal-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.metal-card-price {
  font-family: var(--font-num);
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

/* Main Interactive Chart Card */
.main-chart-card {
  background: var(--bg-dark-secondary);
  border: 1px solid var(--border-gold-bright);
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

/* --------------------------------------------------------------------------
   PRODUCTS SHOWROOM & MODAL
   -------------------------------------------------------------------------- */
.luxury-product-card {
  background: linear-gradient(180deg, var(--bg-dark-secondary) 0%, var(--bg-dark-primary) 100%);
  border: 1px solid var(--border-dark);
  border-radius: 26px;
  padding: 2.2rem;
  cursor: pointer;
  transition: all 0.35 ease;
  box-shadow: var(--shadow-card);
}

.luxury-product-card:hover {
  border-color: var(--gold-light);
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   MODALS & OVERLAYS
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 5, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-dark-secondary);
  border: 1px solid var(--border-gold-bright);
  border-radius: 28px;
  padding: 2.8rem;
  width: 90%;
  max-width: 580px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
}

.modal-close:hover { color: var(--gold-light); }

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-light);
  margin-bottom: 0.55rem;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: #090b10;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  color: var(--text-white);
  font-size: 1.05rem;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(224, 184, 72, 0.25);
}

/* Ledger Table */
.ledger-table {
  width: 100%;
  border-collapse: collapse;
}

.ledger-table th {
  background: rgba(10, 12, 18, 0.9);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 1.2rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-dark);
}

.ledger-table td {
  padding: 1.2rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1.05rem;
  color: var(--text-light);
}

/* Footer */
.footer {
  background: #06070a;
  border-top: 1px solid var(--border-dark);
  padding: 4.5rem 0 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Floating Widgets */
.floating-widgets {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
}

.float-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}

.float-kakao { background: #fee500; color: #000; }
.float-call { background: var(--gold-gradient); color: #000; }
.float-btn:hover { transform: scale(1.1); }

/* Custom Booking Calendar Styles */
.preset-date-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  color: var(--text-light);
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-date-btn:hover {
  background: rgba(224, 184, 72, 0.2);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.cal-nav-btn:hover {
  background: rgba(224, 184, 72, 0.2) !important;
  border-color: var(--gold-primary) !important;
  color: var(--gold-light) !important;
}

/* ==========================================================================
   Master Admin Control Center Styling (GoldLab & Co. Master CRM)
   ========================================================================== */
.master-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .master-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .master-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.master-kpi-card {
  background: linear-gradient(145deg, #131722 0%, #0d0f17 100%);
  border: 1px solid rgba(224, 184, 72, 0.3);
  border-radius: 20px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.master-kpi-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-light);
}

.master-kpi-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(224, 184, 72, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.master-kpi-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.master-kpi-val {
  font-family: var(--font-num);
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.2;
}

.master-kpi-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
}

.badge-master-vip {
  background: rgba(224, 184, 72, 0.18);
  border: 1px solid rgba(224, 184, 72, 0.4);
  color: var(--gold-light);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.badge-master-biz {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.master-filter-input {
  background: #0d0f17;
  border: 1px solid var(--border-dark);
  color: var(--text-white);
  padding: 0.6rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  outline: none;
}

.master-filter-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(224, 184, 72, 0.3);
}

.master-table-row:hover {
  background: rgba(224, 184, 72, 0.05);
}

.master-btn-action {
  background: linear-gradient(135deg, #f5e4a2 0%, #e0b848 100%);
  color: #0b0c10;
  border: none;
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 12px rgba(224, 184, 72, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.master-btn-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(224, 184, 72, 0.5);
}


