:root {
  --primary-color: #6366f1;
  --primary-hover: #5b21b6;
  --sidebar-width: 320px;
  --header-height: 50px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f8f9fa;
  overflow-x: hidden;
}

/* Header Styles */
.top-header {
  background: #f5f9fd;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 0px 15px;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
}
.logo img {
  height: 40px;
}

.logo:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.btn-login {
  background: linear-gradient(90deg, #0b8afd 35%, #c335f2);
  color: white;
  font-weight: 500;
  padding: 0.25rem 1rem;
  font-size: 15px;
}

.btn-login:hover {
  background: linear-gradient(90deg, #0b8afd 35%, #c335f2);
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  background: #f5f9fd;
  overflow-y: auto;
  transition: transform 0.3s ease;
  z-index: 1025;
}

.sidebar.sidebar-hidden {
  transform: translateX(-100%);
}

.nav-section {
  margin-bottom: 1.5rem;
}

.nav-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  padding: 0 0.75rem;
}

.nav-item-custom {
  display: flex;
  align-items: center;
  padding: 0.625rem 0px;
  margin: 0 0.75rem 0.25rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  cursor: pointer;
}
.nav-item-custom a {
  color: #374151;
  text-decoration: none;
  font-size: 14px;
}
.nav-item-custom-cat {
  font-size: 14px;
}
.nav-item-custom img {
  height: 16px;
  width: 16px;
  margin-right: 12px;
}
.submenu-item img,
.search-item img {
  height: 16px;
  width: 16px;
  margin-right: 12px;
}
.submenu-item a,
.search-item a {
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  margin: 0.125rem 0;
  color: #6b7280;
}
.search-item {
  margin: 0;
}
.nav-item-custom:hover {
  background-color: #f3f4f6;
  color: #374151;
  text-decoration: none;
}

.nav-item-custom.active {
  background-color: #ede9fe;
  color: var(--primary-color);
}

.nav-icon {
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.nav-count {
  background-color: #e5e7eb;
  color: #6b7280;
  font-size: 0.75rem;
  /* padding: 0.125rem 0.375rem; */
  border-radius: 50%;
  margin-left: auto;
  margin-right: 0.5rem;
  height: 24px;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expand-icon {
  margin-left: auto;
  transition: transform 0.2s ease;
  font-size: 0.75rem;
  color: #6b7280;
}

.nav-item-custom.expanded .expand-icon {
  transform: rotate(180deg);
}

/* Submenu Styles */
.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.submenu.expanded {
  max-height: 1000px;
  overflow-y: scroll;
}

.submenu-item,
.search-item {
  display: flex;
  align-items: center;

  border-radius: 0.375rem;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  cursor: pointer;
  margin-left: 1rem;
}

.submenu-item:hover {
  background-color: #f3f4f6;
  color: #374151;
  text-decoration: none;
}

.submenu-item.active {
  background-color: #ede9fe;
  color: var(--primary-color);
}

.submenu-icon {
  width: 16px;
  height: 16px;
  margin-right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  transition: margin-left 0.3s ease;
  background: #fff;
  border-top: 2px solid #f0f2f3;
  border-left: 2px solid #f0f2f3;
}

.main-content.content-expanded {
  margin-left: 0;
}

.content-header-icon {
  width: 40px;
  height: 40px;
  background: #fef3c7;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #d97706;
}

.content-title {
  color: #32325d;
  margin-bottom: 0;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 7px 0;
}

.content-description {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 14px;
  margin-top: 10px;
}

.form-label-custom {
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-control-custom {
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control-custom:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.1);
}

.advanced-options {
  background: #fff;
  border: 1px solid #cad1d7;
  border-radius: 0.25rem;
  padding: 0.625rem 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.advanced-options:hover {
  background: #f3f4f6;
}

.btn-generate,
.login-btn {
  width: auto;
  background: linear-gradient(90deg, #4701ff 35%, #8223f7);
  border-color: var(--primary-color);
  color: white;
  font-weight: 500;
  padding: 0.7rem 1rem;
  width: 100%;
  border-radius: 0.375rem;
  border: none;
  color: white;
  font-size: 15px;
  margin-bottom: 0px !important;
}

.btn-generate:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: white;
}

/* Editor Toolbar */
.editor-toolbar {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  padding: 0.75rem;
}

.toolbar-select {
  border: none;
  background: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.875rem;
}

.toolbar-btn {
  background: none;
  border: none;
  padding: 0.375rem 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
  margin: 0 0.125rem;
}

.toolbar-btn:hover {
  background: #f3f4f6;
}

.toolbar-separator {
  width: 1px;
  height: 20px;
  background: #e5e7eb;
  margin: 0 0.5rem;
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1020;
  display: none;
}

.mobile-overlay.show {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .content-header-icon {
    margin-bottom: 0.75rem;
  }

  .editor-toolbar {
    padding: 0.5rem;
  }

  .toolbar-btn {
    padding: 0.25rem 0.375rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .content-title {
    font-size: 1.25rem;
  }

  .btn-generate {
    padding: 0.75rem;
    font-size: 0.875rem;
  }
}

* Login System */ .login-modal-button {
  border: none;
  background-color: #fff;
  font-size: 14px;
  padding: 0px 0px 0px 25px;
}
.side-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 100;
}

.side-modal {
  position: fixed;
  z-index: 10000;
  top: 0;
  right: -90%; /* Start off-screen */
  width: 90%;
  height: 100%;
  background-color: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.modal-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.modal-content {
  padding: 20px;
}

.modal-body {
  margin-bottom: 20px;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  text-align: right;
}

.auth-container {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  width: 400px;
  max-width: 90%;
}

h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

h2 {
  font-size: 16px;
  font-weight: normal;
  color: #555;
  margin-bottom: 30px;
}

a {
  color: #1b2de7;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.social-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  color: white;
  text-align: center;
}

.google-btn {
  background-color: #4884ed;
}
.google-btn svg {
  background-color: #fff;
  border-radius: 30px;
  padding: 3px;
}

.facebook-btn {
  background-color: #3c5997;
}

.or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: #777;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ddd;
}

.or-divider::before {
  margin-right: 10px;
}

.or-divider::after {
  margin-left: 10px;
}

.input-group {
  position: relative;
  margin-bottom: 15px;
}

.input-group input {
  width: 100%;
  padding: 12px 40px 12px 40px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

.input-group i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
  cursor: pointer;
}

.login-btn {
  /* width: 100%; */
  padding: 12px;
  background-color: #1b2de7;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.forgot-password {
  text-align: center;
  margin-top: 15px;
}

.user-profile {
  display: none;
  text-align: center;
}

.avatar {
  width: 100px;
  height: 100px;
  background-color: #ff9800;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 28px;
  font-weight: bold;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item i {
  margin-right: 10px;
  color: #555;
}

.menu-item span {
  flex: 1;
}

.menu-item .arrow {
  color: #999;
}

/* Icons */
.icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  margin-right: 10px;
}

.google-icon {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none"><path fill="#4285F4" d="M21.533 12.187c0-.82-.067-1.417-.21-2.037h-9.357v3.698h5.492c-.11.92-.709 2.303-2.038 3.233l-.018.124 2.958 2.292.205.02c1.882-1.738 2.968-4.296 2.968-7.33"></path><path fill="#34A853" d="M11.966 21.931c2.69 0 4.95-.886 6.6-2.414l-3.146-2.436c-.841.587-1.97.997-3.454.997-2.636 0-4.872-1.739-5.67-4.141l-.117.01-3.076 2.38-.04.112a9.96 9.96 0 0 0 8.903 5.492"></path><path fill="#FBBC05" d="M6.296 13.937a6.1 6.1 0 0 1-.332-1.971c0-.687.122-1.351.321-1.971l-.005-.132-3.115-2.42-.102.05A10 10 0 0 0 2 11.965a10 10 0 0 0 1.063 4.473z"></path><path fill="#EB4335" d="M11.966 5.853c1.87 0 3.133.809 3.853 1.484l2.813-2.746C16.904 2.985 14.656 2 11.966 2a9.96 9.96 0 0 0-8.903 5.492l3.222 2.503c.809-2.403 3.045-4.142 5.68-4.142"></path></g></svg>');
}

.facebook-icon {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="white" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-7H9v-2h2V8.5C11 7.12 12.12 6 13.5 6H16v2h-2c-.55 0-1 .45-1 1v1h3v2h-3v7z"/></svg>');
}

.email-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="%23777" d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
}

.password-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="%23777" d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"/></svg>');
}

.eye-icon {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="%23777" d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/></svg>');
}

/* User avatar in corner */
.user-avatar {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #1b2de7;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  cursor: pointer;
}

.google-btn svg {
  width: 24px;
  height: 24px;
  display: inline-block;
  margin-right: 10px;
}

/* Forgot password form */
#forgotPasswordForm {
  display: none;
}

.back-btn {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  cursor: pointer;
  color: #1b2de7;
  font-size: 14px;
}

.back-btn:hover {
  text-decoration: underline;
}

.back-icon {
  margin-right: 8px;
}

.reset-success {
  text-align: center;
  background-color: #e8f4ff;
  padding: 15px;
  border-radius: 4px;
  margin-top: 15px;
  display: none;
}

.success-icon {
  color: #1b2de7;
  font-size: 24px;
  margin-bottom: 10px;
}
.twitter-btn {
  background-color: #000000;
}

.twitter-btn svg {
  width: 24px;
  height: 24px;
  display: inline-block;
  margin-right: 10px;
}

.user-modal-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.free-trial {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-right: 20px;
  background-color: white;
}

.crown-icon {
  color: #f9c74f;
  font-size: 24px;
  margin-right: 10px;
}
.user-profile-header {
  padding: 0px 0px 0px 20px;
  display: none;
}
.profile-button {
  width: 40px;
  height: 40px;

  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  position: relative;
}

.dropdown-icon {
  position: absolute;
  bottom: -5px;
  right: -5px;
  font-size: 10px;
  background-color: white;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: black;
}

.user-modal {
  position: absolute;
  top: 55px;
  right: 0px;
  width: 300px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
  overflow: hidden;
}

.user-modal-header {
  padding: 20px;
  display: flex;
  align-items: center;
}

.profile-user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 24px;
  margin-right: 20px;
}

.user-info h2 {
  font-size: 18px;
  margin-bottom: 5px;
}

.user-info p {
  font-size: 14px;
  color: #777;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-item {
  display: flex;
  align-items: center;
  padding: 20px;
  border-top: 1px solid #eee;
  color: #000;
  text-decoration: none;
  transition: background-color 0.2s;
  cursor: pointer;
}

.modal-item:hover {
  background-color: #f7f7f7;
  color: var(--primary-hover);
  text-decoration: none;
}

.item-icon {
  margin-right: 20px;
  font-size: 20px;
  min-width: 24px;
  text-align: center;
}

.item-text {
  flex-grow: 1;
}
.item-text a {
  color: #000000;
  text-decoration: none;
}
.item-arrow svg {
  height: 13px;
  width: 13px;
}

.upload-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background-color: #2962ff;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.upload-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.upload-button span {
  font-size: 10px;
}
.auth-container a {
  justify-content: center;
}
.review {
  width: 300px; /* Set each review card width to match the `.reviews` container */
  flex-shrink: 0;
}

.feedback-btn {
  background-color: #4361ee;
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 12px;
  margin-top: 10px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1045;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-body {
  padding: 25px;
}

@keyframes modalopen {
  from {
    opacity: 0;
    transform: translateY(-60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: black;
}

h2 {
  margin-top: 0;
  color: #333;
}

.form-group {
  margin-botton: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

textarea,
input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

textarea {
  height: 120px;
  resize: vertical;
}
.submit-btn {
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.rating-header {
  margin-top: 10px;
}

.feedbackModal {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-feedback);
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  animation: slideIn 0.3s ease-out;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-control {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.btn-primary {
  background-color: #4701ff;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.close-button {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-light);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: all 0.2s;
}

.close-button:hover {
  background-color: var(--gray-200);
  color: var(--text);
}

.thank-you {
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.modal-footer {
  padding: 15px 25px 20px;
  text-align: right;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #000;
  font-size: 1rem;
}
.form-control {
  background-color: #f8fbff;
  border: 1px solid #cad1d7;
  border-radius: 0.25rem;
  padding: 0.625rem 0.75rem;
  font-weight: 400;
  font-size: 16px;
  height: calc(1.5em + 1.25rem + 2px);
  margin-bottom: 1.5rem;
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  color: #2d3748;
  transition: all 0.2s;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #4353ff;
  box-shadow: 0 0 0 3px rgba(67, 83, 255, 0.2);
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Thank you message */
.thank-you {
  text-align: center;
  padding: 30px 20px;
  background-color: #fff;
  border-radius: 22px;
}

.thank-you-icon {
  width: 60px;
  height: 60px;
  background-color: #48bb78;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
}

.thank-you-title {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 10px;
}

.thank-you-message {
  color: var(--text-light);
  margin-bottom: 25px;
}
.sample-data {
  width: 100%;
  color: #6a3dfd;
  margin: 10px auto;
  border: 1px solid #0000;
  background: #fff;
  font-size: 12px;
}
.url-active a span {
  color: #4701ff !important;
  font-weight: 600;
}

/*  */

/* Categories and Features Grid Layout */
.categories-container {
  padding: 2rem 0;
}

.welcome-section {
  text-align: center;
  margin-bottom: 2rem;
}

.welcome-title {
  font-size: 2rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 1rem;
}

.welcome-title .wave-emoji {
  margin-right: 0.5rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1rem;
}

/* Category Pills/Tags */
.categories-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.category-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
  text-decoration: none;
}

.category-pill.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.category-pill .category-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.category-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.125rem 0.375rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.category-pill.active .category-count {
  background: rgba(255, 255, 255, 0.3);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr; /* default: mobile view -> 1 card */
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Tablet (md) */
@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cards */
  }
}

/* Large screen (lg) */
@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 cards */
  }
}

.feature-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.feature-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon img {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0;
}

.feature-description {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

/* Icon Background Colors */
.feature-icon.social {
  background: #e0f2fe;
}
.feature-icon.blog {
  background: #f0fdf4;
}
.feature-icon.video {
  background: #fef3c7;
}
.feature-icon.marketing {
  background: #fce7f3;
}
.feature-icon.seo {
  background: #e0f2fe;
}
.feature-icon.writing {
  background: #f0f9ff;
}
.feature-icon.education {
  background: #fef3c7;
}
.feature-icon.business {
  background: #f0fdf4;
}
.feature-icon.creative {
  background: #fce7f3;
}

/* Responsive Design */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .categories-pills {
    justify-content: flex-start;
    padding: 0 1rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
  }

  .category-pill {
    flex-shrink: 0;
  }

  .welcome-title {
    font-size: 1.5rem;
  }

  .feature-card {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .categories-container {
    padding: 1rem 0;
  }

  .features-grid {
    margin: 1rem;
  }
}

:root {
  --primary-color: #6366f1;
  --primary-hover: #5b21b6;
  --sidebar-width: 320px;
  --header-height: 50px;
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  background: #f5f9fd;
  overflow-y: auto;
  transition: transform 0.3s ease;
  z-index: 1025;
}

.sidebar .sidebar-hidden {
  transform: translateX(-100%);
}

/* Search Styles */
.sidebar .search-container {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 1rem;
  width: 100% !important;
}

.sidebar .search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.sidebar .search-input {
  width: 100%;
  padding: 0.625rem 0.75rem 0.625rem 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar .search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.1);
}

.sidebar .search-input::placeholder {
  color: #9ca3af;
}

.sidebar .search-icon {
  position: absolute;
  left: 0.75rem;
  color: #6b7280;
  font-size: 0.875rem;
  pointer-events: none;
}

.sidebar .clear-search {
  position: absolute;
  right: 0.75rem;
  color: #6b7280;
  cursor: pointer;
  font-size: 0.875rem;
  display: none;
  padding: 0.25rem;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.sidebar .clear-search:hover {
  background-color: #f3f4f6;
}

.sidebar .clear-search.show {
  display: block;
}

/* Navigation Styles */
.nav-section {
  margin-bottom: 1.5rem;
}

.nav-section.hidden {
  display: none;
}

.nav-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  padding: 0 0.75rem;
}

.nav-item-custom {
  display: flex;
  align-items: center;
  padding: 0.625rem 0px;
  margin: 0 0.75rem 0.25rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-item-custom.hidden {
  display: none;
}

/* Hide categories during search */
.nav-item-custom.expandable.search-mode {
  display: none !important;
}

.nav-item-custom a {
  color: #374151;
  text-decoration: none;
  font-size: 14px;
}

.nav-item-custom-cat {
  font-size: 14px;
}

.nav-item-custom img {
  height: 16px;
  width: 16px;
  margin-right: 12px;
}

.submenu-item img {
  height: 16px;
  width: 16px;
  margin-right: 12px;
}

.submenu-item a {
  text-decoration: none;
  color: #6b7280;
}

.nav-item-custom:hover {
  background-color: #f3f4f6;
  color: #374151;
  text-decoration: none;
}

.nav-item-custom.active {
  background-color: #ede9fe;
  color: var(--primary-color);
}

.nav-icon {
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.nav-count {
  background-color: #e5e7eb;
  color: #6b7280;
  font-size: 0.75rem;
  border-radius: 50%;
  margin-left: auto;
  margin-right: 0.5rem;
  height: 24px;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expand-icon {
  margin-left: auto;
  transition: transform 0.2s ease;
  font-size: 0.75rem;
  color: #6b7280;
}

.nav-item-custom.expanded .expand-icon {
  transform: rotate(180deg);
}

/* Submenu Styles */
.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-left: 0.75rem;
  margin-right: 0.75rem;
}

.submenu.expanded {
  max-height: 1000px;
}

.submenu.hidden {
  display: none;
}

.submenu-item {
  display: flex;
  align-items: center;

  border-radius: 0.375rem;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  cursor: pointer;
  margin-left: 1rem;
}

.submenu-item.hidden {
  display: none;
}

.submenu-item:hover {
  background-color: #f3f4f6;
  color: #374151;
  text-decoration: none;
}

.submenu-item.active {
  background-color: #ede9fe;
  color: var(--primary-color);
}

.submenu-item.url-active a span {
  color: #4701ff !important;
  font-weight: 600;
}

.submenu-icon {
  width: 16px;
  height: 16px;
  margin-right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* No Results Message */
.no-results {
  text-align: center;
  padding: 2rem 1rem;
  color: #6b7280;
  font-size: 0.875rem;
  display: none;
}

.no-results.show {
  display: block;
}

.no-results-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

/* Search highlight */
.search-highlight {
  background-color: #fef3c7;
  color: #92400e;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }
}

/* Additional CSS for Categories and Features Grid */
.categories-container {
  padding: 2rem 0;
}

.welcome-section {
  text-align: center;
  margin-bottom: 2rem;
}

.welcome-title {
  font-size: 2rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 1rem;
}

.welcome-title .wave-emoji {
  margin-right: 0.5rem;
}

.search-container {
  position: relative;
  width: 320px !important;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1rem;
}

/* Category Pills/Tags */
.categories-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.category-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
  text-decoration: none;
}

.category-pill.active {
  background: linear-gradient(90deg, #4701ff 35%, #8223f7);
  border-color: linear-gradient(90deg, #4701ff 35%, #8223f7);
  color: white;
}

.category-pill .category-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.category-count {
  background: rgba(0, 0, 0, 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.25rem;
}

.category-pill.active .category-count {
  background: rgba(255, 255, 255, 0.3);
}
.category-pill.active img {
  filter: invert(1);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 0 1rem;
}

.feature-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.feature-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f0f9ff;
}

.feature-icon img {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0;
}

.feature-description {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
}

.no-results h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #374151;
}

/* Responsive Design */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  }
  .categories-pills {
    flex-wrap: nowrap !important;
    margin: 20px !important;
    justify-content: start !important;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .categories-pills {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .categories-pills::-webkit-scrollbar {
    display: none;
  }

  .category-pill {
    flex-shrink: 0;
  }

  .welcome-title {
    font-size: 1.5rem;
  }

  .feature-card {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .categories-container {
    padding: 1rem 0;
  }
}
.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #2563eb; /* Bootstrap blue or use #1D4ED8 for deeper blue */
  border-color: #2563eb;
}

.custom-switch .custom-control-label::before {
  transition: all 0.3s ease-in-out;
}

.custom-switch .custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}
.welcome-section {
  text-align: center;
  margin-bottom: 30px;
}

.welcome-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

/* Search Container with Dropdown */
.search-wrapper {
  position: relative;
  width: 300px;
  margin: 0 auto 30px;
  display: flex;
  justify-content: center;
}

.search-container {
  position: relative;
  border: none !important;
}

.search-input {
  width: 100%;
  padding: 14px 45px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  background: white;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #4701ff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-input.active {
  border-radius: 12px 12px 0 0;
  border-bottom-color: transparent;
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 18px;
  pointer-events: none;
}

/* Search Dropdown */
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #4701ff;
  border-top: none;
  border-radius: 0 0 12px 12px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

.search-dropdown.show {
  display: block;
}

.search-result-item {
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-result-item:hover {
  background: #f8f9fa;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.search-result-content {
  flex: 1;
}

.search-result-title {
  font-size: 15px;
  color: #333;
  font-weight: 500;
  margin-bottom: 2px;
}

.search-result-category {
  font-size: 12px;
  color: #999;
}

.search-no-results {
  padding: 20px;
  text-align: center;
  color: #999;
}

.search-query-highlight {
  background: #ffeb3b;
  padding: 0 2px;
  border-radius: 2px;
}

/* Category Pills */
.categories-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: center;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  color: #666;
}

.category-pill:hover {
  border-color: #4701ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-pill.active {
  background: #4701ff;
  color: white;
  border-color: #4701ff;
}

.category-icon {
  width: 20px;
  height: 20px;
}

.category-count {
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.category-pill.active .category-count {
  background: rgba(255, 255, 255, 0.3);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.feature-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: #4701ff;
}

.feature-card.hidden {
  display: none;
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: #f0f0f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.feature-description {
  color: #666;
  line-height: 1.5;
  font-size: 14px;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.no-results h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #666;
}

/* Clear search button */

.cust-select {
  position: relative;
  width: 100%;
}

.cust-select .select-trigger {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.2s;
  border: 1px solid #cad1d7;
  border-radius: 0.25rem;
  padding: 0.625rem 0.75rem;
  font-size: 1rem;
  height: calc(1.5em + 1.25rem + 2px);
  margin-bottom: 1.5rem;
}
.cust-select .selected-option {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 12px;
}

.cust-select .model-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 12px;
}

.cust-select .claude {
  background: linear-gradient(45deg, #fff, #fff);
}
.cust-select .gpt {
  background: linear-gradient(45deg, #fff, #fff);
}
.cust-select .gemini {
  background: linear-gradient(45deg, #fff, #fff);
}
.cust-select .deepseek {
  background: linear-gradient(45deg, #fff, #fff);
}
.cust-select .grok {
  background: linear-gradient(45deg, #fff, #fff);
}

.cust-select .chip {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.cust-select .free {
  background: #e8f5e8;
  color: #2e7d2e;
}
.cust-select .upgrade {
  background: #fff3cd;
  color: #856404;
}

.cust-select .arrow {
  height: 20px;
  width: 20px;
  margin-left: 20px;
  margin-right: 0px;
  transition: transform 0.2s;
}

.cust-select .arrow.rotated {
  transform: rotate(180deg);
}

.cust-select .options-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #e1e5e9;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.cust-select .options-container.show {
  display: block;
}

.cust-select .option {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  gap: 12px;
}

.cust-select .option:hover {
  background-color: #f8f9fa;
}

.cust-select .option.selected {
  background-color: #e3f2fd;
}

.cust-select .model-name {
  flex: 1;
  font-size: 14px;
}

.cust-select .label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

/* end */

/* Toast Notifications */
.toast {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
  padding: 16px;
  border-left: 4px solid;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast.success {
  border-left-color: #28a745;
}
.toast.error {
  border-left-color: #dc3545;
}
.toast.warning {
  border-left-color: #ffc107;
}
.toast.info {
  border-left-color: #17a2b8;
}

.toast-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 600;
}

.toast-icon {
  margin-right: 8px;
  font-size: 18px;
}

.toast.success .toast-icon {
  color: #28a745;
}
.toast.error .toast-icon {
  color: #dc3545;
}
.toast.warning .toast-icon {
  color: #ffc107;
}
.toast.info .toast-icon {
  color: #17a2b8;
}

.toast-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #999;
}

.toast-body {
  color: #666;
  font-size: 14px;
}

/* Loading States */
.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading .btn-text {
  opacity: 0;
}

.btn-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: 25px;
  height: 25px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Form Validation */
.input-group {
  position: relative;
  margin-bottom: 1rem;
}

.input-group input {
  width: 100%;
  padding: 12px 16px 12px 45px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.input-group input.error {
  border-color: #dc3545;
}

.input-group input.success {
  border-color: #28a745;
}

.input-group .icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
  font-size: 16px;
}

.field-error {
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.field-error.show {
  display: block;
}

/* Password Strength */
.strength-weak {
  background: #dc3545;
}
.strength-medium {
  background: #ffc107;
}
.strength-strong {
  background: #28a745;
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.close-modal-btn:hover {
  color: #333;
}

.auth-container {
  padding: 20px;
}

.auth-forms h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.auth-forms h2 {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}

.auth-forms h2 a {
  color: #007bff;
  text-decoration: none;
}

.auth-forms h2 a:hover {
  text-decoration: underline;
}

.forgot-password {
  text-align: center;
  margin-top: 16px;
}

.forgot-password a {
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.back-btn {
  display: flex;
  align-items: center;
  color: #007bff;
  cursor: pointer;
  margin-bottom: 20px;
  font-size: 14px;
}

.back-btn:hover {
  text-decoration: underline;
}

.back-icon {
  margin-right: 8px;
  font-size: 16px;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: #28a745;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}

.reset-success {
  text-align: center;
}

.reset-success h3 {
  margin: 16px 0 8px;
  color: #333;
}

.reset-success p {
  color: #666;
  font-size: 14px;
}

/* User Profile Header */
/* .user-profile-header {
  display: none;
} */

/* User Modal */
/* .user-modal {
  position: absolute;
  top: 50px;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 250px;
  z-index: 1000;
  display: none;
}

.modal-item {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #333;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-item:hover {
  background: #f8f9fa;
}

.modal-item:last-child {
  border-bottom: none;
} */

/* .item-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-text {
  flex: 1;
  font-size: 14px;
}

.item-arrow {
  width: 16px;
  height: 16px;
  opacity: 0.5;
} */
/* pricing page */
.pricing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px 60px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 60px;
  color: #000;
}

.pricing-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pricing-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.pricing-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 3px solid transparent;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
  border-color: #6366f1;
  transform: scale(1.02);
}

.pricing-card.popular::before {
  content: "Most Popular";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #6366f1;
  color: white;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.plan-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
  color: white;
}

.free-icon {
  background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}
.starter-icon {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}
.pro-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.plan-name {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #1f2937;
}

.plan-price {
  text-align: center;
  margin-bottom: 30px;
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  color: #1f2937;
}

.price-period {
  font-size: 1rem;
  color: #6b7280;
  margin-top: 5px;
}

.price-note {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 10px;
}

.features-list {
  list-style: none;
  margin-bottom: 40px;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 15px;
  color: #374151;
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list .check-icon {
  color: #10b981;
  margin-right: 12px;
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.plan-button {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.plan-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.plan-button.loading {
  pointer-events: none;
}

.plan-button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.free-button {
  background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
  color: white;
}

.free-button:hover {
  background: linear-gradient(135deg, #6ee7b7 0%, #7dd3fc 100%);
  transform: translateY(-2px);
}

.starter-button {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
}

.starter-button:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  transform: translateY(-2px);
}

.pro-button {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.pro-button:hover {
  background: linear-gradient(135deg, #ec4899 0%, #ef4444 100%);
  transform: translateY(-2px);
}

.model-list {
  font-size: 13px;
  color: #6b7280;
  font-style: italic;
  margin-top: 5px;
}

.waitlist-success {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.waitlist-modal {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  text-align: center;
  animation: slideUp 0.3s ease;
}

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

.success-icon-large {
  width: 80px;
  height: 80px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 40px;
}

.waitlist-modal h2 {
  color: #1f2937;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.waitlist-modal p {
  color: #6b7280;
  margin-bottom: 30px;
  line-height: 1.6;
}

.close-modal-btn {
  background: #6366f1;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.close-modal-btn:hover {
  background: #4f46e5;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-header h1 {
    font-size: 2.5rem;
  }

  .pricing-container {
    padding: 40px 15px;
  }
}

/* Loading overlay styles */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.loading-content {
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: loadingSpin 1s linear infinite;
  margin: 0 auto 16px;
}

.loading-text {
  color: #333;
  font-size: 16px;
  font-weight: 500;
}

@keyframes loadingSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}
/* </style> */

@media (max-width: 576px) {
  #upgradeModal .modal-dialog {
    max-width: 70% !important;
    margin: 1.75rem auto;
  }
}
#upgradeModal .modal-dialog {
  max-width: 90%;
}
#upgradeModal .pricing-card {
  padding: 25px 20px;
}
#upgradeModal .pricing-container {
  padding: 0px;
}
