.homepage-builder .fi-fo-builder-item-header h4 {
  font-size: 0.8125rem;
  line-height: 1.2;
}

.settings-tabs.fi-sc-tabs {
  align-items: flex-start;
  width: 100%;
}

.settings-tabs .fi-tabs-item {
  margin-top: 0 !important;
  transition: all 0.2s ease;
}

.settings-tabs .fi-tabs-item:hover {
  background-color: rgba(var(--gray-100), 0.5);
}

.settings-tabs .fi-tabs-item.fi-active {
  background-color: rgba(var(--primary-500), 0.05);
  font-weight: 600;
}

@media (min-width: 1024px) {
  .settings-tabs.fi-sc-tabs {
    flex-direction: row;
    gap: 3rem;
  }

  .settings-tabs > .fi-tabs {
    flex: 0 0 300px;
    flex-direction: column;
    align-self: flex-start;
    width: 300px;
    max-width: 300px;
    position: sticky;
    top: 2rem;
    gap: 0.5rem;
    padding: 1.25rem;
    border: 1px solid rgba(var(--gray-200), 1);
    border-radius: 1.25rem;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  }

  .settings-tabs > .fi-tabs .fi-tabs-item {
    justify-content: flex-start;
    width: 100%;
    min-height: 52px;
    padding: 0.8rem 1.25rem;
    border-radius: 0.85rem;
    border: none !important;
  }

  .settings-tabs > .fi-tabs .fi-tabs-item-label {
    text-align: left;
    width: 100%;
    font-size: 1rem;
  }

  .settings-tabs > .fi-sc-tabs-tab,
  .settings-tabs > div[x-show] {
    flex: 1 1 auto;
    min-width: 0;
  }

  .settings-footer-actions {
    margin-left: calc(300px + 3rem);
    border-top: 1px solid rgba(var(--gray-200), 1);
    padding-top: 2.5rem;
  }
}

@media (max-width: 1023px) {
  .settings-tabs.fi-sc-tabs {
    flex-direction: column;
    gap: 1.5rem;
  }

  .settings-tabs > .fi-tabs {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid rgba(var(--gray-200), 1);
    border-radius: 1.25rem;
    background-color: white;
  }

  .settings-tabs > .fi-tabs .fi-tabs-item {
    justify-content: flex-start;
    width: 100%;
    min-height: 48px;
    padding: 0.8rem 1.2rem;
    border-radius: 0.85rem;
  }

  .settings-footer-actions {
    width: 100%;
    border-top: 1px solid rgba(var(--gray-200), 1);
    padding-top: 2rem;
  }
}

.developer-profile-card {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(229, 231, 235, 1);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.dark .developer-profile-card {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-color: rgba(55, 65, 81, 1);
}

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

[x-cloak] { display: none !important; }

.fi-simple-layout {
  min-height: 100vh;
}

.fi-simple-main-ctn {
  min-height: 100vh;
  align-items: center;
  padding: 0;
}

.fi-simple-main {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

.fi-simple-page,
.fi-simple-page-content {
  width: 100%;
  padding: 0;
}

.fi-simple-page-content > .fi-header,
.fi-simple-page > .fi-header {
  display: none !important;
}

.sn-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  background: #f7f7f8;
  font-family: "Hind Siliguri", system-ui, sans-serif;
}

.sn-login-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 1);
  border-radius: 1.25rem;
  padding: 2.2rem;
  box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.25);
}

.sn-login-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.sn-login-logo {
  max-height: 2.5rem;
  object-fit: contain;
}

.sn-login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.sn-login-tab {
  border: 1px solid transparent;
  background: transparent;
  padding: 0.5rem 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 150ms ease;
}

.sn-login-tab--active {
  color: #0f172a;
  border-color: #e2e8f0;
  background: #f8fafc;
}

.sn-login-panel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.sn-login-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  text-align: center;
  margin-bottom: 0.2rem;
}

.sn-login-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
  margin-top: 0.4rem;
}

.sn-login-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  background: #ffffff;
}

.sn-login-input:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

.sn-login-form .fi-btn {
  width: 100%;
  border-radius: 0.75rem;
  font-weight: 600;
}

.sn-login-form .fi-btn-primary {
  background: #ef4444;
  border: none;
}

.sn-login-button {
  width: 100%;
  margin-top: 0.6rem;
  border: none;
  border-radius: 0.75rem;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: #0f172a;
  color: #ffffff;
  cursor: pointer;
}

.sn-login-error {
  color: #dc2626;
  font-size: 0.85rem;
}

.sn-login-success {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
}

.sn-turnstile {
  margin: 0.6rem 0 0.4rem;
}

.sn-login-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.sn-login-footer span {
  color: #0f172a;
  font-weight: 600;
}

.dark .sn-login {
  background: #0f172a;
}

.dark .sn-login-card {
  background: #111827;
  border-color: #1f2937;
}

.dark .sn-login-tab--active {
  background: #0f172a;
  border-color: #1f2937;
  color: #f8fafc;
}

.dark .sn-login-label {
  color: #e2e8f0;
}

.dark .sn-login-input {
  background: #0f172a;
  border-color: #1f2937;
  color: #e2e8f0;
}

.dark .sn-login-footer span {
  color: #f8fafc;
}

.profile-header {
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .profile-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.logo-container {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 1rem;
  padding: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ecare-logo {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.header-text h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  margin: 0;
  background: linear-gradient(to right, #ff4b2b, #ff416c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark .header-text h2 {
  color: #f3f4f6;
}

.header-text p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0.25rem 0 0 0;
}

.profile-body {
  padding: 2rem;
}

.service-terms {
  padding: 1.5rem 2rem;
  background: rgba(var(--primary-500), 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .service-terms {
  background: rgba(255, 255, 255, 0.02);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.term-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.term-icon {
  width: 20px;
  height: 20px;
  color: #ff416c;
  flex-shrink: 0;
  margin-top: 2px;
}

.term-box h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0;
  color: #111827;
}

.dark .term-box h4 {
  color: #f3f4f6;
}

.term-box p {
  font-size: 0.75rem;
  margin: 2px 0 0 0;
  color: #6b7280;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  text-decoration: none;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
  gap: 0.5rem;
}

.dark .contact-item {
  background: #374151;
  border-color: #4b5563;
  color: #d1d5db;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: #ff4b2b;
  color: #ff4b2b;
}

.contact-item .icon {
  width: 24px;
  height: 24px;
}

.contact-item span {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sn-insights-widget {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sn-insights-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sn-insights-copy {
  min-width: 0;
}

.sn-insights-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
  color: #111827;
}

.dark .sn-insights-title {
  color: #f9fafb;
}

.sn-insights-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #6b7280;
}

.dark .sn-insights-subtitle {
  color: #9ca3af;
}

.sn-insights-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.8rem;
  background: #f8fafc;
}

.dark .sn-insights-tabs {
  border-color: #374151;
  background: rgba(255, 255, 255, 0.04);
}

.sn-insights-tab {
  appearance: none;
  border: none;
  background: transparent;
  border-radius: 0.65rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.775rem;
  line-height: 1;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sn-insights-tab:hover {
  color: #111827;
}

.dark .sn-insights-tab {
  color: #9ca3af;
}

.dark .sn-insights-tab:hover {
  color: #f3f4f6;
}

.sn-insights-tab.is-active {
  background: #ffffff;
  color: #dc2626;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.dark .sn-insights-tab.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fca5a5;
}

.sn-insights-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sn-insights-item {
  background: transparent;
  transition: none;
}

.dark .sn-insights-item {
  background: transparent;
}

.sn-insights-item-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.sn-insights-rank {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 0.8rem;
  font-weight: 700;
}

.dark .sn-insights-rank {
  background: rgba(220, 38, 38, 0.14);
  color: #fca5a5;
}

.sn-insights-body {
  min-width: 0;
  flex: 1;
}

.sn-insights-main {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.sn-insights-item-title {
  display: block;
  overflow: hidden;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.sn-insights-item-title:hover {
  color: #dc2626;
}

.dark .sn-insights-item-title {
  color: #f9fafb;
}

.dark .sn-insights-item-title:hover {
  color: #fca5a5;
}

.sn-insights-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  line-height: 1.3;
  color: #6b7280;
  white-space: nowrap;
  flex-shrink: 0;
}

.dark .sn-insights-meta {
  color: #9ca3af;
}

.sn-insights-meta-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.18rem 0.45rem;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  background: #ffffff;
}

.sn-insights-meta > span + span::before {
  content: "\2022";
  margin-right: 0.35rem;
  color: #d1d5db;
}

.dark .sn-insights-meta-tag {
  border-color: #4b5563;
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.04);
}

.sn-insights-empty {
  border: 1px dashed #d1d5db;
  border-radius: 1rem;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
}

.dark .sn-insights-empty {
  border-color: #4b5563;
  color: #9ca3af;
}

@media (max-width: 767px) {
  .sn-insights-item-inner {
    padding: 0.45rem 0;
  }

  .sn-insights-main {
    gap: 0.5rem;
  }
}
