:root {
  --bg: #f4f6f8;
  --fg: #1a2634;
  --card: #ffffff;
  --accent: #0f5b94;
  --line: #d6e1eb;
}
body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--fg);
  background: radial-gradient(circle at top right, #d7e8f7, var(--bg) 45%);
}
.center-box {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 1rem;
  padding: 1.2rem;
}
.brand-logo {
  width: min(440px, 80vw);
  height: auto;
  justify-self: center;
}
.brand-logo-fullscreen {
  width: min(23vw, 360px);
  max-height: 14vh;
  object-fit: contain;
}
.login-page .panel {
  width: min(520px, 92vw);
  justify-self: center;
}
.login-title {
  text-align: center;
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
}
.header-logo {
  height: 32px;
  width: auto;
}
.page-logo-wrap {
  position: fixed;
  left: 1.5rem;
  top: 4.5rem;
  z-index: 90;
}
.page-logo {
  height: clamp(2.5rem, 5vw, 3.5rem);
  width: auto;
  opacity: 0.9;
}
.panel {
  background: var(--card);
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 0.5rem;
  min-width: 320px;
}
input, button, textarea {
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #bdd1e2;
  font: inherit;
}
textarea {
  min-height: 92px;
  resize: vertical;
}
button {
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
}
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 0.9rem;
  border-radius: 8px;
  background: #0f5b94;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.btn-link.secondary {
  background: #e7eef5;
  color: #16344f;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1.5rem;
  background: rgba(10, 25, 41, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-left { display: flex; align-items: center; gap: 0.65rem; }
.header-right { display: flex; align-items: center; gap: 0.75rem; }

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e7dc8 0%, #1360a0 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(14,80,160,0.4);
}
.header-username {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
.header-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.8);
  transition: background 0.15s;
}
.header-btn:hover { background: rgba(255,255,255,0.14); }
.header-btn-logout {
  border-color: rgba(255,80,80,0.35);
  color: rgba(255,160,160,0.9);
}
.header-btn-logout:hover { background: rgba(255,60,60,0.15); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding: 1rem;
}
.admin-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
  max-width: 1400px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}
.grid.service-grid {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.admin-intro {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #eff7fd 0%, #e0effa 100%);
  padding: 0.9rem 1rem;
  color: #123e60;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
  margin: 0.7rem 0 0.8rem;
}
.summary-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.65rem 0.75rem;
}
.summary-label {
  color: #53718c;
  font-size: 0.8rem;
}
.summary-value {
  margin-top: 0.2rem;
  font-weight: 700;
  color: #14354f;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.labelled-grid {
  gap: 0.7rem;
}
.field-col {
  display: grid;
  gap: 0.32rem;
}
.field-col > span {
  font-size: 0.83rem;
  color: #44627d;
  font-weight: 600;
}
.field-help {
  margin: -0.2rem 0 0.4rem;
  color: #52708a;
  font-size: 0.85rem;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th,
.admin-table td {
  border-bottom: 1px solid #e2e8ef;
  padding: 0.45rem 0.35rem;
  text-align: left;
  vertical-align: top;
}
.actions {
  display: flex;
  gap: 0.35rem;
}
.acl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.35rem;
  margin: 0.6rem 0;
}
.acl-owner {
  color: #e07b39;
  font-size: 0.82em;
  font-weight: 600;
}
.tab-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tab-btn {
  background: #e7eef5;
  color: #15344f;
}
.active-tab {
  background: #0f5b94;
  color: #fff;
}
.split {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1rem;
}
.list-title {
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.list-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfe;
  max-height: 460px;
  overflow: auto;
  padding: 0.3rem;
}
.list-search {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.45rem;
  background: #fff;
}
.list-item {
  width: 100%;
  text-align: left;
  margin-bottom: 0.35rem;
  background: #fff;
  color: #17354f;
  border: 1px solid #d6e1eb;
}
.list-item.selected-item {
  border-color: #4b8fc4;
  box-shadow: inset 0 0 0 1px rgba(75, 143, 196, 0.35);
  background: #f1f8ff;
}
.service-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.service-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #d8e3ed;
  background: #edf3f9;
  flex: 0 0 40px;
}
.service-icon-preview {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  object-fit: contain;
  border: 1px solid #d8e3ed;
  background: #edf3f9;
}
.icon-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  margin-right: 0.35rem;
}
.status-ok { background: #17a35d; }
.status-degraded { background: #f1a312; }
.status-down { background: #d33d3d; }
.health-box, .icon-box {
  border: 1px solid #d6e1eb;
  background: #f8fbfe;
  border-radius: 10px;
  padding: 0.8rem;
}
.container-table-wrap {
  margin-top: 0.6rem;
  max-height: 220px;
  overflow: auto;
  border: 1px solid #d6e1eb;
  border-radius: 8px;
  background: #fff;
}
.muted {
  color: #4b6178;
  font-size: 0.86rem;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
  .rules-banner-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .rules-banner-grid {
    grid-template-columns: 1fr;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .tile-icon-box {
    width: min(100%, 240px);
  }
  .brand-logo-fullscreen {
    width: min(42vw, 260px);
    max-height: 20vh;
  }
}
.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  grid-auto-rows: 672px;
  align-items: stretch;
}
.category-strip {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.category-chip {
  text-decoration: none;
  border: 1px solid #c8d9e8;
  color: #20425f;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  background: #eef5fb;
  font-size: 0.86rem;
  font-weight: 600;
}
.category-chip.active {
  background: #0f5b94;
  border-color: #0f5b94;
  color: #fff;
}
.tile-wrap {
  position: relative;
  height: 100%;
}
.svc-credentials {
  background: linear-gradient(135deg, #edf5fc 0%, #e2eff8 100%);
  border: 1px solid #c7d9ea;
  border-radius: 8px;
  padding: 0.5rem 0.75rem 0.55rem;
  margin: 0 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex-shrink: 0;
  pointer-events: auto;
}
.svc-cred-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.svc-cred-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #5a7d9a;
  min-width: 3.8rem;
  flex-shrink: 0;
}
.svc-cred-value {
  font-size: 0.84rem;
  font-family: monospace;
  color: #1a3a52;
  font-weight: 600;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.svc-cred-masked {
  letter-spacing: .12em;
  font-size: 0.9rem;
}

.tile-link {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 12px;
}
.tile {
  display: flex;
  flex-direction: column;
  background: var(--card);
  color: inherit;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  height: 100%;
  box-sizing: border-box;
  min-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.tile-wrap:hover .tile {
  transform: translateY(-2px);
  border-color: #bdd3e6;
  box-shadow: 0 14px 26px rgba(15, 64, 103, 0.12);
}
.tile-icon-box {
  width: min(100%, 336px);
  aspect-ratio: 1 / 1;
  max-height: 180px;
  border-radius: 16px;
  border: 1px solid #d8e3ed;
  background: #edf3f9;
  display: grid;
  place-items: center;
  margin: 0 auto 0.8rem;
  overflow: hidden;
  flex-shrink: 0;
}
.tile-icon {
  width: 88%;
  height: 88%;
  border-radius: 12px;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.tile h3 {
  margin: 0.1rem 0 0.25rem;
}
.tile p {
  margin: 0;
  color: #48637c;
}
.tile small {
  display: block;
  margin-top: 0.45rem;
  color: #4b6178;
}
.tile-info-area {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
}
.tile-comment {
  display: block;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  line-height: 1.35;
  padding-right: 0.2rem;
}
.tile-comment b,
.tile-comment strong {
  font-weight: 700;
}
.service-categories {
  margin-top: auto;
  padding-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.service-cat-badge {
  border-radius: 999px;
  border: 1px solid #c7d9e8;
  background: #f0f6fc;
  color: #234662;
  padding: 0.2rem 0.5rem;
  font-size: 0.76rem;
  font-weight: 600;
}
.rules-banner {
  margin-top: 0.85rem;
  border: 1px solid #c5daec;
  border-radius: 12px;
  padding: 0.75rem;
  background: linear-gradient(180deg, #f2f8fd 0%, #e7f2fb 100%);
}
.rules-banner-title {
  font-weight: 700;
  color: #123c5d;
}
.rules-banner-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.rules-banner-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.55rem;
}
.rules-ack-btn {
  border: 1px solid #2c8c3f;
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  background: linear-gradient(180deg, #41bb5a 0%, #2f9745 100%);
  color: #fff;
  font-size: 0.81rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.rules-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}
.rules-pill {
  border: 1px solid #c7dbed;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 0.48rem 0.55rem;
  color: #23465f;
  font-size: 0.86rem;
  line-height: 1.35;
}
.compact-grid {
  margin-bottom: 0.7rem;
}
.category-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.auth-error {
  background: #ffe8e8;
  border: 1px solid #f2b7b7;
  color: #7a1f1f;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  max-width: min(520px, 92vw);
  margin: 0 auto 0.3rem;
  font-weight: 600;
}

.session-notice {
  background: #e8f4ff;
  border: 1px solid #b8d8f2;
  color: #1f4868;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  max-width: min(520px, 92vw);
  margin: 0 auto 0.6rem;
  font-weight: 600;
}


.dashboard-page {
  background: transparent;
}
.dashboard-page .header,
.dashboard-page .admin-layout {
  position: relative;
  z-index: 5;
}
.parallax-scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, #83bfe9 0%, #acd8f6 42%, #e5f4ff 100%);
}
.parallax-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(2400px, 160vw);
  max-width: none;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
  user-select: none;
}
.layer-base {
  z-index: 1;
  width: max(1680px, 112vw);
}
.layer-lv {
  z-index: 2;
}
.layer-cy {
  z-index: 3;
}
.layer-de {
  z-index: 4;
}
.dashboard-page .panel,
.dashboard-page .tile {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(3px);
}
.dashboard-page .svc-credentials {
  background: rgba(210, 232, 248, 0.55);
  border-color: rgba(180, 210, 235, 0.5);
}


.made-by-wrap {
  position: relative;
  z-index: 6;
  display: flex;
  justify-content: center;
  padding: 0.2rem 1rem 1rem;
}
.made-by {
  color: rgba(18, 48, 74, 0.9);
  text-decoration: none;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  letter-spacing: 0.03em;
  text-shadow: 0 2px 6px rgba(255,255,255,.45);
  transition: transform .15s ease, opacity .15s ease;
}
.made-by:hover {
  transform: translateY(-1px) scale(1.02);
  opacity: 0.88;
}

/* Cloud-only dashboard background */
.dashboard-page {
  background: linear-gradient(180deg, #8fc7ef 0%, #b8ddf5 48%, #e6f4fd 100%);
}
.parallax-scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, #83bfe9 0%, #acd8f6 42%, #e5f4ff 100%);
}
.cloud-layer {
  position: absolute;
  inset: -8% -18%;
  background-repeat: repeat-x;
  background-size: 760px 100%;
  will-change: transform;
}
.cloud-back {
  opacity: 0.42;
  filter: blur(2px);
  animation: cloudFloat 110s linear infinite;
  background-image:
    radial-gradient(ellipse 180px 75px at 11% 22%, rgba(255,255,255,.72) 0 67%, rgba(255,255,255,0) 72%),
    radial-gradient(ellipse 200px 82px at 33% 30%, rgba(255,255,255,.7) 0 66%, rgba(255,255,255,0) 72%),
    radial-gradient(ellipse 190px 76px at 61% 20%, rgba(255,255,255,.68) 0 65%, rgba(255,255,255,0) 72%),
    radial-gradient(ellipse 220px 86px at 86% 27%, rgba(255,255,255,.74) 0 66%, rgba(255,255,255,0) 72%);
}
.cloud-mid {
  opacity: 0.56;
  animation: cloudFloat 80s linear infinite reverse;
  background-image:
    radial-gradient(ellipse 190px 80px at 16% 56%, rgba(255,255,255,.78) 0 68%, rgba(255,255,255,0) 74%),
    radial-gradient(ellipse 220px 88px at 43% 47%, rgba(255,255,255,.74) 0 67%, rgba(255,255,255,0) 74%),
    radial-gradient(ellipse 200px 80px at 66% 60%, rgba(255,255,255,.8) 0 68%, rgba(255,255,255,0) 74%),
    radial-gradient(ellipse 230px 90px at 90% 51%, rgba(255,255,255,.76) 0 67%, rgba(255,255,255,0) 74%);
}
.cloud-front {
  opacity: 0.66;
  animation: cloudFloat 52s linear infinite;
  background-image:
    radial-gradient(ellipse 240px 100px at 9% 82%, rgba(255,255,255,.92) 0 70%, rgba(255,255,255,0) 76%),
    radial-gradient(ellipse 260px 108px at 34% 78%, rgba(255,255,255,.9) 0 69%, rgba(255,255,255,0) 76%),
    radial-gradient(ellipse 250px 105px at 60% 85%, rgba(255,255,255,.92) 0 70%, rgba(255,255,255,0) 76%),
    radial-gradient(ellipse 270px 112px at 86% 79%, rgba(255,255,255,.9) 0 69%, rgba(255,255,255,0) 76%);
}
@keyframes cloudFloat {
  0% { transform: translate3d(-6%, 0, 0); }
  50% { transform: translate3d(4%, -1.2%, 0); }
  100% { transform: translate3d(-6%, 0, 0); }
}

/* ========== Dashboard refined light theme ========== */
.parallax-scene,
.parallax-layer,
.cloud-layer,
.cloud-back,
.cloud-mid,
.cloud-front {
  display: none !important;
  animation: none !important;
  transform: none !important;
}

/* Richer background */
.dashboard-page {
  background:
    radial-gradient(ellipse 80% 40% at 15% 0%, rgba(120,185,240,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(90,160,230,0.22) 0%, transparent 60%),
    linear-gradient(170deg, #deeffe 0%, #c8e4f8 45%, #b0d5f0 100%) !important;
}

/* Header — keep dark, refine */
.dashboard-page .header {
  background: rgba(8, 20, 38, 0.94) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.09) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.18) !important;
}

/* Top info panel */
.dashboard-page .panel {
  backdrop-filter: none !important;
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(185, 215, 238, 0.75) !important;
  box-shadow: 0 4px 24px rgba(15, 64, 103, 0.1) !important;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Admin intro banner */
.dashboard-page .admin-intro {
  background: linear-gradient(135deg, #e8f5ff 0%, #d8ecfa 100%);
  border: 1px solid rgba(160, 210, 240, 0.7);
  color: #0e3d5f;
  border-radius: 10px;
}

/* Rules banner */
.dashboard-page .rules-banner {
  background: linear-gradient(135deg, #f0f8ff 0%, #e4f2fd 100%);
  border: 1px solid rgba(160, 210, 240, 0.6);
}
.dashboard-page .rules-pill {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(180, 215, 238, 0.7);
  color: #1e4a6a;
}

/* Category chips */
.dashboard-page .category-chip {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(160, 205, 235, 0.75) !important;
  color: #1a4a6e !important;
  font-weight: 600;
}
.dashboard-page .category-chip.active {
  background: linear-gradient(135deg, #1675b4 0%, #0f5b94 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(15, 91, 148, 0.35);
}

/* Session notice */
.dashboard-page .session-notice {
  background: #e4f3ff;
  border-color: #aad4f0;
  color: #174768;
}

/* Service tiles — clean white cards with depth */
.dashboard-page .tile {
  backdrop-filter: none !important;
  background: #ffffff !important;
  border: 1px solid rgba(185, 215, 238, 0.7) !important;
  box-shadow:
    0 1px 3px rgba(15, 64, 103, 0.06),
    0 6px 20px rgba(15, 64, 103, 0.09) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
}

.dashboard-page .tile-wrap:hover .tile {
  transform: translateY(-3px) !important;
  border-color: rgba(42, 130, 210, 0.45) !important;
  box-shadow:
    0 2px 6px rgba(15, 64, 103, 0.08),
    0 12px 32px rgba(15, 64, 103, 0.16) !important;
}

/* Icon box */
.dashboard-page .tile-icon-box {
  background: #f2f8fd !important;
  border-color: rgba(185, 215, 238, 0.65) !important;
}

/* Credentials block */
.dashboard-page .svc-credentials {
  background: linear-gradient(135deg, #edf6ff 0%, #e2f0fb 100%) !important;
  border-color: rgba(180, 215, 240, 0.8) !important;
}

/* Category badges on tile */
.dashboard-page .service-cat-badge {
  background: #edf5fc;
  border-color: rgba(175, 210, 235, 0.8);
  color: #1e4a6e;
}

/* Made by footer */
.dashboard-page .made-by {
  color: rgba(20, 60, 95, 0.38) !important;
  text-shadow: 0 1px 4px rgba(255,255,255,0.5) !important;
  font-family: "Segoe UI", sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em;
}
.dashboard-page .made-by:hover {
  color: rgba(15, 91, 148, 0.65) !important;
}

/* Suppress transitions on non-tile elements */
.category-chip,
.category-chip.active,
.btn-link,
.btn-link.secondary,
button {
  transition: none !important;
}

/* 4-up desktop grid */
.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1400px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* ========== Login page redesign ========== */
.login-wrap {
  display: flex;
  height: 100vh;
}

.login-corner-logo {
  display: block;
  height: 36px;
  width: auto;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* LEFT PANEL */
.login-left {
  flex: 0 0 25%;
  background: linear-gradient(150deg, #050d1a 0%, #091829 55%, #0e2344 100%);
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 3rem;
  box-sizing: border-box;
}

.login-left-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.login-left-glow-top {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(30,120,210,0.16) 0%, transparent 70%);
  top: -100px;
  left: -80px;
}
.login-left-glow-bottom {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(22,90,170,0.2) 0%, transparent 70%);
  bottom: -80px;
  right: -50px;
}

.login-left-inner {
  position: relative;
  z-index: 2;
  max-width: 400px;
  width: 100%;
}


.login-left-title {
  font-size: clamp(1.2rem, 1.8vw, 2.0rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 1.1rem;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.login-left-desc {
  font-size: 0.88rem;
  color: rgba(168,205,238,0.7);
  line-height: 1.75;
  margin: 0 0 2rem;
}

.login-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.login-feature {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: rgba(196,226,255,0.82);
  font-size: 0.875rem;
  font-weight: 500;
}

.login-feature-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: rgba(42,130,210,0.15);
  border: 1px solid rgba(42,130,210,0.28);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}


.login-distrib-btn {
  margin-top: 2.5rem;
  padding: 0.78rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  color: rgba(220,238,255,0.9);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  letter-spacing: 0.03em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.login-distrib-btn:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}

/* RIGHT PANEL */
.login-right {
  flex: 1;
  background: #09172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2.5rem 2rem;
  box-sizing: border-box;
}

.login-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(42,130,210,0.25) 30%, rgba(42,130,210,0.25) 70%, transparent 100%);
}

.login-right-inner {
  width: 100%;
  max-width: 340px;
}


.login-form-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #e6f2ff;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.login-form-subtitle {
  font-size: 0.82rem;
  color: rgba(130,175,215,0.6);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.lp-session-notice {
  margin-bottom: 1rem;
  font-size: 0.85rem;
}
.lp-auth-error {
  margin-bottom: 1rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.login-field label {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(150,190,225,0.75);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.login-field input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  padding: 0.78rem 1rem;
  color: #daeeff;
  font-size: 0.93rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.login-field input::placeholder {
  color: rgba(130,175,210,0.35);
}

.login-field input:focus {
  border-color: rgba(42,130,210,0.6);
  box-shadow: 0 0 0 3px rgba(42,130,210,0.12);
  background: rgba(255,255,255,0.07);
}

.login-submit {
  margin-top: 0.5rem;
  padding: 0.82rem 1.5rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e7dc8 0%, #1360a0 100%);
  color: #fff;
  font-size: 0.93rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: filter 0.18s, transform 0.1s;
  box-shadow: 0 4px 22px rgba(22,104,180,0.38), inset 0 1px 0 rgba(255,255,255,0.14);
  width: 100%;
  letter-spacing: 0.02em;
}

.login-submit:hover {
  filter: brightness(1.1);
}

.login-submit:active {
  transform: translateY(1px);
}

.login-request-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  margin-top: 1.1rem;
  padding: 0.68rem 1.2rem;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid rgba(42,130,210,0.22);
  background: transparent;
  color: rgba(100,175,230,0.7);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.login-request-btn:hover {
  border-color: rgba(42,130,210,0.5);
  background: rgba(42,130,210,0.07);
  color: rgba(140,200,250,0.9);
}

.login-footer {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

.login-footer-link {
  color: rgba(100,145,185,0.45);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.2s;
}

.login-footer-link:hover {
  color: rgba(100,175,230,0.7);
}

/* Mobile: stack vertically */
@media (max-width: 820px) {
  .login-wrap {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  .login-left {
    flex: none;
    padding: 2.5rem 1.5rem 2rem;
  }
    .login-left-title {
    font-size: 1.5rem;
  }
  .login-left-desc {
    font-size: 0.84rem;
  }
  .login-right {
    padding: 2rem 1.5rem 4rem;
  }
  .login-right::before { display: none; }
    .login-footer { bottom: 0.75rem; }
}

@media (max-width: 480px) {
  .login-left { padding: 2rem 1.25rem 1.75rem; }
  .login-right { padding: 1.75rem 1.25rem 4rem; }
}

/* Markdown inside service card comments */
.tile-comment p { margin: 0 0 0.4em; }
.tile-comment p:last-child { margin-bottom: 0; }
.tile-comment ul, .tile-comment ol { margin: 0.3em 0 0.4em 1.2em; padding: 0; }
.tile-comment li { margin-bottom: 0.15em; }
.tile-comment h1,.tile-comment h2,.tile-comment h3,
.tile-comment h4,.tile-comment h5,.tile-comment h6 {
  font-size: 0.85em; font-weight: 700; margin: 0.4em 0 0.2em;
}
.tile-comment code {
  font-family: monospace; font-size: 0.88em;
  background: rgba(0,0,0,.06); border-radius: 3px; padding: 0.1em 0.3em;
}
.tile-comment pre {
  background: rgba(0,0,0,.06); border-radius: 4px;
  padding: 0.4em 0.6em; overflow-x: auto; font-size: 0.82em;
}
.tile-comment pre code { background: none; padding: 0; }
.tile-comment blockquote {
  border-left: 3px solid #c7d9e8; margin: 0.3em 0 0.3em 0;
  padding-left: 0.6em; color: #5a7a90;
}
.tile-comment a { color: #1668a6; text-decoration: underline; }
.tile-comment table { border-collapse: collapse; font-size: 0.82em; margin: 0.3em 0; }
.tile-comment th, .tile-comment td {
  border: 1px solid #c7d9e8; padding: 0.2em 0.5em;
}
.tile-comment th { background: #eaf2fb; font-weight: 700; }
.tile-comment del { text-decoration: line-through; color: #7a9aaf; }
.tile-comment input[type=checkbox] { margin-right: 0.3em; }


.svc-credentials + .tile-comment { margin-top: 0.5rem; }

.svc-cred-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #4a7090;
  line-height: 1.35;
}

.request-access-btn {
  display: block;
  text-align: center;
  margin-top: 1.1rem;
  padding: 0.72rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(42,140,214,.45);
  background: linear-gradient(135deg, rgba(22,117,180,.18) 0%, rgba(15,91,148,.12) 100%);
  color: #6bbfff;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(42,140,214,.15), inset 0 1px 0 rgba(255,255,255,.08);
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.request-access-btn:hover {
  background: linear-gradient(135deg, rgba(42,140,214,.32) 0%, rgba(22,117,180,.22) 100%);
  border-color: rgba(42,140,214,.75);
  color: #c0dff8;
  box-shadow: 0 4px 18px rgba(42,140,214,.28), inset 0 1px 0 rgba(255,255,255,.12);
}

.login-about {
  max-width: 420px;
  text-align: center;
  padding: 0 1rem 2.5rem;
}
.login-about-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #dce8f5;
  margin-bottom: 0.75rem;
  letter-spacing: .01em;
}
.login-about-desc {
  font-size: .9rem;
  color: #7ea8c4;
  line-height: 1.65;
  margin-bottom: 1.1rem;
}
.login-about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}
.login-chip {
  background: rgba(42,140,214,.13);
  border: 1px solid rgba(42,140,214,.3);
  border-radius: 999px;
  padding: .35rem .85rem;
  font-size: .8rem;
  color: #6bbfff;
  font-weight: 600;
}

/* ========== Request Access Modal ========== */
.access-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 18, 0.82);
  backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.access-modal {
  background: linear-gradient(150deg, #0b1a2e 0%, #0d2040 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.65), 0 0 0 1px rgba(42,130,210,0.15);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(42,130,210,0.3) transparent;
}

.access-modal-header {
  padding: 1.75rem 1.75rem 0;
}
.access-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e0f0ff;
  margin-bottom: 0.3rem;
}
.access-modal-sub {
  font-size: 0.85rem;
  color: rgba(160,205,238,0.65);
}

.access-modal-body {
  padding: 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.access-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.access-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(160,205,238,0.8);
  letter-spacing: 0.02em;
}
.access-field .req {
  color: #5aadee;
}
.access-field input[type=text],
.access-field input[type=email],
.access-field input[type=tel] {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  color: #daeeff;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.access-field input[type=text]::placeholder,
.access-field input[type=email]::placeholder,
.access-field input[type=tel]::placeholder {
  color: rgba(120,170,210,0.35);
}
.access-field input[type=text]:focus,
.access-field input[type=email]:focus,
.access-field input[type=tel]:focus {
  border-color: rgba(42,130,210,0.55);
  box-shadow: 0 0 0 3px rgba(42,130,210,0.12);
}

.access-products-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.75rem;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(42,130,210,0.3) transparent;
}
.access-products-loading {
  color: rgba(140,190,228,0.55);
  font-size: 0.85rem;
}
.access-products-group {
  margin-bottom: 0.6rem;
}
.access-products-group:last-child {
  margin-bottom: 0;
}
.access-products-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(100,165,215,0.6);
  margin-bottom: 0.35rem;
}
.access-product-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0;
  cursor: pointer;
  font-size: 0.875rem;
  color: rgba(200,228,255,0.8);
}
.access-product-item input[type=checkbox] {
  accent-color: #1e7dc8;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.access-product-item:hover span {
  color: #daeeff;
}

.access-modal-error {
  background: rgba(220,60,60,0.12);
  border: 1px solid rgba(220,60,60,0.3);
  border-radius: 6px;
  padding: 0.55rem 0.85rem;
  color: #f08080;
  font-size: 0.85rem;
}

.access-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0 1.75rem 1.5rem;
}

.access-btn-cancel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.6rem 1.25rem;
  color: rgba(180,215,240,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.access-btn-cancel:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.2);
}

.access-btn-submit {
  background: linear-gradient(135deg, #1e7dc8 0%, #1360a0 100%);
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.5rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 12px rgba(20,96,160,0.4);
}
.access-btn-submit:hover:not(:disabled) {
  opacity: 0.9;
  box-shadow: 0 4px 18px rgba(20,96,160,0.55);
}
.access-btn-submit:disabled {
  opacity: 0.55;
  cursor: default;
}

/* Invalid field highlight in access modal */
.access-field input.am-invalid {
  border-color: rgba(220, 70, 70, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(220, 70, 70, 0.15) !important;
  background: rgba(220, 70, 70, 0.05) !important;
}

/* Access modal success state */
.am-success-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0.5rem 0.5rem;
  gap: 0.6rem;
}
.am-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e7dc8, #1360a0);
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(20, 96, 160, 0.4);
}
.am-success-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e0f0ff;
}
.am-success-sub {
  font-size: 0.88rem;
  color: rgba(160, 205, 238, 0.75);
  line-height: 1.5;
}
.am-success-sub strong {
  color: rgba(200, 230, 255, 0.9);
}

/* Textarea in access modal */

/* Consent checkbox */
.access-consent-field {
  margin-top: 12px;
}
.access-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: #ffffff !important;
  line-height: 1.45;
}
.access-consent-label span {
  color: #ffffff !important;
}
.access-consent-label input[type=checkbox] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  accent-color: #2d8cf0;
  cursor: pointer;
}
.access-consent-link {
  color: #82baee;
  text-decoration: underline;
}
.access-consent-link:hover { color: #82baee; }
.am-invalid-consent .access-consent-label {
  color: rgba(220, 70, 70, 0.85);
}
.am-invalid-consent .access-consent-link {
  color: rgba(220, 100, 100, 0.9);
}
.access-textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  color: #daeeff;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  resize: vertical;
  min-height: 90px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.access-textarea::placeholder {
  color: rgba(120,170,210,0.35);
}
.access-textarea:focus {
  border-color: rgba(42,130,210,0.55);
  box-shadow: 0 0 0 3px rgba(42,130,210,0.12);
}
.access-textarea.am-invalid {
  border-color: rgba(220, 70, 70, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(220, 70, 70, 0.15) !important;
  background: rgba(220, 70, 70, 0.05) !important;
}

/* Footer link as button */
.login-footer-link {
  background: none;
  border: none;
  cursor: pointer;
}
