/* View Stylesheet: settings (Drippler Theme - Full Page Seamless Viewport) */
:root {
  --bg-color: #161524;
  --surface: #1d1c2e;
  --elevated: #232238;
  --card-bg: #1d1c2e;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #6366f1;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-faint: #555f6e;
}

html {
  height: 100%;
  background-color: #161524 !important;
}

body {
  margin: 0;
  padding: 0;
  background-color: #161524 !important;
  color: var(--text-main);
  min-height: 100vh;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-y: auto;
  box-sizing: border-box;
}

.dashboard-section {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#admin-settings-view {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#settingsGridView {
  padding: 1.5rem 2rem 6.5rem 2rem !important;
  box-sizing: border-box !important;
  flex: 1 1 auto !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-behavior: smooth;
}

#settingsGridView::-webkit-scrollbar,
.settings-detail-content::-webkit-scrollbar,
.sidepanel-drawer-list::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

#settingsGridView::-webkit-scrollbar-track,
.settings-detail-content::-webkit-scrollbar-track,
.sidepanel-drawer-list::-webkit-scrollbar-track {
  background: #161524;
}

#settingsGridView::-webkit-scrollbar-thumb,
.settings-detail-content::-webkit-scrollbar-thumb,
.sidepanel-drawer-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
}

#settingsGridView::-webkit-scrollbar-thumb:hover,
.settings-detail-content::-webkit-scrollbar-thumb:hover,
.sidepanel-drawer-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.settings-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.breadcrumb-item {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s ease;
  cursor: pointer;
}

.breadcrumb-item:hover {
  color: var(--text-main);
}

.breadcrumb-separator {
  color: var(--text-faint);
  font-size: 0.8rem;
  user-select: none;
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
}

.header-save-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent, #fe2c55);
  border: none;
  color: #ffffff;
  padding: 0.45rem 1.35rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(254, 44, 85, 0.3);
  transition: all 0.2s ease;
}

.header-save-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(254, 44, 85, 0.4);
}

/* SECTION CONTAINER (NO BOXED WRAPPER - SEAMLESS FULL PAGE) */
.settings-section-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 2.5rem;
  box-shadow: none;
}

.section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* CATEGORY ROW GRID LAYOUT */
.settings-category-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  align-items: stretch;
}

.settings-category-row:last-child {
  margin-bottom: 0;
}

.category-tag {
  background: #232238;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: capitalize;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 1200px) {
  .options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .settings-category-row {
    grid-template-columns: 1fr;
  }
  .options-grid {
    grid-template-columns: 1fr;
  }
}

/* OPTION CARD */
.option-card {
  background: #1d1c2e;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.option-card:hover {
  background: #25243a;
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.option-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #28273c;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  flex-shrink: 0;
}

.option-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.option-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.option-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* =======================================================
   SETTINGS DETAIL VIEW WITH CATEGORY DRAWER SIDEPANEL
   (Admin Dashboard Theme Layout)
   ======================================================= */
.settings-detail-layout {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  margin: 0;
  background: #161524;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.settings-detail-layout[style*="display: none"] {
  display: none !important;
}

#settingsGridView[style*="display: none"] {
  display: none !important;
}

/* LEFT CATEGORY DRAWER SIDEPANEL */
.settings-sidepanel {
  width: 235px;
  min-width: 235px;
  background: #131221;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-sizing: border-box;
  align-self: stretch;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
}

.settings-sidepanel.collapsed {
  width: 64px;
  min-width: 64px;
}

.sidepanel-header {
  padding: 1.25rem 1.15rem 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  min-height: 56px;
  box-sizing: border-box;
}

.sidepanel-category-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.settings-sidepanel.collapsed .sidepanel-category-name {
  display: none;
}

.sidepanel-collapse-btn {
  background: transparent;
  border: none;
  color: var(--text-muted, #94a3b8);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.sidepanel-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.sidepanel-drawer-list {
  padding: 0.85rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  overflow-y: auto;
}

/* DRAWER TAB ITEM */
.sidepanel-tab-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem;
  border-radius: 8px;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}

.sidepanel-tab-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.sidepanel-tab-item.active {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.32);
  color: #818cf8;
  font-weight: 600;
}

.sidepanel-tab-item i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: inherit;
}

.sidepanel-tab-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-sidepanel.collapsed .sidepanel-tab-label {
  display: none;
}

.settings-sidepanel.collapsed .sidepanel-tab-item {
  justify-content: center;
  padding: 0.7rem 0;
}

.settings-detail-content {
  flex: 1 1 auto;
  min-width: 0;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  padding: 1.5rem 2.25rem 6.5rem 2.25rem !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
  background: #161524;
  -webkit-overflow-scrolling: touch !important;
}

.detail-header {
  margin-bottom: 1.25rem;
}

.detail-page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.detail-page-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.detail-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #94a3b8);
  cursor: help;
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
}

.detail-info-icon:hover {
  opacity: 1;
  color: #ffffff;
}

/* SWITCH CONTROL */
.switch-control {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch-control input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .25s ease;
  border-radius: 24px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .25s ease;
  border-radius: 50%;
}

.switch-control input:checked + .switch-slider {
  background-color: #10b981;
}

.switch-control input:checked + .switch-slider:before {
  transform: translateX(20px);
}

.settings-card-group {
  background: #1d1c2e;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.save-status-msg {
  font-size: 0.85rem;
  font-weight: 500;
}

/* DETAIL PANELS */
.setting-detail-panel {
  display: none;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  animation: fadeIn 0.25s ease-out;
}

.setting-detail-panel.active {
  display: block;
}

.detail-panel-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.detail-panel-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

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

/* --- BUSINESS PROFILE CUSTOM FORM & TABS --- */
.biz-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.biz-profile-tabs {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.75rem;
}

.biz-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0.25rem;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.biz-tab:hover {
  color: #fff;
}

.biz-tab.active {
  color: #fff;
  font-weight: 700;
}

.biz-tab.active::after {
  content: "";
  position: absolute;
  bottom: -0.55rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: #6366f1;
}

.biz-save-btn {
  background: #6366f1;
  color: white;
  border: none;
  padding: 0.55rem 1.4rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.biz-save-btn:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

.uploads-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.upload-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.logo-preview-box {
  width: 158px;
  height: 50px;
  background: #1d1c2e;
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  overflow: hidden;
}

.favicon-preview-box {
  width: 40px;
  height: 40px;
  background: #1d1c2e;
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
}

.upload-btn-secondary {
  background: #28273c;
  color: #c7d2fe;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.upload-btn-secondary:hover {
  background: #3730a3;
  color: #fff;
}

.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

.biz-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.biz-form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.req-star {
  color: #ef4444;
}

.biz-input,
.biz-select,
.biz-textarea {
  width: 100%;
  background: #1b1a2b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.biz-select {
  background-color: #1b1a2b;
}

.biz-input:focus,
.biz-select:focus,
.biz-textarea:focus {
  border-color: #6366f1;
  background: #232238;
}

.biz-textarea {
  min-height: 90px;
  resize: vertical;
}

/* SOCIAL INPUT GROUP STYLES */
.social-input-group {
  display: flex;
  align-items: center;
  background: #1b1a2b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}

.social-input-group:focus-within {
  border-color: #6366f1;
  background: #232238;
}

.social-icon-box {
  width: 44px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #232238;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.social-icon-box.facebook { color: #1877f2; }
.social-icon-box.youtube { color: #ff0000; }
.social-icon-box.instagram { color: #e4405f; }
.social-icon-box.twitter { color: #ffffff; }
.social-icon-box.linkedin { color: #0a66c2; }
.social-icon-box.tiktok { color: #fe2c55; }
.social-icon-box.discord { color: #5865f2; }
.social-icon-box.twitch { color: #9146ff; }
.social-icon-box.kick { color: #53fc18; }
.social-icon-box.reddit { color: #ff4500; }
.social-icon-box.pinterest { color: #e60023; }
.social-icon-box.threads { color: #ffffff; }
.social-icon-box.snapchat { color: #fffc00; }
.social-icon-box.truth { color: #1d9bf0; }

.social-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-size: 0.86rem;
  outline: none;
  width: 100%;
}

/* ===================================================
   Admin Dashboard-STYLE COOKIE CONSENT MODULE
   =================================================== */
.cookie-consent-container {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 3rem;
  align-items: start;
  margin-top: 0.5rem;
}

@media (max-width: 1100px) {
  .cookie-consent-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.cookie-form-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cookie-form-group {
  display: flex;
  flex-direction: column;
}

.cookie-label {
  font-size: 0.86rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 0.55rem;
}

/* Color Dropdown */
.cookie-color-dropdown-wrap {
  position: relative;
  max-width: 320px;
}

.cookie-color-selected {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #11101d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  color: #ffffff;
  font-size: 0.88rem;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s;
}

.cookie-color-selected:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.cookie-color-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.cookie-color-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: #191829;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 50;
  display: none;
  overflow: hidden;
}

.cookie-color-menu.open {
  display: block;
}

.cookie-color-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.86rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.15s;
}

.cookie-color-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Position Radios */
.cookie-position-row {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.cookie-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #e2e8f0;
  cursor: pointer;
  user-select: none;
}

.cookie-radio-label input[type="radio"] {
  display: none;
}

.cookie-radio-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.cookie-radio-circle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7c3aed;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.cookie-radio-label input[type="radio"]:checked + .cookie-radio-circle {
  border-color: #7c3aed;
}

.cookie-radio-label input[type="radio"]:checked + .cookie-radio-circle::after {
  opacity: 1;
  transform: scale(1);
}

/* Content Textarea */
.cookie-textarea {
  width: 100%;
  box-sizing: border-box;
  background: #11101d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.88rem;
  line-height: 1.5;
  padding: 0.75rem 1rem;
  resize: vertical;
  min-height: 105px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.cookie-textarea:focus {
  border-color: #6366f1;
}

/* Buttons config */
.cookie-buttons-config {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 250px;
}

.cookie-btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-btn-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-btn-name-text {
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 500;
}

.cookie-edit-pencil-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.cookie-edit-pencil-btn:hover {
  color: #e2e8f0;
}

.cookie-inline-edit-input {
  background: #11101d;
  border: 1px solid #6366f1;
  border-radius: 4px;
  color: #fff;
  font-size: 0.85rem;
  padding: 2px 6px;
  width: 80px;
  outline: none;
}

/* Admin Dashboard Green Pill Switch (On |) */
.cookie-pill-switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 26px;
  user-select: none;
  cursor: pointer;
}

.cookie-pill-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-pill-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #334155;
  border-radius: 20px;
  transition: .25s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
  box-sizing: border-box;
}

.cookie-pill-slider .slider-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: capitalize;
}

.cookie-pill-slider .slider-knob {
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  transition: .25s ease;
}

.cookie-pill-switch input:checked + .cookie-pill-slider {
  background-color: #22c55e;
}

.cookie-pill-switch input:checked + .cookie-pill-slider .slider-knob {
  order: 2;
}
.cookie-pill-switch input:checked + .cookie-pill-slider .slider-text {
  order: 1;
}

.cookie-pill-switch input:not(:checked) + .cookie-pill-slider .slider-knob {
  order: 1;
}
.cookie-pill-switch input:not(:checked) + .cookie-pill-slider .slider-text {
  order: 2;
}

/* Apply for Grid */
.cookie-apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 2rem;
}

.cookie-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: #e2e8f0;
  cursor: pointer;
  user-select: none;
}

.cookie-checkbox-label input[type="checkbox"] {
  display: none;
}

.cookie-checkbox-custom {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cookie-checkbox-label input[type="checkbox"]:checked + .cookie-checkbox-custom {
  background: #6366f1;
  border-color: #6366f1;
}

.cookie-checkbox-label input[type="checkbox"]:checked + .cookie-checkbox-custom::after {
  content: "✓";
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

/* Preview Column */
.cookie-preview-col {
  display: flex;
  flex-direction: column;
}

.cookie-preview-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem 0;
}

.cookie-preview-stage {
  background: #090913;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  min-height: 240px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}

.cookie-banner-preview {
  border-radius: 6px;
  padding: 1.15rem 1.4rem;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.cookie-banner-preview-text {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #ffffff;
  flex: 1;
  margin: 0;
}

.cookie-banner-preview-buttons {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.cookie-banner-action-btn {
  background: #fbbf24;
  color: #000000;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 1.15rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.cookie-banner-action-btn:hover {
  opacity: 0.9;
}

/* Footer Action Buttons */
.cookie-action-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}

.cookie-btn-cancel {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s;
}

.cookie-btn-cancel:hover {
  color: #ffffff;
}

.cookie-btn-save {
  background: #7c3aed;
  border: none;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.75rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
  transition: all 0.2s ease;
}

.cookie-btn-save:hover {
  background: #6d28d9;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.5);
}

/* ===================================================
   Admin Dashboard-STYLE DOMAIN SETTINGS MODULE
   =================================================== */
.domain-settings-container {
  padding: 0.5rem 0 2rem 0;
  max-width: 820px;
}

.domain-subheading-text {
  color: #cbd5e1;
  font-size: 0.94rem;
  line-height: 1.5;
  margin: 0 0 1.5rem 0;
}

.domain-subdomain-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 480px;
}

.domain-subdomain-box {
  display: flex;
  align-items: center;
  background: #11101d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}

.domain-subdomain-box.editing {
  border-color: #6366f1;
  background: #191829;
}

.domain-protocol-prefix,
.domain-protocol-suffix {
  color: #94a3b8;
  font-size: 0.92rem;
  user-select: none;
  font-family: inherit;
}

.domain-subdomain-slug-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 500;
  outline: none;
  padding: 0 2px;
  margin: 0;
  width: auto;
  min-width: 60px;
  font-family: inherit;
}

.domain-subdomain-slug-input:not([readonly]) {
  border-bottom: 1px solid #7c3aed;
  color: #a78bfa;
}

.domain-edit-icon-btn,
.domain-save-slug-btn,
.domain-cancel-slug-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 3px 5px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.15s;
}

.domain-edit-icon-btn:hover {
  color: #ffffff;
}

.domain-save-slug-btn {
  color: #10b981;
}
.domain-save-slug-btn:hover {
  color: #34d399;
}

.domain-cancel-slug-btn {
  color: #f87171;
}
.domain-cancel-slug-btn:hover {
  color: #ef4444;
}

.domain-visit-link {
  color: #94a3b8;
  background: #191829;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
}

.domain-visit-link:hover {
  color: #ffffff;
  border-color: #6366f1;
  background: #232238;
}

.domain-notice-text {
  color: #94a3b8;
  font-size: 0.82rem;
  margin-top: 0.65rem;
  margin-bottom: 2.25rem;
}

.domain-custom-heading {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 0 1.25rem 0;
}

.domain-purple-btn {
  background: #7c3aed;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.domain-purple-btn:hover {
  background: #6d28d9;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.5);
}

/* Custom Domain Mapping Card */
.domain-mapping-card {
  margin-top: 2rem;
  background: #11101d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  max-width: 680px;
  animation: fadeIn 0.25s ease-out;
}

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

.domain-dns-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.85rem;
}

.domain-dns-table th {
  text-align: left;
  padding: 0.55rem 0.75rem;
  color: #94a3b8;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.domain-dns-table td {
  padding: 0.65rem 0.75rem;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.domain-dns-table code {
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 6px;
  border-radius: 4px;
  color: #a78bfa;
  font-family: monospace;
}

/* ===================================================
   Admin Dashboard-STYLE WEBSITE HOME PAGE MODULE
   =================================================== */
.website-home-container {
  padding: 0.5rem 0 2rem 0;
  max-width: 960px;
}

.home-step-accordion {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
}

.home-step-accordion:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.home-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 0.5rem 0;
}

.home-step-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.home-step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 700;
  flex-shrink: 0;
}

.home-step-badge.checked {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
  color: #a5b4fc;
}

.home-step-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.home-step-info-icon {
  color: #64748b;
  cursor: pointer;
  transition: color 0.15s;
}

.home-step-info-icon:hover {
  color: #cbd5e1;
}

.home-step-toggle-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.home-step-toggle-btn:hover {
  color: #ffffff;
}

.home-step-body {
  padding-top: 1.5rem;
}

.home-step-body.collapsed {
  display: none;
}

/* Step 1 Grid */
.home-page-selection-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .home-page-selection-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.home-radio-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.home-page-select-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 440px;
}

.home-page-dropdown {
  background: #11101d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.65rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #cbd5e1;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.2s;
  user-select: none;
  position: relative;
}

.home-page-dropdown:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.home-page-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: #191829;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 50;
  display: none;
  overflow: hidden;
  max-height: 200px;
  overflow-y: auto;
}

.home-page-menu.open {
  display: block;
}

.home-page-item {
  padding: 0.6rem 0.85rem;
  font-size: 0.86rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.15s;
}

.home-page-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Empty State */
.home-page-empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1rem;
  text-align: center;
}

.home-empty-illustration {
  width: 72px;
  height: 52px;
  margin-bottom: 0.85rem;
  opacity: 0.85;
}

.home-empty-text {
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 500;
  margin: 0;
}

/* Step 2 Action Options */
.home-action-options {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-left: 2.5rem;
  max-width: 580px;
}

.home-action-card {
  background: #11101d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ===================================================
   Admin Dashboard-STYLE BUSINESS SEO MODULE
   =================================================== */
.business-seo-container {
  padding: 0.5rem 0 2rem 0;
  max-width: 820px;
}

.seo-form-group {
  margin-bottom: 2rem;
}

.seo-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 0.65rem;
}

.seo-dropdown-wrap {
  position: relative;
  max-width: 440px;
}

.seo-dropdown-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #11101d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s;
}

.seo-dropdown-selected:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.seo-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: #191829;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 50;
  display: none;
  overflow: hidden;
  box-sizing: border-box;
}

.seo-dropdown-menu.open {
  display: block;
}

.seo-dropdown-header {
  padding: 0.75rem 1rem 0.5rem 1rem;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
  user-select: none;
}

.seo-dropdown-item {
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.seo-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.seo-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 360px;
  margin-bottom: 1.5rem;
}

.seo-toggle-label {
  font-size: 0.9rem;
  color: #cbd5e1;
  font-weight: 500;
}

/* ===================================================
   Admin Dashboard-STYLE WEBMASTER MODULE
   =================================================== */
.webmaster-container {
  padding: 0.5rem 0 2rem 0;
  max-width: 900px;
}

.webmaster-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.webmaster-label {
  width: 110px;
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 500;
  flex-shrink: 0;
}

.webmaster-input {
  background: #11101d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-size: 0.9rem;
  width: 100%;
  max-width: 440px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.webmaster-input::placeholder {
  color: #565b73;
}

.webmaster-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.webmaster-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.webmaster-help-text {
  color: #94a3b8;
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.5;
  flex: 1;
}

.webmaster-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

/* ===================================================
   Admin Dashboard-STYLE 3RD PARTY ANALYTICS MODULE
   =================================================== */
.analytics-settings-container {
  padding: 0.5rem 0 2rem 0;
  max-width: 980px;
}

.analytics-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.analytics-label {
  width: 290px;
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 500;
  flex-shrink: 0;
  padding-top: 0.65rem;
  line-height: 1.4;
}

.analytics-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 580px;
}

.analytics-textarea {
  background: #11101d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.5;
  width: 100%;
  min-height: 76px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.analytics-textarea::placeholder {
  color: #4b526d;
  font-family: inherit;
}

.analytics-textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.analytics-field-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: help;
  padding: 4px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.analytics-field-info:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.analytics-action-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-top: 2rem;
  max-width: 890px;
}

/* ===================================================
   Admin Dashboard-STYLE CHANNEL BANNERS MODULE
   =================================================== */
.banners-container {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  padding: 0.25rem 0 1.5rem 0;
}

.banners-tab-nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 160px;
  flex-shrink: 0;
}

.banner-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  text-align: left;
  transition: background 0.18s, color 0.18s;
  width: 100%;
}

.banner-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.banner-tab-btn.active {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  font-weight: 600;
}

.banner-tab-btn.active svg,
.banner-tab-btn.active i {
  color: #818cf8;
}

.banners-upload-area {
  flex: 1;
}

.banners-drop-zone {
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
  background: rgba(255, 255, 255, 0.01);
}

.banners-drop-zone:hover {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.03);
}

.banner-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 2.5rem 2rem;
  text-align: center;
  width: 100%;
}

.banner-monitor-icon {
  margin-bottom: 0.35rem;
  opacity: 0.85;
}

.banner-upload-text {
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.banner-select-btn {
  background: #5b50a8;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.65rem 1.75rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(91, 80, 168, 0.35);
}

.banner-select-btn:hover {
  background: #6d62c4;
  box-shadow: 0 6px 20px rgba(91, 80, 168, 0.5);
}

.banner-preview-wrap {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
}

.banner-preview-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.banner-remove-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.banner-remove-btn:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.5);
}

.banners-info-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  color: #64748b;
  font-size: 0.8rem;
  padding: 0 0.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===================================================
   Admin Dashboard-STYLE HELP MODAL
   =================================================== */
.help-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.help-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 18, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.help-modal-dialog {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 700px;
  max-height: 88vh;
  overflow-y: auto;
  background: #19172d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  animation: modalPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.help-modal-dialog::-webkit-scrollbar {
  display: none;
  width: 0px;
  height: 0px;
  background: transparent;
}

@keyframes modalPopIn {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.help-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.help-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.help-modal-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.help-modal-icon-circle {
  width: 56px;
  height: 56px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.help-modal-qmark {
  font-size: 30px;
  font-weight: 800;
  color: #2b1f4a;
  line-height: 1;
  user-select: none;
}

.help-modal-title {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.35rem 0;
}

.help-modal-subtitle {
  color: #94a3b8;
  font-size: 0.92rem;
  text-align: center;
  margin: 0 0 1.5rem 0;
}

.help-modal-body {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.6;
}

.help-modal-lead {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 1.35rem;
}

.help-modal-card-info {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.help-info-block {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.help-info-icon {
  color: #8b5cf6;
  flex-shrink: 0;
  margin-top: 2px;
}

.help-info-heading {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.help-info-text {
  color: #94a3b8;
  font-size: 0.84rem;
  line-height: 1.55;
}

.help-info-bullets,
.help-info-steps {
  color: #94a3b8;
  font-size: 0.84rem;
  line-height: 1.55;
  margin: 0.35rem 0 0 1.25rem;
  padding: 0;
}

.help-info-bullets li,
.help-info-steps li {
  margin-bottom: 0.45rem;
}

.help-info-bullets li:last-child,
.help-info-steps li:last-child {
  margin-bottom: 0;
}

.help-info-bullets li strong {
  color: #e2e8f0;
}

.help-info-steps code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  color: #a78bfa;
  font-size: 0.8rem;
}

.help-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.help-modal-footer-label {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
}

.help-modal-footer-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.help-modal-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #a78bfa;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  transition: color 0.2s;
}

.help-modal-footer-link:hover {
  color: #c4b5fd;
  text-decoration: underline;
}

/* ===================================================
   Admin Dashboard-STYLE BASIC SELL SETTINGS MODULE
   =================================================== */
.basic-sell-container {
  padding: 0.5rem 0 2rem 0;
  max-width: 900px;
}

.basic-sell-top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.basic-sell-accordion {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
}

.basic-sell-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 0.5rem 0 1.25rem 0;
}

.basic-sell-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.basic-sell-dots-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #94a3b8;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.basic-sell-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.basic-sell-info-icon {
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}

.basic-sell-info-icon:hover {
  color: #cbd5e1;
}

.basic-sell-toggle-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.basic-sell-toggle-btn:hover {
  color: #ffffff;
}

.basic-sell-body {
  padding-top: 0.5rem;
}

.basic-sell-body.collapsed {
  display: none;
}

.basic-sell-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.basic-sell-label-col {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #94a3b8;
}

.basic-sell-input-col {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 480px;
}

.basic-sell-input-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #11101d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  width: 100%;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.basic-sell-input-box:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.basic-sell-lock-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.basic-sell-input {
  background: transparent;
  border: none;
  outline: none;
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-size: 0.9rem;
  width: 100%;
  box-sizing: border-box;
}

.basic-sell-input:disabled,
.basic-sell-input[readonly] {
  color: #cbd5e1;
  cursor: default;
}

.basic-sell-pencil-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.basic-sell-pencil-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.basic-sell-action-btns {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.basic-sell-confirm-btn {
  background: transparent;
  border: none;
  color: #10b981;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  font-size: 1.15rem;
  transition: transform 0.15s, opacity 0.15s;
}

.basic-sell-confirm-btn:hover {
  transform: scale(1.15);
  opacity: 0.9;
}

.basic-sell-cancel-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  font-size: 1.15rem;
  transition: transform 0.15s, opacity 0.15s;
}

.basic-sell-cancel-btn:hover {
  transform: scale(1.15);
  opacity: 0.9;
}

/* ===================================================
   Admin Dashboard-STYLE MEMBERSHIP MODULE
   =================================================== */
.membership-container {
  padding: 0.5rem 0 2rem 0;
  max-width: 920px;
}

.membership-top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.membership-accordion {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
}

.membership-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 0.5rem 0 1.25rem 0;
}

.membership-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.membership-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.membership-badge.active-dots {
  border-color: rgba(99, 102, 241, 0.4);
  color: #818cf8;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.membership-badge.checked {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #10b981;
}

.membership-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.membership-info-icon {
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}

.membership-info-icon:hover {
  color: #cbd5e1;
}

.membership-toggle-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.membership-toggle-btn:hover {
  color: #ffffff;
}

.membership-body {
  padding-top: 0.5rem;
}

.membership-body.collapsed {
  display: none;
}

.membership-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.25rem;
}

.membership-label-col {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #94a3b8;
}

.membership-input-col {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 480px;
}

.membership-input-box {
  background: #11101d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  width: 100%;
  padding: 0.75rem 1rem;
  color: #cbd5e1;
  font-size: 0.9rem;
  box-sizing: border-box;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.membership-input-box:focus {
  border-color: #6366f1;
}

.membership-preview-btn {
  background: #11101d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #94a3b8;
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  flex-shrink: 0;
  text-decoration: none;
}

.membership-preview-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Radio Group in Section 2 */
.membership-radio-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.5rem 0 1rem 2rem;
}

/* Email Sequences Cards */
.membership-emails-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-top: 0.5rem;
}

.membership-email-block {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.membership-email-heading {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.membership-email-card {
  background: #11101d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.membership-email-subject {
  font-size: 0.9rem;
  color: #cbd5e1;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.75rem;
}

.membership-email-subject span {
  color: #94a3b8;
  font-weight: 500;
}

.membership-email-body-lead {
  font-size: 0.86rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: -0.25rem;
}

.membership-email-body-content {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
  white-space: pre-line;
}

.membership-email-btn-mock {
  align-self: center;
  margin: 0.5rem 0;
  padding: 0.55rem 1.35rem;
  background: rgba(99, 102, 241, 0.18);
  border: 1px dashed rgba(99, 102, 241, 0.45);
  border-radius: 6px;
  color: #a5b4fc;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

/* =======================================================
   INTEGRATIONS / PAYMENTS SCREEN (Admin Dashboard Theme)
   ======================================================= */
.integrations-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.integrations-header {
  margin-bottom: 1.5rem;
}

.integrations-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.integrations-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.integrations-title-arrow {
  color: #94a3b8;
  font-size: 0.95rem;
}

.integrations-help-trigger {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.integrations-help-trigger:hover {
  color: #c4b5fd;
  transform: scale(1.1);
}

.integrations-subtitle {
  font-size: 0.86rem;
  color: #94a3b8;
  margin: 0.35rem 0 0 0;
}

/* Top Controls Bar: Dropdown + Search */
.integrations-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.integrations-dropdown-wrap {
  position: relative;
  user-select: none;
}

.integrations-dropdown-btn {
  background: #151424;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  min-width: 190px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.integrations-dropdown-btn:hover {
  border-color: rgba(108, 92, 231, 0.5);
  background: #1c1b30;
}

.integrations-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: #171629;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  z-index: 60;
  display: none;
  flex-direction: column;
  overflow: hidden;
  padding: 0.35rem 0;
}

.integrations-dropdown-menu.show {
  display: flex;
}

.integrations-dropdown-item {
  background: transparent;
  border: none;
  padding: 0.7rem 1.25rem;
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}

.integrations-dropdown-item:hover {
  background: rgba(108, 92, 231, 0.22);
  color: #ffffff;
}

.integrations-dropdown-item.active {
  color: #a5b4fc;
  font-weight: 700;
  background: rgba(108, 92, 231, 0.15);
}

/* Search Box */
.integrations-search-wrap {
  position: relative;
  width: 260px;
}

.integrations-search-input {
  width: 100%;
  background: #151424;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.65rem 2.5rem 0.65rem 1rem;
  color: #ffffff;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.integrations-search-input:focus {
  border-color: #6c5ce7;
  box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.25);
  background: #1a192e;
}

.integrations-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Category Section Subtitle */
.integrations-category-heading {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0.5rem 0 1.25rem 0;
}

/* Cards Grid */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .integrations-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .integrations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Individual Integration Card */
.integration-card {
  background: #131221;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2.2rem 1.25rem 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.integration-card:hover {
  border-color: rgba(108, 92, 231, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  background: #171628;
}

.integration-card-logo-wrap {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.integration-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.35rem 0;
}

.integration-card-status {
  font-size: 0.82rem;
  color: #7e8299;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.integration-card-status.integrated {
  color: #10b981;
  font-weight: 600;
}

.integration-card-btn {
  width: 85%;
  padding: 0.62rem 1.25rem;
  background: #6c5ce7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.integration-card-btn:hover {
  background: #5a48df;
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.4);
  transform: translateY(-1px);
}

.integration-card-btn.connected {
  background: rgba(108, 92, 231, 0.16);
  border: 1px solid rgba(108, 92, 231, 0.5);
  color: #c4b5fd;
}

.integration-card-btn.connected:hover {
  background: rgba(108, 92, 231, 0.28);
  border-color: #6c5ce7;
}

/* Empty search state */
.integrations-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  color: #94a3b8;
  font-size: 0.95rem;
}

/* =======================================================
   INTEGRATION CONNECT / CONFIG MODAL
   ======================================================= */
.connect-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.connect-modal-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.connect-modal-info {
  display: flex;
  flex-direction: column;
}

.connect-modal-service-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.connect-modal-service-tag {
  font-size: 0.8rem;
  color: #a5b4fc;
}

/* =======================================================
   OFFER SETTINGS (Admin Dashboard Theme)
   ======================================================= */
.offer-settings-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 900px;
}

.offer-page-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.offer-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem 0;
}

.offer-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
  display: block;
}

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

.offer-select {
  width: 100%;
  background: #141324;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffffff;
  padding: 0.75rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  transition: all 0.2s ease;
}

.offer-select:focus {
  border-color: #6c5ce7;
  box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.25);
  background-color: #18172b;
}

.offer-select option {
  background: #18172b;
  color: #ffffff;
  padding: 0.5rem;
}

/* Template Preview Cards */
.offer-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
  gap: 1.5rem;
}

.offer-template-card {
  background: #12111f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
}

.offer-template-card:hover {
  border-color: rgba(108, 92, 231, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.offer-template-card.selected {
  border-color: #6c5ce7;
  box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.35);
}

.offer-template-preview {
  height: 180px;
  background: #161528;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Simulated Checkout UI inside Preview */
.offer-mock-checkout {
  width: 82%;
  height: 90%;
  background: #1e1d32;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.offer-mock-scroll-track {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background: #141324;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.offer-mock-scroll-thumb {
  width: 10px;
  height: 48px;
  background: #6c5ce7;
  border-radius: 3px;
}

.offer-mock-info-tag {
  position: absolute;
  top: 6px;
  right: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offer-mock-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.5rem 0 0.5rem 0;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.offer-mock-row {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 0.4rem;
}

.offer-mock-btn {
  height: 18px;
  border-radius: 4px;
  background: #6c5ce7;
  width: 60%;
  margin-top: auto;
}

.offer-template-footer {
  padding: 0.9rem 1.15rem;
  background: #141324;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.offer-template-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.offer-template-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.offer-template-icon {
  color: #94a3b8;
  width: 16px;
  height: 16px;
}

.offer-template-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(108, 92, 231, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(108, 92, 231, 0.4);
}

/* Callout Box (Screenshot 1) */
.offer-subtext {
  font-size: 0.92rem;
  font-weight: 600;
  color: #cbd5e1;
  margin: 0 0 0.75rem 0;
}

.offer-callout-box {
  background: #11101d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.15rem 1.35rem;
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.offer-callout-box strong {
  color: #e2e8f0;
}

.offer-save-btn {
  background: #6c5ce7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.65rem 1.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.offer-save-btn:hover {
  background: #5a48df;
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.4);
}

/* =======================================================
   MEMBERS AREA SETTINGS (Admin Dashboard Theme)
   ======================================================= */
.members-area-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 900px;
}

.members-area-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.members-area-subtext {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0 0 1.15rem 0;
}

.members-area-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
  display: block;
}

.members-area-color-box {
  background: #12111f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
}

.members-area-swatch {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  flex-shrink: 0;
  background-color: #ffffff;
  display: inline-block;
  transition: transform 0.15s ease;
}

.members-area-swatch:hover {
  transform: scale(1.05);
}

.members-area-hex-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  width: 80px;
}

.members-area-color-name {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 500;
  margin-left: 0.25rem;
}

.members-area-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.members-area-item {
  background: #12111f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.members-area-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: #151424;
}

.members-area-item-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.members-area-item-icon {
  color: #ffffff;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.members-area-item-name {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
}

/* Custom Toggle Switch (Matches Admin Dashboard) */
.members-area-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.members-area-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.members-area-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2e2d42;
  border-radius: 24px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.members-area-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.members-area-switch input:checked + .members-area-slider {
  background-color: #6c5ce7;
}

.members-area-switch input:checked + .members-area-slider:before {
  transform: translateX(20px);
}

.members-area-save-btn {
  background: #6c5ce7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.65rem 1.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.members-area-save-btn:hover {
  background: #5a48df;
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.4);
}

/* =======================================================
   PRODUCT SETTINGS (Admin Dashboard Theme)
   ======================================================= */
.product-settings-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
}

.product-settings-main-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
}

.product-type-accordion {
  background: #12111f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.product-type-header {
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.product-type-header:hover {
  background: #161526;
}

.product-type-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.product-type-chevron {
  color: #94a3b8;
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.product-type-accordion.expanded .product-type-chevron {
  transform: rotate(180deg);
}

.product-type-content {
  padding: 1.25rem 1.35rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.75rem;
  display: block;
}

.product-template-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #11101e;
  overflow: hidden;
  max-width: 620px;
}

.product-template-preview {
  padding: 1.25rem;
  background: #161528;
  display: flex;
  justify-content: center;
}

.product-mock-form {
  background: #1e1d32;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.product-mock-thumb {
  width: 58px;
  height: 50px;
  background: #282740;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 1rem;
}

.product-mock-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.product-mock-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.product-mock-sub {
  font-size: 0.8rem;
  color: #94a3b8;
}

.product-mock-booking-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-right: 1rem;
}

.product-mock-field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
}

.product-mock-field-input {
  background: #141324;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.product-mock-scrollbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 16px;
  height: 48px;
}

.product-mock-arrow {
  font-size: 8px;
  color: #94a3b8;
  line-height: 1;
}

.product-mock-thumb-bar {
  width: 10px;
  height: 16px;
  background: #6c5ce7;
  border-radius: 3px;
}

.product-template-footer {
  padding: 0.85rem 1.15rem;
  background: #12111f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-template-footer-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.product-template-footer-desc {
  font-size: 0.8rem;
  color: #94a3b8;
}

.product-redirect-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.product-redirect-subtext {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
  margin: 0 0 0.75rem 0;
}

.product-callout-box {
  background: #11101d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.15rem 1.35rem;
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.product-callout-box strong {
  color: #e2e8f0;
}

/* ===================================================
   PANEL: CONNECT YOUR WEBSITE (Admin Dashboard Theme)
   =================================================== */
.connect-website-container {
  padding: 0.5rem 0 2.5rem 0;
  max-width: 960px;
}

.connect-website-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 0.75rem;
  display: block;
}

.connect-website-input-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.connect-website-input {
  background: #141324;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  height: 44px;
  padding: 0 1rem;
  font-size: 0.92rem;
  color: #ffffff;
  width: 440px;
  max-width: 100%;
  transition: all 0.2s ease;
}

.connect-website-input:focus {
  border-color: #6c5ce7;
  outline: none;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.connect-website-input::placeholder {
  color: #64748b;
}

.connect-website-btn-primary {
  height: 44px;
  background: #6c5ce7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.1s ease;
}

.connect-website-btn-primary:hover {
  background: #5b4cc4;
}

.connect-website-btn-primary:active {
  transform: scale(0.98);
}

.connect-save-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #10b981;
  font-size: 0.85rem;
  margin-left: 0.25rem;
  font-weight: 500;
}

.connect-script-output-section {
  animation: fadeInScript 0.25s ease-out;
}

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

/* Tabs */
.connect-sdk-tabs-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.25rem;
}

.connect-sdk-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.25rem 0.85rem 0.25rem;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 2px solid #6c5ce7;
  margin-bottom: -1px;
}

/* Script Title */
.connect-sdk-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.connect-sdk-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
}

.connect-sdk-info-btn {
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.connect-sdk-info-btn:hover {
  color: #ffffff;
}

/* Code Box */
.connect-code-box {
  background: #0e0d1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.connect-code-box pre {
  margin: 0;
  padding: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #e2e8f0;
  white-space: pre;
}

/* Action Buttons */
.connect-code-actions-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.connect-btn-copy {
  height: 42px;
  background: #6c5ce7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease, transform 0.1s ease;
}

.connect-btn-copy:hover {
  background: #5b4cc4;
}

.connect-btn-copy:active {
  transform: scale(0.98);
}

.connect-btn-invite {
  height: 42px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 6px;
  padding: 0 1.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.connect-btn-invite:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ===================================================
   PANEL: MAIL SETTINGS (Admin Dashboard Theme)
   =================================================== */
.mail-settings-container {
  padding: 0.25rem 0 3rem 0;
  max-width: 1100px;
}

/* 4 Tab Cards Bar */
.mail-tabs-bar {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.25rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.mail-tabs-bar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

.mail-tab-card {
  flex: 1;
  min-width: 140px;
  background: #141324;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px 8px 0 0;
  padding: 1rem 1.15rem;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mail-tab-card:hover {
  background: #1a182e;
  border-color: rgba(255, 255, 255, 0.15);
}

.mail-tab-card.active {
  background: #18172c;
  border-color: rgba(108, 92, 231, 0.35);
}

.mail-tab-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 0.3rem;
  transition: color 0.2s ease;
}

.mail-tab-card.active .mail-tab-card-title {
  color: #ffffff;
}

.mail-tab-card-sub {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.mail-tab-card.active .mail-tab-card-sub {
  color: #a5b4fc;
}

.mail-tab-active-indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  border-radius: 3px 3px 0 0;
  transition: background 0.2s ease;
}

.mail-tab-card.active .mail-tab-active-indicator {
  background: #6c5ce7;
}

/* Toolbar: Filters, Search, Add buttons */
.mail-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.mail-toolbar-left,
.mail-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.mail-select-filter,
.mail-select-show,
.mail-select {
  background: #141324;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 6px;
  height: 38px;
  padding: 0 0.85rem;
  font-size: 0.88rem;
  cursor: pointer;
  outline: none;
}

.mail-select-filter {
  min-width: 140px;
}

.mail-select:focus,
.mail-select-filter:focus,
.mail-select-show:focus {
  border-color: #6c5ce7;
}

/* Custom Filter Dropdowns in Mail Settings */
.mail-custom-dropdown {
  position: relative;
  display: inline-block;
}

.mail-dropdown-trigger {
  min-width: 145px;
  height: 38px;
  background: #141324;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 6px;
  padding: 0 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  outline: none;
  transition: all 0.2s ease;
}

.mail-dropdown-trigger:hover,
.mail-custom-dropdown.open .mail-dropdown-trigger {
  border-color: rgba(255, 255, 255, 0.25);
  background: #18172c;
}

.mail-dropdown-trigger .mail-dropdown-chevron {
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.mail-custom-dropdown.open .mail-dropdown-chevron {
  transform: rotate(180deg);
}

.mail-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 175px;
  width: max-content;
  max-width: 250px;
  background: #131222;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  z-index: 500;
  padding: 0.4rem 0;
  animation: modalPopIn 0.15s ease-out;
}

.mail-dropdown-search-wrap {
  padding: 0.35rem 0.65rem 0.5rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.mail-dropdown-search-input {
  width: 100%;
  height: 30px;
  background: #0b0a14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 0 1.8rem 0 0.55rem;
  color: #ffffff;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.mail-dropdown-search-input:focus {
  border-color: #6c5ce7;
}

.mail-dropdown-search-box i,
.mail-dropdown-search-box svg {
  position: absolute;
  right: 0.5rem;
  color: #64748b;
  pointer-events: none;
}

.mail-dropdown-list {
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.mail-dropdown-list::-webkit-scrollbar {
  width: 5px;
}

.mail-dropdown-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.mail-dropdown-item {
  padding: 0.55rem 0.85rem;
  color: #cbd5e1;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.mail-dropdown-item:hover {
  background: #1e1d35;
  color: #ffffff;
}

.mail-dropdown-item.active {
  background: rgba(108, 92, 231, 0.18);
  color: #ffffff;
  font-weight: 600;
}

.mail-btn-outline {
  height: 38px;
  background: #141324;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 6px;
  padding: 0 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.mail-btn-outline:hover {
  background: #1e1d34;
  border-color: rgba(255, 255, 255, 0.25);
}

.mail-search-box {
  position: relative;
  width: 220px;
}

.mail-search-box input {
  width: 100%;
  height: 38px;
  background: #141324;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 6px;
  padding: 0 2rem 0 0.85rem;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.mail-search-box input:focus {
  border-color: #6c5ce7;
}

.mail-search-box input::placeholder {
  color: #64748b;
}

.mail-search-box i,
.mail-search-box svg {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.mail-show-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.88rem;
}

/* Empty State */
.mail-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
  text-align: center;
}

.mail-empty-icon-wrap {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.mail-empty-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.4rem 0;
}

.mail-empty-sub {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

/* Forms (Bounce & Footer) */
.mail-form {
  padding: 0.5rem 0;
}

.mail-form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

@media (max-width: 768px) {
  .mail-form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.mail-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mail-field-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mail-field-info {
  color: #94a3b8;
  cursor: help;
  display: inline-flex;
  align-items: center;
}

.mail-input,
.mail-textarea {
  background: #141324;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
}

.mail-input {
  height: 42px;
}

.mail-input:focus,
.mail-textarea:focus {
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.18);
}

.mail-input::placeholder,
.mail-textarea::placeholder {
  color: #64748b;
}

.mail-input-with-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.mail-input-inner-icon {
  position: absolute;
  right: 0.85rem;
  color: #64748b;
  pointer-events: none;
}

/* Custom Checkbox */
.mail-custom-checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
}

.mail-custom-checkbox-wrap input {
  display: none;
}

.mail-custom-checkbox-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #141324;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.2s ease;
}

.mail-custom-checkbox-wrap input:checked + .mail-custom-checkbox-box {
  background: #6c5ce7;
  border-color: #6c5ce7;
  color: #ffffff;
}

.mail-checkbox-text {
  font-size: 0.92rem;
  font-weight: 500;
  color: #cbd5e1;
}

/* Bottom Action Bar */
.mail-bottom-action-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2.5rem;
}

.mail-btn-reset {
  height: 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 6px;
  padding: 0 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mail-btn-reset:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.mail-btn-save {
  height: 40px;
  background: #6c5ce7;
  border: none;
  color: #ffffff;
  border-radius: 6px;
  padding: 0 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.mail-btn-save:hover {
  background: #5b4cc4;
}

.mail-btn-save:active {
  transform: scale(0.98);
}

/* Mail Footer Layout (Left Form, Right Preview) */
.mail-footer-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
}

@media (max-width: 900px) {
  .mail-footer-layout {
    grid-template-columns: 1fr;
  }
}

.mail-follow-section {
  margin-top: 1.5rem;
}

.mail-follow-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem 0;
}

.mail-social-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.mail-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  min-width: 70px;
}

.mail-toggle-wrap input {
  display: none;
}

.mail-toggle-slider {
  width: 34px;
  height: 18px;
  border-radius: 10px;
  background: #28273d;
  position: relative;
  transition: background 0.2s ease;
}

.mail-toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.2s ease;
}

.mail-toggle-wrap input:checked + .mail-toggle-slider {
  background: #6c5ce7;
}

.mail-toggle-wrap input:checked + .mail-toggle-slider::after {
  transform: translateX(16px);
}

.mail-toggle-label {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
}

.mail-social-input-wrap {
  display: flex;
  align-items: center;
  background: #141324;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  height: 40px;
  flex: 1;
  padding: 0 0.5rem 0 0.85rem;
  gap: 0.5rem;
  transition: border-color 0.2s ease;
}

.mail-social-input-wrap:focus-within {
  border-color: #6c5ce7;
}

.mail-social-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.88rem;
  flex: 1;
}

.mail-social-input::placeholder {
  color: #64748b;
}

.mail-social-icon.fb { color: #1877f2; }
.mail-social-icon.tw { color: #ffffff; }
.mail-social-icon.li { color: #0a66c2; }
.mail-social-icon.yt { color: #ff0000; }

.mail-input-clear-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.mail-input-clear-btn:hover {
  color: #ffffff;
}

/* Mail Footer Live Preview */
.mail-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.mail-preview-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.mail-choose-themes-link {
  color: #6c5ce7;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.mail-choose-themes-link:hover {
  color: #8b7af7;
  text-decoration: underline;
}

.mail-preview-disclaimer {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.mail-footer-preview-card {
  background: #1e1d32;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.mail-footer-preview-left {
  flex: 1;
}

.mail-footer-preview-biz {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.mail-footer-preview-addr {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

.mail-footer-preview-social {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mail-footer-social-icons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mail-footer-preview-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0.35rem;
}

.mail-footer-powered-label {
  font-size: 0.75rem;
  color: #94a3b8;
}

.mail-footer-powered-badge {
  font-size: 0.95rem;
  font-weight: 700;
  color: #6c5ce7;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Add New SMTP Configuration View (Screenshot 4 layout & dark styling)
   ========================================================================== */
.smtp-config-view {
  padding: 0.5rem 0 2rem 0;
  animation: modalPopIn 0.2s ease-out;
}

.smtp-config-header {
  margin-bottom: 2rem;
}

.smtp-config-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.03em;
  margin: 0 0 0.4rem 0;
}

.smtp-breadcrumb-arrow {
  color: #8b5cf6;
  font-size: 1rem;
  user-select: none;
}

.smtp-config-provider-name {
  color: #ffffff;
  font-weight: 700;
}

.smtp-config-subtitle {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0;
}

.smtp-fields-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
  margin-bottom: 2.2rem;
}

.smtp-form-group.col-span-2 {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .smtp-fields-grid {
    grid-template-columns: 1fr;
  }
  .smtp-form-group.col-span-2 {
    grid-column: span 1;
  }
}

.smtp-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.smtp-label {
  font-size: 0.86rem;
  font-weight: 500;
  color: #cbd5e1;
}

.smtp-req {
  color: #ef4444;
  font-weight: bold;
}

.smtp-input,
.smtp-select {
  height: 42px;
  background: #141324;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 6px;
  padding: 0 0.85rem;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
}

.smtp-input:focus,
.smtp-select:focus {
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.18);
}

.smtp-input::placeholder {
  color: #64748b;
}

.smtp-input:disabled,
.smtp-select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #0f0e1c;
}

.smtp-sending-limit-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.smtp-section-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.smtp-section-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #94a3b8;
  max-width: 900px;
  margin: 0 0 1.25rem 0;
}

.smtp-limit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
  margin-bottom: 1.25rem;
}

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

.smtp-checkbox-row {
  margin-top: 1rem;
  display: flex;
  align-items: center;
}

.smtp-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
}

.smtp-checkbox {
  width: 17px;
  height: 17px;
  accent-color: #6c5ce7;
  cursor: pointer;
}

.smtp-checkbox-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: #cbd5e1;
}

.smtp-alert-msg {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.88rem;
  margin: 1.25rem 0;
}

.smtp-alert-msg.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.smtp-alert-msg.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.smtp-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.smtp-btn {
  height: 38px;
  padding: 0 1.4rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.smtp-btn-secondary {
  background: #18172c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
}

.smtp-btn-secondary:hover {
  background: #23223f;
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.smtp-btn-primary {
  background: #6c5ce7;
  border: none;
  color: #ffffff;
  font-weight: 600;
  padding: 0 1.75rem;
}

.smtp-btn-primary:hover {
  background: #5b4cc4;
}

/* ==========================================================================
   FORM SETTINGS PANEL (MATCHING USER REFERENCE PIXEL-BY-PIXEL)
   ========================================================================== */
.form-settings-container {
  padding: 0.5rem 0 2.5rem 0;
  max-width: 900px;
}

.form-settings-section {
  margin-bottom: 2.25rem;
}

.form-settings-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1.25rem 0;
  letter-spacing: -0.01em;
}

.form-settings-sublabel {
  font-size: 0.88rem;
  font-weight: 400;
  color: #8e95a5;
  margin-bottom: 0.95rem;
}

.form-settings-group {
  margin-bottom: 1.5rem;
}

.form-settings-group-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.form-settings-behavior-box {
  background: #141324;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #828a99;
  max-width: 850px;
  box-sizing: border-box;
}

.form-settings-field-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.form-settings-required {
  color: #ef4444;
  font-weight: 700;
  margin-left: 2px;
}

.form-settings-checkbox-row {
  margin-bottom: 0.65rem;
}

.form-settings-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
}

.form-settings-custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  background: #100f20;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: all 0.15s ease;
  margin: 0;
}

.form-settings-custom-checkbox:checked {
  background: #4f46e5;
  border-color: #4f46e5;
}

.form-settings-custom-checkbox:checked::before {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.form-settings-checkbox-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
}

.form-settings-input {
  width: 100%;
  max-width: 850px;
  height: 44px;
  background: #0f0e1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0 1rem;
  font-size: 0.9rem;
  color: #94a3b8;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.form-settings-input:focus {
  border-color: rgba(108, 92, 231, 0.5);
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
}

/* Custom Dropdown matching Screenshot 1 & 2 */
.form-settings-dropdown-wrap {
  position: relative;
  max-width: 850px;
  width: 100%;
}

.form-settings-dropdown-trigger {
  width: 100%;
  height: 44px;
  background: #0f0e1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0 1rem;
  font-size: 0.9rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-settings-dropdown-wrap.open .form-settings-dropdown-trigger {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.form-settings-dropdown-chevron {
  width: 16px;
  height: 16px;
  color: #ffffff;
  transition: transform 0.2s ease;
}

.form-settings-dropdown-wrap.open .form-settings-dropdown-chevron {
  transform: rotate(180deg);
}

.form-settings-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0f0e1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 50;
  box-sizing: border-box;
  overflow: hidden;
}

.form-settings-dropdown-item {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #94a3b8;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.form-settings-dropdown-item:hover,
.form-settings-dropdown-item.active {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.form-settings-actions-row {
  display: flex;
  align-items: center;
  margin-top: 1.75rem;
}

.form-settings-save-btn {
  height: 38px;
  padding: 0 1.5rem;
  background: #6c5ce7;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-settings-save-btn:hover {
  background: #5b4cc4;
}

.form-settings-save-btn:active {
  transform: scale(0.98);
}

/* ================================================================
   KAYWAT ECOSYSTEM INTEGRATION CARDS
   ================================================================ */

/* First-party app card — glowing gradient border */
.kaywat-app-card {
  position: relative;
  border: 1.5px solid transparent;
  background-clip: padding-box;
  background-image: none;
}

.kaywat-app-card::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.55) 0%, rgba(99, 102, 241, 0.4) 50%, rgba(249, 115, 22, 0.25) 100%);
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.kaywat-app-card:hover::before {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.8) 0%, rgba(99, 102, 241, 0.6) 50%, rgba(249, 115, 22, 0.45) 100%);
}

/* KayWat App badge */
.kaywat-app-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(90deg, #7c3aed 0%, #6366f1 100%);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
  z-index: 1;
}

/* KayWat dropdown item highlight */
.kaywat-dropdown-item {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.08) 0%, transparent 100%) !important;
  color: #a78bfa !important;
  font-weight: 600 !important;
}

.kaywat-dropdown-item:hover,
.kaywat-dropdown-item.active {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%) !important;
  color: #c4b5fd !important;
}

/* OAuth button override */
.kaywat-oauth-btn {
  background: linear-gradient(90deg, #7c3aed 0%, #6366f1 100%) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.kaywat-oauth-btn:hover {
  background: linear-gradient(90deg, #6d28d9 0%, #4f46e5 100%) !important;
  transform: translateY(-1px);
}

.kaywat-oauth-btn.connected {
  background: linear-gradient(90deg, #059669 0%, #10b981 100%) !important;
}

/* ================================================================
   KAYWAT OAUTH MODAL
   ================================================================ */

.kaywat-oauth-dialog {
  position: relative;
  background: linear-gradient(160deg, #17163a 0%, #12112b 60%, #0f0e22 100%);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,255,255,0.04), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: kaywatModalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes kaywatModalIn {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.kaywat-oauth-state {
  animation: kaywatFadeIn 0.2s ease;
}

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

/* ── App Header ── */
.kaywat-oauth-app-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.kaywat-oauth-app-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.kaywat-oauth-app-logo svg {
  width: 44px;
  height: 44px;
}

.kaywat-oauth-app-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.2rem 0;
}

.kaywat-oauth-app-tag {
  font-size: 0.73rem;
  color: #818cf8;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── Description ── */
.kaywat-oauth-desc {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
}

/* ── Permissions ── */
.kaywat-oauth-perms {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.kaywat-oauth-perms-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kaywat-oauth-perms-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.kaywat-oauth-perm-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* ── Input ── */
.kaywat-oauth-input-wrap {
  margin-bottom: 1.25rem;
}

.kaywat-oauth-input-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.4rem;
}

.kaywat-oauth-input {
  border-color: rgba(124, 58, 237, 0.4) !important;
  transition: border-color 0.2s !important;
}

.kaywat-oauth-input:focus {
  border-color: #7c3aed !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
}

.kaywat-oauth-error {
  font-size: 0.78rem;
  color: #f87171;
  margin-top: 0.4rem;
}

/* ── Actions ── */
.kaywat-oauth-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ── Connect button ── */
.kaywat-oauth-connect-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.4rem;
  background: linear-gradient(90deg, #7c3aed 0%, #6366f1 100%);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.kaywat-oauth-connect-btn:hover {
  background: linear-gradient(90deg, #6d28d9 0%, #4f46e5 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

/* ── Privacy note ── */
.kaywat-oauth-privacy-note {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #475569;
  margin-top: 1rem;
  line-height: 1.4;
}

/* ── CONNECTING STATE ── */
.kaywat-oauth-loading-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kaywat-oauth-spinner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(124, 58, 237, 0.2);
  border-top-color: #7c3aed;
  animation: kaywatSpin 0.9s linear infinite;
}

@keyframes kaywatSpin {
  to { transform: rotate(360deg); }
}

.kaywat-oauth-loading-app-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
}

.kaywat-oauth-loading-app-logo svg {
  width: 38px;
  height: 38px;
}

.kaywat-oauth-loading-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin: 0 0 0.35rem 0;
}

.kaywat-oauth-loading-sub {
  font-size: 0.82rem;
  color: #64748b;
  text-align: center;
  margin: 0 0 1.5rem 0;
}

.kaywat-oauth-loading-steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.kaywat-oauth-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #475569;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s;
}

.kaywat-oauth-step.active {
  color: #a78bfa;
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
}

.kaywat-oauth-step.done {
  color: #10b981;
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.2);
}

/* ── CONNECTED STATE ── */
.kaywat-oauth-success-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
}

.kaywat-oauth-success-icon {
  flex-shrink: 0;
}

.kaywat-oauth-success-title {
  font-size: 1rem;
  font-weight: 700;
  color: #10b981;
  margin: 0 0 0.2rem 0;
}

.kaywat-oauth-success-email {
  font-size: 0.8rem;
  color: #64748b;
}

/* ── Linked Data Stats ── */
.kaywat-oauth-linked-data {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.kaywat-oauth-linked-data.gh-active {
  display: block;
  width: 100%;
  margin-bottom: 0.75rem;
}

.kaywat-linked-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.85rem 0.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
}

.kaywat-linked-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #a78bfa;
  line-height: 1;
}

.kaywat-linked-lbl {
  font-size: 0.7rem;
  color: #64748b;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Synergy notice ── */
.kaywat-oauth-synergy-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 8px;
  font-size: 0.8rem;
  color: #a5b4fc;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

/* ── Premium GitHub Connected Profile ── */
.gh-connected-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.gh-profile-hero {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.gh-profile-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #10b981, #6366f1);
}

.gh-avatar-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

.gh-avatar-img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  object-fit: cover;
  background: #1e1e2f;
}

.gh-online-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #12112b;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.gh-profile-meta {
  flex: 1;
  min-width: 0;
}

.gh-profile-names {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
  flex-wrap: wrap;
}

.gh-display-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.gh-handle-link {
  font-size: 0.85rem;
  color: #818cf8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.gh-handle-link:hover {
  color: #a5b4fc;
  text-decoration: underline;
}

.gh-bio {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0.25rem 0 0.5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gh-email-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.gh-email-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
}

.gh-email-pill.primary {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
}

.gh-email-pill.secondary {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.gh-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gh-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.85rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-align: center;
}

.gh-stat-card .val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.gh-stat-card .lbl {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.gh-scopes-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  font-size: 0.8rem;
  color: #d1fae5;
}

.gh-website-quicklink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.gh-website-quicklink:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ── Linked since ── */
.kaywat-oauth-linked-since {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #475569;
  margin-bottom: 0.5rem;
}

/* ── Disconnect button ── */
.kaywat-oauth-disconnect-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  color: #f87171;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.kaywat-oauth-disconnect-btn:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.6);
}

/* ================================================================
   CONTACTS (MANAGE CATEGORY) - MATCHING SCREENSHOTS 1 TO 5
   ================================================================ */
.contacts-container {
  padding: 0.5rem 0 2.5rem 0;
  width: 100%;
  max-width: 1100px;
}

/* Tabs Bar */
.contacts-tabs-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
}

.contacts-tab-btn {
  background: #141324;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.55rem 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  outline: none;
}

.contacts-tab-btn:hover {
  color: #ffffff;
  background: #1a192e;
}

.contacts-tab-btn.active {
  color: #ffffff;
  background: #18172c;
  border-color: rgba(108, 92, 231, 0.4);
}

.contacts-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -0.55rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #6c5ce7;
  border-radius: 2px;
}

/* Toolbar Row */
.contacts-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

/* Filter Dropdown */
.contacts-filter-dropdown-wrap {
  position: relative;
  min-width: 220px;
}

.contacts-filter-trigger {
  width: 100%;
  height: 38px;
  background: #100f20;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0 0.85rem;
  color: #ffffff;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.contacts-filter-trigger:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.contacts-filter-dropdown-wrap.open .contacts-filter-trigger {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.contacts-filter-dropdown-wrap.open #contactsFilterChevron {
  transform: rotate(180deg);
}

.contacts-filter-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #100f20;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 50;
  overflow: hidden;
}

.contacts-filter-item {
  padding: 0.65rem 0.85rem;
  font-size: 0.86rem;
  color: #94a3b8;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.contacts-filter-item:hover,
.contacts-filter-item.active {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* Toolbar Right */
.contacts-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contacts-btn-new-field {
  height: 38px;
  background: #6c5ce7;
  border: none;
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  outline: none;
}

.contacts-btn-new-field:hover {
  background: #5b4cc4;
}

.contacts-btn-new-field:active {
  transform: scale(0.98);
}

.contacts-search-box {
  position: relative;
  width: 220px;
  height: 38px;
  background: #100f20;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  box-sizing: border-box;
}

.contacts-search-box input {
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.88rem;
  outline: none;
  padding-right: 1.5rem;
}

.contacts-search-box input::placeholder {
  color: #64748b;
}

.contacts-search-icon {
  position: absolute;
  right: 0.75rem;
  width: 15px;
  height: 15px;
  color: #64748b;
  pointer-events: none;
}

.contacts-show-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contacts-show-label {
  font-size: 0.86rem;
  color: #94a3b8;
}

.contacts-show-dropdown-wrap {
  position: relative;
  width: 72px;
}

.contacts-show-trigger {
  width: 100%;
  height: 38px;
  background: #100f20;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0 0.65rem;
  color: #ffffff;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
}

.contacts-show-dropdown-wrap.open .contacts-show-trigger {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.contacts-show-dropdown-wrap.open i {
  transform: rotate(180deg);
}

.contacts-show-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #100f20;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 50;
  overflow: hidden;
}

.contacts-show-item {
  padding: 0.5rem 0.65rem;
  font-size: 0.86rem;
  color: #94a3b8;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, color 0.15s;
}

.contacts-show-item:hover,
.contacts-show-item.active {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* Contacts Table */
.contacts-table-container {
  background: #141324;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
}

.contacts-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.contacts-table thead tr {
  height: 46px;
  background: #100f20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.contacts-table th {
  padding: 0.65rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #cbd5e1;
  user-select: none;
}

.contacts-table tbody tr {
  height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s;
}

.contacts-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.contacts-table td {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  color: #ffffff;
}

.contacts-table td.col-date {
  color: #94a3b8;
  font-size: 0.85rem;
}

.contacts-table td.col-type {
  color: #cbd5e1;
  font-size: 0.85rem;
}

.contacts-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  justify-content: flex-end;
}

.contacts-action-icon-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.contacts-action-icon-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.contacts-action-icon-btn.delete-btn:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
}

/* Bulk Delete button in header */
.contacts-header-bulk-delete-btn {
  background: #1e1d35;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 0.82rem;
  padding: 0.25rem 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.2s;
}

.contacts-header-bulk-delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* Pagination Row */
.contacts-pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.contacts-pagination-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.contacts-entries-count {
  font-size: 0.86rem;
  color: #94a3b8;
}

.contacts-pagination-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.contacts-page-btn {
  width: 32px;
  height: 32px;
  background: #141324;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.contacts-page-btn:hover:not(:disabled) {
  background: #1d1c33;
  color: #ffffff;
}

.contacts-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.contacts-pages-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.contacts-page-num {
  width: 32px;
  height: 32px;
  background: #141324;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #94a3b8;
  font-size: 0.86rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.contacts-page-num:hover {
  color: #ffffff;
  background: #1d1c33;
}

.contacts-page-num.active {
  background: #1c1b33;
  border-color: #6c5ce7;
  color: #ffffff;
  font-weight: 700;
}

.contacts-lead-score-card {
  background: #141324;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
}

/* Lead Score Setting Radio Options (Matching Screenshot 1) */
.contacts-radio-group {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2rem;
  padding: 0.25rem 0;
}

.contacts-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  user-select: none;
}

.contacts-custom-radio {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #141324;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-content: center;
  cursor: pointer;
  margin: 0;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.contacts-custom-radio:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

.contacts-custom-radio:checked {
  background: #6c5ce7;
  border-color: #6c5ce7;
}

.contacts-custom-radio:checked::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
}

.contacts-radio-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.45;
}

/* ================================================================
   API SETTINGS TAB (Matching Reference & Third-Party Platform Credentials)
   ================================================================ */

/* KayWat Native API Key Card */
.api-key-card {
  background: #141324;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.api-key-prompt {
  font-size: 0.96rem;
  color: #e2e8f0;
  margin: 0 0 1.5rem 0;
  font-weight: 500;
  line-height: 1.5;
}

.api-key-label {
  display: block;
  font-size: 0.96rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.api-key-input-wrapper {
  position: relative;
  width: 100%;
}

.api-key-input {
  width: 100%;
  background: #0d0c1b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: #f1f5f9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.api-key-input:focus {
  border-color: #6c5ce7;
}

.api-key-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.api-copy-btn {
  background: #18172c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 0.6rem 2.25rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.api-copy-btn:hover {
  background: #23223f;
  border-color: rgba(255, 255, 255, 0.25);
}

.api-copy-btn.copied {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
}

.api-regen-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.api-regen-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.22);
}

/* API Note Section */
.api-note-section {
  margin-top: 2rem;
  margin-bottom: 2.25rem;
  padding: 0 0.25rem;
}

.api-note-title {
  font-size: 0.92rem;
  font-style: italic;
  color: #818cf8;
  font-weight: 600;
}

.api-note-list {
  list-style-type: disc;
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
}

.api-note-list li {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 0.35rem;
}

/* ===================================================
   SUBSTACK-STYLE BLOG EMAIL SETTINGS (HEADERS & FOOTERS)
   =================================================== */
.substack-settings-container {
  max-width: 840px;
  padding: 10px 0 60px 0;
  color: #f1f5f9;
}

.substack-settings-heading {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px 0;
  letter-spacing: -0.01em;
}

.substack-settings-section {
  margin-bottom: 42px;
}

.substack-item-row {
  margin-bottom: 24px;
}

.substack-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.substack-item-label {
  font-size: 14.5px;
  font-weight: 600;
  color: #f1f5f9;
}

.substack-action-link {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 6px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.substack-action-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.substack-action-link.active-editing {
  color: #ff6719;
  font-weight: 600;
  text-decoration: underline;
}

.substack-banner-box {
  background: #141923;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.substack-banner-box:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: #181d2a;
}

.substack-banner-placeholder {
  color: #64748b;
  font-size: 13.5px;
  font-weight: 500;
  pointer-events: none;
}

.substack-banner-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.substack-header-box {
  background: #141923;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  min-height: 56px;
  padding: 14px 18px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  outline: none;
  transition: border-color 0.15s;
}

.substack-header-box[contenteditable="true"] {
  border-color: #ff6719;
  background: #11151f;
}

.substack-footer-box {
  background: #141923;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 32px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.substack-footer-paragraph {
  font-size: 14px;
  color: #cbd5e1;
  font-style: italic;
  max-width: 660px;
  line-height: 1.6;
  margin: 0 0 22px 0;
  outline: none;
  border-radius: 4px;
  padding: 4px;
  transition: border-color 0.15s;
}

.substack-footer-paragraph[contenteditable="true"] {
  border: 1px dashed #ff6719;
  background: #11151f;
  font-style: normal;
}

.substack-pledge-orange-btn {
  background: #ff6719;
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(255, 103, 25, 0.25);
}

.substack-pledge-orange-btn:hover {
  background: #ea580c;
  transform: translateY(-1px);
}

.substack-test-email-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.substack-test-email-input {
  background: #0f131c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  width: 320px;
  outline: none;
  transition: border-color 0.15s;
}

.substack-test-email-input:focus {
  border-color: #ff6719;
}

.substack-send-test-btn {
  background: #ff6719;
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.substack-send-test-btn:hover {
  background: #ea580c;
}



