@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --bg4: #222222;
  --gold: #c9a84c;
  --gold2: #e8c97a;
  --gold3: #7a5c1e;
  --white: #f5f0e8;
  --gray: #888;
  --gray2: #555;
  --red: #c0392b;
  --green: #27ae60;
  --blue: #2980b9;
  --border: rgba(201, 168, 76, 0.15);
  --border2: rgba(201, 168, 76, 0.3);
  --radius: 12px;
  --radius2: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
  --bg: #f4f1eb;
  --bg2: #ffffff;
  --bg3: #faf7f2;
  --bg4: #ede9e0;
  --gold: #b8862a;
  --gold2: #9a6e1a;
  --gold3: #c9a84c;
  --white: #1a1a1a;
  --gray: #666;
  --gray2: #999;
  --border: rgba(184, 134, 42, 0.2);
  --border2: rgba(184, 134, 42, 0.4);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

/* Bouton theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border2);
  color: var(--gray);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: all .2s;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--gold); border-color: var(--gold); background: rgba(201, 168, 76, 0.08); }
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; background: var(--bg); color: var(--white); font-family: 'DM Sans', sans-serif; overflow: hidden; }
#app { display: flex; height: 100vh; }
.sidebar { width: 240px; min-width: 240px; background: var(--bg2); border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }
.sidebar-logo { padding: 24px 20px; border-bottom: 1px solid var(--border); text-align: center; }
.sidebar-logo .scissors { font-size: 28px; margin-bottom: 6px; display: block; }
.sidebar-logo h1 { font-family: 'Playfair Display', serif; font-size: 14px; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; line-height: 1.4; }
.sidebar-logo small { font-size: 10px; color: var(--gray); letter-spacing: 3px; text-transform: uppercase; }
.nav { flex: 1; padding: 16px 0; overflow-y: auto; }
.nav-section { padding: 8px 16px 4px; font-size: 9px; color: var(--gray2); letter-spacing: 3px; text-transform: uppercase; font-weight: 600; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 20px; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--gray); transition: all .2s; border-left: 2px solid transparent; }
.nav-item:hover { color: var(--white); background: rgba(255, 255, 255, 0.03); }
.nav-item.active { color: var(--gold); border-left-color: var(--gold); background: rgba(201, 168, 76, 0.07); }
.nav-item .icon { width: 18px; text-align: center; font-size: 16px; }
.nav-badge { margin-left: auto; background: var(--gold); color: #000; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gold3); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 16px; color: var(--gold2); }
.sidebar-footer .user-name { font-size: 13px; font-weight: 600; color: var(--white); }
.sidebar-footer .user-role { font-size: 11px; color: var(--gray); }
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar { display: flex; align-items: center; padding: 0 28px; height: 60px; min-height: 60px; background: var(--bg2); border-bottom: 1px solid var(--border); gap: 12px; }
.topbar-title { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--white); flex: 1; }
.topbar-date { font-size: 12px; color: var(--gray); font-family: 'DM Mono', monospace; }
.btn-eye-kpi { background: none; border: none; color: var(--gray); cursor: pointer; font-size: 13px; padding: 0; transition: color .2s; line-height: 1; }
.btn-eye-kpi:hover { color: var(--gold); }
.btn-eye-kpi--card { position: absolute; bottom: 14px; right: 14px; }
.chart-label-group { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.kpi-amount-hidden { filter: blur(6px); user-select: none; }
.lang-picker { position: relative; }
.lang-current {
  border: 1px solid var(--border2);
  background: linear-gradient(180deg, #222 0%, #151515 100%);
  color: var(--white);
  border-radius: 10px;
  min-width: 126px;
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
}
.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 170px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 6px;
  z-index: 50;
  box-shadow: var(--shadow);
}
.lang-menu.open { display: block; }
.lang-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--white);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
}
.lang-option:hover { background: rgba(255, 255, 255, 0.06); }
.lang-option.active { background: rgba(201, 168, 76, 0.12); color: var(--gold2); }
.lang-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex: 0 0 auto;
}
.btn { padding: 9px 18px; border-radius: var(--radius2); cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; border: none; transition: all .2s; display: inline-flex; align-items: center; gap: 7px; }
.btn-gold { background: var(--gold); color: #0a0a0a; }
.btn-outline { background: transparent; border: 1px solid var(--border2); color: var(--gray); }
.btn-red { background: rgba(192, 57, 43, 0.15); border: 1px solid rgba(192, 57, 43, 0.3); color: #e74c3c; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.content { flex: 1; overflow-y: auto; padding: 24px 28px; }
.view { display: none; }
.view.active { display: block; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: relative; }
.kpi-label { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.kpi-value { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--white); }
.kpi-value span { font-size: 14px; color: var(--gold); }
.kpi-sub { font-size: 11px; color: var(--gray); margin-top: 6px; }
.kpi-sub-link { cursor: pointer; color: var(--gold); text-decoration: underline dotted; transition: opacity .15s; }
.kpi-sub-link:hover { opacity: .75; }
.kpi-icon { position: absolute; top: 18px; right: 18px; font-size: 28px; opacity: .15; }
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card-title { font-size: 12px; color: var(--gray); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.report-tabs { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.report-tab {
  border: 1px solid var(--border2);
  background: var(--bg3);
  color: var(--gray);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.report-tab.active { color: var(--gold); border-color: var(--gold); background: rgba(201, 168, 76, 0.08); }
.report-panel { display: none; }
.report-panel.active { display: block; }
#rpt-panel-tickets .card { overflow-x: auto; }
#rpt-panel-tickets .client-table { min-width: 860px; }
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bar { width: 100%; background: var(--gold3); border-radius: 4px 4px 0 0; min-height: 4px; }
.bar-label { font-size: 9px; color: var(--gray); }
.top-services { display: flex; flex-direction: column; gap: 10px; }
.service-row { display: flex; align-items: center; gap: 10px; }
.service-row-name { font-size: 13px; color: var(--white); flex: 1; }
.service-row-bar { flex: 2; height: 6px; background: var(--bg4); border-radius: 3px; overflow: hidden; }
.service-row-fill { height: 100%; background: linear-gradient(90deg, var(--gold3), var(--gold)); border-radius: 3px; }
.service-row-count { font-size: 12px; color: var(--gold); font-family: 'DM Mono', monospace; width: 30px; text-align: right; }
.ticket-layout { display: grid; grid-template-columns: 1fr 380px; gap: 20px; height: calc(100vh - 108px); }
.ticket-list-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; align-content: start; overflow-y: auto; }
.ticket-composer { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; position: sticky; top: 0; }
.composer-header { padding: 16px 20px; border-bottom: 1px solid var(--border); font-family: 'Playfair Display', serif; font-size: 16px; display: flex; align-items: center; justify-content: space-between; }
.composer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.composer-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
.service-select-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.service-chip { padding: 10px 12px; background: var(--bg4); border: 1px solid var(--border); border-radius: var(--radius2); cursor: pointer; }
.service-chip.selected { border-color: var(--gold); background: rgba(201, 168, 76, 0.1); }
.service-chip .s-name { font-size: 12px; font-weight: 600; color: var(--white); display: flex; align-items: center; gap: 8px; }
.service-chip .s-price { font-size: 11px; color: var(--gold); font-family: 'DM Mono', monospace; }
.service-chip .s-dur { font-size: 10px; color: var(--gray); }
.service-thumb { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; border: 1px solid var(--border2); }
.service-thumb-fallback { width: 26px; height: 26px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg3); }
.ticket-items { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.ticket-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--bg4); border-radius: var(--radius2); }
.ticket-item-name { flex: 1; font-size: 13px; }
.ticket-item-price { font-size: 13px; color: var(--gold); font-family: 'DM Mono', monospace; }
.ticket-item-remove { cursor: pointer; color: var(--gray2); font-size: 16px; line-height: 1; }
.ticket-thumb { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; border: 1px solid var(--border2); }
.total-line { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.total-line.grand { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 4px; }
.total-line .label { font-size: 13px; color: var(--gray); }
.total-line .value { font-family: 'DM Mono', monospace; font-size: 14px; color: var(--gold); }
.total-line.grand .value { font-size: 22px; }
.form-row { margin-bottom: 12px; }
.form-label { font-size: 11px; color: var(--gray); margin-bottom: 5px; letter-spacing: 1px; text-transform: uppercase; display: block; }
.form-input, .form-select { width: 100%; padding: 9px 12px; background: var(--bg4); border: 1px solid var(--border); border-radius: var(--radius2); color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 13px; outline: none; }
.ticket-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; cursor: pointer; aspect-ratio: 1 / 1; }
.ticket-card.selected-pos { border-color: var(--gold); background: rgba(201, 168, 76, 0.08); }
.ticket-num { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--gold); }
.ticket-info { flex: 1; }
.ticket-client { font-size: 14px; font-weight: 600; }
.ticket-meta { font-size: 11px; color: var(--gray); margin-top: 2px; }
.ticket-amount { font-family: 'DM Mono', monospace; font-size: 15px; color: var(--white); font-weight: 600; }
.status-badge { padding: 3px 10px; border-radius: 20px; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.status-termine { background: rgba(39, 174, 96, 0.15); color: #58d68d; }
.filter-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.type-admin-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.type-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 20px; background: var(--bg3); border: 1px solid var(--border); font-size: 12px; }
.service-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.service-card-img { height: 120px; background: var(--bg4); display: flex; align-items: center; justify-content: center; font-size: 48px; overflow: hidden; }
.service-cover { width: 100%; height: 100%; object-fit: cover; }
.lightbox-trigger { cursor: zoom-in; transition: opacity 0.15s; }
.lightbox-trigger:hover { opacity: 0.85; }

/* ── Image Lightbox ───────────────────────────────────────────────────────── */
#image-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.92); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; cursor: zoom-out; }
#image-lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-content { max-width: 90vw; max-height: 82vh; display: flex; align-items: center; justify-content: center; }
.lightbox-content img { max-width: 90vw; max-height: 82vh; object-fit: contain; border-radius: 8px; box-shadow: 0 8px 48px rgba(0,0,0,0.7); transform: scale(0.92); transition: transform 0.3s cubic-bezier(.34,1.56,.64,1); }
#image-lightbox.active .lightbox-content img { transform: scale(1); }
.lightbox-caption { margin-top: 14px; color: rgba(255,255,255,0.85); font-size: 14px; letter-spacing: 0.5px; text-align: center; max-width: 80vw; }
.lightbox-close { position: fixed; top: 16px; right: 20px; background: rgba(255,255,255,0.12); border: none; color: #fff; font-size: 22px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; z-index: 10000; }
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.service-card-body { padding: 16px; }
.service-card-name { font-family: 'Playfair Display', serif; font-size: 16px; margin-bottom: 4px; }
.service-card-desc { font-size: 12px; color: var(--gray); margin-bottom: 12px; line-height: 1.5; }
.service-card-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tag { padding: 3px 9px; border-radius: 20px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.tag-type { background: rgba(201, 168, 76, 0.12); color: var(--gold); border: 1px solid var(--border2); }
.tag-public { background: rgba(41, 128, 185, 0.12); color: #5dade2; border: 1px solid rgba(41, 128, 185, 0.25); }
.tag-active { background: rgba(39, 174, 96, 0.12); color: #58d68d; border: 1px solid rgba(39, 174, 96, 0.25); }
.tag-inactive { background: rgba(192, 57, 43, 0.12); color: #ec7063; border: 1px solid rgba(192, 57, 43, 0.25); }
.service-card-footer { display: flex; justify-content: space-between; align-items: center; }
.service-price { font-family: 'DM Mono', monospace; font-size: 18px; color: var(--gold); font-weight: 600; }
.service-dur { font-size: 11px; color: var(--gray); }
.client-table { width: 100%; border-collapse: collapse; }
.client-table th { text-align: left; padding: 10px 14px; font-size: 10px; color: var(--gray); text-transform: uppercase; letter-spacing: 2px; border-bottom: 1px solid var(--border); }
.client-table td { padding: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-size: 13px; }
.client-name { font-weight: 600; color: var(--white); }
.client-phone { font-family: 'DM Mono', monospace; color: var(--gray); font-size: 12px; }
.employee-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.employee-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.emp-avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--gold3); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 24px; color: var(--gold2); border: 2px solid var(--gold); }
.emp-name { font-family: 'Playfair Display', serif; font-size: 17px; margin-bottom: 4px; }
.emp-role { font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; }
.emp-stats { display: flex; justify-content: space-around; margin-bottom: 16px; }
.emp-stat-val { font-family: 'DM Mono', monospace; font-size: 16px; color: var(--white); font-weight: 600; }
.emp-stat-lbl { font-size: 10px; color: var(--gray); }
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.75); z-index: 1000; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg2); border: 1px solid var(--border2); border-radius: 16px; width: 90%; max-width: 560px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-family: 'Playfair Display', serif; font-size: 20px; }
.modal-close { cursor: pointer; color: var(--gray); font-size: 22px; line-height: 1; }
.modal-body { padding: 24px; overflow-y: auto; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.print-ticket { font-family: 'DM Mono', monospace; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; font-size: 13px; }
.print-ticket .pt-header { text-align: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px dashed var(--border2); }
.print-ticket .pt-salon { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--gold); }
.print-ticket .pt-num { font-size: 11px; color: var(--gray); margin-top: 4px; }
.print-ticket .pt-item { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; }
.print-ticket .pt-meta-label { color: var(--gray); font-size: 11px; }
.print-ticket .pt-meta-val { color: var(--white); font-size: 11px; text-align: right; }
.print-ticket .pt-total { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px dashed var(--border2); margin-top: 10px; font-size: 15px; }
.print-ticket .pt-total .label { color: var(--white); font-weight: 700; }
.print-ticket .pt-total .val { color: var(--gold); }
.print-ticket .pt-footer { text-align: center; margin-top: 20px; font-size: 11px; color: var(--gray); padding-top: 16px; border-top: 1px dashed var(--border2); }
.search-input { width: 100%; max-width: 360px; padding: 9px 16px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius2); color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 13px; outline: none; }
.text-gold { color: var(--gold); }
.text-gray { color: var(--gray); }
.text-mono { font-family: 'DM Mono', monospace; }
.divider { height: 1px; background: var(--border); margin: 12px 0; }
.empty-state { text-align: center; padding: 40px; color: var(--gray); }
.empty-state .icon { font-size: 40px; margin-bottom: 12px; display: block; opacity: 0.4; }
.notification { position: fixed; bottom: 24px; right: 24px; z-index: 2000; background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius2); padding: 14px 20px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); transform: translateY(80px); opacity: 0; transition: all .35s; }
.notification.show { transform: translateY(0); opacity: 1; }
#login-screen { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg); position: fixed; inset: 0; z-index: 9999; }
.login-box { background: var(--bg2); border: 1px solid var(--border2); border-radius: 20px; padding: 48px; width: 100%; max-width: 400px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5); }
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo .scissors { font-size: 40px; display: block; margin-bottom: 12px; }
.login-logo h2 { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--gold); }
.login-logo p { font-size: 12px; color: var(--gray); letter-spacing: 3px; text-transform: uppercase; margin-top: 4px; }
.login-error { color: #e74c3c; font-size: 12px; margin-top: 8px; display: none; }

@media (max-width: 1200px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .ticket-layout { grid-template-columns: 1fr 340px; }
}

@media (max-width: 1024px) {
  html, body { overflow: auto; }
  #app { height: auto; min-height: 100vh; flex-direction: column; }
  .sidebar { width: 100%; min-width: 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .sidebar-logo { padding: 12px 16px; }
  .sidebar-logo img { width: 56px !important; height: 56px !important; }
  .nav { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; }
  .nav-section { display: none; }
  .nav-item {
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-left: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
  }
  .nav-item.active { border-color: var(--gold); }
  .sidebar-footer { display: none; }
  .topbar { height: auto; min-height: 52px; padding: 10px 14px; }
  .topbar-title { font-size: 18px; }
  .content { padding: 14px; }
  .ticket-layout { grid-template-columns: 1fr; height: auto; }
  .ticket-list-panel { overflow: visible; }
  .ticket-composer { position: static; }
  .services-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .employee-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  #view-clients .card { overflow-x: auto; }
  .client-table { min-width: 760px; }
}

@media (max-width: 768px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .search-input { max-width: 100%; }
  .filter-bar .form-select,
  .filter-bar .btn { width: 100%; }
  .ticket-list-panel { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .ticket-card { padding: 10px; }
  .service-card-img { height: 110px; }
  .modal { width: 95%; max-height: 92vh; }
  .modal-header { padding: 14px 16px; }
  .modal-body { padding: 14px 16px; }
  .modal-footer { padding: 12px 16px; }
  .login-box { max-width: 92vw; padding: 28px 20px; }
  .notification { left: 12px; right: 12px; bottom: 12px; }
  .lang-current { min-width: 106px; padding: 0 10px; font-size: 12px; }
}

@media (max-width: 480px) {
  .topbar-title { font-size: 16px; }
  .topbar-date { display: none; }
  .content { padding: 12px; }
  .ticket-list-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .service-row-name { font-size: 12px; }
  .service-row-count { font-size: 11px; }
}

@media print {
  @page {
    size: 80mm auto;
    margin: 6mm;
  }

  html, body {
    background: #fff !important;
    color: #000 !important;
    overflow: visible !important;
  }

  body * {
    visibility: hidden !important;
  }

  #print-content,
  #print-content * {
    visibility: visible !important;
  }

  #print-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  .print-ticket {
    background: #fff !important;
    color: #000 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100%;
    margin: 0 auto;
    font-size: 11px !important;
    line-height: 1.35;
  }

  .print-ticket .pt-salon,
  .print-ticket .pt-total .val {
    color: #000 !important;
  }

  .print-ticket .pt-header,
  .print-ticket .pt-total,
  .print-ticket .pt-footer {
    border-color: #000 !important;
  }

  .status-badge,
  .modal-header,
  .modal-footer,
  .modal-close,
  .btn,
  .sidebar,
  .topbar,
  .notification {
    display: none !important;
  }
}

@keyframes fa-spin { 0%{transform:rotate(0deg)} 100%{transform:rotate(360deg)} }
.fa-spin { animation: fa-spin .7s linear infinite; display:inline-block; }
.login-error { transition: opacity .2s; }
#login-user.input-error, #login-pass.input-error { border-color: #e74c3c !important; }

/* ── Logo arrondi ─────────────────────────────────────────────────────────── */
.app-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px var(--gold3), 0 6px 24px rgba(201, 168, 76, 0.25);
  display: block;
  margin: 0 auto 10px;
  transition: box-shadow .3s, transform .3s;
}
.app-logo:hover {
  box-shadow: 0 0 0 4px var(--gold), 0 8px 32px rgba(201, 168, 76, 0.4);
  transform: scale(1.04);
}

/* Login : logo un peu plus grand */
.login-logo .app-logo {
  width: 110px;
  height: 110px;
  margin-bottom: 16px;
}

/* Sidebar mobile : logo plus petit */
@media (max-width: 1024px) {
  .sidebar-logo .app-logo {
    width: 56px !important;
    height: 56px !important;
  }
}
