* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: #f5f5f4; color: #111827; }
a { color: inherit; }

.auth-page { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 16px; }
.auth-card { width: 100%; max-width: 360px; background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; padding: 32px; }
.auth-card h1 { font-size: 20px; margin: 0 0 20px; }
.auth-card label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 4px; }
.auth-card input { width: 100%; padding: 9px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; }
.auth-card button { margin-top: 18px; width: 100%; padding: 10px; border: 0; border-radius: 8px; background: #111827; color: #fff; font-weight: 600; cursor: pointer; }
.muted { color: #6b7280; font-size: 13px; margin-top: 16px; text-align: center; }
.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.ok { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 16px; }

.dash { display: flex; min-height: 100vh; }
.sidebar { width: 220px; flex-shrink: 0; background: #fff; border-right: 1px solid #e5e5e5; padding: 20px; }
.sidebar .brand { font-weight: 700; margin-bottom: 24px; padding: 0 8px; }
.sidebar nav a { display: block; padding: 8px; border-radius: 8px; font-size: 14px; text-decoration: none; margin-bottom: 4px; }
.sidebar nav a:hover, .sidebar nav a.active { background: #f3f4f6; }
.content { flex: 1; padding: 32px; }
.content-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.content-header h1 { font-size: 22px; margin: 0; }

button, .content-header button { padding: 8px 16px; border: 0; border-radius: 8px; background: #111827; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
button:hover { background: #1f2937; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.site-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; padding: 18px; }
.site-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.site-actions { margin-top: 12px; }
.small { font-size: 12px; }

.badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-gray { background: #f3f4f6; color: #4b5563; }

.empty { border: 1px dashed #d4d4d4; border-radius: 12px; padding: 60px; text-align: center; color: #6b7280; }
.empty button { margin-top: 12px; }

.panel { background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; padding: 20px; margin-bottom: 20px; max-width: 560px; }
.panel h2 { font-size: 16px; margin: 0 0 10px; }
.panel label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 4px; }
.panel input, .panel select { width: 100%; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; }

.domain-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.dns-instructions { background: #fafafa; border-radius: 8px; padding: 12px 14px; font-size: 13px; margin-bottom: 16px; }
.dns-table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.dns-table th, .dns-table td { text-align: left; padding: 4px 8px; border-bottom: 1px solid #eee; font-size: 13px; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); align-items: center; justify-content: center; }
.modal { width: 100%; max-width: 380px; background: #fff; border-radius: 12px; padding: 24px; }
.modal h2 { font-size: 18px; margin: 0 0 12px; }
.modal label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 4px; }
.modal input { width: 100%; padding: 9px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; }
.slug-row { display: flex; align-items: center; gap: 6px; }
.slug-row input { flex: 1; }
.slug-row span { color: #6b7280; font-size: 13px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.modal-actions button:first-child { background: #fff; color: #111827; border: 1px solid #d1d5db; }
