/* ==================================================
   SendFile — Design System: "Copper & Cream"
   Aesthetic: Warm Swiss minimalism, editorial precision
   ================================================== */

@import url('https://fonts.googleapis.com/css2?family=Epilogue:wght@500;600;700;800&family=Manrope:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ==================================================
   Reset
   ================================================== */

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

/* ==================================================
   Design Tokens
   ================================================== */

:root {
  /* Primary — Terracotta */
  --color-primary: #b84c2a;
  --color-primary-hover: #9a3f22;
  --color-primary-light: #fef2ee;
  --color-primary-subtle: #fde8e0;

  /* Accent — Teal */
  --color-accent: #0f766e;
  --color-accent-hover: #0d5f58;
  --color-accent-light: #f0fdfa;

  /* Neutrals — Warm Stone */
  --color-dark: #1c1917;
  --color-dark-secondary: #292524;
  --color-surface: #ffffff;
  --color-background: #f7f5f0;
  --color-text: #292524;
  --color-text-secondary: #57534e;
  --color-text-muted: #a8a29e;
  --color-border: #e7e5e4;
  --color-border-light: #f0eeeb;

  /* Semantic */
  --color-success: #15803d;
  --color-success-light: #f0fdf4;
  --color-error: #dc2626;
  --color-error-light: #fef2f2;
  --color-warning: #d97706;
  --color-warning-light: #fffbeb;
  --color-info: #0f766e;
  --color-info-light: #f0fdfa;

  /* Shape */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows — warm toned */
  --shadow-xs: 0 1px 2px rgba(28,25,23,0.04);
  --shadow: 0 1px 3px rgba(28,25,23,0.05), 0 4px 12px rgba(28,25,23,0.04);
  --shadow-md: 0 4px 14px rgba(28,25,23,0.07), 0 10px 24px rgba(28,25,23,0.04);
  --shadow-lg: 0 10px 32px rgba(28,25,23,0.09), 0 20px 48px rgba(28,25,23,0.05);

  /* Layout */
  --max-width: 1100px;
  --navbar-height: 64px;

  /* Typography */
  --font-heading: 'Epilogue', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

/* ==================================================
   Base
   ================================================== */

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.375rem;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
}

h4 {
  font-size: 0.9375rem;
  font-weight: 600;
}

p {
  color: var(--color-text-secondary);
  line-height: 1.65;
}

strong {
  font-weight: 600;
}

::selection {
  background: var(--color-primary-subtle);
  color: var(--color-dark);
}

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

.container {
  width: min(var(--max-width), 100% - 2.5rem);
  margin-inline: auto;
}

.main-content {
  flex: 1;
  padding: 40px 0;
}

.landing-page .main-content {
  padding: 0;
}

/* ==================================================
   Navbar
   ================================================== */

.navbar {
  height: var(--navbar-height);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.03em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.navbar-brand:hover {
  color: var(--color-primary);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar-nav li {
  list-style: none;
}

.navbar-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.navbar-nav a:hover {
  color: var(--color-text);
  background: var(--color-border-light);
}

.nav-cta {
  background: var(--color-primary) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--color-primary-hover) !important;
  color: #fff !important;
}

/* --- Landing Navbar (transparent over dark hero) --- */

.landing-page .navbar {
  position: absolute;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.landing-page .navbar-brand {
  color: #fff;
}

.landing-page .navbar-brand:hover {
  color: rgba(255,255,255,0.8);
}

.landing-page .navbar-nav a {
  color: rgba(255,255,255,0.7);
}

.landing-page .navbar-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.landing-page .nav-cta {
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
}

.landing-page .nav-cta:hover {
  background: rgba(255,255,255,0.2) !important;
}

/* ==================================================
   Buttons
   ================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  outline: none;
}

.btn:focus-visible {
  box-shadow: 0 0 0 2px var(--color-background), 0 0 0 4px var(--color-primary);
}

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

/* --- Primary --- */

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #fff;
  box-shadow: 0 4px 12px rgba(184,76,42,0.25);
}

/* --- Secondary --- */

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-text-muted);
  background: var(--color-border-light);
  color: var(--color-text);
}

/* --- Accent --- */

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15,118,110,0.25);
}

/* --- Danger --- */

.btn-danger {
  background: var(--color-surface);
  color: var(--color-error);
  border-color: var(--color-border);
}

.btn-danger:hover {
  background: var(--color-error);
  border-color: var(--color-error);
  color: #fff;
}

/* --- Ghost --- */

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.2);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}

/* --- White --- */

.btn-white {
  background: #fff;
  color: var(--color-dark);
  border-color: #fff;
}

.btn-white:hover {
  background: var(--color-background);
  border-color: var(--color-background);
  color: var(--color-dark);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* --- Success --- */

.btn-success {
  background: var(--color-success);
  color: #fff;
  border-color: var(--color-success);
}

.btn-success:hover {
  background: #166534;
  border-color: #166534;
  color: #fff;
  box-shadow: 0 4px 12px rgba(21,128,61,0.25);
}

/* --- Button Sizes --- */

.btn-sm {
  font-size: 0.8125rem;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  font-size: 0.9375rem;
  padding: 14px 30px;
  border-radius: var(--radius);
}

.btn-block {
  width: 100%;
}

/* ==================================================
   Forms
   ================================================== */

.form-group {
  margin-bottom: 20px;
}

.form-label, .form-group > label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-control {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 10px 14px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-control::placeholder {
  color: var(--color-text-muted);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(184,76,42,0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-check label {
  cursor: pointer;
  font-weight: 400;
}

.hint {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 5px;
  line-height: 1.5;
}

/* --- Toggle Switch --- */

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--color-border);
  border-radius: 999px;
  transition: background 0.25s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--color-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle-switch input:focus-visible + .toggle-slider {
  box-shadow: 0 0 0 2px var(--color-background), 0 0 0 4px var(--color-primary);
}

/* ==================================================
   Cards
   ================================================== */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow 0.25s ease;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border-light);
}

.card-header h2 {
  font-size: 1.25rem;
  margin: 0;
}

.card-header .btn {
  margin-left: auto;
}

.card-footer {
  padding-top: 20px;
  margin-top: 24px;
  border-top: 1px solid var(--color-border-light);
}

/* Card header icon containers */
.card-header > div:first-child:has(svg) {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

/* ==================================================
   Badges
   ================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.4;
}

.badge-info {
  background: var(--color-info-light);
  color: var(--color-info);
}

.badge-warning {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.badge-error {
  background: var(--color-error-light);
  color: var(--color-error);
}

.badge-success {
  background: var(--color-success-light);
  color: var(--color-success);
}

.badge-secondary {
  background: var(--color-border-light);
  color: var(--color-text-muted);
}

/* ==================================================
   Tables
   ================================================== */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table th {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
}

.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
  vertical-align: middle;
}

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

.table tbody tr:hover {
  background: rgba(247,245,240,0.5);
}

/* ==================================================
   Flash Messages
   ================================================== */

.flash {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.3s ease;
}

.flash-notice, .flash.flash-notice {
  background: var(--color-success-light);
  color: var(--color-success);
  border: 1px solid #bbf7d0;
}

.flash-alert, .flash.flash-alert {
  background: var(--color-error-light);
  color: var(--color-error);
  border: 1px solid #fecaca;
}

.alert-success {
  background: var(--color-success-light);
  color: var(--color-success);
  border: 1px solid #bbf7d0;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 20px;
}

/* ==================================================
   Hero — Landing Page
   ================================================== */

.hero {
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
  padding: calc(var(--navbar-height) + 80px) 0 100px;
}

/* Warm radial glow */
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 70%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(184,76,42,0.07) 0%, transparent 65%);
  pointer-events: none;
}

/* Grain texture overlay */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
  padding: 6px 14px 6px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-pill);
}

.hero-eyebrow svg {
  opacity: 0.6;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw + 0.5rem, 3.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
}

.hero-proof svg {
  color: var(--color-success);
  opacity: 0.8;
}

.hero-proof-sep {
  width: 3px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
}

/* --- Hero Visual (Mockup) --- */

.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-mockup {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35), 0 8px 20px rgba(0,0,0,0.2);
  transform: perspective(800px) rotateY(-2deg) rotateX(1deg);
  transition: transform 0.4s ease;
}

.hero-mockup:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--color-border-light);
  border-bottom: 1px solid var(--color-border);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #22c55e; }

.mockup-title {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: -0.01em;
}

.mockup-body {
  padding: 20px;
}

.mockup-upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-bottom: 14px;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mockup-upload-zone svg {
  opacity: 0.4;
}

.mockup-upload-zone span {
  font-size: 0.8125rem;
}

.mockup-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--color-background);
  margin-bottom: 8px;
}

.mockup-file-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  color: var(--color-primary);
}

.mockup-file-info {
  flex: 1;
  min-width: 0;
}

.mockup-file-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-file-meta {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
}

.mockup-file-check {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-success-light);
  border-radius: 50%;
  color: var(--color-success);
}

.mockup-options {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.mockup-opt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-border-light);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.mockup-opt.on {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.mockup-btn {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* ==================================================
   Trust Bar
   ================================================== */

.trust-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 0;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.trust-item svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

.trust-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.trust-item span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ==================================================
   Landing Sections
   ================================================== */

.landing-section {
  padding: 80px 0;
}

.landing-section-alt {
  background: var(--color-surface);
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2rem);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* --- Features Grid --- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  border-color: var(--color-primary-subtle);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Features grid on landing-section (non-alt) uses cream background */
.landing-section:not(.landing-section-alt) .feature-card {
  background: var(--color-surface);
}

/* --- Steps Grid --- */

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 260px;
  padding: 0 20px;
}

.step-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  margin-bottom: 18px;
}

.step h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.step-divider {
  width: 60px;
  height: 2px;
  background: var(--color-border);
  margin-top: 24px;
  flex-shrink: 0;
}

/* --- CTA Section --- */

.landing-cta {
  background: var(--color-dark);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.landing-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}

.landing-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  position: relative;
}

.landing-cta p {
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
  font-size: 1rem;
  position: relative;
}

.landing-cta .btn {
  position: relative;
}

/* ==================================================
   Upload Zone
   ================================================== */

.upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.upload-zone:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.upload-zone.drag-over {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  border-style: solid;
}

.upload-zone input[type="file"] {
  display: none;
}

.upload-zone-icon {
  margin-bottom: 16px;
  color: var(--color-primary);
  opacity: 0.6;
}

.upload-zone h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.upload-zone p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ==================================================
   File List & File Items
   ================================================== */

.file-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  transition: background 0.15s ease;
}

.file-item:hover {
  background: var(--color-background);
}

.file-item-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: var(--radius);
  flex-shrink: 0;
  color: var(--color-primary);
}

.file-item-info {
  flex: 1;
  min-width: 0;
}

.file-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-item-size {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.file-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.file-item-remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1;
  transition: color 0.2s ease, background 0.2s ease;
}

.file-item-remove:hover {
  color: var(--color-error);
  background: var(--color-error-light);
}

/* ==================================================
   Progress Bar
   ================================================== */

.progress-bar-container {
  margin-bottom: 8px;
}

.progress-bar {
  height: 6px;
  background: var(--color-border);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), #d4724f);
  border-radius: 999px;
  transition: width 0.3s ease;
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    rgba(255,255,255,0.15) 6px,
    rgba(255,255,255,0.15) 12px
  );
  animation: progressStripes 0.8s linear infinite;
}

.progress-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* ==================================================
   Stats Grid
   ================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--color-background);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==================================================
   Share Link Box
   ================================================== */

.share-link-box {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.share-link-box input {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-text);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 10px 14px;
  outline: none;
  min-width: 0;
}

.share-link-box input:focus {
  border-color: var(--color-primary);
}

/* ==================================================
   Upload Complete
   ================================================== */

.upload-complete {
  text-align: center;
  padding: 32px 0 8px;
}

.upload-complete h2 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  margin-bottom: 8px;
}

.upload-complete p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* ==================================================
   Options Panel
   ================================================== */

.options-panel {
  padding: 24px 0 0;
}

.options-panel h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.option-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.option-toggle-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}

.option-toggle-hint {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.collapsible-field {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.collapsible-field.open {
  max-height: 200px;
  opacity: 1;
  padding-top: 12px;
}

/* ==================================================
   Pool Selector
   ================================================== */

.pool-selector {
  padding-top: 20px;
}

.pool-selector-title {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.pool-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pool-option {
  flex: 1;
  min-width: 140px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pool-option:hover {
  border-color: var(--color-text-muted);
}

.pool-option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.pool-option-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.pool-option-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ==================================================
   Dashboard
   ================================================== */

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.dashboard-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.dashboard-subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ==================================================
   Transfer List
   ================================================== */

.transfer-list-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.transfer-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.transfer-list-link:hover .transfer-list-item {
  border-color: var(--color-primary-subtle);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.transfer-list-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: var(--radius);
  flex-shrink: 0;
  color: var(--color-primary);
}

.transfer-list-info {
  flex: 1;
  min-width: 0;
}

.transfer-list-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.transfer-list-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.transfer-list-meta span {
  display: inline-flex;
  align-items: center;
}

.transfer-list-badges {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.transfer-list-arrow {
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.transfer-list-link:hover .transfer-list-arrow {
  transform: translateX(3px);
  color: var(--color-primary);
}

/* ==================================================
   Empty State
   ================================================== */

.empty-state {
  text-align: center;
  padding: 60px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-background);
  border-radius: 50%;
  margin-bottom: 20px;
  color: var(--color-text-muted);
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* ==================================================
   Pricing
   ================================================== */

.pricing-hero {
  text-align: center;
  padding: 20px 0 40px;
}

.pricing-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.pricing-hero p {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-md);
}

.pricing-popular {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pricing-card-header {
  margin-bottom: 24px;
}

.pricing-card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.pricing-price span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.pricing-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.pricing-features li {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-card-footer {
  margin-top: auto;
}

/* ==================================================
   PAYG Calculator
   ================================================== */

.payg-section {
  padding-bottom: 20px;
}

.payg-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 600px;
  margin: 0 auto;
}

.payg-header {
  text-align: center;
  margin-bottom: 32px;
}

.payg-header h2 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.payg-header p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.payg-sliders {
  margin-bottom: 32px;
}

.payg-slider-group {
  margin-bottom: 24px;
}

.payg-slider-group:last-child {
  margin-bottom: 0;
}

.payg-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.875rem;
}

.payg-slider-label span {
  color: var(--color-text-secondary);
  font-weight: 500;
}

.payg-slider-label strong {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  font-size: 0.9375rem;
}

/* Range Slider */
.payg-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--color-border);
  outline: none;
  cursor: pointer;
}

.payg-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.payg-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(184,76,42,0.35);
}

.payg-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.payg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
}

.payg-total {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payg-total span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.payg-total .pricing-price {
  margin-bottom: 0;
}

/* ==================================================
   Billing
   ================================================== */

.billing-header {
  margin-bottom: 32px;
}

.billing-header h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.billing-header p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.billing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
}

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

.billing-card-header h2 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.purchase-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.purchase-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.purchase-item:first-child {
  padding-top: 0;
}

/* ==================================================
   Usage Meter
   ================================================== */

.usage-meter {
  margin-bottom: 16px;
}

.usage-meter:last-child {
  margin-bottom: 0;
}

.usage-meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  margin-bottom: 8px;
}

.usage-meter-label span:first-child {
  font-weight: 500;
  color: var(--color-text-secondary);
}

.usage-meter-label span:last-child {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.usage-meter-bar {
  height: 8px;
  background: var(--color-border-light);
  border-radius: 999px;
  overflow: hidden;
}

.usage-meter-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.usage-meter-fill.low {
  background: linear-gradient(90deg, var(--color-success), #4ade80);
}

.usage-meter-fill.medium {
  background: linear-gradient(90deg, var(--color-warning), #fbbf24);
}

.usage-meter-fill.high {
  background: linear-gradient(90deg, var(--color-error), #f87171);
}

/* ==================================================
   Auth Layout
   ================================================== */

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--navbar-height) - 80px);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin: 0 auto;
}

.auth-side {
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 48px;
}

/* Subtle pattern on auth side */
.auth-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Warm glow on auth side */
.auth-side::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(184,76,42,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.auth-side-content {
  position: relative;
  z-index: 2;
}

.auth-side-brand {
  margin-bottom: 48px;
}

.auth-side-brand a {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.auth-side-message {
  margin-bottom: 40px;
}

.auth-side-message h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.auth-side-message p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.auth-side-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-side-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}

.auth-side-feature svg {
  color: var(--color-primary);
  opacity: 0.8;
  flex-shrink: 0;
}

.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.auth-form-wrapper {
  width: 100%;
  max-width: 380px;
}

.auth-form-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.auth-form-subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.auth-form-links {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 24px;
  line-height: 1.8;
}

.auth-form-links a {
  color: var(--color-primary);
  font-weight: 600;
}

/* ==================================================
   Error Pages
   ================================================== */

.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--navbar-height) - 200px);
  padding: 40px 0;
}

.error-page .card {
  text-align: center;
  max-width: 420px;
  padding: 48px;
}

.error-page h2 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.error-page p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* ==================================================
   Password Page
   ================================================== */

.password-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--navbar-height) - 200px);
  padding: 40px 0;
}

.password-page .card {
  text-align: center;
  max-width: 420px;
  padding: 48px;
}

.password-page h2 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.password-page p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* ==================================================
   Decrypt Modal
   ================================================== */

.decrypt-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28,25,23,0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.decrypt-modal-content {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 420px;
  width: calc(100% - 2rem);
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

.decrypt-modal-content h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
}

/* ==================================================
   Download List
   ================================================== */

.download-list {
  margin: 0 -14px;
}

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

.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.55);
  padding: 56px 0 0;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
  font-size: 0.875rem;
}

.footer-col a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
}

/* ==================================================
   Admin Layout
   ================================================== */

.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - var(--navbar-height));
}

.admin-sidebar {
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  padding: 24px 16px;
}

.admin-main {
  padding: 32px;
  background: var(--color-background);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 10px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.admin-nav-link:hover {
  color: var(--color-text);
  background: var(--color-background);
}

.admin-nav-link.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
  font-weight: 600;
}

.admin-page-header {
  margin-bottom: 28px;
}

.admin-page-header h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.admin-stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.admin-stat-card .stat-value {
  font-size: 1.5rem;
}

.admin-stat-card .stat-label {
  font-size: 0.75rem;
}

/* ==================================================
   Utilities
   ================================================== */

.hidden {
  display: none !important;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.text-sm { font-size: 0.8125rem; }
.text-secondary { color: var(--color-text-secondary); }
.text-center { text-align: center; }

/* ==================================================
   Animations
   ================================================== */

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

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

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

@keyframes progressStripes {
  0% { background-position: 0 0; }
  100% { background-position: 24px 0; }
}

/* Page entrance animation */
.main-content > .container > *,
.main-content > .container > .card {
  animation: slideUp 0.35s ease both;
}

/* Staggered entrance for transfer list items */
.transfer-list-link:nth-child(1) { animation: slideUp 0.35s ease 0.00s both; }
.transfer-list-link:nth-child(2) { animation: slideUp 0.35s ease 0.04s both; }
.transfer-list-link:nth-child(3) { animation: slideUp 0.35s ease 0.08s both; }
.transfer-list-link:nth-child(4) { animation: slideUp 0.35s ease 0.12s both; }
.transfer-list-link:nth-child(5) { animation: slideUp 0.35s ease 0.16s both; }
.transfer-list-link:nth-child(6) { animation: slideUp 0.35s ease 0.20s both; }
.transfer-list-link:nth-child(7) { animation: slideUp 0.35s ease 0.24s both; }
.transfer-list-link:nth-child(8) { animation: slideUp 0.35s ease 0.28s both; }

/* Hero entrance animations */
.hero-eyebrow { animation: slideUp 0.5s ease 0.1s both; }
.hero-title { animation: slideUp 0.5s ease 0.2s both; }
.hero-subtitle { animation: slideUp 0.5s ease 0.3s both; }
.hero-actions { animation: slideUp 0.5s ease 0.4s both; }
.hero-proof { animation: slideUp 0.5s ease 0.5s both; }
.hero-mockup { animation: slideUp 0.6s ease 0.3s both; }

/* Feature card stagger */
.feature-card:nth-child(1) { animation: slideUp 0.4s ease 0.1s both; }
.feature-card:nth-child(2) { animation: slideUp 0.4s ease 0.15s both; }
.feature-card:nth-child(3) { animation: slideUp 0.4s ease 0.2s both; }
.feature-card:nth-child(4) { animation: slideUp 0.4s ease 0.25s both; }
.feature-card:nth-child(5) { animation: slideUp 0.4s ease 0.3s both; }
.feature-card:nth-child(6) { animation: slideUp 0.4s ease 0.35s both; }

/* Trust bar stagger */
.trust-item:nth-child(1) { animation: slideUp 0.4s ease 0.05s both; }
.trust-item:nth-child(2) { animation: slideUp 0.4s ease 0.1s both; }
.trust-item:nth-child(3) { animation: slideUp 0.4s ease 0.15s both; }

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

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    max-width: 420px;
  }

  .hero-mockup {
    transform: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-items {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .steps-grid {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .step-divider {
    width: 2px;
    height: 24px;
    margin-top: 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-side {
    padding: 32px;
    min-height: auto;
  }

  .auth-side-message h2 {
    font-size: 1.375rem;
  }

  .auth-form-side {
    padding: 32px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 16px;
  }

  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(var(--max-width), 100% - 1.5rem);
  }

  .hero {
    padding: calc(var(--navbar-height) + 48px) 0 60px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-proof {
    justify-content: center;
  }

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

  .navbar-nav {
    gap: 2px;
  }

  .navbar-nav a {
    padding: 6px 10px;
    font-size: 0.8125rem;
  }

  .nav-cta {
    padding: 6px 14px !important;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .billing-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .card {
    padding: 20px;
    border-radius: var(--radius-md);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .payg-footer {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    text-align: center;
  }

  .payg-total {
    justify-content: center;
  }

  .transfer-list-item {
    flex-wrap: wrap;
  }

  .transfer-list-badges {
    order: 3;
    width: 100%;
    padding-left: 56px;
    margin-top: -4px;
  }

  .share-link-box {
    flex-direction: column;
  }

  .file-item {
    flex-wrap: wrap;
  }

  .file-item-actions {
    width: 100%;
    padding-left: 48px;
  }

  .auth-layout {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .landing-cta {
    padding: 56px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .stat-card {
    padding: 12px;
  }

  .stat-value {
    font-size: 1.0625rem;
  }
}
