/* ============================================================
   SNS ARBITRATION CENTRE — Premium UI
   Dark legal-gold design system
   ============================================================ */

/* === DESIGN TOKENS === */
:root {
  --color-bg:          #0a0c0f;
  --color-surface:     #111318;
  --color-surface-2:   #16191f;
  --color-surface-3:   #1c2028;
  --color-gold:        #c9a84c;
  --color-gold-light:  #e8c87a;
  --color-gold-dim:    rgba(201, 168, 76, 0.18);
  --color-gold-glow:   rgba(201, 168, 76, 0.07);
  --color-gold-strong: rgba(201, 168, 76, 0.35);
  --color-text:        #f0ede8;
  --color-text-soft:   #c8c4bc;
  --color-muted:       #8a8680;
  --color-success:     #4a9e6b;
  --color-error:       #c0524a;
  --color-border:      rgba(201, 168, 76, 0.16);
  --color-border-soft: rgba(255, 255, 255, 0.06);

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:  'Consolas', 'SFMono-Regular', monospace;

  --space-2xs: 4px;
  --space-xs:  6px;
  --space-sm:  10px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-pill: 999px;

  --shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(201, 168, 76, 0.06) inset;
  --shadow-glow: 0 0 40px rgba(201, 168, 76, 0.12), 0 0 80px rgba(201, 168, 76, 0.05);
  --shadow-btn:  0 8px 24px rgba(201, 168, 76, 0.3), 0 2px 8px rgba(0,0,0,0.4);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration:    200ms;
  --duration-md: 320ms;
  --duration-lg: 500ms;
}

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--font-mono); }

/* === BACKGROUND LAYER === */
.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: var(--radius-pill);
  filter: blur(90px);
  will-change: transform;
}

.bg-orb--tl {
  width: 700px;
  height: 700px;
  top: -250px;
  left: -200px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.09) 0%, transparent 70%);
  animation: orbDrift 20s ease-in-out infinite alternate;
}

.bg-orb--br {
  width: 600px;
  height: 600px;
  bottom: -200px;
  right: -150px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
  animation: orbDrift 26s ease-in-out infinite alternate-reverse;
}

.bg-orb--mid {
  width: 400px;
  height: 400px;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
  animation: orbDrift 34s ease-in-out infinite alternate;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at center, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at center, black 10%, transparent 75%);
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
}

@keyframes orbDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, -50px) scale(1.1); }
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  background: rgba(10, 12, 15, 0.85);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.brand-gem {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 60%, #a07830 100%);
  transform: rotate(45deg);
  box-shadow: 0 0 16px rgba(201, 168, 76, 0.4), 0 0 4px rgba(201, 168, 76, 0.6);
  flex-shrink: 0;
}

.brand-gem--sm {
  width: 14px;
  height: 14px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  line-height: 1;
  font-weight: 600;
}

.brand-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: 0.78rem;
  color: var(--color-muted);
  transition: border-color var(--duration);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-muted);
  flex-shrink: 0;
  transition: background var(--duration), box-shadow var(--duration);
}

.status-dot--working {
  background: var(--color-gold);
  box-shadow: 0 0 8px var(--color-gold);
  animation: dotPulse 1.1s ease-in-out infinite;
}

.status-dot--success {
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}

.status-dot--error {
  background: var(--color-error);
  box-shadow: 0 0 8px var(--color-error);
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* === LAYOUT === */
.site-main {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* === HERO === */
.hero {
  padding: var(--space-2xl) 0 var(--space-xl);
}

.hero-inner {
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--color-gold);
  flex-shrink: 0;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.hero-headline em {
  font-style: normal;
  color: var(--color-gold);
}

.hero-rule {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), rgba(201, 168, 76, 0.2), transparent);
  margin-bottom: var(--space-lg);
  border-radius: 1px;
}

.hero-subline {
  font-size: 1.05rem;
  color: var(--color-text-soft);
  max-width: 58ch;
  margin-bottom: var(--space-xl);
  line-height: 1.75;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.hero-stat__value {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}

.hero-stat__label {
  font-size: 0.72rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-stat-divider {
  width: 1px;
  height: 44px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* === FEATURES STRIP === */
.features-strip {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-2xl);
}

.features-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.feature-card {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition:
    border-color var(--duration-md) var(--ease-out),
    transform var(--duration-md) var(--ease-out),
    box-shadow var(--duration-md) var(--ease-out);
  cursor: default;
}

.feature-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), 0 0 20px rgba(201, 168, 76, 0.08);
}

.feature-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-gold-dim);
  background: var(--color-gold-glow);
  color: var(--color-gold);
  font-size: 1rem;
  transition: background var(--duration-md), border-color var(--duration-md);
}

.feature-card:hover .feature-icon {
  background: rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.4);
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.feature-title {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.2;
}

.feature-desc {
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* === CONSOLE SECTION === */
.console {
  padding-bottom: var(--space-3xl);
}

.console-header {
  margin-bottom: var(--space-xl);
}

.section-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--color-gold);
}

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
}

/* === SUMMARY STRIP === */
.summary-strip {
  margin-bottom: var(--space-xl);
  min-height: 90px;
}

.summary-empty {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-muted);
  font-size: 0.88rem;
}

.summary-empty i {
  font-size: 1.2rem;
  opacity: 0.5;
  flex-shrink: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
}

.summary-item {
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: border-color var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.summary-item:hover {
  border-color: var(--color-gold-dim);
  transform: translateY(-2px);
}

.summary-item--total {
  border-color: rgba(201, 168, 76, 0.3);
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.05) 0%, var(--color-surface) 100%);
}

.summary-item--skipped {
  border-color: rgba(192, 82, 74, 0.25);
}

.summary-count {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 6px;
}

.summary-item--skipped .summary-count {
  color: var(--color-error);
}

.summary-meta-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-soft);
  margin-bottom: 3px;
}

.summary-meta-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--color-muted);
}

/* === FORM === */
.console-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.form-row {
  width: 100%;
}

.form-row--halves {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* === LABELS === */
.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.field-label__icon {
  color: var(--color-gold);
  font-size: 0.85rem;
  width: 16px;
  text-align: center;
}

.field-label__badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.field-hint {
  font-size: 0.77rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.field-hint code {
  color: var(--color-gold-light);
  font-size: 0.85em;
  background: rgba(201, 168, 76, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

/* === INPUTS & SELECTS === */
.field-input,
.field-select {
  width: 100%;
  padding: 13px 16px;
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    background var(--duration);
}

.field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8680' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field-input:focus,
.field-select:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.14), 0 0 0 1px var(--color-gold);
  background: var(--color-surface-2);
}

.field-select option {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.field-select--sm {
  padding: 9px 36px 9px 12px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

/* === DROPZONES === */
.dropzone {
  position: relative;
  border: 1.5px dashed var(--color-gold-dim);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  cursor: pointer;
  background: var(--color-surface);
  overflow: hidden;
  transition:
    border-color var(--duration-md) var(--ease-out),
    transform var(--duration-md) var(--ease-out),
    box-shadow var(--duration-md) var(--ease-out),
    background var(--duration-md);
}

.dropzone:hover,
.dropzone:focus-within {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-glow);
  background: rgba(201, 168, 76, 0.03);
}

.dropzone.active {
  border-color: var(--color-gold-light);
  border-style: solid;
  transform: scale(1.015);
  box-shadow: 0 0 60px rgba(201, 168, 76, 0.2), 0 0 120px rgba(201, 168, 76, 0.08);
  background: rgba(201, 168, 76, 0.05);
}

.dropzone--compact {
  padding: var(--space-lg);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.dropzone-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  pointer-events: none;
}

.dropzone-icon-wrap {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gold-dim);
  background: var(--color-gold-glow);
  margin-bottom: var(--space-sm);
  transition: transform var(--duration-md) var(--ease-out), background var(--duration-md);
}

.dropzone-icon-wrap--sm {
  width: 44px;
  height: 44px;
}

.dropzone:hover .dropzone-icon-wrap {
  transform: translateY(-4px);
  background: rgba(201, 168, 76, 0.1);
}

.dropzone-icon {
  color: var(--color-gold);
  font-size: 1.7rem;
}

.dropzone-icon--sm {
  font-size: 1.2rem;
}

.dropzone-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.dropzone-subtitle {
  font-size: 0.82rem;
  color: var(--color-muted);
  max-width: 36ch;
}

.dropzone-shimmer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    108deg,
    transparent 25%,
    rgba(201, 168, 76, 0.055) 50%,
    transparent 75%
  );
  transform: translateX(-150%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.dropzone:hover .dropzone-shimmer {
  transform: translateX(150%);
}

/* === PREVIEW CARD === */
.preview-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
}

.preview-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-border-soft);
}

.preview-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 4px;
}

.preview-card__title i {
  color: var(--color-gold);
  font-size: 0.9rem;
}

.preview-card__meta {
  font-size: 0.79rem;
  color: var(--color-muted);
}

.preview-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border-soft);
  background: rgba(255, 255, 255, 0.015);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

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

.preview-counts {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 8px var(--space-lg);
  font-size: 0.78rem;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border-soft);
}

.preview-table-wrap {
  max-height: 320px;
  overflow: auto;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 0.83rem;
}

.preview-table thead tr {
  position: sticky;
  top: 0;
  z-index: 1;
}

.preview-table th {
  padding: 10px 14px;
  background: var(--color-surface-2);
  color: var(--color-gold);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.preview-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: top;
  color: var(--color-text-soft);
  transition: color var(--duration), background var(--duration), padding-left var(--duration);
}

.preview-table tbody tr:hover td {
  background: rgba(201, 168, 76, 0.04);
  color: var(--color-text);
}

.preview-table tbody tr:hover td:first-child {
  border-left: 2px solid var(--color-gold);
  padding-left: 12px;
}

.preview-table td[colspan] {
  color: var(--color-muted);
  text-align: center;
  padding: var(--space-xl);
  font-style: italic;
}

/* === ACTION PANEL === */
.action-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}

.action-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3), transparent);
}

.status-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-soft);
  background: var(--color-bg);
  font-size: 0.84rem;
  color: var(--color-muted);
  min-height: 46px;
  transition: border-color var(--duration-md), background var(--duration-md);
}

.status-bar.working {
  border-color: rgba(201, 168, 76, 0.25);
  color: var(--color-gold-light);
}

.status-bar.success {
  border-color: rgba(74, 158, 107, 0.3);
  color: var(--color-success);
}

.status-bar.error {
  border-color: rgba(192, 82, 74, 0.3);
  color: var(--color-error);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--color-muted);
  transition: background var(--duration-md), box-shadow var(--duration-md);
}

.status-indicator--working {
  background: var(--color-gold);
  box-shadow: 0 0 10px var(--color-gold);
  animation: dotPulse 1.1s ease-in-out infinite;
}

.status-indicator--success {
  background: var(--color-success);
  box-shadow: 0 0 10px var(--color-success);
}

.status-indicator--error {
  background: var(--color-error);
  box-shadow: 0 0 10px var(--color-error);
}

.action-hint {
  font-size: 0.76rem;
  color: var(--color-muted);
  line-height: 1.5;
  padding: 0 2px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    opacity var(--duration);
  white-space: nowrap;
  text-align: center;
}

.btn--primary {
  padding: 15px 28px;
  color: #0a0c0f;
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 55%, #b8922e 100%);
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(201, 168, 76, 0.42), 0 4px 12px rgba(0,0,0,0.4);
}

.btn--primary:active {
  transform: scale(0.97) translateY(0);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

.btn--outline {
  padding: 13px 24px;
  color: var(--color-gold);
  background: transparent;
  border: 1px solid var(--color-gold-dim);
}

.btn--outline:hover {
  border-color: rgba(201, 168, 76, 0.5);
  background: rgba(201, 168, 76, 0.06);
  transform: translateY(-1px);
}

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

.btn--sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, transparent 28%, rgba(255, 255, 255, 0.25) 50%, transparent 72%);
  transform: translateX(-150%);
  pointer-events: none;
}

.btn--primary:hover .btn-shimmer {
  animation: shimmerSweep 0.6s ease forwards;
}

@keyframes shimmerSweep {
  to { transform: translateX(150%); }
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-brand-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-soft);
}

.footer-copy {
  font-size: 0.77rem;
  color: var(--color-muted);
}

/* === MISC ANIMATIONS === */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15%, 55%  { transform: translateX(-7px); }
  35%, 75%  { transform: translateX(7px); }
}

.shake { animation: shake 0.45s ease; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-surface); }
::-webkit-scrollbar-thumb { background: rgba(201, 168, 76, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201, 168, 76, 0.5); }

/* === SELECTION === */
::selection { background: rgba(201, 168, 76, 0.25); color: var(--color-text); }

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .features-inner { grid-template-columns: repeat(2, 1fr); }
  .form-row--halves { grid-template-columns: 1fr; }
  .preview-filters { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-main { padding: 0 var(--space-md); }
  .hero { padding: var(--space-xl) 0 var(--space-lg); }
  .hero-stats { gap: var(--space-lg); }
  .hero-stat-divider { display: none; }
  .features-inner { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .header-right { display: none; }
  .site-footer { padding: var(--space-lg) var(--space-md); }
  .summary-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .hero-headline { font-size: 2rem; }
  .summary-grid { grid-template-columns: 1fr; }
}
