:root {
  --primary: #10B981;
  --primary-dark: #059669;
  --primary-soft: #DDF8EE;
  --secondary: #38BDF8;
  --secondary-soft: #E3F6FE;
  --tertiary: #A8A29E;
  --neutral: #78716C;
  --background: #FAFFFE;
  --surface: #FFFFFF;
  --text: #1C2925;
  --muted: #6B7C76;
  --border: #E4EEEA;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #38BDF8;
  --shadow-sm: 0 2px 10px rgba(35, 78, 63, .06);
  --shadow-md: 0 12px 30px rgba(35, 78, 63, .10);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --sidebar-width: 258px;
  --transition: .22s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--text);
  background: var(--background);
  font-size: 16px;
  line-height: 1.5;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: 'Manrope', sans-serif; line-height: 1.2; }
p { margin: 0; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.96);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  z-index: 50;
}
.sidebar-header { padding: 22px 20px 14px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: white; background: linear-gradient(135deg, var(--primary), #43D3A5); box-shadow: 0 8px 18px rgba(16,185,129,.25); }
.brand-mark svg { width: 23px; height: 23px; }
.brand strong { display: block; font-family: 'Manrope', sans-serif; font-size: 18px; color: var(--text); }
.brand small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }
.sidebar-nav { padding: 10px 13px; overflow-y: auto; flex: 1; }
.nav-section { margin: 18px 11px 7px; font-family: 'Manrope'; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #9AA9A4; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 13px; border-radius: 14px; color: #53645E; font-weight: 700; transition: var(--transition); }
.nav-item svg { width: 19px; height: 19px; stroke-width: 2; }
.nav-item:hover { color: var(--primary-dark); background: #F1FBF7; transform: translateX(2px); }
.nav-item.active { color: var(--primary-dark); background: var(--primary-soft); }
.nav-item.active::before { content: ''; position: absolute; left: -13px; width: 4px; height: 25px; border-radius: 0 8px 8px 0; background: var(--primary); }
.sidebar-footer { padding: 12px 13px 18px; border-top: 1px solid var(--border); }
.progress-card { display: flex; gap: 10px; align-items: flex-start; margin: 0 2px 10px; padding: 12px; border-radius: 15px; background: linear-gradient(135deg, #F2FCF8, #EFFAFF); border: 1px solid #DDF1E9; }
.progress-card-icon { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; color: var(--secondary); background: white; border-radius: 10px; }
.progress-card-icon svg { width: 18px; }
.progress-card strong { display: block; font-family: 'Manrope'; font-size: 12px; }
.progress-card p { margin-top: 3px; font-size: 11px; color: var(--muted); line-height: 1.35; }

.app-main { width: calc(100% - var(--sidebar-width)); min-height: 100vh; margin-left: var(--sidebar-width); display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 30px; background: rgba(250,255,254,.88); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(228,238,234,.75); }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar h1 { font-size: clamp(22px, 2vw, 28px); font-weight: 800; }
.eyebrow { margin-bottom: 3px; font-family: 'Manrope'; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--primary); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 13px; color: #60716B; background: white; transition: var(--transition); }
.icon-button:hover { color: var(--primary-dark); border-color: #BCE7D8; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.icon-button svg { width: 20px; height: 20px; }
.notification-button { position: relative; }
.notification-dot { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; border-radius: 10px; color: white; background: var(--danger); border: 2px solid white; font-size: 10px; font-weight: 800; }
.user-menu { display: flex; align-items: center; gap: 10px; margin-left: 4px; padding-left: 12px; border-left: 1px solid var(--border); }
.avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(135deg, var(--primary), var(--secondary)); font-family: 'Manrope'; font-weight: 800; }
.user-copy strong { display: block; font-size: 13px; }
.user-copy span { display: block; color: var(--muted); font-size: 11px; }

.content { flex: 1; width: 100%; max-width: 1600px; margin: 0 auto; padding: 28px 30px 44px; }
.app-footer { display: flex; justify-content: space-between; gap: 16px; padding: 18px 30px 90px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.page-head h2 { font-size: 24px; }
.page-head p { max-width: 720px; margin-top: 6px; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border: 1px solid transparent; border-radius: 13px; font-family: 'Manrope'; font-size: 13px; font-weight: 800; transition: var(--transition); }
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--primary), #29C995); box-shadow: 0 8px 18px rgba(16,185,129,.22); }
.btn-primary:hover { box-shadow: 0 10px 25px rgba(16,185,129,.30); }
.btn-secondary { color: #147CA6; background: var(--secondary-soft); border-color: #C5EBFB; }
.btn-ghost { color: #52635D; background: white; border-color: var(--border); }
.btn-danger { color: white; background: var(--danger); }
.btn-sm { min-height: 34px; padding: 6px 11px; border-radius: 10px; font-size: 12px; }
.btn-icon { width: 36px; height: 36px; min-height: 36px; padding: 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card:hover { border-color: #D8E9E3; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 22px 14px; }
.card-header h3 { font-size: 17px; }
.card-header p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.card-body { padding: 20px 22px 22px; }
.card-header + .card-body { padding-top: 4px; }
.card-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; border-top: 1px solid #EFF4F2; }

.metric-card { position: relative; min-height: 150px; padding: 20px; overflow: hidden; }
.metric-card::after { content: ''; position: absolute; width: 100px; height: 100px; right: -35px; bottom: -45px; border-radius: 50%; background: var(--primary-soft); opacity: .7; }
.metric-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.metric-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; color: var(--primary-dark); background: var(--primary-soft); }
.metric-icon.blue { color: #1688B8; background: var(--secondary-soft); }
.metric-icon.orange { color: #B66D00; background: #FFF3DA; }
.metric-icon.red { color: #C83939; background: #FDE8E8; }
.metric-icon svg { width: 22px; }
.metric-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.metric-value { position: relative; z-index: 1; margin-top: 15px; font-family: 'Manrope'; font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.metric-note { position: relative; z-index: 1; margin-top: 4px; color: var(--muted); font-size: 12px; }
.metric-note strong { color: var(--primary-dark); }

.hero-card { position: relative; overflow: hidden; min-height: 210px; padding: 28px; color: white; background: linear-gradient(130deg, #087F62, #10B981 58%, #43C7ED); border: 0; }
.hero-card::before, .hero-card::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.10); }
.hero-card::before { width: 260px; height: 260px; right: -80px; top: -100px; }
.hero-card::after { width: 140px; height: 140px; right: 140px; bottom: -100px; }
.hero-card h2 { max-width: 650px; font-size: clamp(27px, 3vw, 40px); }
.hero-card p { max-width: 650px; margin-top: 10px; color: rgba(255,255,255,.88); }
.hero-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-actions .btn { color: #087F62; background: white; }
.hero-actions .btn-ghost { color: white; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 14px; color: #82908B; background: #F7FBF9; border-bottom: 1px solid var(--border); font-family: 'Manrope'; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 14px; border-bottom: 1px solid #EDF3F1; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #FBFEFD; }
.table-title { display: flex; align-items: center; gap: 10px; }
.table-title strong { display: block; font-size: 14px; }
.table-title small { display: block; margin-top: 2px; color: var(--muted); }
.table-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--primary-dark); background: var(--primary-soft); font-family: 'Manrope'; font-weight: 800; }
.table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.empty-state { padding: 48px 24px; text-align: center; }
.empty-state-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 20px; color: var(--primary); background: var(--primary-soft); }
.empty-state-icon svg { width: 30px; height: 30px; }
.empty-state h3 { font-size: 17px; }
.empty-state p { max-width: 460px; margin: 7px auto 18px; color: var(--muted); }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-success { color: #087F5F; background: #DDF8EE; }
.status-warning { color: #9A6206; background: #FFF1D5; }
.status-danger { color: #B83434; background: #FDE6E6; }
.status-info { color: #147CA6; background: var(--secondary-soft); }
.status-neutral { color: #6D7471; background: #EEF2F0; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 18px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-group { min-width: 0; }
.form-group.full { grid-column: 1 / -1; }
label { display: block; margin: 0 0 7px; font-family: 'Manrope'; color: #43534E; font-size: 12px; font-weight: 800; }
.required::after { content: ' *'; color: var(--danger); }
.form-control { width: 100%; min-height: 44px; padding: 10px 13px; color: var(--text); background: white; border: 1px solid #DCE8E4; border-radius: 12px; outline: 0; transition: var(--transition); }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(16,185,129,.10); }
.form-control::placeholder { color: #A3AEA9; }
.help { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.input-group { display: flex; }
.input-group .form-control { border-radius: 12px 0 0 12px; }
.input-addon { display: grid; place-items: center; min-width: 48px; padding: 0 12px; color: var(--muted); background: #F5F9F7; border: 1px solid #DCE8E4; border-left: 0; border-radius: 0 12px 12px 0; font-weight: 800; }
.search-box { position: relative; min-width: 240px; }
.search-box svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; color: #899691; transform: translateY(-50%); }
.search-box .form-control { padding-left: 40px; }

.alert { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 13px 15px; border: 1px solid; border-radius: 14px; font-weight: 700; transition: .4s ease; }
.alert svg { width: 20px; flex: 0 0 auto; }
.alert-success { color: #086B52; background: #E6FAF3; border-color: #BFECDC; }
.alert-error { color: #A63131; background: #FDECEC; border-color: #F7CACA; }
.alert-info { color: #116F94; background: #EAF8FE; border-color: #C8EBFA; }
.alert-close { margin-left: auto; border: 0; color: currentColor; background: transparent; font-size: 22px; }
.alert.fade-out { opacity: 0; transform: translateY(-7px); }

.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: #F0F5F3; }
.tab-button { padding: 8px 14px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-family: 'Manrope'; font-size: 12px; font-weight: 800; }
.tab-button.active { color: var(--primary-dark); background: white; box-shadow: var(--shadow-sm); }
[data-tab-panel] { display: none; }
[data-tab-panel].active { display: block; }

.detail-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 22px; }
.detail-photo { width: 88px; height: 88px; display: grid; place-items: center; overflow: hidden; border-radius: 24px; color: var(--primary-dark); background: var(--primary-soft); }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-photo svg { width: 38px; height: 38px; }
.detail-title h2 { font-size: 25px; }
.detail-title p { margin-top: 4px; color: var(--muted); }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.info-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.info-item { padding: 13px; border: 1px solid #E8F0ED; border-radius: 13px; background: #FCFEFD; }
.info-item span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.info-item strong { display: block; margin-top: 3px; font-family: 'Manrope'; font-size: 14px; }

.timeline { position: relative; padding-left: 27px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 7px; bottom: 7px; width: 2px; background: #DDEAE5; }
.timeline-item { position: relative; padding-bottom: 22px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -27px; top: 4px; width: 18px; height: 18px; border: 4px solid white; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 1px #BFE7D9; }
.timeline-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.timeline-content strong { font-family: 'Manrope'; font-size: 14px; }
.timeline-content p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.timeline-date { color: var(--muted); font-size: 11px; white-space: nowrap; }

.quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick-action { display: flex; align-items: center; gap: 11px; min-height: 72px; padding: 14px; border: 1px solid var(--border); border-radius: 15px; background: white; transition: var(--transition); }
.quick-action:hover { border-color: #BCE7D8; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.quick-action-icon { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: var(--primary-dark); background: var(--primary-soft); }
.quick-action-icon svg { width: 20px; }
.quick-action strong { display: block; font-family: 'Manrope'; font-size: 13px; }
.quick-action small { display: block; margin-top: 2px; color: var(--muted); }

.progress { height: 8px; overflow: hidden; border-radius: 999px; background: #E8F0ED; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #51D5AA); }
.number-positive { color: var(--primary-dark); font-weight: 800; }
.number-negative { color: var(--danger); font-weight: 800; }
.kpi-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px solid #EDF3F1; }
.kpi-row:last-child { border-bottom: 0; }
.kpi-row span { color: var(--muted); }
.kpi-row strong { font-family: 'Manrope'; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: white; }
.auth-cover { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 48px; color: white; background: linear-gradient(145deg, #087F62, #10B981 58%, #39BDEB); }
.auth-cover::before { content: ''; position: absolute; width: 460px; height: 460px; right: -180px; top: -180px; border: 60px solid rgba(255,255,255,.08); border-radius: 50%; }
.auth-cover::after { content: ''; position: absolute; width: 350px; height: 350px; left: -200px; bottom: -230px; border-radius: 50%; background: rgba(255,255,255,.08); }
.auth-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.auth-brand .brand-mark { background: white; color: var(--primary-dark); }
.auth-brand strong { color: white; font-size: 21px; }
.auth-brand small { color: rgba(255,255,255,.78); }
.auth-message { position: relative; z-index: 1; max-width: 600px; }
.auth-message h1 { font-size: clamp(38px, 5vw, 64px); letter-spacing: -.04em; }
.auth-message p { max-width: 540px; margin-top: 17px; color: rgba(255,255,255,.85); font-size: 18px; }
.auth-benefits { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }
.auth-benefit { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.20); border-radius: 999px; background: rgba(255,255,255,.10); font-size: 12px; font-weight: 800; }
.auth-benefit svg { width: 16px; }
.auth-panel { display: grid; place-items: center; padding: 35px; background: var(--background); }
.auth-card { width: min(460px, 100%); padding: 34px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-md); }
.auth-card h2 { font-size: 28px; }
.auth-card > p { margin: 7px 0 24px; color: var(--muted); }
.auth-card .form-group { margin-bottom: 16px; }
.auth-card .btn { width: 100%; margin-top: 4px; }
.auth-foot { margin-top: 20px; color: var(--muted); font-size: 12px; text-align: center; }

.qr-card { display: grid; place-items: center; min-height: 250px; padding: 20px; text-align: center; }
.qr-card canvas, .qr-card img { border: 12px solid white; border-radius: 12px; box-shadow: var(--shadow-sm); }
.qr-card p { margin-top: 10px; color: var(--muted); font-size: 12px; }

.mobile-only, .mobile-bottom-nav { display: none; }
.sidebar-backdrop { display: none; }
.text-muted { color: var(--muted); }
.text-primary { color: var(--primary-dark); }
.text-danger { color: var(--danger); }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.w-full { width: 100%; }

@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .mobile-only { display: inline-grid; }
  .desktop-only { display: none !important; }
  .sidebar { transform: translateX(-105%); transition: transform var(--transition); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 40; display: block; pointer-events: none; opacity: 0; background: rgba(15, 32, 26, .38); backdrop-filter: blur(2px); transition: var(--transition); }
  .sidebar-backdrop.show { opacity: 1; pointer-events: auto; }
  .app-main { width: 100%; margin-left: 0; }
  .topbar { min-height: 72px; padding: 11px 18px; }
  .content { padding: 22px 18px 100px; }
  .app-footer { padding: 18px 18px 90px; }
  .mobile-bottom-nav { position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 35; display: grid; grid-template-columns: repeat(5, 1fr); min-height: 66px; padding: 7px; border: 1px solid var(--border); border-radius: 21px; background: rgba(255,255,255,.95); box-shadow: 0 15px 40px rgba(30,70,57,.18); backdrop-filter: blur(16px); }
  .mobile-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 14px; color: #7A8A84; font-size: 10px; font-weight: 800; }
  .mobile-bottom-nav a svg { width: 19px; height: 19px; }
  .mobile-bottom-nav a.active { color: var(--primary-dark); background: var(--primary-soft); }
  .auth-page { grid-template-columns: 1fr; }
  .auth-cover { display: none; }
  .auth-panel { min-height: 100vh; }
}

@media (max-width: 700px) {
  .page-head { align-items: stretch; flex-direction: column; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .grid-2, .grid-3, .grid-4, .form-grid, .form-grid-3, .form-grid-4 { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }
  .metric-card { min-height: 135px; }
  .hero-card { min-height: 235px; padding: 24px 20px; }
  .quick-actions { grid-template-columns: 1fr; }
  .detail-head { grid-template-columns: auto 1fr; }
  .detail-head > .page-actions { grid-column: 1 / -1; }
  .detail-photo { width: 70px; height: 70px; border-radius: 19px; }
  .info-list { grid-template-columns: 1fr; }
  .search-box { min-width: 0; width: 100%; }
  .card-header { padding: 18px 17px 12px; }
  .card-body { padding: 17px; }
  .card-header + .card-body { padding-top: 4px; }
  td, th { padding-left: 11px; padding-right: 11px; }
  .app-footer { flex-direction: column; }
}

@media print {
  .sidebar, .topbar, .app-footer, .mobile-bottom-nav, .page-actions, .no-print { display: none !important; }
  .app-main { width: 100%; margin: 0; }
  .content { padding: 0; }
  .card { box-shadow: none; }
}

/* CampoZen 2.0: SaaS, planes y administración */
.plan-pill { display:flex; align-items:center; gap:7px; min-height:38px; padding:8px 12px; border:1px solid #CDEBDF; border-radius:999px; color:var(--primary-dark); background:#F2FCF8; font-family:'Manrope'; font-size:12px; font-weight:800; }
.plan-pill svg { width:16px; height:16px; }
.auth-card-wide { width:min(760px,100%); }
.plan-choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.plan-choice { position:relative; cursor:pointer; }
.plan-choice input { position:absolute; opacity:0; pointer-events:none; }
.plan-choice > span { display:flex; min-height:142px; flex-direction:column; padding:16px; border:1px solid var(--border); border-radius:16px; background:white; transition:var(--transition); }
.plan-choice input:checked + span { border-color:var(--primary); box-shadow:0 0 0 4px rgba(16,185,129,.10); background:#F7FFFC; }
.plan-choice strong { font-family:'Manrope'; font-size:15px; }
.plan-choice b { margin-top:4px; color:var(--primary-dark); font-family:'Manrope'; font-size:18px; }
.plan-choice small { margin-top:7px; color:var(--muted); line-height:1.35; }
.plan-choice em { margin-top:auto; padding-top:8px; color:#526760; font-size:11px; font-style:normal; font-weight:800; }
.check-row { display:flex; align-items:flex-start; gap:9px; color:#53645E; font-size:13px; font-weight:700; }
.check-row input { width:17px; height:17px; margin-top:1px; accent-color:var(--primary); }
.setup-page { min-height:100vh; display:grid; place-items:center; padding:28px; background:linear-gradient(145deg,#F4FFFB,#EAF8FE); }
.setup-card { width:min(720px,100%); padding:34px; }
.setup-card h1 { margin-bottom:10px; font-size:30px; }
.setup-card > p { margin-bottom:22px; color:var(--muted); }
.setup-icon { width:58px; height:58px; display:grid; place-items:center; margin-bottom:18px; border-radius:18px; color:white; background:linear-gradient(135deg,var(--primary),var(--secondary)); box-shadow:var(--shadow-md); }
.setup-icon svg { width:28px; height:28px; }
.check-list { display:grid; gap:10px; padding:18px; border:1px solid var(--border); border-radius:16px; background:#FCFEFD; }
.check-list > div { display:flex; align-items:center; gap:9px; font-weight:700; }
.check-list svg { width:18px; color:var(--primary-dark); }
.admin-mark { background:linear-gradient(135deg,#0F766E,#38BDF8); }
.admin-filter { width:100%; flex-wrap:wrap; }
.admin-filter .search-box { flex:1; }
.plan-admin-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.plan-admin-card { overflow:hidden; }
.plan-admin-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.plan-admin-head h3 { margin-top:8px; }
.plan-admin-head > strong { color:var(--primary-dark); font-family:'Manrope'; font-size:18px; white-space:nowrap; }
.sticky-card { position:sticky; top:98px; }
.feature-checks { display:grid; gap:10px; padding:14px; border:1px solid var(--border); border-radius:14px; background:#FAFDFC; }
.tabs-scroll { max-width:100%; overflow-x:auto; }
.inline-form { display:inline-block; }
.compact-control { min-width:132px; padding:8px 10px; }
.subscription-summary { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:20px; border-radius:18px; color:white; background:linear-gradient(135deg,#087F62,#10B981 62%,#38BDF8); }
.subscription-summary h2 { margin-top:4px; font-size:30px; }
.subscription-summary p { margin-top:8px; color:rgba(255,255,255,.82); }
.subscription-summary > strong { font-family:'Manrope'; font-size:22px; white-space:nowrap; }
.plan-public-card { padding:18px; border:1px solid var(--border); border-radius:17px; background:#FCFEFD; }
.plan-public-card.current { border-color:var(--primary); box-shadow:0 0 0 4px rgba(16,185,129,.08); }
.plan-public-card > div { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.plan-public-card > div strong { color:var(--primary-dark); }
.plan-public-card p { margin-top:8px; color:var(--muted); font-size:13px; }
.plan-public-card ul { margin:13px 0; padding-left:18px; color:#526760; font-size:13px; }
.section-divider { height:1px; margin:24px 0; background:#EDF3F1; }
.compact-head { margin-bottom:12px; align-items:center; }
.compact-head h3 { font-size:17px; }
.sale-total-box { display:flex; align-items:center; justify-content:space-between; margin-top:16px; padding:16px 18px; border:1px solid #DCEDE6; border-radius:15px; background:#F8FFFC; }
.sale-total-box strong { font-size:25px; }
.danger-zone { display:flex; justify-content:flex-end; margin-top:16px; }
.btn:disabled { cursor:not-allowed; opacity:.5; transform:none !important; }

@media (max-width:900px) {
  .admin-sidebar { transform:translateX(-105%); }
  .sticky-card { position:static; }
}
@media (max-width:700px) {
  .plan-choice-grid, .plan-admin-grid { grid-template-columns:1fr; }
  .auth-card-wide { padding:24px 18px; }
  .subscription-summary { flex-direction:column; }
  .admin-filter > * { width:100%; }
  .compact-head { align-items:stretch; }
  .danger-zone .btn { width:100%; }
}

/* Parche 2.0.1: enlace Cerrar sesión alineado correctamente */
.sidebar-footer .nav-item {
  width: 100%;
}

.nav-item.nav-logout {
  margin-top: 7px;
  color: #B42318;
  background: #FFF8F7;
  border: 1px solid #FEE4E2;
}

.nav-item.nav-logout:hover {
  color: #912018;
  background: #FFF0EE;
  border-color: #FECACA;
  transform: none;
}

.nav-item.nav-logout svg {
  flex: 0 0 19px;
}

@media (max-width: 900px) {
  /* .mobile-only usa inline-grid para los botones, pero un enlace del menú debe seguir siendo flex. */
  .sidebar-footer .nav-item.mobile-only,
  .sidebar-footer .nav-item.nav-logout {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 46px;
    padding: 10px 13px;
  }

  .sidebar-footer .nav-item.mobile-only span {
    display: inline;
    line-height: 1.25;
  }
}

/* Parche 2.1: registro gratuito y planes por WhatsApp */
.cz-register-body {
  min-height: 100vh;
  overflow-x: hidden;
  background: #F4FBF8;
}

.cz-register-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, .92fr) minmax(560px, 1.08fr);
}

.cz-register-showcase {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 44px clamp(34px, 5vw, 78px);
  color: #fff;
  background:
    linear-gradient(145deg, rgba(5, 94, 72, .98), rgba(16, 185, 129, .96) 56%, rgba(56, 189, 248, .92)),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 34%);
}

.cz-register-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 88%);
}

.cz-showcase-glow {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.cz-showcase-glow-one {
  width: 420px;
  height: 420px;
  right: -180px;
  top: -110px;
  border: 72px solid rgba(255,255,255,.08);
}

.cz-showcase-glow-two {
  width: 340px;
  height: 340px;
  left: -200px;
  bottom: -160px;
  background: rgba(255,255,255,.08);
}

.cz-register-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  color: #fff;
}

.cz-register-brand .brand-mark {
  width: 46px;
  height: 46px;
  color: var(--primary-dark);
  background: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.14);
}

.cz-register-brand strong,
.cz-register-brand small {
  display: block;
  color: #fff;
}

.cz-register-brand strong {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  line-height: 1.05;
}

.cz-register-brand small {
  margin-top: 3px;
  opacity: .78;
  font-size: 12px;
}

.cz-showcase-copy {
  max-width: 650px;
  margin: 50px 0;
}

.cz-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
}

.cz-showcase-badge svg {
  width: 16px;
}

.cz-showcase-copy h1 {
  max-width: 610px;
  margin-top: 20px;
  color: #fff;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.cz-showcase-copy > p {
  max-width: 590px;
  margin-top: 18px;
  color: rgba(255,255,255,.84);
  font-size: 18px;
  line-height: 1.65;
}

.cz-showcase-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 30px;
}

.cz-showcase-features > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}

.cz-showcase-features > div > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 11px;
  border-radius: 12px;
  color: #065F46;
  background: #fff;
}

.cz-showcase-features svg {
  width: 18px;
}

.cz-showcase-features strong,
.cz-showcase-features small {
  display: block;
}

.cz-showcase-features strong {
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
}

.cz-showcase-features small {
  margin-top: 5px;
  color: rgba(255,255,255,.72);
  font-size: 11px;
  line-height: 1.45;
}

.cz-showcase-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 800;
}

.cz-showcase-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cz-showcase-trust svg {
  width: 16px;
}

.cz-register-panel {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 38px clamp(20px, 5vw, 72px);
  background:
    radial-gradient(circle at 100% 0%, rgba(56,189,248,.10), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(16,185,129,.10), transparent 30%),
    #F7FCFA;
}

.cz-register-card {
  width: min(720px, 100%);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(214,232,225,.95);
  border-radius: 28px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 28px 70px rgba(33,82,65,.13);
}

.cz-register-heading {
  margin-bottom: 20px;
}

.cz-free-label {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: #047857;
  background: #DDF8EE;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.cz-register-heading h2 {
  margin-top: 11px;
  font-size: clamp(29px, 4vw, 38px);
  letter-spacing: -.035em;
}

.cz-register-heading p {
  max-width: 580px;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.55;
}

.cz-free-plan-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 18px 0 23px;
  padding: 15px 17px;
  border: 1px solid #CBEFDF;
  border-radius: 18px;
  background: linear-gradient(135deg, #F1FFF9, #F7FCFF);
}

.cz-free-plan-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #10B981, #38BDF8);
  box-shadow: 0 10px 22px rgba(16,185,129,.20);
}

.cz-free-plan-icon svg {
  width: 21px;
}

.cz-free-plan-box strong {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
}

.cz-free-plan-box p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.cz-free-price {
  text-align: right;
}

.cz-free-price b,
.cz-free-price small {
  display: block;
}

.cz-free-price b {
  color: #047857;
  font-family: 'Manrope', sans-serif;
  font-size: 25px;
}

.cz-free-price small {
  color: var(--muted);
  font-size: 10px;
}

.cz-register-form-grid {
  gap: 14px;
}

.cz-register-card .form-group {
  margin-bottom: 0;
}

.cz-register-card label {
  font-size: 12px;
}

.cz-input-wrap {
  position: relative;
}

.cz-input-wrap > svg {
  position: absolute;
  z-index: 2;
  left: 14px;
  top: 50%;
  width: 17px;
  color: #769188;
  transform: translateY(-50%);
  pointer-events: none;
}

.cz-input-wrap .form-control {
  min-height: 49px;
  padding-left: 42px;
  border-color: #DDEAE5;
  border-radius: 13px;
  background: #FCFEFD;
}

.cz-input-wrap .form-control:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(16,185,129,.10);
}

.cz-terms-row {
  margin: 19px 0 14px;
  padding: 0;
  color: #4E625B;
  font-size: 12px;
}

.cz-register-submit {
  min-height: 52px;
  justify-content: center;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(16,185,129,.22);
}

.cz-register-submit svg:last-child {
  margin-left: auto;
}

.cz-register-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 13px;
  color: #71857E;
  font-size: 11px;
}

.cz-register-security svg {
  width: 14px;
}

.cz-welcome-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #BDEAD7;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 20%, rgba(56,189,248,.15), transparent 28%),
    linear-gradient(135deg, #F0FFF8, #F7FCFF);
  box-shadow: var(--shadow-sm);
}

.cz-welcome-card::after {
  content: '';
  position: absolute;
  width: 170px;
  height: 170px;
  right: -70px;
  bottom: -90px;
  border: 24px solid rgba(16,185,129,.08);
  border-radius: 50%;
}

.cz-welcome-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #10B981, #38BDF8);
  box-shadow: 0 14px 28px rgba(16,185,129,.22);
}

.cz-welcome-icon svg {
  width: 27px;
}

.cz-welcome-copy {
  position: relative;
  z-index: 1;
}

.cz-welcome-copy h2 {
  margin-top: 5px;
  font-size: clamp(23px, 3vw, 34px);
}

.cz-welcome-copy p {
  max-width: 760px;
  margin-top: 6px;
  color: var(--muted);
}

.cz-welcome-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.cz-pricing-section {
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px);
  border-color: #DCEBE5;
  background:
    radial-gradient(circle at 100% 0%, rgba(56,189,248,.08), transparent 28%),
    #fff;
}

.cz-pricing-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.cz-pricing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #047857;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.cz-pricing-kicker svg {
  width: 16px;
}

.cz-pricing-header h2 {
  max-width: 720px;
  margin-top: 8px;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -.035em;
}

.cz-pricing-header p {
  max-width: 790px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.cz-whatsapp-help {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 205px;
  padding: 12px 14px;
  border: 1px solid #CDEEDD;
  border-radius: 16px;
  background: #F4FFF9;
}

.cz-whatsapp-help > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: #fff;
  background: #25D366;
}

.cz-whatsapp-help svg {
  width: 19px;
}

.cz-whatsapp-help strong,
.cz-whatsapp-help small {
  display: block;
}

.cz-whatsapp-help strong {
  font-size: 12px;
}

.cz-whatsapp-help small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.cz-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 15px;
  align-items: stretch;
}

.cz-price-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #DFEBE6;
  border-radius: 21px;
  background: linear-gradient(180deg, #fff, #FCFEFD);
  box-shadow: 0 8px 20px rgba(35,78,63,.05);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.cz-price-card:hover {
  z-index: 2;
  border-color: #9FDBC4;
  box-shadow: 0 18px 34px rgba(35,78,63,.11);
  transform: translateY(-3px);
}

.cz-price-card.recommended {
  border-color: #10B981;
  box-shadow: 0 16px 34px rgba(16,185,129,.13);
}

.cz-price-card.current {
  background: linear-gradient(180deg, #F3FFF9, #fff);
}

.cz-recommended-badge {
  position: absolute;
  top: -11px;
  right: 15px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #0F9F75, #10B981);
  box-shadow: 0 8px 18px rgba(16,185,129,.20);
  font-size: 10px;
  font-weight: 900;
}

.cz-recommended-badge svg {
  width: 12px;
}

.cz-price-top {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.cz-plan-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #047857;
  background: #E6F9F1;
}

.cz-plan-icon svg {
  width: 20px;
}

.cz-price-top h3 {
  font-size: 17px;
}

.cz-price-top p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.cz-plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 18px 0 14px;
}

.cz-plan-price strong {
  color: #075E4A;
  font-family: 'Manrope', sans-serif;
  font-size: 27px;
  letter-spacing: -.035em;
}

.cz-plan-price span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.cz-plan-features {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #49615A;
  font-size: 12px;
}

.cz-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.cz-plan-features svg {
  flex: 0 0 auto;
  width: 16px;
  color: #10B981;
  stroke-width: 3;
}

.cz-plan-action {
  display: flex;
  margin-top: auto;
  padding-top: 18px;
}

.cz-plan-action .btn,
.cz-current-plan,
.cz-free-available {
  width: 100%;
  min-height: 42px;
  justify-content: center;
}

.cz-whatsapp-button {
  color: #fff;
  border-color: #20B857;
  background: linear-gradient(135deg, #20B857, #25D366);
  box-shadow: 0 10px 22px rgba(37,211,102,.20);
}

.cz-whatsapp-button:hover {
  color: #fff;
  border-color: #169D48;
  background: linear-gradient(135deg, #169D48, #20B857);
}

.cz-current-plan,
.cz-free-available {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #047857;
  background: #E8FAF2;
  font-size: 12px;
  font-weight: 900;
}

.cz-current-plan svg,
.cz-free-available svg {
  width: 17px;
}

.cz-pricing-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #E7F0EC;
  color: #667B74;
  font-size: 11px;
  text-align: center;
}

.cz-pricing-note svg {
  flex: 0 0 auto;
  width: 16px;
  color: #10B981;
}

#planes-campozen,
#resumen-operacion {
  scroll-margin-top: 96px;
}

@media (max-width: 1120px) {
  .cz-register-layout {
    grid-template-columns: minmax(330px, .8fr) minmax(500px, 1.2fr);
  }

  .cz-showcase-features {
    grid-template-columns: 1fr;
  }

  .cz-showcase-features > div {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
  }

  .cz-showcase-features > div > span {
    grid-row: span 2;
    margin-bottom: 0;
  }
}

@media (max-width: 900px) {
  .cz-register-layout {
    display: block;
  }

  .cz-register-showcase {
    min-height: auto;
    padding: 28px 22px 36px;
  }

  .cz-showcase-copy {
    margin: 44px 0 30px;
  }

  .cz-showcase-copy h1 {
    font-size: clamp(36px, 9vw, 54px);
  }

  .cz-showcase-features {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }

  .cz-showcase-features > div {
    display: block;
  }

  .cz-showcase-features > div > span {
    margin-bottom: 11px;
  }

  .cz-register-panel {
    padding: 26px 16px 42px;
  }

  .cz-register-card {
    margin-top: -24px;
  }

  .cz-welcome-card {
    grid-template-columns: auto 1fr;
  }

  .cz-welcome-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .cz-pricing-header {
    flex-direction: column;
  }
}

@media (max-width: 650px) {
  .cz-register-showcase {
    padding: 24px 18px 48px;
  }

  .cz-register-brand small,
  .cz-showcase-trust {
    display: none;
  }

  .cz-showcase-copy {
    margin: 36px 0 0;
  }

  .cz-showcase-copy > p {
    font-size: 15px;
  }

  .cz-showcase-features {
    grid-template-columns: 1fr;
  }

  .cz-showcase-features > div:nth-child(n+2) {
    display: none;
  }

  .cz-register-panel {
    padding: 0 0 30px;
    background: #F4FBF8;
  }

  .cz-register-card {
    width: 100%;
    margin-top: -18px;
    padding: 25px 18px 28px;
    border-right: 0;
    border-left: 0;
    border-radius: 25px 25px 0 0;
    box-shadow: 0 -12px 32px rgba(33,82,65,.10);
  }

  .cz-free-plan-box {
    grid-template-columns: auto 1fr;
  }

  .cz-free-price {
    grid-column: 2;
    text-align: left;
  }

  .cz-free-price b,
  .cz-free-price small {
    display: inline;
  }

  .cz-free-price small {
    margin-left: 5px;
  }

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

  .cz-register-form-grid .full {
    grid-column: auto;
  }

  .cz-welcome-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .cz-welcome-actions,
  .cz-welcome-actions .btn {
    width: 100%;
  }

  .cz-welcome-actions .btn {
    justify-content: center;
  }

  .cz-pricing-section {
    padding: 22px 15px;
    border-radius: 20px;
  }

  .cz-whatsapp-help {
    width: 100%;
  }

  .cz-pricing-grid {
    grid-template-columns: 1fr;
  }

  .cz-price-card {
    padding: 19px;
  }
}

/* CampoZen 2.3: zoom de fotografías */
[data-image-zoom] { cursor: zoom-in; }
.image-lightbox { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 18px; pointer-events: none; opacity: 0; transition: opacity .18s ease; }
.image-lightbox.open { pointer-events: auto; opacity: 1; }
.image-lightbox-backdrop { position: absolute; inset: 0; background: rgba(7, 23, 18, .88); backdrop-filter: blur(9px); }
.image-lightbox-dialog { position: relative; z-index: 1; width: min(1180px, 96vw); height: min(860px, 92vh); display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 24px; background: rgba(18, 34, 29, .92); box-shadow: 0 30px 90px rgba(0,0,0,.42); }
.image-lightbox-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 11px 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.image-lightbox-toolbar button { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; color: white; background: rgba(255,255,255,.08); font-family: 'Manrope'; font-size: 20px; font-weight: 800; }
.image-lightbox-toolbar button:hover { background: rgba(255,255,255,.15); }
.image-lightbox-toolbar [data-lightbox-reset] { min-width: 74px; font-size: 12px; }
.image-lightbox-toolbar .image-lightbox-close { margin-left: 8px; color: #FFE3E3; background: rgba(239,68,68,.18); }
.image-lightbox-stage { min-height: 0; display: grid; place-items: center; overflow: auto; padding: 24px; }
.image-lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; transform-origin: center; transition: transform .14s ease; user-select: none; -webkit-user-drag: none; }
.detail-photo[data-image-zoom] { position: relative; overflow: hidden; }
.detail-photo[data-image-zoom]::after { content: '＋'; position: absolute; right: 5px; bottom: 5px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: white; background: rgba(8, 75, 57, .78); font-weight: 900; box-shadow: 0 4px 12px rgba(0,0,0,.16); }
.table-avatar img[data-image-zoom] { transition: transform .2s ease; }
.table-avatar:hover img[data-image-zoom] { transform: scale(1.08); }

/* CampoZen Comunidad */
.marketplace-public-body { min-height: 100vh; background: #F7FCFA; }
.marketplace-public-container { width: min(1240px, calc(100% - 36px)); margin: 0 auto; }
.marketplace-public-header { position: sticky; top: 0; z-index: 80; border-bottom: 1px solid rgba(221,235,229,.9); background: rgba(255,255,255,.92); backdrop-filter: blur(18px); }
.marketplace-nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.marketplace-main-links { display: flex; align-items: center; gap: 8px; }
.marketplace-main-links a { padding: 10px 13px; border-radius: 11px; color: #60716B; font-weight: 800; }
.marketplace-main-links a:hover, .marketplace-main-links a.active { color: var(--primary-dark); background: var(--primary-soft); }
.marketplace-public-actions { display: flex; align-items: center; gap: 9px; }

.marketplace-hero { position: relative; overflow: hidden; padding: 72px 0 62px; color: white; background: linear-gradient(132deg,#075D48 0%,#0D9C70 54%,#2AAFD7 100%); }
.marketplace-hero::before { content: ''; position: absolute; inset: 0; opacity: .16; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.65) 1px, transparent 0); background-size: 26px 26px; mask-image: linear-gradient(to bottom, black, transparent); }
.marketplace-hero::after { content: ''; position: absolute; width: 560px; height: 560px; right: -190px; top: -250px; border: 90px solid rgba(255,255,255,.08); border-radius: 50%; }
.marketplace-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.18fr) minmax(360px,.82fr); gap: 58px; align-items: center; }
.marketplace-hero-copy h1 { max-width: 760px; margin-top: 18px; font-size: clamp(42px,6vw,78px); line-height: .98; letter-spacing: -.055em; }
.marketplace-hero-copy > p { max-width: 690px; margin-top: 20px; color: rgba(255,255,255,.84); font-size: 19px; line-height: 1.65; }
.marketplace-hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.11); font-family: 'Manrope'; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.marketplace-hero-badge svg { width: 17px; }
.marketplace-search-panel { display: grid; grid-template-columns: minmax(210px,1.15fr) minmax(190px,.85fr) auto; gap: 10px; margin-top: 31px; padding: 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; background: rgba(255,255,255,.13); box-shadow: 0 20px 50px rgba(4,64,47,.24); backdrop-filter: blur(14px); }
.marketplace-search-field { min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border-radius: 14px; background: white; }
.marketplace-search-field svg { flex: 0 0 auto; width: 19px; color: var(--primary-dark); }
.marketplace-search-field input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-weight: 700; }
.marketplace-search-panel .btn { min-height: 52px; padding-inline: 22px; background: #102F27; box-shadow: none; }
.marketplace-hero-trust { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 20px; color: rgba(255,255,255,.86); font-size: 12px; font-weight: 800; }
.marketplace-hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.marketplace-hero-trust svg { width: 16px; }
.marketplace-hero-visual { position: relative; min-height: 430px; }
.marketplace-hero-orbit { position: absolute; inset: 50% auto auto 50%; width: 230px; height: 230px; display: grid; place-items: center; align-content: center; transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,.26); border-radius: 50%; background: rgba(255,255,255,.13); box-shadow: inset 0 0 0 24px rgba(255,255,255,.04), 0 30px 80px rgba(0,61,48,.28); backdrop-filter: blur(16px); }
.marketplace-hero-orbit::before, .marketplace-hero-orbit::after { content: ''; position: absolute; border: 1px dashed rgba(255,255,255,.25); border-radius: 50%; }
.marketplace-hero-orbit::before { inset: -58px; }
.marketplace-hero-orbit::after { inset: -110px; }
.marketplace-hero-orbit .brand-mark { width: 68px; height: 68px; border-radius: 22px; color: #07845F; background: white; }
.marketplace-hero-orbit strong { margin-top: 13px; font-size: 24px; }
.marketplace-hero-orbit small { margin-top: 4px; color: rgba(255,255,255,.74); }
.marketplace-floating-card { position: absolute; z-index: 2; min-width: 205px; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; background: rgba(255,255,255,.94); color: var(--text); box-shadow: 0 18px 44px rgba(3,70,51,.22); }
.marketplace-floating-card > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--primary-dark); background: var(--primary-soft); }
.marketplace-floating-card small, .marketplace-floating-card strong { display: block; }
.marketplace-floating-card small { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.marketplace-floating-card strong { margin-top: 2px; font-family: 'Manrope'; font-size: 13px; }
.marketplace-floating-card.card-one { left: 0; top: 40px; transform: rotate(-3deg); }
.marketplace-floating-card.card-two { right: 0; top: 125px; transform: rotate(3deg); }
.marketplace-floating-card.card-three { left: 32px; bottom: 30px; transform: rotate(2deg); }
.marketplace-floating-card.card-two > span { color: #B26B00; background: #FFF1D4; }
.marketplace-floating-card.card-three > span { color: #147EA8; background: var(--secondary-soft); }

.marketplace-category-section { position: relative; z-index: 4; margin-top: -25px; }
.marketplace-category-scroll { display: flex; gap: 9px; overflow-x: auto; padding: 11px; border: 1px solid var(--border); border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-md); scrollbar-width: none; }
.marketplace-category-scroll::-webkit-scrollbar { display: none; }
.marketplace-category-chip { flex: 0 0 auto; min-height: 46px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid transparent; border-radius: 14px; color: #5F716A; background: #F8FBFA; font-weight: 800; transition: var(--transition); }
.marketplace-category-chip svg { width: 18px; }
.marketplace-category-chip:hover { color: var(--primary-dark); background: var(--primary-soft); }
.marketplace-category-chip.active { color: white; background: linear-gradient(135deg,var(--primary),#2AC895); box-shadow: 0 9px 20px rgba(16,185,129,.22); }
.marketplace-feed-section { padding: 54px 0 70px; }
.marketplace-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.marketplace-section-heading h2 { font-size: clamp(26px,3vw,38px); letter-spacing: -.035em; }
.marketplace-section-heading p { margin-top: 6px; color: var(--muted); }
.marketplace-section-heading > a, .marketplace-clear-filter { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-dark); font-weight: 800; }
.marketplace-section-heading > a svg, .marketplace-clear-filter svg { width: 17px; }
.marketplace-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.marketplace-card-grid.compact { grid-template-columns: repeat(4,minmax(0,1fr)); }
.marketplace-product-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: white; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.marketplace-product-card:hover { transform: translateY(-4px); border-color: #BFE7D8; box-shadow: 0 20px 44px rgba(35,78,63,.13); }
.marketplace-product-image { position: relative; height: 250px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg,#EAF9F3,#EAF7FD); }
.marketplace-product-image > img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.marketplace-product-card:hover .marketplace-product-image > img { transform: scale(1.04); }
.marketplace-product-image > span:not(.marketplace-image-category):not(.marketplace-verified-badge) { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 22px; color: var(--primary-dark); background: rgba(255,255,255,.8); }
.marketplace-product-image > span svg { width: 31px; }
.marketplace-image-category { position: absolute; left: 13px; top: 13px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; color: #18352C; background: rgba(255,255,255,.92); box-shadow: 0 5px 16px rgba(0,0,0,.08); font-size: 11px; font-weight: 900; }
.marketplace-image-category svg { width: 14px !important; }
.marketplace-verified-badge { position: absolute; right: 13px; bottom: 13px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; color: white; background: rgba(5,150,105,.92); font-size: 10px; font-weight: 900; }
.marketplace-verified-badge svg { width: 13px !important; }
.marketplace-product-body { padding: 17px 18px 18px; }
.marketplace-post-author { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 9px; }
.marketplace-post-author > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(135deg,var(--primary),var(--secondary)); font-family: 'Manrope'; font-size: 12px; font-weight: 900; }
.marketplace-post-author strong, .marketplace-post-author small { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marketplace-post-author strong { font-size: 12px; }
.marketplace-post-author small, .marketplace-post-author time { color: var(--muted); font-size: 10px; }
.marketplace-product-body h3 { margin-top: 15px; font-size: 18px; line-height: 1.3; }
.marketplace-product-body > p { min-height: 42px; margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.marketplace-card-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 17px; padding-top: 15px; border-top: 1px solid #EEF4F1; }
.marketplace-product-price strong, .marketplace-product-price small, .marketplace-product-price em { display: block; }
.marketplace-product-price strong { color: #087B5F; font-family: 'Manrope'; font-size: 21px; }
.marketplace-product-price small { color: var(--muted); font-size: 10px; }
.marketplace-product-price em { width: fit-content; margin-top: 4px; padding: 3px 7px; border-radius: 999px; color: #9A6400; background: #FFF3D8; font-size: 9px; font-style: normal; font-weight: 900; }
.marketplace-card-whatsapp { flex: 0 0 auto; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 14px; color: white; background: #18B97E; box-shadow: 0 9px 18px rgba(24,185,126,.22); }
.marketplace-card-whatsapp:hover { transform: translateY(-2px); }
.marketplace-card-whatsapp svg { width: 21px; }
.marketplace-empty-public { display: grid; place-items: center; min-height: 350px; padding: 42px; text-align: center; }
.marketplace-empty-icon { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 25px; color: var(--primary-dark); background: var(--primary-soft); }
.marketplace-empty-icon svg { width: 34px; }
.marketplace-empty-public h3 { margin-top: 18px; font-size: 24px; }
.marketplace-empty-public p { max-width: 560px; margin: 9px 0 20px; color: var(--muted); }
.marketplace-sell-banner { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 70px; padding: 34px 38px; overflow: hidden; border-radius: 28px; color: white; background: linear-gradient(125deg,#075D48,#10B981 64%,#38BDF8); box-shadow: 0 24px 55px rgba(13,130,96,.2); }
.marketplace-sell-banner h2 { max-width: 730px; font-size: clamp(27px,3vw,40px); }
.marketplace-sell-banner p { max-width: 760px; margin-top: 8px; color: rgba(255,255,255,.82); }
.marketplace-sell-banner .eyebrow { color: #CFF9EA; }
.marketplace-sell-banner .btn { flex: 0 0 auto; color: #087B5F; background: white; }
.marketplace-public-footer { border-top: 1px solid var(--border); background: white; }
.marketplace-public-footer > div { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 22px; color: var(--muted); font-size: 12px; }
.marketplace-public-footer > div > div:last-child { display: flex; gap: 16px; color: var(--primary-dark); font-weight: 800; }

/* Formulario y administración de publicaciones */
.marketplace-editor { overflow: hidden; }
.marketplace-form-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.6fr); gap: 28px; align-items: start; }
.marketplace-photo-panel { position: sticky; top: 105px; }
.marketplace-photo-panel > label:first-child { display: block; margin-bottom: 8px; font-weight: 800; }
.marketplace-photo-preview { width: 100%; aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; margin-bottom: 12px; padding: 0; border: 1px dashed #AEDFCC; border-radius: 20px; color: var(--primary-dark); background: linear-gradient(145deg,#EFFBF6,#EEF9FE); }
.marketplace-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.marketplace-photo-preview > span { display: grid; place-items: center; padding: 20px; text-align: center; }
.marketplace-photo-preview > span svg { width: 40px; height: 40px; margin-bottom: 10px; }
.marketplace-photo-preview > span strong, .marketplace-photo-preview > span small { display: block; }
.marketplace-photo-preview > span small { max-width: 230px; margin-top: 5px; color: var(--muted); }
.marketplace-check-group { display: flex; align-items: flex-end; padding-bottom: 9px; }
.marketplace-manage-grid { display: grid; gap: 14px; padding: 0 22px 22px; }
.marketplace-manage-card { display: grid; grid-template-columns: 150px minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: 18px; background: #FCFEFD; }
.marketplace-manage-photo { position: relative; width: 150px; height: 112px; display: grid; place-items: center; overflow: hidden; padding: 0; border: 0; border-radius: 15px; color: var(--primary-dark); background: var(--primary-soft); }
.marketplace-manage-photo img { width: 100%; height: 100%; object-fit: cover; }
.marketplace-manage-photo > span:not(.marketplace-card-status) svg { width: 32px; }
.marketplace-card-status { position: absolute; left: 8px; bottom: 8px; }
.marketplace-category { display: inline-flex; align-items: center; gap: 6px; width: fit-content; color: var(--primary-dark); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.marketplace-category svg { width: 15px; }
.marketplace-manage-copy h3 { margin-top: 5px; font-size: 18px; }
.marketplace-manage-price { margin-top: 7px; color: var(--primary-dark); font-family: 'Manrope'; font-size: 19px; font-weight: 800; }
.marketplace-manage-price small { margin-left: 4px; color: var(--muted); font-family: 'Nunito'; font-size: 11px; }
.marketplace-manage-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 7px; color: var(--muted); font-size: 11px; }
.marketplace-manage-meta span, .marketplace-linked-animal { display: inline-flex; align-items: center; gap: 5px; }
.marketplace-manage-meta svg, .marketplace-linked-animal svg { width: 14px; }
.marketplace-linked-animal { width: fit-content; margin-top: 8px; padding: 5px 8px; border-radius: 9px; color: #17779E; background: var(--secondary-soft); font-size: 10px; font-weight: 800; }
.marketplace-manage-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.marketplace-manage-actions form { display: flex; flex-wrap: wrap; gap: 7px; }

/* Detalle público */
.marketplace-detail-page { padding: 28px 0 68px; }
.marketplace-breadcrumb { display: flex; align-items: center; gap: 7px; margin-bottom: 18px; color: var(--muted); font-size: 12px; }
.marketplace-breadcrumb svg { width: 14px; }
.marketplace-breadcrumb a { color: var(--primary-dark); font-weight: 800; }
.marketplace-breadcrumb span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.marketplace-status-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; padding: 13px 16px; border: 1px solid #F6D69C; border-radius: 14px; color: #8A5A00; background: #FFF8E8; font-weight: 800; }
.marketplace-status-banner.sold { border-color: #BFE7D8; color: #087B5F; background: #EEFBF6; }
.marketplace-detail-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(360px,.65fr); gap: 22px; align-items: start; }
.marketplace-detail-media { overflow: hidden; }
.marketplace-detail-image { position: relative; width: 100%; height: min(650px,67vh); display: grid; place-items: center; overflow: hidden; padding: 0; border: 0; background: #EAF6F1; }
.marketplace-detail-image img { width: 100%; height: 100%; object-fit: contain; background: #F3F8F6; }
.marketplace-detail-image > span { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 12px; color: white; background: rgba(17,48,39,.78); font-size: 11px; font-weight: 900; backdrop-filter: blur(7px); }
.marketplace-detail-image > span svg { width: 16px; }
.marketplace-detail-placeholder { height: 570px; display: grid; place-items: center; align-content: center; gap: 9px; color: var(--primary-dark); background: linear-gradient(145deg,#EAF9F3,#EAF7FD); }
.marketplace-detail-placeholder svg { width: 64px; height: 64px; }
.marketplace-detail-info { position: sticky; top: 99px; overflow: hidden; }
.marketplace-detail-info-inner { padding: 25px; }
.marketplace-detail-info h1 { margin-top: 10px; font-size: clamp(28px,3vw,40px); letter-spacing: -.04em; }
.marketplace-price-large { margin-top: 17px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.marketplace-price-large strong, .marketplace-price-large span { display: block; }
.marketplace-price-large strong { color: #087B5F; font-family: 'Manrope'; font-size: 33px; line-height: 1; }
.marketplace-price-large span { margin-top: 5px; color: var(--muted); }
.marketplace-price-large em { display: inline-block; margin-top: 8px; padding: 5px 9px; border-radius: 999px; color: #996000; background: #FFF1D4; font-size: 10px; font-style: normal; font-weight: 900; }
.marketplace-seller-box { display: flex; align-items: center; gap: 11px; margin-top: 18px; padding: 13px; border: 1px solid #DFEEE8; border-radius: 15px; background: #F9FDFC; }
.marketplace-seller-avatar { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(135deg,var(--primary),var(--secondary)); font-family: 'Manrope'; font-weight: 900; }
.marketplace-seller-box small, .marketplace-seller-box strong, .marketplace-seller-box div > span { display: block; }
.marketplace-seller-box small, .marketplace-seller-box div > span { color: var(--muted); font-size: 10px; }
.marketplace-seller-box strong { font-size: 14px; }
.marketplace-detail-meta-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.marketplace-detail-meta-list > div { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 11px; border-radius: 13px; background: #F7FAF9; }
.marketplace-detail-meta-list > div > svg { flex: 0 0 auto; width: 18px; color: var(--primary-dark); }
.marketplace-detail-meta-list small, .marketplace-detail-meta-list strong { display: block; min-width: 0; }
.marketplace-detail-meta-list small { color: var(--muted); font-size: 9px; text-transform: uppercase; font-weight: 800; }
.marketplace-detail-meta-list strong { overflow: hidden; margin-top: 2px; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.marketplace-whatsapp-cta { width: 100%; min-height: 58px; justify-content: flex-start; margin-top: 18px; color: white; background: linear-gradient(135deg,#15A96F,#24C58B); box-shadow: 0 12px 25px rgba(21,169,111,.23); }
.marketplace-whatsapp-cta > span { text-align: left; }
.marketplace-whatsapp-cta strong, .marketplace-whatsapp-cta small { display: block; }
.marketplace-whatsapp-cta small { margin-top: 1px; color: rgba(255,255,255,.78); font-family: 'Nunito'; font-size: 10px; }
.marketplace-whatsapp-cta + .btn { margin-top: 9px; }
.marketplace-safety-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 13px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.marketplace-safety-note svg { flex: 0 0 auto; width: 15px; margin-top: 1px; color: #B87900; }
.marketplace-detail-content-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(330px,.65fr); gap: 22px; margin-top: 22px; align-items: start; }
.marketplace-description-text { color: #465A53; font-size: 15px; line-height: 1.85; }
.marketplace-animal-summary { display: flex; align-items: center; gap: 12px; }
.marketplace-animal-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--primary-dark); background: var(--primary-soft); }
.marketplace-animal-summary strong, .marketplace-animal-summary span { display: block; }
.marketplace-animal-summary span { color: var(--muted); font-size: 12px; }
.marketplace-more-section { margin-top: 48px; }
.marketplace-card-grid.compact .marketplace-product-image { height: 185px; }
.marketplace-card-grid.compact .marketplace-product-body { padding: 14px; }
.marketplace-card-grid.compact .marketplace-product-body h3 { margin-top: 7px; font-size: 15px; }

@media (max-width: 1080px) {
  .marketplace-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .marketplace-card-grid.compact { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .marketplace-hero-grid { grid-template-columns: 1fr; }
  .marketplace-hero-visual { display: none; }
  .marketplace-detail-grid, .marketplace-detail-content-grid { grid-template-columns: 1fr; }
  .marketplace-detail-info { position: static; }
  .marketplace-form-layout { grid-template-columns: 1fr; }
  .marketplace-photo-panel { position: static; }
}

@media (max-width: 760px) {
  .marketplace-public-container { width: min(100% - 24px,1240px); }
  .marketplace-nav { min-height: 68px; gap: 10px; }
  .marketplace-nav .brand small { display: none; }
  .marketplace-nav .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .marketplace-public-actions { gap: 6px; }
  .marketplace-public-actions .btn { min-height: 39px; padding: 8px 11px; font-size: 11px; }
  .marketplace-hero { padding: 48px 0 52px; }
  .marketplace-hero-copy h1 { font-size: clamp(39px,12vw,57px); }
  .marketplace-hero-copy > p { font-size: 16px; }
  .marketplace-search-panel { grid-template-columns: 1fr; }
  .marketplace-search-panel .btn { width: 100%; }
  .marketplace-category-section { margin-top: -22px; }
  .marketplace-feed-section { padding-top: 42px; }
  .marketplace-section-heading { align-items: flex-start; flex-direction: column; }
  .marketplace-card-grid, .marketplace-card-grid.compact { grid-template-columns: 1fr; }
  .marketplace-product-image { height: 245px; }
  .marketplace-sell-banner { align-items: flex-start; flex-direction: column; padding: 28px 23px; }
  .marketplace-sell-banner .btn { width: 100%; }
  .marketplace-public-footer > div { align-items: flex-start; flex-direction: column; padding: 25px 0; }
  .marketplace-manage-card { grid-template-columns: 92px minmax(0,1fr); gap: 12px; }
  .marketplace-manage-photo { width: 92px; height: 92px; }
  .marketplace-manage-actions { grid-column: 1/-1; justify-content: flex-start; }
  .marketplace-manage-actions form { width: 100%; }
  .marketplace-detail-page { padding-top: 18px; }
  .marketplace-detail-image { height: 390px; }
  .marketplace-detail-meta-list { grid-template-columns: 1fr; }
  .marketplace-detail-info-inner { padding: 20px; }
  .marketplace-detail-info h1 { font-size: 29px; }
  .marketplace-detail-placeholder { height: 370px; }
  .image-lightbox { padding: 8px; }
  .image-lightbox-dialog { width: 100%; height: 94vh; border-radius: 18px; }
  .image-lightbox-stage { padding: 10px; }
}

/* CampoZen 2.3.1 · Mejora visual de precio y animal enlazado */
.marketplace-money-field {
  width: 100%;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #DCE8E4;
  border-radius: 14px;
  background: #fff;
  transition: var(--transition);
}
.marketplace-money-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(16,185,129,.10);
}
.marketplace-money-icon {
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  color: #087B5F;
  background: linear-gradient(145deg,#EAFBF4,#F3FBF8);
  border-right: 1px solid #DCE8E4;
}
.marketplace-money-icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.35;
}
.marketplace-money-field .form-control {
  min-width: 0;
  min-height: 48px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: 'Manrope';
  font-size: 16px;
  font-weight: 700;
}
.marketplace-money-field .form-control:focus { box-shadow: none; }

.marketplace-animal-card {
  min-width: 0;
  overflow: hidden;
  border-color: #D9ECE5;
  box-shadow: 0 15px 34px rgba(36,78,64,.07);
}
.marketplace-animal-card-head {
  gap: 14px;
  align-items: flex-start;
}
.marketplace-animal-card-head > div { min-width: 0; }
.marketplace-animal-card-head h3 { margin: 0; }
.marketplace-verified-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  padding: 6px 10px;
  border: 1px solid #BDE9DA;
  border-radius: 999px;
  color: #087B5F;
  background: #EBFAF5;
  font-family: 'Manrope';
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.marketplace-verified-badge svg {
  width: 15px;
  height: 15px;
}
.marketplace-animal-card-body { padding-top: 8px; }
.marketplace-animal-profile {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid #E0EFEA;
  border-radius: 18px;
  background: linear-gradient(145deg,#FBFEFD,#F3FBF8);
}
.marketplace-animal-avatar {
  position: relative;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: #087B5F;
  background: linear-gradient(145deg,#DDF8EE,#EAF8FD);
}
.marketplace-animal-avatar > svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.9;
}
.marketplace-animal-avatar.has-photo { cursor: zoom-in; }
.marketplace-animal-avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.marketplace-animal-avatar.has-photo > span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: rgba(8,68,51,.78);
  backdrop-filter: blur(5px);
}
.marketplace-animal-avatar.has-photo > span svg {
  width: 13px;
  height: 13px;
}
.marketplace-animal-copy {
  min-width: 0;
  flex: 1;
}
.marketplace-animal-copy > strong,
.marketplace-animal-copy > span { display: block; }
.marketplace-animal-copy > strong {
  overflow: hidden;
  margin-top: 5px;
  color: #173F33;
  font-family: 'Manrope';
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.marketplace-animal-copy > span:last-child {
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.marketplace-animal-kicker {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  width: fit-content;
  color: #168268 !important;
  font-size: 9px !important;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.marketplace-animal-kicker svg {
  width: 13px;
  height: 13px;
}
.marketplace-animal-facts {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(132px,1fr));
  gap: 10px;
  margin-top: 12px;
}
.marketplace-animal-fact {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #E2EEE9;
  border-radius: 15px;
  background: #FCFEFD;
}
.marketplace-animal-fact-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #087B5F;
  background: #E8F8F2;
}
.marketplace-animal-fact-icon svg {
  width: 16px;
  height: 16px;
}
.marketplace-animal-fact > div { min-width: 0; }
.marketplace-animal-fact small,
.marketplace-animal-fact strong { display: block; }
.marketplace-animal-fact small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.marketplace-animal-fact strong {
  overflow: hidden;
  margin-top: 2px;
  color: #243F36;
  font-family: 'Manrope';
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .marketplace-animal-card-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .marketplace-verified-badge { align-self: flex-start; }
  .marketplace-animal-profile { padding: 12px; }
  .marketplace-animal-avatar {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }
  .marketplace-animal-copy > strong { font-size: 16px; }
  .marketplace-animal-facts { grid-template-columns: 1fr; }
}


/* CampoZen patch: login identity + marketplace editing */
.auth-brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.1;
}
.auth-brand-copy strong,
.auth-brand-copy small { display: block; }
.auth-brand-copy strong {
  margin: 0;
  font-family: 'Manrope';
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.025em;
}
.auth-brand-copy small {
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.marketplace-owner-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 12px;
  padding: 8px 10px;
  border: 1px solid #BFE8D9;
  border-radius: 12px;
  background: linear-gradient(135deg,#F0FCF7,#F5FBFE);
}
.marketplace-owner-toolbar > span,
.marketplace-owner-toolbar > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Manrope';
  font-size: 10px;
  font-weight: 800;
}
.marketplace-owner-toolbar > span { color: #397064; }
.marketplace-owner-toolbar > a {
  min-height: 31px;
  padding: 6px 10px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg,#0EA978,#20C997);
  box-shadow: 0 7px 16px rgba(16,185,129,.18);
}
.marketplace-owner-toolbar svg { width: 14px; height: 14px; }
.marketplace-owner-toolbar > a:hover { transform: translateY(-1px); }

.marketplace-owner-detail-actions {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}
.marketplace-edit-button { white-space: nowrap; }
.marketplace-editing-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #BDE9D9;
  border-radius: 16px;
  color: #165D4A;
  background: linear-gradient(135deg,#EEFCF6,#F4FBFE);
  box-shadow: 0 10px 24px rgba(30,90,70,.06);
}
.marketplace-editing-notice > svg {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 12px;
  color: #087B5F;
  background: #DDF7ED;
}
.marketplace-editing-notice div { min-width: 0; }
.marketplace-editing-notice strong,
.marketplace-editing-notice span { display: block; }
.marketplace-editing-notice strong {
  font-family: 'Manrope';
  font-size: 13px;
  font-weight: 800;
}
.marketplace-editing-notice span {
  margin-top: 2px;
  color: #688078;
  font-size: 11px;
}

@media (max-width: 600px) {
  .marketplace-owner-toolbar { align-items: stretch; flex-direction: column; }
  .marketplace-owner-toolbar > a { justify-content: center; }
  .marketplace-editing-notice { align-items: flex-start; padding: 13px; }
}
