/* ==========================================================================
   Thread & Verse - Stylesheet
   Theme: Custom Seamstress Atelier (Charcoal Dark Mode + Kintsugi Gold)
   ========================================================================== */

:root {
  /* Harmonious Dark Color Palette */
  --color-bg-dark: #121417;
  --color-bg-card: rgba(26, 29, 34, 0.7);
  --color-bg-input: rgba(18, 20, 23, 0.9);
  
  /* Accent Colors */
  --color-gold: #c5a043;
  --color-gold-hover: #dfb95e;
  --color-gold-glow: rgba(197, 160, 67, 0.35);
  
  --color-text-primary: #f5f6f8;
  --color-text-secondary: #9aa0a6;
  --color-border: rgba(197, 160, 67, 0.2);
  --color-border-focus: rgba(197, 160, 67, 0.6);
  --color-danger: #ea4335;
  --color-success: #34a853;
  --color-warning: #fbbc05;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-dark);
  color: var(--color-text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Canvas Atmospheric background */
.bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2.5rem;
  background: rgba(18, 20, 23, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo .logo-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--color-gold);
}

.logo-subtitle {
  font-size: 0.75rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-text-secondary);
  margin-top: 0.2rem;
}

.app-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.app-nav .nav-link {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.app-nav .nav-link:hover,
.app-nav .nav-link.active {
  color: var(--color-gold);
}

.app-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: width 0.3s ease;
}

.app-nav .nav-link:hover::after,
.app-nav .nav-link.active::after {
  width: 100%;
}

.atelier-status {
  font-size: 0.8rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gold);
  border: 1px solid var(--color-border);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(197, 160, 67, 0.05);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-select,
.unit-select {
  background: var(--color-bg-input);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

.lang-select:hover,
.unit-select:hover {
  border-color: var(--color-gold-hover);
}

.lang-select:focus,
.unit-select:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 8px rgba(197, 160, 67, 0.25);
}

/* ==========================================================================
   Main Content Views
   ========================================================================== */
.app-content {
  flex: 1;
  padding: 3rem 2.5rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.page-view {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-view.hidden {
  display: none;
}

.page-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 3.5rem;
  letter-spacing: 1px;
}

/* Glass Panel Utility */
.glass-panel {
  background: var(--color-bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
  border-color: var(--color-border-focus);
}

/* ==========================================================================
   1. Home View Components
   ========================================================================== */
.hero-section {
  text-align: center;
  padding: 4rem 1rem 6rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.25;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* Masterwork Spotlight (Velvet Curtains) */
.spotlight-container {
  margin-top: 2rem;
  margin-bottom: 6rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  color: var(--color-gold);
  text-align: center;
}

.spotlight-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.spotlight-image-container {
  border-radius: 6px;
  overflow: hidden;
  height: 400px;
  border: 1px solid var(--color-border);
  position: relative;
}

/* Decorative Curtains Simulation placeholder using CSS watercolor gradients */
.curtains-watercolor-placeholder {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(197, 160, 67, 0.25), transparent),
              linear-gradient(135deg, #0b1528 0%, #170d2b 100%);
  position: relative;
}

.curtains-watercolor-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 100%;
  background: repeating-linear-gradient(90deg, rgba(11, 21, 40, 0.4), rgba(11, 21, 40, 0.4) 30px, rgba(197, 160, 67, 0.15) 35px, rgba(11, 21, 40, 0.4) 40px);
  filter: blur(2px);
  opacity: 0.8;
}

.spotlight-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spotlight-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gold);
  font-weight: 500;
}

.spotlight-content h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--color-text-primary);
}

.spotlight-story {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.poetic-insight {
  border-left: 2px solid var(--color-gold);
  padding-left: 1.5rem;
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-text-primary);
}

/* Process Grid */
.process-grid-container {
  margin-bottom: 4rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.process-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2.5rem;
}

.process-step {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--color-gold);
  line-height: 1;
}

.process-card h4 {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.process-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* Button & Action Components */
.action-btn {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
}

.glow-btn {
  background-color: var(--color-gold);
  color: #121417;
  box-shadow: 0 0 10px var(--color-gold-glow);
}

.glow-btn:hover {
  background-color: var(--color-gold-hover);
  box-shadow: 0 0 18px var(--color-gold-glow);
  transform: translateY(-1px);
}

.secondary-btn {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: var(--color-border-focus);
  transform: translateY(-1px);
}

/* ==========================================================================
   2. Gallery View Components
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.gallery-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gallery-img-placeholder {
  height: 250px;
  width: 100%;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.gallery-img-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

/* Simulated backgrounds */
.curtains-bg {
  background: linear-gradient(135deg, #0b1528, #170d2b);
}
.curtains-bg::before {
  background: repeating-linear-gradient(90deg, rgba(0,0,0,0.1), rgba(0,0,0,0.1) 15px, rgba(197, 160, 67, 0.1) 20px);
}

.coat-bg {
  background: linear-gradient(135deg, #2b1f1d, #14171a);
}
.coat-bg::before {
  background: repeating-linear-gradient(45deg, rgba(197, 160, 67, 0.05), rgba(197, 160, 67, 0.05) 2px, transparent 2px, transparent 10px);
}

.linen-bg {
  background: linear-gradient(135deg, #202b28, #1c1d1a);
}
.linen-bg::before {
  background: radial-gradient(circle, rgba(197, 160, 67, 0.1) 10%, transparent 10%);
  background-size: 15px 15px;
}

.gallery-card-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.gallery-card-content h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 300;
}

.tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-gold);
  border: 1px solid var(--color-border);
  padding: 0.2rem 0.6rem;
  align-self: flex-start;
  border-radius: 50px;
  background: rgba(197, 160, 67, 0.03);
}

.gallery-card-content p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   3. Consultation & Sizing View
   ========================================================================== */
.consult-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.form-section-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 2rem;
  color: var(--color-gold);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.8rem;
}

#seamstress-order-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row label,
.form-col label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--color-text-primary);
  text-transform: uppercase;
}

.form-row input,
.form-row select,
.form-row textarea,
.form-col input,
.form-col select {
  width: 100%;
  background-color: var(--color-bg-input);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.8rem 1rem;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus,
.form-col input:focus,
.form-col select:focus {
  outline: none;
  border-color: var(--color-gold-hover);
  box-shadow: 0 0 8px rgba(197, 160, 67, 0.2);
}

.form-row-group {
  display: flex;
  gap: 1.5rem;
}

.form-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Calculator Sidebar */
.consult-calc-sidebar {
  position: sticky;
  top: 100px;
}

.calc-results-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.calc-label {
  color: var(--color-text-secondary);
  font-weight: 300;
}

.calc-value {
  color: var(--color-text-primary);
  font-weight: 500;
}

.calc-valueHighlight {
  color: var(--color-gold);
  font-weight: 600;
  font-size: 1.05rem;
}

.calc-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0.5rem 0;
}

.total-row {
  font-size: 1.2rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.2rem;
  margin-top: 0.5rem;
}

.total-row .calc-label {
  color: var(--color-text-primary);
  font-weight: 500;
}

.total-row .calc-value {
  color: var(--color-gold);
  font-weight: 600;
  font-size: 1.4rem;
}

.calc-disclaimer {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-text-secondary);
  font-style: italic;
  margin-top: 0.8rem;
}

/* ==========================================================================
   4. Collaboration Portal
   ========================================================================== */
.portal-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.canvas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.canvas-header h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
}

.status-indicator {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}

.status-indicator.yellow {
  background-color: rgba(251, 188, 5, 0.1);
  color: var(--color-warning);
  border: 1px solid rgba(251, 188, 5, 0.2);
}

.status-indicator.green {
  background-color: rgba(52, 168, 83, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(52, 168, 83, 0.2);
}

.design-preview-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.design-tabs {
  display: flex;
  gap: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.design-tab {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  transition: all 0.3s ease;
}

.design-tab.active {
  color: var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
  font-weight: 500;
}

.concept-board-image {
  border-radius: 4px;
  border: 1px solid var(--color-border);
  height: 420px;
  overflow: hidden;
  position: relative;
}

.concept-image-placeholder {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 0.4s ease;
}

/* Simulated Design Board versions */
.concept-image-placeholder.sketch-v2 {
  background: radial-gradient(circle at center, rgba(197, 160, 67, 0.15), transparent),
              linear-gradient(to bottom, #101520, #080a10);
}
.concept-image-placeholder.sketch-v2::before {
  content: '📐 Design Sketch v2: Pinch-pleat velvet panels standing 9ft, weighted drapery margins.';
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 1rem;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  line-height: 1.4;
  border-radius: 4px;
}

.concept-image-placeholder.sketch-v1 {
  background: linear-gradient(to bottom, #181c20, #0f1012);
}
.concept-image-placeholder.sketch-v1::before {
  content: '📐 Design Sketch v1: Flat panels standing 9ft, eyelet headers (client chose pinch pleats).';
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 1rem;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  border-radius: 4px;
}

.concept-image-placeholder.fabric-swatches {
  background: radial-gradient(circle at 10% 80%, rgba(197, 160, 67, 0.2), transparent),
              linear-gradient(to bottom, #2b1f1a, #110e0c);
}
.concept-image-placeholder.fabric-swatches::before {
  content: '🎨 Fabric Option: Deep Cotton Indigo Velvet (Swatched from Atelier stock).';
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 1rem;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  border-radius: 4px;
}

.canvas-actions {
  display: flex;
  justify-content: flex-end;
}

/* Discussion / Chat Thread */
.portal-chat-card {
  display: flex;
  flex-direction: column;
  height: 600px;
}

.chat-thread {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background-color: var(--color-bg-input);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.chat-msg {
  max-width: 80%;
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.45;
  position: relative;
}

.chat-msg.artisan {
  background-color: rgba(197, 160, 67, 0.08);
  border: 1px solid var(--color-border);
  align-self: flex-start;
  border-top-left-radius: 0;
}

.chat-msg.client {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  align-self: flex-end;
  border-top-right-radius: 0;
}

.msg-meta {
  display: block;
  font-size: 0.7rem;
  color: var(--color-gold);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.chat-msg.client .msg-meta {
  color: var(--color-text-secondary);
}

.msg-time {
  position: absolute;
  bottom: -18px;
  font-size: 0.65rem;
  color: var(--color-text-secondary);
}

.chat-msg.artisan .msg-time {
  left: 0;
}

.chat-msg.client .msg-time {
  right: 0;
}

.chat-input-row {
  display: flex;
  gap: 1rem;
}

.chat-input-row input {
  flex: 1;
  background-color: var(--color-bg-input);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.8rem 1rem;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.chat-input-row input:focus {
  outline: none;
  border-color: var(--color-gold-hover);
}

.chat-submit-btn {
  background-color: var(--color-gold);
  color: #121417;
  border: none;
  border-radius: 4px;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-submit-btn:hover {
  background-color: var(--color-gold-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   5. Shipping Center
   ========================================================================== */
.shipping-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.instructions-content {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.styled-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.styled-list li {
  position: relative;
  padding-left: 1rem;
}

.styled-list li strong {
  color: var(--color-text-primary);
  font-size: 1rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.4rem;
}

.styled-list li p {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.workroom-address-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  border-radius: 4px;
  margin-top: 1rem;
}

.workroom-address-box h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.workroom-address-box p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--color-text-primary);
}

/* Packing Slip Generator */
.slip-generator-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.packing-slip-preview {
  margin-top: 2rem;
  background-color: #ffffff;
  color: #121417;
  padding: 2.5rem;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: slideDown 0.4s ease-out forwards;
}

.slip-header {
  border-bottom: 2px solid #121417;
  padding-bottom: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.slip-header h4 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  letter-spacing: 2px;
  font-weight: 600;
}

.slip-header span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
}

.slip-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.slip-field {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  border-bottom: 1px dashed #cccccc;
  padding-bottom: 0.4rem;
}

.slip-field strong {
  font-weight: 600;
}

.barcode-simulation {
  margin-top: 1rem;
  text-align: center;
  font-family: monospace;
  font-size: 1.6rem;
  letter-spacing: -2px;
  color: #121417;
}

.print-slip-btn-action {
  background-color: #121417;
  color: #ffffff;
  border: none;
  padding: 0.8rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 4px;
  text-align: center;
  transition: opacity 0.3s ease;
}

.print-slip-btn-action:hover {
  opacity: 0.9;
}

/* ==========================================================================
   Checkout Dialog Modal
   ========================================================================== */
.checkout-modal {
  width: 90%;
  max-width: 480px;
  margin: auto;
  border: 1px solid var(--color-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.checkout-modal::backdrop {
  background: rgba(18, 20, 23, 0.8);
  backdrop-filter: blur(10px);
}

.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.8rem;
}

.checkout-header h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-gold);
}

.close-btn-x {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn-x:hover {
  color: var(--color-danger);
}

.checkout-summary-box {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-summary-box strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  display: block;
}

#checkout-item-name {
  color: var(--color-text-primary);
  font-size: 0.95rem;
  font-weight: 400;
}

.price-badge {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-gold);
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.checkout-submit-btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* Checkout Overlay Panels (Spinner/Success) */
.checkout-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  text-align: center;
  z-index: 10;
}

.checkout-overlay.hidden {
  display: none;
}

/* Spinner Animation */
.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-gold);
  border-radius: 50px;
  animation: spin 1s linear infinite;
}

.success-icon {
  width: 65px;
  height: 65px;
  border-radius: 50px;
  background-color: rgba(52, 168, 83, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(52, 168, 83, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  font-weight: 600;
}

.checkout-overlay h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--color-gold);
}

.checkout-overlay p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  max-width: 380px;
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.app-footer {
  padding: 2.5rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
  background: rgba(18, 20, 23, 0.9);
}

.app-footer p {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .spotlight-card,
  .consult-layout,
  .portal-grid,
  .shipping-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .app-header {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .process-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
