/* ==========================================================================
   AppForge SaaS — Argon Dashboard 2 Design System (Light & Dark Modes)
   ========================================================================== */

:root {
  --argon-primary: #5e72e4;
  --argon-primary-hover: #485fe0;
  --argon-indigo-end: #825ee4;
  --argon-hero-gradient: linear-gradient(87deg, #5e72e4 0%, #825ee4 100%);
  --argon-emerald: #2dce89;
  --argon-emerald-soft: rgba(45, 206, 137, 0.14);
  --argon-cyan: #11cdef;
  --argon-cyan-soft: rgba(17, 205, 239, 0.14);
  --argon-orange: #fb6340;
  --argon-orange-soft: rgba(251, 99, 64, 0.14);
  --argon-crimson: #f5365c;
  --argon-crimson-soft: rgba(245, 54, 92, 0.14);
  --argon-warning: #ffd600;

  --bg-canvas: #f8f9fe;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f6f9fc;
  --bg-input: #ffffff;
  --text-heading: #32325d;
  --text-body: #525f7f;
  --text-muted: #8898aa;
  --border-color: #e9ecef;
  --border-focus: rgba(94, 114, 228, 0.55);

  --shadow-card: 0 0 2rem 0 rgba(136, 152, 170, 0.15);
  --shadow-hover: 0 12px 28px rgba(50, 50, 93, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-btn: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
  --radius-lg: 1rem;
  --radius-md: 0.65rem;
  --radius-sm: 0.45rem;
  --sidenav-width: 268px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --argon-hero-gradient: linear-gradient(87deg, #1b2a6b 0%, #3b267a 100%);
  --bg-canvas: #0b1121;
  --bg-surface: #111c44;
  --bg-surface-subtle: #172352;
  --bg-input: #0d1636;
  --text-heading: #f4f7fe;
  --text-body: #cbd5e1;
  --text-muted: #8f9bba;
  --border-color: rgba(255, 255, 255, 0.09);
  --shadow-card: 0 14px 34px rgba(0, 0, 0, 0.38);
  --shadow-hover: 0 18px 40px rgba(0, 0, 0, 0.52);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.22s ease, color 0.22s ease;
}

a {
  color: var(--argon-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--argon-primary-hover);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Argon Hero Backdrop & Workspace Layout
   ========================================================================== */

.argon-hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: var(--argon-hero-gradient);
  z-index: 0;
  overflow: hidden;
}

.argon-hero-bg::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -90px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}

.argon-app-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
}

/* ==========================================================================
   Floating Argon Sidenav
   ========================================================================== */

.argon-sidenav {
  width: var(--sidenav-width);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  margin: 1rem 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.25s ease, background-color 0.22s ease;
}

.sidenav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.35rem 1.4rem 1.1rem;
  border-bottom: 1px solid var(--border-color);
}

.sidenav-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--argon-hero-gradient);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(94, 114, 228, 0.38);
  flex-shrink: 0;
}

.sidenav-brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.15;
}

.sidenav-brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sidenav-section-label {
  padding: 1.1rem 1.4rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.sidenav-nav {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0.75rem;
}

.sidenav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.68rem 0.85rem;
  border-radius: 0.6rem;
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
  transition: all 0.16s ease;
}

.sidenav-link:hover {
  background: var(--bg-surface-subtle);
  color: var(--text-heading);
}

.sidenav-link.active {
  background: rgba(94, 114, 228, 0.12);
  color: var(--argon-primary);
  font-weight: 700;
}

[data-theme="dark"] .sidenav-link.active {
  background: rgba(94, 114, 228, 0.24);
  color: #fff;
}

.sidenav-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  flex-shrink: 0;
}

.icon-indigo { background: rgba(94, 114, 228, 0.14); color: var(--argon-primary); }
.icon-emerald { background: var(--argon-emerald-soft); color: var(--argon-emerald); }
.icon-orange { background: var(--argon-orange-soft); color: var(--argon-orange); }
.icon-cyan { background: var(--argon-cyan-soft); color: var(--argon-cyan); }
.icon-crimson { background: var(--argon-crimson-soft); color: var(--argon-crimson); }

.sidenav-footer {
  margin-top: auto;
  padding: 1rem;
}

.sidenav-quota-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: 0.85rem;
  padding: 0.95rem;
}

.quota-progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: var(--border-color);
  overflow: hidden;
  margin: 0.55rem 0;
}

.quota-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--argon-hero-gradient);
  transition: width 0.4s ease;
}

/* ==========================================================================
   Main Content Area & Top Navbar
   ========================================================================== */

.argon-main {
  flex: 1;
  margin-left: calc(var(--sidenav-width) + 1.5rem);
  padding: 1rem 1.75rem 3rem 1rem;
  min-width: 0;
}

.argon-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0 1.4rem;
  color: #fff;
}

.topbar-breadcrumb {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.topbar-heading {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.topbar-select {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.55rem;
  padding: 0.48rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  cursor: pointer;
  outline: none;
}

.topbar-select option {
  background: var(--bg-surface);
  color: var(--text-heading);
}

.topbar-icon-btn {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.55rem;
  padding: 0.48rem 0.78rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.15s ease, transform 0.12s ease;
}

.topbar-icon-btn:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.36rem 0.8rem 0.36rem 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--argon-primary);
  font-weight: 800;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   KPI Stat Grid & Cards
   ========================================================================== */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.argon-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  padding: 1.35rem 1.45rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.22s ease;
}

.argon-card-interactive:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.kpi-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.kpi-label {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.kpi-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.15;
}

.kpi-sub {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.kpi-orb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.orb-indigo { background: linear-gradient(135deg, #5e72e4, #825ee4); }
.orb-emerald { background: linear-gradient(135deg, #2dce89, #2dcecc); }
.orb-orange { background: linear-gradient(135deg, #fb6340, #fbb140); }
.orb-cyan { background: linear-gradient(135deg, #11cdef, #1171ef); }

/* ==========================================================================
   Grid Layouts, Forms & Buttons
   ========================================================================== */

.grid-2col-builder {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 390px;
  gap: 1.5rem;
  align-items: start;
}

.grid-dashboard-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 1.4rem;
  margin-bottom: 1.5rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.card-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}

.form-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-heading);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 0.55rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  border-color: var(--argon-primary);
  box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.18);
}

textarea.form-control {
  resize: vertical;
  min-height: 92px;
}

.mono-input {
  font-family: var(--font-mono);
  font-size: 0.83rem;
}

.color-picker-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.color-swatch-input {
  width: 44px;
  height: 40px;
  padding: 2px;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  cursor: pointer;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.95rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: 0.65rem;
  margin-bottom: 0.7rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: 0.2s;
  border-radius: 999px;
}

.switch-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 50%;
}

.switch input:checked + .switch-slider {
  background-color: var(--argon-emerald);
}

.switch input:checked + .switch-slider::before {
  transform: translateX(20px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1.15rem;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: all 0.15s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--argon-primary);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: var(--argon-primary-hover);
  color: #fff;
}

.btn-emerald {
  background: var(--argon-emerald);
  color: #fff;
}

.btn-danger {
  background: var(--argon-crimson);
  color: #fff;
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-heading);
  border-color: var(--border-color);
  box-shadow: none;
}
.btn-outline:hover:not(:disabled) {
  background: var(--bg-surface-subtle);
}

.btn-sm {
  padding: 0.4rem 0.78rem;
  font-size: 0.78rem;
}

/* ==========================================================================
   Badges, Tables & Upload Dropzones
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-success { background: var(--argon-emerald-soft); color: var(--argon-emerald); }
.badge-info { background: var(--argon-cyan-soft); color: var(--argon-cyan); }
.badge-warning { background: var(--argon-orange-soft); color: var(--argon-orange); }
.badge-danger { background: var(--argon-crimson-soft); color: var(--argon-crimson); }
.badge-indigo { background: rgba(94, 114, 228, 0.15); color: var(--argon-primary); }

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.argon-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.argon-table th {
  text-align: left;
  padding: 0.75rem 0.9rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  background: var(--bg-surface-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.argon-table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-body);
  vertical-align: middle;
}

.dropzone {
  border: 2px dashed var(--border-color);
  border-radius: 0.8rem;
  padding: 1.25rem;
  text-align: center;
  background: var(--bg-surface-subtle);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--argon-primary);
  background: rgba(94, 114, 228, 0.06);
}

/* ==========================================================================
   Sticky Live Smartphone Mockup (WebView + Splash + Icon + iOS/Android Push)
   ========================================================================== */

.sticky-preview-panel {
  position: sticky;
  top: 1.2rem;
}

.preview-tabs {
  display: flex;
  gap: 0.35rem;
  background: var(--bg-surface-subtle);
  padding: 0.3rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.preview-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.45rem 0.5rem;
  border-radius: 0.45rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preview-tab-btn.active {
  background: var(--bg-surface);
  color: var(--argon-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.phone-chassis {
  width: 316px;
  height: 624px;
  margin: 0 auto;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(145deg, #1e2436, #0d101b);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.32), inset 0 0 0 2px rgba(255, 255, 255, 0.12);
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.phone-dynamic-island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 22px;
  border-radius: 999px;
  background: #090b10;
  z-index: 10;
}

.phone-statusbar {
  height: 40px;
  padding: 10px 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  z-index: 5;
  transition: background-color 0.2s ease;
}

/* Mode 1: WebView Shell Preview */
.mockup-webview {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f4f6fb;
  color: #1e293b;
}

.mockup-appbar {
  padding: 0.7rem 1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mockup-appbar-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255,255,255,0.22);
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}

.mockup-progress-line {
  height: 3px;
  width: 68%;
  background: rgba(255,255,255,0.85);
}

.mockup-webpage-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mockup-url-pill {
  background: #e2e8f0;
  color: #475569;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-hero-skeleton {
  height: 120px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex;
  align-items: flex-end;
  padding: 0.85rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
}

.mockup-card-skeleton {
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.skel-line {
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  margin-bottom: 6px;
}

/* Mode 2: Branded Splash Preview */
.mockup-splash {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.mockup-splash-logo {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

.mockup-splash-logo img, .mockup-appbar-icon img, .push-app-mini-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mode 3: Lock Screen Push Preview (iOS & Android) */
.mockup-lockscreen {
  flex: 1;
  background: radial-gradient(circle at 20% 15%, #4f46e5 0%, #1e1b4b 52%, #090d16 100%);
  color: #fff;
  padding: 1.2rem 0.9rem;
  display: flex;
  flex-direction: column;
}

.lockscreen-clock {
  text-align: center;
  margin: 1rem 0 1.4rem;
}

.lockscreen-time {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.lockscreen-date {
  font-size: 0.78rem;
  opacity: 0.82;
  margin-top: 0.25rem;
}

.push-banner-card {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  color: #0f172a;
  border-radius: 18px;
  padding: 0.8rem 0.85rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
  transition: all 0.2s ease;
}

.push-banner-card.android-shade {
  background: #1e293b;
  color: #f8fafc;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.1);
}

.push-banner-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  margin-bottom: 0.38rem;
  opacity: 0.85;
}

.push-app-mini-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--argon-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  overflow: hidden;
}

.push-banner-title {
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
  word-break: break-word;
}

.push-banner-body {
  font-size: 0.78rem;
  line-height: 1.38;
  opacity: 0.92;
  word-break: break-word;
}

.push-banner-image {
  margin-top: 0.55rem;
  width: 100%;
  height: 112px;
  border-radius: 11px;
  object-fit: cover;
  display: block;
}

.push-banner-url-chip {
  margin-top: 0.45rem;
  font-size: 0.66rem;
  font-family: var(--font-mono);
  opacity: 0.72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-home-bar {
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: inherit;
}

.phone-home-bar::after {
  content: '';
  width: 104px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.55);
}

/* ==========================================================================
   Code Blocks, Modals, Auth Page & Toasts
   ========================================================================== */

.code-block-wrap {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow-x: auto;
  position: relative;
  line-height: 1.6;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.secret-token-box {
  background: #0f172a;
  color: #38bdf8;
  padding: 0.9rem 1rem;
  border-radius: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  word-break: break-all;
  margin: 0.85rem 0;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

/* Auth Page */
.auth-hero {
  background: var(--argon-hero-gradient);
  padding: 3.5rem 1.5rem 8.5rem;
  text-align: center;
  color: #fff;
  position: relative;
}

.auth-card-container {
  max-width: 450px;
  margin: -5.8rem auto 3rem;
  padding: 0 1rem;
  position: relative;
  z-index: 5;
}

.toast-stack {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toast-item {
  background: var(--bg-surface);
  color: var(--text-heading);
  border-left: 4px solid var(--argon-primary);
  border-radius: 0.6rem;
  padding: 0.8rem 1.1rem;
  box-shadow: var(--shadow-hover);
  font-size: 0.86rem;
  font-weight: 600;
  min-width: 270px;
  max-width: 400px;
}
.toast-item.toast-success { border-left-color: var(--argon-emerald); }
.toast-item.toast-error { border-left-color: var(--argon-crimson); }

.mobile-menu-btn {
  display: none;
}

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2col-builder, .grid-dashboard-split { grid-template-columns: 1fr; }
  .sticky-preview-panel { position: static; }
}

@media (max-width: 860px) {
  .mobile-menu-btn { display: inline-flex; }
  .argon-sidenav { transform: translateX(-110%); margin: 0; border-radius: 0; }
  .argon-sidenav.mobile-open { transform: translateX(0); }
  .argon-main { margin-left: 0; padding: 1rem; }
  .kpi-grid, .form-grid-2 { grid-template-columns: 1fr; }
}
