/*
* ecard-theme.css
* Kadi Yangu visual identity layered over Sneat core: palette, type, surfaces,
* sidebar, navbar, cards, buttons, forms, tables and the auth screens.
* Loaded last so its tokens win over core.css and theme-dark.css.
******************************************************************************/

:root,
[data-bs-theme='light'] {
  --ec-ink: #0f1226;
  --ec-ink-2: #1b1f3d;
  --ec-violet: #7c3aed;
  --ec-indigo: #4f46e5;
  --ec-cyan: #06b6d4;
  --ec-pink: #ec4899;
  --ec-grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
  --ec-grad-vivid: linear-gradient(120deg, #4f46e5 0%, #7c3aed 40%, #db2777 100%);
  --ec-grad-soft: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.06));
  --ec-surface-border: rgba(15, 18, 38, 0.06);
  --ec-glow: 0 10px 30px -10px rgba(91, 76, 240, 0.55);
  --ec-radius: 1rem;

  --bs-primary: #5b4cf0;
  --bs-primary-rgb: 91, 76, 240;
  --bs-primary-text-emphasis: #2c2479;
  --bs-primary-bg-subtle: #ecebfe;
  --bs-primary-border-subtle: #cfcafc;
  --bs-success: #10b981;
  --bs-success-rgb: 16, 185, 129;
  --bs-info: #0ea5e9;
  --bs-info-rgb: 14, 165, 233;
  --bs-warning: #f59e0b;
  --bs-warning-rgb: 245, 158, 11;
  --bs-danger: #ef4444;
  --bs-danger-rgb: 239, 68, 68;
  --bs-secondary: #737b98;
  --bs-secondary-rgb: 115, 123, 152;

  --bs-font-sans-serif: 'Plus Jakarta Sans', 'Public Sans', -apple-system, blinkmacsystemfont, 'Segoe UI', roboto, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-color: #5b6280;
  --bs-body-color-rgb: 91, 98, 128;
  --bs-body-bg: #f4f5fb;
  --bs-body-bg-rgb: 244, 245, 251;
  --bs-heading-color: #161a33;
  --bs-emphasis-color: #0f1226;
  --bs-secondary-color: #8b91ab;
  --bs-border-color: #e6e8f2;
  --bs-link-color: #5b4cf0;
  --bs-link-color-rgb: 91, 76, 240;
  --bs-link-hover-color: #4636d9;
  --bs-link-hover-color-rgb: 70, 54, 217;

  --bs-border-radius: 0.625rem;
  --bs-border-radius-sm: 0.5rem;
  --bs-border-radius-lg: 0.875rem;
  --bs-border-radius-xl: 1rem;

  --bs-box-shadow: 0 1px 2px rgba(15, 18, 38, 0.04), 0 8px 24px -12px rgba(15, 18, 38, 0.12);
  --bs-box-shadow-sm: 0 1px 2px rgba(15, 18, 38, 0.05), 0 4px 12px -6px rgba(15, 18, 38, 0.1);
  --bs-box-shadow-lg: 0 2px 4px rgba(15, 18, 38, 0.04), 0 20px 40px -16px rgba(15, 18, 38, 0.2);
  --bs-navbar-box-shadow: 0 1px 2px rgba(15, 18, 38, 0.04), 0 10px 30px -18px rgba(15, 18, 38, 0.25);
}

[data-bs-theme='dark'] {
  --ec-surface-border: rgba(255, 255, 255, 0.06);
  --ec-grad-soft: linear-gradient(135deg, rgba(124, 108, 255, 0.16), rgba(168, 85, 247, 0.08));

  --bs-primary: #7c6cff;
  --bs-primary-rgb: 124, 108, 255;
  --bs-primary-text-emphasis: #c4bcff;
  --bs-primary-bg-subtle: #25224d;
  --bs-primary-border-subtle: #3d3785;
  --bs-success: #34d399;
  --bs-success-rgb: 52, 211, 153;
  --bs-info: #38bdf8;
  --bs-info-rgb: 56, 189, 248;
  --bs-warning: #fbbf24;
  --bs-warning-rgb: 251, 191, 36;
  --bs-danger: #f87171;
  --bs-danger-rgb: 248, 113, 113;

  --bs-body-color: #a3a8c3;
  --bs-body-color-rgb: 163, 168, 195;
  --bs-body-bg: #0b0d1a;
  --bs-body-bg-rgb: 11, 13, 26;
  --bs-heading-color: #eef0fb;
  --bs-secondary-color: #767c9b;
  --bs-border-color: #232741;
  --bs-paper-bg: #141729;
  --bs-paper-bg-rgb: 20, 23, 41;
  --bs-link-color: #a59bff;
  --bs-link-color-rgb: 165, 155, 255;
  --bs-link-hover-color: #c1baff;
  --bs-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -14px rgba(0, 0, 0, 0.6);
  --bs-box-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --bs-box-shadow-lg: 0 20px 40px -16px rgba(0, 0, 0, 0.7);
  --bs-navbar-box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
}

/*
* Base
******************************************************************************/

body {
  font-family: var(--bs-font-sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(124, 58, 237, 0.07), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(6, 182, 212, 0.05), transparent 60%),
    var(--bs-body-bg);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  letter-spacing: -0.02em;
  font-weight: 700;
}
h5, .h5, h6, .h6 { font-weight: 650; }

::selection { background: rgba(var(--bs-primary-rgb), 0.2); }

.text-gradient {
  background: var(--ec-grad-vivid);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/*
* Sidebar
******************************************************************************/

.layout-menu.menu-vertical {
  --bs-menu-bg: var(--ec-ink);
  --bs-menu-color: #a9aed0;
  --bs-menu-hover-bg: rgba(255, 255, 255, 0.05);
  --bs-menu-hover-color: #fff;
  --bs-menu-active-toggle-bg: rgba(255, 255, 255, 0.06);
  --bs-menu-sub-active-bg: rgba(255, 255, 255, 0.07);
  --bs-menu-sub-active-color: #fff;
  --bs-menu-header-color: #5f6591;
  background:
    radial-gradient(400px 260px at 0% 0%, rgba(124, 58, 237, 0.28), transparent 70%),
    radial-gradient(300px 300px at 100% 100%, rgba(6, 182, 212, 0.12), transparent 70%),
    linear-gradient(180deg, var(--ec-ink) 0%, var(--ec-ink-2) 100%) !important;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.04);
}

.layout-menu .app-brand-text { color: #fff !important; }
.layout-menu .menu-header { margin-top: 1rem; }
.layout-menu .menu-header .menu-header-text {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.layout-menu .menu-header::before { display: none !important; }

.layout-menu .menu-inner > .menu-item > .menu-link {
  border-radius: 0.75rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.layout-menu .menu-inner > .menu-item > .menu-link:hover { transform: translateX(2px); }
.layout-menu .menu-icon { opacity: 0.85; }

.layout-menu.menu-vertical .menu-inner > .menu-item.active > .menu-link:not(.menu-toggle) {
  background: var(--ec-grad) !important;
  color: #fff !important;
  box-shadow: var(--ec-glow);
}
.layout-menu.menu-vertical .menu-inner > .menu-item.active > .menu-link .menu-icon { opacity: 1; }
/* Sneat draws a bar at the menu edge for the active item; the pill replaces it */
.layout-menu.menu-vertical .menu-inner > .menu-item.active::before { display: none !important; }

.layout-menu .menu-sub > .menu-item.active > .menu-link { color: #fff !important; font-weight: 600; }
.layout-menu .menu-sub > .menu-item.active > .menu-link:not(.menu-toggle)::before {
  background-color: #a78bfa !important;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25);
}

.layout-menu .menu-inner-shadow { background: linear-gradient(var(--ec-ink) 41%, rgba(15, 18, 38, 0.11) 95%, transparent) !important; }

/* Collapse chevron ring: match the page ground instead of Sneat's light grey */
.layout-menu .app-brand .layout-menu-toggle {
  background: var(--ec-grad) !important;
  border-color: #f4f5fb !important;
  box-shadow: var(--ec-glow);
}

/* Brand mark */
.app-brand-logo.ec-logo {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #120f24;
  box-shadow: 0 6px 16px -6px rgba(124, 58, 237, 0.55);
}
.app-brand-logo.ec-logo svg { width: 100%; height: 100%; }
/* Wordmark: "Kadi" in the heading ink, "Yangu" in the brand violet. */
.ec-yangu { color: #7c3aed; }
.ec-auth-art .ec-yangu { color: #f9a8d4; }
.layout-menu .ec-yangu { color: #f472b6; }
[data-bs-theme='dark'] .ec-yangu { color: #f472b6; }
.app-brand-text.demo { font-size: 1.5rem; letter-spacing: -0.03em; font-weight: 800; }

/*
* Navbar
******************************************************************************/

.layout-navbar.navbar-detached {
  border-radius: var(--ec-radius) !important;
  background-color: rgba(var(--bs-paper-bg-rgb), 0.72) !important;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--ec-surface-border);
}
.layout-navbar .nav-link i { transition: color 0.2s ease; }
.layout-navbar .nav-link:hover i { color: var(--bs-primary); }
.layout-navbar .avatar img, .layout-navbar .nav-link .ec-avatar { box-shadow: 0 0 0 2px var(--bs-paper-bg), 0 0 0 4px rgba(var(--bs-primary-rgb), 0.35); }
.layout-navbar input.form-control { background: transparent; }

.avatar-initial.ec-avatar { background: var(--ec-grad); color: #fff; font-weight: 700; }

/*
* Surfaces
******************************************************************************/

.card {
  --bs-card-border-radius: var(--ec-radius);
  --bs-card-inner-border-radius: calc(var(--ec-radius) - 1px);
  border: 1px solid var(--ec-surface-border);
  box-shadow: var(--bs-box-shadow);
}
.card-header { border-bottom-color: var(--ec-surface-border); }

.row > [class*='col'] > .card.h-100,
.ec-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.row > [class*='col'] > .card.h-100:hover,
.ec-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--bs-box-shadow-lg);
}

.dropdown-menu {
  border-radius: 0.875rem;
  border: 1px solid var(--ec-surface-border);
  box-shadow: var(--bs-box-shadow-lg);
  padding: 0.5rem;
}
.dropdown-item { border-radius: 0.5rem; }

.modal-content { border-radius: 1.25rem; border: 1px solid var(--ec-surface-border); }
.alert { border-radius: 0.875rem; border: 0; }

.content-footer .footer-container { color: var(--bs-secondary-color); font-size: 0.8125rem; }

/*
* Buttons
******************************************************************************/

.btn {
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background-image: var(--ec-grad);
  border-color: transparent;
  box-shadow: 0 6px 16px -8px rgba(var(--bs-primary-rgb), 0.8);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  border-color: transparent;
  box-shadow: 0 10px 22px -8px rgba(var(--bs-primary-rgb), 0.9);
  transform: translateY(-1px);
}

.btn-outline-secondary {
  --bs-btn-color: var(--bs-heading-color);
  --bs-btn-border-color: var(--bs-border-color);
  --bs-btn-hover-bg: var(--bs-primary-bg-subtle);
  --bs-btn-hover-color: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary-border-subtle);
  --bs-btn-active-bg: var(--bs-primary-bg-subtle);
  --bs-btn-active-color: var(--bs-primary);
  --bs-btn-active-border-color: var(--bs-primary-border-subtle);
  background-color: var(--bs-paper-bg);
}

.badge { font-weight: 600; letter-spacing: 0.01em; }
.badge.rounded-pill, .badge { border-radius: 50rem; }

/*
* Forms
******************************************************************************/

.form-control,
.form-select {
  border-radius: 0.625rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.14) !important;
}
.input-group:focus-within {
  box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.14);
  border-radius: 0.625rem;
}
.input-group:focus-within .form-control:focus { box-shadow: none !important; }
.form-label { font-weight: 600; color: var(--bs-heading-color); font-size: 0.8125rem; text-transform: none; letter-spacing: 0; }
.form-check-input:checked { background-color: var(--bs-primary); border-color: var(--bs-primary); }

/*
* Tables & pagination
******************************************************************************/

.table > thead th {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--bs-secondary-color) !important;
  background: rgba(var(--bs-primary-rgb), 0.03);
}
.table > tbody > tr { transition: background-color 0.15s ease; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: rgba(var(--bs-primary-rgb), 0.04); }

.page-item.active .page-link,
.pagination .page-item.active .page-link {
  background: var(--ec-grad) !important;
  border-color: transparent !important;
  box-shadow: var(--ec-glow);
}

.nav-pills .nav-link.active { background: var(--ec-grad); box-shadow: var(--ec-glow); }
.progress { border-radius: 50rem; }
.progress-bar { background-image: var(--ec-grad); }

/*
* Page header helper
******************************************************************************/

.ec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bs-primary);
}

/*
* Dashboard hero
******************************************************************************/

.ec-hero {
  position: relative;
  overflow: hidden;
  border: 0;
  color: #fff;
  background:
    radial-gradient(500px 300px at 90% 10%, rgba(236, 72, 153, 0.45), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(6, 182, 212, 0.35), transparent 60%),
    var(--ec-grad);
  box-shadow: 0 24px 48px -24px rgba(91, 76, 240, 0.7);
}
.ec-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, transparent 30%, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
  pointer-events: none;
}
.ec-hero > * { position: relative; z-index: 1; }
.ec-hero h3, .ec-hero h4 { color: #fff; }
.ec-hero p { color: rgba(255, 255, 255, 0.82); }
.ec-hero .btn-light { background: #fff; color: var(--ec-indigo); font-weight: 700; border: 0; box-shadow: 0 8px 20px -10px rgba(15, 18, 38, 0.6); }
.ec-hero .btn-light:hover { background: #fff; color: var(--ec-violet); transform: translateY(-1px); }
.ec-hero .btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
}
.ec-hero .btn-glass:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }

/* Floating mini business card used in the hero and on the auth screens */
.ec-mini-card {
  width: 280px;
  max-width: 100%;
  aspect-ratio: 1.6;
  border-radius: 1.125rem;
  padding: 1.125rem 1.25rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(160px 120px at 100% 0%, rgba(255, 255, 255, 0.35), transparent 70%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -20px rgba(15, 18, 38, 0.55);
  transform: rotate(-6deg);
  animation: ec-float 6s ease-in-out infinite;
}
.ec-mini-card .chip { width: 34px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #fde68a, #f59e0b); opacity: 0.9; }
.ec-mini-card .name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.ec-mini-card .role { font-size: 0.75rem; opacity: 0.8; }
.ec-mini-card .waves { font-size: 1.5rem; opacity: 0.9; }
.ec-mini-card.back {
  position: absolute;
  transform: rotate(8deg) translate(40px, 30px);
  animation-delay: -3s;
  opacity: 0.55;
}

@keyframes ec-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* Quick action tiles */
.ec-tile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  color: inherit;
  text-decoration: none;
}
.ec-tile:hover { color: inherit; }
.ec-tile-icon {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  color: var(--bs-primary);
  background: var(--ec-grad-soft);
  transition: transform 0.25s ease;
}
.card:hover .ec-tile-icon { transform: scale(1.08) rotate(-4deg); }
.ec-tile-icon.cyan { color: #0891b2; background: rgba(6, 182, 212, 0.12); }
.ec-tile-icon.pink { color: #db2777; background: rgba(236, 72, 153, 0.12); }
.ec-tile-icon.amber { color: #d97706; background: rgba(245, 158, 11, 0.14); }
.ec-tile-icon.green { color: #059669; background: rgba(16, 185, 129, 0.12); }
.ec-tile h6 { margin: 0; }
.ec-tile small { color: var(--bs-secondary-color); }
.ec-tile .bx-right-arrow-alt { margin-inline-start: auto; color: var(--bs-secondary-color); transition: transform 0.2s ease, color 0.2s ease; }
.card:hover .ec-tile .bx-right-arrow-alt { transform: translateX(3px); color: var(--bs-primary); }

/* Card list tiles on /cards */
.ec-card-tile { overflow: hidden; }
.ec-card-tile .ec-card-band {
  height: 72px;
  background:
    radial-gradient(200px 80px at 100% 0%, rgba(255, 255, 255, 0.35), transparent 70%),
    linear-gradient(135deg, var(--ec-accent, #5b4cf0), color-mix(in srgb, var(--ec-accent, #5b4cf0) 55%, #0f1226));
}
.ec-card-tile .ec-card-avatar {
  width: 64px;
  height: 64px;
  margin-top: -32px;
  border-radius: 1.125rem;
  border: 3px solid var(--bs-paper-bg);
  background: var(--ec-accent, #5b4cf0);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--bs-box-shadow-sm);
}
.ec-card-tile .ec-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.625rem;
  background: var(--bs-body-bg);
  font-size: 0.8125rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ec-icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.625rem;
}

/*
* Auth screens (split layout)
******************************************************************************/

.ec-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
.ec-auth-art {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(600px 400px at 85% 15%, rgba(236, 72, 153, 0.45), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, rgba(6, 182, 212, 0.4), transparent 60%),
    linear-gradient(140deg, #1e1b4b 0%, #4f46e5 50%, #7c3aed 100%);
}
.ec-auth-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.ec-auth-art > * { position: relative; }
.ec-auth-art .brand { display: flex; align-items: center; gap: 0.625rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.ec-auth-art .stage { display: flex; align-items: center; justify-content: center; position: relative; min-height: 280px; }
.ec-auth-art h2 { color: #fff; font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.15; margin-bottom: 0.75rem; }
.ec-auth-art p { color: rgba(255, 255, 255, 0.78); max-width: 30rem; margin: 0; }
.ec-auth-art .points { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.ec-auth-art .points span {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.375rem 0.75rem; border-radius: 50rem; font-size: 0.8125rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2);
}

.ec-auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: var(--bs-paper-bg);
}
.ec-auth-form .inner { width: 100%; max-width: 26rem; }
.ec-auth-form .inner.wide { max-width: 32rem; }
.ec-auth-form h3 { margin-bottom: 0.375rem; }
.ec-auth-form .lead-text { color: var(--bs-secondary-color); margin-bottom: 2rem; }
.ec-auth-form .form-control,
.ec-auth-form .form-select { padding-block: 0.6875rem; }
.ec-auth-form .btn-lg-ish { padding-block: 0.75rem; font-size: 0.9375rem; }
.ec-auth-form .mobile-brand { display: none; }

.ec-divider { display: flex; align-items: center; gap: 0.75rem; color: var(--bs-secondary-color); font-size: 0.8125rem; margin: 1.5rem 0; }
.ec-divider::before, .ec-divider::after { content: ''; flex: 1; height: 1px; background: var(--bs-border-color); }

@media (max-width: 991.98px) {
  .ec-auth { grid-template-columns: 1fr; }
  .ec-auth-art { display: none; }
  .ec-auth-form { background: transparent; padding-top: 2rem; }
  .ec-auth-form .inner {
    background: var(--bs-paper-bg);
    padding: 2rem 1.5rem;
    border-radius: 1.25rem;
    box-shadow: var(--bs-box-shadow-lg);
    border: 1px solid var(--ec-surface-border);
  }
  .ec-auth-form .mobile-brand { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; font-weight: 800; font-size: 1.375rem; color: var(--bs-heading-color); text-decoration: none; letter-spacing: -0.03em; }
}

@media (prefers-reduced-motion: reduce) {
  .ec-mini-card { animation: none; }
  .btn, .card, .ec-tile-icon, .layout-menu .menu-link { transition: none !important; }
}

/* Auth views keep their Sneat card markup; inside the split layout it goes flat */
.ec-auth-form .inner > .card { background: transparent; border: 0; box-shadow: none; padding: 0 !important; }
.ec-auth-form .inner > .card > .card-body { padding: 0; }
.ec-auth-form .inner > .card .app-brand { display: none !important; }
.ec-auth-form .inner > .card h4 { font-size: 1.75rem; margin-bottom: 0.5rem !important; }
.ec-auth-form .inner > .card h4 + p { color: var(--bs-secondary-color); margin-bottom: 2rem !important; }
.ec-auth-form .btn[type='submit'] { padding-block: 0.75rem; }

html[data-bs-theme='dark'] .layout-menu .app-brand .layout-menu-toggle { border-color: #0b0d1a !important; }

.ec-dot { display: inline-block; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: #6ee7b7; box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.3); }

/*
* Landing page
******************************************************************************/

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
.ec-landing { overflow-x: clip; }
.ec-l-nav {
  background: rgba(var(--bs-body-bg-rgb), 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--ec-surface-border);
}
.ec-l-links a { color: var(--bs-body-color); font-weight: 600; font-size: 0.9rem; }
.ec-l-links a:hover { color: var(--bs-primary); }

.ec-l-hero { padding: 5rem 0 6rem; position: relative; }
.ec-l-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(var(--bs-primary-rgb), 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 60% 70% at 70% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 40%, #000, transparent 75%);
  pointer-events: none;
}
.ec-l-hero > .container { position: relative; }
.ec-l-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.875rem; border-radius: 50rem; margin-bottom: 1.5rem;
  font-size: 0.8125rem; font-weight: 600; color: var(--bs-primary);
  background: var(--bs-paper-bg); border: 1px solid var(--bs-primary-border-subtle);
  box-shadow: var(--bs-box-shadow-sm);
}
.ec-l-title {
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.ec-l-lead { font-size: 1.125rem; line-height: 1.6; max-width: 34rem; margin-bottom: 2rem; }
.ec-l-trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.875rem; font-weight: 600; color: var(--bs-heading-color); }
.ec-l-trust i { color: var(--bs-success); margin-inline-end: 0.25rem; }
.ec-l-h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.035em; font-weight: 800; margin-bottom: 0.75rem; }

/* Phone mockup */
.ec-l-stage { position: relative; display: flex; justify-content: center; padding: 1rem 0; }
.ec-l-blob {
  position: absolute; width: 420px; height: 420px; max-width: 90vw; top: 50%; left: 50%; translate: -50% -50%;
  border-radius: 50%; filter: blur(60px); opacity: 0.55;
  background: conic-gradient(from 90deg, #4f46e5, #7c3aed, #db2777, #06b6d4, #4f46e5);
}
.ec-l-phone {
  position: relative; width: 290px; padding: 12px; border-radius: 46px;
  background: #0f1226; box-shadow: 0 50px 80px -30px rgba(15, 18, 38, 0.6), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  transform: rotate(3deg);
  animation: ec-float 7s ease-in-out infinite;
}
.ec-l-screen { border-radius: 36px; overflow: hidden; background: #fff; padding-bottom: 1rem; color: #121530; text-align: center; }
.ec-l-band { height: 110px; background: radial-gradient(160px 90px at 85% 0%, rgba(255,255,255,.35), transparent 70%), linear-gradient(135deg, #7c3aed, #3b2a8a); }
.ec-l-ava {
  width: 84px; height: 84px; margin: -44px auto 10px; border-radius: 26px; border: 4px solid #fff;
  background: linear-gradient(145deg, #a78bfa, #4c1d95); color: #fff; font-weight: 800; font-size: 34px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 24px -12px #4c1d95;
}
.ec-l-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.ec-l-role { color: #6b7190; font-size: 0.8rem; font-weight: 500; }
.ec-l-actions { display: flex; justify-content: center; gap: 0.625rem; margin: 1rem 0; }
.ec-l-actions span { width: 42px; height: 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(124, 58, 237, 0.1); color: #7c3aed; font-size: 1.125rem; }
.ec-l-save { margin: 0 1rem 0.75rem; padding: 0.7rem; border-radius: 14px; color: #fff; font-weight: 700; font-size: 0.85rem; background: linear-gradient(135deg, #7c3aed, #3b2a8a); box-shadow: 0 12px 20px -12px #4c1d95; }
.ec-l-row { display: flex; align-items: center; gap: 0.75rem; margin: 0 1rem; padding: 0.5rem 0.25rem; text-align: left; font-size: 0.8rem; }
.ec-l-row > span { width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgba(124, 58, 237, 0.1); color: #7c3aed; flex-shrink: 0; }
.ec-l-row small { display: block; color: #6b7190; font-size: 0.7rem; }
.ec-l-float {
  position: absolute; display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem 0.75rem 0.75rem;
  border-radius: 1rem; background: rgba(var(--bs-paper-bg-rgb), 0.85); border: 1px solid var(--ec-surface-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--bs-box-shadow-lg);
  font-size: 0.875rem; color: var(--bs-heading-color);
  animation: ec-float 6s ease-in-out infinite;
}
.ec-l-float small { display: block; color: var(--bs-secondary-color); font-size: 0.75rem; }
.ec-l-float .ec-tile-icon { width: 2.25rem; height: 2.25rem; font-size: 1.125rem; border-radius: 0.75rem; }
.ec-l-float.f1 { top: 18%; left: 0; animation-delay: -2s; }
.ec-l-float.f2 { bottom: 14%; right: 2%; animation-delay: -4s; }

.ec-l-section { padding: 5rem 0; }
.ec-l-feature .card-body { padding: 1.75rem; }
.ec-l-feature .ec-tile-icon { margin-bottom: 1.25rem; width: 3rem; height: 3rem; }
.ec-l-feature h5 { margin-bottom: 0.5rem; }
.ec-l-feature p { margin: 0; color: var(--bs-secondary-color); }

.ec-l-steps {
  position: relative; overflow: hidden; border-radius: 2rem; padding: 4rem 2.5rem; color: #fff;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(124, 58, 237, 0.55), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(6, 182, 212, 0.3), transparent 60%),
    #0f1226;
}
.ec-l-step { padding: 1.75rem; border-radius: 1.25rem; height: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.ec-l-step > span {
  display: inline-flex; width: 2.5rem; height: 2.5rem; border-radius: 0.875rem; align-items: center; justify-content: center;
  font-weight: 800; background: var(--ec-grad); box-shadow: var(--ec-glow); margin-bottom: 1rem;
}
.ec-l-step h5 { color: #fff; margin-bottom: 0.375rem; }
.ec-l-step p { color: rgba(255, 255, 255, 0.65); margin: 0; }

.ec-l-checks { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.75rem; }
.ec-l-checks li { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; color: var(--bs-heading-color); }
.ec-l-checks .ck { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bs-primary-bg-subtle); color: var(--bs-primary); flex-shrink: 0; }

.ec-l-team {
  position: relative; height: 340px; display: flex; align-items: center; justify-content: center;
  border-radius: 2rem;
  background:
    radial-gradient(400px 260px at 80% 20%, rgba(219, 39, 119, 0.4), transparent 65%),
    var(--ec-grad);
}
.ec-l-team .ec-mini-card { position: absolute; transform: rotate(var(--r)); }
.ec-l-team .ec-mini-card { left: 50%; top: 50%; margin: -87px 0 0 -140px; }
.ec-l-team .ec-mini-card:nth-child(1) { margin-left: -230px; margin-top: -137px; animation-delay: -1s; }
.ec-l-team .ec-mini-card:nth-child(2) { animation-delay: -3s; }
.ec-l-team .ec-mini-card:nth-child(3) { margin-left: -50px; margin-top: -37px; animation-delay: -5s; }

.ec-l-footer { padding: 2rem 0 2.5rem; border-top: 1px solid var(--ec-surface-border); }
.ec-l-footer .app-brand-logo.ec-logo { width: 28px; height: 28px; border-radius: 8px; }

@media (max-width: 991.98px) {
  .ec-l-hero { padding: 3rem 0 4rem; }
  .ec-l-float.f1 { left: 2%; }
  .ec-l-steps { padding: 3rem 1.5rem; }
}
@media (max-width: 575.98px) {
  .ec-l-team .ec-mini-card { width: 220px; margin: -69px 0 0 -110px; }
  .ec-l-team .ec-mini-card:nth-child(1) { margin-left: -150px; margin-top: -119px; }
  .ec-l-team .ec-mini-card:nth-child(3) { margin-left: -70px; margin-top: -19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ec-l-phone, .ec-l-float { animation: none; }
}

.content-footer.bg-footer-theme { background: transparent !important; }
