:root {
  /* Colors */
  --color-primary: #0f6fe8; /* main blue cards/buttons */
  --color-primary-light: #1f8bff;
  --color-primary-dark: #0541a8;

  --color-accent-green: #16a34a; /* install-on-phone bar */
  --color-accent-yellow: #fbbf24; /* wallet amount highlight */
  --color-accent-purple: #6d28d9; /* browser/header strip in mobile menu */

  /* --color-sidebar-bg: #101010; cool dark for left nav background */
  --color-sidebar-bg: #020b26; /* left nav background */
  --color-sidebar-active-bg: #0f172a;
  --color-sidebar-icon: #e5e7eb;

  --color-bg-body: #f4f6fb; /* main page background */
  --color-bg-card: #ffffff;
  --color-bg-card-soft: #f9fafb;
  --color-bg-app: #e5e2ff;

  --color-border-subtle: #e5e7eb;
  --color-border-soft: #dde1eb;

  --color-text-main: #111827;
  --color-text-muted: #6b7280;
  --color-text-on-primary: #ffffff;
  --color-text-on-dark: #f9fafb;
  --color-text-white: #f9fafb;


  --color-success: #16a34a;
  --color-warning: #f97316; /* e.g. OUT OF STOCK tag */
  --color-danger: #dc2626;

  /* Layout & spacing */
  --layout-page-max-width: 1200px;
  --layout-sidebar-width-desktop: 240px;
  --layout-navbar-height-mobile: 60px;

  --space-2xs: 0.25rem; /* 4px */
  --space-xs: 0.375rem; /* 6px */
  --space-sm: 0.5rem;   /* 8px */
  --space-md: 0.75rem;  /* 12px */
  --space-lg: 1rem;     /* 16px */
  --space-xl: 1.5rem;   /* 24px */
  --space-2xl: 2rem;    /* 32px */

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px; /* card corners */
  --radius-lg: 10px;
  --radius-xlg: 16px;
  --radius-pill: 999px; /* pill buttons like Notifications / Load Wallet */
  --radius-cpill: 8px; /* pill buttons like Notifications / Load Wallet */

  /* Shadows */
  --shadow-soft: 0 4px 10px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 8px 20px rgba(15, 23, 42, 0.08);

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* --font-size-xs: 0.8rem;   /* small labels */
  /* --font-size-sm: 0.95rem;  /* secondary text */
  /* --font-size-md: 1.05rem;  /* body */
  /* --font-size-lg: 1.275rem; /* section titles */
  /* --font-size-xl: 1.7rem;   /* main headings */
    /* v2 */
  --font-size-xs: 0.7rem;   /* small labels */
  --font-size-sm: 0.8rem;  /* secondary text */
  --font-size-md: 1rem;  /* body */
  --font-size-lg: 1.2rem; /* section titles */
  --font-size-xl: 1.6rem;   /* main headings */

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
}
/* fix scrollbar-width incompatible with chrome and others */
a{
  text-decoration: none;
}
body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg-body);
}
@font-face {
  font-family: 'MerriweatherFont';
  src: url('../fonts/Merriweather-Light.woff2') format('woff2'),
       url('../fonts/Merriweather-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'AlegreyaFont';
  src: url('../fonts/Alegreya-Regular.woff2') format('woff2'),
       url('../fonts/Alegreya-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.sitelogo {
  width: 40px;
  height: 40px;
}

.sitelogo-sm {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}
.simple-i-link{
  text-decoration: none;
  color: var(--color-text-main);
  /* margin: 1rem; */
  margin-right: 0px;
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border-subtle);
  gap: 5px;
  transition: all 0.2s ease-in-out;
}
.simple-i-link:hover{
  background-color: var(--color-bg-body);
}
.i-evident-link{
  text-decoration: none !important;
  color: var(--color-sidebar-active-bg);
  background-color: #dde1eb;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease-in-out;
}
.i-evident-link:hover{
  background-color: var(--color-bg-body);
}

/* Generic toggle icon size (used for network/product on/off switches) */
.toggle-icon {
  font-size: 1.5rem;
  line-height: 1;
}
@media screen and (min-width: 650px) and (max-width: 900px) {
  .grid-2-rowfirst{
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
