/* ============================================
   FractaState - Shared Styles
   Fractional Real Estate Investment Platform
   ============================================ */

:root {
  /* Colors - Ownsy Brand */
  --bg-dark: #0C0C1D;
  --bg-card: #13132B;
  --bg-card-hover: #1A1A3E;
  --bg-elevated: #1E1E42;
  --bg-input: #161632;
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0C0;
  --text-muted: #6B6B8D;
  --accent-primary: #6366F1;
  --accent-primary-light: #818CF8;
  --accent-primary-dark: #4F46E5;
  --accent-emerald: #10B981;
  --accent-emerald-dark: #059669;
  --accent-red: #EF4444;
  --accent-blue: #3B82F6;
  --border-subtle: rgba(148, 163, 184, 0.1);
  --border-accent: rgba(99, 102, 241, 0.3);
  --gradient-primary: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  --gradient-dark: linear-gradient(180deg, #0C0C1D 0%, #13132B 100%);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);
  --shadow-input: 0 2px 8px rgba(0, 0, 0, 0.2);

  /* Legacy aliases for backward compatibility */
  --accent-gold: var(--accent-primary);
  --accent-gold-light: var(--accent-primary-light);
  --accent-gold-dark: var(--accent-primary-dark);
  --border-gold: var(--border-accent);
  --gradient-gold: var(--gradient-primary);

  /* Spacing */
  --nav-height: 80px;
  --container-max: 1400px;
  --section-padding: 100px;
  --card-radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: clamp(22px, 3vw, 28px); }
h4 { font-size: clamp(18px, 2vw, 22px); }

p { color: var(--text-secondary); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 60px;
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  padding: 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 13, 20, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.logo-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 42px;
  height: 42px;
}

.logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gold);
  border-radius: 2px;
}

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

.nav-balance {
  text-align: right;
  padding-right: 24px;
  border-right: 1px solid var(--border-subtle);
}

.nav-balance-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-balance-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-gold);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 12px;
  transition: background 0.3s ease;
}

.nav-user:hover { background: var(--bg-elevated); }

.nav-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  color: white;
}

.nav-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.nav-user-info { text-align: left; }
.nav-user-name { font-size: 14px; font-weight: 600; }
.nav-user-email { font-size: 11px; color: var(--text-muted); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 1024px) {
  .nav { padding: 0 24px; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
    z-index: 999;
  }
  .nav-links.active { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border-subtle); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 16px 0; }
  .nav-toggle { display: flex; }
  .nav-balance { display: none; }
  .nav-user-info { display: none; }
}

@media (max-width: 480px) {
  .nav { padding: 0 16px; }
  .nav-avatar { width: 36px; height: 36px; font-size: 14px; }
  .logo-icon { width: 36px; height: 36px; font-size: 18px; }
  .logo-text { font-size: 20px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 18px 36px; font-size: 16px; }

.btn-primary {
  background: var(--gradient-gold);
  color: var(--bg-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
}

.btn-secondary:hover { background: rgba(212, 168, 83, 0.1); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.btn-success { background: var(--accent-emerald); color: white; }
.btn-success:hover { background: var(--accent-emerald-dark); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

@media (max-width: 480px) {
  .btn { padding: 12px 20px; font-size: 13px; }
  .btn-lg { padding: 14px 24px; font-size: 14px; }
  .btn-sm { padding: 8px 14px; font-size: 12px; }
}

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

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

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

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

.form-input-icon { position: relative; }
.form-input-icon .form-input { padding-left: 48px; }
.form-input-icon svg,
.form-input-icon .icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 20px;
  height: 20px;
}

.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.form-error { font-size: 12px; color: var(--accent-red); margin-top: 8px; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394A3B8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.form-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-gold);
  cursor: pointer;
}

.form-check-label {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all 0.4s ease;
}

.card:hover { border-color: var(--border-gold); }
.card-elevated { box-shadow: var(--shadow-card); }
.card-interactive:hover { transform: translateY(-8px); box-shadow: var(--shadow-glow); }
.card-header { padding: 24px; border-bottom: 1px solid var(--border-subtle); }
.card-body { padding: 24px; }
.card-footer { padding: 20px 24px; border-top: 1px solid var(--border-subtle); background: var(--bg-elevated); }

/* Property Cards */
.property-card {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: all 0.4s ease;
  cursor: pointer;
  display: block;
}

.property-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-glow);
}

.property-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.property-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(transparent, rgba(10, 13, 20, 0.9));
}

.property-status {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.property-status.open { background: var(--accent-emerald); color: white; }
.property-status.funded { background: var(--accent-gold); color: var(--bg-dark); }
.property-status.exited { background: var(--text-muted); color: white; }
.property-status.coming { background: var(--accent-blue); color: white; }

.property-content { padding: 24px; }

.property-location {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.property-title {
  font-size: 20px;
  margin-bottom: 20px;
  line-height: 1.3;
  color: var(--text-primary);
}

.property-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.property-metric {
  padding: 14px;
  background: var(--bg-elevated);
  border-radius: 10px;
}

.property-metric-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.property-metric-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
}

.property-metric-value.highlight { color: var(--accent-emerald); }

.property-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.property-funding { flex: 1; }

.property-funding-bar {
  height: 6px;
  background: var(--bg-dark);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.property-funding-fill {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: 3px;
  transition: width 1s ease;
}

.property-funding-text {
  font-size: 12px;
  color: var(--text-secondary);
}

.property-invest-btn {
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  color: var(--accent-gold);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 20px;
}

.property-invest-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
}

@media (max-width: 480px) {
  .property-content { padding: 20px; }
  .property-title { font-size: 18px; margin-bottom: 16px; }
  .property-metric { padding: 12px; }
  .property-metric-value { font-size: 16px; }
  .property-footer { flex-direction: column; gap: 16px; }
  .property-invest-btn { margin-left: 0; width: 100%; text-align: center; }
}

/* Sections */
.section { padding: var(--section-padding) 0; }
.section-sm { padding: 60px 0; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 24px;
}

.section-title { font-size: clamp(28px, 4vw, 36px); }
.section-subtitle { color: var(--text-secondary); margin-top: 8px; font-size: 16px; }

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-sm { padding: 40px 0; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .section-subtitle { font-size: 14px; }
}

@media (max-width: 480px) {
  .section { padding: 40px 0; }
  .section-header { margin-bottom: 32px; }
}

/* Page Header */
.page-header {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 60px;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.page-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.page-title { font-size: clamp(32px, 5vw, 48px); }
.page-subtitle { color: var(--text-secondary); margin-top: 8px; font-size: 18px; }

@media (max-width: 768px) {
  .page-header { padding-top: calc(var(--nav-height) + 40px); padding-bottom: 40px; }
  .page-header .container { flex-direction: column; align-items: flex-start; }
  .page-subtitle { font-size: 16px; }
}

@media (max-width: 480px) {
  .page-header { padding-top: calc(var(--nav-height) + 24px); padding-bottom: 24px; }
  .page-subtitle { font-size: 14px; }
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--text-secondary); transition: color 0.3s ease; }
.breadcrumb a:hover { color: var(--accent-gold); }
.breadcrumb .separator { color: var(--text-muted); }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

.stat-card {
  padding: 28px;
  background: var(--bg-card);
  border-radius: var(--card-radius);
  border: 1px solid var(--border-subtle);
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: rgba(212, 168, 83, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 4px;
}

.stat-label { font-size: 14px; color: var(--text-muted); }

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.stat-change.positive { background: rgba(16, 185, 129, 0.1); color: var(--accent-emerald); }
.stat-change.negative { background: rgba(239, 68, 68, 0.1); color: var(--accent-red); }

/* Tables */
.table-wrapper { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }

.table th {
  text-align: left;
  padding: 16px 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.table td {
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.table tbody tr { transition: background 0.3s ease; }
.table tbody tr:hover { background: var(--bg-elevated); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--accent-emerald); }
.badge-warning { background: rgba(212, 168, 83, 0.1); color: var(--accent-gold); }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: var(--accent-red); }
.badge-info { background: rgba(59, 130, 246, 0.1); color: var(--accent-blue); }
.badge-neutral { background: var(--bg-elevated); color: var(--text-secondary); }

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--bg-elevated);
  border-radius: 12px;
  width: fit-content;
}

.tab {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background: transparent;
}

.tab:hover { color: var(--text-primary); }

.tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
  .tabs { width: 100%; }
  .tab { padding: 10px 16px; font-size: 13px; flex: 1; text-align: center; }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
}

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

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title { font-size: 22px; }

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover { background: var(--bg-dark); color: var(--text-primary); }

.modal-body { padding: 24px; }

.modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

@media (max-width: 600px) {
  .modal-overlay { padding: 16px; }
  .modal { border-radius: 16px; }
  .modal-header { padding: 20px; }
  .modal-title { font-size: 18px; }
  .modal-body { padding: 20px; }
  .modal-footer { padding: 16px 20px; flex-direction: column; }
  .modal-footer .btn { width: 100%; }
}

/* Footer */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 60px;
}

@media (max-width: 1024px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; } }
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding: 48px 0 32px; margin-top: 48px; }
  .footer-brand { max-width: 100%; }
}

@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom p { font-size: 12px; }
}

.footer-brand { max-width: 300px; }
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand p { font-size: 14px; line-height: 1.7; }

.footer-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-secondary); font-size: 14px; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--accent-gold); }

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p { font-size: 13px; }

.footer-social { display: flex; gap: 16px; }

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.footer-social a:hover { background: var(--accent-gold); color: var(--bg-dark); }

/* Utilities */
.text-gold { color: var(--accent-gold); }
.text-emerald { color: var(--accent-emerald); }
.text-red { color: var(--accent-red); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

.bg-elevated { background: var(--bg-elevated); }
.bg-card { background: var(--bg-card); }

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

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

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

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

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

.hidden { display: none; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.animate-fadeIn { animation: fadeIn 0.6s ease forwards; }
.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
.animate-fadeInDown { animation: fadeInDown 0.6s ease forwards; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
