* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; background: #F8FAFC; color: #0F172A; display: flex; min-height: 100vh; -webkit-font-smoothing: antialiased; }
:root { --red: #B91C1C; --navy: #0F172A; --navy2: #1E293B; --gray: #64748B; --lgray: #E2E8F0; --bg: #F8FAFC; --green: #15803D; --blue: #2563EB; --sw: 240px; --r: 6px; --r2: 12px; }
a { text-decoration: none; color: inherit; }

/* LOGIN */
.lw { min-height: 100vh; width: 100%; background: linear-gradient(135deg, #0F172A, #1e2d40); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lb { background: #fff; border-radius: 18px; padding: 36px 32px; width: 100%; max-width: 380px; box-shadow: 0 40px 100px rgba(0,0,0,.3); }
.lb-logo { text-align: center; margin-bottom: 24px; }
.lb-logo img { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; object-fit: cover; border: 3px solid #E2E8F0; }
.lb-name { font-size: 20px; font-weight: 800; color: #0F172A; }
.lb-name span { color: #B91C1C; }
.lb-sub { font-size: 11px; color: #64748B; margin-top: 3px; }
.lg { margin-bottom: 13px; }
.lg label { display: block; font-size: 10px; font-weight: 700; color: #64748B; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.lg input { width: 100%; padding: 11px 13px; border: 1.5px solid #E2E8F0; border-radius: 6px; font-size: 13px; background: #F8FAFC; transition: .2s; }
.lg input:focus { outline: none; border-color: #B91C1C; box-shadow: 0 0 0 3px rgba(185,28,28,.1); background: #fff; }
.l-btn { width: 100%; padding: 12px; background: #B91C1C; color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 700; cursor: pointer; transition: .2s; margin-top: 4px; }
.l-btn:hover { background: #991B1B; transform: translateY(-1px); }
.l-hint { font-size: 11px; color: #64748B; text-align: center; margin-top: 11px; line-height: 1.6; }
.l-err { background: #FEE2E2; border: 1px solid #FCA5A5; color: #B91C1C; border-radius: 6px; padding: 9px 12px; font-size: 12px; margin-bottom: 12px; display: none; }

/* SIDEBAR */
.sb { width: var(--sw); background: #0F172A; min-height: 100vh; position: fixed; top: 0; left: 0; display: flex; flex-direction: column; z-index: 100; overflow-y: auto; }
.sb-logo { padding: 18px 14px; border-bottom: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; gap: 9px; }
.sb-logo img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.2); flex-shrink: 0; }
.sb-logo-name { font-size: 15px; font-weight: 800; color: #fff; }
.sb-logo-name span { color: #FCA5A5; }
.sb-tag { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: rgba(185,28,28,.25); color: #FCA5A5; padding: 2px 7px; border-radius: 10px; }
.sb-nav { flex: 1; padding: 12px 8px; }
.sb-sec { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.25); padding: 12px 10px 5px; }
.sb-link { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 6px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.55); cursor: pointer; transition: .2s; border: none; background: none; width: 100%; text-align: left; margin-bottom: 1px; }
.sb-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.sb-link.active { background: rgba(185,28,28,.2); color: #FCA5A5; }
.sb-ico { font-size: 14px; width: 16px; text-align: center; flex-shrink: 0; }
.sb-foot { padding: 12px 8px; border-top: 1px solid rgba(255,255,255,.06); }

/* MAIN */
.adm { margin-left: var(--sw); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.topb { background: #fff; border-bottom: 1px solid #E2E8F0; height: 58px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.topb-title { font-size: 16px; font-weight: 700; color: #0F172A; }
.topb-r { display: flex; align-items: center; gap: 9px; }
.topb-av { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; }
.topb-av img { width: 100%; height: 100%; object-fit: cover; }
.topb-name { font-size: 12px; color: #64748B; font-weight: 500; }
.adm-content { padding: 22px; flex: 1; }
.panel { display: none; } .panel.active { display: block; }

/* STATS */
.srow { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 22px; }
.sc { background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 18px; transition: .2s; }
.sc:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); transform: translateY(-2px); }
.sc-l { font-size: 10px; font-weight: 700; color: #64748B; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.sc-v { font-size: 28px; font-weight: 800; line-height: 1; }
.sc-s { font-size: 10px; color: #64748B; margin-top: 4px; }
.c-red { color: #B91C1C; } .c-navy { color: #0F172A; } .c-green { color: #15803D; } .c-blue { color: #2563EB; }

/* CARDS */
.ac { background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.ac-h { padding: 14px 18px; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: space-between; }
.ac-t { font-size: 13px; font-weight: 700; color: #0F172A; }
.ac-b { padding: 18px; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* TABLE */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 9px; font-weight: 700; color: #64748B; text-transform: uppercase; letter-spacing: .5px; padding: 10px 12px; background: #F8FAFC; border-bottom: 1px solid #E2E8F0; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid #f1f5f9; font-size: 12px; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: #fafbfc; }
.tbl-s { overflow-x: auto; }

/* BADGES */
.bdg { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.bd-disponible { background: #DCFCE7; color: #15803D; } .bd-reserve { background: #FEF9C3; color: #854D0E; } .bd-vendu { background: #FEE2E2; color: #991B1B; }
.bd-done { background: #DCFCE7; color: #15803D; } .bd-active { background: #EFF6FF; color: #2563EB; } .bd-pending { background: #F8FAFC; color: #64748B; }

/* BUTTONS */
.ab { display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1.5px solid transparent; transition: .2s; text-decoration: none; }
.ab-red { background: #B91C1C; color: #fff; border-color: #B91C1C; } .ab-red:hover { background: #991B1B; }
.ab-navy { background: #0F172A; color: #fff; } .ab-navy:hover { opacity: .9; }
.ab-ghost { background: transparent; border-color: #E2E8F0; color: #64748B; } .ab-ghost:hover { background: #F8FAFC; color: #0F172A; }
.ab-danger { background: #FEE2E2; color: #B91C1C; border-color: #FCA5A5; }
.ab-sm { padding: 5px 9px; font-size: 11px; }

/* FORMS */
.fg { margin-bottom: 12px; }
.fg label { display: block; font-size: 9px; font-weight: 700; color: #64748B; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.fg input, .fg select, .fg textarea { width: 100%; padding: 9px 11px; border: 1.5px solid #E2E8F0; border-radius: 6px; font-size: 12px; background: #F8FAFC; color: #0F172A; transition: .2s; font-family: inherit; }
.fg input:focus, .fg select:focus, .fg textarea:focus { outline: none; border-color: #B91C1C; box-shadow: 0 0 0 3px rgba(185,28,28,.08); background: #fff; }
.fg textarea { resize: vertical; min-height: 80px; }
.fg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.fg3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 11px; }

/* MODALS */
.aov { position: fixed; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(5px); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: .2s; }
.aov.open { opacity: 1; pointer-events: all; }
.amdt { background: #fff; border-radius: 12px; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; transform: scale(.96) translateY(12px); transition: .2s; box-shadow: 0 40px 100px rgba(0,0,0,.2); }
.aov.open .amdt { transform: scale(1) translateY(0); }
.amdt-h { padding: 18px 20px; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: space-between; }
.amdt-t { font-size: 15px; font-weight: 700; color: #0F172A; }
.amdt-c { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #E2E8F0; background: #fff; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.amdt-c:hover { background: #F8FAFC; }
.amdt-b { padding: 18px 20px; }
.amdt-f { padding: 14px 20px; border-top: 1px solid #f1f5f9; display: flex; justify-content: flex-end; gap: 8px; }

/* PROGRESS */
.prw { background: #E2E8F0; border-radius: 3px; height: 4px; overflow: hidden; }
.prf { height: 100%; background: #B91C1C; border-radius: 3px; transition: width .5s ease; }

/* STEPS */
.stl { display: flex; flex-direction: column; gap: 8px; }
.sti { border: 1.5px solid #E2E8F0; border-radius: 12px; padding: 11px 13px; display: flex; align-items: center; gap: 10px; transition: .2s; }
.sti.done { border-color: #86EFAC; background: #F0FDF4; } .sti.active { border-color: #2563EB; background: #EFF6FF; } .sti.pending { opacity: .5; }
.st-dot { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.st-dot.done { background: #15803D; color: #fff; } .st-dot.active { background: #2563EB; color: #fff; } .st-dot.pending { background: #E2E8F0; color: #64748B; }
.st-info { flex: 1; }
.st-t { font-size: 12px; font-weight: 700; color: #0F172A; }
.st-d { font-size: 11px; color: #64748B; margin-top: 1px; }

/* MISC */
.bk { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #B91C1C; cursor: pointer; margin-bottom: 14px; font-weight: 500; border: none; background: none; padding: 0; }
.bk:hover { text-decoration: underline; }
.aempty { text-align: center; padding: 40px; color: #64748B; font-size: 12px; }
.sr { display: flex; gap: 9px; margin-bottom: 14px; align-items: center; flex-wrap: wrap; }
.sr input { padding: 8px 11px; border: 1.5px solid #E2E8F0; border-radius: 6px; font-size: 12px; width: 190px; transition: .2s; font-family: inherit; }
.sr input:focus { outline: none; border-color: #B91C1C; }
.atst { position: fixed; bottom: 18px; right: 18px; background: #0F172A; color: #fff; padding: 11px 15px; border-radius: 6px; font-size: 12px; font-weight: 600; z-index: 9999; transform: translateY(70px); opacity: 0; transition: .2s; max-width: 250px; box-shadow: 0 8px 28px rgba(0,0,0,.2); border-left: 4px solid #B91C1C; }
.atst.show { transform: translateY(0); opacity: 1; }
.atst.ok { border-left-color: #15803D; } .atst.err { border-left-color: #B91C1C; }
.info-banner { background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; display: flex; align-items: flex-start; gap: 12px; }
.info-banner-title { font-size: 13px; font-weight: 700; color: #92400E; margin-bottom: 4px; }
.info-banner-text { font-size: 12px; color: #78350F; line-height: 1.6; }
code { background: #FEF3C7; padding: 1px 5px; border-radius: 3px; font-size: 11px; }
@media(max-width:1024px) { .srow { grid-template-columns: 1fr 1fr; } }