/* Google Workspace — Premium Royal White theme (workspace.google.com / Admin console) */
:root {
  /* Brand colors — official Google palette */
  --gw-blue: #1a73e8;
  --gw-blue-hover: #1557b0;
  --gw-blue-pressed: #174ea6;
  --gw-blue-light: #e8f0fe;
  --gw-blue-soft: #f6f9fe;
  --gw-green: #34a853;
  --gw-yellow: #fbbc04;
  --gw-red: #ea4335;
  --gw-red-bg: #fce8e6;
  --gw-green-bg: #e6f4ea;
  --gw-yellow-bg: #fef7e0;
  --gw-purple: #9334e6;

  /* Royal white surfaces */
  --gw-text: #1f1f1f;
  --gw-text-secondary: #444746;
  --gw-text-muted: #747775;
  --gw-border: #e1e3e1;
  --gw-border-light: #f0f1f0;
  --gw-surface: #ffffff;
  --gw-surface-2: #fdfdfd;
  --gw-bg: #f8f9fa;
  --gw-bg-pearl: #f6f8fc;
  --gw-nav-hover: #f0f4f9;
  --gw-nav-active: #d3e3fd;
  --gw-chip: #f0f4f9;

  /* Soft Material elevation — premium white depth */
  --gw-shadow-1: 0 1px 2px 0 rgba(60, 64, 67, 0.12), 0 1px 3px 1px rgba(60, 64, 67, 0.06);
  --gw-shadow-2: 0 1px 3px 0 rgba(60, 64, 67, 0.14), 0 4px 12px 2px rgba(60, 64, 67, 0.08);
  --gw-shadow-3: 0 4px 8px 3px rgba(60, 64, 67, 0.08), 0 1px 3px rgba(60, 64, 67, 0.12);
  --gw-shadow-header: 0 1px 2px 0 rgba(60, 64, 67, 0.08), 0 2px 6px 2px rgba(60, 64, 67, 0.04);
  --gw-shadow-card: 0 1px 2px rgba(60, 64, 67, 0.06), 0 2px 8px rgba(60, 64, 67, 0.05);
  --gw-shadow-focus: 0 0 0 1px var(--gw-blue), 0 0 0 4px rgba(26, 115, 232, 0.16);

  --gw-radius: 8px;
  --gw-radius-md: 12px;
  --gw-radius-lg: 16px;
  --gw-radius-xl: 24px;
  --gw-radius-pill: 999px;
  --gw-header-h: 64px;
  --gw-nav-w: 280px;
  --gw-font: "Google Sans", "Product Sans", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --gw-font-body: "Roboto", "Google Sans Text", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body.gw-body {
  margin: 0;
  color: var(--gw-text);
  background: var(--gw-bg-pearl);
  font: 14px/1.5 var(--gw-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

a { color: var(--gw-blue); text-decoration: none; }
a:hover { color: var(--gw-blue-hover); text-decoration: underline; }

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
}

/* ── Google logo ── */
svg.google-g { width: 40px; height: 40px; max-width: 40px; max-height: 40px; flex-shrink: 0; display: block; }
.gw-signin-logo svg.google-g { width: 48px; height: 48px; max-width: 48px; max-height: 48px; margin: 0 auto 8px; }
.gw-header-guest svg.google-g { width: 24px; height: 24px; max-width: 24px; max-height: 24px; }
.gw-brand svg.google-g { width: 24px; height: 24px; max-width: 24px; max-height: 24px; }

/* ── App shell ── */
.gw-app { min-height: 100vh; display: flex; flex-direction: column; }

@media (max-width: 900px) {
  .form-control, .form-select {
    min-height: 44px;
    font-size: 16px;
    border-radius: 10px;
    padding: 10px 14px;
  }
  .btn {
    min-height: 44px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.1s, opacity 0.15s;
  }
  .btn:active { transform: scale(0.97); opacity: 0.85; }
  .btn-sm { min-height: 36px; font-size: 13px; padding: 6px 14px; border-radius: 8px; }
  .btn-outline-danger:active, .btn-outline-primary:active, .btn-light:active {
    transform: scale(0.97);
  }
  label { font-size: 13px; font-weight: 500; }
  select.form-select { min-height: 44px; }
  .gw-nav-item:active { opacity: 0.7; }
  a { -webkit-touch-callout: none; }
  .premium-email-table tbody tr:active { background: var(--gw-blue-light); }
}

.gw-header {
  height: var(--gw-header-h);
  display: flex;
  align-items: center;
  padding: 0 16px 0 8px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  box-shadow: var(--gw-shadow-header);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}

.gw-header-left,
.gw-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gw-header-left { flex: 0 0 auto; }
.gw-header-center { flex: 1; display: flex; justify-content: center; padding: 0 24px; max-width: 720px; margin: 0 auto; }
.gw-header-right { flex: 0 0 auto; margin-left: auto; }

.gw-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  padding: 6px 10px 6px 8px;
  border-radius: var(--gw-radius);
  transition: background 0.15s ease;
}
.gw-brand:hover { background: var(--gw-nav-hover); }

.gw-brand-text {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  line-height: 1.15;
  font-family: var(--gw-font);
}
.gw-brand-google {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--gw-text-secondary);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}
.gw-brand-product {
  font-size: 22px;
  font-weight: 400;
  color: var(--gw-text-secondary);
  letter-spacing: -0.5px;
  text-transform: none;
}

.gw-header-divider {
  width: 1px;
  height: 24px;
  background: var(--gw-border);
  margin: 0 10px;
  opacity: 0.9;
}

.gw-header-app {
  font-size: 16px;
  font-weight: 400;
  color: var(--gw-text);
  white-space: nowrap;
  font-family: var(--gw-font);
  letter-spacing: 0.1px;
}

.gw-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 720px;
  background: var(--gw-chip);
  border: 1px solid transparent;
  border-radius: var(--gw-radius-xl);
  padding: 0 18px;
  height: 48px;
  transition: background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.gw-search:hover {
  background: #e9eef6;
}
.gw-search:focus-within {
  background: var(--gw-surface);
  box-shadow: var(--gw-shadow-2);
  border-color: transparent;
}
.gw-search .material-symbols-outlined { color: var(--gw-text-secondary); font-size: 22px; }
.gw-search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font: 16px/1.4 var(--gw-font-body);
  color: var(--gw-text);
}
.gw-search input::placeholder { color: var(--gw-text-muted); }

.gw-icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--gw-text-secondary);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.gw-icon-btn:hover {
  background: var(--gw-nav-hover);
  color: var(--gw-text);
}
.gw-icon-btn:focus-visible {
  outline: none;
  box-shadow: var(--gw-shadow-focus);
}

.gw-bell-btn { position: relative; }
.gw-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--gw-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.gw-bell-btn { position: relative; }

.notif-dropdown {
  display: none;
  position: absolute;
  top: calc(var(--gw-header-h) - 4px);
  right: 16px;
  width: 380px;
  max-height: 480px;
  background: var(--gw-surface);
  border: 1px solid var(--gw-border-light);
  border-radius: var(--gw-radius-lg);
  box-shadow: var(--gw-shadow-3);
  z-index: 200;
  overflow: hidden;
}
.notif-dropdown.open { display: block; }

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gw-border-light);
}
.notif-header strong { font-size: 15px; }
.notif-mark-all {
  background: none; border: none; cursor: pointer;
  color: var(--gw-blue, #1a73e8); font-size: 13px; font-weight: 500;
}
.notif-mark-all:hover { text-decoration: underline; }

.notif-list {
  max-height: 400px;
  overflow-y: auto;
}
.notif-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--gw-text-muted);
  font-size: 14px;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gw-border-light);
  cursor: pointer;
  transition: background .15s;
}
.notif-item:hover { background: var(--gw-nav-hover); }
.notif-item.unread { background: var(--gw-blue-soft); }
.notif-item.unread:hover { background: var(--gw-blue-light); }

.notif-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 18px;
  color: #fff;
}
.notif-icon.payment { background: var(--gw-green, #34a853); }
.notif-icon.email { background: var(--gw-blue, #4285f4); }
.notif-icon.warning { background: var(--gw-orange, #fbbc04); color: #333; }
.notif-icon.info { background: #5f6368; }
.notif-icon.success { background: var(--gw-green, #34a853); }
.notif-icon.error { background: var(--gw-red, #ea4335); }

.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 13px; font-weight: 600; color: var(--gw-text); margin-bottom: 2px; }
.notif-msg { font-size: 12px; color: var(--gw-text-secondary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-time { font-size: 11px; color: var(--gw-text-muted); margin-top: 4px; }

.notif-sound {
  position: fixed; left: -9999px; top: -9999px;
  width: 0; height: 0; overflow: hidden;
}

@media (max-width: 480px) {
  .notif-dropdown { width: calc(100vw - 16px); right: 8px; }
}

.gw-account {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--gw-radius-pill);
  cursor: pointer;
  margin-left: 4px;
  text-decoration: none !important;
  transition: background 0.15s ease;
}
.gw-account:hover { background: var(--gw-nav-hover); }

.gw-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(145deg, #4285f4 0%, #1a73e8 55%, #174ea6 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(26, 115, 232, 0.25);
}
.gw-avatar-logo {
  background: var(--gw-surface);
  border: 1px solid var(--gw-border);
  box-shadow: none;
}
.gw-avatar-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gw-account-name {
  font-size: 14px;
  color: var(--gw-text);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Nav + main ── */
.gw-shell { display: flex; flex: 1; min-height: calc(100vh - var(--gw-header-h)); position: relative; }

.gw-nav {
  width: var(--gw-nav-w);
  background: var(--gw-surface);
  border-right: 1px solid var(--gw-border-light);
  display: flex;
  flex-direction: column;
  padding: 12px 0 8px;
  position: sticky;
  top: var(--gw-header-h);
  height: calc(100vh - var(--gw-header-h));
  overflow-y: auto;
}

.gw-nav-list { display: flex; flex-direction: column; gap: 2px; padding: 0 12px 0 0; flex: 1; }

.gw-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px 0 24px;
  height: 48px;
  margin-right: 12px;
  border-radius: 0 var(--gw-radius-xl) var(--gw-radius-xl) 0;
  color: var(--gw-text);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--gw-font);
  letter-spacing: 0.1px;
  text-decoration: none !important;
  border: 0;
  background: transparent;
  width: calc(100% - 12px);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.gw-nav-item .material-symbols-outlined {
  color: var(--gw-text-secondary);
  font-size: 22px;
  transition: color 0.15s ease;
}
.gw-nav-item:hover { background: var(--gw-nav-hover); }
.gw-nav-item.is-active {
  background: var(--gw-nav-active);
  color: #041e49;
  font-weight: 500;
}
.gw-nav-item.is-active .material-symbols-outlined {
  color: #041e49;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.gw-nav-footer {
  padding: 12px 0 8px;
  border-top: 1px solid var(--gw-border-light);
  margin-top: 8px;
}
.gw-nav-logout { color: var(--gw-text-secondary); }

.gw-main {
  flex: 1;
  min-width: 0;
  padding: 0 28px 40px;
  background: transparent;
}

.gw-page-head { padding: 24px 0 12px; }
.gw-page-title {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  color: var(--gw-text);
  letter-spacing: 0;
  font-family: var(--gw-font);
  line-height: 1.25;
}

.gw-content { max-width: 1440px; }

/* ── Alerts ── */
.gw-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--gw-radius-md);
  margin-bottom: 16px;
  font-size: 14px;
  box-shadow: var(--gw-shadow-card);
}
.gw-alert-error {
  background: var(--gw-red-bg);
  color: #c5221f;
  border: 1px solid #f6aea9;
}
.gw-alert-success {
  background: var(--gw-green-bg);
  color: #137333;
  border: 1px solid #ceead6;
}
.gw-alert .material-symbols-outlined { font-size: 20px; }

/* ── Cards / panels — royal white elevated surfaces ── */
.metric, .panel {
  background: var(--gw-surface);
  border: 1px solid var(--gw-border-light);
  border-radius: var(--gw-radius-lg);
  box-shadow: var(--gw-shadow-card);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.metric {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 100px;
  padding: 20px 22px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.metric:hover {
  box-shadow: var(--gw-shadow-2);
  border-color: var(--gw-border);
  transform: translateY(-1px);
}

.metric small, .metric em {
  display: block;
  color: var(--gw-text-secondary);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.metric strong {
  display: block;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  margin: 4px 0;
  color: var(--gw-text);
  font-family: var(--gw-font);
  letter-spacing: -0.3px;
}
.metric em { color: var(--gw-green); }

/* ── Dashboard Create Email CTA ── */
.dashboard-create-email-cta { margin-bottom: 20px; }
.cta-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  background:
    linear-gradient(135deg, rgba(232, 240, 254, 0.9) 0%, rgba(255, 255, 255, 0.95) 45%, #ffffff 100%);
  border: 1px solid #d3e3fd;
  border-radius: var(--gw-radius-lg);
  box-shadow: var(--gw-shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.cta-card:hover {
  box-shadow: var(--gw-shadow-2);
  transform: translateY(-2px);
  border-color: #a8c7fa;
}
.cta-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, #4285f4 0%, #1a73e8 50%, #174ea6 100%);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.28);
}
.cta-icon .material-symbols-outlined { font-size: 28px; }
.cta-text { flex: 1; min-width: 0; }
.cta-text h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 500;
  color: var(--gw-text);
  font-family: var(--gw-font);
}
.cta-text p { margin: 0; font-size: 13px; color: var(--gw-text-secondary); line-height: 1.45; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 26px;
  border-radius: var(--gw-radius-pill);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--gw-font);
  color: #fff;
  background: var(--gw-blue);
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.3), 0 4px 12px rgba(26, 115, 232, 0.18);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}
.cta-btn:hover {
  background: var(--gw-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.35), 0 6px 16px rgba(26, 115, 232, 0.22);
  color: #fff;
  text-decoration: none;
}
.cta-btn .material-symbols-outlined { font-size: 20px; }
@media (max-width: 600px) {
  .cta-card { flex-direction: column; text-align: center; padding: 20px; gap: 12px; }
  .cta-text p { font-size: 12px; }
  .cta-btn { width: 100%; justify-content: center; }
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.12);
}
.metric-icon.blue {
  background: linear-gradient(145deg, #4285f4, #1a73e8);
}
.metric-icon.violet {
  background: linear-gradient(145deg, #a855f7, #9334e6);
}
.metric-icon.sky {
  background: linear-gradient(145deg, #60a5fa, #4285f4);
}
.metric-icon.orange {
  background: linear-gradient(145deg, #fdd663, #fbbc04);
  color: var(--gw-text);
}
.metric-icon .material-symbols-outlined { color: #fff; font-size: 24px; }
.metric-icon.orange .material-symbols-outlined { color: #3c4043; }

.dashboard-grid,
.feature-grid,
.bottom-grid,
.settings-grid,
.module-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}
.dashboard-grid { grid-template-columns: 1.25fr 1fr 1fr; }
.feature-grid { grid-template-columns: 1.05fr 1.3fr 1.65fr 1fr; align-items: stretch; }
.bottom-grid { grid-template-columns: 1.2fr 0.8fr 1.6fr; }
.settings-grid { grid-template-columns: repeat(2, minmax(280px, 1fr)); }
.module-grid { grid-template-columns: 320px 1fr; align-items: start; }

.panel { padding: 22px; }

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gw-border-light);
}
.panel-title h2, .panel h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--gw-text);
  font-family: var(--gw-font);
  letter-spacing: 0.1px;
}
.panel-title a, .panel-title span {
  font-size: 13px;
  font-weight: 500;
  color: var(--gw-blue);
  text-decoration: none;
}
.panel-title a:hover { text-decoration: underline; }

/* Section headers — soft Workspace accent */
.section-head {
  margin: -22px -22px 20px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--gw-font);
  text-align: left;
  color: var(--gw-text);
  background: linear-gradient(180deg, var(--gw-blue-soft) 0%, var(--gw-surface) 100%);
  border-bottom: 2px solid var(--gw-blue);
  border-radius: var(--gw-radius-lg) var(--gw-radius-lg) 0 0;
}
.blue-head { border-bottom-color: var(--gw-blue); color: #041e49; }
.purple-head { border-bottom-color: var(--gw-purple); background: linear-gradient(180deg, #f3e8ff 0%, var(--gw-surface) 100%); }
.green-head { border-bottom-color: var(--gw-green, #34a853); background: linear-gradient(180deg, #e6f4ea 0%, var(--gw-surface) 100%); }
.orange-head { border-bottom-color: var(--gw-yellow); background: linear-gradient(180deg, #fef7e0 0%, var(--gw-surface) 100%); }

.settings-smtp-panel .smtp-fields-grid {
  margin-top: 16px;
}
.smtp-enable-row {
  margin-bottom: 8px;
}
.smtp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  cursor: pointer;
}
.smtp-divider {
  border: none;
  border-top: 1px solid var(--gw-border, #e8eaed);
  margin: 24px 0;
}
.smtp-test-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.smtp-test-row .form-control {
  flex: 1;
  min-width: 220px;
}
.smtp-test-row .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #25d366;
  border: 1px solid #1da851;
  color: #fff !important;
}
.btn-whatsapp:hover {
  background: #1da851;
  color: #fff !important;
}
.btn-whatsapp .material-symbols-outlined {
  font-size: 16px;
}

.chart-row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 180px;
}
#statusChart { max-width: 160px; max-height: 160px; }

.legend-list { display: grid; gap: 12px; flex: 1; }
.legend-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gw-text-secondary);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}
.green { background: var(--gw-green); }
.amber { background: var(--gw-yellow); }
.red { background: var(--gw-red); }
.navy { background: #5f6368; }

.renewal-list, .payment-list { display: grid; gap: 0; }
.renewal-list div, .payment-list div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gw-border-light);
}
.renewal-list div:last-child, .payment-list div:last-child { border-bottom: 0; }
.renewal-list em { color: var(--gw-red); font-style: normal; font-weight: 500; }
.payment-list small { display: block; color: var(--gw-text-muted); font-weight: 400; }
.payment-list em {
  background: var(--gw-green-bg);
  color: var(--gw-green);
  font-style: normal;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
}

.reminder-strip { margin: 16px 0; }
.reminder-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.reminder-cards div {
  background: linear-gradient(180deg, var(--gw-blue-soft) 0%, var(--gw-surface) 100%);
  border: 1px solid #d3e3fd;
  border-radius: var(--gw-radius-md);
  padding: 16px 18px;
  box-shadow: var(--gw-shadow-card);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.reminder-cards div:hover {
  box-shadow: var(--gw-shadow-1);
  transform: translateY(-1px);
}
.reminder-cards span { display: block; color: var(--gw-text-secondary); font-size: 13px; margin-top: 4px; }
.reminder-cards strong { color: var(--gw-blue); font-weight: 500; font-family: var(--gw-font); }

/* Forms */
label {
  display: block;
  font-size: 12px;
  margin: 12px 0 6px;
  color: var(--gw-text-secondary);
  font-weight: 500;
  letter-spacing: 0.2px;
}

.form-control, .form-select {
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius);
  min-height: 42px;
  font-size: 14px;
  color: var(--gw-text);
  background: var(--gw-surface);
  box-shadow: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:hover, .form-select:hover {
  border-color: #c4c7c5;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gw-blue);
  box-shadow: var(--gw-shadow-focus) !important;
}

.btn {
  border-radius: var(--gw-radius-pill);
  font-weight: 500;
  font-size: 14px;
  font-family: var(--gw-font);
  letter-spacing: 0.15px;
  padding: 9px 24px;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--gw-blue);
  border-color: var(--gw-blue);
  box-shadow: 0 1px 2px rgba(26, 115, 232, 0.2);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--gw-blue-hover);
  border-color: var(--gw-blue-hover);
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.28);
}
.btn-success {
  background: var(--gw-green);
  border-color: var(--gw-green);
}
.btn-outline-primary {
  color: var(--gw-blue);
  border-color: var(--gw-border);
  background: var(--gw-surface);
}
.btn-outline-primary:hover {
  background: var(--gw-blue-light);
  border-color: #a8c7fa;
  color: var(--gw-blue);
}
.btn-light {
  background: var(--gw-surface);
  border-color: var(--gw-border);
  color: var(--gw-text);
}
.btn-light:hover { background: var(--gw-nav-hover); border-color: #c4c7c5; }

.soft-note, .success-note, .hint {
  font-size: 12px;
  color: var(--gw-text-secondary);
  margin: 12px 0 0;
}
.success-note { color: var(--gw-green); }

.payment-widget h3 { font-size: 24px; font-weight: 400; color: var(--gw-text); }

dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border-bottom: 1px solid var(--gw-border-light);
  padding-bottom: 12px;
  margin: 0;
}
dd { margin: 0; font-weight: 500; color: var(--gw-text); }
dt { color: var(--gw-text-secondary); }

.qr-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius);
  padding: 12px;
  background: var(--gw-bg);
  margin-top: 12px;
}
.qr-box span, .qr-box.big {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: var(--gw-surface);
  border: 1px dashed var(--gw-border);
  font-size: 12px;
  color: var(--gw-text-muted);
}
.qr-box.big { width: 200px; height: 200px; margin: 14px auto; overflow: hidden; }
.qr-box.big img { width: 100% !important; height: 100% !important; object-fit: contain; }

.qr-upload-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius);
  padding: 14px;
  background: var(--gw-bg);
  margin-bottom: 12px;
}
.qr-upload-preview {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px dashed var(--gw-border);
  display: grid;
  place-items: center;
  background: var(--gw-surface);
}
.qr-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.qr-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--gw-text-muted);
  font-size: 11px;
  text-align: center;
}
.qr-upload-placeholder .material-symbols-outlined {
  font-size: 32px;
  color: var(--gw-text-muted);
}
.qr-upload-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.qr-upload-controls .form-control {
  font-size: 13px;
}
.qr-remove-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gw-red);
  cursor: pointer;
  margin-top: 4px;
}
.qr-remove-toggle input[type="checkbox"] {
  accent-color: var(--gw-red);
}

.payment-actions {
  white-space: nowrap;
}
.payment-actions form {
  display: inline-block;
  margin-right: 4px;
  margin-bottom: 2px;
}
.payment-actions .btn-sm {
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.4;
}
.payment-actions .btn-sm .material-symbols-outlined {
  font-size: 16px;
  vertical-align: text-bottom;
  margin-right: 2px;
}
.payment-actions .btn-warning {
  color: #b06000;
  border-color: #f9ab00;
  background: var(--gw-yellow-bg);
}
.payment-actions .btn-warning:hover {
  background: #fbbc04;
  color: #333;
}

.method-row, .pill-row, .flow-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}
.method-row span, .pill-row span {
  border: 1px solid var(--gw-border);
  border-radius: 16px;
  padding: 6px 14px;
  font-weight: 500;
  font-size: 13px;
  background: var(--gw-surface);
  color: var(--gw-text-secondary);
}

.invoice-mini table, .invoice-table, .table {
  width: 100%;
  border-collapse: collapse;
}
.invoice-mini th, .invoice-mini td, .invoice-table th, .invoice-table td {
  border: 1px solid var(--gw-border-light);
  padding: 10px 12px;
  font-size: 13px;
}
.invoice-mini th, .invoice-table th, .table thead th {
  background: var(--gw-bg);
  color: var(--gw-text-secondary);
  font-weight: 500;
  border-bottom: 1px solid var(--gw-border);
}
.table { margin-bottom: 0; }
.table > :not(caption) > * > * {
  border-color: var(--gw-border-light);
  padding: 12px;
}
.table tbody tr:hover { background: var(--gw-blue-soft); }

/* Premium email table — royal white */
.premium-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.premium-email-table { border-collapse: separate; border-spacing: 0; width: 100%; }
.premium-email-table thead th {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  color: var(--gw-text-secondary);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.55px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gw-border);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
.premium-email-table tbody tr {
  transition: background 0.15s ease, box-shadow 0.15s ease;
  background: var(--gw-surface);
}
.premium-email-table tbody tr:hover {
  background: var(--gw-blue-soft);
  box-shadow: inset 3px 0 0 var(--gw-blue);
}
.premium-email-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gw-border-light);
  vertical-align: middle;
}
.premium-email-table tbody tr:last-child td { border-bottom: 0; }
.col-sno { width: 52px; text-align: center; }
.col-email { min-width: 240px; }
.col-name { min-width: 140px; }
.col-manager { min-width: 140px; }
.col-mobile { min-width: 110px; }
.col-renewal { min-width: 100px; white-space: nowrap; }
.col-status { min-width: 130px; }
.col-created { min-width: 110px; }
.col-actions { min-width: 220px; }
.sno-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f4f9 100%);
  color: var(--gw-text-secondary);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--gw-border-light);
  box-shadow: var(--gw-shadow-card);
}
.email-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.email-value {
  font-weight: 500;
  color: #0b57d0;
  font-size: 13.5px;
  font-family: var(--gw-font);
  letter-spacing: 0.1px;
  word-break: break-all;
}
.email-logo-thumb,
.email-avatar-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gw-surface);
  border: 1px solid var(--gw-border-light);
  box-shadow: var(--gw-shadow-card);
}
.email-avatar-letter {
  background: linear-gradient(145deg, #e8f0fe 0%, #d3e3fd 100%);
  color: #041e49;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--gw-font);
}
.email-logo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.name-value {
  display: block;
  font-weight: 500;
  color: var(--gw-text);
  font-size: 13.5px;
  font-family: var(--gw-font);
}
.name-sub {
  display: block;
  color: var(--gw-text-muted);
  font-size: 11px;
  margin-top: 2px;
}
.manager-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gw-text-secondary);
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  border: 1px solid var(--gw-border-light);
  padding: 5px 12px 5px 6px;
  border-radius: var(--gw-radius-pill);
  white-space: nowrap;
  box-shadow: var(--gw-shadow-card);
}
.manager-logo-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gw-surface);
  border: 1px solid var(--gw-border-light);
}
.manager-logo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mobile-text,
.renewal-text {
  font-size: 13px;
  color: var(--gw-text-secondary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.creator-name {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: var(--gw-text);
}
.creator-role {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--gw-blue);
  background: var(--gw-blue-light);
  border-radius: 999px;
  padding: 2px 8px;
  margin-top: 3px;
}

.total { display: block; text-align: right; color: var(--gw-green); padding-top: 12px; font-weight: 500; }

.renewal-widget { text-align: center; }
.bell-large {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--gw-yellow-bg);
  font-size: 28px;
}
.due-box {
  border: 1px solid #f6aea9;
  background: var(--gw-red-bg);
  border-radius: var(--gw-radius);
  padding: 16px;
  margin: 12px 0 16px;
}
.due-box strong { font-size: 28px; color: var(--gw-red); font-weight: 400; }

.flow-row span {
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 12px;
}
.flow-row span:nth-of-type(1) { background: var(--gw-yellow-bg); color: #b06000; }
.flow-row span:nth-of-type(2) { background: var(--gw-blue-light); color: var(--gw-blue); }
.flow-row span:nth-of-type(3) { background: var(--gw-green-bg); color: var(--gw-green); }
.flow-row span:nth-of-type(5) { background: var(--gw-red-bg); color: var(--gw-red); }
.flow-row span:nth-of-type(6) { background: var(--gw-nav-hover); color: var(--gw-text-secondary); }

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 5px 12px;
  border-radius: var(--gw-radius-pill);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.15px;
  text-transform: capitalize;
  background: var(--gw-chip);
  color: var(--gw-text-secondary);
  border: 1px solid transparent;
}
.status.active, .status.paid, .status.sent {
  background: var(--gw-green-bg);
  color: #137333;
  border-color: #ceead6;
}
.status.inactive, .status.suspended, .status.overdue {
  background: var(--gw-red-bg);
  color: #c5221f;
  border-color: #f6aea9;
}
.status.payment_pending, .status.pending, .status.pending_approval, .status.pending_deletion, .status.draft, .status.renewal_due {
  background: var(--gw-yellow-bg);
  color: #b06000;
  border-color: #fde293;
}
.status.rejected {
  background: var(--gw-red-bg);
  color: #c5221f;
  border-color: #f6aea9;
}
.email-row-actions { min-width: 200px; }
.email-pending-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: #b06000;
  background: linear-gradient(180deg, #fef7e0 0%, #fff8e7 100%);
  border: 1px solid #fde293;
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--gw-font);
}

.inline-form, .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.table-panel { overflow-x: auto; }

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 400;
}

/* DataTables Google Workspace style */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius);
  padding: 8px 12px;
  background: var(--gw-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  border-color: var(--gw-blue);
  outline: none;
  box-shadow: var(--gw-shadow-focus);
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: var(--gw-radius-pill) !important;
  margin: 0 2px !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--gw-blue-light) !important;
  border-color: transparent !important;
  color: #041e49 !important;
  font-weight: 500;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--gw-nav-hover) !important;
  border-color: transparent !important;
  color: var(--gw-text) !important;
}

/* Invoice doc */
.invoice-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px 16px;
}
.invoice-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gw-border-light);
}
.invoice-delete-inline { display: block; margin-top: 16px; }
.invoice-lines-table .form-control { min-height: 36px; }
.invoice-lines-table .line-amount {
  font-weight: 500;
  padding-top: 10px;
  color: var(--gw-text-secondary);
}
.invoice-admin-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gw-border-light);
}
.invoice-manager-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 16px;
  background: var(--gw-blue-light);
  color: var(--gw-blue);
  font-size: 13px;
  font-weight: 500;
}
.invoice-doc { max-width: 860px; margin: 0 auto; }
.invoice-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--gw-border);
  padding-bottom: 18px;
  margin-bottom: 18px;
}
.invoice-totals strong { color: var(--gw-green); font-size: 18px; font-weight: 500; }

/* ── Sign-in (accounts.google.com / Workspace royal white) ── */
.gw-guest {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(26, 115, 232, 0.06), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(52, 168, 83, 0.04), transparent 50%),
    #ffffff;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.gw-header-guest {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  box-shadow: var(--gw-shadow-header);
  padding: 0 24px;
  height: 64px;
  backdrop-filter: saturate(180%) blur(8px);
}

.gw-header-guest .gw-header-left {
  gap: 12px;
}

.gw-guest-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.gw-guest-brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--gw-text-muted);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-family: var(--gw-font);
}

.gw-guest-brand-app {
  font-size: 16px;
  font-weight: 400;
  color: var(--gw-text);
  font-family: var(--gw-font);
  letter-spacing: 0.1px;
}

.gw-header-apps {
  font-size: 22px;
  color: var(--gw-text-secondary);
  padding: 8px;
  border-radius: 50%;
  transition: background 0.15s ease;
}
.gw-header-apps:hover { background: var(--gw-nav-hover); }

.gw-signin {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 28px;
}

.gw-signin-card {
  width: 100%;
  max-width: 450px;
  background: var(--gw-surface);
  border: 1px solid var(--gw-border);
  border-radius: 28px;
  padding: 48px 40px 40px;
  text-align: center;
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.06),
    0 4px 16px rgba(60, 64, 67, 0.06),
    0 12px 40px rgba(60, 64, 67, 0.04);
}

.gw-signin-title {
  margin: 16px 0 8px;
  font-size: 24px;
  font-weight: 400;
  color: var(--gw-text);
  letter-spacing: 0;
  font-family: var(--gw-font);
}

.gw-signin-sub {
  margin: 0 0 32px;
  font-size: 16px;
  color: var(--gw-text-secondary);
  line-height: 1.5;
}
.gw-signin-sub strong { color: var(--gw-text); font-weight: 500; }

.gw-signin-form { text-align: left; }
.gw-signin-alert { margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.gw-signin-alert .material-symbols-outlined { font-size: 18px; flex-shrink: 0; }
.gw-signin-alert-success {
  background: var(--gw-green-bg);
  color: #137333;
  border: 1px solid #ceead6;
  border-radius: var(--gw-radius);
  padding: 10px 14px;
}

.gw-signin-divider {
  display: flex;
  align-items: center;
  margin: 24px 0 20px;
  gap: 12px;
  color: var(--gw-text-muted);
  font-size: 12px;
}
.gw-signin-divider::before,
.gw-signin-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gw-border);
}

.gw-app-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--gw-font);
  color: var(--gw-blue);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--gw-radius-pill);
  border: 1px solid var(--gw-border);
  background: var(--gw-surface);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.gw-app-link:hover {
  background: var(--gw-blue-light);
  border-color: #a8c7fa;
  text-decoration: none;
  box-shadow: var(--gw-shadow-1);
}
.gw-app-link .material-symbols-outlined { font-size: 18px; }

.gw-field { margin-bottom: 18px; }
.gw-field label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gw-text-secondary);
  letter-spacing: 0.2px;
  text-transform: none;
}

.gw-input {
  width: 100%;
  height: 56px;
  padding: 13px 15px;
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius);
  font-size: 16px;
  color: var(--gw-text);
  background: var(--gw-surface);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, padding 0.2s ease;
}
.gw-input:hover { border-color: #c4c7c5; }
.gw-input:focus {
  border-color: var(--gw-blue);
  border-width: 2px;
  padding: 12px 14px;
  box-shadow: 0 0 0 1px var(--gw-blue);
}
.gw-input::placeholder { color: var(--gw-text-muted); }

.gw-signin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  gap: 16px;
}

.gw-link {
  font-size: 14px;
  font-weight: 500;
  font-family: var(--gw-font);
  color: var(--gw-blue);
  text-decoration: none;
}
.gw-link:hover { text-decoration: underline; }

.gw-btn {
  border: 0;
  border-radius: var(--gw-radius-pill);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--gw-font);
  padding: 11px 28px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.25px;
}
.gw-btn-primary {
  background: var(--gw-blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(26, 115, 232, 0.25);
}
.gw-btn-primary:hover {
  background: var(--gw-blue-hover);
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.35), 0 2px 8px rgba(26, 115, 232, 0.18);
}

.gw-signin-hint {
  margin: 20px 0 0;
  font-size: 12px;
  color: var(--gw-text-muted);
  text-align: center;
  line-height: 1.5;
}
.gw-signin-hint code {
  background: var(--gw-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.gw-signin-footer {
  width: 100%;
  max-width: 450px;
  margin-top: 36px;
  padding: 0 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--gw-text-muted);
}
.gw-footer-links { display: flex; gap: 24px; }
.gw-footer-links a {
  color: var(--gw-text-muted);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.15s ease;
}
.gw-footer-links a:hover { color: var(--gw-text-secondary); text-decoration: underline; }
.gw-footer-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.gw-footer-lang .material-symbols-outlined { font-size: 16px; }

/* SweetAlert2 Google tint */
.swal2-popup {
  font-family: var(--gw-font-body) !important;
  border-radius: var(--gw-radius-lg) !important;
  box-shadow: var(--gw-shadow-3) !important;
  border: 1px solid var(--gw-border-light);
}
.swal2-confirm {
  background: var(--gw-blue) !important;
  border-radius: var(--gw-radius-pill) !important;
  font-weight: 500 !important;
  padding: 10px 24px !important;
}
.swal2-cancel {
  border-radius: var(--gw-radius-pill) !important;
}

/* Users admin */
.user-create-note { margin: -8px 0 16px; }
.user-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px 16px;
}
.user-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gw-border-light);
}
.role-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gw-blue-light);
  color: var(--gw-blue);
}
.gw-link-muted {
  color: var(--gw-text-muted) !important;
  font-size: 12px;
  text-decoration: none !important;
  cursor: default;
}

/* ═══════════════════════════════════════════
   Email page — Royal White Premium
   ═══════════════════════════════════════════ */
.email-page-layout {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}
.email-page-royal {
  animation: gwFadeIn 0.3s ease;
}

/* Hero */
.email-hero-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border-radius: var(--gw-radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 254, 0.96) 45%, #ffffff 100%);
  border: 1px solid #d3e3fd;
  box-shadow: var(--gw-shadow-card);
  position: relative;
  overflow: hidden;
}
.email-hero-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #4285f4, #34a853, #fbbc04, #ea4335);
  opacity: 0.9;
}
.email-hero-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  flex: 1;
}
.email-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(145deg, #4285f4 0%, #1a73e8 55%, #174ea6 100%);
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.28);
}
.email-hero-icon .material-symbols-outlined { font-size: 28px; }
.email-hero-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gw-text-muted);
  font-family: var(--gw-font);
}
.email-hero-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 400;
  color: var(--gw-text);
  font-family: var(--gw-font);
  letter-spacing: -0.2px;
  line-height: 1.25;
}
.email-hero-sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--gw-text-secondary);
  line-height: 1.5;
  max-width: 560px;
}
.email-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.email-stat-chip {
  min-width: 72px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--gw-border-light);
  box-shadow: var(--gw-shadow-card);
  text-align: center;
}
.email-stat-value {
  display: block;
  font-size: 22px;
  font-weight: 400;
  color: var(--gw-text);
  font-family: var(--gw-font);
  letter-spacing: -0.3px;
  line-height: 1.1;
}
.email-stat-label {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--gw-text-muted);
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
.email-stat-active {
  background: linear-gradient(180deg, #e6f4ea 0%, #ffffff 100%);
  border-color: #ceead6;
}
.email-stat-active .email-stat-value { color: #137333; }
.email-stat-pending {
  background: linear-gradient(180deg, #fef7e0 0%, #ffffff 100%);
  border-color: #fde293;
}
.email-stat-pending .email-stat-value { color: #b06000; }
.email-stat-alert {
  background: linear-gradient(180deg, #fce8e6 0%, #ffffff 100%);
  border-color: #f6aea9;
}
.email-stat-alert .email-stat-value { color: #c5221f; }

/* Create panel */
.email-create-panel {
  padding: 0;
  overflow: visible;
}
.email-create-royal {
  border: 1px solid var(--gw-border-light);
  border-radius: var(--gw-radius-lg);
  box-shadow: var(--gw-shadow-card);
  background: var(--gw-surface);
}
.email-create-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 0;
}
.email-create-heading { min-width: 0; flex: 1; }
.email-create-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px 12px 4px 8px;
  border-radius: var(--gw-radius-pill);
  background: var(--gw-blue-light);
  color: #041e49;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--gw-font);
}
.email-create-badge .material-symbols-outlined { font-size: 16px; color: var(--gw-blue); }
.email-create-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 400;
  color: var(--gw-text);
  font-family: var(--gw-font);
  letter-spacing: -0.15px;
}
.email-create-sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--gw-text-secondary);
  max-width: 560px;
  line-height: 1.5;
}

.email-add-fab,
.email-plus-hero {
  position: relative;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #4285f4 0%, #1a73e8 55%, #174ea6 100%);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.email-add-fab:hover,
.email-plus-hero:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.38);
}
.email-add-fab {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.email-add-fab .material-symbols-outlined,
.email-plus-hero .material-symbols-outlined {
  font-size: 28px;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}
.email-add-fab-ring,
.email-plus-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(26, 115, 232, 0.25);
  animation: emailPlusPulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes emailPlusPulse {
  0% { transform: scale(0.92); opacity: 0.9; }
  70% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}

.email-manager-pick,
.email-admin-picks {
  padding: 20px 24px 0;
}
.email-admin-picks {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 14px 16px;
  max-width: 760px;
}
.email-admin-picks-manager {
  grid-template-columns: minmax(200px, 420px);
}
.email-field-card {
  background: linear-gradient(180deg, #fafbfd 0%, #ffffff 100%);
  border: 1px solid var(--gw-border-light);
  border-radius: 14px;
  padding: 12px 14px 14px;
  box-shadow: var(--gw-shadow-card);
}
.email-field-card label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gw-text-secondary);
  letter-spacing: 0.15px;
}
.email-field-card label .material-symbols-outlined {
  font-size: 16px;
  color: var(--gw-blue);
}
.email-field-card .form-select,
.email-field-card .form-control {
  border-radius: 10px;
  min-height: 44px;
  background: #fff;
}
.email-admin-actions {
  margin: 0 24px 24px;
  padding-top: 8px;
}
.email-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.25);
}
.email-create-btn .material-symbols-outlined { font-size: 20px; }
.email-row-admin-only label { margin-top: 0; }

.email-create-empty {
  text-align: center;
  padding: 40px 24px 44px;
  margin: 16px 24px 24px;
  border: 1px dashed #c4c7c5;
  border-radius: var(--gw-radius-lg);
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(26, 115, 232, 0.06), transparent 70%),
    #fafbfd;
}
.email-create-empty-block {
  margin: 20px 24px 24px;
}
.email-create-empty h3 {
  margin: 16px 0 6px;
  font-size: 17px;
  font-weight: 500;
  font-family: var(--gw-font);
  color: var(--gw-text);
}
.email-create-empty p {
  margin: 0;
  font-size: 13.5px;
  color: var(--gw-text-secondary);
}
.email-plus-hero {
  width: 88px;
  height: 88px;
  margin: 0 auto;
}
.email-empty-icon {
  font-size: 48px !important;
  color: var(--gw-text-muted);
  margin-bottom: 8px;
}

.email-rows-container {
  display: grid;
  gap: 14px;
  padding: 8px 24px 20px;
}
.email-row-card {
  border: 1px solid var(--gw-border-light);
  border-radius: var(--gw-radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  padding: 18px;
  box-shadow: var(--gw-shadow-card);
  animation: emailRowIn 0.25s ease;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.email-row-card:hover {
  border-color: #d3e3fd;
  box-shadow: var(--gw-shadow-1);
}
@keyframes emailRowIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.email-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.email-row-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #041e49;
  background: var(--gw-blue-light);
  border-radius: 999px;
  padding: 5px 14px 5px 8px;
  font-family: var(--gw-font);
}
.email-row-badge .material-symbols-outlined { font-size: 18px; color: var(--gw-blue); }
.email-row-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px 16px;
}
.email-row-grid-admin {
  grid-template-columns: 1.2fr 1fr;
}
.email-row-grid-manager {
  grid-template-columns: 1fr 1.1fr 1fr;
}
.email-username-wrap { position: relative; }
.email-preview-pill {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--gw-text-secondary);
}
.email-preview-pill .email-preview-text {
  display: inline-block;
  background: var(--gw-blue-soft);
  border: 1px solid #d3e3fd;
  border-radius: 999px;
  padding: 5px 14px;
  font-weight: 500;
  color: #0b57d0;
  font-family: var(--gw-font);
}
.email-dup-warning {
  display: block;
  font-size: 12px;
  color: #ea4335;
  margin-top: 4px;
  font-weight: 500;
}
.email-row-extra {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--gw-border-light);
  animation: emailRowIn 0.2s ease;
}
.email-row-extra .email-row-grid {
  grid-template-columns: repeat(2, 1fr);
}
.email-row-mini-charge {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--gw-text-secondary);
  background: var(--gw-green-bg);
  border-radius: var(--gw-radius);
  padding: 8px 12px;
}
.email-row-mini-charge .material-symbols-outlined {
  font-size: 18px;
  color: var(--gw-green);
}

.email-charges-summary {
  margin: 0 24px 24px;
  border: 1px solid #d3e3fd;
  border-radius: var(--gw-radius-lg);
  background: linear-gradient(180deg, #f8fbff 0%, var(--gw-surface) 100%);
  overflow: hidden;
  animation: emailRowIn 0.3s ease;
  box-shadow: var(--gw-shadow-card);
}
.email-charges-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--gw-border-light);
  background: linear-gradient(180deg, var(--gw-blue-light) 0%, #f6f9fe 100%);
}
.email-charges-head .material-symbols-outlined {
  font-size: 28px;
  color: var(--gw-blue);
}
.email-charges-head strong {
  display: block;
  font-size: 15px;
  font-family: var(--gw-font);
  font-weight: 500;
}
.email-charges-head small { color: var(--gw-text-secondary); font-size: 12px; }

.email-charge-lines { padding: 12px 18px 4px; }
.email-charge-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--gw-text-secondary);
  border-bottom: 1px solid var(--gw-border-light);
}
.email-charge-line:last-child { border-bottom: 0; }
.email-charge-line span:last-child {
  font-weight: 500;
  color: var(--gw-text);
  font-variant-numeric: tabular-nums;
}
.email-charge-line em {
  font-style: normal;
  font-size: 12px;
  color: var(--gw-text-muted);
}
.email-charge-highlight span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.email-charge-highlight .material-symbols-outlined {
  font-size: 18px;
  color: var(--gw-blue);
}

.email-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: #ffffff;
  border-top: 2px solid var(--gw-blue);
}
.email-total-row small {
  display: block;
  font-size: 12px;
  color: var(--gw-text-secondary);
  margin-bottom: 2px;
}
.email-total-row strong {
  font-size: 28px;
  font-weight: 400;
  color: var(--gw-text);
  letter-spacing: -0.03em;
  font-family: var(--gw-font);
}
.email-pay-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px !important;
  font-size: 15px !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 8px rgba(52, 168, 83, 0.35);
}
.email-pay-btn:disabled {
  opacity: 0.55;
  box-shadow: none;
}
.email-pay-btn .material-symbols-outlined { font-size: 20px; }

/* Table panel */
.email-table-royal {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gw-border-light);
  border-radius: var(--gw-radius-lg);
  box-shadow: var(--gw-shadow-card);
  background: var(--gw-surface);
}
.email-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--gw-border-light);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.email-table-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.email-table-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gw-blue-light);
  color: var(--gw-blue);
  flex-shrink: 0;
}
.email-table-icon .material-symbols-outlined { font-size: 22px; }
.email-table-heading h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  font-family: var(--gw-font);
  color: var(--gw-text);
}
.email-table-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--gw-text-muted);
}
.email-search-form {
  position: relative;
  display: flex;
  align-items: center;
  min-width: min(100%, 320px);
  flex: 1;
  max-width: 380px;
}
.email-search-icon {
  position: absolute;
  left: 12px;
  color: var(--gw-text-muted);
  font-size: 20px !important;
  pointer-events: none;
}
.email-search-input {
  width: 100%;
  min-height: 42px !important;
  padding: 8px 36px 8px 40px !important;
  border-radius: var(--gw-radius-pill) !important;
  background: var(--gw-chip) !important;
  border: 1px solid transparent !important;
  font-size: 14px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.email-search-input:focus {
  background: #fff !important;
  border-color: transparent !important;
  box-shadow: var(--gw-shadow-2) !important;
}
.email-search-clear {
  position: absolute;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gw-text-muted);
  text-decoration: none !important;
  transition: background 0.15s ease;
}
.email-search-clear:hover { background: var(--gw-nav-hover); color: var(--gw-text); }
.email-search-clear .material-symbols-outlined { font-size: 18px; }

.email-table-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--gw-text-secondary);
}
.email-table-empty .material-symbols-outlined {
  font-size: 48px;
  color: var(--gw-text-muted);
  opacity: 0.55;
  margin-bottom: 8px;
}
.email-table-empty h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--gw-font);
  color: var(--gw-text);
}
.email-table-empty p { margin: 0; font-size: 13px; }

.email-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.email-row-actions .btn-sm {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.email-row-actions form { margin: 0; }

@media (max-width: 900px) {
  .email-hero-card { padding: 18px 16px; }
  .email-hero-title { font-size: 20px; }
  .email-hero-icon { width: 48px; height: 48px; border-radius: 14px; }
  .email-stat-chip { min-width: 64px; padding: 10px 12px; }
  .email-stat-value { font-size: 18px; }
  .email-create-top,
  .email-admin-picks,
  .email-rows-container,
  .email-admin-actions { padding-left: 16px; padding-right: 16px; }
  .email-create-empty { margin-left: 16px; margin-right: 16px; }
  .email-charges-summary { margin-left: 16px; margin-right: 16px; }
  .email-table-toolbar { padding: 14px 16px; }
  .email-search-form { max-width: none; min-width: 100%; }
  .email-admin-picks { grid-template-columns: 1fr; }
}

.email-upi-cards {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--gw-border-light);
}
.email-upi-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gw-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.email-upi-header .material-symbols-outlined {
  font-size: 20px;
  color: var(--gw-blue);
}
.email-upi-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 18px 12px;
}
.email-upi-card-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f0f7ff 0%, #fafbfc 100%);
  border: 1px solid var(--gw-border-light);
}
.email-upi-card-item .material-symbols-outlined {
  font-size: 22px;
  color: var(--gw-blue);
  flex-shrink: 0;
}
.email-upi-card-item small {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gw-text-muted);
  margin-bottom: 2px;
}
.email-upi-card-item strong {
  font-size: 13px;
  color: var(--gw-text);
  word-break: break-all;
}
.email-upi-apps {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 4px 18px 18px;
}
.email-upi-app {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: default;
}
.email-upi-app:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.email-upi-app.gpay {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #1b7e3a;
  border: 1px solid #a5d6a7;
}
.email-upi-app.phonepe {
  background: linear-gradient(135deg, #ede7f6 0%, #d1c4e9 100%);
  color: #5e35b1;
  border: 1px solid #b39ddb;
}
.email-upi-app.paytm {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #0d47a1;
  border: 1px solid #90caf9;
}
.email-upi-app.bhim {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #e65100;
  border: 1px solid #ffcc80;
}

/* ── Profile Page ── */
.profile-page { max-width: 900px; }
.profile-header-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  margin-bottom: 20px;
  background:
    linear-gradient(135deg, rgba(232, 240, 254, 0.95) 0%, rgba(255, 255, 255, 0.98) 50%, #ffffff 100%);
  border: 1px solid #d3e3fd;
  border-radius: var(--gw-radius-lg);
  box-shadow: var(--gw-shadow-card);
}
.profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(145deg, #4285f4 0%, #1a73e8 55%, #174ea6 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 500;
  font-family: var(--gw-font);
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.22);
}
.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-header-info h2 { margin: 0 0 4px; font-size: 20px; font-weight: 500; }
.profile-header-info p { margin: 0 0 6px; font-size: 14px; color: var(--gw-text-secondary); }
.profile-role-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--gw-blue-light);
  color: var(--gw-blue);
  font-size: 12px;
  font-weight: 500;
}
.profile-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}
.profile-form-panel, .profile-info-panel { border-radius: var(--gw-radius-lg); }
.profile-logo-upload {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--gw-bg);
  border: 1px solid var(--gw-border-light);
  border-radius: 12px;
  margin-bottom: 20px;
}
.profile-logo-preview {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: var(--gw-surface);
  border: 2px dashed var(--gw-border);
  display: grid;
  place-items: center;
  color: var(--gw-text-muted);
  font-size: 12px;
  text-align: center;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s;
  flex-shrink: 0;
}
.profile-logo-preview:hover { border-color: var(--gw-blue); }
.profile-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-logo-preview .material-symbols-outlined { font-size: 28px; margin-bottom: 2px; }
.profile-logo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gw-red);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}
.profile-logo-remove .material-symbols-outlined { font-size: 14px; color: #fff; }
.profile-logo-actions { flex: 1; }
.profile-logo-actions .btn { margin-bottom: 4px; }
.profile-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.profile-fields-grid label { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.profile-divider {
  height: 1px;
  background: var(--gw-border-light);
  margin: 20px 0;
}
.profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--gw-border-light);
}
.profile-actions .btn { padding: 10px 24px; }
.profile-info-list { padding: 0; }
.profile-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gw-border-light);
}
.profile-info-row:last-child { border-bottom: 0; }
.profile-info-label {
  font-size: 13px;
  color: var(--gw-text-secondary);
}
.profile-info-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--gw-text);
  text-align: right;
}
@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-header-card { padding: 18px 16px; gap: 14px; }
  .profile-avatar-large { width: 64px; height: 64px; border-radius: 16px; font-size: 26px; }
  .profile-header-info h2 { font-size: 18px; }
  .profile-fields-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .profile-header-card { padding: 14px; gap: 12px; border-radius: 12px; }
  .profile-avatar-large { width: 56px; height: 56px; border-radius: 14px; font-size: 22px; border-width: 2px; }
  .profile-header-info h2 { font-size: 16px; }
  .profile-header-info p { font-size: 12px; }
  .profile-logo-upload { flex-direction: column; text-align: center; padding: 14px; }
  .profile-logo-preview { width: 72px; height: 72px; }
  .profile-actions { flex-direction: column; }
  .profile-actions .btn { width: 100%; justify-content: center; }
}

/* Responsive */
@media (max-width: 1200px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .feature-grid, .bottom-grid { grid-template-columns: 1fr 1fr; }
  .module-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .gw-header-center { display: none; }
  .gw-header-app { display: none; }
  .gw-account-name { display: none; }
  .gw-header-divider { display: none; }

  .gw-header { height: 56px; padding: 0 8px 0 4px; }
  :root { --gw-header-h: 56px; }

  .gw-icon-btn { width: 36px; height: 36px; }
  .gw-icon-btn .material-symbols-outlined { font-size: 22px; }
  .gw-avatar { width: 30px; height: 30px; font-size: 13px; }
  .gw-account { padding: 3px 6px 3px 3px; gap: 0; margin-left: 2px; }

  .gw-brand { padding: 4px 6px; gap: 6px; }
  .gw-brand-text { gap: 4px; flex-direction: row; align-items: baseline; }
  .gw-brand-google { font-size: 17px; letter-spacing: -0.3px; }
  .gw-brand-product { font-size: 17px; letter-spacing: -0.3px; text-transform: none; }

  .gw-nav {
    position: fixed;
    left: 0;
    top: var(--gw-header-h);
    z-index: 90;
    width: min(300px, 86vw);
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--gw-shadow-3);
    background: var(--gw-surface);
    border-radius: 0 20px 20px 0;
    border-right: 1px solid var(--gw-border-light);
  }
  .gw-nav.open { transform: translateX(0); }

  .gw-nav-list { gap: 4px; padding: 10px 0 8px; }
  .gw-nav-item {
    height: 48px;
    padding: 0 20px 0 20px;
    margin-right: 12px;
    width: calc(100% - 12px);
    border-radius: 0 24px 24px 0;
    font-size: 14px;
    gap: 14px;
  }
  .gw-nav-item .material-symbols-outlined { font-size: 22px; }
  .gw-nav-footer { padding: 8px 0; }

  .gw-menu-btn { display: inline-grid !important; }
  .gw-main { padding: 0 14px 24px; }

  .gw-page-head { padding: 14px 0 6px; }
  .gw-page-title { font-size: 18px; letter-spacing: -0.01em; }

  .gw-alert { padding: 10px 14px; font-size: 13px; border-radius: 10px; gap: 8px; margin-bottom: 12px; }
  .gw-alert .material-symbols-outlined { font-size: 18px; }

  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
  .dashboard-grid,
  .feature-grid,
  .bottom-grid,
  .settings-grid,
  .reminder-cards { grid-template-columns: 1fr; }

  .panel { padding: 16px; border-radius: 12px; }
  .metric { padding: 14px; gap: 12px; min-height: 76px; border-radius: 12px; }
  .metric-icon { width: 42px; height: 42px; font-size: 20px; border-radius: 12px; }
  .metric-icon .material-symbols-outlined { font-size: 22px; }
  .metric strong { font-size: 22px; }
  .metric small, .metric em { font-size: 11px; }

  .chart-row { flex-direction: column; align-items: stretch; }
  .gw-signin-card { padding: 32px 24px; }
  .invoice-edit-grid { grid-template-columns: 1fr; }
  .invoice-delete-inline { margin-left: 0; width: 100%; }
  .email-row-grid,
  .email-row-grid-admin,
  .email-row-grid-manager,
  .email-row-extra .email-row-grid { grid-template-columns: 1fr; }
  .email-total-row { flex-direction: column; align-items: stretch; }
  .email-pay-btn { width: 100%; justify-content: center; }
  .email-admin-picks { grid-template-columns: 1fr; }
  .user-edit-grid { grid-template-columns: 1fr; }
  .qr-upload-row { flex-direction: column; align-items: center; }

  .payment-actions { white-space: normal; }
  .payment-actions form { display: block; margin-bottom: 6px; }
  .payment-actions .btn { width: 100%; justify-content: center; }
  .panel-title { flex-direction: column; align-items: flex-start; gap: 6px; }
  .premium-email-table .col-mobile,
  .premium-email-table .col-renewal,
  .premium-email-table .col-created { display: none; }

  .dashboard-create-email-cta { margin-bottom: 14px; }
  .cta-card { padding: 16px 18px; gap: 12px; border-radius: 14px; }
  .cta-icon { width: 46px; height: 46px; border-radius: 13px; }
  .cta-icon .material-symbols-outlined { font-size: 24px; }
  .cta-text h3 { font-size: 15px; }
  .cta-text p { font-size: 12px; margin-top: 2px; }
  .cta-btn { padding: 10px 18px; font-size: 13px; border-radius: 10px; }

  .dashboard-grid { gap: 12px; margin-bottom: 12px; }
  .feature-grid { gap: 12px; margin-bottom: 12px; }
  .bottom-grid { gap: 12px; margin-bottom: 12px; }

  .invoice-mini { padding: 14px; border-radius: 10px; }
  .invoice-mini table { font-size: 12px; }
  .invoice-mini table th, .invoice-mini table td { padding: 4px 6px; }

  .payment-widget h3 { font-size: 20px; }
  .payment-widget dl { font-size: 13px; }

  .bottom-grid .panel { padding: 16px; border-radius: 12px; }
  .bottom-grid h2 { font-size: 14px; margin-bottom: 10px; }
  .pill-row { gap: 6px; flex-wrap: wrap; }
  .pill-row span { font-size: 11px; padding: 4px 10px; border-radius: 6px; }
  .flow-row { gap: 6px; flex-wrap: wrap; }
  .flow-row span { font-size: 11px; padding: 6px 10px; border-radius: 6px; }
  .flow-row i { font-size: 13px; color: var(--gw-text-muted); }

  .payment-list { gap: 8px; }
  .payment-list div { padding: 10px 0; }

  .notif-dropdown { width: calc(100vw - 16px); right: 8px; border-radius: 14px; }

  .gw-header-guest svg.google-g { width: 20px; height: 20px; max-width: 20px; max-height: 20px; }
  .gw-guest-brand-app { font-size: 14px; }
  .gw-signin { padding: 20px 16px 16px; }
  .gw-signin-card { padding: 28px 20px 24px; border-radius: 20px; border: none; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
  .gw-signin-logo svg.google-g { width: 40px; height: 40px; max-width: 40px; max-height: 40px; }
  .gw-signin-title { font-size: 22px; }
  .gw-signin-sub { font-size: 14px; margin-bottom: 24px; }
  .gw-signin-actions { margin-top: 24px; }
  .gw-signin-footer { flex-direction: column; text-align: center; gap: 8px; padding: 0 16px 12px; }
  .gw-footer-links { justify-content: center; }

  .marketing-hero { padding: 18px 16px; gap: 12px; }
  .marketing-title { font-size: 22px; }
  .marketing-sub { font-size: 13px; }
  .marketing-badge { font-size: 12px; padding: 6px 10px; }

  .settings-grid { gap: 12px; }

  .email-dup-warning { font-size: 12px; padding: 8px 12px; }

  .table-panel { border-radius: 12px; }
  .premium-table-wrap { border-radius: 0 0 12px 12px; }
}

/* ── Marketing gallery ── */
.marketing-page { max-width: 1200px; }
.marketing-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 28px 32px;
  border-radius: var(--gw-radius-lg);
  background:
    linear-gradient(135deg, rgba(232, 240, 254, 0.95) 0%, rgba(246, 248, 252, 0.9) 50%, #ffffff 100%);
  border: 1px solid #d3e3fd;
  box-shadow: var(--gw-shadow-card);
}
.marketing-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 400;
  color: var(--gw-text);
  font-family: var(--gw-font);
}
.marketing-sub { margin: 0; color: var(--gw-text-secondary); max-width: 640px; line-height: 1.55; }
.marketing-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.marketing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--gw-radius-pill);
  background: var(--gw-surface);
  border: 1px solid var(--gw-border);
  font-size: 13px;
  color: var(--gw-text-secondary);
  box-shadow: var(--gw-shadow-card);
}
.marketing-grid-admin {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.marketing-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.marketing-card {
  border: 1px solid var(--gw-border-light);
  border-radius: var(--gw-radius-lg);
  overflow: hidden;
  background: var(--gw-surface);
  box-shadow: var(--gw-shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.marketing-card:hover {
  box-shadow: var(--gw-shadow-2);
  transform: translateY(-2px);
  border-color: var(--gw-border);
}
.marketing-card-media { position: relative; aspect-ratio: 16/10; background: var(--gw-bg); overflow: hidden; }
.marketing-card-media img { width: 100%; height: 100%; object-fit: cover; }
.marketing-card-placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: var(--gw-text-muted);
}
.marketing-card-placeholder .material-symbols-outlined { font-size: 48px; }
.marketing-card-type {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 8px; border-radius: 4px;
  background: rgba(0,0,0,0.55); color: #fff; font-size: 11px; text-transform: uppercase;
}
.marketing-card-body { padding: 14px 16px 16px; }
.marketing-card-body h3 { margin: 0 0 8px; font-size: 16px; font-weight: 500; }
.marketing-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--gw-text-secondary); margin-bottom: 8px; }
.marketing-meta span { padding: 2px 8px; background: var(--gw-bg); border-radius: 4px; }
.marketing-expiry { margin: 0 0 8px; font-size: 12px; color: var(--gw-orange, #e37400); }
.marketing-pending-panel { margin-bottom: 20px; }

@media (max-width: 900px) {
  .marketing-grid-admin { grid-template-columns: 1fr; }
  .invoice-header { flex-direction: column; gap: 12px; }
  .invoice-table { font-size: 13px; }
  .invoice-table th, .invoice-table td { padding: 8px 10px; }
  .invoice-lines-table th, .invoice-lines-table td { padding: 6px 8px; }
  .invoice-mini table { font-size: 12px; }
  .payment-list { grid-template-columns: 1fr; gap: 8px; }
  .payment-list div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--gw-border-light); }
  .payment-list div strong { display: block; width: 100%; }
  .payment-list div em { font-size: 11px; color: var(--gw-text-muted); }
  .btn-row { flex-wrap: wrap; gap: 6px; }
}

@media (max-width: 480px) {
  .gw-header { height: 52px; padding: 0 6px 0 2px; }
  :root { --gw-header-h: 52px; }
  .gw-icon-btn { width: 34px; height: 34px; }
  .gw-icon-btn .material-symbols-outlined { font-size: 20px; }
  .gw-avatar { width: 28px; height: 28px; font-size: 12px; }
  .gw-brand { padding: 3px 4px; gap: 4px; }
  .gw-brand-google { font-size: 14px; }
  .gw-brand-product { font-size: 8px; }

  .gw-nav { width: 260px; border-radius: 0 14px 14px 0; }
  .gw-nav-item { height: 42px; font-size: 13px; padding: 0 18px 0 14px; }

  .gw-main { padding: 0 10px 20px; }
  .gw-page-head { padding: 10px 0 4px; }
  .gw-page-title { font-size: 16px; }

  .panel { padding: 14px; border-radius: 10px; }
  .metrics-grid { gap: 8px; margin-bottom: 10px; }
  .metric { min-height: 68px; padding: 12px; gap: 10px; border-radius: 10px; }
  .metric-icon { width: 38px; height: 38px; font-size: 18px; border-radius: 10px; }
  .metric-icon .material-symbols-outlined { font-size: 20px; }
  .metric strong { font-size: 20px; margin: 1px 0; }
  .metric small, .metric em { font-size: 10px; }

  .module-form .form-control, .module-form .form-select { font-size: 16px; }
  .module-form .btn { font-size: 15px; }
  .qr-box.big { width: 160px; height: 160px; }
  table.payments-table { font-size: 13px; }
  table.payments-table th, table.payments-table td { padding: 6px 8px; }
  .premium-email-table .col-manager { display: none; }
  .premium-email-table .col-sno { width: 36px; }
  .premium-email-table .col-sno .sno-badge { width: 24px; height: 24px; font-size: 11px; }
  .premium-email-table tbody td { padding: 10px 10px; }

  .panel-title { flex-direction: column; gap: 8px; }
  .panel-title .button-row { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
  .panel-title .button-row .btn { flex: 1; min-width: 0; justify-content: center; font-size: 12px; padding: 6px 8px; }
  .section-head { font-size: 13px; padding: 10px 14px; margin: -14px -14px 12px; border-bottom-width: 2px; }
  .btn-row { gap: 4px; }
  .btn-row .btn { padding: 6px 10px; font-size: 12px; }

  .dashboard-create-email-cta { margin-bottom: 10px; }
  .cta-card { padding: 12px; gap: 10px; border-radius: 12px; }
  .cta-icon { width: 40px; height: 40px; border-radius: 11px; }
  .cta-icon .material-symbols-outlined { font-size: 22px; }
  .cta-text h3 { font-size: 14px; }
  .cta-text p { font-size: 11px; }
  .cta-btn { padding: 9px 14px; font-size: 12px; border-radius: 9px; gap: 4px; }

  .dashboard-grid, .feature-grid, .bottom-grid { gap: 10px; margin-bottom: 10px; }

  .invoice-header { gap: 8px; }
  .invoice-header h2 { font-size: 16px; }
  .invoice-header div { font-size: 11px; }
  .invoice-table { font-size: 11px; }
  .invoice-table th, .invoice-table td { padding: 6px 6px; }
  .invoice-doc { padding: 10px; border-radius: 10px; }
  .invoice-totals { flex-direction: column; gap: 4px; }
  .invoice-totals span, .invoice-totals strong { text-align: right; font-size: 13px; }
  .invoice-mini { padding: 10px; border-radius: 8px; }
  .invoice-mini table { font-size: 10px; }
  .invoice-mini strong { font-size: 12px; }
  .invoice-mini span { font-size: 10px; }

  .payment-widget h3 { font-size: 18px; }
  .payment-widget dl { font-size: 12px; gap: 4px; }
  .payment-list div { font-size: 12px; padding: 8px 0; }

  .bottom-grid .panel { padding: 12px; border-radius: 10px; }
  .bottom-grid h2 { font-size: 13px; margin-bottom: 8px; }
  .pill-row { gap: 4px; }
  .pill-row span { font-size: 10px; padding: 3px 7px; border-radius: 5px; }
  .flow-row { gap: 4px; }
  .flow-row span { font-size: 10px; padding: 5px 7px; border-radius: 5px; }
  .flow-row i { font-size: 11px; }

  .marketing-title { font-size: 20px; }
  .marketing-sub { font-size: 12px; }
  .marketing-badge { font-size: 11px; padding: 5px 8px; }
  .marketing-hero { padding: 14px; gap: 10px; border-radius: 12px; }
  .marketing-gallery { grid-template-columns: 1fr; }

  .pay-scanner-card { margin: 0; border-radius: 0; }
  .pay-scanner-header { padding: 20px 14px 10px; }
  .pay-scanner-details { padding: 10px 14px; }
  .pay-qr-section { padding: 14px; }
  .pay-app-badges { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .pay-app { padding: 6px 12px; font-size: 11px; border-radius: 10px; }
  .pay-confirm-form { padding: 14px; }
  .pay-back-link { padding: 10px; font-size: 12px; }

  .gw-alert { padding: 8px 12px; font-size: 12px; border-radius: 8px; gap: 6px; margin-bottom: 10px; }

  .gw-signin { padding: 14px 12px 10px; }
  .gw-signin-card { padding: 24px 18px 20px; border-radius: 16px; }
  .gw-signin-logo svg.google-g { width: 36px; height: 36px; max-width: 36px; max-height: 36px; }
  .gw-signin-title { font-size: 20px; }
  .gw-signin-sub { font-size: 13px; margin-bottom: 20px; }

  .settings-grid { gap: 10px; }

  .gw-nav-overlay { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

  .email-dup-warning { font-size: 11px; padding: 6px 10px; border-radius: 6px; }

  .table-panel { border-radius: 10px; }
  .premium-table-wrap { border-radius: 0 0 10px 10px; }

  .gw-footer-links { gap: 12px; }
  .gw-footer-links a { font-size: 12px; }
}

/* ── Nav overlay (mobile backdrop) ── */
.gw-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 89;
  opacity: 0;
  transition: opacity 0.25s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.gw-nav-overlay.open {
  display: block;
  opacity: 1;
}

@media print {
  .gw-header, .gw-nav { display: none !important; }
  .gw-main { padding: 0; }
  .panel { border: 1px solid #ccc; box-shadow: none; }
}

/* ── Pay Scanner Page ── */
.pay-scanner-page { max-width: 480px; margin: 24px auto; }
.pay-scanner-card { padding: 0; overflow: hidden; }
.pay-scanner-header {
  text-align: center;
  padding: 32px 24px 16px;
  background: linear-gradient(135deg, var(--gw-blue-light) 0%, #f0f7ff 100%);
  border-bottom: 1px solid var(--gw-border-light);
}
.pay-scanner-icon { font-size: 48px; color: var(--gw-blue); margin-bottom: 8px; }
.pay-scanner-header h2 { margin: 0 0 4px; font-size: 20px; }
.pay-scanner-header p { margin: 0; color: var(--gw-text-secondary); font-size: 13px; }
.pay-scanner-details { padding: 16px 24px; }
.pay-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gw-border-light);
}
.pay-detail-row:last-child { border-bottom: 0; }
.pay-detail-label { color: var(--gw-text-secondary); font-size: 13px; }
.pay-detail-value { font-weight: 500; font-size: 13.5px; }
.pay-detail-amount .pay-detail-value.amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--gw-green);
}
.pay-qr-section { text-align: center; padding: 24px; }
.pay-qr-box {
  display: inline-block;
  width: 200px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--gw-border);
  margin-bottom: 12px;
  background: #fff;
}
.pay-qr-box img { width: 100% !important; height: 100% !important; object-fit: contain; }
.pay-upi-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gw-text);
  margin-bottom: 8px;
}
.pay-upi-info .material-symbols-outlined { font-size: 18px; color: var(--gw-blue); }
.pay-upi-info small { color: var(--gw-text-muted); font-size: 12px; margin-left: 4px; }
.pay-app-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.pay-app {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}
.pay-app:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.pay-app.gpay {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #1b7e3a;
  border: 1px solid #a5d6a7;
}
.pay-app.phonepe {
  background: linear-gradient(135deg, #ede7f6 0%, #d1c4e9 100%);
  color: #5e35b1;
  border: 1px solid #b39ddb;
}
.pay-app.paytm {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #0d47a1;
  border: 1px solid #90caf9;
}
.pay-app.bhim {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #e65100;
  border: 1px solid #ffcc80;
}
.pay-confirm-section {
  padding: 20px 24px;
  text-align: center;
}
.pay-confirm-text {
  font-size: 13px;
  color: var(--gw-text-secondary);
  margin: 0 0 16px;
  line-height: 1.5;
}
.pay-confirm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(37,211,102,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.pay-confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  color: #fff;
}
.pay-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  color: var(--gw-text-muted);
  font-size: 12px;
}
.pay-divider::before, .pay-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gw-border);
}
.pay-confirm-form { padding: 20px 24px; }
.pay-confirm-form label { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.pay-back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  border-top: 1px solid var(--gw-border-light);
  color: var(--gw-text-secondary);
  font-size: 13px;
  transition: background 0.15s;
}
.pay-back-link:hover { background: var(--gw-bg); color: var(--gw-blue); }
.pay-back-link .material-symbols-outlined { font-size: 18px; }

/* Pay UPI Open Button (mobile) */
.pay-upi-btn-section {
  text-align: center;
  padding: 24px;
}
.pay-upi-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  box-shadow: 0 4px 14px rgba(26,115,232,0.35);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.pay-upi-open-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,115,232,0.45);
  color: #fff;
}
.pay-upi-open-btn .material-symbols-outlined { font-size: 22px; }
.pay-upi-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--gw-text-muted);
}

/* ── Live notification toast ── */
.gw-notif-toast {
  position: fixed;
  top: 76px;
  right: 20px;
  z-index: 300;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 360px;
  padding: 14px 16px;
  background: var(--gw-surface);
  border: 1px solid var(--gw-border-light);
  border-radius: var(--gw-radius-lg);
  box-shadow: var(--gw-shadow-3);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.gw-notif-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.gw-notif-toast-icon {
  color: var(--gw-blue);
  font-size: 22px !important;
  margin-top: 1px;
}
.gw-notif-toast-body { min-width: 0; }
.gw-notif-toast-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gw-text);
  margin-bottom: 2px;
}
.gw-notif-toast-msg {
  display: block;
  font-size: 12px;
  color: var(--gw-text-secondary);
  line-height: 1.4;
  max-height: 2.8em;
  overflow: hidden;
}
@media (max-width: 480px) {
  .gw-notif-toast {
    left: 12px;
    right: 12px;
    max-width: none;
    top: auto;
    bottom: 16px;
  }
}

/* ── Premium royal white polish ── */
::selection {
  background: var(--gw-blue-light);
  color: #041e49;
}

.gw-nav::-webkit-scrollbar,
.notif-list::-webkit-scrollbar {
  width: 8px;
}
.gw-nav::-webkit-scrollbar-thumb,
.notif-list::-webkit-scrollbar-thumb {
  background: #dadce0;
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.gw-nav::-webkit-scrollbar-thumb:hover,
.notif-list::-webkit-scrollbar-thumb:hover {
  background: #bdc1c6;
  background-clip: padding-box;
  border: 2px solid transparent;
}

/* Table panels as elevated white sheets */
.table-panel.panel,
.panel.table-panel {
  padding: 0;
  overflow: hidden;
}
.table-panel .panel-title,
.table-panel .section-head {
  margin: 0;
  padding: 16px 20px;
  border-radius: 0;
}

/* Focus ring utility for interactive Workspace controls */
.btn:focus-visible,
.gw-btn:focus-visible,
.gw-nav-item:focus-visible,
.gw-account:focus-visible {
  outline: none;
  box-shadow: var(--gw-shadow-focus);
}

/* Soft empty-state feel on main content */
.gw-main > .gw-content {
  animation: gwFadeIn 0.28s ease;
}
@keyframes gwFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}