:root {
  --primary: #00695c;
  --primary-strong: #004d40;
  --primary-soft: #d9f2ef;
  --accent: #00acc1;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #1f2a37;
  --muted: #6b7280;
  --success: #2e7d32;
  --warning: #ed6c02;
  --error: #c62828;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 2px 8px rgba(22, 31, 56, 0.08);
  --shadow-2: 0 10px 28px rgba(22, 31, 56, 0.12);
  --border: 1px solid #e8edf5;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Roboto', sans-serif;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.page-wrap {
  min-height: 100vh;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--primary-strong);
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.btn:focus-visible,
.input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(0, 172, 193, 0.35);
  outline-offset: 1px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: var(--shadow-1);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

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

/* Index palette consistency for all pages */
.btn,
.replica-gradient-btn,
.replica-outline-btn,
.mobile-nav-btn {
  font-weight: 500;
  letter-spacing: 0.1px;
}

.btn-primary,
body.auth-page .btn-primary,
body.panel-page .btn-primary {
  background: #23316c;
  border: 0;
  color: #fff;
}

.btn-primary:hover,
.replica-gradient-btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.btn.is-loading {
  position: relative;
  opacity: 0.9;
  pointer-events: none;
}

.btn.is-loading::after {
  content: '';
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  margin-left: 0.5rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -0.1rem;
  animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.user-summary-compact {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.42rem 0.65rem;
  border-radius: 999px;
  background: #f4f7ff;
  border: 1px solid #d8e3fb;
  font-size: 0.82rem;
}

.processcontinue-layout {
  margin-top: 0.75rem;
  padding: 0.85rem;
  border: 1px solid #e1e8f7;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcff 0%, #f7f9ff 100%);
}

.onboarding-topline {
  margin-bottom: 0.7rem;
}

.onboarding-caption {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6377a6;
  font-weight: 700;
}

.onboarding-topline h2 {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  line-height: 1.3;
  color: #1f2b66;
}

.onboarding-profile-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.passport-profile-card {
  border: 1px solid #dde6f7;
  border-radius: 12px;
  background: #ffffff;
  padding: 0.6rem;
}

.passport-label {
  display: block;
  font-size: 0.8rem;
  color: #3d4e74;
  margin-bottom: 0.4rem;
}

.passport-picker {
  width: 100%;
  border: 1px dashed #9fb2de;
  border-radius: 12px;
  background: #f7f9ff;
  padding: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  color: #1f2b66;
}

.passport-picker:hover {
  background: #edf2ff;
}

.passport-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #c6d4f2;
  display: grid;
  place-items: center;
  background: #fff;
}

.passport-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.verification-card-lite {
  padding: 0.65rem 0.75rem;
  border: 1px solid #dfe8fb;
  background: #ffffff;
}

.verification-title {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1f2b66;
}

.verification-card-lite .list-item {
  padding: 0.4rem 0.5rem;
  min-height: 40px;
}

.onboarding-form-shell {
  background: #fff;
  border: 1px solid #e3ebfa;
  border-radius: 12px;
  padding: 0.8rem;
}

.processcontinue-page .login-copy-card h1 {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.processcontinue-page .login-copy-card p {
  font-size: 0.86rem;
}

.processcontinue-page .login-copy-card .list-item {
  min-height: 36px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

@media (max-width: 680px) {
  .onboarding-profile-row {
    grid-template-columns: 1fr;
  }

  .processcontinue-layout {
    padding: 0.65rem;
  }

  .onboarding-form-shell {
    padding: 0.65rem;
  }

  .processcontinue-page .form-grid.two,
  .onboarding-status-page .form-grid.two {
    grid-template-columns: 1fr;
  }

  .processcontinue-page .summary-chip,
  .onboarding-status-page .summary-chip {
    width: 100%;
    justify-content: flex-start;
  }

  .processcontinue-page .btn,
  .onboarding-status-page .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .processcontinue-page .login-copy-card,
  .onboarding-status-page .login-copy-card {
    display: none;
  }

  .processcontinue-page .signup-card-inline,
  .onboarding-status-page .signup-card-inline {
    margin-top: 0;
  }
}

/* Admin responsive polish */
.admin-main .admin-tab-panel .list-item {
  gap: 0.6rem;
  flex-wrap: wrap;
}

.admin-main .admin-tab-panel .list-item strong {
  color: #31436f;
  font-weight: 500;
}

@media (max-width: 980px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-shell .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #dce5f6;
    padding-bottom: 0.6rem;
  }

  .admin-shell .side-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .admin-shell .side-link {
    width: 100%;
    justify-content: center;
  }

  .admin-main .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-main .grid-4,
  .admin-main .grid-2,
  .admin-main .form-grid.two {
    grid-template-columns: 1fr;
  }

  .admin-main .btn {
    width: 100%;
  }

  .admin-main .chat-input {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.btn-ghost,
.btn-outline-primary {
  background: #fff;
  border: 1px solid #d6e0f0;
  color: #1f2b66 !important;
}

.btn-outline-primary:hover,
.btn-ghost:hover {
  background: #eef3ff;
  border-color: #c9d7ef;
}

.auth-title,
.nav-title,
.metric h3,
.card h2,
.card h3 {
  color: #1f2b66;
}

.lead,
.auth-sub,
.helper {
  color: #5a6783;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 1rem 3.5rem;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.hero::before {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(0, 172, 193, 0.25), transparent 62%);
  right: -90px;
  top: -110px;
}

.hero::after {
  width: 430px;
  height: 430px;
  background: radial-gradient(circle, rgba(0, 105, 92, 0.21), transparent 65%);
  left: -140px;
  bottom: -190px;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0;
  line-height: 1.18;
}

.hero p {
  color: var(--muted);
  margin-top: 1rem;
  font-size: 1.03rem;
  max-width: 560px;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.abstract-card {
  position: relative;
  background: #fff;
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  min-height: 310px;
  overflow: hidden;
}

.abstract-card .shape {
  position: absolute;
  border-radius: 22px;
}

.shape.s1 {
  width: 170px;
  height: 170px;
  background: linear-gradient(155deg, rgba(0, 172, 193, 0.2), rgba(0, 105, 92, 0.36));
  top: 34px;
  left: 28px;
  transform: rotate(17deg);
}

.shape.s2 {
  width: 130px;
  height: 130px;
  background: linear-gradient(145deg, rgba(0, 172, 193, 0.18), rgba(255, 255, 255, 0.95));
  top: 148px;
  right: 46px;
}

.shape.s3 {
  width: 220px;
  height: 18px;
  background: linear-gradient(to right, rgba(0, 105, 92, 0.3), rgba(0, 172, 193, 0.7));
  bottom: 26px;
  left: 36px;
}

.lock-chip {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #fff;
  border: var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.8rem;
  box-shadow: var(--shadow-1);
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.4rem 1rem 2rem;
}

.section h2 {
  margin: 0 0 0.45rem;
  font-size: 1.55rem;
}

.section p.lead {
  margin: 0;
  color: var(--muted);
}

.grid-3,
.grid-2,
.grid-4 {
  margin-top: 1.1rem;
  display: grid;
  gap: 1rem;
}

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

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

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

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: var(--border);
  box-shadow: var(--shadow-1);
  padding: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-strong);
  margin-bottom: 0.7rem;
}

.testimonial {
  border-left: 3px solid #d4e9e5;
}

.footer {
  margin-top: 2rem;
  background: #fff;
  border-top: var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.4rem 1rem 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.auth-wrap::before {
  content: '';
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 172, 193, 0.2), transparent 65%);
  top: -190px;
  right: -130px;
}

.auth-wrap::after {
  content: '';
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 105, 92, 0.2), transparent 65%);
  bottom: -200px;
  left: -130px;
}

.auth-card {
  width: min(520px, 100%);
  background: #fff;
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: 1.1rem;
  position: relative;
  z-index: 1;
}

.auth-title {
  margin: 0;
  font-size: 1.5rem;
}

.auth-sub {
  margin: 0.5rem 0 1.2rem;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 0.8rem;
}

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

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.88rem;
  font-weight: 500;
}

.input,
textarea,
select {
  width: 100%;
  border: 1px solid #d8e2ee;
  border-radius: 10px;
  padding: 0.72rem 0.8rem;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 172, 193, 0.12);
}

.auth-links {
  margin-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-links a {
  color: var(--primary);
  font-weight: 500;
}

.helper {
  font-size: 0.82rem;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.app-toast-stack {
  position: fixed;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2500;
  display: grid;
  gap: 0.55rem;
  width: min(360px, calc(100vw - 1.2rem));
}

.app-toast {
  border: 1px solid #d7e2f6;
  border-left-width: 4px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(22, 30, 58, 0.16);
  padding: 0.62rem 0.72rem;
  display: grid;
  gap: 0.18rem;
  animation: toast-in 0.2s ease;
}

.app-toast-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #24325f;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.app-toast-text {
  font-size: 0.86rem;
  color: #2f3e64;
  line-height: 1.35;
}

.app-toast.ok {
  border-left-color: #2e7d32;
  background: #f2fbf4;
}

.app-toast.error {
  border-left-color: #c62828;
  background: #fff4f4;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shell {
  display: grid;
  grid-template-columns: 255px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #fff;
  border-right: var(--border);
  padding: 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.nav-title {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-strong);
}

.side-links {
  display: grid;
  gap: 0.35rem;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  color: #374151;
  transition: background 0.2s ease;
}

.side-link.active,
.side-link:hover {
  background: #edf7f6;
  color: var(--primary-strong);
}

.main {
  padding: 1rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}

.metric h3 {
  margin: 0;
  font-size: 1.42rem;
}

.metric p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: #f8fafc;
}

.amount.up {
  color: var(--success);
}

.amount.down {
  color: var(--error);
}

.table-wrap {
  overflow: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}

.table th,
.table td {
  text-align: left;
  padding: 0.7rem;
  border-bottom: 1px solid #edf2f8;
  font-size: 0.92rem;
}

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

.chip {
  border-radius: 999px;
  padding: 0.2rem 0.58rem;
  font-size: 0.78rem;
  font-weight: 500;
  display: inline-flex;
}

.chip.pending {
  background: #fff4e5;
  color: #b16a00;
}

.chip.complete {
  background: #e9f8ee;
  color: #226f2b;
}

.chip.review {
  background: #edf3ff;
  color: #1e4db7;
}

.chat-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 330px;
}

.chat-stream {
  padding: 0.5rem 0;
  display: grid;
  gap: 0.5rem;
}

.bubble {
  max-width: 78%;
  padding: 0.52rem 0.7rem;
  border-radius: 12px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-1);
}

.bubble.me {
  margin-left: auto;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-bottom-right-radius: 5px;
}

.bubble.them {
  background: #f2f6fb;
  border-bottom-left-radius: 5px;
}

.chat-input {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.kbd {
  font-family: inherit;
  background: #eef5ff;
  border-radius: 8px;
  padding: 0.12rem 0.45rem;
  font-size: 0.8rem;
}

.fade-up {
  animation: fadeUp 0.55s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .hero-grid,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: var(--border);
  }

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

@media (max-width: 768px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .grid-4,
  .form-grid.two,
  .side-links {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 1rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions .btn {
    width: auto;
  }
}

.hero-premium {
  background:
    radial-gradient(620px 300px at 8% 10%, rgba(0, 172, 193, 0.14), transparent 68%),
    radial-gradient(500px 260px at 90% 25%, rgba(0, 105, 92, 0.14), transparent 70%),
    linear-gradient(180deg, #f7fbff 0%, #f5f7fb 100%);
}

.hero-premium-grid {
  align-items: stretch;
  gap: 2.2rem;
}

.hero-premium h1 {
  font-size: clamp(2.2rem, 3.6vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.3px;
}

.hero-premium p {
  font-size: 1.05rem;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-image-main {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background-image:
    linear-gradient(130deg, rgba(6, 20, 32, 0.45), rgba(2, 51, 67, 0.35)),
    url('https://images.unsplash.com/photo-1559526324-593bc073d938?auto=format&fit=crop&w=1200&q=80');
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-2);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-panel {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(228, 238, 248, 1);
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  padding: 0.7rem 0.85rem;
  display: grid;
  gap: 0.15rem;
}

.glass-panel span {
  color: var(--muted);
  font-size: 0.8rem;
}

.glass-panel strong {
  font-size: 0.95rem;
  color: var(--primary-strong);
}

.panel-a {
  left: -20px;
  top: 22px;
}

.panel-b {
  right: -18px;
  bottom: 22px;
}

.trust-strip {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.trust-item {
  background: #fff;
  border: var(--border);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  box-shadow: var(--shadow-1);
  display: grid;
}

.trust-item strong {
  font-size: 0.95rem;
}

.trust-item span {
  font-size: 0.8rem;
  color: var(--muted);
}

.premium-story-grid {
  align-items: stretch;
}

.story-media {
  min-height: 340px;
  background-image:
    linear-gradient(130deg, rgba(4, 24, 40, 0.38), rgba(0, 105, 92, 0.2)),
    url('https://images.unsplash.com/photo-1518186285589-2f7649de83e0?auto=format&fit=crop&w=1200&q=80');
  background-size: cover;
  background-position: center;
  border-radius: 18px;
}

.story-content {
  display: grid;
  align-content: start;
}

@media (max-width: 992px) {
  .hero-premium-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 360px;
  }

  .panel-a {
    left: 12px;
  }

  .panel-b {
    right: 12px;
  }
}

@media (max-width: 768px) {
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 320px;
  }

  .glass-panel {
    position: static;
    margin-top: 0.7rem;
  }

  .hero-image-main {
    position: static;
    min-height: 230px;
  }
}

/* Landing replica style */
body.landing-replica {
  background: #d9d9dc;
  font-family: 'Roboto', sans-serif;
  -webkit-text-size-adjust: 100%;
}

.showcase-page {
  min-height: 100vh;
  padding: 1rem;
  display: grid;
  place-items: center;
}

.showcase-shell {
  width: min(1280px, 100%);
  background: #f7f7f8;
  border-radius: 32px;
  padding: 0.8rem 1.5rem 1.6rem;
  box-shadow: 0 26px 54px rgba(24, 34, 56, 0.14);
}

.replica-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.62rem 0.2rem;
  background: rgba(247, 247, 248, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e4e9f4;
}

.replica-logo {
  display: grid;
  line-height: 1;
}

.logo-word {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: #2c3568;
}

.replica-logo small {
  color: #27304f;
  font-weight: 500;
  opacity: 0.78;
}

.replica-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: #ecf0ff;
  font-weight: 400;
  font-size: 0.9rem;
  background: #1f2b66;
  border-radius: 52px;
  padding: 0.62rem 0.95rem 0.62rem 1.25rem;
}

.replica-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.replica-nav.is-panel .mobile-nav-btn {
  display: none;
}

.replica-outline-btn {
  border: 2px solid rgba(239, 242, 255, 0.95);
  border-radius: 999px;
  padding: 0.4rem 0.92rem;
  font-weight: 500;
  min-height: 38px;
}

.label-mobile {
  display: none;
}

.replica-hero-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.replica-left {
  align-self: center;
  padding: 2.4rem 0.8rem 1rem 1rem;
}

.replica-left h1 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -1px;
  color: #25316a;
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 700;
}

.replica-left h1 span {
  color: #f0649a;
  display: block;
  margin-top: 0.22rem;
}

.replica-left p {
  margin: 1.35rem 0 0;
  max-width: 540px;
  color: #4b5568;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.4;
}

.replica-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.replica-gradient-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  border-radius: 999px;
  padding: 0.95rem 1.7rem;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  min-height: 48px;
  background: linear-gradient(90deg, #f85a98, #f0a04c);
  box-shadow: 0 10px 26px rgba(243, 102, 141, 0.34);
}

.replica-note {
  margin-top: 1.25rem;
  max-width: 560px;
  background: #ebedf1;
  border-radius: 12px;
  padding: 0.72rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #313c59;
  font-size: 0.98rem;
  border-left: 4px solid #2f3f82;
}

.replica-note .material-icons-outlined {
  color: #2f3f82;
  font-size: 1.2rem;
}

.replica-right {
  background: linear-gradient(180deg, #1f2c69, #24326d);
  border-radius: 90px 32px 32px 170px;
  padding: 5rem 1.4rem 2rem;
  position: relative;
  overflow: hidden;
  min-height: 680px;
}

.replica-right::before {
  content: '';
  position: absolute;
  left: -120px;
  top: 140px;
  width: 220px;
  height: 430px;
  border-radius: 50%;
  background: #f7f7f8;
}

.savings-pill {
  position: absolute;
  top: 1.5rem;
  left: 2.7rem;
  z-index: 2;
  background: #f85a67;
  border-radius: 18px;
  padding: 0.62rem 0.85rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 14px 25px rgba(250, 95, 106, 0.33);
}

.savings-pill .material-icons-outlined {
  font-size: 1.15rem;
}

.savings-pill strong {
  display: block;
  line-height: 1;
}

.savings-pill small {
  font-size: 0.74rem;
  opacity: 0.92;
}

.insight-board {
  margin-top: 2rem;
  margin-left: 3.9rem;
  margin-right: 0.3rem;
  background: rgba(46, 60, 122, 0.67);
  border: 1px solid rgba(145, 164, 219, 0.2);
  border-radius: 22px;
  padding: 1.2rem;
  color: #f2f5ff;
  box-shadow: 0 20px 35px rgba(14, 21, 56, 0.4);
}

.insight-board header {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.insight-board h2 {
  margin: 0;
  font-size: 2rem;
  color: #fff;
}

.insight-board header p {
  margin: 0.2rem 0 0;
  color: #b9c5ef;
}

.board-amount {
  text-align: right;
}

.board-amount strong {
  font-size: 1.9rem;
  display: block;
}

.board-amount small {
  color: #b9c5ef;
}

.insight-board ul {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.insight-board li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  background: rgba(71, 86, 150, 0.55);
  border: 1px solid rgba(151, 169, 223, 0.22);
  border-radius: 12px;
  padding: 0.72rem 0.84rem;
}

.service-name {
  font-weight: 500;
}

.service-price {
  font-weight: 700;
}

.insight-board footer {
  background: rgba(48, 92, 117, 0.53);
  border: 1px solid rgba(97, 174, 203, 0.25);
  border-radius: 10px;
  padding: 0.66rem 0.8rem;
  color: #d5f3ff;
}

.insight-board footer strong {
  color: #fff;
}

.landing-mini-sections {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.mini-card {
  background: #ffffff;
  border: 1px solid #e2e9f5;
  border-radius: 14px;
  padding: 0.88rem;
  box-shadow: 0 8px 18px rgba(22, 33, 63, 0.08);
}

.mini-card h3 {
  margin: 0;
  font-size: 1rem;
  color: #233067;
}

.mini-card p {
  margin: 0.4rem 0 0;
  font-size: 0.94rem;
  color: #4d5870;
}

.landing-footer {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: #47536e;
  font-size: 0.9rem;
  border-top: 1px solid #e2e8f4;
  padding-top: 0.9rem;
}

.landing-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.landing-footer-links a {
  color: #2a3a70;
}

.landing-footer-links a:hover {
  text-decoration: underline;
}

.landing-image-strip {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.image-tile {
  border-radius: 14px;
  overflow: hidden;
  min-height: 150px;
  border: 1px solid #dfe7f5;
  box-shadow: 0 10px 20px rgba(25, 39, 78, 0.12);
}

.image-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.image-tile:hover img {
  transform: scale(1.05);
}

.landing-live-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.live-card {
  background: linear-gradient(145deg, #ffffff, #f5f8ff);
  border: 1px solid #dfe7f5;
  border-radius: 14px;
  padding: 0.78rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 18px rgba(22, 35, 65, 0.09);
}

.live-card .material-icons-outlined {
  font-size: 1.2rem;
  color: #2c3b75;
}

.live-card strong {
  color: #1f2c67;
  font-size: 0.95rem;
}

.live-card p {
  margin: 0.08rem 0 0;
  color: #55617a;
  font-size: 0.86rem;
}

.floaty {
  animation: floaty 4.4s ease-in-out infinite;
}

.delay-1 {
  animation-delay: 0.55s;
}

.delay-2 {
  animation-delay: 1.1s;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 1200px) {
  .showcase-shell {
    padding: 0.8rem 1rem 1.4rem;
  }

  .replica-links {
    gap: 1rem;
    font-size: 0.95rem;
  }

  .replica-right {
    min-height: 620px;
    border-radius: 70px 24px 24px 120px;
  }
}

@media (max-width: 992px) {
  .replica-nav.is-panel .mobile-nav-btn {
    display: inline-flex;
  }

  .replica-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .replica-links {
    width: 100%;
    overflow-x: auto;
    border-radius: 20px;
    padding: 0.6rem 0.9rem;
    scrollbar-width: thin;
    gap: 0.75rem;
  }

  .replica-hero-grid {
    grid-template-columns: 1fr;
  }

  .replica-left {
    padding: 1rem 0.2rem;
  }

  .replica-left p {
    font-size: 1rem;
  }

  .replica-right {
    border-radius: 24px;
    min-height: 560px;
    padding-top: 4.8rem;
  }

  .replica-right::before {
    display: none;
  }

  .savings-pill {
    left: 1.2rem;
  }

  .insight-board {
    margin-left: 0;
    margin-right: 0;
  }

  .landing-mini-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-image-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-live-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .showcase-page {
    padding: 0.5rem;
  }

  .showcase-shell {
    border-radius: 20px;
    padding: 0.6rem 0.75rem 1rem;
  }

  .replica-nav {
    padding: 0.45rem 0;
  }

  .replica-links {
    font-size: 0.78rem;
    border-radius: 12px;
    gap: 0.45rem;
    padding: 0.4rem 0.45rem;
    justify-content: space-between;
    overflow: hidden;
  }

  .replica-links a {
    min-height: 34px;
    padding: 0.12rem 0.24rem;
  }

  .replica-links a:nth-child(2),
  .replica-links a:nth-child(4) {
    display: none;
  }

  .label-desktop {
    display: none;
  }

  .label-mobile {
    display: inline;
  }

  .logo-word {
    font-size: 1.75rem;
  }

  .replica-actions {
    width: 100%;
  }

  .replica-gradient-btn,
  .replica-actions .btn {
    width: 100%;
  }

  .replica-right {
    min-height: auto;
    padding: 4.5rem 0.9rem 1rem;
  }

  .insight-board h2 {
    font-size: 1.35rem;
  }

  .board-amount strong {
    font-size: 1.3rem;
  }

  .insight-board li {
    padding: 0.7rem 0.7rem;
  }

  .service-name,
  .service-price {
    font-size: 0.92rem;
  }

  .landing-mini-sections {
    grid-template-columns: 1fr;
  }

  .landing-image-strip {
    grid-template-columns: 1fr;
  }

  .image-tile {
    min-height: 180px;
  }

  .landing-footer {
    font-size: 0.85rem;
  }
}

@media (max-width: 420px) {
  .replica-links a:nth-child(3) {
    display: none;
  }
}

/* Login page aligned to index visual system */
.login-replica-page .showcase-shell {
  max-width: 1180px;
}

.login-hero-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 1rem;
  align-items: start;
}

.login-copy-card {
  background: linear-gradient(160deg, #1f2c69, #24326d);
  color: #f2f5ff;
  border-radius: 20px;
  padding: 1rem;
  border: 1px solid rgba(161, 175, 230, 0.25);
}

.login-copy-card h1 {
  margin: 0;
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
}

.login-copy-card p {
  margin: 0.55rem 0 0.85rem;
  color: #d3dbfb;
  font-size: 0.92rem;
}

.login-copy-card .list-item {
  background: rgba(73, 89, 152, 0.46);
  color: #fff;
}

.login-card-inline {
  width: 100%;
}

.login-card-inline .auth-title {
  font-size: 1.1rem;
}

.login-replica-page .auth-links a {
  color: #1f2b66;
}

.login-replica-page .helper {
  color: #1f2b66;
}

.signup-replica-page .showcase-shell {
  max-width: 1220px;
}

.signup-hero-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 1rem;
  align-items: start;
}

.signup-card-inline {
  width: 100%;
}

.signup-card-inline .auth-title {
  font-size: 1.08rem;
}

@media (max-width: 1100px) {
  .signup-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .login-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .login-replica-page .showcase-shell,
  .signup-replica-page .showcase-shell {
    padding: 0.85rem;
  }

  .login-hero-grid,
  .signup-hero-grid {
    margin-top: 0.5rem;
    gap: 0.7rem;
  }

  .login-copy-card {
    padding: 0.8rem 0.85rem;
    border-radius: 14px;
  }

  .login-copy-card p,
  .login-copy-card .list {
    display: none;
  }

  .login-copy-card h1 {
    font-size: 1.05rem;
  }

  .auth-card {
    padding: 0.9rem;
    border-radius: 14px;
  }

  .auth-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .signup-hero-grid .login-copy-card,
  .login-hero-grid .login-copy-card {
    display: none;
  }

  .signup-card-inline,
  .login-card-inline {
    margin-top: 0;
  }

  .signup-card-inline .btn,
  .login-card-inline .btn {
    width: 100%;
  }
}

/* Shared responsive shells for auth/admin/client pages */
body.auth-page,
body.panel-page {
  --primary: #24326d;
  --primary-strong: #1f2b66;
  --primary-soft: #eef1ff;
  --accent: #f0649a;
  --surface: #ffffff;
  --text: #1f2a37;
  --muted: #5e6a80;
  background:
    radial-gradient(480px 210px at 8% 0%, rgba(240, 100, 154, 0.09), transparent 70%),
    radial-gradient(520px 250px at 100% 0%, rgba(36, 50, 109, 0.08), transparent 70%),
    #f4f7fb;
  color: var(--text);
}

.auth-page-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e9f7;
  padding: 0.62rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.auth-page-nav {
  display: flex;
  gap: 0.9rem;
  font-size: 0.84rem;
  color: #3f4f74;
}

.auth-page-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}

.auth-page-footer {
  border-top: 1px solid #e5ecf7;
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: #5c6b84;
  font-size: 0.84rem;
  background: #ffffff;
}

body.auth-page .auth-wrap {
  min-height: calc(100vh - 120px);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

body.auth-page .auth-card {
  width: min(500px, 100%);
  padding: 0.9rem;
  border: 1px solid #e2e8f6;
  box-shadow: 0 14px 30px rgba(32, 46, 94, 0.12);
}

body.auth-page .auth-title {
  font-size: 1.18rem;
  color: #202f67;
}

body.auth-page .auth-sub {
  font-size: 0.9rem;
  color: #5a6783;
}

body.auth-page .field label {
  font-size: 0.82rem;
}

body.auth-page .input,
body.auth-page textarea,
body.auth-page select {
  border-color: #d8e1f2;
  min-height: 40px;
  font-size: 0.9rem;
}

body.auth-page .btn-primary,
body.panel-page .btn-primary {
  background: #23316c;
  color: #fff;
  border: 0;
}

body.auth-page .btn-ghost,
body.panel-page .btn-ghost {
  border-color: #d6e0f0;
  color: #1f2b66;
}

body.auth-page .brand,
body.panel-page .brand,
body.panel-page .nav-title {
  color: #1f2b66;
}

body.panel-page .sidebar {
  background: linear-gradient(180deg, #f9faff, #f1f5ff);
  border-right: 1px solid #dde5f4;
}

body.panel-page .side-link.active,
body.panel-page .side-link:hover {
  background: #eaf0ff;
  color: #1f2b66;
}

body.panel-page .shell {
  position: relative;
}

.mobile-panel-top {
  display: none;
}

.mobile-nav-btn {
  border: 1px solid #d5dfef;
  background: #fff;
  color: #1f2b66;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-size: 0.86rem;
  min-height: 38px;
}

.mobile-top-link {
  font-size: 0.84rem;
  color: #4a5c84;
}

.sidebar-overlay {
  display: none;
}

.panel-footer {
  margin-top: 1rem;
  border-top: 1px solid #e5ecf7;
  padding-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: #5a6981;
  font-size: 0.84rem;
}

body.panel-page .main h1 {
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

body.panel-page .main h2 {
  font-size: clamp(0.96rem, 1.5vw, 1.12rem);
}

body.panel-page .card {
  padding: 0.78rem;
  border-color: #dde5f4;
}

body.panel-page .metric h3 {
  font-size: 1.2rem;
}

body.panel-page .metric p,
body.panel-page .helper,
body.panel-page .table th,
body.panel-page .table td {
  font-size: 0.84rem;
}

body.panel-page .list-item {
  padding: 0.55rem 0.65rem;
}

body.panel-page .chip {
  font-size: 0.72rem;
}

@media (max-width: 992px) {
  body.panel-page .main {
    padding-top: 0.7rem;
  }

  .mobile-panel-top {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e3ebf7;
    padding: 0.48rem 0.62rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
  }

  body.panel-page .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(270px, 80vw);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    z-index: 80;
    border-right: 1px solid #e4ebf7;
    border-bottom: 0;
    height: 100vh;
    overflow-y: auto;
  }

  body.panel-page .shell.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.panel-page .side-links {
    grid-template-columns: 1fr;
  }

  body.panel-page .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(12, 20, 42, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: 70;
  }

  body.panel-page .shell.sidebar-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 640px) {
  .auth-page-header {
    padding: 0.55rem 0.7rem;
  }

  .auth-page-nav {
    font-size: 0.76rem;
    gap: 0.55rem;
  }

  body.auth-page .auth-sub {
    font-size: 0.84rem;
  }

  body.auth-page .auth-card {
    padding: 0.82rem;
    border-radius: 14px;
  }

  .panel-footer,
  .auth-page-footer {
    font-size: 0.8rem;
  }

  body.panel-page .main {
    padding: 0.7rem;
  }

  body.panel-page .metric h3 {
    font-size: 1.05rem;
  }

  body.panel-page .card {
    padding: 0.68rem;
  }
}

/* Dashboard page replica styling */
body.panel-replica-page {
  background: #d9d9dc;
}

.dashboard-page-wrap {
  align-items: start;
  padding-top: 0;
  min-height: 100dvh;
}

.dashboard-shell {
  padding-bottom: 1rem;
}

.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  padding: 0.62rem 0.2rem;
  background: rgba(247, 247, 248, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e4e9f4;
}

.dashboard-branding .logo-word {
  font-size: 2rem;
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.dashboard-header .mobile-nav-btn {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.dashboard-grid-shell {
  grid-template-columns: 270px 1fr;
  gap: 1rem;
  min-height: calc(100vh - 140px);
}

.dashboard-grid-shell-single {
  grid-template-columns: 1fr;
}

.dashboard-grid-shell.dashboard-grid-shell-single {
  grid-template-columns: minmax(0, 1fr) !important;
}

.dashboard-grid-shell.dashboard-grid-shell-single > .dashboard-main {
  grid-column: 1 / -1;
  width: 100%;
}

body.panel-page .dashboard-sidebar {
  position: sticky;
  top: 68px;
  height: calc(100vh - 84px);
  border-radius: 22px;
  border: 1px solid #dfe7f5;
  box-shadow: 0 12px 26px rgba(28, 38, 72, 0.09);
  background: linear-gradient(180deg, #f6f9ff, #eef2ff);
}

body.panel-page .dashboard-sidebar .nav-title {
  margin-bottom: 0.9rem;
}

body.panel-page .dashboard-sidebar .side-link {
  background: rgba(255, 255, 255, 0.55);
}

body.panel-page .dashboard-sidebar .side-link .material-icons-outlined {
  font-size: 1.06rem;
}

.dashboard-main {
  padding: 0 0.1rem;
}

.dashboard-grid-shell-single .dashboard-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 1rem;
  align-items: start;
}

.dashboard-grid-shell-single .dashboard-main > .dashboard-metrics {
  grid-column: 1 / -1;
}

.dashboard-main > :first-child {
  margin-top: 0 !important;
}

.dashboard-sticky-topbar {
  position: static;
  z-index: 1;
  padding: 0.82rem;
  border-radius: 15px;
  background: rgba(248, 250, 255, 0.96);
  border: 1px solid #dde5f4;
  box-shadow: 0 10px 22px rgba(30, 43, 85, 0.08);
}

.dashboard-main .grid-4,
.dashboard-main .grid-2,
.dashboard-main .chat-card,
.dashboard-main .panel-footer {
  margin-top: 1rem;
}

.dashboard-main .list-item {
  background: #f4f7ff;
}

.dashboard-metrics {
  align-items: stretch;
}

.dashboard-metrics-single {
  display: block;
}

.dashboard-metrics-single .account-showcase-card {
  width: 100%;
  min-height: 220px;
  padding: 1rem;
}

.dashboard-metrics .account-showcase-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #1f2b66, #2e3d86 58%, #f0649a 180%);
  color: #f4f7ff;
  border: 1px solid rgba(165, 182, 235, 0.35);
  box-shadow: 0 18px 34px rgba(31, 43, 102, 0.26);
}

.dashboard-metrics .account-showcase-card::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: -70px;
  top: -75px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
}

.account-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.55rem;
}

.account-card-top p {
  margin: 0;
  color: #dfe7ff;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
}

.account-tier {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.72rem;
  font-weight: 500;
}

.account-balance-wrap {
  margin-top: 0.8rem;
}

.account-balance-wrap small {
  display: block;
  color: #d6e1ff;
  font-size: 0.78rem;
}

.account-balance-wrap h3 {
  margin: 0.2rem 0 0;
  color: #ffffff;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  letter-spacing: 0.2px;
}

.account-meta {
  margin-top: 0.62rem;
  display: block;
  color: #dbe5ff;
  font-size: 0.79rem;
}

.account-identity {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.3rem 0.45rem;
}

.account-name {
  grid-column: 1 / -1;
  margin: 0;
  color: #ffffff;
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  font-weight: 600;
  line-height: 1.2;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-number-line {
  display: inline-flex;
  align-items: center;
}

.account-number-line strong {
  color: #dbe5ff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.account-growth {
  margin-top: 0.35rem;
}

.account-copy-inline {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.18rem;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.account-copy-inline .material-icons-outlined {
  font-size: 0;
  line-height: 1;
}

.account-copy-inline .material-icons-outlined::before {
  content: '⧉';
  font-size: 0.95rem;
}

.account-copy-inline.copied {
  background: rgba(158, 248, 198, 0.2);
  border-color: rgba(158, 248, 198, 0.6);
}

.account-showcase-card .amount.up {
  color: #9ef8c6;
}

.country-translator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #223064;
  font-size: 0.76rem;
}

.country-translator span {
  font-weight: 600;
}

.country-language-select {
  min-height: 34px;
  border-radius: 999px;
  padding: 0.35rem 0.58rem;
  font-size: 0.78rem;
  width: auto;
}

.replica-links .country-translator {
  color: #e8efff;
}

.replica-links .country-language-select {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.landing-translate-wrap {
  display: flex;
  justify-content: flex-end;
  margin: 0.35rem 0 0.65rem;
  padding: 0 0.25rem;
}

#google_translate_element .goog-te-gadget {
  font-family: 'Roboto', sans-serif;
  font-size: 0.8rem;
  color: #1f2b66 !important;
}

#google_translate_element .goog-te-combo {
  min-height: 34px;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  border: 1px solid #c7d4f2;
  background: #ffffff;
  color: #1f2b66;
  font-weight: 500;
}

.account-actions {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.account-actions .btn {
  min-height: 36px;
  padding: 0.52rem 0.92rem;
  font-size: 0.82rem;
}

.account-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.38);
}

.recent-transactions-card {
  margin-top: 1.45rem;
}

.dashboard-grid-shell-single .recent-transactions-card,
.dashboard-grid-shell-single .csa-inline-card {
  margin-top: 0;
}

@media (min-width: 993px) {
  .dashboard-metrics {
    grid-template-columns: 0.95fr 1.35fr 0.85fr;
  }

  .dashboard-metrics-single .account-showcase-card {
    min-height: 245px;
    padding: 1.15rem 1.2rem;
  }
}

@media (max-width: 992px) {
  .dashboard-page-wrap {
    display: block;
    min-height: auto;
    padding: 0.45rem;
    place-items: normal;
  }

  .dashboard-shell {
    width: 100%;
    margin: 0;
    padding: 0.35rem 0.75rem 0.9rem;
  }

  .dashboard-branding .logo-word {
    font-size: 1.5rem;
  }

  .dashboard-header .mobile-nav-btn {
    display: inline-flex;
  }

  .dashboard-header-actions .btn:first-child {
    display: none;
  }

  .dashboard-grid-shell {
    display: block;
    min-height: 0;
    gap: 0;
  }

  body.panel-page .dashboard-sidebar {
    top: 0;
    height: 100vh;
    border-radius: 0 18px 18px 0;
  }

  .dashboard-grid-shell > .dashboard-main {
    margin-top: 0;
    min-height: 0;
    padding-top: 0 !important;
  }

  .dashboard-main {
    padding: 0 !important;
  }

  .dashboard-grid-shell-single .dashboard-main {
    display: block;
  }

  .dashboard-main .dashboard-metrics,
  .dashboard-main .dashboard-metrics-single,
  .dashboard-main .account-showcase-card {
    margin-top: 0 !important;
  }

  .dashboard-sticky-topbar {
    padding: 0.68rem;
  }

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

  .dashboard-metrics .account-showcase-card {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .dashboard-page-wrap {
    padding: 0.2rem;
  }

  .dashboard-shell {
    border-radius: 14px;
    padding: 0.2rem 0.55rem 0.75rem;
  }

  .dashboard-header {
    padding: 0.25rem 0;
  }

  .dashboard-branding .logo-word {
    font-size: 1.28rem;
    letter-spacing: -0.4px;
  }

  .dashboard-branding small {
    font-size: 0.72rem;
  }

  .dashboard-header-actions .btn {
    width: auto;
    padding: 0.55rem 0.8rem;
    min-height: 36px;
    font-size: 0.82rem;
  }

  .country-translator {
    display: none;
  }

  body.panel-page .main {
    padding-top: 0;
  }

  .dashboard-main {
    padding-top: 0 !important;
  }

  .dashboard-main > section:first-child,
  .dashboard-main > .card:first-child,
  .dashboard-main > .send-money-grid:first-child {
    margin-top: 0 !important;
  }

  .recent-transactions-card {
    margin-top: 0.9rem;
  }

  .dashboard-metrics .account-showcase-card {
    grid-column: auto;
  }

  .account-actions .btn {
    width: auto;
    flex: 1;
  }

  .account-name {
    font-size: 0.94rem;
  }

  .account-number-line strong {
    font-size: 0.84rem;
  }

  .withdraw-card .btn {
    width: 100%;
  }
}

/* Send money flow */
.send-money-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 1rem;
  align-items: start;
}

.send-flow-card,
.send-summary-card {
  border-radius: 16px;
}

.send-flow-card h2 {
  margin: 0;
}

.send-flow-header {
  margin-bottom: 0.9rem;
}

.send-steps-track {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  font-size: 0.76rem;
}

.send-steps-track li {
  background: #edf2ff;
  border: 1px solid #dce5f8;
  border-radius: 999px;
  padding: 0.28rem 0.5rem;
  text-align: center;
  color: #445271;
}

.send-steps-track li.active {
  background: #1f2b66;
  border-color: #1f2b66;
  color: #fff;
}

.send-status {
  margin-top: 0.8rem;
  color: #b11818;
  font-size: 0.85rem;
}

.send-status.ok {
  color: #168140;
}

.send-confirm-card {
  background: #f4f7ff;
  border: 1px solid #dde6f8;
  border-radius: 14px;
  padding: 0.8rem;
}

.send-confirm-card p {
  margin: 0;
}

.send-confirm-card h3 {
  margin: 0.3rem 0 0.72rem;
}

.send-success-card {
  text-align: center;
  background: #f4f9ff;
  border: 1px solid #d9e4f9;
  border-radius: 14px;
  padding: 1rem;
}

.send-success-card .material-icons-outlined {
  color: #1d8f4e;
  font-size: 2rem;
}

.send-summary-card {
  position: sticky;
  top: 74px;
  align-self: start;
  background: linear-gradient(180deg, #ffffff, #f7f9ff);
  border: 1px solid #dbe4f7;
  box-shadow: 0 14px 28px rgba(24, 36, 72, 0.09);
}

.send-summary-card .btn {
  margin-top: 0.7rem;
  width: 100%;
}

.send-summary-card .list-item strong {
  font-size: 0.95rem;
}

/* CSA chat widget */
.csa-widget {
  position: fixed;
  right: calc(14px + env(safe-area-inset-right, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.csa-launcher {
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  background: linear-gradient(130deg, #1f2b66, #2a3b87);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 10px 20px rgba(26, 35, 68, 0.28);
}

.csa-panel {
  display: none;
  width: min(380px, calc(100vw - 1.2rem));
  height: min(560px, calc(100vh - 130px));
  border-radius: 16px;
  background: #f8faff;
  border: 1px solid #dbe4f7;
  box-shadow: 0 18px 34px rgba(24, 34, 67, 0.24);
  overflow: hidden;
  grid-template-rows: auto 1fr auto;
}

.csa-widget.is-open .csa-panel {
  display: grid;
}

.csa-header {
  padding: 0.62rem 0.72rem;
  border-bottom: 1px solid #e4ebf8;
  background: linear-gradient(140deg, #1f2b66, #2b3b84);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.csa-header small {
  display: block;
  opacity: 0.86;
}

.csa-close {
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.csa-stream {
  padding: 0.65rem;
  overflow: auto;
  background:
    radial-gradient(240px 140px at 100% 0%, rgba(44, 61, 129, 0.08), transparent 70%),
    radial-gradient(210px 120px at 0% 100%, rgba(240, 100, 154, 0.08), transparent 72%),
    #f6f9ff;
  display: grid;
  gap: 0.52rem;
}

.csa-msg {
  display: grid;
  gap: 0.3rem;
}

.csa-msg.me {
  justify-items: end;
}

.csa-msg .bubble {
  max-width: 86%;
  padding: 0.68rem 0.84rem;
  border-radius: 14px;
  font-size: 0.93rem;
  line-height: 1.45;
}

.csa-msg .bubble p {
  margin: 0;
}

.csa-msg.them .bubble {
  background: #ffffff;
  border: 1px solid #dce6fb;
  color: #203055;
}

.csa-msg.me .bubble {
  background: linear-gradient(135deg, #1f2b66, #33479a);
  color: #fff;
  border: 1px solid rgba(42, 60, 131, 0.9);
}

.csa-meta {
  font-size: 0.69rem;
  color: #6b7a99;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.csa-msg.me .csa-meta {
  justify-content: flex-end;
}

.csa-status {
  color: #2b4db7;
  font-weight: 500;
}

.csa-image {
  max-width: 200px;
  border-radius: 10px;
  border: 1px solid #d6e0f5;
  box-shadow: 0 8px 14px rgba(29, 40, 76, 0.15);
}

.csa-input {
  border-top: 1px solid #e4ebf8;
  background: #fff;
  padding: 0.55rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.45rem;
  align-items: center;
}

.chat-typing-indicator {
  margin: 0;
  padding: 0.25rem 0.7rem 0.6rem;
  font-size: 0.8rem;
  color: #5571b3;
}

.chat-file-indicator {
  margin: 0;
  padding: 0.2rem 0.7rem 0.2rem;
  font-size: 0.78rem;
  color: #4b629e;
}

.chat-image-preview-wrap {
  padding: 0.15rem 0.7rem 0.45rem;
}

.chat-image-preview {
  width: 94px;
  height: 94px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #d3dff5;
  box-shadow: 0 8px 16px rgba(24, 35, 72, 0.14);
}

.typing-dots {
  display: inline-flex;
  gap: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

.typing-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  animation: typing-dot 1.2s infinite ease-in-out;
}

.typing-dots i:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots i:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.3; }
  40% { transform: translateY(-3px); opacity: 1; }
}

.csa-attach {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #d4dff5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f2b66;
  background: #f5f8ff;
  cursor: pointer;
}

.csa-inline-card {
  margin-top: 1rem;
}

.withdraw-card {
  width: 100%;
}

.withdraw-card .form-grid {
  margin-top: 0.75rem;
}

.withdraw-card .btn {
  width: auto;
}

.csa-page-widget {
  position: static;
  right: auto;
  bottom: auto;
  align-items: stretch;
  z-index: 1;
  margin-top: 1rem;
}

.csa-page-widget .csa-launcher,
.csa-page-widget .csa-close {
  display: none;
}

.csa-page-widget .csa-panel {
  display: grid;
  width: 100%;
  height: min(720px, calc(100vh - 220px));
  max-height: 720px;
  border-radius: 14px;
}

.csa-page-widget .csa-stream {
  padding: 0.86rem;
}

.csa-page-widget .csa-msg .bubble {
  max-width: min(80%, 760px);
}

@media (max-width: 1100px) {
  .send-money-grid {
    grid-template-columns: 1fr;
  }

  .send-summary-card {
    position: static;
  }
}

@media (max-width: 992px) {
  .csa-widget {
    right: calc(10px + env(safe-area-inset-right, 0px));
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .csa-panel {
    width: min(100vw - 1rem, 420px);
    height: min(74vh, 560px);
  }
}

@media (max-width: 640px) {
  .send-flow-card {
    padding: 0.8rem;
  }

  .send-summary-card {
    padding: 0.8rem;
  }

  .send-steps-track {
    grid-template-columns: 1fr;
    font-size: 0.8rem;
  }

  .csa-widget {
    right: calc(0.5rem + env(safe-area-inset-right, 0px));
    bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  }

  .csa-panel {
    width: calc(100vw - 1rem - env(safe-area-inset-right, 0px));
    height: min(72vh, calc(100vh - 5.5rem));
    max-height: calc(100vh - 5.5rem);
  }

  .csa-launcher {
    padding: 0.46rem 0.74rem;
    font-size: 0.86rem;
  }

  .csa-page-widget .csa-panel {
    height: min(68vh, 620px);
  }
}

/* Profile page */
.profile-card {
  padding: 1rem;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid #dbe5f7;
  background: linear-gradient(140deg, #f8faff, #eef3ff);
}

.profile-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(140deg, #1f2b66, #334894);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
}

.profile-hero-copy h1 {
  margin: 0;
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  line-height: 1.2;
  color: #1f2b66;
}

.profile-hero-copy p {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: #5b6782;
}

.profile-stat-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.profile-stat {
  background: #f6f9ff;
  border: 1px solid #dfe8f9;
  border-radius: 12px;
  padding: 0.68rem 0.72rem;
}

.profile-stat span {
  display: block;
  font-size: 0.78rem;
  color: #617091;
}

.profile-stat strong {
  display: block;
  margin-top: 0.2rem;
  font-size: clamp(0.9rem, 1.35vw, 1.04rem);
  color: #1f2b66;
}

.profile-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.profile-subcard {
  padding: 0.85rem;
}

.profile-subcard h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

.profile-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

@media (max-width: 992px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .profile-card {
    padding: 0.72rem;
  }

  .profile-hero {
    grid-template-columns: auto 1fr;
    align-items: start;
    padding: 0.72rem;
  }

  .profile-hero .chip {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .profile-stat-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .profile-actions .btn {
    width: 100%;
  }
}

