/* Overview + Settings visual refresh. Existing application colors remain the source of truth. */
:root {
  --surface-2: var(--surface2, #1A1E3F);
  --text-muted: var(--text2, #8A90B8);
  --primary: var(--accent, #6C5CE7);
  --primary-soft: color-mix(in srgb, var(--primary) 15%, transparent);
  --warning: var(--warn, #F5B942);
  --info: var(--accent5, #5B8CFF);
  --price: var(--accent4, #F5A623);
  --os-radius-card: 16px;
}

/* Overview: single card language, complete data retained. */
#page-overview.active {
  display:flex!important;flex-direction:column;gap:24px;width:100%;max-width:1448px;margin-inline:auto;
  padding:20px 24px calc(110px + env(safe-area-inset-bottom));
}
#page-overview,#page-overview * {font-family:'Cairo','Inter',sans-serif;}
#page-overview .page-header {min-height:42px;}
#page-overview .page-header-left h2 {font-family:'Cairo','Inter',sans-serif;font-size:19px;font-weight:600;letter-spacing:0;}
#page-overview .page-header-left p {font-family:'Cairo','Inter',sans-serif;font-size:12px;color:var(--text-muted);font-variant-numeric:tabular-nums;}
#page-overview .kpi-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
#page-overview .kpi {
  --metric:var(--primary);position:relative;display:grid;grid-template-columns:1fr;gap:6px;min-width:0;min-height:154px;padding:16px;
  border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:none;overflow:hidden;transition:transform 150ms ease,border-color 150ms ease;
}
#page-overview .kpi::before {content:"";position:absolute;inset:0 auto auto 0;width:100%;height:100%;pointer-events:none;background:radial-gradient(ellipse at top left,color-mix(in srgb,var(--metric) 4%,transparent),transparent 60%);}
#page-overview .kpi::after {display:none!important;}
#page-overview .kpi:hover {transform:translateY(-1px);border-color:color-mix(in srgb,var(--metric) 26%,var(--border));}
#page-overview .kpi.c1 {--metric:var(--primary);}
#page-overview .kpi.c2 {--metric:var(--info);}
#page-overview .kpi.c3 {--metric:var(--success);}
#page-overview .kpi.c4 {--metric:var(--price);}
#page-overview .kpi.c5 {--metric:var(--danger);}
#page-overview .kpi-top {position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;margin:0;}
#page-overview .kpi-icon {width:36px;height:36px;border:1px solid color-mix(in srgb,var(--metric) 16%,transparent);border-radius:10px;background:color-mix(in srgb,var(--metric) 14%,transparent);color:var(--metric);}
#page-overview .kpi-icon svg {width:19px;height:19px;stroke-width:1.75;}
#page-overview .kpi-trend {font-family:'Cairo','Inter',sans-serif;font-size:12px;font-variant-numeric:tabular-nums;padding:3px 8px;border-radius:999px;background:color-mix(in srgb,var(--success) 12%,transparent);}
#page-overview .kpi-trend.dn {background:color-mix(in srgb,var(--danger) 12%,transparent);}
#page-overview .kpi-val {position:relative;z-index:1;font-family:'Cairo','Inter',sans-serif;font-size:26px;font-weight:700;letter-spacing:0;line-height:1.15;font-variant-numeric:tabular-nums;color:var(--text);}
#page-overview .kpi.c4 .kpi-val {color:var(--price);}
#page-overview .kpi-label {position:relative;z-index:1;margin:0;color:var(--text);font-family:'Cairo','Inter',sans-serif;font-size:13px;font-weight:500;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
#page-overview .kpi-sub {position:relative;z-index:1;margin:0;color:var(--text-muted);font-family:'Cairo','Inter',sans-serif;font-size:12px;font-weight:400;line-height:1.4;font-variant-numeric:tabular-nums;}
#page-overview .kpi-sparkline {position:absolute;inset-inline-end:16px;bottom:14px;width:110px;height:30px;overflow:visible;opacity:.9;}
#page-overview .kpi-sparkline path {fill:none;stroke:var(--price);stroke-width:2;stroke-linecap:round;}
#page-overview .kpi.c4 {padding-inline-end:140px;}
#page-overview .kpi.c4 .kpi-label {white-space:normal;}
#page-overview .insight-row {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:4px 12px;border:1px solid var(--border);border-radius:16px;background:var(--surface);}
#page-overview .insight-card {--metric:var(--primary);display:grid;grid-template-columns:36px minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;column-gap:12px;row-gap:8px;min-width:0;padding:14px 16px;border:0;border-inline-start:1px solid var(--border);border-radius:0;background:transparent;box-shadow:none;}
#page-overview .insight-card:first-child {border-inline-start:0;}
#page-overview .insight-card.ic1 {--metric:var(--primary);}
#page-overview .insight-card.ic2 {--metric:var(--success);}
#page-overview .insight-card.ic3 {--metric:var(--price);}
#page-overview .insight-header {display:contents;}
#page-overview .insight-icon {grid-column:1;grid-row:1/3;display:grid;place-items:center;width:36px;height:36px;border:1px solid color-mix(in srgb,var(--metric) 18%,transparent);border-radius:10px;background:color-mix(in srgb,var(--metric) 14%,transparent);color:var(--metric);}
#page-overview .insight-icon svg {width:19px;height:19px;stroke-width:1.75;}
#page-overview .insight-copy {grid-column:2;grid-row:1/3;min-width:0;}
#page-overview .insight-title {font-family:'Cairo','Inter',sans-serif;font-size:13px;font-weight:600;line-height:1.4;color:var(--text);}
#page-overview .insight-sub {margin:2px 0 0;color:var(--text-muted);font-size:12px;line-height:1.45;}
#page-overview .insight-val {grid-column:3;grid-row:1;font-family:'Cairo','Inter',sans-serif;font-size:20px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--metric)!important;}
#page-overview .rate-progress {grid-column:2/4;grid-row:2;align-self:end;height:4px;border-radius:99px;background:var(--surface-2);overflow:hidden;}
#page-overview .rate-progress i {display:block;width:0;height:100%;border-radius:inherit;background:var(--metric);transition:width 250ms ease;}
#page-overview .panels-row,#page-overview .overview-rates-cities,#page-overview .bottom-row {display:contents;}
#page-overview .panels-row>.panel:first-child {order:3;}
#page-overview .panels-row>.panel:nth-child(2) {order:4;}
#page-overview .overview-city-panel {order:5;}
#page-overview .bottom-row>.panel:first-child {order:6;}
#page-overview .bottom-row>.panel:nth-child(2) {order:7;}
#page-overview .panel {min-width:0;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:none;}
#page-overview .panel-header {min-height:52px;padding:12px 16px;border-bottom:1px solid var(--border);}
#page-overview .panel-title {display:flex;align-items:center;gap:8px;font-family:'Cairo','Inter',sans-serif;font-size:15px;font-weight:600;color:var(--text);}
#page-overview .panel-title svg {width:19px;height:19px;stroke-width:1.75;color:var(--primary);}
#page-overview .panel-badge {padding:4px 10px;border:1px solid var(--border);border-radius:999px;background:var(--surface-2);color:var(--text-muted);font-family:'Cairo','Inter',sans-serif;font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:0;text-transform:none;}
#page-overview .chart-wrap {height:280px;padding:14px 16px;}
#page-overview #lineChart {width:100%;height:100%;touch-action:pan-y;}
#page-overview .overview-chart-tooltip {position:absolute;z-index:5;display:none;min-width:100px;padding:8px 10px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);color:var(--text);box-shadow:0 8px 24px rgba(0,0,0,.25);font-size:12px;line-height:1.4;pointer-events:none;}
#page-overview .overview-chart-tooltip strong {display:block;color:var(--primary);font-variant-numeric:tabular-nums;}
#page-overview .donut-panel {flex-direction:row;justify-content:space-around;align-items:center;gap:14px;min-height:230px;padding:16px;}
#page-overview .donut-wrap {width:160px!important;height:160px!important;flex:0 0 160px;}
#page-overview .donut-center .val {font-family:'Cairo','Inter',sans-serif;font-size:23px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:0;}
#page-overview .donut-center .lbl {font-family:'Cairo','Inter',sans-serif;font-size:11px;letter-spacing:0;color:var(--text-muted);}
#page-overview .legend {gap:0;min-width:0;}
#page-overview .legend-item {min-height:38px;padding:6px 0;border-bottom:1px solid var(--border);font-family:'Cairo','Inter',sans-serif;font-size:12px;}
#page-overview .legend-item:last-child {border-bottom:0;}
#page-overview .legend-left {gap:8px;min-width:0;color:var(--text-muted);white-space:nowrap;}
#page-overview .legend-dot {width:8px;height:8px;}
#page-overview .legend-val {font-family:'Cairo','Inter',sans-serif;font-size:12px;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap;}
#page-overview .overview-city-panel .top-list-item {min-height:44px;padding:8px 14px;gap:12px;border-bottom:1px solid var(--border);}
#page-overview .overview-city-panel .rank {width:24px;font-family:'Cairo','Inter',sans-serif;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;}
#page-overview .overview-city-panel .item-name {font-family:'Cairo','Inter',sans-serif;font-size:13px;font-weight:500;}
#page-overview .overview-city-panel .item-bar-wrap {height:6px;margin-top:5px;border-radius:99px;background:var(--surface-2);}
#page-overview .overview-city-panel .item-bar {border-radius:99px;background:var(--primary)!important;}
#page-overview .overview-city-panel .item-count {font-family:'Cairo','Inter',sans-serif;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;}
#page-overview .bottom-row>.panel:first-child {order:6;}
#page-overview .bottom-row>.panel:nth-child(2) {order:7;}
#page-overview .bottom-row .panel-header {min-height:50px;}
#page-overview .bottom-row .top-list-item {min-height:44px;}
#page-overview .bottom-row .item-name {font-family:'Cairo','Inter',sans-serif;font-size:13px;}
#page-overview .bottom-row .item-count {font-family:'Cairo','Inter',sans-serif;font-size:12px;font-variant-numeric:tabular-nums;}
#page-overview #ov-orders-tbody td {font-family:'Cairo','Inter',sans-serif!important;font-size:12px!important;}
#page-overview #ov-orders-tbody td[style*="Space Mono"] {font-variant-numeric:tabular-nums;}
#page-overview .empty {min-height:90px;color:var(--text-muted);}

@media (min-width:768px) {
  #page-overview.active {display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr));align-content:start;}
  #page-overview>.page-header {grid-column:1/-1;order:0;}
  #page-overview>.kpi-grid {grid-column:1/-1;order:1;}
  #page-overview>.insight-row {grid-column:1/9;grid-row:4;order:4;}
  #page-overview .panels-row>.panel:first-child {grid-column:1/9;grid-row:3;order:2;}
  #page-overview .panels-row>.panel:nth-child(2) {grid-column:9/13;grid-row:3;order:3;}
  #page-overview .overview-rates-cities>.overview-city-panel {grid-column:9/13;grid-row:4;order:5;}
  #page-overview .bottom-row>.panel:first-child {grid-column:1/6;grid-row:5;order:6;}
  #page-overview .bottom-row>.panel:nth-child(2) {grid-column:6/13;grid-row:5;order:7;}
  #page-overview .kpi-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
  #page-overview .kpi.c4 {grid-column:span 2;}
  #page-overview .insight-row {align-self:stretch;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto;padding:4px 12px;}
  #page-overview .insight-card {border-inline-start:1px solid var(--border);border-bottom:0;}
  #page-overview .insight-card:first-child {border-inline-start:0;}
  #page-overview .insight-card:last-child {border-bottom:0;}
  #page-overview .overview-city-panel {height:100%;}
}
@media (min-width:1200px) {
  #page-overview .kpi-grid {grid-template-columns:repeat(5,minmax(0,1fr));}
  #page-overview .kpi.c4 {grid-column:auto;}
  #page-overview .panels-row>.panel:first-child {grid-column:1/9;}
  #page-overview .panels-row>.panel:nth-child(2) {grid-column:9/13;}
  #page-overview>.insight-row {grid-column:1/7;}
  #page-overview .overview-rates-cities>.overview-city-panel {grid-column:7/13;}
}
@media (max-width:767px) {
  #page-overview.active {gap:12px;padding:12px 12px calc(110px + env(safe-area-inset-bottom));}
  #page-overview .kpi-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;order:1;}
  #page-overview .kpi {min-height:144px;padding:12px;}
  #page-overview .kpi.c1 {order:1;}#page-overview .kpi.c2 {order:2;}#page-overview .kpi.c3 {order:3;}#page-overview .kpi.c5 {order:4;}#page-overview .kpi.c4 {grid-column:1/-1;order:5;min-height:124px;padding-inline-end:130px;}
  #page-overview .kpi-val {font-size:24px;}
  #page-overview .kpi-label {font-size:12px;}
  #page-overview .kpi-sub {font-size:11px;}
  #page-overview .kpi-sparkline {width:100px;inset-inline-end:12px;bottom:12px;}
  #page-overview .insight-row {order:2;grid-template-columns:minmax(0,1fr);gap:0;padding:4px 12px;}
  #page-overview .insight-card {grid-template-columns:36px minmax(0,1fr) auto;grid-template-rows:auto auto;min-height:74px;padding:12px 4px;border-inline-start:0;border-bottom:1px solid var(--border);}
  #page-overview .insight-card:last-child {border-bottom:0;}
  #page-overview .insight-title {font-size:13px;}
  #page-overview .insight-sub {font-size:11px;}
  #page-overview .insight-val {font-size:18px;}
  #page-overview .rate-progress {grid-column:2/4;}
  #page-overview .panels-row>.panel:first-child {order:3;}
  #page-overview .panels-row>.panel:nth-child(2) {order:4;}
  #page-overview .overview-city-panel {order:5;}
  #page-overview .bottom-row>.panel:first-child {order:6;}
  #page-overview .bottom-row>.panel:nth-child(2) {order:7;}
  #page-overview .chart-wrap {height:200px;padding:12px 10px;}
  #page-overview .donut-panel {min-height:200px;padding:12px;gap:10px;}
  #page-overview .donut-wrap {width:150px!important;height:150px!important;flex-basis:150px;}
  #page-overview .legend-item {min-height:36px;padding:5px 0;}
  #page-overview .legend-val {font-size:11px;}
  #page-overview .panel-header {padding:11px 12px;}
  #page-overview .panel-title {font-size:14px;}
  #page-overview .bottom-row .table-wrap {overflow-x:auto;}
}

/* Settings section navigation and profile surfaces. */
#page-settings.active {overflow:hidden!important;}
#page-settings .vm-settings-page,#page-settings .vm-settings-page * {font-family:'Cairo','Inter',sans-serif;}
#page-settings .vm-settings-page {min-width:0;max-width:1440px;margin-inline:auto;padding:14px 20px calc(88px + env(safe-area-inset-bottom));gap:16px;direction:rtl;}
#page-settings .vm-settings-hero {display:flex;align-items:center;gap:12px;min-height:48px;margin:0;padding:0;}
#page-settings .vm-settings-hero-icon {display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:1px solid color-mix(in srgb,var(--primary) 20%,var(--border));border-radius:12px;background:var(--primary-soft);color:var(--primary);}
#page-settings .vm-settings-hero-icon>.vm-icon {width:20px;height:20px;stroke-width:1.75;}
#page-settings .vm-settings-hero h1 {margin:0;color:var(--text);font-family:'Cairo','Inter',sans-serif;font-size:16px;font-weight:600;line-height:1.4;}
#page-settings .vm-settings-hero p {margin:1px 0 0;color:var(--text-muted);font-size:12px;line-height:1.4;}
#page-settings .vm-settings-shell {display:grid;grid-template-columns:240px minmax(0,1fr);gap:20px;min-width:0;min-height:0;overflow:hidden;}
#page-settings .vm-settings-tabs {display:flex;flex-direction:column;gap:4px;min-width:0;padding:8px;border:1px solid var(--border);border-radius:16px;background:var(--surface);overflow:auto;}
#page-settings .vm-settings-tabs button {position:relative;display:flex;align-items:center;justify-content:flex-start!important;gap:10px;width:100%;min-height:48px;padding:6px 10px!important;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--text-muted);text-align:start;cursor:pointer;transition:background 150ms ease,color 150ms ease,border-color 150ms ease;}
#page-settings .vm-settings-tabs button>.vm-settings-tab-icon {display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border:0!important;border-radius:10px;background:transparent!important;color:var(--text-muted)!important;}
#page-settings .vm-settings-tab-icon>.vm-icon {width:18px;height:18px;stroke-width:1.75;color:currentColor;}
#page-settings .vm-settings-tabs button>span {display:block!important;min-width:0;text-align:start;}
#page-settings .vm-settings-tabs button strong {display:block;color:inherit;font-size:13px;font-weight:500;line-height:1.4;}
#page-settings .vm-settings-tabs button small {display:block;margin-top:2px;color:var(--text-muted);font-size:11px;line-height:1.35;}
#page-settings .vm-settings-tabs button:hover {background:var(--surface-2);}
#page-settings .vm-settings-tabs button[aria-selected="true"] {border-color:transparent;background:var(--primary-soft);color:var(--primary);}
#page-settings .vm-settings-tabs button[aria-selected="true"]>.vm-settings-tab-icon {color:var(--primary)!important;}
#page-settings .vm-settings-tabs button[aria-selected="true"]::after {content:"";position:absolute;inset-inline-start:0;top:8px;bottom:8px;width:2px;border-radius:99px;background:var(--primary);}
#page-settings .vm-settings-content {min-width:0;min-height:0;padding:0 4px 24px 0;border:0;border-radius:0;background:transparent;box-shadow:none;}
#page-settings .vm-settings-section-head {display:flex;align-items:center;gap:10px;margin:0 0 16px;}
#page-settings .vm-settings-section-icon {display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border:1px solid color-mix(in srgb,var(--primary) 18%,var(--border));border-radius:10px;background:var(--primary-soft);color:var(--primary);}
#page-settings .vm-settings-section-icon svg {width:19px;height:19px;stroke-width:1.75;}
#page-settings .vm-settings-section-head h2 {margin:0;color:var(--text);font-size:16px;font-weight:600;line-height:1.4;}
#page-settings .vm-settings-section-head p {margin:2px 0 0;color:var(--text-muted);font-size:12px;line-height:1.45;}
#page-settings .vm-settings-card,#page-settings .vm-settings-content>.vm-panel {border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:none;}
#page-settings .vm-settings-card {margin:0 0 24px;padding:16px;}
#page-settings .vm-settings-card-title {display:flex;align-items:center;gap:9px;min-width:0;margin:0 0 14px;color:var(--text);}
#page-settings .vm-settings-card-title>svg,#page-settings .vm-settings-card-title>.vm-icon {width:19px;height:19px;flex:none;color:var(--primary);stroke-width:1.75;}
#page-settings .vm-settings-card-title h3 {margin:0;color:var(--text);font-size:15px;font-weight:600;}
#page-settings .vm-settings-profile-header {display:flex;align-items:center;gap:12px;min-width:0;margin-bottom:16px;}
#page-settings .vm-settings-avatar {position:relative;display:grid;place-items:center;flex:0 0 64px;width:64px;height:64px;overflow:visible;border:2px solid color-mix(in srgb,var(--primary) 42%,var(--border));border-radius:50%;background:linear-gradient(135deg,var(--primary),var(--accent-hover));color:#fff;font-size:20px;font-weight:700;}
#page-settings .vm-settings-avatar>img,#page-settings .vm-settings-avatar>.vm-avatar,#page-settings .vm-settings-avatar>.vm-profile-avatar {width:100%;height:100%;border-radius:50%;object-fit:cover;}
#page-settings .vm-settings-avatar>i {position:absolute;inset-inline-end:-2px;inset-block-end:-2px;display:grid;place-items:center;width:23px;height:23px;border:2px solid var(--surface);border-radius:50%;background:var(--surface-2);color:var(--text-muted);}
#page-settings .vm-settings-avatar>i svg {width:13px;height:13px;stroke-width:1.75;}
#page-settings .vm-settings-profile-identity {display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;}
#page-settings .vm-settings-profile-identity>strong {max-width:100%;overflow:hidden;color:var(--text);font-size:16px;font-weight:600;text-overflow:ellipsis;white-space:nowrap;}
#page-settings .vm-settings-profile-identity>small {max-width:100%;overflow:hidden;color:var(--text-muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap;}
#page-settings .vm-settings-role-chip {display:inline-flex;max-width:100%;padding:2px 8px;border:1px solid color-mix(in srgb,var(--primary) 22%,transparent);border-radius:999px;background:var(--primary-soft);color:var(--primary);font-size:11px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
#page-settings .vm-settings-card-action {display:inline-flex;align-items:center;gap:6px;flex:none;min-height:36px;padding:6px 10px!important;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);color:var(--text-muted);font-family:'Cairo','Inter',sans-serif;font-size:12px;}
#page-settings .vm-settings-card-action svg {width:16px;height:16px;stroke-width:1.75;}
#page-settings .vm-settings-card-action:hover {border-color:var(--primary);background:var(--primary-soft);color:var(--primary);}
#page-settings .vm-settings-profile-title {padding-top:14px;border-top:1px solid var(--border);}
#page-settings .vm-settings-profile-fields,#page-settings .vm-settings-store {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
#page-settings .vm-settings-details>div {min-width:0;padding:0;border:0;background:transparent;}
#page-settings .vm-settings-profile-fields dt {display:flex;align-items:center;gap:6px;margin:0 0 5px;color:var(--text-muted);font-size:12px;font-weight:400;}
#page-settings .vm-settings-profile-fields dt svg {width:15px;height:15px;stroke-width:1.75;}
#page-settings .vm-settings-profile-fields dd,#page-settings .vm-settings-store dd {display:flex;align-items:center;min-width:0;min-height:44px;margin:0;padding:8px 11px;overflow:hidden;border:1px solid var(--border);border-radius:12px;background:var(--surface-2);color:var(--text);font-size:14px;font-weight:500;text-overflow:ellipsis;white-space:nowrap;}
#page-settings .vm-settings-store dt,#page-settings .vm-settings-data dt {margin:0 0 5px;color:var(--text-muted);font-size:12px;font-weight:400;}
#page-settings .vm-settings-profile-fields dd[dir="ltr"] {justify-content:flex-start;text-align:left;}
#page-settings .vm-settings-profile-fields dd:focus-within {border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft);}
#page-settings .vm-settings-status {padding:3px 8px;border-radius:999px;background:var(--surface);color:var(--text-muted);font-size:12px;}
#page-settings .vm-settings-status.ok {background:color-mix(in srgb,var(--success) 14%,transparent);color:var(--success);}
#page-settings .vm-settings-split {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;}
#page-settings .vm-settings-split>.vm-settings-card {margin:0;}
#page-settings .vm-settings-service {display:flex;align-items:center;gap:10px;padding:11px 0;border-top:1px solid var(--border);}
#page-settings .vm-settings-service>span {display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:10px;background:var(--primary-soft);color:var(--primary);}
#page-settings .vm-settings-service>span svg {width:18px;height:18px;stroke-width:1.75;}
#page-settings .vm-settings-service>div {display:grid;flex:1;min-width:0;}
#page-settings .vm-settings-service strong {font-size:13px;font-weight:600;}
#page-settings .vm-settings-service small {color:var(--text-muted);font-size:11px;line-height:1.45;}
#page-settings .vm-settings-service>b {color:var(--text-muted);font-size:12px;white-space:nowrap;}
#page-settings .vm-settings-service>b.ok {color:var(--success);}
#page-settings .vm-settings-data {display:grid;gap:9px;}
#page-settings .vm-settings-data>div {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--border);}
#page-settings .vm-settings-data>div:last-child {border-bottom:0;}
#page-settings .vm-settings-data dt,#page-settings .vm-settings-data dd {margin:0;font-size:12px;}
#page-settings .vm-settings-data dd {color:var(--text);}
#page-settings .vm-settings-content :is(input,select,textarea) {font-family:'Cairo','Inter',sans-serif;}
#page-settings .vm-settings-content :is(input,select,textarea):focus {border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft);outline:0;}

/* Consistent mobile navigation labels and glass surface. */
#vm-mobile-nav {height:64px!important;padding:5px!important;border:1px solid var(--border)!important;border-radius:24px!important;background:color-mix(in srgb,var(--surface) 90%,transparent)!important;backdrop-filter:blur(20px)!important;-webkit-backdrop-filter:blur(20px)!important;}
#vm-mobile-nav button {height:52px!important;gap:2px!important;border-radius:16px!important;color:var(--text-muted)!important;font-family:'Cairo','Inter',sans-serif!important;font-size:11px!important;}
#vm-mobile-nav button>span {display:block!important;font-size:11px!important;line-height:1.2;}
#vm-mobile-nav button.active {background:var(--primary-soft)!important;color:var(--primary)!important;}
#vm-mobile-nav button.active .vm-icon {color:var(--primary)!important;}
#vm-mobile-nav .vm-icon {width:20px!important;height:20px!important;stroke-width:1.75;}
@media (max-width:767px) {
  #page-settings .vm-settings-page {gap:10px;padding:10px 12px 0;}
  #page-settings .vm-settings-shell {display:flex;flex:1 1 auto;flex-direction:column;gap:8px;overflow:hidden;}
  #page-settings .vm-settings-tabs {position:relative;display:flex!important;flex:0 0 auto;flex-direction:row;gap:6px;width:100%;margin:0;padding:6px;border-radius:14px;overflow-x:auto!important;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;mask-image:linear-gradient(90deg,transparent 0,#000 4%,#000 96%,transparent 100%);}
  #page-settings .vm-settings-tabs::-webkit-scrollbar {display:none;}
  #page-settings .vm-settings-tabs button {display:flex!important;flex:0 0 auto;width:auto!important;min-width:108px;min-height:44px;height:44px;padding:5px 10px!important;gap:6px;border-radius:999px;scroll-snap-align:start;}
  #page-settings .vm-settings-tabs button>.vm-settings-tab-icon {flex-basis:28px;width:28px;height:28px;border-radius:8px;}
  #page-settings .vm-settings-tab-icon>.vm-icon {width:18px;height:18px;}
  #page-settings .vm-settings-tabs button>span {display:block!important;}
  #page-settings .vm-settings-tabs button strong {font-size:12px;white-space:nowrap;}
  #page-settings .vm-settings-tabs button small {display:none;}
  #page-settings .vm-settings-tabs button[aria-selected="true"]::after {inset-inline:12px;inset-block:auto 0;top:auto;width:auto;height:2px;}
  #page-settings .vm-settings-content {flex:1 1 auto;padding:8px 0 calc(110px + env(safe-area-inset-bottom));}
  #page-settings .vm-settings-split {grid-template-columns:minmax(0,1fr);gap:12px;}
  #page-settings .vm-settings-profile-fields,#page-settings .vm-settings-store {grid-template-columns:minmax(0,1fr);gap:10px;}
  #page-settings .vm-settings-card {padding:14px;margin-bottom:12px;}
  #page-settings .vm-settings-profile-header {gap:9px;}
  #page-settings .vm-settings-card-action {min-width:40px;min-height:40px;padding:6px!important;}
  #page-settings .vm-settings-card-action span {display:none;}
  #page-settings .vm-settings-card-action svg {width:18px;height:18px;}
}
@media (min-width:768px) {
  #page-settings .vm-settings-page {height:100%;}
  #page-settings .vm-settings-tabs button {min-height:58px;}
  #page-settings .vm-settings-content {padding-inline-end:8px;}
}
@media (prefers-reduced-motion:reduce) {
  #page-overview *,#page-overview *::before,#page-overview *::after,#page-settings *,#page-settings *::before,#page-settings *::after,#vm-mobile-nav * {animation:none!important;scroll-behavior:auto!important;transition:none!important;}
}



/* Mobile Settings section picker: compact colored icons only. */
@media(max-width:767px){
  body.vm-upgrade:has(#page-settings.active) .main{padding-bottom:0!important;}
  #page-settings .vm-settings-page{gap:6px!important;}
  #page-settings .vm-settings-content{padding-top:4px!important;}
  #page-settings .vm-settings-tabs{gap:8px!important;justify-content:flex-start!important;}
  #page-settings .vm-settings-tabs button{display:flex!important;flex:0 0 46px!important;width:46px!important;min-width:46px!important;height:46px!important;min-height:46px!important;padding:5px!important;justify-content:center!important;gap:0!important;}
  #page-settings .vm-settings-tabs button>span{display:none!important;}
  #page-settings .vm-settings-tabs button>.vm-settings-tab-icon{flex:0 0 34px!important;width:34px!important;height:34px!important;}
  #page-settings .vm-settings-tabs button>.vm-settings-tab-icon>.vm-icon{width:20px!important;height:20px!important;}
}

/* The fixed mobile dock uses icons only; keep labels available to screen readers. */
@media(max-width:767px){
  #vm-mobile-nav{height:56px!important;}
  #vm-mobile-nav button{height:44px!important;gap:0!important;}
  #vm-mobile-nav button>span{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
  #vm-mobile-nav button>.vm-icon{width:24px!important;height:24px!important;}
}
