/* ========================================
   Equalize Design System
   Mobile-First Responsive CSS
   ======================================== */

/* ========================================
   CSS Variables & Theme
   ======================================== */
:root {
  /* Brand Color Palette */
  --color-primary: #1F5EFF;
  --color-navy: #0D1C2E;
  --color-sky: #E6EEFF;
  --color-green: #00B88A;
  --color-sand: #F7F5F2;
  --color-slate: #6A778B;
  --color-info: #2979FF;
  --color-opportunity: #FFC107;
  --color-favorable: #00C853;
  --color-error: #D32F2F;
  
  /* Semantic Color Mapping */
  --bg: #ffffff;
  --bg2: var(--color-sand);
  --ink: var(--color-navy);
  --muted: var(--color-slate);
  --brand: var(--color-primary);
  --brand-hover: var(--color-green);
  --card: #ffffff;
  --ring: #e2e8f0;
  --shadow: rgba(13, 28, 46, 0.08);
  --shadow-md: rgba(13, 28, 46, 0.1);
  --shadow-lg: rgba(13, 28, 46, 0.15);
  
  --error-bg: #fef2f2;
  --error-text: var(--color-error);
  --error-border: #ffcdd2;
  
  --success-bg: #e8f5e9;
  --success-text: var(--color-favorable);
  --success-border: var(--color-favorable);
  
  --warning-bg: #fff8e1;
  --warning-text: #f57c00;
  --warning-border: var(--color-opportunity);
  
  --info-bg: var(--color-sky);
  --info-text: var(--color-info);
  --info-border: var(--color-info);
  
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 40px;
  --spacing-3xl: 64px;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 999px;
  
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 28px;
  --font-size-4xl: 32px;
  
  --transition: all 0.2s ease;
}

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

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
  font-size: var(--font-size-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ========================================
   Typography
   ======================================== */
h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--ink);
  font-weight: 700;
}

h2 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.3;
  margin: 2rem 0 1rem;
  color: var(--ink);
  font-weight: 600;
}

h3 {
  font-size: clamp(18px, 2.5vw, 20px);
  line-height: 1.4;
  margin: 1.5rem 0 0.75rem;
  color: var(--ink);
  font-weight: 600;
}

h4 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink);
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: var(--transition);
}

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

ul, ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

li {
  margin: 0 0 0.5rem;
}

.muted {
  color: var(--muted);
}

.last-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* ========================================
   Layout & Containers
   ======================================== */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 28px;
  }
}

.content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: var(--font-size-base);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
}

@media (min-width: 640px) {
  .container {
    padding: 20px 28px;
  }
}

/* ========================================
   Navigation - Mobile First
   ======================================== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .nav {
    margin-bottom: 24px;
    flex-wrap: nowrap;
  }
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.5em;
  color: var(--ink);
}

.brand img {
  height: 50px;
  width: auto;
}

@media (min-width: 640px) {
  .brand {
    font-size: 2em;
  }
  
  .brand img {
    height: 70px;
  }
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

@media (min-width: 640px) {
  .nav-left {
    gap: 32px;
  }
}

.nav-left-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

@media (min-width: 640px) {
  .nav-left-links {
    gap: 24px;
  }
}

.nav-left-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.nav-left-links a:hover {
  color: var(--brand);
}

.nav-left-links a.admin-active,
.nav-left-links a.active,
.nav-left-links a.nav-link-dashboard {
  color: var(--brand);
  font-weight: 600;
}

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown > span {
  color: #1C2B4D;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 0;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  min-height: 44px;
}

.nav-dropdown:hover > span {
  color: var(--brand-hover);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 4px 20px var(--shadow-lg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--ring);
  z-index: 1000;
  padding: 8px 0;
  margin-top: 0;
}

.nav-dropdown:hover .dropdown-content,
.dropdown-content:hover,
.nav-dropdown.active .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: var(--ink);
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  font-weight: 500;
  transition: var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.dropdown-content a:hover {
  background: var(--bg2);
  color: var(--brand);
}

.dropdown-content a.active {
  background: var(--brand);
  color: #fff;
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: var(--transition);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: var(--transition);
}

.nav-toggle span::before {
  top: -8px;
}

.nav-toggle span::after {
  bottom: -8px;
}

/* Right side navigation buttons */
.nav-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

@media (min-width: 640px) {
  .nav-right {
    gap: 16px;
  }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  font-size: var(--font-size-sm);
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  font-family: inherit;
  white-space: nowrap;
}

.btn:hover {
  background: var(--brand-hover);
  color: #fff;
}

.btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.btn-outline:hover {
  background: var(--brand);
  color: #fff;
}

.btn-secondary {
  background: var(--bg2);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ring);
  color: var(--ink);
}

.btn-large {
  padding: 14px 28px;
  font-size: var(--font-size-base);
  min-height: 48px;
}

.btn-small {
  padding: 8px 16px;
  font-size: var(--font-size-sm);
  min-height: 36px;
}

.btn-block {
  width: 100%;
  display: flex;
}

/* Navigation link buttons */
.nav-link-btn {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav-link-btn:hover {
  background: var(--bg2);
  color: var(--brand);
}

.nav-btn-primary {
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav-btn-primary:hover {
  background: var(--brand-hover);
  color: #fff;
}

/* ========================================
   Forms
   ======================================== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.input-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.form-input,
.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--ring);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base);
  background: #fafbfc;
  color: var(--ink);
  transition: var(--transition);
  font-family: inherit;
  min-height: 44px;
}

.form-input:focus,
.input-field:focus {
  outline: none;
  border-color: var(--brand);
  background: white;
  box-shadow: 0 0 0 3px rgba(31, 94, 255, 0.1);
}

.form-input::placeholder,
.input-field::placeholder {
  color: var(--muted);
}

textarea.form-input,
textarea.input-field {
  min-height: 120px;
  resize: vertical;
}

/* ========================================
   Cards
   ======================================== */
.card {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 1px 3px var(--shadow);
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .card {
    padding: 24px;
    margin-bottom: 24px;
  }
}

.card h2 {
  margin: 0 0 16px;
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--ink);
}

.card h3 {
  margin: 0 0 12px;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--ink);
}

.card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.card p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Grid Layouts - Mobile First
   ======================================== */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .grid {
    gap: 24px;
    margin-bottom: 24px;
  }
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.data-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .data-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .data-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

.data-item {
  padding: 12px;
  background: var(--bg2);
  border-radius: var(--radius-sm);
}

.data-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.data-value {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--ink);
}

/* ========================================
   Tables - Mobile Responsive
   ======================================== */
.table-container {
  overflow-x: auto;
  margin: 2rem 0;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 3px var(--shadow);
  min-width: 600px;
}

@media (min-width: 640px) {
  table {
    min-width: auto;
  }
}

th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  border-bottom: 2px solid var(--ring);
  background: var(--bg2);
}

@media (min-width: 640px) {
  th {
    padding: 16px;
  }
}

td {
  padding: 12px;
  border-bottom: 1px solid var(--ring);
  color: var(--ink);
  vertical-align: top;
}

@media (min-width: 640px) {
  td {
    padding: 16px;
  }
}

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

tr:hover {
  background: rgba(248, 250, 252, 0.5);
}

tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.3);
}

/* ========================================
   Hero Section - Mobile First
   ======================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: flex-start;
  margin-top: 20px;
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 32px;
    min-height: 80vh;
    align-items: center;
  }
}

.value-prop {
  padding-right: 0;
  text-align: center;
}

@media (min-width: 640px) {
  .value-prop {
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .value-prop {
    padding-right: 40px;
  }
}

.value-prop h1 {
  font-size: clamp(32px, 4.5vw, 50px);
  line-height: 1.05;
  margin: 0 0 0.25rem;
  color: var(--ink);
  font-weight: 600;
}

.value-prop h2 {
  font-size: clamp(32px, 4.5vw, 50px);
  line-height: 1.05;
  margin: 0 0 1.5rem;
  color: #2E8B57;
  font-weight: 600;
}

.value-prop .subtitle {
  color: var(--muted);
  margin: 0 0 0.75rem;
  font-size: var(--font-size-lg);
  line-height: 1.6;
  font-weight: 400;
}

.value-prop .features-intro {
  color: var(--ink);
  margin: 0 0 1.5rem;
  font-size: var(--font-size-base);
  font-weight: 500;
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: var(--font-size-base);
  line-height: 1.5;
  font-weight: 400;
  text-align: left;
}

.benefits li::before {
  content: '•';
  color: var(--brand);
  font-weight: bold;
  font-size: 20px;
  flex-shrink: 0;
}

/* Form Column */
.form-column {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 4px 16px var(--shadow);
  height: fit-content;
}

@media (min-width: 640px) {
  .form-column {
    padding: 48px;
  }
}

.form-header {
  margin-bottom: 2rem;
}

.form-header h3 {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.form-header p {
  margin: 0;
  color: var(--muted);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  font-weight: 400;
}

/* ========================================
   Badges & Pills
   ======================================== */
.badge {
  display: inline-block;
  border: 1px solid var(--ring);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  background: var(--bg2);
  color: var(--ink);
  font-size: var(--font-size-sm);
}

.pill {
  border: 1px solid var(--ring);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  background: var(--bg2);
  color: var(--ink);
  font-weight: 500;
  font-size: var(--font-size-sm);
}

/* Status Badges */
.property-status,
.protest-badge,
.time-badge {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.status-ready,
.protest-higher {
  background: var(--info-bg);
  color: var(--info-text);
}

.status-pending,
.protest-moderate,
.protest-lower {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.status-filed {
  background: #dbeafe;
  color: #2563eb;
}

.protest-insufficient {
  background: #f3f4f6;
  color: #6b7280;
}

.time-badge {
  background: var(--color-sky);
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 12px;
}

/* ========================================
   Messages & Alerts
   ======================================== */
.error-message {
  background: var(--error-bg);
  color: var(--error-text);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  border: 1px solid var(--error-border);
}

.success-message {
  background: var(--success-bg);
  color: var(--success-text);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  border: 1px solid var(--success-border);
}

.warning-message {
  background: var(--warning-bg);
  color: var(--warning-text);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  border: 1px solid var(--warning-border);
}

/* ========================================
   Progress & Timeline
   ======================================== */
.progress-bar {
  background: var(--bg2);
  border-radius: var(--radius-sm);
  height: 8px;
  margin: 8px 0;
  overflow: hidden;
}

.progress-fill {
  background: var(--brand);
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width 0.3s ease;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
}

.timeline li::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ring);
  flex-shrink: 0;
  margin-top: 4px;
}

.timeline li.completed::before {
  background: var(--brand);
}

.timeline li.current::before {
  background: #2563eb;
}

.timeline-content h4 {
  margin: 0 0 4px;
  font-weight: 600;
  color: var(--ink);
}

.timeline-content p {
  margin: 0;
  color: var(--muted);
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

/* ========================================
   Highlights & Special Sections
   ======================================== */
.highlight,
.highlight-box {
  background: linear-gradient(120deg, var(--color-sky) 0%, rgba(230, 238, 255, 0.5) 100%);
  padding: 20px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--brand);
  margin: 1.5rem 0;
}

.highlight p,
.highlight-box p {
  margin: 0;
}

.intro-box {
  background: linear-gradient(135deg, var(--color-sky) 0%, rgba(230, 238, 255, 0.3) 100%);
  border: 1px solid var(--brand);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 1.5rem 0;
}

.intro-box p {
  margin: 0;
}

.tip-box,
.success-tip {
  background: var(--info-bg);
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 20px;
  color: var(--success-text);
  font-size: var(--font-size-sm);
}

.step,
.step-card,
.faq-item {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 1.5rem 0;
  box-shadow: 0 1px 3px var(--shadow);
}

@media (min-width: 640px) {
  .step,
  .step-card,
  .faq-item {
    padding: 24px;
  }
}

.step h3,
.step-card h3,
.faq-item h3 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--font-size-lg);
}

.step p,
.step-card p,
.faq-item p {
  margin: 0 0 1rem;
}

.step p:last-child,
.step-card p:last-child,
.faq-item p:last-child {
  margin: 0;
}

.step-card {
  position: relative;
}

.step-number {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--brand);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-base);
}

.success-note {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 2rem 0;
}

.success-note p {
  margin: 0;
}

.success-note strong {
  color: var(--success-text);
}

.tips-section {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 2rem 0;
  box-shadow: 0 1px 3px var(--shadow);
}

@media (min-width: 640px) {
  .tips-section {
    padding: 24px;
  }
}

.tips-section h2 {
  margin-top: 0;
}

.tip-item {
  margin: 1rem 0;
  padding: 12px;
  background: var(--color-sky);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.tip-item strong {
  color: var(--brand);
}

/* ========================================
   Stats & Property Cards
   ======================================== */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 16px 0;
}

@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat {
  text-align: center;
  padding: 16px;
  background: var(--bg2);
  border-radius: var(--radius-sm);
}

.stat-value {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 4px;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.property-card {
  margin-bottom: 24px;
}

.property-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.property-address {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--ink);
}

/* ========================================
   Login & Auth Specific
   ======================================== */
.login-container {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 32px 24px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .login-container {
    padding: 48px 40px;
  }
}

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

.logo img {
  height: 32px;
  width: auto;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .logo img {
    height: 40px;
  }
}

.welcome {
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 32px 0;
}

.signin-btn {
  width: 100%;
  background: #1f2328;
  color: white;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  margin-top: 24px;
  transition: var(--transition);
  min-height: 44px;
}

.signin-btn:hover {
  background: #2c3136;
}

.signin-btn:disabled {
  background: #8b949e;
  cursor: not-allowed;
}

.forgot-link {
  color: #0969da;
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  display: block;
  text-align: left;
  margin-top: 8px;
}

.forgot-link:hover {
  text-decoration: underline;
}

.footer-links {
  margin-top: 48px;
  font-size: var(--font-size-sm);
  color: #656d76;
  line-height: 1.4;
}

.footer-links a {
  color: #0969da;
  text-decoration: none;
  margin: 0 4px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.privacy-note {
  margin-top: 12px;
  font-size: var(--font-size-sm);
  color: #656d76;
}

.success-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .success-icon {
    font-size: 80px;
    margin-bottom: 24px;
  }
}

.success-title {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px 0;
}

.success-text {
  color: #656d76;
  font-size: var(--font-size-base);
  line-height: 1.5;
  margin: 0 0 20px 0;
}

.success-email {
  font-weight: 600;
  color: var(--ink);
}

/* ========================================
   Dashboard Specific
   ======================================== */
.dashboard {
  margin-top: 0;
}

.welcome h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.welcome p {
  color: var(--muted);
  margin: 0;
  font-size: var(--font-size-base);
}

/* ========================================
   Admin Specific
   ======================================== */
.admin-header {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px var(--shadow);
}

@media (min-width: 640px) {
  .admin-header {
    padding: 24px;
  }
}

.admin-title {
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--ink);
}

.admin-subtitle {
  color: var(--muted);
  margin: 0;
  font-size: var(--font-size-base);
}

.search-box {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px var(--shadow);
}

@media (min-width: 640px) {
  .search-box {
    padding: 24px;
  }
}

.results-section {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 1px 3px var(--shadow);
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .results-section {
    padding: 24px;
  }
}

.results-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--ink);
}

.run-btn {
  background: var(--brand);
  color: white;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-weight: 600;
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  min-height: 44px;
}

.run-btn:hover {
  background: var(--brand-hover);
}

.run-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

/* ========================================
   Footer
   ======================================== */
.footer,
footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ring);
  color: var(--muted);
  text-align: center;
  font-size: var(--font-size-sm);
}

.footer a,
footer a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 8px;
}

.footer a:hover,
footer a:hover {
  color: var(--brand);
}

/* ========================================
   Utility Classes
   ======================================== */
.hidden {
  display: none !important;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-24 {
  margin-bottom: 24px;
}

.phase-col {
  font-weight: 600;
  color: var(--brand);
}

.dates-col {
  color: var(--muted);
  font-style: italic;
}

/* Form utilities */
.form-description {
  margin: 0 0 2rem 0;
  color: var(--muted);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  font-weight: 400;
}

.form-headline {
  margin: 0 0 2.5rem 0;
  color: var(--ink);
  font-size: var(--font-size-xl);
  line-height: 1.4;
  font-weight: 500;
  text-align: center;
}

@media (min-width: 640px) {
  .form-headline {
    font-size: var(--font-size-2xl);
  }
}

.form-label-light {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: var(--font-size-sm);
}

.form-input-group {
  margin-bottom: 24px;
}

.checkbox-group {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}

.checkbox-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.link-underline {
  color: var(--ink);
  text-decoration: underline;
}

.form-footer-text {
  margin: 20px 0 0 0;
  font-size: var(--font-size-sm);
  color: var(--muted);
  text-align: center;
}

/* Navigation utilities */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--ring);
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links-group {
  display: flex;
  gap: 24px;
  align-items: center;
}

.user-email {
  color: var(--muted);
  font-size: var(--font-size-sm);
}

/* Login page utilities */
.login-page-container {
  margin-top: 80px;
}

.login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* Loading state utilities */
.loading-container {
  text-align: center;
  padding: 40px 20px;
}

.loading-emoji {
  font-size: 48px;
  margin-bottom: 20px;
}

/* Admin utilities */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-loading-text {
  text-align: center;
  color: var(--muted);
  padding: 40px;
}

/* Footer utilities */
.footer-admin-links {
  margin-top: 8px;
  font-size: 12px;
  display: none; /* Hidden by default, shown only to admin via JS */
}

/* Table column width utilities */
.col-20 {
  width: 20%;
}

.col-30 {
  width: 30%;
}

.text-muted-italic {
  font-style: italic;
  color: var(--muted);
}

/* ========================================
   Illustrations
   ======================================== */
.illustration {
  margin-top: 3rem;
  text-align: center;
}

.illustration-emoji {
  font-size: 80px;
  opacity: 0.8;
}

@media (min-width: 640px) {
  .illustration-emoji {
    font-size: 120px;
  }
}

/* ========================================
   Responsive Helpers
   ======================================== */
.mobile-only {
  display: block;
}

@media (min-width: 640px) {
  .mobile-only {
    display: none;
  }
}

.desktop-only {
  display: none;
}

@media (min-width: 640px) {
  .desktop-only {
    display: block;
  }
}

/* ========================================
   Pricing Grid - Responsive
   ======================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
  .nav,
  .footer,
  footer,
  .btn,
  button {
    display: none !important;
  }
  
  .card,
  .table-container {
    page-break-inside: avoid;
  }
}
