/* ===========================================================
   CloudMeter — mobile mockup gallery
   =========================================================== */

:root {
  color-scheme: light;
  --surface-1:      #ffffff;
  --surface-2:      #fcfcfb;
  --page-plane:     #eef0ee;
  --text-primary:   #0b0b0b;
  --text-secondary: #52514e;
  --text-muted:     #898781;
  --gridline:       #e1e0d9;
  --border:         rgba(11, 11, 11, 0.10);

  --brand:          #2a78d6;
  --brand-dark:     #184f95;
  --brand-wash:     #eaf1fc;

  --provider-aws:     #2a78d6;
  --provider-azure:   #eb6834;
  --provider-gcp:     #1baf7a;
  --provider-alibaba: #eda100;
  --provider-huawei:  #e87ba4;

  --status-good:     #0ca30c;
  --status-warning:  #fab219;
  --status-serious:  #ec835a;
  --status-critical: #d03b3b;
  --status-good-text:#006300;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--page-plane);
  color: var(--text-primary);
}

.gallery-head {
  max-width: 1180px; margin: 0 auto; padding: 40px 24px 8px;
}
.gallery-head h1 { font-size: 22px; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.01em; }
.gallery-head p { font-size: 14px; color: var(--text-secondary); margin: 0; max-width: 640px; line-height: 1.5; }

.gallery {
  max-width: 1180px; margin: 0 auto; padding: 28px 24px 80px;
  display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; justify-content: center;
}
.phone-block { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone-label { font-size: 13px; font-weight: 650; color: var(--text-secondary); }

/* ---- Phone frame ---- */
.phone {
  width: 340px; height: 700px;
  background: #08090b;
  border-radius: 52px;
  padding: 14px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.5);
  position: relative;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--surface-2);
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
}
.notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; background: #08090b; border-radius: 16px; z-index: 5;
}

.status-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 26px 4px; font-size: 14px; font-weight: 650; color: var(--text-primary); flex: none;
}
.status-icons { display: flex; align-items: center; gap: 5px; }

.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px 4px; flex: none;
}
.app-header .brand { display: flex; align-items: center; gap: 8px; }
.app-header .mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg,#3987e5,#1baf7a); display:flex; align-items:center; justify-content:center; color:#fff; font-size:11px; font-weight:800; }
.app-header .name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.app-header .icon-btn { width: 32px; height: 32px; border-radius: 999px; background: var(--surface-1); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; position: relative; }
.app-header .icon-btn svg { width: 16px; height: 16px; color: var(--text-secondary); }
.dot-badge { position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; border-radius: 999px; background: var(--status-critical); border: 1.5px solid var(--surface-1); }

.screen-body { flex: 1; overflow-y: auto; padding: 6px 18px 16px; }

.greeting { font-size: 12.5px; color: var(--text-muted); margin: 8px 0 2px; }

.hero-card {
  background: linear-gradient(135deg, #101a2c, #16233a);
  border-radius: 18px; padding: 18px; color: #fff; margin: 8px 0 14px;
}
.hero-card .l { font-size: 12px; color: #9aa7bd; font-weight: 600; }
.hero-card .v { font-size: 30px; font-weight: 750; margin-top: 4px; letter-spacing: -0.02em; }
.hero-card .d { font-size: 12.5px; font-weight: 650; margin-top: 6px; color: #ff8f8f; }
.hero-card .spark { margin-top: 12px; }

.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 700; margin: 16px 0 8px; }

.m-card {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(11,11,11,0.03);
}

.provider-row-m { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.provider-row-m:not(:last-child) { border-bottom: 1px solid var(--gridline); }
.provider-row-m .sq { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.provider-row-m .nm { font-size: 13px; font-weight: 650; flex: 1; }
.provider-row-m .amt { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.provider-row-m .pct { font-size: 11px; color: var(--text-muted); margin-left: 6px; font-weight: 600; }

.anomaly-banner {
  margin-top: 14px; display: flex; align-items: center; gap: 12px;
  background: #fdecec; border: 1px solid rgba(208,59,59,0.25); border-radius: 16px; padding: 13px 14px;
}
.anomaly-banner .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--status-critical); display: flex; align-items: center; justify-content: center; flex: none; }
.anomaly-banner .ic svg { width: 17px; height: 17px; color: #fff; }
.anomaly-banner .t { font-size: 13px; font-weight: 700; color: #8f1f1f; }
.anomaly-banner .s { font-size: 11.5px; color: #8f1f1f; opacity: 0.8; margin-top: 1px; }
.anomaly-banner .chev { margin-left: auto; color: #8f1f1f; opacity: 0.6; }

/* Tab bar */
.tab-bar {
  flex: none; display: flex; border-top: 1px solid var(--border); background: var(--surface-1);
  padding: 8px 6px calc(8px + 10px);
}
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-muted); position: relative; }
.tab-item svg { width: 21px; height: 21px; }
.tab-item span { font-size: 10px; font-weight: 650; }
.tab-item.active { color: var(--brand); }
.tab-item .badge-dot { position: absolute; top: -3px; right: 22%; min-width: 15px; height: 15px; border-radius: 999px; background: var(--status-critical); color: #fff; font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 3px; }

/* Alerts screen */
.filter-chip-row { display: flex; gap: 8px; padding: 4px 0 10px; overflow-x: auto; }
.f-chip { flex: none; font-size: 12px; font-weight: 650; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-1); color: var(--text-secondary); }
.f-chip.active { background: #16233a; color: #fff; border-color: #16233a; }

.m-alert { display: flex; gap: 10px; background: var(--surface-1); border: 1px solid var(--border); border-radius: 14px; padding: 12px 13px; margin-bottom: 10px; }
.m-alert .stripe { width: 3px; border-radius: 3px; flex: none; }
.m-alert .body { flex: 1; min-width: 0; }
.m-alert .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.m-alert .sev { font-size: 10.5px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.03em; }
.m-alert .sev.critical { color: #b32e2e; }
.m-alert .sev.serious { color: #a04a26; }
.m-alert .sev.warning { color: #8a6100; }
.m-alert .sev.good { color: var(--status-good-text); }
.m-alert .impact { font-size: 12.5px; font-weight: 750; color: var(--status-critical); }
.m-alert .impact.neutral { color: var(--text-muted); }
.m-alert .title { font-size: 13px; font-weight: 650; margin-top: 3px; }
.m-alert .meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.m-alert .meta .sq { width: 7px; height: 7px; border-radius: 2px; }

/* Lock screen / push mockup */
.lockscreen {
  height: 100%; width: 100%;
  background: linear-gradient(160deg, #1c2c4a 0%, #0d1420 60%, #060a12 100%);
  display: flex; flex-direction: column; align-items: center; color: #fff; position: relative;
  padding-top: 74px;
}
.lockscreen .time { font-size: 62px; font-weight: 300; letter-spacing: -0.02em; line-height: 1; }
.lockscreen .date { font-size: 14px; font-weight: 600; margin-top: 6px; color: rgba(255,255,255,0.85); }

.notif-stack { width: 100%; padding: 28px 14px 0; display: flex; flex-direction: column; gap: 10px; }
.notif {
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(20px);
  border-radius: 18px; padding: 12px 14px; display: flex; gap: 10px;
  border: 1px solid rgba(255,255,255,0.08);
}
.notif .app-ic { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg,#3987e5,#1baf7a); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex: none; }
.notif .body { flex: 1; min-width: 0; }
.notif .row1 { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; color: rgba(255,255,255,0.7); }
.notif .row1 .sev-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--status-critical); }
.notif .title { font-size: 13px; font-weight: 700; margin-top: 3px; color: #fff; }
.notif .msg { font-size: 12.5px; color: rgba(255,255,255,0.85); margin-top: 2px; line-height: 1.4; }
.notif .channel-badge { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.55); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.03em; }

/* ---- Add Cloud Account screen ---- */
.field-input {
  width: 100%; font-size: 13px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border-strong, rgba(11,11,11,0.16)); background: var(--surface-1); color: var(--text-primary);
  box-sizing: border-box;
}
.m-provider-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.m-provider-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
  border: 1px solid var(--border); border-radius: 14px; padding: 12px;
  background: var(--surface-1); text-align: left; font: inherit; cursor: pointer;
}
.m-provider-card .mark { width: 32px; height: 32px; border-radius: 9px; color: #fff; font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.m-provider-card .mpc-name { font-size: 12.5px; font-weight: 650; color: var(--text-primary); }
.m-provider-card .mpc-meta { font-size: 10.5px; color: var(--text-muted); }

/* ---- Plans & Billing screen ---- */
.m-trial-card {
  background: linear-gradient(135deg, #101a2c, #16233a); border-radius: 18px; padding: 16px 16px 14px;
  color: #fff; margin: 8px 0 14px;
}
.trial-badge {
  display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 700;
  color: #9ec5f4; background: rgba(57,135,229,0.16); border: 1px solid rgba(57,135,229,0.32);
  border-radius: 999px; padding: 3px 9px;
}
.trial-progress-track { height: 5px; border-radius: 999px; background: rgba(255,255,255,0.12); overflow: hidden; }
.trial-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #3987e5, #1baf7a); }

.m-plan-row {
  position: relative; background: var(--surface-1); border: 1px solid var(--border); border-radius: 14px;
  padding: 13px 14px; margin-bottom: 10px;
}
.m-plan-row.featured { border-color: var(--brand); }
.m-plan-row.recommended { border-color: var(--status-good); }
.m-plan-ribbon {
  position: absolute; top: -9px; left: 12px; font-size: 9px; font-weight: 750; text-transform: uppercase;
  letter-spacing: 0.03em; color: #fff; background: var(--brand); border-radius: 999px; padding: 3px 8px;
}
.m-plan-ribbon.good { background: var(--status-good); }
.m-plan-top { display: flex; align-items: baseline; justify-content: space-between; }
.m-plan-name { font-size: 13.5px; font-weight: 700; }
.m-plan-price { font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; }
.m-plan-price .orig { font-size: 11px; font-weight: 600; color: var(--text-muted); text-decoration: line-through; }
.m-plan-price .per { font-size: 10.5px; font-weight: 600; color: var(--text-muted); }
.m-plan-cap { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }
