:root {
  --vrio-ink: #1f2328;
  --vrio-muted: #6b7280;
  --vrio-line: #e6e8ee;
  --vrio-blue: #2d527f;
  --vrio-orange: #ef704c;
  --vrio-green: #0f9f6e;
  --vrio-yellow: #f59e0b;
  --vrio-red: #d9462f;
  --vrio-soft-bg: #f5f3ee;
  --vrio-card: #ffffff;
  --vrio-accent: #2d527f;
  --vrio-radius: 15px;
}

.vrio-manager,
.vrio-manager * { box-sizing: border-box; }
.vrio-fullwidth {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 24px;
  background: var(--vrio-soft-bg);
  color: var(--vrio-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 78vh;
}
.vrio-app-layout {
  width: min(1680px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.vrio-sidebar {
  position: sticky;
  top: 24px;
  min-height: calc(100vh - 48px);
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 24px 70px rgba(18, 24, 38, .08);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
}
.vrio-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  min-height: 44px;
}
.vrio-sidebar-brand img { max-width: 150px; max-height: 46px; object-fit: contain; display: block; }
.vrio-sidebar-brand span { font-size: 32px; line-height: 1; font-weight: 300; }
.vrio-sidebar-brand strong { font-size: 26px; letter-spacing: .02em; }
.vrio-sidebar-brand small { color: var(--vrio-muted); font-size: 12px; margin-left: auto; }
.vrio-user-card {
  border-radius: 15px;
  background: #f7f7f3;
  padding: 18px;
  text-align: center;
  margin-bottom: 18px;
}
.vrio-user-card img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 12px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .12);
}
.vrio-user-card span { display: block; color: var(--vrio-muted); font-size: 13px; margin-bottom: 3px; }
.vrio-user-card strong { display: block; font-size: 16px; }
.vrio-sidebar nav { display: grid; gap: 8px; margin-top: 4px; }
.vrio-sidebar nav a,
.vrio-admin-shortcut {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6b7280 !important;
  text-decoration: none !important;
  border-radius: 15px;
  padding: 12px 14px;
  font-weight: 700;
  transition: .16s ease;
}
.vrio-sidebar nav a span {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f1f2ee;
  color: var(--vrio-ink);
}
.vrio-sidebar nav a:hover,
.vrio-sidebar nav a.is-active { background: #f5f3ee; color: var(--vrio-ink) !important; transform: translateX(2px); }
.vrio-sidebar nav a.is-active span { background: var(--vrio-accent); color: #fff; }
.vrio-admin-shortcut { margin-top: auto; background: #111827; color: #fff !important; justify-content: center; }
.vrio-app-main { min-width: 0; }

.vrio-notification-stack {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 18px;
}
.vrio-notification-card {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid #c7f0dc;
  border-radius: 15px;
  background: #ecfbf3;
  padding: 14px 16px;
  box-shadow: 0 12px 32px rgba(15, 104, 72, .08);
}
.vrio-notification-icon {
  width: 38px;
  height: 38px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d8f7e8;
}
.vrio-notification-copy { min-width: 0; }
.vrio-notification-copy strong,
.vrio-notification-row strong { display: block; color: #0f5138; }
.vrio-notification-copy span,
.vrio-notification-row span { display: block; color: #4b6f60; font-size: 13px; margin-top: 3px; }
.vrio-notification-list { display: grid; gap: 10px; }
.vrio-notification-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border: 1px solid #edf0f4;
  border-radius: 15px;
  background: #fbfcfe;
  padding: 14px 16px;
}

.vrio-dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.vrio-dashboard-head h1,
.vrio-card h1,
.vrio-card h2,
.vrio-card h3 { margin-top: 0; }
.vrio-dashboard-head h1 { margin-bottom: 4px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.05em; }
.vrio-muted { color: var(--vrio-muted); }
.vrio-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.vrio-kpi {
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.9);
  padding: 24px;
  background: var(--vrio-card);
  box-shadow: 0 18px 50px rgba(31,41,51,.07);
  min-height: 160px;
  position: relative;
  overflow: hidden;
}
.vrio-kpi:after {
  content: "";
  position: absolute;
  right: -40px;
  top: -50px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--kpi-color, var(--vrio-accent)) 15%, transparent);
}
.vrio-kpi span { display: block; color: #334155; font-size: 14px; font-weight: 800; margin-bottom: 18px; position: relative; z-index: 1; }
.vrio-kpi strong { display: block; font-size: 42px; line-height: 1; letter-spacing: -.04em; position: relative; z-index: 1; }
.vrio-kpi small { display: block; color: var(--vrio-muted); margin-top: 14px; position: relative; z-index: 1; }
.vrio-kpi em { font-style: normal; font-weight: 800; margin-left: 5px; }
.vrio-kpi .is-above { color: var(--vrio-green); }
.vrio-kpi .is-below { color: var(--vrio-red); }
.vrio-kpi-sent { --kpi-color: #8b5cf6; background: #ede9fe; }
.vrio-kpi-viewed { --kpi-color: #10b981; background: #e8f8f0; }
.vrio-kpi-pending { --kpi-color: #f97316; background: #ffedd5; }
.vrio-kpi-expired { --kpi-color: #ef4444; background: #fee2e2; }

.vrio-card {
  background: var(--vrio-card);
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 15px;
  box-shadow: 0 24px 70px rgba(18, 24, 38, .08);
  padding: 24px;
  margin-bottom: 20px;
}
.vrio-box {
  border-radius: 15px;
  padding: 14px 16px;
  margin: 12px 0 18px;
  border: 1px solid var(--vrio-line);
  background: #fff;
}
.vrio-success { background: #e9fbf1; border-color: #b8efd3; color: #0f6848; }
.vrio-error { background: #fff1f0; border-color: #ffc9c0; color: #9a230f; }
.vrio-alert { background: #fff7ed; border-color: #fed7aa; color: #92400e; }

.vrio-form label { display: block; font-weight: 750; margin-bottom: 14px; }
.vrio-form input[type="text"],
.vrio-form input[type="email"],
.vrio-form input[type="number"],
.vrio-form input[type="color"],
.vrio-form textarea,
.vrio-form select,
.vrio-copy-input,
.vrio-admin-wrap input[type="text"],
.vrio-admin-wrap input[type="number"],
.vrio-admin-wrap input[type="email"],
.vrio-admin-wrap textarea,
.vrio-admin-wrap select {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 14px;
  border: 1px solid #d7dce4;
  border-radius: 14px;
  background: #fff;
  color: var(--vrio-ink);
  min-height: 44px;
  box-shadow: none;
}
.vrio-form textarea,
.vrio-admin-wrap textarea { min-height: 96px; resize: vertical; }
.vrio-form input[type="color"],
.vrio-admin-wrap input[type="color"] { padding: 4px; max-width: 120px; }
.vrio-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vrio-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vrio-admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }

.vrio-button,
.vrio-small-button {
  appearance: none;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 800;
  line-height: 1;
}
.vrio-button { background: var(--vrio-accent); color: #fff !important; padding: 14px 20px; }
.vrio-small-button { background: #f1f2ee; color: #1f2933 !important; padding: 10px 12px; font-size: 13px; }
.vrio-button:hover { filter: brightness(.95); }
.vrio-small-button:hover { background: #e7e9e2; }
.vrio-danger { background: #fff1f0 !important; color: var(--vrio-red) !important; }
.vrio-inline-form { display: inline-block; margin: 2px; }
.vrio-actions { min-width: 220px; }

.vrio-table-wrap { overflow-x: auto; }
.vrio-table { width: 100%; border-collapse: separate; border-spacing: 0 10px; font-size: 14px; }
.vrio-table th,
.vrio-table td { padding: 14px 14px; vertical-align: top; text-align: left; }
.vrio-table th { color: #64748b; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.vrio-table tbody tr { background: #fbfcfe; }
.vrio-table tbody tr td:first-child { border-radius: 15px 0 0 15px; }
.vrio-table tbody tr td:last-child { border-radius: 0 15px 15px 0; }
.vrio-status {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 850;
  background: #eef2f7;
  color: #334155;
}
.vrio-status-sent { background: #e8f1ff; color: #1c4a7a; }
.vrio-status-viewed { background: #e9fbf1; color: #0f6848; }
.vrio-status-expired { background: #fff4e6; color: #944e00; }
.vrio-status-revoked { background: #fff1f0; color: #9a230f; }
.vrio-date-stack { display: grid; gap: 3px; color: #475569; font-size: 13px; }
.vrio-events-details { margin-top: 8px; }
.vrio-events-details summary { cursor: pointer; color: var(--vrio-muted); font-size: 13px; font-weight: 700; }
.vrio-event-list { margin: 8px 0 0 18px; max-width: 440px; }
.vrio-event-list li { margin-bottom: 4px; font-size: 13px; }

.vrio-stepper-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 22px; }
.vrio-stepper-nav span {
  background: #f1f2ee;
  color: #64748b;
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}
.vrio-stepper-nav span.is-active { background: var(--vrio-accent); color: #fff; }
.vrio-stepper.is-enhanced .vrio-step { display: none; }
.vrio-stepper.is-enhanced .vrio-step.is-active { display: block; }
.vrio-stepper-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 18px; border-top: 1px solid var(--vrio-line); }
.vrio-stepper.is-enhanced.is-last-step .vrio-stepper-actions { display: flex; }
.vrio-stepper.is-enhanced.is-last-step [data-vrio-next] { display: none; }
.vrio-stepper.is-enhanced.is-first-step [data-vrio-prev] { visibility: hidden; }
.vrio-final-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 18px; }

.vrio-family-section { border: 1px solid #edf0f4; border-radius: 15px; padding: 18px; margin: 16px 0; background: #fbfcfe; }
.vrio-family-title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.vrio-family-title > span { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 15px; background: #fff; font-size: 24px; }
.vrio-family-title h3 { margin: 0 0 2px; }
.vrio-family-title p { margin: 0; color: var(--vrio-muted); }
.vrio-product-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vrio-product-choice {
  position: relative;
  border: 1px solid var(--vrio-line);
  border-top: 5px solid var(--product-accent, var(--vrio-accent));
  border-radius: 15px;
  padding: 16px;
  background: #fff;
  transition: .15s ease;
}
.vrio-product-choice:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31,41,51,.09); }
.vrio-product-choice-head { margin: 0 !important; cursor: pointer; display: block; }
.vrio-product-choice-head input { float: right; margin-top: 2px; }
.vrio-product-choice-badge { display: inline-block; color: #64748b; font-size: 12px; font-weight: 850; letter-spacing: .08em; margin-bottom: 10px; }
.vrio-product-choice strong { display: block; font-size: 18px; }
.vrio-product-choice em { display: block; color: var(--vrio-muted); font-style: normal; margin-top: 4px; }
.vrio-product-config { display: none; border-top: 1px dashed var(--vrio-line); margin-top: 14px; padding-top: 14px; }
.vrio-product-config.is-visible { display: block; }
.vrio-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vrio-field-block { border: 1px solid #edf0f4; background: #fbfcfe; border-radius: 15px; padding: 12px; }
.vrio-checkline { display: flex !important; align-items: center; gap: 8px; margin-bottom: 10px !important; }
.vrio-checkline input { flex: 0 0 auto; width: auto !important; }
.vrio-checkbox-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 10px; font-size: 13px; }
.vrio-checkbox-group label { margin-bottom: 0; font-weight: 500; }
.vrio-checkbox-group input { width: auto !important; }

.vrio-gate { min-height: 62vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; background: #f5f3ee; }
.vrio-gate-card { max-width: 540px; width: 100%; background: #fff; border: 1px solid var(--vrio-line); border-radius: 15px; padding: 36px; box-shadow: 0 24px 80px rgba(31,41,51,.13); }
.vrio-logo-line { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.vrio-logo-line .vrio-plus { font-size: 32px; line-height: 1; font-weight: 300; }
.vrio-logo-line strong { font-size: 24px; }

.vrio-offer-shell { width: 100%; padding: 20px; background: #f5f5f5; }
.vrio-toolbar { max-width: 1120px; margin: 0 auto 12px; text-align: right; }
.vrio-proposal-page { max-width: 1120px; min-height: 1500px; margin: 0 auto; background: #fff; color: #1f2328; box-shadow: 0 12px 40px rgba(15,23,42,.08); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.vrio-proposal-header { position: relative; height: 285px; background: var(--header-bg); overflow: hidden; padding: 54px 58px; }
.vrio-brand { display: flex; align-items: center; gap: 12px; font-size: 30px; }
.vrio-brand span { font-size: 52px; font-weight: 200; line-height: .6; }
.vrio-brand strong { font-size: 36px; font-weight: 700; }
.vrio-v-mark { position: absolute; top: -150px; left: 52%; transform: translateX(-50%); color: var(--header-accent); font-weight: 900; font-size: 330px; line-height: 1; }
.vrio-header-meta { position: absolute; right: 56px; top: 95px; text-align: right; font-size: 18px; }
.vrio-header-meta strong { display: block; font-weight: 500; }
.vrio-header-meta span { display: block; }
.vrio-proposal-header h1 { position: absolute; left: 58px; bottom: 34px; margin: 0; font-size: 44px; font-weight: 400; }
.vrio-blue-bar { position: absolute; right: 0; bottom: 0; width: 250px; height: 50px; background: var(--header-bar); }
.vrio-client-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 24px 52px 8px; }
.vrio-client-summary div { background: #f8fafc; border: 1px solid #edf0f4; border-radius: 14px; padding: 12px; }
.vrio-client-summary span { display: block; color: #64748b; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.vrio-client-summary strong { display: block; font-size: 15px; }
.vrio-proposal-body { padding: 24px 52px 70px; }
.vrio-module { border: 1px solid #8e949c; border-radius: 6px; padding: 24px 34px; margin-bottom: 26px; background: #fbf9fa; }
.vrio-module-title { margin-bottom: 20px; }
.vrio-module-title span { display: block; font-size: 15px; letter-spacing: .02em; margin-bottom: 6px; }
.vrio-module-title h2 { color: var(--product-accent); margin: 0; font-size: 36px; font-weight: 400; display: inline-block; }
.vrio-module-title em { color: #64748b; font-style: normal; margin-left: 10px; }
.vrio-flags { margin-left: 14px; font-size: 22px; letter-spacing: 5px; }
.vrio-peajes-grid { display: grid; grid-template-columns: 120px 1fr 1fr 1.5fr; gap: 22px; align-items: start; }
.vrio-device-icon { color: #1f2328; padding-top: 20px; }
.vrio-country-list { display: grid; gap: 7px; }
.vrio-country-row { display: grid; grid-template-columns: 28px auto 1fr; gap: 8px; align-items: center; font-size: 15px; color: #40464f; }
.vrio-country-row em { border-bottom: 2px dashed #222; height: 1px; }
.vrio-country-row.is-selected strong { color: #0f6848; }
.vrio-product-lines { display: grid; gap: 12px; padding-top: 2px; }
.vrio-line-item { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: end; font-size: 15px; }
.vrio-line-item span { border-bottom: 2px dashed #222; min-height: 20px; }
.vrio-module-separator { border-top: 2px dashed #222; margin: 26px 0 16px; }
.vrio-footnotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; font-size: 11px; color: #4b5563; }
.vrio-generic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.vrio-generic-field { border: 1px solid #edf0f4; border-radius: 14px; padding: 14px; background: #fff; }
.vrio-generic-field strong { display: block; font-size: 13px; color: #64748b; margin-bottom: 6px; }
.vrio-generic-field span { display: block; font-size: 16px; }
.vrio-proposal-footer { padding: 0 52px 34px; margin-top: 80px; }
.vrio-footer-banner { background: linear-gradient(110deg, #0f172a, #083340); color: #fff; border-radius: 10px; padding: 24px 30px; min-height: 96px; display: flex; flex-direction: column; justify-content: center; }
.vrio-footer-banner span { text-transform: uppercase; font-size: 13px; opacity: .9; }
.vrio-footer-banner strong { font-size: 27px; max-width: 520px; line-height: 1.05; }
.vrio-footer-banner em { font-style: normal; font-size: 12px; opacity: .85; }
.vrio-proposal-footer p { text-align: center; font-size: 12px; color: #4b5563; }
.vrio-preview-shell { padding: 0; background: transparent; }
.vrio-preview-shell .vrio-proposal-page { transform: scale(.56); transform-origin: top left; width: 1120px; margin-bottom: -660px; }

.vrio-admin-tabs .nav-tab { display: inline-flex; align-items: center; gap: 6px; }
.vrio-admin-card h2 .dashicons { color: #2d527f; margin-right: 6px; }
.vrio-admin-wrap .vrio-card { max-width: none; }
.vrio-admin-checks { line-height: 1.9; }
.vrio-media-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.vrio-style-preview { background: var(--vrio-soft-bg); border-radius: 15px; padding: 18px; display: grid; grid-template-columns: 190px 1fr; gap: 14px; }
.vrio-preview-sidebar { background: #fff; border-radius: 15px; padding: 16px; display: grid; gap: 12px; }
.vrio-preview-sidebar img { max-width: 120px; max-height: 44px; object-fit: contain; }
.vrio-preview-card { background: var(--vrio-card); border-radius: 15px; padding: 20px; }
.vrio-preview-card strong,
.vrio-preview-card em,
.vrio-preview-card small { display: block; }
.vrio-preview-card em { font-size: 42px; font-style: normal; font-weight: 850; color: var(--vrio-accent); }

@media (max-width: 1180px) {
  .vrio-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vrio-product-picker { grid-template-columns: 1fr; }
  .vrio-admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .vrio-fullwidth { padding: 12px; }
  .vrio-app-layout { grid-template-columns: 1fr; }
  .vrio-sidebar { position: relative; top: 0; min-height: auto; }
  .vrio-sidebar nav { grid-template-columns: repeat(2, 1fr); }
  .vrio-grid-2,
  .vrio-grid-3,
  .vrio-fields-grid,
  .vrio-kpi-grid,
  .vrio-client-summary { grid-template-columns: 1fr; }
  .vrio-dashboard-head { align-items: flex-start; flex-direction: column; }
  .vrio-notification-card { grid-template-columns: auto 1fr; }
  .vrio-notification-card .vrio-small-button { grid-column: 1 / -1; width: 100%; }
  .vrio-notification-row { align-items: flex-start; flex-direction: column; }
  .vrio-stepper-nav { grid-template-columns: 1fr; }
  .vrio-peajes-grid { grid-template-columns: 1fr; }
  .vrio-preview-shell .vrio-proposal-page { transform: scale(.34); margin-bottom: -980px; }
}
@media print {
  .no-print { display: none !important; }
  .vrio-offer-shell { padding: 0; background: #fff; }
  .vrio-proposal-page { box-shadow: none; max-width: none; width: 100%; }
}
