/* Base Design Tokens */
:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --secondary: #0ea5e9;
  --background: #ffffff;
  --surface: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --accent: #f59e0b;
  --success: #10b981;
  --error: #ef4444;
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.5;
}

#root { min-height: 100vh; }

.premium-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

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

/* Specific component styles... */
.registration-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  background: radial-gradient(circle at top right, #eef2ff, #ffffff);
}

.registration-card { max-width: 600px; width: 100%; }

.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.input-grid-triple { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.product-selection-container { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; text-align: center; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-top: 3rem; }

.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: left;
  transition: transform 0.3s;
  position: relative;
}

.product-card.highlight { border-color: var(--primary); border-width: 2px; }
.product-badge { position: absolute; top: 1rem; right: 1rem; background: var(--accent); color: white; padding: 0.25rem 0.75rem; border-radius: 99px; font-size: 0.7rem; font-weight: 700; }

.product-price { margin: 1.5rem 0; }
.product-price .amount { font-size: 2.5rem; font-weight: 700; }
.product-price .period { color: var(--text-muted); font-size: 1rem; }

.signature-container { display: flex; flex-direction: column; align-items: center; gap: 2rem; padding: 4rem 2rem; }
.canvas-wrapper { border: 2px dashed var(--border); border-radius: var(--radius-md); background: white; width: 600px; max-width: 100%; }

/* Admin Panel */
.admin-layout { display: flex; min-height: 100vh; background: #f1f5f9; }
.admin-sidebar { width: 280px; background: #0f172a; color: white; padding: 2rem; }
.admin-main { flex: 1; padding: 2rem; }
.stats-header { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.stat-box { background: white; padding: 1.5rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.stat-box h4 { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.stat-box p { font-size: 1.75rem; font-weight: 700; color: var(--primary); }
