/* ============================================================
   PETVIRA - Global Stylesheet
   ============================================================ */

:root {
  --navy: #0B1C2D;
  --navy-dark: #071422;
  --navy-hover: #122336;
  --orange: #FF6A00;
  --orange-hover: #E55E00;
  --bg: #F6F8FB;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --muted: #64748B;
  --text: #0B1C2D;
  --text-light: #334155;
  --success: #16A34A;
  --warning: #D97706;
  --danger: #DC2626;
  --info: #2563EB;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --sidebar-w: 248px;
  --topbar-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--orange-hover);
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

input, textarea, select, button {
  font-family: var(--font);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }

p {
  color: var(--text-light);
  line-height: 1.7;
}

.text-muted { color: var(--muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-orange { color: var(--orange); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn-primary:hover:not(:disabled) {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,106,0,0.3);
}

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg);
  border-color: #CBD5E1;
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg);
  color: var(--text);
}

.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-ghost-white:hover:not(:disabled) {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}

.btn-danger:hover:not(:disabled) {
  background: #B91C1C;
  border-color: #B91C1C;
  color: var(--white);
}

.btn-success {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}

.btn-success:hover:not(:disabled) {
  background: #15803D;
  border-color: #15803D;
  color: var(--white);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.0625rem;
}

.btn-full {
  width: 100%;
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-navy:hover:not(:disabled) {
  background: var(--navy-hover);
  border-color: var(--navy-hover);
  color: var(--white);
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-label span.required {
  color: var(--danger);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-control::placeholder {
  color: #A0AEC0;
}

.form-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,106,0,0.12);
}

.form-control:disabled {
  background: var(--bg);
  color: var(--muted);
  cursor: not-allowed;
}

.form-control.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-hint {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 4px;
}

.form-error {
  display: none;
  font-size: 0.8125rem;
  color: var(--danger);
  margin-top: 4px;
}

.form-error.visible {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.input-wrapper .form-control {
  padding-left: 40px;
}

.input-wrapper .input-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  display: flex;
  align-items: center;
}

.input-wrapper .input-toggle:hover {
  color: var(--text);
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
  cursor: pointer;
}

.form-check-label {
  font-size: 0.9375rem;
  color: var(--text-light);
  cursor: pointer;
}

/* Role Cards */
.role-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.role-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  background: var(--white);
}

.role-card:hover {
  border-color: var(--orange);
  background: #FFF7F2;
}

.role-card.selected {
  border-color: var(--orange);
  background: #FFF7F2;
}

.role-card input[type="radio"] {
  display: none;
}

.role-card-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  color: var(--muted);
}

.role-card.selected .role-card-icon {
  color: var(--orange);
}

.role-card-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

/* File Upload Zone */
.file-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
}

.file-upload-zone:hover {
  border-color: var(--orange);
  background: #FFF7F2;
}

.file-upload-zone.dragover {
  border-color: var(--orange);
  background: #FFF7F2;
}

.file-upload-zone input[type="file"] {
  display: none;
}

.file-upload-icon {
  color: var(--muted);
  margin-bottom: 12px;
}

.file-upload-text {
  font-size: 0.9375rem;
  color: var(--text-light);
}

.file-upload-text span {
  color: var(--orange);
  font-weight: 600;
}

.file-upload-hint {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-header h3,
.card-header h4 {
  margin: 0;
}

.card-body {
  padding: 24px;
}

.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* ============================================================
   BADGES
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success {
  background: #DCFCE7;
  color: #15803D;
}

.badge-warning {
  background: #FEF3C7;
  color: #B45309;
}

.badge-danger {
  background: #FEE2E2;
  color: #B91C1C;
}

.badge-info {
  background: #DBEAFE;
  color: #1D4ED8;
}

.badge-muted {
  background: #F1F5F9;
  color: var(--muted);
}

.badge-orange {
  background: #FFF0E6;
  color: var(--orange);
}

.badge-navy {
  background: #E8EEF4;
  color: var(--navy);
}

/* ============================================================
   TABLES
   ============================================================ */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--white);
}

thead {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 1;
}

thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: #F8FAFC;
}

tbody td {
  padding: 14px 16px;
  color: var(--text-light);
  vertical-align: middle;
}

tbody td strong {
  color: var(--text);
  font-weight: 600;
}

tfoot tr {
  background: var(--bg);
  border-top: 2px solid var(--border);
}

tfoot td {
  padding: 12px 16px;
  font-weight: 700;
  color: var(--text);
}

/* ============================================================
   LAYOUT - SIDEBAR
   ============================================================ */

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--navy);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar-logo {
  padding: 20px 20px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
  padding-bottom: 20px;
}

.sidebar-logo-text {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.sidebar-logo-badge {
  font-size: 0.625rem;
  font-weight: 700;
  background: var(--orange);
  color: var(--white);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

.sidebar-nav {
  flex: 1;
  padding: 8px 12px;
}

.sidebar-section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  padding: 12px 8px 6px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s;
  margin-bottom: 2px;
}

.sidebar-nav a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}

.sidebar-nav a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.sidebar-nav a:hover svg {
  opacity: 1;
}

.sidebar-nav a.active {
  background: var(--orange);
  color: var(--white);
}

.sidebar-nav a.active svg {
  opacity: 1;
}

.sidebar-bottom {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s;
  background: none;
  border: none;
  width: 100%;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: var(--font);
  text-align: left;
}

.sidebar-logout:hover {
  background: rgba(220,38,38,0.15);
  color: #FCA5A5;
}

.sidebar-logout svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */

.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 6px;
  border-radius: var(--radius);
}

.hamburger:hover {
  background: var(--bg);
}

.hamburger svg {
  width: 24px;
  height: 24px;
}

.topbar-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background 0.2s;
  text-decoration: none;
}

.topbar-icon-btn:hover {
  background: var(--bg);
  color: var(--text);
}

.topbar-icon-btn svg {
  width: 22px;
  height: 22px;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
}

.user-dropdown {
  position: relative;
}

.user-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 180px;
  z-index: 200;
}

.user-dropdown-menu.open {
  display: block;
}

.user-dropdown-menu a,
.user-dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 500;
  text-align: left;
  transition: background 0.15s;
}

.user-dropdown-menu a:hover,
.user-dropdown-menu button:hover {
  background: var(--bg);
  color: var(--text);
}

.user-dropdown-menu a svg,
.user-dropdown-menu button svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.user-dropdown-menu .divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

.page-content {
  padding: 28px 28px;
  flex: 1;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-header h2 {
  margin: 0;
}

.page-header-sub {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ============================================================
   STAT CARDS
   ============================================================ */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.2s;
}

.stat-card:hover {
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-icon-orange { background: #FFF0E6; color: var(--orange); }
.stat-icon-blue { background: #DBEAFE; color: var(--info); }
.stat-icon-green { background: #DCFCE7; color: var(--success); }
.stat-icon-yellow { background: #FEF3C7; color: var(--warning); }
.stat-icon-red { background: #FEE2E2; color: var(--danger); }
.stat-icon-purple { background: #EDE9FE; color: #7C3AED; }
.stat-icon-navy { background: #E8EEF4; color: var(--navy); }

.stat-info {
  flex: 1;
  min-width: 0;
}

.stat-value {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
}

.stat-change {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 6px;
}

.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ============================================================
   TOAST
   ============================================================ */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  animation: toastSlideIn 0.3s ease;
  pointer-events: auto;
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-body {
  flex: 1;
}

.toast-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.toast-msg {
  font-size: 0.875rem;
  color: var(--text-light);
}

.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 2px;
  line-height: 1;
  flex-shrink: 0;
}

.toast-close:hover { color: var(--text); }

.toast-success { border-left: 4px solid var(--success); }
.toast-success .toast-icon { color: var(--success); }

.toast-error { border-left: 4px solid var(--danger); }
.toast-error .toast-icon { color: var(--danger); }

.toast-info { border-left: 4px solid var(--info); }
.toast-info .toast-icon { color: var(--info); }

.toast-warning { border-left: 4px solid var(--warning); }
.toast-warning .toast-icon { color: var(--warning); }

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

.toast.removing {
  animation: toastSlideOut 0.3s ease forwards;
}

/* ============================================================
   MODAL
   ============================================================ */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,28,45,0.5);
  backdrop-filter: blur(2px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.2s ease;
}

.modal-lg {
  max-width: 720px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.125rem;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  border-radius: var(--radius);
  transition: all 0.2s;
  line-height: 1;
}

.modal-close:hover {
  background: var(--bg);
  color: var(--text);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: var(--bg);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ============================================================
   SKELETON LOADING
   ============================================================ */

.skeleton {
  background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   FILTER PANEL
   ============================================================ */

.filter-panel {
  width: 250px;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: calc(var(--topbar-h) + 20px);
}

.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.filter-panel-header h4 {
  font-size: 1rem;
  margin: 0;
}

.filter-section {
  margin-bottom: 24px;
}

.filter-section:last-child {
  margin-bottom: 0;
}

#catFilters, #brandFilters {
  max-height: 320px;
  overflow-y: auto;
}

.filter-section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 12px;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--text-light);
}

.filter-check input {
  accent-color: var(--orange);
  width: 16px;
  height: 16px;
}

.filter-range {
  display: flex;
  gap: 8px;
  align-items: center;
}

.filter-range input {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: var(--font);
  color: var(--text);
}

.filter-range input:focus {
  border-color: var(--orange);
  outline: none;
}

/* ============================================================
   PRODUCT GRID & CARDS
   ============================================================ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(255,106,0,0.2);
}

.product-card-image {
  aspect-ratio: 1/1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 12px;
}

.product-card-image img {
  background: #fff;
}

.product-detail-image img {
  background: #fff;
}

.cart-item-img img {
  background: #fff;
}

.sum-item-img img {
  background: #fff;
}

.home-ac-thumb img {
  background: #fff;
}

.search-ac-thumb img {
  background: #fff;
}

.ac-thumb img {
  background: #fff;
}

.product-img-box img {
  background: #fff;
}

.product-card-image-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #94A3B8;
}

.product-card-image-icon svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.product-card-image-icon span {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.6;
}

.product-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.product-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.product-card-brand {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.product-card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 4px;
}

.product-card-price span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.product-card-min {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.product-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   PUBLIC NAVBAR
   ============================================================ */

.pub-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.pub-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pub-nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.pub-nav-logo:hover {
  color: var(--navy);
}

.pub-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,106,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,106,0,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,106,0,0.15);
  border: 1px solid rgba(255,106,0,0.3);
  color: #FFA366;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero h1 span {
  color: var(--orange);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 36px;
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

/* Hero Mockup Card */
.hero-mockup {
  position: relative;
}

.hero-mockup-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: 20px;
  backdrop-filter: blur(10px);
}

.hero-mockup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero-mockup-dots {
  display: flex;
  gap: 6px;
}

.hero-mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero-mockup-dot:nth-child(1) { background: #FF5F57; }
.hero-mockup-dot:nth-child(2) { background: #FEBC2E; }
.hero-mockup-dot:nth-child(3) { background: #28C840; }

.hero-mockup-title {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

.hero-mockup-search {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-mockup-products {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-mockup-product {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 10px 14px;
  transition: background 0.2s;
}

.hero-mockup-product:hover {
  background: rgba(255,255,255,0.08);
}

.hero-mockup-product-img {
  width: 40px;
  height: 40px;
  background: rgba(255,106,0,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
}

.hero-mockup-product-info {
  flex: 1;
}

.hero-mockup-product-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2px;
}

.hero-mockup-product-brand {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.35);
}

.hero-mockup-product-price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--orange);
}

.hero-mockup-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-mockup-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.hero-mockup-badge-dot {
  width: 6px;
  height: 6px;
  background: #28C840;
  border-radius: 50%;
}

/* ============================================================
   SECTIONS (LANDING PAGE)
   ============================================================ */

.section {
  padding: 80px 0;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-badge {
  display: inline-block;
  background: #FFF0E6;
  color: var(--orange);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section h2 {
  font-size: 2.25rem;
  color: var(--text);
  margin-bottom: 12px;
}

.section p.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  text-align: center;
  transition: all 0.2s;
}

.trust-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.trust-icon {
  width: 64px;
  height: 64px;
  background: #FFF0E6;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--orange);
}

.trust-icon svg {
  width: 32px;
  height: 32px;
}

.trust-card h4 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}

.trust-card p {
  font-size: 0.9375rem;
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.category-card:hover {
  border-color: var(--orange);
  background: #FFF7F2;
  box-shadow: var(--shadow);
}

.category-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 10px;
}

.category-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.67% + 32px);
  right: calc(16.67% + 32px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  border: 4px solid var(--bg);
}

.step-card h4 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.9375rem;
  color: var(--muted);
}

.cta-band {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,106,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.cta-band p {
  color: rgba(255,255,255,0.6);
  font-size: 1.125rem;
  margin-bottom: 32px;
}

.site-footer {
  background: #040D18;
  padding: 56px 0 28px;
  color: rgba(255,255,255,0.5);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.footer-desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
  max-width: 260px;
}

.footer-links h5 {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links a {
  display: block;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255,255,255,0.8);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   AUTH PAGES
   ============================================================ */

.auth-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-logo {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  text-decoration: none;
  margin-bottom: 28px;
  display: block;
  text-align: center;
}

.auth-logo:hover {
  color: var(--navy);
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 36px 40px;
  width: 100%;
  max-width: 480px;
}

.auth-card-wide {
  max-width: 720px;
}

.auth-card h3 {
  font-size: 1.375rem;
  margin-bottom: 6px;
}

.auth-card .auth-subtitle {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.auth-demo-box {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 24px;
}

.auth-demo-box h5 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--info);
  margin-bottom: 6px;
}

.auth-demo-box p {
  font-size: 0.8125rem;
  color: #1E40AF;
  line-height: 1.6;
  margin: 0;
}

.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ============================================================
   BUYER LAYOUT (topbar only, no sidebar)
   ============================================================ */

.buyer-layout {
  min-height: 100vh;
  background: var(--bg);
}

.buyer-topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.buyer-topbar-logo {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.buyer-topbar-logo:hover { color: var(--navy); }

.buyer-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px;
}

/* Products layout with filter */
.products-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.products-main {
  flex: 1;
  min-width: 0;
}

/* Search bar */
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-input-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.search-input-wrapper input {
  width: 100%;
  padding: 10px 14px 10px 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-wrapper input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,106,0,0.12);
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  gap: 0;
}

.tab-btn {
  padding: 12px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.tab-badge {
  background: var(--bg);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

.tab-btn.active .tab-badge {
  background: #FFF0E6;
  color: var(--orange);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--orange);
}

.breadcrumb span {
  color: var(--muted);
}

.breadcrumb .current {
  color: var(--text);
  font-weight: 600;
}

/* Cart styles */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: flex-start;
}

.cart-items {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--muted);
}

.cart-item-img svg {
  width: 28px;
  height: 28px;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.cart-item-brand {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.cart-qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--text);
  transition: all 0.2s;
  font-weight: 600;
}

.qty-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.qty-display {
  min-width: 48px;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}

.cart-item-price {
  text-align: right;
  flex-shrink: 0;
}

.cart-item-unit-price {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 2px;
}

.cart-item-total-price {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--text);
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 6px;
  border-radius: var(--radius);
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.cart-item-remove:hover {
  background: #FEE2E2;
  color: var(--danger);
}

.cart-item-remove svg {
  width: 18px;
  height: 18px;
}

.order-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: calc(var(--topbar-h) + 20px);
}

.order-summary h3 {
  font-size: 1.0625rem;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.9375rem;
}

.summary-line .label { color: var(--muted); }
.summary-line .value { font-weight: 600; color: var(--text); }

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--border);
}

.summary-total .label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.summary-total .value {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--orange);
}

/* Empty states */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--muted);
}

.empty-state-icon svg {
  width: 40px;
  height: 40px;
}

.empty-state h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 24px;
}

/* Product detail */
.product-detail-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 28px;
  align-items: flex-start;
}

.product-detail-image {
  background: #fff;
  border-radius: var(--radius-xl);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  margin-bottom: 20px;
}

.product-detail-image svg {
  width: 80px;
  height: 80px;
}

.product-detail-name {
  font-size: 1.625rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.product-detail-brand {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.product-detail-desc {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.purchase-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: sticky;
  top: calc(var(--topbar-h) + 20px);
}

.purchase-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 4px;
}

.purchase-price span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
}

.purchase-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.purchase-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.9375rem;
}

.purchase-info-row .label { color: var(--muted); }
.purchase-info-row .value { font-weight: 600; color: var(--text); }

.stars {
  color: #FBBF24;
  letter-spacing: 2px;
}

/* Profile tabs */
.profile-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: flex-start;
}

.profile-nav {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--topbar-h) + 20px);
}

.profile-nav a {
  display: block;
  padding: 14px 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
}

.profile-nav a:last-child {
  border-bottom: none;
}

.profile-nav a:hover {
  background: var(--bg);
  color: var(--orange);
}

.profile-nav a.active {
  background: #FFF0E6;
  color: var(--orange);
  font-weight: 700;
}

/* Finance */
.finance-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

/* Bar chart for reports */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 200px;
  padding: 0 10px;
}

.bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}

.bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  transition: opacity 0.2s;
  min-height: 4px;
}

.bar:hover {
  opacity: 0.8;
}

.bar-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.bar-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
}

/* Quick actions */
.quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Address card */
.address-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.address-card-info h5 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.address-card-info p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

.sidebar-overlay.open {
  display: block;
}

/* ============================================================
   RESULT COUNT
   ============================================================ */

.result-info {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.result-info strong {
  color: var(--text);
}

/* ============================================================
   NOTIFICATION BELL
   ============================================================ */

.notif-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  border: 2px solid var(--white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {
  .stat-grid,
  .finance-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 80px 32px 60px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-mockup {
    max-width: 460px;
    margin: 0 auto;
  }

  .trust-grid,
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .steps-grid::before { display: none; }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .hamburger {
    display: flex;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-nav {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .profile-nav a {
    white-space: nowrap;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-content {
    padding: 20px 16px;
  }

  .stat-grid,
  .finance-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .products-layout {
    flex-direction: column;
  }

  .filter-panel {
    width: 100%;
    position: static;
  }

  .role-cards {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 24px 20px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 48px 0;
  }

  .section h2 {
    font-size: 1.75rem;
  }

  .cta-band h2 {
    font-size: 1.75rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .pub-nav-inner {
    padding: 0 20px;
  }

  .section-inner {
    padding: 0 20px;
  }

  .buyer-topbar,
  .buyer-page {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 480px) {
  .stat-grid,
  .finance-kpi-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .tabs {
    overflow-x: auto;
  }

  .tab-btn {
    white-space: nowrap;
  }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.hidden { display: none !important; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.no-results {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ============================================================
   BİLDİRİM SİSTEMİ
   ============================================================ */

.notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--orange);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  padding: 0 3px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}

.notif-panel {
  position: absolute;
  top: calc(100% + 10px); right: 0;
  width: 340px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 999;
  overflow: hidden;
}

.notif-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 0.9375rem; color: var(--navy);
}

.notif-list {
  max-height: 360px;
  overflow-y: auto;
}

.notif-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none; color: inherit;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: #FFF8F5; }
.notif-item.unread:hover { background: #FFEEE6; }

.notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); flex-shrink: 0; margin-top: 5px;
}
.notif-dot.read { background: transparent; }

.notif-body { flex: 1; min-width: 0; }
.notif-title { font-weight: 700; font-size: 0.875rem; color: var(--navy); margin-bottom: 2px; }
.notif-msg { font-size: 0.8125rem; color: var(--muted); line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-time { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }

.notif-empty {
  text-align: center; padding: 32px 16px; color: var(--muted); font-size: 0.875rem;
}

/* Sidebar badge (sipariş sayısı) */
.sidebar-nav a .sidebar-badge {
  margin-left: auto;
  background: var(--orange); color: #fff;
  font-size: 0.65rem; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: 9px;
  padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
}

@media (max-width: 600px) {
  .notif-panel { width: calc(100vw - 32px); right: -8px; }
}

/* Pagination */
.pagination { display:flex; align-items:center; justify-content:center; gap:6px; margin-top:24px; padding:16px 0; flex-wrap:wrap; }
.pagination button { min-width:38px; height:38px; border:1px solid var(--border); border-radius:8px; background:#fff; color:var(--text); font-size:0.875rem; font-weight:600; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; transition:all 0.15s; }
.pagination button:hover { border-color:var(--orange); color:var(--orange); }
.pagination button.active { background:var(--orange); border-color:var(--orange); color:#fff; }
.pagination button:disabled { opacity:0.4; cursor:default; }
.pagination .page-dots { color:var(--muted); font-size:0.875rem; padding:0 4px; }
