/* ==========================================================================
   СТАС МОЖЕТ. — Ultra-Luxury Dark Alpine Aesthetic
   Theme: Smoked Obsidian, Haute Horlogerie Champagne Gold, Brushed Bronze
   ========================================================================== */

:root {
  --bg-deep: #07090e;
  --bg-surface: #0e121a;
  --bg-card: rgba(16, 21, 31, 0.82);
  --bg-card-hover: rgba(22, 29, 44, 0.92);
  --bg-input: rgba(9, 12, 18, 0.92);
  
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(207, 164, 98, 0.16);
  --border-card-hover: rgba(207, 164, 98, 0.42);
  --border-focus: #cfa462;
  
  --gold-champagne: #f4e8d3;
  --gold-primary: #cfa462;
  --gold-light: #f1d7a8;
  --gold-deep: #966f38;
  --gold-glow: rgba(207, 164, 98, 0.22);
  
  --bronze-grad-1: #9c733f;
  --bronze-grad-2: #6b4922;
  --bronze-hover-1: #af834a;
  --bronze-hover-2: #7a5427;
  
  --text-main: #fcf8f2;
  --text-muted: #9aa5b6;
  --text-dim: #5c6778;
  --text-label: #a29177;
  
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  
  --shadow-card: 0 20px 50px -10px rgba(0, 0, 0, 0.75), 0 0 0 1px var(--border-card), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-card-hover: 0 28px 65px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px var(--border-card-hover), 0 0 30px rgba(207, 164, 98, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --shadow-btn: 0 8px 24px -4px rgba(107, 73, 34, 0.55), inset 0 1px 0 rgba(255, 235, 185, 0.4);
  --transition-luxury: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(ellipse at 15% 15%, rgba(207, 164, 98, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(18, 24, 38, 0.6) 0%, transparent 60%);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   ATMOSPHERIC MOUNTAIN & SUN BACKDROP
   ========================================================================== */
.ambient-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Mountain Graphic */
.mountain-graphic {
  position: absolute;
  top: 0;
  left: 0;
  width: 55vw;
  height: 85vh;
  max-width: 900px;
  background-image: url('../images/mountain_header.jpg');
  background-repeat: no-repeat;
  background-position: top left;
  background-size: cover;
  opacity: 0.24;
  mask-image: radial-gradient(circle at 35% 30%, black 15%, rgba(0,0,0,0.5) 50%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 35% 30%, black 15%, rgba(0,0,0,0.5) 50%, transparent 75%);
  filter: contrast(1.2) brightness(0.85);
}

/* Antique Swiss Topographic Contour Lines */
.topo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/topo-pattern.svg');
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.22;
}

/* Mountain Golden Ascending Trail */
.mountain-trail-svg {
  position: absolute;
  top: 175px;
  left: 10px;
  width: 220px;
  height: 480px;
  opacity: 0.55;
}

.trail-waypoint {
  filter: drop-shadow(0 0 5px #cfa462);
}

.trail-waypoint.pulse {
  animation: waypointPulse 3.2s infinite ease-in-out;
}

.trail-summit {
  filter: drop-shadow(0 0 10px #ffe1a0);
}

@keyframes waypointPulse {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.35); opacity: 1; filter: drop-shadow(0 0 10px #ffe7b3); }
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.site-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1260px;
  margin: 0 auto;
  padding: 48px 28px 90px;
}

/* Hero Header */
.hero-header {
  margin-bottom: 38px;
  max-width: 880px;
  position: relative;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 5.8vw, 4.9rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.12;
  margin-bottom: 14px;
  display: inline-block;
  
  /* Vertical Silk Champagne Gold Gradient */
  background: linear-gradient(180deg, #ffffff 10%, #f6ecd8 45%, #deb07c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 18px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 24px rgba(222, 176, 124, 0.22));
}

.brand-accent-wrap {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.brand-underline-svg {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 20px;
  pointer-events: none;
  overflow: visible;
}

.brand-subtitle {
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.45;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* Main 2-Column Grid */
.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: start;
}

/* Luxury Card Base */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  transition: var(--transition-luxury);
}

.content-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ==========================================================================
   CARD 1: GOAL SETTING CARD
   ========================================================================== */
.goal-card {
  padding: 26px 30px;
  background: linear-gradient(155deg, rgba(19, 25, 38, 0.9) 0%, rgba(12, 16, 24, 0.92) 100%);
}

.goal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.field-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-badge-pill {
  font-size: 0.72rem;
  color: var(--gold-champagne);
  background: rgba(207, 164, 98, 0.14);
  border: 1px solid rgba(207, 164, 98, 0.35);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 0 12px rgba(207, 164, 98, 0.15);
}

.input-styled, .textarea-styled {
  background: var(--bg-input);
  border: 1px solid rgba(207, 164, 98, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  padding: 13px 16px;
  transition: var(--transition-luxury);
  outline: none;
  width: 100%;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.45);
}

.input-styled::placeholder, .textarea-styled::placeholder {
  color: var(--text-dim);
}

.input-styled:hover, .textarea-styled:hover {
  border-color: rgba(207, 164, 98, 0.38);
}

.input-styled:focus, .textarea-styled:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--gold-glow), inset 0 1px 3px rgba(0, 0, 0, 0.3);
  background: rgba(14, 18, 28, 0.98);
}

.textarea-styled {
  resize: vertical;
  min-height: 85px;
}

/* Primary Bronze Button (Haute Finish) */
.btn-primary-bronze {
  background: linear-gradient(180deg, var(--bronze-grad-1) 0%, var(--bronze-grad-2) 100%);
  border: 1px solid rgba(255, 230, 180, 0.42);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: var(--transition-luxury);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.btn-primary-bronze::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s ease;
}

.btn-primary-bronze:hover::before {
  left: 100%;
}

.btn-primary-bronze:hover {
  background: linear-gradient(180deg, var(--bronze-hover-1) 0%, var(--bronze-hover-2) 100%);
  border-color: rgba(255, 235, 195, 0.7);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -4px rgba(135, 90, 42, 0.6), inset 0 1px 0 rgba(255, 245, 215, 0.5);
}

.btn-primary-bronze:active {
  transform: translateY(1px);
}

.btn-arrow {
  transition: transform 0.22s ease;
}

.btn-primary-bronze:hover .btn-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   CARD 2: COUNTDOWN TIMER (HAUTE HORLOGERIE INSTRUMENT)
   ========================================================================== */
.timer-card {
  padding: 32px 34px 28px;
  text-align: center;
  background: linear-gradient(180deg, rgba(19, 25, 38, 0.95) 0%, rgba(11, 15, 23, 0.92) 100%);
  cursor: pointer;
  user-select: none;
}

.timer-card:hover {
  border-color: rgba(207, 164, 98, 0.45);
  box-shadow: 0 26px 60px -10px rgba(0, 0, 0, 0.85), 0 0 35px rgba(207, 164, 98, 0.16);
  transform: translateY(-2px);
}

.timer-card:active {
  transform: translateY(0);
}

.timer-mountain-emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.timer-label-top {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--gold-primary);
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(207, 164, 98, 0.35);
}

/* Digital Clock Numbers */
.timer-digits-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 78px;
}

.timer-unit .digit {
  font-family: var(--font-sans);
  font-size: clamp(2.6rem, 4.6vw, 3.8rem);
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  font-variant-numeric: tabular-nums lining-nums;
  -moz-font-feature-settings: "tnum" 1, "lnum" 1;
  -webkit-font-feature-settings: "tnum" 1, "lnum" 1;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.timer-unit .unit-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-label);
  margin-top: 10px;
  text-transform: uppercase;
}

.timer-separator {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 300;
  color: rgba(207, 164, 98, 0.6);
  line-height: 1;
  align-self: center;
  margin-bottom: 22px;
  text-shadow: 0 0 10px rgba(207, 164, 98, 0.35);
}

.timer-progress-track {
  width: 100%;
  max-width: 520px;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  margin: 8px auto 0;
  overflow: hidden;
  position: relative;
}

.timer-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #966f38 0%, #cfa462 50%, #ffe9b8 100%);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(207, 164, 98, 0.8);
  transition: width 1s ease-in-out;
}

/* ==========================================================================
   SECTION 3: STEPS TIMELINE ("ХОД К ЦЕЛИ")
   ========================================================================== */
.steps-section {
  padding: 32px 34px 44px;
}

.steps-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 38px;
  border-bottom: 1px solid rgba(207, 164, 98, 0.14);
  padding-bottom: 22px;
}

.steps-heading {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.steps-subheading {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.45;
}

.btn-add-step {
  background: rgba(30, 24, 16, 0.85);
  border: 1px solid rgba(207, 164, 98, 0.4);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-luxury);
  white-space: nowrap;
}

.btn-add-step:hover {
  background: rgba(56, 42, 26, 0.95);
  border-color: var(--gold-primary);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(207, 164, 98, 0.3);
  transform: translateY(-1px);
}

.plus-icon {
  font-size: 1.15rem;
  line-height: 1;
  color: var(--gold-primary);
}

/* Timeline Container */
.timeline-wrapper {
  position: relative;
  min-height: 180px;
  padding: 10px 0;
}

/* Central Golden Dashed Trail Line */
.timeline-central-trail {
  position: absolute;
  top: 15px;
  bottom: 20px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  border-left: 2px dashed rgba(207, 164, 98, 0.42);
  pointer-events: none;
  z-index: 1;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 44px;
  position: relative;
  z-index: 2;
}

/* Individual Step Row */
.step-node {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

/* Step Node Center Marker on the Trail */
.step-center-marker {
  position: absolute;
  left: 50%;
  top: 30px;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #deb07c;
  box-shadow: 0 0 14px 3px rgba(222, 176, 124, 0.75);
  transition: transform 0.25s ease, background 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.step-node:hover .marker-dot {
  transform: scale(1.45);
  background: #ffffff;
  box-shadow: 0 0 20px 5px rgba(255, 225, 140, 0.95);
}

/* Alternating Alignment */
.step-node.step-left {
  justify-content: flex-start;
  padding-right: 54%;
}

.step-node.step-right {
  justify-content: flex-end;
  padding-left: 54%;
}

/* Step Card (Luxury Archival Note) */
.step-card {
  background: rgba(18, 23, 34, 0.94);
  border: 1px solid rgba(207, 164, 98, 0.18);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  width: 100%;
  position: relative;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s ease, border-color 0.32s ease;
}

.step-card:hover {
  transform: rotate(0deg) translateY(-3px) scale(1.02);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(207, 164, 98, 0.42), 0 0 25px rgba(207, 164, 98, 0.12);
  border-color: rgba(207, 164, 98, 0.45);
  z-index: 10;
}

.step-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.step-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-champagne);
  letter-spacing: 0.02em;
}

.step-date-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-primary);
}

.btn-delete-step {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  opacity: 0.35;
  transition: all 0.2s;
}

.step-card:hover .btn-delete-step {
  opacity: 0.85;
}

.btn-delete-step:hover {
  color: #ff6b6b;
  opacity: 1;
  background: rgba(255, 107, 107, 0.12);
}

.step-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}

.step-card-desc {
  font-size: 0.92rem;
  color: #d2d8e4;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Step Photo */
.step-media-container {
  margin-top: 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  border: 1px solid rgba(207, 164, 98, 0.22);
}

.step-photo-thumb {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-sm);
  transition: transform 0.35s ease;
}

.step-media-container:hover .step-photo-thumb {
  transform: scale(1.035);
}

.zoom-hint-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(8, 10, 16, 0.75);
  backdrop-filter: blur(6px);
  color: var(--gold-champagne);
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(207, 164, 98, 0.3);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.step-media-container:hover .zoom-hint-overlay {
  opacity: 1;
}

/* Empty State with Darkened Alpine Artwork */
.steps-empty-state {
  position: relative;
  text-align: center;
  padding: 62px 30px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(207, 164, 98, 0.28);
  background: 
    linear-gradient(180deg, rgba(13, 17, 26, 0.76) 0%, rgba(9, 12, 18, 0.94) 100%),
    url('../images/mountain_header.jpg') center 40% / cover no-repeat;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.8), 0 14px 40px rgba(0, 0, 0, 0.6);
  margin: 16px 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.empty-state-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.empty-mountain-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(207, 164, 98, 0.12);
  border: 1px solid rgba(207, 164, 98, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  box-shadow: 0 0 24px rgba(207, 164, 98, 0.24);
}

.empty-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.empty-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
}

.btn-empty-action {
  background: linear-gradient(180deg, var(--bronze-grad-1) 0%, var(--bronze-grad-2) 100%);
  border: 1px solid rgba(255, 230, 180, 0.42);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-luxury);
  box-shadow: var(--shadow-btn);
  margin-top: 6px;
}

.btn-empty-action:hover {
  background: linear-gradient(180deg, var(--bronze-hover-1) 0%, var(--bronze-hover-2) 100%);
  border-color: rgba(255, 240, 205, 0.7);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(135, 90, 42, 0.55);
}

/* ==========================================================================
   RIGHT COLUMN: SUPPORT CIRCLE & FRIENDS CHAT (PRIVATE MEMBERS LOUNGE)
   ========================================================================== */
.chat-column {
  position: sticky;
  top: 28px;
}

.chat-card {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 90px);
  max-height: 800px;
  min-height: 590px;
  background: linear-gradient(180deg, rgba(18, 23, 34, 0.95) 0%, rgba(10, 13, 20, 0.98) 100%);
  border: 1px solid var(--border-card);
}

/* Chat Header */
.chat-header {
  padding: 20px 22px;
  border-bottom: 1px solid rgba(207, 164, 98, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(207, 164, 98, 0.12);
  border: 1px solid rgba(207, 164, 98, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  box-shadow: 0 0 16px rgba(207, 164, 98, 0.15);
}

.chat-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

.chat-subtitle {
  font-size: 0.76rem;
  color: var(--text-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chat-members-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(207, 164, 98, 0.08);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(207, 164, 98, 0.25);
}

/* Messages Container */
.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

.chat-messages-container::-webkit-scrollbar {
  width: 4px;
}

.chat-messages-container::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages-container::-webkit-scrollbar-thumb {
  background: rgba(207, 164, 98, 0.2);
  border-radius: 4px;
}

.chat-messages-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Single Message Item */
.chat-msg-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(207, 164, 98, 0.35);
}

.msg-avatar-initial {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

.msg-body {
  flex: 1;
  min-width: 0;
}

.msg-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.msg-author {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gold-champagne);
}

.msg-time {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.msg-bubble {
  background: rgba(22, 28, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0 12px 12px 12px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.45;
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.msg-photo-attachment {
  margin-top: 6px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  max-width: 220px;
  border: 1px solid rgba(207, 164, 98, 0.25);
}

.msg-photo-thumb {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease;
}

.msg-photo-thumb:hover {
  transform: scale(1.04);
}

/* Chat Footer */
.chat-footer {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(207, 164, 98, 0.14);
  background: rgba(11, 14, 21, 0.98);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-author-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-label {
  font-size: 0.74rem;
  color: var(--text-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.author-input {
  background: transparent;
  border: none;
  border-bottom: 1px dotted rgba(207, 164, 98, 0.5);
  color: var(--gold-champagne);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 2px 6px;
  outline: none;
  width: 140px;
  transition: border-color 0.2s;
}

.author-input:focus {
  border-bottom-color: var(--gold-primary);
  color: #ffffff;
}

.emoji-quick-bar {
  display: flex;
  gap: 6px;
}

.btn-emoji {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(207, 164, 98, 0.16);
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-luxury);
}

.btn-emoji:hover {
  background: rgba(207, 164, 98, 0.18);
  border-color: rgba(207, 164, 98, 0.45);
  transform: scale(1.15);
}

.chat-photo-preview {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--gold-primary);
}

.chat-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-remove-thumb {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  border: none;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid rgba(207, 164, 98, 0.2);
  border-radius: var(--radius-md);
  padding: 6px 8px 6px 14px;
  transition: var(--transition-luxury);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.chat-form:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.btn-chat-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.btn-chat-icon:hover {
  color: var(--gold-light);
}

.chat-text-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  padding: 6px 0;
}

.chat-text-input::placeholder {
  color: var(--text-dim);
}

.btn-send-message {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--bronze-grad-1) 0%, var(--bronze-grad-2) 100%);
  border: 1px solid rgba(255, 230, 180, 0.45);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-luxury);
  flex-shrink: 0;
}

.btn-send-message:hover {
  background: linear-gradient(180deg, var(--bronze-hover-1) 0%, var(--bronze-hover-2) 100%);
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(180, 120, 50, 0.5);
}

.chat-empty-hint {
  text-align: center;
  padding: 50px 15px;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* ==========================================================================
   MODAL WINDOW (BESPOKE LUXURY DIALOG)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.22s ease-out;
}

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

.modal-dialog {
  background: linear-gradient(160deg, #161c28 0%, #0d121b 100%);
  border: 1px solid rgba(207, 164, 98, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(207, 164, 98, 0.12);
  width: 100%;
  max-width: 580px;
  overflow: hidden;
  animation: dialogSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dialogSlideUp {
  from { transform: translateY(22px) scale(0.97); }
  to { transform: translateY(0) scale(1); }
}

.modal-header {
  padding: 22px 26px;
  border-bottom: 1px solid rgba(207, 164, 98, 0.16);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-close-modal:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.modal-form {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
}

.dropzone-area {
  border: 2px dashed rgba(207, 164, 98, 0.38);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  background: rgba(9, 12, 18, 0.7);
  cursor: pointer;
  transition: var(--transition-luxury);
  position: relative;
}

.dropzone-area:hover, .dropzone-area.dragover {
  border-color: var(--gold-primary);
  background: rgba(207, 164, 98, 0.08);
}

.dropzone-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dropzone-text {
  font-size: 0.92rem;
  color: var(--text-main);
}

.dropzone-link {
  color: var(--gold-light);
  text-decoration: underline;
  font-weight: 500;
}

.dropzone-hint {
  font-size: 0.76rem;
  color: var(--text-dim);
}

.dropzone-preview {
  position: relative;
  max-width: 240px;
  margin: 0 auto;
}

.dropzone-preview img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-primary);
}

.btn-remove-dropzone {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff5252;
  color: #fff;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Lightbox */
.lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 4, 7, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(207, 164, 98, 0.45);
}

.btn-close-lightbox {
  position: absolute;
  top: -18px;
  right: -18px;
  background: var(--bg-card);
  border: 1px solid var(--gold-primary);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-close-lightbox:hover {
  background: var(--gold-primary);
  color: #000;
  transform: scale(1.1);
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: #141b27;
  color: #ffffff;
  border: 1px solid var(--gold-primary);
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(207, 164, 98, 0.35);
  z-index: 3000;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  animation: toastPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastPop {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Helpers */
.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .chat-column {
    position: static;
  }

  .chat-card {
    height: 560px;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .site-wrapper {
    padding: 24px 16px 60px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .timer-card {
    padding: 22px 18px;
  }

  .timer-digits-row {
    gap: 8px;
  }

  .timer-unit {
    min-width: 52px;
  }

  .timer-separator {
    margin-bottom: 16px;
  }

  /* Centered Timeline on Mobile */
  .timeline-central-trail {
    left: 50%;
    transform: translateX(-50%);
  }

  .step-node {
    padding: 0 !important;
    justify-content: center !important;
    width: 100%;
  }

  .step-center-marker {
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .step-card {
    width: 100%;
    max-width: 100%;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }
}
