/* =====================================================
   NOCIBE — Design System v3
   Lexend | #075fc7 | #2c3e50 | #FF7F1A
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800;900&display=swap');

/* ── Variables ─────────────────────────────────────── */
:root {
  --brand:        #075fc7;
  --brand-dark:   #062b8f;
  --brand-light:  #dff4ff;
  --brand-mid:    #1a6fd4;
  --accent:       #2c3e50;
  --accent-dark:  #1a2636;
  --accent-soft:  #5a6b78;
  --orange:       #FF7F1A;
  --orange-soft:  #FFB84D;
  --dark:         #2c3e50;
  --dark-2:       #1a2636;
  --dark-3:       #354a5e;
  --surface:      #ffffff;
  --surface-2:    #f5f5f5;
  --surface-3:    #eef1f8;
  --bg:           #f5f5f5;
  --border:       rgba(100, 116, 139, 0.15);
  --border-dark:  rgba(100, 116, 139, 0.25);
  --text:         #2c3e50;
  --text-soft:    #64748b;
  --text-muted:   #94a3b8;
  --danger:       #ef4444;
  --danger-light: #fef2f2;
  --success:      #10b981;
  --success-light:#ecfdf5;
  --warning:      #FF7F1A;
  --warning-light:#fff4e8;
  --info:         #0b4ea2;
  --info-light:   #eff6ff;
  --footer-bg:    linear-gradient(135deg, #03152e 0%, #063b9f 48%, #00aeef 100%);
  --footer-accent:#00aeef;
  --radius-xs:    4px;
  --radius-sm:    12px;
  --radius:       16px;
  --radius-lg:    22px;
  --radius-xl:    30px;
  --shadow-sm:    0 4px 12px rgba(0,0,0,.05);
  --shadow-md:    0 12px 28px rgba(0,0,0,.08);
  --shadow-lg:    0 24px 60px rgba(0,0,0,.10);
  --shadow-xl:    0 32px 80px rgba(0,0,0,.15);
  --font-head:    'Lexend', sans-serif;
  --font-body:    'Lexend', sans-serif;
  --font:         'Lexend', sans-serif;
  --site-max:     1200px;
  --sidebar-w:    264px;
  --topbar-h:     66px;
  --transition:   .22s cubic-bezier(.4,0,.2,1);
}

/* ══════════════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface-2);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, select, textarea, button { font-family: var(--font); }

/* ── Typography ──────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--dark);
}
.text-muted   { color: var(--text-muted); }
.text-soft    { color: var(--text-soft); }
.text-brand   { color: var(--brand); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fs-sm  { font-size: .85rem; }
.fs-xs  { font-size: .75rem; }
.text-center { text-align: center; }

/* ── Layout helpers ──────────────────────────────────── */
.site-container { max-width: var(--site-max); margin: 0 auto; padding: 0 28px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.w-100 { width: 100%; }
.flex-1 { flex: 1; }
.overflow-hidden { overflow: hidden; }
.mb-0{margin-bottom:0}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:32px}
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}
.p-0{padding:0}.px-3{padding-left:24px;padding-right:24px}.py-3{padding-top:24px;padding-bottom:24px}
.divider { height: 1px; background: var(--border); margin: 24px 0; }

/* ══════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-family: var(--font); font-weight: 600; font-size: .9rem;
  cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap; text-decoration: none; line-height: 1.4;
}
.btn i { font-size: .85em; flex-shrink: 0; }
.btn-brand  { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(7,95,199,.3); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-hero { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(4px); }
.btn-outline-hero:hover { background: rgba(255,255,255,.22); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-soft { background: rgba(7,95,199,.08); color: var(--brand); border-color: transparent; }
.btn-soft:hover { background: var(--brand-light); color: var(--brand); }
.btn-white { background: #fff; color: var(--brand); border-color: #fff; font-weight: 700; }
.btn-white:hover { background: var(--brand-light); border-color: var(--brand-light); color: var(--brand-dark); transform: translateY(-2px); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #059669; color: #fff; }
.btn-ghost { background: transparent; color: var(--text-soft); border-color: transparent; }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn-dark:hover { background: var(--dark-2); color: #fff; }
.btn-sm  { padding: 6px 14px; font-size: .82rem; border-radius: var(--radius-xs); }
.btn-lg  { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius); }
.btn-icon { padding: 9px; border-radius: var(--radius-sm); aspect-ratio: 1; justify-content: center; }
.btn-block { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 100px;
  font-size: .75rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}
.badge-warning   { background: var(--warning-light); color: #92400e; }
.badge-success   { background: var(--success-light); color: #065f46; }
.badge-danger    { background: var(--danger-light);  color: #991b1b; }
.badge-info      { background: var(--info-light);    color: #1e40af; }
.badge-primary   { background: var(--brand-light);   color: var(--brand-dark); }
.badge-accent    { background: #fffbeb; color: #92400e; }
.badge-secondary { background: var(--surface-3);     color: var(--text-soft); }

/* ══════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════ */
.card {
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 24px; }
.card-header {
  padding: 18px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-header h2, .card-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin: 0; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border); background: var(--surface-2); }

/* Stat cards */
.stat-card {
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border);
  padding: 24px; display: flex; align-items: center; gap: 18px;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 54px; height: 54px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.stat-icon.blue   { background: var(--brand-light); color: var(--brand); }
.stat-icon.gold   { background: var(--warning-light); color: var(--accent-dark); }
.stat-icon.green  { background: var(--success-light); color: var(--success); }
.stat-icon.red    { background: var(--danger-light); color: var(--danger); }
.stat-icon.purple { background: #f3e8ff; color: #7c3aed; }
.stat-value { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--dark); }
.stat-label { font-size: .82rem; color: var(--text-soft); margin-top: 3px; }
.stat-change { font-size: .78rem; font-weight: 600; margin-top: 4px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ══════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════ */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.form-label .required { color: var(--danger); margin-left: 3px; }
.form-control {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: .92rem; color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition); outline: none;
}
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(7,95,199,.12); }
.form-control::placeholder { color: var(--text-muted); }
.form-control:disabled { background: var(--surface-3); color: var(--text-muted); cursor: not-allowed; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint  { font-size: .78rem; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: .8rem; color: var(--danger); margin-top: 5px; display: flex; align-items: center; gap: 5px; }
.form-row   { display: grid; gap: 16px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ══════════════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead { background: var(--brand); color: #fff; }
thead th { padding: 13px 16px; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; text-align: left; white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--brand-light); }
tbody td { padding: 13px 16px; vertical-align: middle; }
.td-center  { text-align: center; }
.td-actions { display: flex; align-items: center; gap: 6px; }

/* ══════════════════════════════════════════════════════
   ALERTS
   ══════════════════════════════════════════════════════ */
.alert {
  padding: 13px 18px; border-radius: var(--radius-sm); font-size: .9rem;
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 20px; border: 1px solid transparent;
}
.alert i { flex-shrink: 0; margin-top: 2px; }
.alert-success { background: var(--success-light); color: #065f46; border-color: #a7f3d0; }
.alert-danger  { background: var(--danger-light);  color: #991b1b; border-color: #fecaca; }
.alert-warning { background: var(--warning-light); color: #92400e; border-color: #fde68a; }
.alert-info    { background: var(--info-light);    color: #1e40af; border-color: #bfdbfe; }

/* ══════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════ */
.pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); color: var(--text-soft);
  font-size: .88rem; font-weight: 600; transition: all var(--transition);
}
.page-link:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.page-link.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ══════════════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,22,40,.6);
  backdrop-filter: blur(4px); z-index: 999;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface); border-radius: var(--radius-lg); width: 100%; max-width: 560px;
  box-shadow: var(--shadow-xl); transform: translateY(20px); transition: transform var(--transition); overflow: hidden;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header { padding: 22px 26px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 1.15rem; font-weight: 700; }
.modal-close { background: var(--surface-3); border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-soft); transition: all var(--transition); }
.modal-close:hover { background: var(--danger-light); color: var(--danger); }
.modal-body   { padding: 24px 26px; }
.modal-footer { padding: 18px 26px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ══════════════════════════════════════════════════════
   MISC UI (timeline, tabs, progress, spinner)
   ══════════════════════════════════════════════════════ */
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.progress { height: 8px; background: var(--surface-3); border-radius: 100px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--brand); border-radius: 100px; transition: width .6s ease; }
.progress-bar.green { background: var(--success); }
.progress-bar.red   { background: var(--danger); }
.progress-bar.gold  { background: var(--accent); }

.timeline { display: flex; flex-direction: column; }
.timeline-item { display: flex; gap: 16px; }
.timeline-indicator { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.timeline-dot { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem; flex-shrink: 0; }
.timeline-dot.done    { background: var(--success); color: #fff; }
.timeline-dot.active  { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px rgba(7,95,199,.2); }
.timeline-dot.pending { background: var(--surface-3); color: var(--text-muted); border: 2px solid var(--border); }
.timeline-line { width: 2px; flex: 1; min-height: 24px; background: var(--border); margin: 4px 0; }
.timeline-line.done { background: var(--success); }
.timeline-content { padding-bottom: 24px; flex: 1; }
.timeline-title { font-weight: 600; font-size: .9rem; color: var(--dark); }
.timeline-date  { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-btn { padding: 10px 20px; background: transparent; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--text-soft); transition: all var(--transition); }
.tab-btn.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-btn:hover  { color: var(--brand); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i  { font-size: 3rem; color: var(--text-muted); margin-bottom: 16px; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--text-soft); }
.empty-state p  { color: var(--text-muted); font-size: .9rem; margin-bottom: 20px; }

/* ══════════════════════════════════════════════════════
   GRIDS
   ══════════════════════════════════════════════════════ */
.grid { display: grid; gap: 20px; }
.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); }
.grid-stat { grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); }

/* ══════════════════════════════════════════════════════
   BACKOFFICE — LAYOUT
   ══════════════════════════════════════════════════════ */
.bo-wrap { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: linear-gradient(180deg, #03152e 0%, #063b9f 100%);
  height: 100vh; position: fixed; top: 0; left: 0;
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden; z-index: 100;
  transition: transform var(--transition);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.1) transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

.sidebar-logo {
  padding: 24px 22px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.sidebar-logo .logo-icon {
  width: 42px; height: 42px; background: var(--brand); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 900; color: #fff; flex-shrink: 0;
}
.sidebar-logo .logo-text { font-size: 1.4rem; font-weight: 900; color: #fff; line-height: 1; }
.sidebar-logo .logo-sub  { font-size: .7rem; color: rgba(255,255,255,.45); letter-spacing: .05em; text-transform: uppercase; }

.sidebar-section-label {
  font-size: .65rem; font-weight: 700; color: rgba(255,255,255,.3);
  text-transform: uppercase; letter-spacing: .1em; padding: 20px 24px 8px;
}
.sidebar-nav { padding: 8px 14px; flex: 1; }
.nav-item { margin-bottom: 2px; }

/* nav-link here is BACKOFFICE only — scoped inside .sidebar */
.sidebar .nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,.6); font-size: .9rem; font-weight: 500;
  transition: all var(--transition); text-decoration: none;
}
.sidebar .nav-link i { width: 18px; text-align: center; font-size: .95rem; flex-shrink: 0; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.9); }
.sidebar .nav-link.active { background: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(7,95,199,.4); }

.sidebar-user {
  padding: 16px 14px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 11px; flex-shrink: 0;
}
.user-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.user-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.user-name { font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: .72rem; color: rgba(255,255,255,.4); text-transform: capitalize; }

/* Main content */
.main-content { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

/* Topbar */
.topbar {
  height: var(--topbar-h); background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 28px; gap: 16px;
  position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-sm);
}
.topbar-left   { flex: 1; display: flex; align-items: center; gap: 16px; }
.topbar-right  { display: flex; align-items: center; gap: 10px; }
.topbar-toggle { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; border-radius: var(--radius-sm); color: var(--text-soft); font-size: 1.1rem; }
.topbar-search {
  display: flex; align-items: center; gap: 10px; background: var(--surface-2);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 14px; max-width: 360px; width: 100%;
}
.topbar-search input { border: none; background: transparent; outline: none; font-size: .9rem; color: var(--text); width: 100%; }
.topbar-search i { color: var(--text-muted); font-size: .9rem; }
.topbar-page { font-size: 1.25rem; font-weight: 800; color: var(--dark); }

.page-content { padding: 28px; flex: 1; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.page-header-left h1 { font-size: 1.7rem; margin-bottom: 4px; }
.page-header-left p { color: var(--text-soft); font-size: .9rem; }
.page-header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(10,22,40,.5); z-index: 99; }

/* Product card (backoffice catalogue) */
.product-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: all var(--transition); position: relative; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.product-card-img { height: 200px; overflow: hidden; background: var(--surface-3); position: relative; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body { padding: 18px; }
.product-card-cat   { font-size: .73rem; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.product-card-name  { font-size: 1.1rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; line-height: 1.2; }
.product-card-price { font-size: 1.3rem; font-weight: 900; color: var(--brand); margin-bottom: 14px; }
.product-card-stock { font-size: .78rem; color: var(--text-muted); margin-bottom: 14px; }
.product-badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.product-badge.rupture { background: var(--danger); }

/* ══════════════════════════════════════════════════════
   FRONTOFFICE — HEADER (site-header)
   ══════════════════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 20px;
}
.brand-lockup { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.brand-logo { height: 55px; width: auto; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,.15)); }
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: 1.05rem; font-weight: 800; color: #fff; line-height: 1.1; transition: color .3s; }
.brand-sub { font-size: .68rem; color: rgba(255,255,255,.7); font-weight: 400; transition: color .3s; }
.site-header.scrolled .brand-text strong { color: var(--dark); }
.site-header.scrolled .brand-sub { color: var(--text-soft); }

/* site-nav = frontoffice nav (NOT backoffice sidebar) */
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav .nav-link {
  display: flex; align-items: center;
  padding: 8px 14px; border-radius: 10px;
  font-size: .88rem; font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: all .2s; text-decoration: none;
}
.site-nav .nav-link:hover { background: rgba(255,255,255,.12); color: #fff; }
.site-header.scrolled .site-nav .nav-link { color: var(--text-soft); }
.site-header.scrolled .site-nav .nav-link:hover { background: var(--bg); color: var(--dark); }
.nav-cta { margin-left: 6px; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px; background: rgba(255,255,255,.15);
  border: none; border-radius: 10px; cursor: pointer; padding: 8px; transition: background .2s;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }
.site-header.scrolled .nav-toggle { background: var(--surface-3); }
.site-header.scrolled .nav-toggle span { background: var(--dark); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════
   FRONTOFFICE — HERO
   ══════════════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100svh;
  background: linear-gradient(145deg, #03152e 0%, #063b9f 55%, #0b7eda 100%);
  display: flex; align-items: center;
  overflow: hidden; padding-top: 72px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35; }
.hero-bg-orb--1 { width: 500px; height: 500px; background: #075fc7; top: -100px; right: -100px; }
.hero-bg-orb--2 { width: 350px; height: 350px; background: #00aeef; bottom: 0; left: 30%; opacity: .2; }
.hero-bg-orb--3 { width: 250px; height: 250px; background: var(--orange); bottom: 10%; left: -50px; opacity: .15; }

.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; padding-top: 60px; padding-bottom: 100px;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9); font-size: .78rem; font-weight: 600;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 22px;
  letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(4px);
}
.hero-eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange); flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255,127,26,.25);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 3px rgba(255,127,26,.25); }
  50%      { box-shadow: 0 0 0 7px rgba(255,127,26,.1); }
}
.hero-title { font-size: clamp(2.2rem,4.5vw,3.4rem); font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 20px; }
.hero-title-accent { color: var(--orange-soft); text-decoration: underline; text-decoration-color: rgba(255,184,77,.4); text-underline-offset: 6px; }
.hero-desc { font-size: 1.05rem; color: rgba(255,255,255,.72); max-width: 480px; margin-bottom: 36px; font-weight: 400; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.65); font-weight: 500; }
.hero-trust-item i { color: var(--orange-soft); font-size: .9rem; }

.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-img-wrap { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 32px 80px rgba(0,0,0,.35); max-width: 480px; width: 100%; }
.hero-img { width: 100%; height: 400px; object-fit: cover; display: block; }
.hero-img-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-radius: var(--radius-sm); padding: 12px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.hero-img-badge i { font-size: 1.5rem; color: var(--brand); }
.hero-img-badge strong { display: block; font-size: 1.2rem; font-weight: 800; color: var(--dark); line-height: 1; }
.hero-img-badge span { font-size: .75rem; color: var(--text-soft); }

.hero-wave { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; }
.hero-wave svg { width: 100%; height: 80px; display: block; }

/* ══════════════════════════════════════════════════════
   FRONTOFFICE — SECTIONS
   ══════════════════════════════════════════════════════ */
.stats-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 28px 0; }
.stats-bar-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.stat-item { display: flex; flex-direction: column; align-items: center; padding: 0 40px; gap: 4px; }
.stat-item strong { font-size: 1.9rem; font-weight: 800; color: var(--brand); line-height: 1; }
.stat-item span { font-size: .8rem; color: var(--text-soft); font-weight: 500; }
.stat-divider { width: 1px; height: 44px; background: var(--border); flex-shrink: 0; }

.section { padding: 90px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; background: var(--brand-light); color: var(--brand);
  font-size: .72rem; font-weight: 700; padding: 5px 14px; border-radius: 100px;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px;
}
.section-tag--light { background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.2); }
.section-title { font-size: clamp(1.8rem,3.5vw,2.6rem); font-weight: 800; color: var(--dark); line-height: 1.15; margin-bottom: 14px; }
.section-title span { color: var(--brand); }
.section-sub { font-size: 1rem; color: var(--text-soft); max-width: 540px; margin: 0 auto; }

/* About */
.about-section { background: #fff; }
.about-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.about-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); border: 1px solid var(--border); transition: transform .3s ease, box-shadow .3s ease; }
.about-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.about-card--featured { background: var(--brand); border-color: var(--brand); transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.about-card-img { position: relative; height: 200px; overflow: hidden; }
.about-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.about-card:hover .about-card-img img { transform: scale(1.06); }
.about-card-overlay { position: absolute; bottom: 12px; right: 12px; width: 44px; height: 44px; border-radius: 12px; background: rgba(7,95,199,.9); color: #fff; border: 3px solid #fff; box-sizing: border-box; box-shadow: 0 8px 18px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; backdrop-filter: blur(4px); }
.about-card--featured .about-card-overlay { background: rgba(255,255,255,.25); }
.about-card-body { padding: 22px 24px 26px; }
.about-card-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.about-card-body p { font-size: .9rem; color: var(--text-soft); line-height: 1.65; }
.about-card--featured .about-card-body h3 { color: #fff; }
.about-card--featured .about-card-body p { color: rgba(255,255,255,.8); }

/* Process */
.process-section { background: var(--bg); }
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.process-card { background: #fff; border-radius: var(--radius-lg); padding: 28px 22px 26px; border: 1px solid var(--border); position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.process-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.process-num { font-size: 3.5rem; font-weight: 900; color: var(--brand); line-height: 1; position: absolute; top: 18px; right: 14px; z-index: 2; transform: rotate(-12deg); transform-origin: center; -webkit-text-stroke: 3px #fff; paint-order: stroke fill; text-shadow: 0 3px 0 #fff, 3px 0 0 #fff, 0 -3px 0 #fff, -3px 0 0 #fff, 0 8px 18px rgba(0,0,0,.2); }
.process-img { height: 130px; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 16px; }
.process-img img { width: 100%; height: 100%; object-fit: cover; }
.process-icon { width: 44px; height: 44px; background: var(--brand-light); color: var(--brand); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 14px; }
.process-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.process-card p { font-size: .85rem; color: var(--text-soft); line-height: 1.6; }

/* CTA */
.cta-section { position: relative; overflow: hidden; background: var(--footer-bg); border-top: 4px solid var(--footer-accent); padding: 80px 0; }
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-bg-orb { position: absolute; border-radius: 50%; filter: blur(70px); }
.cta-bg-orb--1 { width: 400px; height: 400px; background: rgba(0,174,239,.3); top: -100px; right: -100px; }
.cta-bg-orb--2 { width: 300px; height: 300px; background: rgba(255,127,26,.15); bottom: -80px; left: 10%; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-copy h2 { font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 800; color: #fff; margin-bottom: 12px; }
.cta-copy p { font-size: 1rem; color: rgba(255,255,255,.72); max-width: 480px; }

/* Payment */
.payment-section { background: #fff; }
.payment-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.payment-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 28px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); min-width: 160px; text-align: center; transition: transform .2s, box-shadow .2s; }
.payment-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.payment-icon { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.payment-card strong { font-size: .92rem; font-weight: 700; color: var(--dark); }
.payment-card span { font-size: .75rem; color: var(--text-soft); }
.payment-powered { text-align: center; font-size: .8rem; color: var(--text-soft); display: flex; align-items: center; justify-content: center; gap: 6px; }
.payment-powered i { color: var(--brand); }

/* Contact */
.contact-section { background: var(--bg); }
.contact-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.contact-card { background: #fff; border-radius: var(--radius-lg); padding: 36px 32px; border: 1px solid var(--border); text-align: center; flex: 1; min-width: 220px; max-width: 300px; transition: transform .3s, box-shadow .3s; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-icon { width: 54px; height: 54px; background: var(--brand-light); color: var(--brand); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin: 0 auto 16px; }
.contact-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.contact-card p { font-size: .88rem; color: var(--text-soft); line-height: 1.65; }

/* ══════════════════════════════════════════════════════
   FRONTOFFICE — FOOTER
   ══════════════════════════════════════════════════════ */
.page-footer { background: var(--footer-bg); border-top: 4px solid var(--footer-accent); }
.footer-top { padding: 64px 0 48px; }
.footer-top-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.footer-logo { height: 48px; width: auto; object-fit: contain; flex-shrink: 0; }
.footer-brand strong { display: block; font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 2px; }
.footer-brand span   { display: block; font-size: .75rem; color: rgba(255,255,255,.5); }
.footer-brand p { font-size: .82rem; color: rgba(255,255,255,.45); margin-top: 8px; line-height: 1.55; }
.footer-links h4, .footer-contact h4 { font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .88rem; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-links a:hover { color: var(--footer-accent); }
.footer-contact p { font-size: .85rem; color: rgba(255,255,255,.6); display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; line-height: 1.5; }
.footer-contact i { color: var(--footer-accent); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: rgba(255,255,255,.4); }
.footer-bottom-right { display: flex; align-items: center; gap: 6px; }
.footer-bottom-right i { color: var(--footer-accent); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .footer-top-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  /* Backoffice sidebar */
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { display: block; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
  .sidebar.open ~ .sidebar-overlay { opacity: 1; pointer-events: auto; }
  .main-content { margin-left: 0; }
  .topbar-toggle { display: flex; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }

  /* Frontoffice hero */
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; padding-top: 40px; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-img-wrap { max-width: 380px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card--featured { transform: none; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(3,21,46,.97); backdrop-filter: blur(16px);
    flex-direction: column; align-items: flex-start; gap: 2px;
    padding: 20px 24px 28px;
    transform: translateY(-110%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    border-bottom: 1px solid rgba(255,255,255,.1);
    z-index: 999;
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav .nav-link { width: 100%; padding: 12px 16px; color: rgba(255,255,255,.85) !important; }
  .site-nav .nav-link:hover { background: rgba(255,255,255,.08) !important; color: #fff !important; }
  .nav-cta { width: 100%; justify-content: center; margin-left: 0; margin-top: 6px; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .stat-item { padding: 0 20px; }
  .stat-divider { height: 30px; }
  .stat-item strong { font-size: 1.4rem; }
  .process-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .footer-top-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .contact-card { max-width: 100%; }
  .hero { min-height: auto; }
  .page-content { padding: 16px; }
  .grid-3, .grid-2, .grid-stat { grid-template-columns: 1fr; }
  .topbar { padding: 0 16px; }
  .topbar-search { display: none; }
  .page-header { flex-direction: column; }
  .modal { max-width: 100%; }
}
