/* ============================================================
   Music Stream Panel — msp-theme
   Light SaaS, Spotify-inspired green/blue pastel palette
   Bootstrap 3 base, extended with custom components
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ── 1. Design tokens ─────────────────────────────────────── */
:root {
  --msp-green:         #22c55e;
  --msp-green-dark:    #16a34a;
  --msp-green-mid:     #4ade80;
  --msp-green-pastel:  #dcfce7;
  --msp-green-pale:    #f0fdf4;

  --msp-cyan:          #06b6d4;
  --msp-cyan-dark:     #0891b2;
  --msp-cyan-mid:      #67e8f9;
  --msp-cyan-pastel:   #cffafe;
  --msp-cyan-pale:     #ecfeff;

  --msp-bg:            #f8fffc;
  --msp-surface:       #ffffff;
  --msp-surface-2:     #f1fdf7;
  --msp-border:        #e2e8f0;
  --msp-border-light:  #f1f5f9;

  --msp-text:          #0f172a;
  --msp-text-2:        #334155;
  --msp-text-muted:    #64748b;
  --msp-text-light:    #94a3b8;

  --msp-danger:        #ef4444;
  --msp-warning:       #f59e0b;

  --msp-grad-primary:  linear-gradient(135deg, #22c55e 0%, #06b6d4 100%);
  --msp-grad-bg:       linear-gradient(145deg, #f0fdf4 0%, #ecfeff 100%);
  --msp-grad-card:     linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%);
  --msp-grad-dark:     linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

  --msp-radius:        12px;
  --msp-radius-lg:     20px;
  --msp-radius-sm:     8px;
  --msp-radius-xs:     6px;
  --msp-radius-full:   9999px;

  --msp-shadow-xs:     0 1px 2px rgba(0,0,0,0.05);
  --msp-shadow-sm:     0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --msp-shadow:        0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --msp-shadow-lg:     0 20px 60px rgba(0,0,0,0.10), 0 8px 24px rgba(0,0,0,0.06);
  --msp-shadow-green:  0 4px 20px rgba(34,197,94,0.28);
  --msp-shadow-cyan:   0 4px 20px rgba(6,182,212,0.22);

  --msp-ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --msp-t:             0.22s;
}

/* ── 2. Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body.msp-theme {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--msp-bg);
  color: var(--msp-text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.msp-theme h1, body.msp-theme h2,
body.msp-theme h3, body.msp-theme h4,
body.msp-theme h5, body.msp-theme h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--msp-text);
  letter-spacing: -0.02em;
  margin-top: 0;
}

body.msp-theme a {
  color: var(--msp-green-dark);
  transition: color var(--msp-t) var(--msp-ease);
}
body.msp-theme a:hover { color: var(--msp-green); text-decoration: none; }

body.msp-theme p { margin-bottom: 1rem; }

/* ── 3. Navbar ────────────────────────────────────────────── */
body.msp-theme .navbar {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  border-bottom: 1px solid var(--msp-border);
  box-shadow: var(--msp-shadow-sm);
  min-height: 64px;
  margin-bottom: 0;
}

body.msp-theme .navbar-default { background: rgba(255,255,255,0.96); border-color: var(--msp-border); }

body.msp-theme .navbar-brand {
  font-weight: 800;
  font-size: 19px;
  color: var(--msp-text) !important;
  padding: 15px 16px;
  letter-spacing: -0.03em;
  line-height: 34px;
}
body.msp-theme .navbar-brand:hover { color: var(--msp-green) !important; background: transparent; }
body.msp-theme .navbar-brand img { max-height: 34px; width: auto; vertical-align: middle; }

body.msp-theme .navbar-nav > li > a {
  color: var(--msp-text-2) !important;
  font-weight: 500;
  font-size: 14px;
  padding: 22px 14px;
  transition: color var(--msp-t) var(--msp-ease);
  position: relative;
}
body.msp-theme .navbar-nav > li > a:hover,
body.msp-theme .navbar-nav > li.active > a {
  color: var(--msp-green) !important;
  background: transparent !important;
}
body.msp-theme .navbar-nav > li.active > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2px;
  background: var(--msp-green);
  border-radius: 2px 2px 0 0;
}

body.msp-theme .navbar-nav > li > a i.navbar-icon { margin-right: 5px; }

body.msp-theme .navbar-toggle {
  border: 1px solid var(--msp-border);
  border-radius: var(--msp-radius-sm);
  margin-top: 14px;
  padding: 8px 10px;
}
body.msp-theme .navbar-toggle .icon-bar { background-color: var(--msp-text-muted); }

body.msp-theme .navbar-right .badge {
  background: var(--msp-grad-primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--msp-radius-full);
}

/* ── Authenticated app shell / sidebar ───────────────────── */
body.msp-theme.msp-auth {
  --msp-text-muted: #475569;
  --msp-text-light: #64748b;
  --msp-border: #cbd5e1;
  --msp-border-light: #dce8e2;
  background: #f4fbf8;
  font-size: 16px;
}
body.msp-theme.msp-auth h1,
body.msp-theme.msp-auth h2,
body.msp-theme.msp-auth h3,
body.msp-theme.msp-auth h4,
body.msp-theme.msp-auth h5,
body.msp-theme.msp-auth h6 {
  color: #102033;
  font-weight: 800;
  letter-spacing: 0;
}
body.msp-theme.msp-auth p,
body.msp-theme.msp-auth li {
  color: #334155;
}
body.msp-theme.msp-auth .btn {
  font-size: 15px;
}

.msp-app-shell {
  min-height: 100vh;
  background: #f4fbf8;
}

.msp-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  width: 282px;
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfeff 100%);
  color: #183a33;
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  border-right: 1px solid #cde7dc;
  box-shadow: 10px 0 32px rgba(15,23,42,0.08);
  transition: width var(--msp-t) var(--msp-ease),
              transform var(--msp-t) var(--msp-ease);
}

.msp-app-main {
  min-height: 100vh;
  margin-left: 282px;
  transition: margin-left var(--msp-t) var(--msp-ease);
}

.msp-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  margin-bottom: 18px;
}

.msp-sidebar-logo {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f2f27 !important;
  text-decoration: none;
  font-weight: 800;
}
.msp-sidebar-logo:hover { color: var(--msp-green-dark) !important; text-decoration: none; }
.msp-sidebar-logo-text {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msp-sidebar-toggle {
  width: 42px; height: 42px;
  border: 1px solid var(--msp-border);
  background: white;
  border-radius: var(--msp-radius-sm);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  transition: background var(--msp-t) var(--msp-ease),
              border-color var(--msp-t) var(--msp-ease),
              transform var(--msp-t) var(--msp-ease);
}
.msp-sidebar-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--msp-text-2);
  border-radius: 2px;
}
.msp-sidebar-toggle:hover {
  background: var(--msp-green-pastel);
  border-color: var(--msp-green-mid);
}

.msp-sidebar-balance {
  background: rgba(255,255,255,0.86);
  border: 1px solid #c9e9da;
  border-radius: var(--msp-radius);
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(22,163,74,0.08);
}
.msp-sidebar-balance-label {
  display: block;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.msp-sidebar-balance strong {
  display: block;
  color: #102033;
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.msp-sidebar-balance a {
  color: var(--msp-green-dark) !important;
  font-weight: 700;
  font-size: 15px;
}

.msp-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  padding: 4px 2px 12px;
}
.msp-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: var(--msp-radius-sm);
  color: #334155 !important;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--msp-t) var(--msp-ease),
              color var(--msp-t) var(--msp-ease),
              transform var(--msp-t) var(--msp-ease);
}
.msp-sidebar-link:hover,
.msp-sidebar-link.active {
  background: rgba(255,255,255,0.92);
  color: var(--msp-green-dark) !important;
  border-color: #b7e6cc;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(34,197,94,0.08);
}
.msp-sidebar-link.active {
  box-shadow: inset 3px 0 0 var(--msp-green);
}
.msp-sidebar-icon {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  color: var(--msp-green-dark);
}
.msp-sidebar-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msp-sidebar-footer {
  border-top: 1px solid #cde7dc;
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.msp-sidebar-footer a,
.msp-sidebar-footer span {
  color: #475569 !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.msp-sidebar-footer a:hover { color: var(--msp-green-dark) !important; }

.msp-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 1030;
  border: none;
  background: rgba(15,23,42,0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--msp-t) var(--msp-ease);
}

.msp-app-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  height: 68px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #cde7dc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
}
.msp-topbar-title {
  min-width: 0;
  flex: 1;
}
.msp-topbar-title span {
  display: block;
  color: var(--msp-text-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}
.msp-topbar-title strong {
  display: block;
  color: var(--msp-text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msp-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.msp-topbar-balance {
  background: var(--msp-green-pale);
  border: 1px solid rgba(34,197,94,0.34);
  border-radius: var(--msp-radius-sm);
  color: var(--msp-green-dark) !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
}
.msp-topbar-fund {
  background: var(--msp-green);
  color: white !important;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--msp-radius-sm);
  padding: 8px 14px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  box-shadow: var(--msp-shadow-green);
}
.msp-topbar-fund:hover { background: var(--msp-green-dark); color: white !important; }

@media (min-width: 992px) {
  body.msp-sidebar-collapsed .msp-sidebar { width: 84px; }
  body.msp-sidebar-collapsed .msp-app-main { margin-left: 84px; }
  body.msp-sidebar-collapsed .msp-sidebar-logo-text,
  body.msp-sidebar-collapsed .msp-sidebar-text,
  body.msp-sidebar-collapsed .msp-sidebar-balance,
  body.msp-sidebar-collapsed .msp-sidebar-footer {
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border: 0;
  }
  body.msp-sidebar-collapsed .msp-sidebar-link {
    justify-content: center;
    padding: 10px 0;
  }
  body.msp-sidebar-collapsed .msp-sidebar-link.active { box-shadow: inset 0 -3px 0 var(--msp-green); }
}

@media (max-width: 991px) {
  .msp-sidebar {
    width: 286px;
    transform: translateX(-100%);
  }
  .msp-app-main,
  body.msp-sidebar-collapsed .msp-app-main {
    margin-left: 0;
  }
  body.msp-sidebar-open .msp-sidebar {
    transform: translateX(0);
  }
  body.msp-sidebar-open .msp-sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }
  .msp-app-topbar {
    padding: 0 16px;
  }
  .msp-topbar-actions {
    gap: 8px;
  }
}

@media (max-width: 767px) {
  .msp-app-topbar {
    height: auto;
    min-height: 64px;
    padding: 10px 12px;
  }
  .msp-topbar-title span {
    display: none;
  }
  .msp-topbar-title strong {
    font-size: 15px;
  }
  .msp-topbar-balance {
    display: none;
  }
  .msp-topbar-fund {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* ── 4. Dropdown ──────────────────────────────────────────── */
body.msp-theme .dropdown-menu {
  border: 1px solid var(--msp-border);
  border-radius: var(--msp-radius);
  box-shadow: var(--msp-shadow);
  padding: 6px;
  background: var(--msp-surface);
  margin-top: 4px;
}
body.msp-theme .dropdown-menu > li > a,
body.msp-theme .dropdown-menu > li > a.dropdown-item {
  border-radius: var(--msp-radius-sm);
  padding: 8px 12px;
  color: var(--msp-text-2) !important;
  font-size: 14px;
  font-weight: 500;
  display: block;
}
body.msp-theme .dropdown-menu > li > a:hover,
body.msp-theme .dropdown-menu > li > a:focus {
  background: var(--msp-green-pastel) !important;
  color: var(--msp-green-dark) !important;
}

/* ── 5. Buttons ───────────────────────────────────────────── */
body.msp-theme .btn {
  border-radius: var(--msp-radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: none;
  transition: all var(--msp-t) var(--msp-ease);
  letter-spacing: -0.01em;
  line-height: 1.5;
}

body.msp-theme .btn-primary {
  background: var(--msp-green);
  color: white !important;
  box-shadow: var(--msp-shadow-green);
  border: none;
}
body.msp-theme .btn-primary:hover,
body.msp-theme .btn-primary:focus,
body.msp-theme .btn-primary:active,
body.msp-theme .btn-primary.active {
  background: var(--msp-green-dark) !important;
  color: white !important;
  box-shadow: 0 6px 24px rgba(34,197,94,0.38) !important;
  transform: translateY(-1px);
  outline: none;
}

body.msp-theme .btn-default {
  background: white;
  color: var(--msp-text-2) !important;
  border: 1.5px solid var(--msp-border) !important;
  box-shadow: var(--msp-shadow-xs);
}
body.msp-theme .btn-default:hover {
  background: var(--msp-green-pastel);
  border-color: var(--msp-green-mid) !important;
  color: var(--msp-green-dark) !important;
}

body.msp-theme .btn-xs {
  border-radius: var(--msp-radius-xs);
  padding: 3px 10px;
  font-size: 12px;
}
body.msp-theme .btn-sm {
  border-radius: var(--msp-radius-xs);
  font-size: 13px;
}

/* Landing-page specific buttons */
.msp-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--msp-green);
  color: white !important;
  border: none;
  padding: 12px 24px;
  border-radius: var(--msp-radius-sm);
  font-weight: 600; font-size: 15px;
  cursor: pointer;
  transition: all var(--msp-t) var(--msp-ease);
  box-shadow: var(--msp-shadow-green);
  text-decoration: none;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}
.msp-btn-primary:hover {
  background: var(--msp-green-dark);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(34,197,94,0.38);
  text-decoration: none;
}

.msp-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.85);
  color: var(--msp-text-2) !important;
  border: 1.5px solid var(--msp-border);
  padding: 11px 24px;
  border-radius: var(--msp-radius-sm);
  font-weight: 600; font-size: 15px;
  cursor: pointer;
  transition: all var(--msp-t) var(--msp-ease);
  text-decoration: none;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}
.msp-btn-ghost:hover {
  background: white;
  border-color: var(--msp-green-mid);
  color: var(--msp-green-dark) !important;
  text-decoration: none;
}

.msp-btn-lg { padding: 14px 32px !important; font-size: 16px !important; }

/* ── 6. Forms ─────────────────────────────────────────────── */
body.msp-theme .form-control {
  border: 1.5px solid var(--msp-border);
  border-radius: var(--msp-radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--msp-text);
  background: var(--msp-surface);
  box-shadow: none;
  transition: border-color var(--msp-t) var(--msp-ease),
              box-shadow var(--msp-t) var(--msp-ease);
  height: auto;
  min-height: 42px;
  font-family: 'Inter', sans-serif;
}
body.msp-theme .form-control:focus {
  border-color: var(--msp-green);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.13);
  outline: none;
}
body.msp-theme .form-control:hover { border-color: var(--msp-green-mid); }
body.msp-theme .form-control[disabled],
body.msp-theme .form-control[readonly] {
  background: var(--msp-surface-2);
  color: var(--msp-text-muted);
  cursor: not-allowed;
}

body.msp-theme .control-label {
  font-weight: 600;
  font-size: 13px;
  color: var(--msp-text-2);
  margin-bottom: 6px;
  letter-spacing: 0.005em;
}

body.msp-theme .form-group { margin-bottom: 18px; }

body.msp-theme .form-group__password { position: relative; }
body.msp-theme .form-group__password .control-label { padding-right: 110px; }

body.msp-theme .forgot-password {
  font-size: 12px;
  color: var(--msp-text-muted);
  position: absolute;
  right: 0; top: 0;
  font-weight: 500;
}
body.msp-theme .forgot-password:hover { color: var(--msp-green); }

body.msp-theme .input-group .form-control:first-child {
  border-radius: var(--msp-radius-sm) 0 0 var(--msp-radius-sm);
  border-right: none;
}
body.msp-theme .input-group-btn:last-child .btn {
  border: 1.5px solid var(--msp-border);
  border-left: none;
  border-radius: 0 var(--msp-radius-sm) var(--msp-radius-sm) 0;
  background: white;
  color: var(--msp-text-muted);
}

body.msp-theme textarea.form-control { min-height: 100px; resize: vertical; }

body.msp-theme select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

body.msp-theme .checkbox label,
body.msp-theme .radio label { font-size: 14px; color: var(--msp-text-muted); font-weight: 400; cursor: pointer; }
body.msp-theme .terms-accept-checkbox { accent-color: var(--msp-green); }

/* ── 7. Cards / Wells ─────────────────────────────────────── */
body.msp-theme .well {
  background: var(--msp-surface);
  border: 1px solid var(--msp-border);
  border-radius: var(--msp-radius-lg);
  box-shadow: var(--msp-shadow);
  padding: 28px 32px;
}
body.msp-theme .well-sm { padding: 16px 20px; border-radius: var(--msp-radius); }

body.msp-theme .panel-body.border-solid {
  background: var(--msp-surface-2);
  border: 1px solid var(--msp-border-light);
  border-radius: var(--msp-radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--msp-text-2);
  line-height: 1.65;
}

body.msp-theme .border-rounded { border-radius: var(--msp-radius-sm); }

/* ── 8. Tables ────────────────────────────────────────────── */
body.msp-theme .table { border-collapse: separate; border-spacing: 0; width: 100%; }

body.msp-theme .table > thead > tr > th {
  background: var(--msp-green-pale);
  color: var(--msp-text-2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 12px 14px;
  border-bottom: 2px solid var(--msp-border);
  white-space: nowrap;
  vertical-align: middle;
}

body.msp-theme .table > tbody > tr > td {
  padding: 13px 14px;
  vertical-align: middle;
  color: var(--msp-text-2);
  font-size: 14px;
  border-bottom: 1px solid var(--msp-border-light);
}
body.msp-theme .table > tbody > tr:last-child > td { border-bottom: none; }
body.msp-theme .table > tbody > tr:hover > td { background: #fbfffb; }

body.msp-theme .well-float { overflow: visible; border-radius: var(--msp-radius-lg); }

body.msp-theme .width-service-name { min-width: 220px; }
body.msp-theme .width-40 { max-width: 280px; word-break: break-all; font-size: 13px; }
body.msp-theme .nowrap { white-space: nowrap; }

/* ── 9. Alerts ────────────────────────────────────────────── */
body.msp-theme .alert {
  border: none;
  border-radius: var(--msp-radius);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  border-left: 4px solid transparent;
  margin-bottom: 18px;
}
body.msp-theme .alert-success {
  background: var(--msp-green-pastel);
  color: var(--msp-green-dark);
  border-left-color: var(--msp-green);
}
body.msp-theme .alert-danger {
  background: #fef2f2;
  color: #b91c1c;
  border-left-color: var(--msp-danger);
}
body.msp-theme .alert-info {
  background: var(--msp-cyan-pastel);
  color: var(--msp-cyan-dark);
  border-left-color: var(--msp-cyan);
}
body.msp-theme .alert-warning {
  background: #fffbeb;
  color: #92400e;
  border-left-color: var(--msp-warning);
}
body.msp-theme .alert .close {
  opacity: 0.55;
  font-size: 18px;
  line-height: 1;
  color: inherit;
  margin-top: -1px;
}
body.msp-theme .alert h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: inherit; }

/* ── 10. Nav pills ────────────────────────────────────────── */
body.msp-theme .nav-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
  padding: 0;
}
body.msp-theme .nav-pills > li { float: none; display: flex; align-items: center; }
body.msp-theme .nav-pills > li > a {
  border-radius: var(--msp-radius-xs);
  font-size: 13px;
  font-weight: 600;
  color: var(--msp-text-muted) !important;
  padding: 7px 14px;
  transition: all var(--msp-t) var(--msp-ease);
  border: 1px solid transparent;
  line-height: 1.5;
  display: inline-block;
}
body.msp-theme .nav-pills > li > a:hover {
  background: var(--msp-green-pastel);
  color: var(--msp-green-dark) !important;
}
body.msp-theme .nav-pills > li.active > a,
body.msp-theme .nav-pills > li.active > a:hover,
body.msp-theme .nav-pills > li.active > a:focus {
  background: var(--msp-green) !important;
  color: white !important;
  box-shadow: var(--msp-shadow-green);
}
body.msp-theme .nav-pills > li.pull-right { margin-left: auto; }

/* ── 11. Pagination ───────────────────────────────────────── */
body.msp-theme .pagination { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0; padding: 0; list-style: none; }
body.msp-theme .pagination > li > a,
body.msp-theme .pagination > li > span {
  border: 1px solid var(--msp-border);
  border-radius: var(--msp-radius-xs) !important;
  color: var(--msp-text-2);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  background: white;
  transition: all var(--msp-t) var(--msp-ease);
  display: block;
}
body.msp-theme .pagination > li > a:hover {
  background: var(--msp-green-pastel);
  border-color: var(--msp-green-mid);
  color: var(--msp-green-dark);
}
body.msp-theme .pagination > .active > a,
body.msp-theme .pagination > .active > span {
  background: var(--msp-green) !important;
  border-color: var(--msp-green) !important;
  color: white !important;
}

/* ── 12. Modals ───────────────────────────────────────────── */
body.msp-theme .modal-content {
  border: none;
  border-radius: var(--msp-radius-lg);
  box-shadow: var(--msp-shadow-lg);
  overflow: hidden;
}
body.msp-theme .modal-header {
  background: var(--msp-green-pale);
  border-bottom: 1px solid var(--msp-border);
  padding: 20px 24px;
}
body.msp-theme .modal-header h4 { font-size: 17px; color: var(--msp-text); margin: 0; }
body.msp-theme .modal-header .close { opacity: 0.45; font-size: 22px; margin-top: -2px; }
body.msp-theme .modal-body { padding: 24px; }
body.msp-theme .modal-footer { padding: 16px 24px; border-top: 1px solid var(--msp-border); }

/* ── 13. Badges ───────────────────────────────────────────── */
body.msp-theme .badge {
  border-radius: var(--msp-radius-full);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* ── 14. Notifications ────────────────────────────────────── */
body.msp-theme #notify-wrapper {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 9999;
  min-width: 280px; max-width: 400px;
  border-radius: var(--msp-radius);
  box-shadow: var(--msp-shadow-lg);
  border-left-width: 4px;
}

/* ── 15. Order actions ────────────────────────────────────── */
body.msp-theme .order-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ── 16. Favorites ────────────────────────────────────────── */
body.msp-theme .favorite-active,
body.msp-theme span.fas.fa-star { color: var(--msp-warning); }
body.msp-theme span[data-favorite-service-id] { cursor: pointer; font-size: 14px; }

/* ── 17. Service description ──────────────────────────────── */
body.msp-theme .service-description { font-size: 13px; color: var(--msp-text-muted); max-width: 300px; }
body.msp-theme .service-description__th { color: var(--msp-text-light); font-size: 11px; }

/* ── 18. Nav-collapsed state ──────────────────────────────── */
body.msp-theme nav.navbar-collapsed-before .navbar-header { border-bottom: 1px solid var(--msp-border); }

/* ── 19. Auth page spacing ────────────────────────────────── */
body.msp-theme.msp-auth .container-fluid { padding-top: 20px; padding-bottom: 20px; }
body.msp-theme.msp-auth .container { padding-top: 20px; padding-bottom: 20px; }

/* ── 20. Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--msp-surface-2); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── 21. Pull-right-middle ────────────────────────────────── */
body.msp-theme .pull-right-middle {
  display: block;
  font-size: 13px;
  color: var(--msp-text-muted);
  margin-top: 10px;
}
body.msp-theme .pull-right-middle a {
  font-weight: 600;
  color: var(--msp-green-dark);
}


/* ══════════════════════════════════════════════════════════════
   LANDING PAGE COMPONENTS
   ══════════════════════════════════════════════════════════════ */

/* ── Landing wrapper ──────────────────────────────────────── */
.msp-landing-page { background: var(--msp-bg); overflow-x: hidden; }

/* ── Hero ─────────────────────────────────────────────────── */
.msp-hero {
  background: var(--msp-grad-bg);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.msp-hero::before {
  content: '';
  position: absolute; top: -120px; right: -100px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(34,197,94,0.09) 0%, transparent 70%);
  pointer-events: none;
}
.msp-hero::after {
  content: '';
  position: absolute; bottom: -100px; left: -80px;
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(6,182,212,0.09) 0%, transparent 70%);
  pointer-events: none;
}

.msp-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--msp-green-pastel);
  color: var(--msp-green-dark);
  font-size: 12px; font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--msp-radius-full);
  margin-bottom: 22px;
  border: 1px solid rgba(34,197,94,0.22);
  letter-spacing: 0.03em;
  font-family: 'Inter', sans-serif;
}

.msp-hero h1 {
  font-size: 54px;
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}

.msp-gradient-text {
  background: var(--msp-grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.msp-hero-lead {
  font-size: 18px;
  color: var(--msp-text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 500px;
}

.msp-hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 32px;
}

.msp-trust-badges {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--msp-text-muted); font-weight: 500;
}
.msp-trust-badges span { display: flex; align-items: center; gap: 5px; }
.msp-trust-badges span::before {
  content: '✓';
  color: var(--msp-green);
  font-weight: 700;
}

/* Hero image side */
.msp-hero-img-wrap {
  position: relative;
  padding: 12px 8px 42px;
}
.msp-hero-img-wrap img {
  width: 100%;
  border-radius: var(--msp-radius-lg);
  box-shadow: var(--msp-shadow-lg);
  display: block;
  object-fit: cover;
  max-height: 480px;
}

.msp-float-card {
  position: absolute;
  background: white;
  border-radius: var(--msp-radius);
  box-shadow: var(--msp-shadow);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  min-width: 155px;
  border: 1px solid var(--msp-border);
  animation: mspFloat 3.4s ease-in-out infinite;
  z-index: 2;
}
.msp-float-card--1 { bottom: 32px; left: -12px; animation-delay: 0s; }
.msp-float-card--2 { top: 28px; right: -12px; animation-delay: 1.7s; }

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

.msp-float-icon {
  font-size: 22px;
  background: var(--msp-green-pastel);
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.msp-float-label {
  font-size: 10px; color: var(--msp-text-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 2px;
}
.msp-float-value {
  font-size: 18px; font-weight: 800; color: var(--msp-text);
  letter-spacing: -0.04em; line-height: 1;
}

/* ── Stats bar ────────────────────────────────────────────── */
.msp-stats-bar {
  background: white;
  border-top: 1px solid var(--msp-border);
  border-bottom: 1px solid var(--msp-border);
  padding: 36px 0;
}
.msp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.msp-stat-item { text-align: center; padding: 8px; }
.msp-stat-number {
  font-size: 34px; font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--msp-grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1; margin-bottom: 6px;
}
.msp-stat-label { font-size: 13px; color: var(--msp-text-muted); font-weight: 500; }

/* ── Section containers ───────────────────────────────────── */
.msp-section { padding: 84px 0; }
.msp-section--alt { background: white; }

.msp-section-header { text-align: center; margin-bottom: 60px; }
.msp-section-header h2 {
  font-size: 40px; font-weight: 900;
  letter-spacing: -0.035em; margin-bottom: 14px;
}
.msp-section-header p {
  font-size: 17px; color: var(--msp-text-muted);
  max-width: 580px; margin: 0 auto; line-height: 1.7;
}

.msp-pill-label {
  display: inline-block;
  background: var(--msp-cyan-pastel);
  color: var(--msp-cyan-dark);
  font-size: 11px; font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--msp-radius-full);
  text-transform: uppercase; letter-spacing: 0.09em;
  margin-bottom: 14px;
  border: 1px solid rgba(6,182,212,0.22);
}
.msp-pill-label--green {
  background: var(--msp-green-pastel);
  color: var(--msp-green-dark);
  border-color: rgba(34,197,94,0.22);
}

/* ── Step cards ───────────────────────────────────────────── */
.msp-step-card {
  background: var(--msp-surface);
  border: 1px solid var(--msp-border);
  border-radius: var(--msp-radius-lg);
  padding: 36px 28px;
  text-align: center;
  height: 100%;
  transition: all var(--msp-t) var(--msp-ease);
  position: relative;
  overflow: hidden;
}
.msp-step-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--msp-grad-primary);
  opacity: 0;
  transition: opacity var(--msp-t) var(--msp-ease);
}
.msp-step-card:hover {
  box-shadow: var(--msp-shadow);
  transform: translateY(-5px);
  border-color: var(--msp-green-mid);
}
.msp-step-card:hover::before { opacity: 1; }

.msp-step-num {
  font-size: 52px; font-weight: 900;
  color: var(--msp-green-pastel); letter-spacing: -0.04em;
  line-height: 1; margin-bottom: 12px;
}
.msp-step-icon { font-size: 38px; margin-bottom: 16px; }
.msp-step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.msp-step-card p { font-size: 14px; color: var(--msp-text-muted); line-height: 1.7; margin: 0; }

/* ── Dashboard preview ────────────────────────────────────── */
.msp-dashboard-mockup {
  border-radius: var(--msp-radius-lg);
  overflow: hidden;
  box-shadow: var(--msp-shadow-lg);
  border: 1px solid var(--msp-border);
  background: white;
}
.msp-dashboard-mockup img { width: 100%; display: block; }

.msp-vcentered { display: flex; align-items: center; }
.msp-vcentered > [class*="col-"] { float: none; }

.msp-feature-list { list-style: none; padding: 0; margin: 24px 0 32px; }
.msp-feature-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; font-size: 15px; color: var(--msp-text-2); font-weight: 500;
  border-bottom: 1px solid var(--msp-border-light);
}
.msp-feature-list li:last-child { border-bottom: none; }
.msp-check {
  width: 22px; height: 22px;
  background: var(--msp-green);
  color: white; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}

/* ── Service cards ────────────────────────────────────────── */
.msp-service-card {
  background: var(--msp-surface);
  border: 1.5px solid var(--msp-border);
  border-radius: var(--msp-radius-lg);
  padding: 36px 32px;
  height: 100%;
  transition: all var(--msp-t) var(--msp-ease);
}
.msp-service-card:hover { box-shadow: var(--msp-shadow); transform: translateY(-4px); }
.msp-service-card--featured {
  border-color: var(--msp-green);
  background: var(--msp-grad-card);
  box-shadow: var(--msp-shadow-green);
}

.msp-service-badge {
  display: inline-block;
  background: var(--msp-cyan-pastel); color: var(--msp-cyan-dark);
  font-size: 12px; font-weight: 700; padding: 4px 12px;
  border-radius: var(--msp-radius-full); margin-bottom: 14px;
  border: 1px solid rgba(6,182,212,0.22);
}
.msp-service-badge--featured {
  background: var(--msp-green-pastel); color: var(--msp-green-dark);
  border-color: rgba(34,197,94,0.22);
}

.msp-service-card h3 { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.msp-service-rate {
  font-size: 34px; font-weight: 900; color: var(--msp-green-dark);
  letter-spacing: -0.045em; margin-bottom: 20px; line-height: 1;
}
.msp-service-rate span { font-size: 14px; font-weight: 500; color: var(--msp-text-muted); letter-spacing: 0; }

.msp-service-features { list-style: none; padding: 0; margin-bottom: 28px; }
.msp-service-features li {
  padding: 7px 0; font-size: 14px; color: var(--msp-text-2);
  border-bottom: 1px solid var(--msp-border-light);
  display: flex; align-items: flex-start; gap: 9px;
}
.msp-service-features li:last-child { border-bottom: none; }
.msp-service-features li::before {
  content: '✓'; color: var(--msp-green); font-weight: 700;
  font-size: 12px; margin-top: 2px; flex-shrink: 0;
}

/* ── Image grid section ───────────────────────────────────── */
.msp-image-grid { position: relative; padding-bottom: 40px; }
.msp-img-main {
  width: 80%; border-radius: var(--msp-radius-lg);
  box-shadow: var(--msp-shadow-lg); display: block;
  object-fit: cover;
}
.msp-img-accent {
  width: 46%; border-radius: var(--msp-radius);
  box-shadow: var(--msp-shadow);
  position: absolute; right: 0; bottom: 0;
  border: 4px solid white;
  object-fit: cover;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.msp-faq-list { display: flex; flex-direction: column; }
.msp-faq-item { padding: 24px 0; border-bottom: 1px solid var(--msp-border); }
.msp-faq-item:last-child { border-bottom: none; }
.msp-faq-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--msp-text); }
.msp-faq-item p { font-size: 14px; color: var(--msp-text-muted); line-height: 1.75; margin: 0; }

/* ── Sign-in section ──────────────────────────────────────── */
.msp-signin-section {
  background: var(--msp-grad-bg);
  padding: 84px 0;
  border-top: 1px solid var(--msp-border);
}

.msp-signin-copy { padding-right: 20px; }
.msp-signin-copy h2 {
  font-size: 38px; font-weight: 900;
  letter-spacing: -0.035em; margin-bottom: 16px;
}
.msp-signin-copy p { font-size: 16px; color: var(--msp-text-muted); margin-bottom: 0; line-height: 1.7; }

.msp-signin-features { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.msp-signin-feature {
  display: flex; align-items: center; gap: 14px;
  font-size: 14px; font-weight: 500; color: var(--msp-text-2);
}
.msp-signin-feature .msp-sfi {
  font-size: 20px;
  width: 40px; height: 40px;
  background: white; border-radius: var(--msp-radius-sm);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--msp-shadow-sm); flex-shrink: 0;
  border: 1px solid var(--msp-border);
}

/* Auth card */
.msp-auth-card {
  background: white;
  border: 1px solid var(--msp-border);
  border-radius: var(--msp-radius-lg);
  padding: 36px 32px;
  box-shadow: var(--msp-shadow-lg);
  width: 100%; max-width: 440px;
}
.msp-auth-card > h3 {
  font-size: 22px; font-weight: 800; margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.msp-auth-card .btn-primary { width: 100%; padding: 12px 20px; font-size: 15px; }
.msp-auth-card .form-inline { display: flex; flex-direction: column; gap: 12px; }
.msp-auth-card .form-inline .form-group { margin: 0; }
.msp-hero-login-card {
  position: relative;
  z-index: 1;
  margin-left: auto;
  scroll-margin-top: 88px;
}

/* ══════════════════════════════════════════════════════════════
   SIGN-UP PAGE — SPLIT LAYOUT
   ══════════════════════════════════════════════════════════════ */

.msp-signup-split {
  display: flex;
  min-height: calc(100vh - 64px);
}

.msp-signup-left {
  flex: 1;
  background: var(--msp-grad-primary);
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 56px;
  position: relative; overflow: hidden;
  color: white;
}
.msp-signup-left::before {
  content: '';
  position: absolute; top: -40%; right: -15%;
  width: 70%; height: 150%;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}
.msp-signup-left::after {
  content: '';
  position: absolute; bottom: -30%; left: -10%;
  width: 50%; height: 80%;
  background: rgba(0,0,0,0.06);
  border-radius: 50%;
  pointer-events: none;
}

.msp-signup-left-inner { position: relative; z-index: 1; }

.msp-signup-left h2 {
  font-size: 34px; font-weight: 900;
  color: white; letter-spacing: -0.04em;
  margin-bottom: 14px; line-height: 1.1;
}
.msp-signup-left > .msp-signup-left-inner > p {
  font-size: 16px; color: rgba(255,255,255,0.82);
  line-height: 1.7; margin-bottom: 28px;
}
.msp-signup-left-img {
  border-radius: var(--msp-radius-lg);
  max-height: 280px;
  width: 100%; object-fit: cover;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
  margin-top: 24px; margin-bottom: 28px;
  display: block;
}
.msp-signup-perks { list-style: none; padding: 0; margin: 0; }
.msp-signup-perks li {
  color: rgba(255,255,255,0.9); font-size: 14px; font-weight: 500;
  padding: 7px 0;
  display: flex; align-items: center; gap: 10px;
}
.msp-signup-perks li::before {
  content: '✓';
  width: 20px; height: 20px;
  background: rgba(255,255,255,0.22);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}

.msp-signup-right {
  width: 480px; flex-shrink: 0;
  background: white;
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 48px;
  overflow-y: auto;
}
.msp-signup-right-header { margin-bottom: 28px; }
.msp-signup-right-header h2 {
  font-size: 26px; font-weight: 900;
  letter-spacing: -0.035em; margin-bottom: 6px;
}
.msp-signup-right-header p {
  font-size: 14px; color: var(--msp-text-muted); margin: 0;
}
.msp-signup-right .btn-primary {
  width: 100%; padding: 12px; font-size: 15px; margin-top: 4px;
}
.msp-signup-right .pull-right-middle { margin-top: 14px; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */

.msp-footer {
  background: var(--msp-grad-dark);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 28px;
}
.msp-footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.msp-footer-brand h3 {
  color: white; font-size: 20px; font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 10px;
}
.msp-footer-brand p {
  font-size: 13px; line-height: 1.7;
  color: rgba(255,255,255,0.5); margin: 0;
}
.msp-footer-brand img { max-height: 28px; filter: brightness(0) invert(1); }

.msp-footer-col h4 {
  color: rgba(255,255,255,0.88); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
.msp-footer-col ul { list-style: none; padding: 0; margin: 0; }
.msp-footer-col ul li { margin-bottom: 8px; }
.msp-footer-col ul li a {
  color: rgba(255,255,255,0.5); font-size: 13px;
  transition: color var(--msp-t) var(--msp-ease); text-decoration: none;
}
.msp-footer-col ul li a:hover { color: var(--msp-green-mid); text-decoration: none; }

.msp-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.09);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.msp-footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); margin: 0; }

.msp-footer--minimal { padding: 20px 0; }
.msp-footer--minimal .msp-footer-bottom {
  border-top: none; padding-top: 0; justify-content: center;
}

/* ── WhatsApp bubble ──────────────────────────────────────── */
.msp-wa-bubble {
  position: fixed; bottom: 24px; right: 24px;
  width: 54px; height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.42);
  z-index: 1000;
  transition: all var(--msp-t) var(--msp-ease);
  text-decoration: none;
  font-size: 26px;
  line-height: 1;
}
.msp-wa-bubble:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37,211,102,0.52);
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════════ */

@keyframes mspFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.msp-fade-up           { opacity: 0; animation: mspFadeUp 0.65s var(--msp-ease) forwards; }
.msp-fade-up.d1        { animation-delay: 0.10s; }
.msp-fade-up.d2        { animation-delay: 0.20s; }
.msp-fade-up.d3        { animation-delay: 0.30s; }
.msp-fade-up.d4        { animation-delay: 0.40s; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1199px) {
  .msp-hero h1 { font-size: 44px; }
  .msp-signup-left { padding: 48px 40px; }
  .msp-signup-right { padding: 48px 36px; }
}

@media (max-width: 991px) {
  .msp-hero { padding: 52px 0 44px; }
  .msp-hero h1 { font-size: 36px; }
  .msp-hero-lead { font-size: 16px; margin-bottom: 28px; }
  .msp-hero-img-wrap { margin-top: 40px; }
  .msp-hero-login-card { margin: 40px auto 0; }
  .msp-float-card--1 { left: 0; }
  .msp-float-card--2 { right: 0; }
  .msp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .msp-stat-number { font-size: 26px; }
  .msp-section { padding: 60px 0; }
  .msp-section-header { margin-bottom: 40px; }
  .msp-section-header h2 { font-size: 30px; }
  .msp-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .msp-signup-left { display: none; }
  .msp-signup-right { width: 100%; min-height: calc(100vh - 64px); padding: 48px 32px; }
  .msp-vcentered { flex-direction: column; }
  .msp-vcentered > [class*="col-"] { float: none; width: 100%; }
  .msp-img-accent { display: none; }
  .msp-img-main { width: 100%; }
  .msp-signin-copy { margin-bottom: 36px; }
  .msp-signin-section { padding: 60px 0; }
}

@media (max-width: 767px) {
  .msp-hero h1 { font-size: 30px; }
  .msp-hero-lead { font-size: 15px; }
  .msp-hero-badge { font-size: 11px; }
  .msp-hero-cta { flex-direction: column; }
  .msp-hero-cta .msp-btn-primary,
  .msp-hero-cta .msp-btn-ghost { justify-content: center; }
  .msp-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .msp-stat-number { font-size: 22px; }
  .msp-section { padding: 44px 0; }
  .msp-section-header h2 { font-size: 24px; }
  .msp-step-card { margin-bottom: 18px; }
  .msp-service-card { margin-bottom: 20px; }
  .msp-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .msp-trust-badges { gap: 12px; }
  .msp-float-card { display: none; }
  body.msp-theme .navbar-nav > li > a { padding: 10px 15px; }
  body.msp-theme .well { padding: 20px; }
  .msp-signup-right { padding: 36px 20px; }
  .msp-faq-item { padding: 18px 0; }
  .msp-signin-copy h2 { font-size: 28px; }
  .msp-auth-card { padding: 24px 20px; }
  .msp-footer { padding: 40px 0 20px; }
}

/* ══════════════════════════════════════════════════════════════
   INTERNAL PAGE COMPONENTS
   ══════════════════════════════════════════════════════════════ */

/* ── Page header ──────────────────────────────────────────── */
.msp-page-header {
  background: white;
  border-bottom: 1px solid var(--msp-border);
  padding: 20px 0 0;
  margin-bottom: 24px;
}
body.msp-theme.msp-auth .msp-page-header {
  background: linear-gradient(135deg, #ffffff 0%, #f5fff9 100%);
  border-bottom-color: #d7e7de;
  padding: 16px 0 0;
  box-shadow: 0 1px 0 rgba(15,23,42,0.03);
}
.msp-ph-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
}
body.msp-theme.msp-auth .msp-ph-inner {
  align-items: center;
  padding-bottom: 14px;
}
.msp-ph-left { display: flex; align-items: center; gap: 16px; }
.msp-ph-icon {
  font-size: 26px;
  width: 52px; height: 52px;
  background: var(--msp-green-pastel);
  border-radius: var(--msp-radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(34,197,94,0.18);
}
body.msp-theme.msp-auth .msp-ph-icon {
  width: 40px; height: 40px;
  font-size: 18px;
  background: #dcfce7;
  color: var(--msp-green-dark);
  border-color: rgba(34,197,94,0.28);
  border-radius: var(--msp-radius-sm);
}
.msp-ph-title {
  font-size: 20px; font-weight: 800;
  letter-spacing: -0.03em; margin: 0 0 3px;
  color: var(--msp-text);
}
body.msp-theme.msp-auth .msp-ph-title {
  font-size: 21px;
  letter-spacing: 0;
  color: #102033;
}
.msp-ph-sub {
  font-size: 13px; color: var(--msp-text-muted);
  margin: 0; font-weight: 400;
}
body.msp-theme.msp-auth .msp-ph-sub {
  font-size: 14px;
  color: #475569;
  font-weight: 500;
}
.msp-ph-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Tab underline strip in page header */
.msp-ph-tabs {
  display: flex; gap: 0;
  margin-top: 4px;
}
.msp-ph-tabs a {
  font-size: 13px; font-weight: 600;
  color: var(--msp-text-muted);
  padding: 10px 16px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: all var(--msp-t) var(--msp-ease);
}
.msp-ph-tabs a:hover { color: var(--msp-green); text-decoration: none; }
.msp-ph-tabs a.active {
  color: var(--msp-green);
  border-bottom-color: var(--msp-green);
}
body.msp-theme.msp-auth .msp-ph-tabs a {
  font-size: 14px;
  color: #475569;
}

body.msp-theme.msp-auth .well {
  border-color: #cbd5e1;
  box-shadow: 0 10px 32px rgba(15,23,42,0.06);
}
body.msp-theme.msp-auth .control-label {
  font-size: 14px;
  color: #26364a;
}
body.msp-theme.msp-auth .form-control {
  font-size: 15px;
  color: #102033;
  border-width: 1.8px;
  border-color: #bac8d6;
  min-height: 44px;
}
body.msp-theme.msp-auth .form-control:hover {
  border-color: #7dd3a5;
}
body.msp-theme.msp-auth .form-control:focus {
  border-color: var(--msp-green);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.16);
}
body.msp-theme.msp-auth .help-block,
body.msp-theme.msp-auth small.text-muted,
body.msp-theme.msp-auth .text-muted {
  color: #475569 !important;
  font-size: 13px;
}
body.msp-theme.msp-auth .table > thead > tr > th {
  background: #eafbf2;
  color: #26364a;
  font-size: 13px;
}
body.msp-theme.msp-auth .table > tbody > tr > td {
  color: #26364a;
  font-size: 15px;
}
body.msp-theme.msp-auth .nav-pills > li > a {
  font-size: 14px;
  color: #475569 !important;
}
body.msp-theme.msp-auth .msp-card-label {
  color: #334155;
  font-size: 13px;
}

body.msp-theme.msp-auth .input-group-btn:last-child .btn {
  border-color: #bac8d6 !important;
}

body.msp-theme.msp-auth .well-float {
  width: 100%;
  overflow: visible;
}
body.msp-theme.msp-auth .msp-responsive-table,
body.msp-theme.msp-auth .well-float > .table,
body.msp-theme.msp-auth .well-float table {
  min-width: 0;
  width: 100%;
  margin-bottom: 0;
}
body.msp-theme.msp-auth #service-table {
  min-width: 0;
}
body.msp-theme.msp-auth .msp-orders-table {
  min-width: 0;
}

.msp-table-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}
.msp-table-toolbar form {
  width: min(100%, 360px);
}
.msp-table-toolbar .input-group {
  width: 100%;
}
.msp-history-nav {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 6px;
  overflow: visible;
  padding: 4px 0 10px !important;
  margin: 14px 0 18px !important;
  white-space: nowrap;
}
.msp-history-nav > li {
  float: none !important;
  display: inline-flex !important;
  flex: 0 0 auto;
}
.msp-table-pagination {
  width: 100%;
  justify-content: center;
  margin: 18px 0 0 !important;
  clear: both;
}
body.msp-theme.msp-auth .pagination {
  width: 100%;
  justify-content: center;
  clear: both;
}

@media (max-width: 991px) {
  body.msp-theme.msp-auth .well-float {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  body.msp-theme.msp-auth .msp-responsive-table,
  body.msp-theme.msp-auth .msp-responsive-table thead,
  body.msp-theme.msp-auth .msp-responsive-table tbody,
  body.msp-theme.msp-auth .msp-responsive-table tr,
  body.msp-theme.msp-auth .msp-responsive-table td {
    display: block;
    width: 100%;
  }

  body.msp-theme.msp-auth .msp-responsive-table thead {
    display: none;
  }

  body.msp-theme.msp-auth .msp-responsive-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  body.msp-theme.msp-auth .msp-responsive-table tbody > tr {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: var(--msp-radius);
    box-shadow: 0 8px 24px rgba(15,23,42,0.06);
    overflow: hidden;
  }

  body.msp-theme.msp-auth .msp-responsive-table tbody > tr:hover > td {
    background: transparent;
  }

  body.msp-theme.msp-auth .msp-responsive-table tbody > tr > td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    min-height: 44px;
    padding: 11px 14px;
    border-bottom: 1px solid #e2e8f0;
    text-align: right;
    word-break: break-word;
  }

  body.msp-theme.msp-auth .msp-responsive-table tbody > tr > td:last-child {
    border-bottom: 0;
  }

  body.msp-theme.msp-auth .msp-responsive-table tbody > tr > td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    max-width: 42%;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.5;
    text-align: left;
    text-transform: uppercase;
  }

  body.msp-theme.msp-auth .msp-responsive-table tbody > tr > td[colspan] {
    display: block;
    background: #eafbf2;
    color: var(--msp-green-dark);
    font-weight: 800;
    text-align: left;
  }

  body.msp-theme.msp-auth .msp-responsive-table tbody > tr > td[colspan]::before {
    display: none;
  }

  body.msp-theme.msp-auth .msp-responsive-table .width-40,
  body.msp-theme.msp-auth .msp-responsive-table .width-service-name {
    max-width: none;
    min-width: 0;
  }

  body.msp-theme.msp-auth .msp-responsive-table .order-actions {
    justify-content: flex-end;
  }

  .msp-table-toolbar {
    justify-content: stretch;
  }

  .msp-table-toolbar form {
    width: 100%;
  }

  .msp-history-nav {
    justify-content: flex-start;
    white-space: normal;
  }

  .msp-table-pagination {
    justify-content: flex-start;
    margin-top: 14px !important;
  }
  body.msp-theme.msp-auth .pagination {
    justify-content: flex-start;
  }
}

@media (max-width: 540px) {
  body.msp-theme.msp-auth .msp-responsive-table tbody > tr > td {
    display: block;
    text-align: left;
  }

  body.msp-theme.msp-auth .msp-responsive-table tbody > tr > td::before {
    display: block;
    max-width: none;
    margin-bottom: 4px;
  }

  body.msp-theme.msp-auth .msp-responsive-table .order-actions {
    justify-content: flex-start;
  }
}

/* ── Well card section labels ─────────────────────────────── */
.msp-card-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--msp-text-muted);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 7px;
}
.msp-card-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--msp-border-light);
}

/* ── Help text ────────────────────────────────────────────── */
body.msp-theme .help-block {
  font-size: 12px; color: var(--msp-text-muted);
  margin-top: 5px; display: block;
}
body.msp-theme small.text-muted,
body.msp-theme .text-muted { color: var(--msp-text-muted) !important; font-size: 12px; }

/* ── Block buttons ────────────────────────────────────────── */
body.msp-theme .btn-block { width: 100%; display: block; }
body.msp-theme .btn-link {
  background: none; border: none; box-shadow: none;
  color: var(--msp-green-dark); font-weight: 600;
  text-decoration: underline; padding: 10px 0;
}
body.msp-theme .btn-link:hover { color: var(--msp-green); }

/* ── h5 in wells ──────────────────────────────────────────── */
body.msp-theme .well h5 {
  font-size: 14px; font-weight: 700;
  color: var(--msp-text); margin-bottom: 6px;
}

/* ── Pre / code blocks ────────────────────────────────────── */
body.msp-theme pre {
  background: #0f172a;
  color: #e2e8f0;
  border: none;
  border-radius: var(--msp-radius);
  padding: 20px 22px;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  box-shadow: var(--msp-shadow);
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
}

/* ── API page specifics ───────────────────────────────────── */
.msp-api-info-table td:first-child {
  font-weight: 600; color: var(--msp-text-2);
  white-space: nowrap; width: 160px;
  background: var(--msp-green-pale);
}
body.msp-theme .table-bordered { border: 1px solid var(--msp-border); }
body.msp-theme .table-bordered > thead > tr > th,
body.msp-theme .table-bordered > tbody > tr > td {
  border: 1px solid var(--msp-border);
}
body.msp-theme .m-t-md { margin-top: 20px; }
body.msp-theme .m-b-md { margin-bottom: 12px; }
body.msp-theme .m-t { margin-top: 16px; }
body.msp-theme h4 strong { font-weight: 700; font-size: 15px; }

/* ── Ticket chat bubbles ──────────────────────────────────── */
.ticket-message-block { margin-bottom: 16px; }

.ticket-message-right .ticket-message {
  background: var(--msp-green-pastel);
  border: 1px solid rgba(34,197,94,0.18);
  color: var(--msp-text-2);
  border-radius: 16px 4px 16px 16px;
  padding: 14px 18px;
  font-size: 14px; line-height: 1.65;
}
.ticket-message-left .ticket-message {
  background: white;
  border: 1px solid var(--msp-border);
  color: var(--msp-text-2);
  border-radius: 4px 16px 16px 16px;
  padding: 14px 18px;
  font-size: 14px; line-height: 1.65;
}
.ticket-message-block .info {
  font-size: 12px; color: var(--msp-text-muted);
  padding: 6px 2px 0;
}
.ticket-message-block .info strong { font-weight: 600; color: var(--msp-text-2); }
.titcket-title {
  font-size: 17px; font-weight: 700;
  color: var(--msp-text); margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--msp-border);
}
.panel-border-top { border-top: 1px solid var(--msp-border); padding-top: 20px; margin-top: 8px; }

/* ── Stat cards (affiliates, addfunds) ────────────────────── */
.msp-stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.msp-stat-card {
  background: var(--msp-surface);
  border: 1px solid var(--msp-border);
  border-radius: var(--msp-radius);
  padding: 18px 16px;
  text-align: center;
}
.msp-stat-card-value {
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--msp-text); line-height: 1;
  margin-bottom: 4px;
}
.msp-stat-card-value--green {
  background: var(--msp-grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.msp-stat-card-label {
  font-size: 11px; font-weight: 600;
  color: var(--msp-text-muted); text-transform: uppercase; letter-spacing: 0.06em;
}

/* Referral link box */
.msp-referral-box {
  background: var(--msp-green-pale);
  border: 1.5px dashed var(--msp-green-mid);
  border-radius: var(--msp-radius);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.msp-referral-box span {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 13px; color: var(--msp-green-dark);
  font-weight: 500; word-break: break-all; flex: 1;
}

/* ── Auth-page centered wrapper ───────────────────────────── */
.msp-auth-wrap,
.msp-auth-page {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
  background: var(--msp-grad-bg);
}
.msp-auth-page-card {
  width: 100%; max-width: 420px;
  background: white;
  border: 1px solid var(--msp-border);
  border-radius: var(--msp-radius-lg);
  box-shadow: var(--msp-shadow-lg);
  padding: 40px 36px;
}
.msp-auth-page-card > h3 {
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 6px;
}
.msp-auth-page-card > p {
  font-size: 14px; color: var(--msp-text-muted);
  margin-bottom: 24px;
}
.msp-auth-page-card .btn-primary {
  width: 100%; padding: 12px; font-size: 15px; margin-top: 4px;
}

/* Auth logo/heading block inside msp-auth-card */
.msp-auth-logo {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--msp-border);
}

/* Confirm email page */
.confirm-email { text-align: center; }
.confirm-email__description {
  font-size: 15px; color: var(--msp-text-muted);
  line-height: 1.7; margin-bottom: 24px;
}
.confirm-email__action { margin-top: 16px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── Notifications table ──────────────────────────────────── */
body.msp-theme .table input[type="checkbox"] {
  accent-color: var(--msp-green);
  width: 16px; height: 16px;
  cursor: pointer;
}

/* ── Guide video (from MEDIA_SLOTS) ──────────────────────── */
.msp-guide-video-wrap {
  background: #0f172a;
  border-radius: var(--msp-radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
video.msp-guide-video { width: 100%; display: block; max-height: 340px; }

/* ── Guide tip box (neworder, api) ────────────────────────── */
.msp-tip-box {
  background: var(--msp-cyan-pale);
  border: 1px solid rgba(6,182,212,0.25);
  border-left: 4px solid var(--msp-cyan);
  border-radius: var(--msp-radius-sm);
  padding: 14px 16px;
  font-size: 13px; color: var(--msp-cyan-dark);
  margin-bottom: 20px;
  line-height: 1.65;
}
.msp-tip-box strong { font-weight: 700; }

/* ── Order status text styling ────────────────────────────── */
body.msp-theme .table td.nowrap {
  font-size: 13px;
}

/* ── Internal page container spacing ──────────────────────── */
body.msp-theme.msp-auth .container-fluid { padding-top: 0; }
body.msp-theme.msp-auth .container { padding-top: 0; }

/* ── Responsive for internal headers ──────────────────────── */
@media (max-width: 767px) {
  .msp-ph-inner { flex-direction: column; gap: 12px; }
  .msp-ph-actions { width: 100%; }
  .msp-ph-actions .msp-btn-primary,
  .msp-ph-actions .btn { width: 100%; text-align: center; justify-content: center; }
  .msp-stat-cards { grid-template-columns: repeat(2, 1fr); }
  .msp-auth-page-card { padding: 28px 20px; }
  .msp-referral-box { flex-direction: column; }
}