/* Mask SEO Hub — hero-dashboard-main (Mask Ajans anasayfa mockup) */
:root {
  --mph-bg: #000;
  --mph-shell-border: rgba(255, 255, 255, 0.35);
  --mph-bg-sidebar: rgba(0, 0, 0, 0.6);
  --mph-bg-card: rgba(255, 255, 255, 0.025);
  --mph-border: rgba(255, 255, 255, 0.06);
  --mph-border-soft: rgba(255, 255, 255, 0.07);
  --mph-line: rgba(255, 255, 255, 0.05);
  --mph-text: #fff;
  --mph-muted: rgba(255, 255, 255, 0.6);
  --mph-muted-soft: rgba(255, 255, 255, 0.55);
  --mph-blue: #3b82f6;
  --mph-blue-soft: rgba(50, 100, 246, 0.2);
  --mph-blue-text: #7db4ff;
  --mph-purple: #6366f1;
  --mph-teal: #00b4aa;
  --mph-up: #22c55e;
  --mph-down: #f87171;
  --mph-radius: 14px;
  --mph-radius-lg: 14px;
  --mph-sidebar: 220px;
  --mph-shell-gradient: radial-gradient(ellipse at 50% 50%, rgba(0, 180, 170, 0.22) 0%, rgba(0, 170, 165, 0.1) 40%, transparent 70%);
  --mph-shell-shadow: 0 30px 100px rgba(0, 0, 0, 0.6), 0 0 80px rgba(40, 80, 200, 0.08);
}

html,
body.maskajans-portal-body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: #000;
  color: var(--mph-text);
  font-family: Inter, 'Poppins', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Theme global `header { position: fixed }` must not affect portal UI */
.maskajans-portal-body .mph-app header {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  width: auto;
  max-width: none;
  z-index: auto;
  margin: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border: none;
}

.maskajans-portal-body .mph-app header::before {
  display: none;
  content: none;
}

.maskajans-portal-body #wpadminbar {
  display: none !important;
}

.mph-app {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  background: #000;
  padding: 14px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.mph-dashboard-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: calc(100vh - 28px);
  min-height: calc(100dvh - 28px);
  border-radius: 18px;
  overflow: hidden;
  border: none;
  background: #000;
  background-image: var(--mph-shell-gradient);
  box-shadow: var(--mph-shell-shadow);
  position: relative;
  z-index: 1;
}

.mph-dashboard-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.45;
  z-index: 0;
}

.mph-dashboard-inner {
  display: grid;
  grid-template-columns: var(--mph-sidebar) minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: inherit;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.mph-sidebar {
  background: var(--mph-bg-sidebar);
  border-right: 1px solid var(--mph-line);
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  position: sticky;
  top: 0;
  height: 100%;
  min-height: calc(100vh - 28px);
  min-height: calc(100dvh - 28px);
  z-index: 2;
}

.mph-sidebar-brand {
  margin-bottom: 22px;
  padding: 4px 6px 0;
}

.mph-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.mph-sidebar-logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.mph-sidebar-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #151540, #252570);
  border: 1px solid rgba(90, 90, 255, 0.2);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.mph-sidebar-logo-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mph-sidebar-logo-text {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
}

.mph-sidebar-logo-sub {
  font-size: 11px;
  color: var(--mph-muted);
}

.mph-hub-switcher {
  position: relative;
  margin-bottom: 20px;
}

.mph-hub-switcher-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--mph-border);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  cursor: pointer;
}

.mph-hub-switcher-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mph-hub-switcher-label {
  flex: 1;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}

.mph-hub-switcher-caret {
  width: 16px;
  opacity: 0.7;
}

.mph-hub-switcher-caret svg {
  width: 16px;
  height: 16px;
}

.mph-hub-switcher-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #0f1626;
  border: 1px solid var(--mph-border);
  border-radius: 12px;
  padding: 6px;
  z-index: 50;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.mph-hub-switcher-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
}

.mph-hub-switcher-item:hover,
.mph-hub-switcher-item.is-active {
  background: var(--mph-blue-soft);
}

.mph-hub-switcher-item.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.mph-hub-switcher-item small {
  display: block;
  color: var(--mph-muted);
  font-size: 11px;
}

.mph-nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5);
  margin: 22px 0 12px;
  padding-left: 12px;
  font-weight: 500;
}

.mph-sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mph-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

.mph-nav-link:hover {
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
}

.mph-nav-link.is-active {
  background: linear-gradient(135deg, rgba(50, 100, 246, 0.2), rgba(80, 80, 241, 0.12));
  color: var(--mph-blue-text);
  box-shadow: none;
}

.mph-nav-link--gold {
  color: #d4af37;
}

.mph-nav-link--gold .mph-nav-icon svg {
  stroke: #d4af37;
}

.mph-nav-link--gold:hover {
  color: #f0cc5a;
  background: rgba(212, 175, 55, 0.1);
}

.mph-nav-link--gold:hover .mph-nav-icon svg {
  stroke: #f0cc5a;
}

.mph-nav-link--gold.is-active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.24), rgba(180, 140, 40, 0.12));
  color: #fcd34d;
}

.mph-nav-link--gold.is-active .mph-nav-icon svg {
  stroke: #fcd34d;
}

.mph-nav-link.is-disabled {
  opacity: 0.5;
}

.mph-nav-link--muted {
  color: var(--mph-muted);
}

.mph-nav-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  opacity: 0.9;
}

.mph-nav-icon svg {
  width: 18px;
  height: 18px;
}

.mph-sidebar-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--mph-border);
}

.mph-main {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.mph-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 28px 32px 0;
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
  position: relative;
  top: auto;
  z-index: 10;
}

.mph-topbar-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mph-topbar-sub {
  margin: 3px 0 0;
  color: var(--mph-muted);
  font-size: 12px;
}

.mph-topbar-sub a {
  color: #93c5fd;
  text-decoration: none;
}

.mph-topbar-sub--warn {
  color: #fbbf24;
}

.mph-topbar-right {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mph-filter-wrap {
  position: relative;
}

.mph-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.mph-filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.mph-filter-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--mph-border-soft);
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.mph-filter-range svg {
  width: 11px;
  height: 11px;
  color: rgba(255, 255, 255, 0.75);
  flex-shrink: 0;
}

.mph-filter-presets {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.mph-filter-preset {
  border: 1px solid var(--mph-border-soft);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.mph-filter-preset:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.mph-filter-preset.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.12);
}

.mph-filter-refresh {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.mph-filter-refresh:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.mph-filter-refresh svg {
  width: 16px;
  height: 16px;
}

.mph-filter-custom {
  display: none;
  align-items: end;
  gap: 10px;
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.88);
}

.mph-filter-custom.is-open {
  display: flex;
  flex-wrap: wrap;
}

.mph-filter-date-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 150px;
}

.mph-filter-date-field span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #94a3b8;
}

.mph-filter-date {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 10px;
  border-radius: 10px;
  color-scheme: dark;
  min-height: 40px;
}

.mph-filter-date:focus {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  outline-offset: 1px;
}

.mph-filter-apply {
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  min-height: 40px;
  cursor: pointer;
  white-space: nowrap;
}

.mph-filter-apply:hover {
  filter: brightness(1.06);
}

.mph-rank-item--warn .mph-rank-info strong {
  color: #fca5a5;
}

.mph-topbar-icon-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--mph-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.mph-topbar-icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.mph-topbar-icon-btn svg {
  width: 16px;
  height: 16px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.mph-topbar-pill {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--mph-border-soft);
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.04);
}

.mph-topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #151540, #252570);
  border: 1px solid rgba(90, 90, 255, 0.2);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  box-shadow: none;
}

.mph-content {
  padding: 20px 32px 32px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.mph-seo-dashboard,
.mph-seo-keyword-dashboard,
.mph-insights,
.mph-seo-traffic {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mph-note {
  font-size: 12px;
  color: var(--mph-muted);
  padding: 0;
  border: none;
  border-radius: 0;
  margin: 0;
  background: transparent;
}

.mph-seo-keyword-dashboard > .mph-note {
  margin-top: -6px;
  margin-bottom: -4px;
}

.mph-stat-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mph-stat-grid--hero {
  margin-bottom: 0;
}

.mph-stat-grid--compact {
  margin-bottom: 0;
}

.mph-stat-card {
  background: var(--mph-bg-card);
  border: 1px solid var(--mph-border);
  border-radius: var(--mph-radius-lg);
  padding: 20px 22px;
  box-shadow: none;
  position: relative;
  text-align: left;
}

.mph-stat-card--hero {
  min-height: auto;
  display: block;
}

.mph-stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mph-stat-dots {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
  line-height: 1;
}

.mph-stat-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  font-weight: 500;
}

.mph-stat-row {
  display: block;
}

.mph-stat-value {
  font-size: 26px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 8px;
}

.mph-stat-value--xl {
  font-size: 42px;
}

.mph-stat-value--up {
  color: var(--mph-up);
}

.mph-stat-value--down {
  color: var(--mph-down);
}

.mph-stat-spark {
  width: 36px;
  height: 14px;
  flex-shrink: 0;
  opacity: 1;
}

.mph-stat-trend {
  display: inline;
  margin: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  border-radius: 0;
  background: transparent !important;
}

.mph-stat-trend--up {
  color: var(--mph-up);
}

.mph-stat-trend--down {
  color: var(--mph-down);
}

.mph-stat-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--mph-muted);
}

.mph-stat-card:not(.mph-stat-card--hero) .mph-stat-label {
  margin-bottom: 10px;
}

.mph-stat-card:not(.mph-stat-card--hero) .mph-stat-value {
  margin-bottom: 0;
  font-size: 22px;
}

.mph-panels-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}

.mph-panel {
  background: var(--mph-bg-card);
  border: 1px solid var(--mph-border);
  border-radius: var(--mph-radius-lg);
  padding: 24px;
  box-shadow: none;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.mph-panel--chart {
  min-height: 320px;
}

.mph-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.mph-panel-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mph-panel-sub {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--mph-muted-soft);
}

.mph-panel-head a {
  font-size: 13px;
  color: #93c5fd;
  text-decoration: none;
  white-space: nowrap;
}

.mph-muted {
  color: var(--mph-muted);
  font-size: 14px;
}

.mph-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}

.mph-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mph-table th,
.mph-table td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--mph-border);
  text-align: left;
}

.mph-table th {
  color: var(--mph-muted);
  font-weight: 500;
  font-size: 12px;
}

.mph-table-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}

.mph-table-sort:hover {
  color: #e2e8f0;
}

.mph-table-sort:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}

.mph-table-sort-icon {
  display: inline-flex;
  width: 10px;
  height: 10px;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
  font-size: 9px;
  line-height: 1;
}

.mph-table-sort-icon::before {
  content: '↕';
}

.mph-table-sort.is-sorted-asc .mph-table-sort-icon,
.mph-table-sort.is-sorted-desc .mph-table-sort-icon {
  opacity: 1;
  color: #93c5fd;
}

.mph-table-sort.is-sorted-asc .mph-table-sort-icon::before {
  content: '▲';
}

.mph-table-sort.is-sorted-desc .mph-table-sort-icon::before {
  content: '▼';
}

.mph-table a {
  color: #bfdbfe;
  text-decoration: none;
}

.mph-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mph-timeline li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mph-timeline li:last-child {
  border-bottom: none;
}

.mph-timeline-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  background: var(--mph-blue);
}

.mph-timeline-status--completed {
  background: var(--mph-up);
}

.mph-timeline-status--in_progress {
  background: #f59e0b;
}

.mph-timeline p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--mph-muted);
}

.mph-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mph-rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--mph-line);
}

.mph-rank-item:last-child {
  border-bottom: none;
}

.mph-rank-info strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

.mph-rank-info span {
  font-size: 12px;
}

.mph-rank-ring {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.mph-rank-ring svg {
  width: 56px;
  height: 56px;
  transform: rotate(-90deg);
}

.mph-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 3.5;
}

.mph-ring-fill {
  fill: none;
  stroke: var(--ring-color, var(--mph-blue));
  stroke-width: 3.5;
  stroke-linecap: round;
}

.mph-rank-item:nth-child(4n+1) { --ring-color: #ef4444; }
.mph-rank-item:nth-child(4n+2) { --ring-color: #f59e0b; }
.mph-rank-item:nth-child(4n+3) { --ring-color: #a855f7; }
.mph-rank-item:nth-child(4n+4) { --ring-color: #22d3ee; }

.mph-rank-ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
}

.mph-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--mph-muted);
}

.mph-empty--hero {
  min-height: 360px;
  display: grid;
  place-content: center;
}

.mph-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  color: var(--mph-blue);
}

.mph-empty-icon svg {
  width: 56px;
  height: 56px;
}

.mph-empty h1,
.mph-empty h2 {
  color: #fff;
}

.mph-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.mph-btn--primary {
  background: linear-gradient(135deg, #2563eb, var(--mph-blue));
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
}

.mph-btn--ghost {
  border-color: var(--mph-border);
  color: #fff;
  background: transparent;
}

.mph-btn--danger {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.35);
}

.mph-btn--danger:hover {
  background: rgba(185, 28, 28, 0.45);
}

.mph-btn--block {
  width: 100%;
}

.mph-login-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.mph-login-bg {
  position: absolute;
  inset: 0;
  background: #050810;
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(139, 92, 246, 0.12), transparent 50%);
}

.mph-login-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.mph-login-card {
  position: relative;
  z-index: 2;
  width: min(420px, 100%);
  background: rgba(12, 18, 32, 0.88);
  border: 1px solid var(--mph-border);
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}

.mph-login-brand {
  margin-bottom: 4px;
}

.mph-login-logo-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.mph-login-logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #fff, var(--mph-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mph-login-kicker {
  font-size: 12px;
  color: var(--mph-muted);
  margin: 8px 0 0;
}

.mph-login-card h1 {
  margin: 18px 0 6px;
  font-size: 28px;
}

.mph-login-sub {
  margin: 0 0 18px;
  color: var(--mph-muted);
}

.mph-field {
  display: block;
  margin-bottom: 14px;
}

.mph-field span {
  display: block;
  font-size: 12px;
  color: var(--mph-muted);
  margin-bottom: 6px;
}

.mph-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--mph-border);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  box-sizing: border-box;
}

.mph-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 16px;
  font-size: 13px;
  color: var(--mph-muted);
}

.mph-alert {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 13px;
}

.mph-alert--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fecaca;
}

.mph-alert--success {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #a7f3d0;
}

.mph-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.mph-field--inline {
  flex: 1 1 200px;
  margin-bottom: 0;
}

.mph-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 12px;
}

.mph-section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.mph-section-head a {
  font-size: 13px;
  color: var(--mph-accent);
  text-decoration: none;
}

.mph-chart-bar-fill--accent {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
}

.mph-stat-trend--muted {
  color: var(--mph-muted);
  font-size: 12px;
}

.mph-btn--sm {
  padding: 6px 10px;
  font-size: 12px;
}

.mph-table-action {
  margin: 0;
}

.mph-login-foot {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--mph-muted);
}

.mph-launcher-head {
  margin-bottom: 24px;
}

.mph-launcher-head h1 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 700;
}

.mph-launcher-head p {
  margin: 0;
  color: var(--mph-muted);
}

.mph-launcher-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mph-hub-card {
  display: block;
  padding: 24px;
  border-radius: var(--mph-radius-lg);
  border: 1px solid var(--mph-border);
  background: var(--mph-bg-card);
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--mph-glow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mph-hub-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, color-mix(in srgb, var(--hub-color) 28%, transparent), transparent 58%);
  opacity: 0.85;
}

.mph-hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--mph-border-strong);
}

.mph-hub-card > * {
  position: relative;
}

.mph-hub-card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  color: var(--hub-color);
}

.mph-hub-card-icon svg {
  width: 44px;
  height: 44px;
}

.mph-hub-card h2 {
  margin: 0 0 8px;
}

.mph-hub-card p {
  margin: 0;
  color: var(--mph-muted);
  font-size: 14px;
  line-height: 1.6;
}

.mph-hub-card-cta {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: #93c5fd;
}

.mph-hub-card--soon {
  opacity: 0.72;
}

.mph-badge {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.18);
  color: #ddd6fe;
}

.mph-chart-wrap {
  width: 100%;
  padding: 4px 0 0;
}

.mph-chart-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--mph-line);
  font-size: 12px;
  color: var(--mph-muted);
}

.mph-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mph-chart-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.mph-chart-legend-dot--muted {
  background: linear-gradient(180deg, #64748b, #475569);
}

.mph-chart-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--mph-line);
  border-radius: var(--mph-radius);
  color: var(--mph-muted);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.mph-chart-empty--sm {
  min-height: 120px;
  font-size: 13px;
}

.mph-chart-bars {
  display: grid;
  grid-template-columns: repeat(var(--mph-chart-cols, 30), minmax(0, 1fr));
  gap: 5px;
  align-items: end;
  width: 100%;
  min-height: 260px;
  padding: 16px 10px 0;
  border-bottom: 1px solid var(--mph-line);
}

.mph-chart-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  min-width: 0;
  height: 220px;
}

.mph-chart-bar-track {
  display: flex;
  align-items: flex-end;
  flex: 1;
  width: 100%;
  padding: 0 1px;
}

.mph-chart-bar-fill {
  display: block;
  width: 100%;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  min-height: 4px;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.22);
}

.mph-chart-bars--accent .mph-chart-bar-fill {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.18);
}

.mph-chart-bar-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: #cbd5e1;
  margin-top: 8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mph-chart-bar-label.is-spacer {
  visibility: hidden;
}

/* Line chart */
.mph-line-chart {
  width: 100%;
  position: relative;
}

.mph-line-chart-inner {
  position: relative;
  width: 100%;
  min-height: 280px;
}

.mph-line-chart-svg {
  display: block;
  width: 100%;
  height: 280px;
}

.mph-line-chart-grid {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.mph-line-chart-y-label {
  fill: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-family: Inter, system-ui, sans-serif;
}

.mph-line-chart-x-label {
  fill: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-family: Inter, system-ui, sans-serif;
}

.mph-line-chart-line {
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.35));
}

.mph-line-chart--accent .mph-line-chart-line {
  filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.35));
}

.mph-line-chart-dot {
  transition: r 0.15s ease, stroke-width 0.15s ease;
}

.mph-line-chart-dot.is-active {
  r: 6.5;
  stroke-width: 2.5;
}

.mph-line-chart-overlay {
  position: absolute;
  inset: 0;
  cursor: crosshair;
}

.mph-line-chart-crosshair {
  position: absolute;
  top: 18px;
  bottom: 38px;
  width: 0;
  border-left: 1px dashed rgba(255, 255, 255, 0.28);
  pointer-events: none;
  z-index: 2;
}

.mph-line-chart-tooltip {
  position: absolute;
  z-index: 3;
  min-width: 140px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 15, 24, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.mph-line-chart-tooltip-date {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}

.mph-line-chart-tooltip-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.mph-line-chart-tooltip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  flex-shrink: 0;
}

.mph-line-chart--accent .mph-line-chart-tooltip-dot {
  background: #34d399;
}

.mph-line-chart-data {
  display: none !important;
}

.mph-seo-traffic .mph-stat-grid {
  margin-bottom: 18px;
}

/* Notifications */
.mph-notif-wrap {
  position: relative;
}

.mph-notif-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  cursor: pointer;
}

.mph-notif-btn svg {
  width: 18px;
  height: 18px;
}

.mph-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.mph-notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  width: min(360px, 92vw);
  max-height: 420px;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.mph-notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.mph-notif-head a {
  color: #93c5fd;
  font-size: 12px;
  text-decoration: none;
}

.mph-notif-empty,
.mph-notif-list {
  padding: 12px 14px;
}

.mph-notif-list {
  list-style: none;
  margin: 0;
}

.mph-notif-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.mph-notif-item.is-unread {
  background: rgba(59, 130, 246, 0.08);
  margin: 0 -14px;
  padding: 10px 14px;
}

.mph-notif-item p {
  margin: 0 0 4px;
  font-size: 13px;
  color: #e2e8f0;
}

.mph-notif-item small {
  color: #94a3b8;
  font-size: 11px;
}

.mph-notif-read {
  display: inline-block;
  margin-top: 6px;
  color: #93c5fd;
  font-size: 12px;
  text-decoration: none;
}

/* Compare & goals */
.mph-compare-grid,
.mph-goals-grid,
.mph-rank-charts-grid,
.mph-learn-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.mph-compare-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mph-goals-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mph-rank-charts-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mph-compare-card,
.mph-goal-card {
  padding: 20px 22px;
  background: var(--mph-bg-card);
  border: 1px solid var(--mph-border);
  border-radius: var(--mph-radius-lg);
  box-shadow: none;
}

.mph-rank-chart {
  padding: 16px;
  border-radius: var(--mph-radius);
  border: 1px solid var(--mph-border);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
}

.mph-rank-charts-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mph-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 0;
}

.mph-section-head a {
  color: #93c5fd;
  font-size: 13px;
  text-decoration: none;
}

.mph-section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.mph-compare-card strong,
.mph-goal-head strong {
  display: block;
  font-size: 1.35rem;
  margin-top: 6px;
}

.mph-compare-card small {
  display: block;
  margin-top: 6px;
}

.mph-goal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.mph-goal-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
  margin-bottom: 6px;
}

.mph-goal-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #34d399, #059669);
}

/* Tabs & insights */
.mph-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.mph-tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.mph-tab.is-active {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(96, 165, 250, 0.45);
  color: #fff;
}

.mph-rank-chart {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.55);
}

.mph-rank-chart-inner {
  position: relative;
}

.mph-rank-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.mph-rank-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.mph-rank-chart-dot {
  opacity: 0.35;
  transition: opacity 0.15s ease, r 0.15s ease;
}

.mph-rank-chart-dot.is-active {
  opacity: 1;
  r: 5;
}

.mph-rank-chart-overlay {
  position: absolute;
  inset: 0;
  cursor: crosshair;
}

.mph-rank-chart-crosshair {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(148, 163, 184, 0.45);
  pointer-events: none;
}

.mph-rank-chart-tooltip {
  position: absolute;
  z-index: 2;
  min-width: 110px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(10, 15, 24, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.22);
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.mph-rank-chart-tooltip-date {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  margin-bottom: 2px;
}

.mph-rank-chart-tooltip-value {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
}

.mph-learn-content {
  margin-top: 16px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.65;
}

.mph-learn-content h3 {
  margin: 24px 0 10px;
  font-size: 16px;
  color: #f1f5f9;
}

.mph-learn-content h3:first-child {
  margin-top: 0;
}

.mph-learn-content p {
  margin: 0 0 12px;
}

.mph-learn-content ul,
.mph-learn-content ol {
  margin: 0 0 14px 18px;
  padding: 0;
}

.mph-learn-content li {
  margin-bottom: 6px;
}

.mph-learn-content em {
  color: #94a3b8;
  font-style: italic;
}

/* Support, learn, report */
.mph-support-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.mph-support-stat {
  padding: 18px 20px;
}

.mph-support-stat-label {
  display: block;
  font-size: 12px;
  color: var(--mph-muted);
  margin-bottom: 6px;
}

.mph-support-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #f1f5f9;
}

.mph-support-stat-value--accent {
  color: #34d399;
}

.mph-support-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 14px;
  align-items: start;
}

.mph-support-form-panel .mph-panel-head,
.mph-support-list-panel .mph-panel-head {
  margin-bottom: 18px;
}

.mph-support-form .mph-field {
  margin-bottom: 14px;
}

.mph-support-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: #93c5fd;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.mph-support-back:hover {
  color: #bfdbfe;
}

.mph-support-detail-head {
  margin-bottom: 14px;
}

.mph-support-detail-main h2 {
  margin: 6px 0 10px;
  font-size: 22px;
}

.mph-support-ref {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #94a3b8;
  text-transform: uppercase;
}

.mph-support-ref--inline {
  display: block;
  margin-bottom: 2px;
}

.mph-support-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.mph-support-meta-item {
  font-size: 12px;
  color: var(--mph-muted);
}

.mph-support-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mph-support-badge--open {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.mph-support-badge--in_progress {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.mph-support-badge--answered {
  background: rgba(52, 211, 153, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.mph-support-badge--closed {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.mph-support-thread-panel {
  padding: 0;
  overflow: hidden;
}

.mph-support-thread {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  max-height: 520px;
  overflow-y: auto;
}

.mph-support-msg {
  display: flex;
  gap: 12px;
  max-width: 85%;
}

.mph-support-msg--client {
  margin-left: auto;
  flex-direction: row-reverse;
}

.mph-support-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.mph-support-msg--agency .mph-support-msg-avatar {
  background: rgba(59, 130, 246, 0.22);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.mph-support-msg--client .mph-support-msg-avatar {
  background: rgba(52, 211, 153, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.mph-support-msg-body {
  flex: 1;
  min-width: 0;
}

.mph-support-msg-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.mph-support-msg-head strong {
  font-size: 13px;
}

.mph-support-msg-head time {
  font-size: 11px;
  color: var(--mph-muted);
  white-space: nowrap;
}

.mph-support-msg-text {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: #e2e8f0;
}

.mph-support-msg--agency .mph-support-msg-text {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-top-left-radius: 4px;
}

.mph-support-msg--client .mph-support-msg-text {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-top-right-radius: 4px;
}

.mph-support-reply {
  padding: 20px 24px 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.35);
}

.mph-support-reply-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mph-support-reply-hint {
  margin: 0;
  font-size: 12px;
}

.mph-support-closed-note {
  padding: 20px 24px;
  margin: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.mph-support-empty {
  padding: 36px 20px;
  text-align: center;
}

.mph-support-empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: #64748b;
}

.mph-support-empty-icon svg {
  width: 100%;
  height: 100%;
}

.mph-support-table-subject {
  display: block;
  color: inherit;
  text-decoration: none;
}

.mph-support-table-subject strong {
  display: block;
  color: #f1f5f9;
  font-size: 14px;
  margin-bottom: 2px;
}

.mph-support-table-subject:hover strong {
  color: #93c5fd;
}

.mph-support-table-preview {
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}

.mph-support-table-count {
  display: block;
  font-size: 11px;
}

.mph-support-table-link {
  font-size: 12px;
  font-weight: 600;
  color: #93c5fd;
  text-decoration: none;
  white-space: nowrap;
}

.mph-support-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.mph-ticket-list,
.mph-message-thread {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mph-ticket-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.mph-message {
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  background: rgba(15, 23, 42, 0.55);
}

.mph-message--agency {
  border-left: 3px solid #60a5fa;
}

.mph-message--client {
  border-left: 3px solid #34d399;
}

.mph-learn-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mph-learn-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.mph-learn-card h3 {
  margin: 0 0 8px;
}

.mph-learn-back {
  display: inline-block;
  margin-bottom: 12px;
  color: #93c5fd;
  text-decoration: none;
}

.mph-report-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.mph-inline-form {
  display: flex;
  align-items: end;
  gap: 8px;
}

.mph-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mph-field input,
.mph-field textarea,
.mph-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
}

@media print {
  .mph-sidebar,
  .mph-topbar,
  .mph-report-actions,
  .mph-filter-wrap {
    display: none !important;
  }

  .mph-app {
    display: block;
  }

  .mph-content {
    padding: 0;
  }

  .mph-report-body {
    box-shadow: none;
    border: none;
    color: #111;
    background: #fff;
  }
}

@media (max-width: 1100px) {
  .mph-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mph-panels-grid {
    grid-template-columns: 1fr;
  }

  .mph-compare-grid,
  .mph-rank-charts-grid,
  .mph-learn-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mph-support-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mph-support-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .mph-app {
    padding: 8px;
  }

  .mph-dashboard-shell {
    border-radius: 14px;
    min-height: calc(100vh - 16px);
  }

  .mph-dashboard-inner {
    grid-template-columns: 1fr;
  }

  .mph-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    transform: translateX(-100%);
    min-height: 100vh;
    transition: transform 0.22s ease;
    width: min(86vw, 280px);
  }

  .mph-launcher-grid {
    grid-template-columns: 1fr;
  }

  .mph-content,
  .mph-topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .mph-filter-row {
    flex-wrap: wrap;
  }

  .mph-filter-presets {
    flex-wrap: wrap;
  }

  .mph-filter-custom.is-open {
    width: 100%;
  }

  .mph-support-stats {
    grid-template-columns: 1fr;
  }

  .mph-support-msg {
    max-width: 100%;
  }

  .mph-content-cal-input,
  .mph-content-cal-select,
  .mph-seo-improve-input,
  .mph-seo-improve-select {
    min-width: 72px;
    max-width: 100%;
  }

  .mph-content-cal-input--title,
  .mph-seo-improve-input--wide {
    min-width: 120px;
  }
}

/* Works subnav */
.mph-works-subnav {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.mph-works-subnav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--mph-border);
  color: var(--mph-muted);
  font-size: 13px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mph-works-subnav-link:hover {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.18);
}

.mph-works-subnav-link.is-active {
  background: rgba(45, 212, 191, 0.14);
  border-color: rgba(45, 212, 191, 0.45);
  color: #5eead4;
}

.mph-nav-item--sub .mph-nav-link--sub {
  padding-left: 2.75rem;
  font-size: 13px;
}

/* Category optimizations table */
.mph-cat-opt-panel .mph-panel-head {
  align-items: flex-start;
}

.mph-cat-opt-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.mph-works-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.mph-works-form-actions,
.mph-cat-opt-form-actions,
.mph-content-cal-form-actions,
.mph-seo-improve-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.mph-works-table-hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--mph-muted);
}

.mph-cat-opt-panel,
.mph-content-cal-panel,
.mph-seo-improve-panel {
  overflow: visible;
}

.mph-cat-opt-actions-col,
.mph-content-cal-actions-col,
.mph-seo-improve-actions-col {
  position: sticky;
  right: 0;
  z-index: 2;
  background: #111827;
  box-shadow: -8px 0 12px rgba(0, 0, 0, 0.25);
}

.mph-cat-opt-table thead .mph-cat-opt-actions-col,
.mph-content-cal-table thead .mph-content-cal-actions-col,
.mph-seo-improve-table thead .mph-seo-improve-actions-col {
  background: #1e293b;
}

.mph-cat-opt-table thead th {
  background: linear-gradient(180deg, #6b4fa8 0%, #5b3d8f 100%);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  border-bottom: 0;
  white-space: nowrap;
}

.mph-cat-opt-table thead .mph-table-sort {
  color: #fff;
}

.mph-cat-opt-table thead .mph-table-sort:hover {
  color: #e9d5ff;
}

.mph-cat-opt-table tbody td {
  vertical-align: middle;
}

.mph-cat-opt-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.mph-cat-opt-pill--unchanged {
  background: rgba(96, 165, 250, 0.18);
  color: #93c5fd;
}

.mph-cat-opt-pill--updated {
  background: rgba(74, 222, 128, 0.16);
  color: #86efac;
}

.mph-cat-opt-pill--new {
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
}

.mph-cat-opt-pill--empty {
  background: rgba(148, 163, 184, 0.08);
  color: rgba(148, 163, 184, 0.55);
  min-width: 120px;
  min-height: 28px;
  border: 1px dashed rgba(148, 163, 184, 0.18);
}

.mph-cat-opt-pill-caret {
  font-size: 10px;
  opacity: 0.75;
}

.mph-cat-opt-metric {
  color: #4ade80;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.mph-cat-opt-metric--placeholder {
  color: rgba(148, 163, 184, 0.45);
  font-weight: 500;
}

.mph-cat-opt-input,
.mph-cat-opt-select,
.mph-cat-opt-metric-input {
  width: 100%;
  min-width: 110px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--mph-border);
  border-radius: 8px;
  color: #e2e8f0;
  padding: 6px 8px;
  font-size: 12px;
}

.mph-cat-opt-select {
  appearance: none;
  padding-right: 24px;
  background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% + 1px), calc(100% - 9px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.mph-cat-opt-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.mph-cat-opt-actions-col {
  white-space: nowrap;
  font-size: 11px;
}

.mph-cat-opt-delete,
.mph-cat-opt-visible {
  display: block;
  margin-bottom: 4px;
  color: var(--mph-muted);
}

.mph-inline-form {
  display: inline;
}

/* Content calendar */
.mph-content-cal-panel .mph-panel-head {
  align-items: flex-start;
}

.mph-content-cal-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.mph-content-cal-form,
.mph-seo-improve-form {
  min-width: 0;
  max-width: 100%;
}

.mph-content-cal-table {
  width: max-content;
  min-width: 100%;
}

.mph-content-cal-table thead th {
  background: linear-gradient(180deg, #2f7a4f 0%, #25633f 100%);
  color: #fff;
  font-weight: 600;
  font-size: 11px;
  border-bottom: 0;
  white-space: nowrap;
}

.mph-content-cal-table thead .mph-table-sort {
  color: #fff;
}

.mph-content-cal-table tbody tr:nth-child(even) {
  background: rgba(74, 222, 128, 0.04);
}

.mph-content-cal-table tbody td {
  vertical-align: middle;
  font-size: 12px;
}

.mph-content-cal-title {
  min-width: 220px;
  font-weight: 500;
}

.mph-content-cal-cat {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.mph-content-cal-cat--blog { color: #4ade80; background: rgba(74, 222, 128, 0.12); }
.mph-content-cal-cat--landing { color: #60a5fa; background: rgba(96, 165, 250, 0.12); }
.mph-content-cal-cat--seasonal { color: #f472b6; background: rgba(244, 114, 182, 0.12); }
.mph-content-cal-cat--technical { color: #94a3b8; background: rgba(148, 163, 184, 0.12); }
.mph-content-cal-cat--product { color: #facc15; background: rgba(250, 204, 21, 0.12); }

.mph-content-cal-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.mph-content-cal-status--live {
  background: rgba(34, 197, 94, 0.85);
  color: #fff;
}

.mph-content-cal-status--planned {
  background: rgba(251, 146, 60, 0.85);
  color: #fff;
}

.mph-content-cal-status-caret {
  font-size: 10px;
  opacity: 0.85;
}

.mph-content-cal-priority {
  font-size: 12px;
  font-weight: 700;
}

.mph-content-cal-priority--very-high { color: #f87171; }
.mph-content-cal-priority--high { color: #fb923c; }
.mph-content-cal-priority--medium { color: #60a5fa; }
.mph-content-cal-priority--low { color: #94a3b8; }

.mph-content-cal-input,
.mph-content-cal-select {
  width: 100%;
  min-width: 90px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--mph-border);
  border-radius: 8px;
  color: #e2e8f0;
  padding: 5px 7px;
  font-size: 11px;
}

.mph-content-cal-input--title {
  min-width: 180px;
}

.mph-content-cal-input--num {
  min-width: 48px;
  max-width: 56px;
}

.mph-content-cal-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.mph-content-cal-actions-col {
  white-space: nowrap;
  font-size: 11px;
}

.mph-content-cal-delete,
.mph-content-cal-visible {
  display: block;
  margin-bottom: 4px;
  color: var(--mph-muted);
}

/* SEO Improvements (Geliştirmeler) */
.mph-seo-improve-panel .mph-panel-head {
  align-items: flex-start;
}

.mph-seo-improve-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mph-seo-improve-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.mph-seo-improve-table {
  width: max-content;
  min-width: 100%;
}

.mph-seo-improve-table thead th {
  background: #1e3a5f;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.mph-seo-improve-table thead .mph-table-sort {
  color: #fff;
}

.mph-seo-improve-row--critical {
  background: rgba(220, 38, 38, 0.08);
}

.mph-seo-improve-row--warning {
  background: rgba(249, 115, 22, 0.08);
}

.mph-seo-improve-table tbody td {
  vertical-align: middle;
}

.mph-seo-improve-control {
  font-weight: 500;
}

.mph-seo-improve-finding {
  color: var(--mph-muted);
  font-size: 13px;
}

.mph-seo-improve-priority {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.mph-seo-improve-priority--critical {
  background: #991b1b;
}

.mph-seo-improve-priority--warning {
  background: #ea580c;
}

.mph-seo-improve-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
}

.mph-seo-improve-status--pending {
  color: #ef4444;
}

.mph-seo-improve-status--progress {
  color: #f59e0b;
}

.mph-seo-improve-status--done {
  color: #22c55e;
}

.mph-seo-improve-status-caret {
  font-size: 10px;
  opacity: 0.8;
}

.mph-seo-improve-input,
.mph-seo-improve-select {
  width: 100%;
  min-width: 80px;
  padding: 6px 8px;
  border: 1px solid var(--mph-border);
  border-radius: 6px;
  background: var(--mph-surface);
  color: var(--mph-text);
  font-size: 13px;
}

.mph-seo-improve-input--wide {
  min-width: 180px;
}

.mph-seo-improve-input--num {
  max-width: 64px;
}

.mph-seo-improve-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.mph-seo-improve-actions-col {
  white-space: nowrap;
  font-size: 11px;
}

.mph-seo-improve-delete,
.mph-seo-improve-visible {
  display: block;
  margin-bottom: 4px;
  color: var(--mph-muted);
}

/* CEO Dashboard & Wins */
.mph-seo-dashboard--ceo {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mph-note--compact {
  margin-bottom: 0;
  font-size: 12px;
}

.mph-ceo-banner {
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid var(--mph-border);
  background: var(--mph-surface);
}

.mph-ceo-banner--positive {
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.08), var(--mph-surface));
}

.mph-ceo-banner--attention {
  border-color: rgba(249, 115, 22, 0.35);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.08), var(--mph-surface));
}

.mph-ceo-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mph-muted);
}

.mph-ceo-headline {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.25;
}

.mph-ceo-headline--small {
  font-size: 1.15rem;
}

.mph-ceo-subline {
  margin: 0;
  color: var(--mph-muted);
  line-height: 1.5;
}

.mph-ceo-status-row {
  display: grid;
  grid-template-columns: minmax(180px, 220px) repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mph-ceo-score-card,
.mph-ceo-status-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--mph-border);
  background: var(--mph-surface);
}

.mph-ceo-status-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.mph-ceo-status-card--good strong { color: #4ade80; }
.mph-ceo-status-card--warn strong { color: #fb923c; }

.mph-ceo-score-label {
  display: block;
  font-size: 1rem;
}

.mph-ceo-score-ring {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--mph-bg) 58%, transparent 59%),
    conic-gradient(#22c55e calc(var(--score) * 1%), rgba(148, 163, 184, 0.2) 0);
  text-align: center;
}

.mph-ceo-score-ring strong {
  font-size: 1.35rem;
  line-height: 1;
}

.mph-ceo-growth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.mph-ceo-growth-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--mph-border);
  background: var(--mph-surface);
}

.mph-ceo-card-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--mph-muted);
  line-height: 1.4;
}

.mph-visibility-panel {
  padding-top: 8px;
}

.mph-visibility-head h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.mph-visibility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.mph-visibility-block h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--mph-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mph-visibility-table {
  font-size: 13px;
}

.mph-visibility-table thead th {
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
}

.mph-visibility-kw {
  font-weight: 500;
}

.mph-visibility-page {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.mph-visibility-rank {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  font-size: 12px;
  font-weight: 600;
}

.mph-visibility-foot {
  margin: 12px 0 0;
  font-size: 13px;
}

.mph-visibility-foot a {
  color: var(--mph-accent, #60a5fa);
}

.mph-dashboard-tasks .mph-timeline--tasks {
  margin-top: 4px;
}

.mph-ceo-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.mph-agency-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mph-agency-timeline-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
}

.mph-agency-timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: #60a5fa;
}

.mph-agency-timeline-item--done .mph-agency-timeline-dot {
  background: #22c55e;
}

.mph-agency-timeline-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.mph-agency-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
  white-space: nowrap;
}

.mph-agency-timeline-item--done .mph-agency-badge {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.mph-agency-timeline-item p {
  margin: 4px 0;
  color: var(--mph-muted);
  font-size: 13px;
}

.mph-agency-timeline-item small {
  color: var(--mph-muted);
  font-size: 11px;
}

.mph-wins-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mph-wins-list--compact .mph-win-item {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--mph-border);
  background: rgba(255, 255, 255, 0.02);
}

.mph-win-item p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--mph-muted);
}

.mph-win-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--mph-border);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.06), rgba(15, 23, 42, 0.2));
}

.mph-win-card-icon {
  color: #facc15;
}

.mph-win-card-body p {
  margin: 6px 0;
  color: var(--mph-muted);
}

.mph-win-card-body small {
  color: var(--mph-muted);
  font-size: 11px;
}

.mph-wins-summary {
  margin-bottom: 0;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--mph-border);
}

.mph-wins-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mph-win-detail-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mph-win-detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
}

.mph-win-detail-list strong {
  color: #86efac;
}

.mph-ceo-details {
  border: 1px solid var(--mph-border);
  border-radius: 14px;
  background: var(--mph-surface);
}

.mph-ceo-details summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
}

.mph-ceo-details-body {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mph-compare-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.mph-seo-share-panel {
  padding: 20px 22px;
}

.mph-seo-share-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}

.mph-seo-share-ring {
  --share: 0;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(closest-side, rgba(15, 23, 42, 0.92) 78%, transparent 80% 100%),
    conic-gradient(#3b82f6 calc(var(--share) * 1%), rgba(59, 130, 246, 0.15) 0);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.mph-seo-share-ring strong {
  font-size: 22px;
  line-height: 1.1;
}

.mph-seo-share-ring span {
  font-size: 11px;
  color: var(--mph-muted);
  margin-top: 4px;
}

.mph-seo-share-copy h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.mph-seo-share-copy p {
  margin: 0 0 12px;
}

.mph-monthly-analysis {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mph-monthly-analysis-filters {
  padding: 18px 20px;
}

.mph-monthly-analysis-filters-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.mph-monthly-analysis-filters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.mph-monthly-analysis-filters-action {
  display: flex;
  align-items: flex-end;
}

.mph-monthly-analysis-summary {
  padding: 16px 20px;
}

.mph-monthly-analysis-months {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mph-monthly-analysis-month strong {
  display: block;
  font-size: 18px;
  margin-top: 4px;
}

.mph-monthly-analysis-vs {
  color: #93c5fd;
  font-size: 22px;
  font-weight: 700;
}

.mph-monthly-compare-table-wrap {
  overflow-x: auto;
}

.mph-monthly-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.mph-monthly-compare-table th,
.mph-monthly-compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--mph-border);
  text-align: left;
  vertical-align: top;
}

.mph-monthly-compare-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mph-muted);
}

.mph-monthly-compare-table td strong {
  display: block;
}

.mph-monthly-analysis-month small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.mph-monthly-analysis-note {
  margin: 14px 0 0;
  font-size: 12px;
}

.mph-monthly-compare-table td small {
  display: block;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .mph-seo-share-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .mph-seo-share-ring {
    margin: 0 auto;
  }

  .mph-monthly-analysis-filters-grid {
    grid-template-columns: 1fr;
  }
}

.mph-panels-grid--single {
  grid-template-columns: 1fr;
}

.mph-empty--inline {
  padding: 12px 0;
}

.mph-revenue-hero {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--mph-border);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(15, 23, 42, 0.35));
}

.mph-revenue-hero--neutral {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(15, 23, 42, 0.35));
}

.mph-revenue-hero-icon {
  color: #86efac;
  font-size: 28px;
}

.mph-revenue-hero--neutral .mph-revenue-hero-icon {
  color: #93c5fd;
}

.mph-revenue-hero-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--mph-muted);
}

.mph-revenue-hero-title {
  margin: 0;
  font-size: 1.35rem;
}

.mph-revenue-hero-value {
  margin: 6px 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #86efac;
}

.mph-revenue-hero--neutral .mph-revenue-hero-value {
  color: var(--mph-text);
}

.mph-win-card--wide {
  grid-template-columns: 44px 1fr;
}

.mph-win-keywords-table {
  max-height: 420px;
  overflow: auto;
  margin-top: 12px;
}

.mph-ceo-wins-preview--solo {
  margin-top: 0;
}

.mph-agency-timeline--works {
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.mph-agency-timeline--full {
  max-height: none;
}

.mph-agency-timeline-item--category_opt .mph-agency-timeline-dot {
  background: #a78bfa;
}

.mph-agency-timeline-item--category_opt .mph-agency-badge {
  background: rgba(167, 139, 250, 0.15);
  color: #c4b5fd;
}

.mph-agency-timeline-item--content_cal .mph-agency-timeline-dot {
  background: #38bdf8;
}

.mph-agency-timeline-item--content_cal .mph-agency-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
}

.mph-agency-timeline-item--improvement .mph-agency-timeline-dot {
  background: #fbbf24;
}

.mph-agency-timeline-item--improvement .mph-agency-badge {
  background: rgba(251, 191, 36, 0.15);
  color: #fcd34d;
}

@media (max-width: 960px) {
  .mph-ceo-status-row,
  .mph-ceo-split,
  .mph-visibility-grid {
    grid-template-columns: 1fr;
  }

  .mph-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 16px;
  }

  .mph-topbar-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  .mph-topbar-headings {
    min-width: 0;
    flex: 1;
  }

  .mph-topbar-right {
    width: 100%;
    justify-content: flex-start;
  }

  .mph-topbar-pill {
    display: none;
  }

  .mph-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 0 0 0 9999px rgba(2, 6, 23, 0.55);
  }

  .mph-sidebar-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(2, 6, 23, 0.55);
  }

  body.mph-sidebar-open {
    overflow: hidden;
  }

  .mph-admin-clients-grid {
    grid-template-columns: 1fr;
  }

  .mph-support-agency-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mph-support-layout--agency .mph-support-list-panel {
    grid-column: 1 / -1;
  }
}

/* Mobile menu toggle */
.mph-topbar-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--mph-border);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  cursor: pointer;
  flex-shrink: 0;
}

.mph-topbar-menu-btn svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 960px) {
  .mph-topbar-menu-btn {
    display: inline-flex;
  }
}

/* Agency admin shell */
.mph-app--admin {
  padding: 12px;
}

.mph-admin-shell {
  position: relative;
  min-height: calc(100vh - 24px);
  min-height: calc(100dvh - 24px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--mph-border);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
}

.mph-admin-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--mph-border);
}

.mph-admin-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.mph-admin-header-logo img {
  display: block;
  height: 32px;
  width: auto;
}

.mph-admin-header-divider {
  width: 1px;
  height: 24px;
  background: var(--mph-border);
}

.mph-admin-header-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.mph-admin-content {
  position: relative;
  z-index: 1;
  padding: 24px;
}

.mph-sidebar-agency {
  margin: 0 16px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(2, 166, 163, 0.25);
  background: rgba(2, 166, 163, 0.08);
}

.mph-sidebar-agency-link {
  display: block;
  color: #7dd3fc;
  text-decoration: none;
  font-size: 12px;
  margin-bottom: 4px;
}

.mph-sidebar-agency-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.mph-admin-clients-head h2 {
  margin: 8px 0 4px;
}

.mph-admin-back {
  color: #93c5fd;
  text-decoration: none;
  font-size: 13px;
}

.mph-admin-clients-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  margin-top: 20px;
}

.mph-admin-client-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mph-admin-client-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--mph-border);
  background: rgba(15, 23, 42, 0.55);
}

.mph-admin-client-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.mph-admin-client-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mph-admin-client-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.25);
  color: #bfdbfe;
  font-weight: 700;
}

.mph-admin-client-card-main h4 {
  margin: 0 0 2px;
}

.mph-admin-client-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mph-admin-client-access {
  padding-top: 14px;
  border-top: 1px solid var(--mph-border);
}

.mph-admin-client-access[hidden] {
  display: none;
}

.mph-admin-client-access.is-open {
  display: block;
}

.mph-admin-client-access-head h5 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
}

.mph-btn--users-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mph-admin-user-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 700;
}

.mph-admin-client-access-hint {
  margin: 0 0 12px;
  font-size: 12px;
}

.mph-admin-client-access-hint a {
  color: #93c5fd;
  text-decoration: none;
  word-break: break-all;
}

.mph-admin-client-users {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mph-admin-client-user-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 1.4fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--mph-border);
}

.mph-admin-client-user-email {
  color: #86efac;
  font-size: 13px;
  font-weight: 500;
  word-break: break-all;
}

.mph-admin-client-user-reset {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.mph-admin-client-user-pwd {
  flex: 1;
  min-width: 100px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--mph-border);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-size: 12px;
}

.mph-admin-client-user-delete {
  display: flex;
  align-items: center;
}

.mph-admin-client-users-empty {
  margin: 0 0 12px;
}

.mph-admin-client-user-add {
  padding-top: 14px;
  border-top: 1px dashed var(--mph-border);
}

.mph-admin-client-user-add h6 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mph-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mph-admin-client-user-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.mph-admin-client-user-form {
  margin: 0;
}

.mph-btn--sm {
  padding: 8px 14px;
  font-size: 12px;
}

@media (max-width: 960px) {
  .mph-admin-client-user-row {
    grid-template-columns: 1fr;
  }

  .mph-admin-client-user-form-grid {
    grid-template-columns: 1fr;
  }
}

.mph-badge--warn {
  background: rgba(251, 191, 36, 0.15);
  color: #fcd34d;
}

.mph-login-foot a {
  color: #93c5fd;
  text-decoration: none;
}

.mph-support-agency-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-top: 12px;
}

.mph-field--inline {
  margin: 0;
}

.mph-support-layout--agency {
  grid-template-columns: 1fr;
}

.mph-support-detail-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mph-sidebar-backdrop {
  display: none;
}

.mph-login-foot--secondary {
  margin-top: 8px;
}

/* Technical Health */
.mph-tech-health {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mph-tech-checks {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mph-tech-checks .mph-ceo-card-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.72;
}

.mph-tech-grid {
  align-items: start;
}

.mph-tech-redirect-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
}

.mph-tech-redirect-banner strong {
  color: #e2e8f0;
}

.mph-tech-redirect-banner span {
  flex: 1 1 220px;
  color: #94a3b8;
  font-size: 13px;
}

@media (max-width: 960px) {
  .mph-tech-checks {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .mph-tech-checks {
    grid-template-columns: 1fr;
  }
}

.mph-sitemap-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.14);
  vertical-align: middle;
}

.mph-sitemap-row--child td:first-child {
  padding-left: 1.75rem;
}

.mph-sitemap-child-label {
  color: #cbd5e1;
  font-size: 13px;
}

.mph-sitemap-child-label::before {
  content: '↳ ';
  color: #64748b;
}

.mph-sitemap-row--error td:nth-child(2),
.mph-sitemap-row--error td:nth-child(5) {
  color: #f87171;
}


