:root {
    --bg: #0f172a;
    --surface: #1e293b;
    --border: #334155;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --radius: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; background: #f8fafc; color: #0f172a; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: var(--bg); color: var(--text); padding: 1.5rem 1rem; display: flex; flex-direction: column; }
.sidebar .brand { font-weight: 700; font-size: 1.1rem; margin-bottom: 2rem; }
.sidebar nav { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.sidebar nav a { color: var(--muted); text-decoration: none; padding: .6rem .75rem; border-radius: 8px; }
.sidebar nav a:hover { background: var(--surface); color: var(--text); }
.sidebar-footer { margin-top: auto; font-size: .85rem; }
.main-content { flex: 1; padding: 2rem; overflow: auto; }
.btn { display: inline-block; padding: .55rem 1rem; border-radius: 8px; border: none; cursor: pointer; text-decoration: none; font-size: .9rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: #e2e8f0; color: #0f172a; }
.btn-sm { padding: .35rem .65rem; font-size: .8rem; }
.link-btn { background: none; border: none; color: var(--muted); cursor: pointer; padding: 0; }
.page-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 1.25rem; }
.stat-value { display: block; font-size: 2rem; font-weight: 700; }
.stat-label { color: var(--muted); font-size: .85rem; }
.panel { background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
th, td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
.badge { background: #dbeafe; color: #1d4ed8; padding: .2rem .5rem; border-radius: 4px; font-size: .75rem; }
.alert { background: #fef3c7; padding: .75rem; border-radius: 8px; margin-bottom: 1rem; }
.alert-error { background: #fee2e2; color: #991b1b; }
.auth-card { max-width: 420px; margin: 4rem auto; background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.auth-card label { display: block; margin-bottom: 1rem; }
.auth-card input { width: 100%; padding: .6rem; margin-top: .25rem; border: 1px solid #cbd5e1; border-radius: 6px; }
form label { display: block; margin-bottom: .75rem; }
form input, form select { padding: .5rem; border: 1px solid #cbd5e1; border-radius: 6px; margin-top: .25rem; }
.floor-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.floor-item { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: .75rem 1rem; border-radius: 8px; border: 1px solid #e2e8f0; }
.editor-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 1rem; }
.editor-body { display: grid; grid-template-columns: 200px 1fr 240px; gap: 1rem; height: calc(100vh - 180px); }
.editor-map { background: #e2e8f0; border-radius: var(--radius); min-height: 400px; }
.editor-tools, .editor-props { background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 1rem; overflow: auto; }
.tool-btn { display: block; width: 100%; margin-bottom: .5rem; padding: .5rem; border: 1px solid #e2e8f0; background: #fff; border-radius: 6px; cursor: pointer; }
.tool-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.plan-card { background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 1.25rem; }
.price { font-size: 1.5rem; font-weight: 700; }
