* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "Segoe UI", Arial, sans-serif; background: #f8fafc; color: #1e293b; line-height: 1.5; }

.navbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 32px; background: #0f172a; }
.logo { color: #fff; font-weight: 700; font-size: 20px; text-decoration: none; }
.nav-links a { color: #cbd5e1; text-decoration: none; margin-left: 20px; font-size: 14px; }
.nav-links a:hover { color: #fff; }
.btn-nav { background: #d97706; color: #fff !important; padding: 8px 16px; border-radius: 6px; }

.container { max-width: 900px; margin: 0 auto; padding: 40px 20px; }

.flash-messages { margin-bottom: 20px; }
.flash { background: #fef3c7; border: 1px solid #d97706; color: #92400e; padding: 12px 16px; border-radius: 6px; margin-bottom: 8px; }

.hero { text-align: center; padding: 60px 20px; }
.hero h1 { font-size: 36px; margin-bottom: 16px; }
.hero .subtitle { font-size: 18px; color: #64748b; max-width: 600px; margin: 0 auto 28px; }
.hint { color: #94a3b8; font-size: 13px; margin-top: 10px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }
.feature { background: #fff; padding: 24px; border-radius: 10px; border: 1px solid #e2e8f0; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: #64748b; font-size: 14px; }

.btn-primary { background: #d97706; color: #fff; border: none; padding: 12px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 15px; text-decoration: none; display: inline-block; }
.btn-secondary { background: #e2e8f0; color: #64748b; border: none; padding: 12px 24px; border-radius: 8px; font-weight: 600; width: 100%; cursor: not-allowed; }
.btn-small { background: #0f172a; color: #fff; border: none; padding: 6px 14px; border-radius: 6px; font-size: 13px; cursor: pointer; text-decoration: none; }

.auth-card { max-width: 400px; margin: 40px auto; background: #fff; padding: 32px; border-radius: 12px; border: 1px solid #e2e8f0; }
.auth-card h2 { margin-bottom: 20px; }
.auth-card label { display: block; font-size: 13px; color: #64748b; margin-top: 14px; }
.auth-card input { width: 100%; padding: 10px; margin-top: 5px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; }
.auth-card button { margin-top: 20px; width: 100%; }
.auth-switch { margin-top: 16px; font-size: 13px; color: #64748b; text-align: center; }

.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.plan-badge { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.plan-free { background: #e2e8f0; color: #475569; }
.plan-pro { background: #fef3c7; color: #92400e; }

.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.card h3 { margin-bottom: 12px; font-size: 15px; }

.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 150px; padding: 9px; border: 1px solid #cbd5e1; border-radius: 6px; }

.client-list { display: grid; gap: 12px; }
.client-card { display: block; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px 20px; text-decoration: none; color: inherit; }
.client-card:hover { border-color: #d97706; }
.client-card-name { font-weight: 600; }
.client-card-progress { font-size: 13px; color: #64748b; margin-top: 4px; }

.empty-state { color: #94a3b8; font-size: 14px; }

.back-link { display: inline-block; margin-bottom: 16px; color: #64748b; text-decoration: none; font-size: 14px; }

.portal-link-input { width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 6px; font-family: monospace; font-size: 13px; margin-top: 8px; }

.doc-row, .file-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.doc-row:last-child, .file-row:last-child { border-bottom: none; }
.doc-row.fulfilled span { color: #16a34a; }
.doc-row.pending span { color: #1e293b; }

.upload-form { display: flex; gap: 8px; align-items: center; }
.upload-form input[type=file] { font-size: 12px; }

.portal-page { max-width: 600px; margin: 0 auto; }

.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.price-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 28px; text-align: center; }
.price-card.featured { border: 2px solid #d97706; }
.price-card h3 { font-size: 18px; margin-bottom: 12px; }
.price-card .price { font-size: 32px; font-weight: 700; margin-bottom: 20px; }
.price-card .price span { font-size: 14px; font-weight: 400; color: #64748b; }
.price-card ul { list-style: none; text-align: left; margin-bottom: 24px; }
.price-card ul li { padding: 6px 0; color: #475569; font-size: 14px; }
.price-card ul li::before { content: "✓ "; color: #16a34a; font-weight: 700; }

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