/* ==========================================================================
   Web Fonts (MaruBuri & JetBrains Mono)
   ========================================================================== */

@font-face {
  font-family: 'MaruBuri';
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url('https://hangeul.pstatic.net/hangeul_static/webfont/MaruBuri/MaruBuri-Light.woff2') format('woff2');
}

@font-face {
  font-family: 'MaruBuri';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('https://hangeul.pstatic.net/hangeul_static/webfont/MaruBuri/MaruBuri-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'MaruBuri';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('https://hangeul.pstatic.net/hangeul_static/webfont/MaruBuri/MaruBuri-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'MaruBuri';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('https://hangeul.pstatic.net/hangeul_static/webfont/MaruBuri/MaruBuri-Bold.woff2') format('woff2');
}

/* ==========================================================================
   Figma Marketing Canvas Design System Tokens & Base Styles
   ========================================================================== */

:root {
  /* System Monochrome */
  --color-primary: #000000;
  --color-on-primary: #ffffff;
  --color-canvas: #ffffff;
  --color-inverse-canvas: #000000;
  --color-surface-soft: #f5f5f5;
  --color-hairline: #e5e5e5;
  --color-hairline-dark: #1e1e1e;
  --color-hairline-soft: #eeeeee;
  
  /* Text */
  --color-ink: #000000;
  --color-inverse-ink: #ffffff;
  --color-on-inverse-soft: rgba(255, 255, 255, 0.16);
  --color-ink-muted: #555555;

  /* Color-Block Sections (Figma Marketing Palette) */
  --color-block-lime: #D2F898;
  --color-block-lilac: #E4D4F4;
  --color-block-cream: #FBF8ED;
  --color-block-mint: #D1F5EA;
  --color-block-pink: #FDCEDF;
  --color-block-coral: #FFB5A7;
  --color-block-navy: #181926;

  /* Accent & Semantic */
  --color-accent-magenta: #FF007A;
  --color-semantic-success: #14AE5C;
  --color-semantic-danger: #F24822;
  --color-overlay-scrim: rgba(0, 0, 0, 0.6);

  /* Typography: MaruBuri + JetBrains Mono */
  --font-sans: 'MaruBuri', 'Nanum Myeongjo', Batang, serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Radius */
  --rounded-xs: 2px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 24px;
  --rounded-xl: 32px;
  --rounded-pill: 50px;
  --rounded-full: 9999px;

  /* Spacing */
  --spacing-hair: 1px;
  --spacing-xxs: 4px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  --spacing-section: 96px;

  /* Layout */
  --container-max-width: 1240px;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--color-canvas);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.45;
  font-size: 18px;
  font-weight: 330;
  letter-spacing: -0.26px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   Typography Classes
   ========================================================================== */

.type-display-xl {
  font-size: clamp(48px, 6.5vw, 86px);
  font-weight: 340;
  line-height: 1.00;
  letter-spacing: -1.72px;
}

.type-display-lg {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 340;
  line-height: 1.10;
  letter-spacing: -0.96px;
}

.type-headline {
  font-size: clamp(22px, 2.5vw, 26px);
  font-weight: 540;
  line-height: 1.35;
  letter-spacing: -0.26px;
}

.type-subhead {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 340;
  line-height: 1.35;
  letter-spacing: -0.26px;
}

.type-card-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.2px;
}

.type-body-lg {
  font-size: 20px;
  font-weight: 330;
  line-height: 1.40;
  letter-spacing: -0.14px;
}

.type-body {
  font-size: 18px;
  font-weight: 320;
  line-height: 1.45;
  letter-spacing: -0.26px;
}

.type-body-sm {
  font-size: 15px;
  font-weight: 340;
  line-height: 1.45;
  letter-spacing: -0.14px;
}

.type-link {
  font-size: 16px;
  font-weight: 480;
  line-height: 1.40;
  letter-spacing: -0.10px;
}

.type-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.30;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.type-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.20;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* ==========================================================================
   Buttons & Pills
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--rounded-pill);
  font-family: var(--font-sans);
  font-weight: 480;
  font-size: 16px;
  line-height: 1.40;
  letter-spacing: -0.10px;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.2, 0, 0, 1), background-color 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  user-select: none;
  border: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  padding: 10px 22px;
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-secondary {
  background-color: var(--color-canvas);
  color: var(--color-ink);
  padding: 9px 20px;
  border: 1px solid var(--color-hairline);
}

.btn-secondary:hover {
  background-color: var(--color-surface-soft);
  border-color: #d0d0d0;
}

.btn-magenta-promo {
  background-color: var(--color-accent-magenta);
  color: var(--color-on-primary);
  padding: 10px 20px;
}

.btn-magenta-promo:hover {
  opacity: 0.9;
}

.btn-icon-circular {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--rounded-full);
  background-color: var(--color-surface-soft);
  color: var(--color-ink);
  border: 1px solid var(--color-hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-icon-circular:hover {
  background-color: #ebebeb;
  transform: scale(1.05);
}

.btn-icon-circular-inverse {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--rounded-full);
  background-color: var(--color-on-inverse-soft);
  color: var(--color-inverse-ink);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-icon-circular-inverse:hover {
  background-color: rgba(255, 255, 255, 0.28);
  transform: scale(1.05);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 14px;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */

.layout-container {
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

.section-wrapper {
  padding-top: var(--spacing-section);
  padding-bottom: var(--spacing-section);
}

.section-wrapper-sm {
  padding-top: var(--spacing-xxl);
  padding-bottom: var(--spacing-xxl);
}

/* Color Block Base */
.color-block-section {
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xxl);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.color-block-lime {
  background-color: var(--color-block-lime);
  color: var(--color-ink);
}

.color-block-lilac {
  background-color: var(--color-block-lilac);
  color: var(--color-ink);
}

.color-block-cream {
  background-color: var(--color-block-cream);
  color: var(--color-ink);
}

.color-block-mint {
  background-color: var(--color-block-mint);
  color: var(--color-ink);
}

.color-block-pink {
  background-color: var(--color-block-pink);
  color: var(--color-ink);
}

.color-block-coral {
  background-color: var(--color-block-coral);
  color: var(--color-ink);
}

.color-block-navy {
  background-color: var(--color-block-navy);
  color: var(--color-inverse-ink);
}

/* ==========================================================================
   Header & Top Nav
   ========================================================================== */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-canvas);
  border-bottom: 1px solid var(--color-hairline);
  height: 60px;
  display: flex;
  align-items: center;
}

.top-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.4px;
}

.brand-badge {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  padding: 3px 10px;
  border-radius: var(--rounded-pill);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

/* Page Navigation Tabs (구매 완료 vs 구매 예정) */
.page-nav-tabs {
  display: inline-flex;
  background-color: var(--color-surface-soft);
  padding: 4px;
  border-radius: var(--rounded-pill);
  gap: 4px;
  border: 1px solid var(--color-hairline);
}

.page-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 6px 16px;
  border-radius: var(--rounded-pill);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  color: var(--color-ink);
  transition: all 0.15s ease;
}

.page-tab:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.page-tab.active {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--rounded-pill);
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  background-color: rgba(0, 0, 0, 0.08);
  color: var(--color-ink);
}

.page-tab.active .tab-badge {
  background-color: var(--color-on-primary);
  color: var(--color-primary);
}

.tab-badge-lilac {
  background-color: rgba(228, 212, 244, 0.9);
}

.page-tab.active .tab-badge-lilac {
  background-color: var(--color-on-primary);
  color: var(--color-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Marquee Strip */
.marquee-strip {
  background-color: var(--color-inverse-canvas);
  color: var(--color-inverse-ink);
  height: 38px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--color-hairline-dark);
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 40px;
  animation: marqueeScroll 35s linear infinite;
  padding-left: 20px;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.5px;
}

.marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--rounded-full);
  background-color: var(--color-block-lime);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Hero Section (Lime Block)
   ========================================================================== */

.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
  gap: 16px;
}

.hero-main-stat {
  margin-top: 16px;
  margin-bottom: var(--spacing-lg);
}

.hero-currency {
  font-size: 0.55em;
  font-weight: 330;
  vertical-align: baseline;
  margin-right: 4px;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: var(--spacing-xl);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-top: var(--spacing-lg);
}

.stat-card-clean {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-card-clean .val {
  font-size: 28px;
  font-weight: 540;
  letter-spacing: -0.4px;
}

/* ==========================================================================
   Form Section (Cream Block)
   ========================================================================== */

.form-header-area {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
  gap: 12px;
}

.purchase-form {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

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

.form-col-4 { grid-column: span 4; }
.form-col-6 { grid-column: span 6; }
.form-col-8 { grid-column: span 8; }
.form-col-12 { grid-column: span 12; }

.form-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.6px;
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label .req {
  color: var(--color-accent-magenta);
  font-weight: 700;
}

.text-input, .select-input {
  background-color: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  border-radius: var(--rounded-md);
  padding: 12px 14px;
  border: 1px solid var(--color-hairline);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.text-input:focus, .select-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.input-with-addon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-addon input {
  padding-right: 44px;
}

.input-addon {
  position: absolute;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-ink-muted);
  pointer-events: none;
}

/* Mall Preset Chips */
.mall-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.chip-pill {
  background-color: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--rounded-pill);
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 480;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-pill:hover {
  background-color: var(--color-surface-soft);
  border-color: #bbb;
}

.chip-pill.active {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}

.quick-date-chips {
  display: flex;
  gap: 6px;
}

.btn-chip {
  background-color: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: var(--rounded-sm);
  padding: 2px 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  cursor: pointer;
}

.btn-chip:hover {
  background-color: rgba(0, 0, 0, 0.12);
}

.form-actions {
  grid-column: span 12;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Purchase History Section (White Canvas)
   ========================================================================== */

.history-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: var(--spacing-xl);
}

.controls-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.search-box {
  position: relative;
  min-width: 280px;
  flex: 1;
  max-width: 460px;
}

.search-box input {
  padding-left: 38px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #777;
}

.controls-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-hairline);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Pricing Tab Style Toggles */
.filter-tabs {
  display: inline-flex;
  background-color: var(--color-surface-soft);
  padding: 4px;
  border-radius: var(--rounded-pill);
  gap: 2px;
}

.filter-tab {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: var(--rounded-pill);
  font-size: 14px;
  font-weight: 480;
  cursor: pointer;
  color: var(--color-ink);
  transition: all 0.15s ease;
}

.filter-tab.active {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

/* Table View */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-hairline);
  border-radius: var(--rounded-lg);
  background-color: var(--color-canvas);
}

.purchase-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  text-align: left;
}

.purchase-table th {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  border-bottom: 1px solid var(--color-hairline);
  background-color: #fafafa;
}

.purchase-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-hairline-soft);
  vertical-align: middle;
}

.purchase-table tbody tr {
  transition: background-color 0.12s ease;
}

.purchase-table tbody tr:hover {
  background-color: #fcfcfc;
}

.purchase-table tbody tr:last-child td {
  border-bottom: none;
}

.col-date {
  font-family: var(--font-mono);
  font-size: 14px;
  white-space: nowrap;
}

.col-mall .mall-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--rounded-pill);
  font-size: 12px;
  font-weight: 500;
  background-color: var(--color-surface-soft);
  border: 1px solid var(--color-hairline);
}

.col-product {
  font-weight: 480;
  font-size: 16px;
  letter-spacing: -0.2px;
}

.col-price {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.col-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

/* Action Buttons (Edit / Delete) */
.btn-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: var(--rounded-pill);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  background-color: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.btn-action-edit {
  color: var(--color-ink);
}

.btn-action-edit:hover {
  background-color: var(--color-surface-soft);
  border-color: #999999;
  transform: translateY(-1px);
}

.btn-action-delete {
  color: var(--color-semantic-danger);
  border-color: rgba(242, 72, 34, 0.25);
  background-color: rgba(242, 72, 34, 0.04);
}

.btn-action-delete:hover {
  background-color: var(--color-semantic-danger);
  color: #ffffff;
  border-color: var(--color-semantic-danger);
  transform: translateY(-1px);
}

.btn-action-convert {
  color: #0b8444;
  border-color: rgba(20, 174, 92, 0.3);
  background-color: rgba(20, 174, 92, 0.06);
}

.btn-action-convert:hover {
  background-color: var(--color-semantic-success);
  color: #ffffff;
  border-color: var(--color-semantic-success);
  transform: translateY(-1px);
}

/* Link Button in Table */
.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: var(--rounded-pill);
  background-color: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  font-size: 13px;
  font-weight: 480;
  transition: all 0.15s ease;
}

.link-pill:hover {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}

/* Empty State */
.empty-state {
  padding: 60px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.empty-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--rounded-full);
  background-color: var(--color-surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-muted);
}

/* ==========================================================================
   Analytics Block (Mint & Sticky Notes)
   ========================================================================== */

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: var(--spacing-xl);
}

.store-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.store-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.store-bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 480;
}

.store-bar-track {
  height: 10px;
  background-color: rgba(0, 0, 0, 0.08);
  border-radius: var(--rounded-full);
  overflow: hidden;
}

.store-bar-fill {
  height: 100%;
  background-color: var(--color-primary);
  border-radius: var(--rounded-full);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* FigJam Collage Sticky Notes */
.sticky-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.sticky-note {
  padding: 20px;
  border-radius: var(--rounded-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticky-note:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.sticky-note.tilt-1 { transform: rotate(-1.5deg); }
.sticky-note.tilt-2 { transform: rotate(1.2deg); }
.sticky-note.tilt-3 { transform: rotate(1.8deg); }
.sticky-note.tilt-4 { transform: rotate(-2deg); }

.sticky-yellow { background-color: #FFF388; color: #111; }
.sticky-pink { background-color: var(--color-block-pink); color: #111; }
.sticky-lilac { background-color: var(--color-block-lilac); color: #111; }
.sticky-coral { background-color: var(--color-block-coral); color: #111; }

.sticky-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  opacity: 0.8;
}

.sticky-val {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 6px 0;
}

.sticky-desc {
  font-size: 13px;
  opacity: 0.85;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--color-canvas);
  border-top: 1px solid var(--color-hairline);
  padding: var(--spacing-section) 0 var(--spacing-xl) 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-xxl);
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-hairline-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--color-ink-muted);
}

/* ==========================================================================
   Modal Dialog
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: var(--color-overlay-scrim);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.modal-content {
  background-color: var(--color-canvas);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xl);
  max-width: 520px;
  width: 100%;
  border: 1px solid var(--color-hairline);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}

.modal-backdrop.active .modal-content {
  transform: translateY(0) scale(1);
}

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

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  padding: 12px 20px;
  border-radius: var(--rounded-pill);
  font-size: 14px;
  font-weight: 480;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==========================================================================
   Responsive Rules
   ========================================================================== */

@media (max-width: 960px) {
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  .sticky-collage {
    grid-template-columns: 1fr 1fr;
  }
  .form-col-4, .form-col-6, .form-col-8 {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  .color-block-section {
    padding: var(--spacing-lg);
    border-radius: var(--rounded-md);
  }
  .sticky-collage {
    grid-template-columns: 1fr;
  }
  .controls-top-row {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    max-width: 100%;
  }
}
