* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

:root {
  --mobile-topbar-height: 88px;
}

body {
  background: #f5f6fa;
  overflow-x: hidden;
}
.menu li.active {
  color: #1e272e;
  font-weight: 700;
}

.menu li.active:hover {
  background: transparent;
}

.menu li.active .menu-link-wrap {
  background: #fe9494;
  color: #000000;
 
  box-shadow: 0 6px 16px rgba(13, 36, 51, 0.16);
}

/* Layout */
.app {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: #000000;
  color: rgb(255, 255, 255);
  padding: 12px 16px 18px;
  position: fixed;
  top: 88px;
  left: 0;
  gap: 12px;
  display: flex;
  flex-direction: column;
  bottom: 0;
  overflow-y: auto;
  z-index: 940;
  border-top-right-radius: 18px;
  box-shadow: 10px 18px 30px rgba(0, 0, 0, 0.18);
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}

.logo {
  color: #f3f9ff;
  text-align: center;
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 12px 12px 4px;
}

.logo-version {
  color: #9fb7c8;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu li {
  padding: 0;
  margin-bottom: 0;
}

.menu-link-wrap {
  padding: 12px 14px;
  border-radius: 8px;
  transition: background 0.2s ease;
  background: #ffffff;
  color: #000000;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #1e3a4d;
}

.menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #0abde3;
  background: #0abde3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-icon svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-link-wrap a {
  color: inherit;
  text-decoration: none;
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  flex: 1 1 auto;
  min-width: 0;
}

.menu-link-wrap:hover {
  background: #1e3a4d;
  color: #ffffff;
  border-color: #0abde3;
}

.menu-link-wrap:hover .menu-icon {
  background: #0899c7;
  border-color: #0899c7;
}

/* Active state */
.menu li.active .menu-link-wrap {
  background: #0abde3;
  color: #ffffff;
  border-color: #0abde3;
}

.menu li.active .menu-icon {
  border-color: #ffffff;
  background: #ffffff;
}

.menu li.active .menu-icon svg {
  stroke: #0abde3;
}

.menu li.active .menu-link-wrap a {
  color: #ffffff;
}

.menu li.active:hover .menu-link-wrap {
  background: #0899c7;
}

.instruction-link-wrap {
  margin-top: 1px;
  background: #162d3a;
  color: #b8c5cf;
  border: 1px solid #1e3a4d;
}

.instruction-link-wrap:hover {
  background: #1e3a4d;
  color: #ffffff;
  border-color: #0abde3;
}

/* Main */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: 260px;
  min-height: 100vh;
}

/* Top Bar */
.topbar {
  min-height: 88px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 58%, #eef7fc 100%);
  display: flex;
  align-items: center;
  padding: 8px 18px;
  border-bottom: 1px solid #d7e5ef;
  box-shadow: 0 10px 26px rgba(12, 46, 68, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  overflow: hidden;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 196px;
  padding: 8px 12px 8px 8px;
  border: 1px solid #d8e8f1;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f4fbff 55%, #edf7ff 100%);
  box-shadow: 0 10px 24px rgba(14, 58, 82, 0.07);
  flex: 0 0 208px;
}

.mobile-header-toggle {
  display: none;
  margin-left: auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #cfe3ee;
  background: linear-gradient(135deg, #ffffff, #edf9ff);
  color: #0b6c89;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(14, 58, 82, 0.06);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mobile-header-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.mobile-header-toggle:hover {
  background: #0abde3;
  color: #ffffff;
  border-color: #0abde3;
}

.mobile-header-toggle:focus-visible {
  outline: 2px solid rgba(10, 189, 227, 0.35);
  outline-offset: 2px;
}

.topbar-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0abde3, #117ca1);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 18px rgba(17, 124, 161, 0.26);
}

.topbar-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.topbar-brand-title {
  color: #123247;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.topbar-brand-version {
  color: #688091;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.accounts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  padding: 0;
}

.header-account-box {
  background: linear-gradient(135deg, #f4fbff, #eaf6ff);
  border: 1px solid #cfe9f6;
  border-radius: 14px;
  padding: 8px 10px;
  min-width: 200px;
  max-width: 212px;
  flex: 0 1 212px;
  box-shadow: 0 8px 20px rgba(15, 64, 91, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.header-shortcuts {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 4px;
  border: 1px solid #dbe8f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(15, 64, 91, 0.05);
}

.header-utility-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 1 auto;
  min-width: 0;
  padding: 4px 5px;
  border: 1px solid #dbe8f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px rgba(15, 64, 91, 0.05);
}

.header-mode-box {
  background: linear-gradient(135deg, #fff9ee, #fff1d3);
  border: 1px solid #ead4a1;
  border-radius: 12px;
  padding: 6px 8px;
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.header-account-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64707c;
  margin-bottom: 4px;
}

.header-account-form {
  margin: 0;
}

.header-mode-form {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-account-select {
  width: 100%;
  border: 1px solid #b9d9e9;
  border-radius: 9px;
  padding: 7px 9px;
  background: #ffffff;
  color: #0b5f75;
  font-weight: 600;
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.header-mode-title {
  color: #62451d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.background-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.background-toggle-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.background-toggle-slider {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #c5d0d8;
  border: 1px solid #aebbc5;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex: 0 0 auto;
}

.background-toggle-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease;
}

.background-toggle-input:checked + .background-toggle-slider {
  background: #0abde3;
  border-color: #0abde3;
}

.background-toggle-input:checked + .background-toggle-slider::after {
  transform: translateX(18px);
}

.background-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.background-toggle-title {
  color: #46351b;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
}

.background-toggle-state {
  color: #70563a;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.background-toggle-input:focus-visible + .background-toggle-slider {
  outline: 2px solid rgba(10, 189, 227, 0.35);
  outline-offset: 2px;
}

.add-account {
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: #114f67;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-link-wrap {
  display: inline-flex;
  cursor: pointer;
}

.add-account:hover {
  background: #0abde3;
  color: #ffffff;
}

.topbar-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
  padding: 0;
}

.junk-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 8px;
  border-radius: 12px;
  border: 1px solid #cfe3ee;
  background: linear-gradient(135deg, #f9fbff, #eef6ff);
  color: #2f4b5b;
  font-weight: 700;
  font-size: 9.5px;
  line-height: 1.1;
  white-space: nowrap;
}

.junk-pill .junk-label {
  font-weight: 700;
  color: #5b6a76;
}

.junk-pill .junk-value {
  font-weight: 800;
  color: #0b5f75;
}

.account-pill {
  display: inline-block;
  padding: 8px 11px;
  border-radius: 12px;
  border: 1px solid #d0e4ef;
  background: linear-gradient(135deg, #f8fcff, #ebf6ff);
  color: #224457;
  font-weight: 700;
  font-size: 12px;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 8px 18px rgba(14, 58, 82, 0.06);
}

.clear-junk-form {
  margin: 0;
  flex: 0 0 auto;
}

.clear-junk-form .delete-btn {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: none;
}

.info-icon-link {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid #cfe4ef;
  color: #0b6c89;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
  background: linear-gradient(135deg, #ffffff, #edf9ff);
  box-shadow: 0 6px 14px rgba(14, 58, 82, 0.06);
}

.info-icon-link:hover {
  background: #0abde3;
  color: #ffffff;
  border-color: #0abde3;
}

/* Content */
.content {
  padding: 20px;
  padding-top: 110px;
}

.content h1 {
  margin-bottom: 10px;
}

.info-page {
  max-width: 1040px;
  margin: 0 auto;
}

.info-hero {
  width: 100%;
  max-width: 1040px;
  border: 1px solid #dce9f2;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7fcff 0%, #eef7fc 55%, #f6fbff 100%);
  padding: 22px 22px 18px;
  box-shadow: 0 8px 22px rgba(25, 60, 90, 0.08);
}

.info-kicker {
  margin: 0 0 8px;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid #b5d8ea;
  background: #ffffff;
  color: #4080a3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.info-quick-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #cfe3ee;
  background: #ffffff;
  color: #355668;
  font-size: 12px;
  font-weight: 600;
}

.info-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 300px;
  width: 100%;
}

.info-card {
  width: 100%;
  max-width: 900px;
  min-height: 80px;
  margin-right: 0;
  background: #ffffff;
  border: 1px solid #dfe8ef;
  border-left: 5px solid #0abde3;
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 230px 1fr;
  align-items: center;
  gap: 24px;
  box-shadow: 0 4px 14px rgba(22, 45, 62, 0.05);
}

.info-card-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.module-no {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #e8f7fc;
  border: 1px solid #c2e4f1;
  color: #0d7897;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-card h3 {
  margin: 0;
  font-size: 18px;
  color: #0abde3;
}

.info-card p {
  margin: 0;
  color: #000000;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .info-card {
    width: 100%;
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-4px);
}

/* Dashboard cards */
.dashboard-head p {
  color: #5f6368;
}

.dashboard-v2 {
  width: 100%;
  min-height: calc(100vh - 110px);
  border-radius: 18px;
  padding: 28px;
  background: radial-gradient(circle at top right, #e8f8ff 0%, #f6fbff 45%, #ffffff 100%);
}

.dashboard-v2-head h1 {
  margin: 0;
  font-size: 30px;
  color: #123247;
  letter-spacing: 0.01em;
}

.dashboard-v2-head p {
  margin: 8px 0 0;
  color: #4b6170;
  font-size: 15px;
}

.dashboard-v2-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.dashboard-v2-box {
  min-height: 156px;
  padding: 16px;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  color: #153447;
  border: 1px solid #d7e7f2;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(14, 61, 88, 0.08);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.dashboard-v2-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 1px solid #c8deed;
  background: linear-gradient(140deg, #eef8ff, #e3f2ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.dashboard-v2-icon svg {
  width: 24px;
  height: 24px;
  stroke: #1f6b8e;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s ease;
}

.dashboard-v2-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboard-v2-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.dashboard-v2-desc {
  font-size: 12px;
  color: #5a7281;
  line-height: 1.45;
}

.dashboard-v2-go {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1f6b8e;
  background: #edf7ff;
  border: 1px solid #cae2f1;
  border-radius: 999px;
  padding: 5px 10px;
}

.dashboard-v2-box:hover {
  transform: translateY(-4px);
  border-color: #b7d7e8;
  box-shadow: 0 12px 26px rgba(13, 58, 84, 0.16);
}

.dashboard-v2-box:hover .dashboard-v2-icon {
  border-color: #abd2e6;
  background: linear-gradient(140deg, #dff0ff, #cee8fb);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(29, 103, 141, 0.2);
}

.dashboard-v2-box:hover .dashboard-v2-go {
  color: #ffffff;
  background: #1f6b8e;
  border-color: #1f6b8e;
}

.dashboard-v2-box:active {
  transform: translateY(-1px) scale(0.99);
}

.tone-listing .dashboard-v2-icon svg { stroke: #1f6b8e; }
.tone-reply .dashboard-v2-icon svg { stroke: #225f9f; }
.tone-status .dashboard-v2-icon svg { stroke: #1e7a7a; }
.tone-email .dashboard-v2-icon svg { stroke: #8c4f27; }
.tone-account .dashboard-v2-icon svg { stroke: #5a5aa8; }
.tone-repost .dashboard-v2-icon svg { stroke: #2d7b62; }
.tone-schedule .dashboard-v2-icon svg { stroke: #8a5d1d; }
.tone-log .dashboard-v2-icon svg { stroke: #6c4a92; }
.tone-groups .dashboard-v2-icon svg { stroke: #7c3aed; }
.tone-website .dashboard-v2-icon svg { stroke: #0ea5e9; }
.tone-autorama .dashboard-v2-icon svg { stroke: #0f766e; }

.tone-listing .dashboard-v2-go { color: #1f6b8e; }
.tone-reply .dashboard-v2-go { color: #225f9f; }
.tone-status .dashboard-v2-go { color: #1e7a7a; }
.tone-email .dashboard-v2-go { color: #8c4f27; }
.tone-account .dashboard-v2-go { color: #5a5aa8; }
.tone-repost .dashboard-v2-go { color: #2d7b62; }
.tone-schedule .dashboard-v2-go { color: #8a5d1d; }
.tone-log .dashboard-v2-go { color: #6c4a92; }
.tone-groups .dashboard-v2-go { color: #7c3aed; }
.tone-website .dashboard-v2-go { color: #0ea5e9; }
.tone-autorama .dashboard-v2-go { color: #0f766e; }

.tone-listing .dashboard-v2-go:hover,
.tone-reply .dashboard-v2-go:hover,
.tone-status .dashboard-v2-go:hover,
.tone-email .dashboard-v2-go:hover,
.tone-account .dashboard-v2-go:hover,
.tone-repost .dashboard-v2-go:hover,
.tone-schedule .dashboard-v2-go:hover,
.tone-log .dashboard-v2-go:hover,
.tone-groups .dashboard-v2-go:hover {
  color: #ffffff;
}

@media (max-width: 1100px) {
  .dashboard-v2-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 760px) {
  .dashboard-v2 {
    padding: 18px;
  }

  .dashboard-v2-head h1 {
    font-size: 26px;
  }

  .dashboard-v2-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .dashboard-v2-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-cards {
  margin-top: 24px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.dashboard-card {
  position: relative;
  border: 1px solid #e6ebf2;
  border-top: 4px solid #0abde3;
  padding: 22px 18px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dashboard-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #1e272e;
}

.dashboard-card p {
  margin: 0;
  color: #59636e;
  font-size: 13px;
  line-height: 1.5;
}

.dashboard-card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #00759a;
  background: linear-gradient(135deg, #dff6fb, #eefcff);
  border: 1px solid #c9edf6;
}

.dashboard-card:hover {
  transform: translateY(-6px);
  border-color: #cfe9f6;
  box-shadow: 0 10px 22px rgba(15, 57, 85, 0.14);
}

.dashboard-card:active {
  transform: translateY(-2px);
}



/* -------------------------Add Account page CSS---------------------------- */
 /* Page container */
.page-container {
  max-width: 1100px;
  margin: 30px auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 24px;
  padding: 0 20px;
  align-items: start;
}

/* Heading */
.page-heading {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

/* Form Box */
.form-box {
  background: #fff;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-bottom: 0;
  width: 100%;
  max-width: 460px;
  margin-left: 0;
  text-align: center;
  align-self: center;
}

.form-box input[type="email"],
.form-box input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

.form-box button {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  background: #0abde3;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}

.form-box button:hover {
  background: #0097c7;
}
.info-text {
  grid-column: 1 / -1;
  font-size: 14px;
  color: #555;               /* subtle dark gray text */
  margin-top: 5px;
  margin-bottom: 0;
  line-height: 1.5;          /* improves readability */
  max-width: 600px;           /* optional, keeps it from stretching too wide */
}

/* Back button */
.btn-back {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;        /* added padding */
  background-color: #484747;
  color: white;
 
  border-radius: 6px;        /* rounded corners */
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s, color 0.2s; /* smooth hover */
}

.btn-back:hover {
  background-color: #666565;  /* slightly lighter on hover */
  color: #fff;
}

/* Accounts Box */
.accounts-box {
  background: #f8f9fa;
  padding: 20px 25px;
  width: 100%;
  max-width: 400px;
  justify-self: end;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

@media (max-width: 900px) {
  .page-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .accounts-box {
    max-width: none;
    justify-self: stretch;
  }
}

.accounts-box h2 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #333;
}

.accounts-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.accounts-box li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.accounts-box li span {
  font-weight: bold;
}

/* ---------------- Delete Listings page alignment ---------------- */
.delete-page {
  grid-template-columns: 1fr;
  justify-items: center;
}

.delete-page .form-box {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.delete-page .info-text,
.delete-page .page-heading {
  text-align: center;
}

.delete-back-row {
  width: 100%;
  display: flex;
  justify-content: center;
}

.delete-page .btn-back {
  margin: 24px auto 0;
}

/* Delete button */
.delete-btn {
  padding: 5px 10px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}

.delete-btn:hover {
  background: #c0392b;
}

/* Close button */
.close-msg {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
  line-height: 1;
}

.close-msg:hover {
  color: #000;
}

/* Message box – professional centered card */
.message-box {
  position: fixed;
  top: 55%;
  left: calc(50% + 120px); /* shifts right to avoid sidebar */
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 10px;
  padding: 28px 45px;
  min-width: 420px;
  max-width: 600px;
  font-weight: 700;
  font-size:20px;
  border-bottom:5px solid #0abde3;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
  z-index: 9999;
  animation: messageFadeIn 0.3s ease;
}

/* Success */
.message-success {
  color: #000000;
  border-left: 6px solid #2ecc71;
}

/* Failed */
.message-failed {
  color: #000000;
  border-left: 6px solid #e74c3c;
}

/* Loading */
.message-loading {
  color: #000000;
  border-left: 6px solid #0abde3;
}

/* Entry animation */
@keyframes messageFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}


    /*-------------------------------- auto_listing--------------------------------------- */
.btn-back {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 15px;
  background-color: #484747;  /* dark grey */
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s;
}

.btn-back:hover {
  background-color: #666565;  /* slightly lighter on hover */
}
    /* Center cards on Auto Listing page */
.cards-center {
  display: flex;
  flex-direction: column;     /* vertical */
  align-items: center;        /* center horizontally */
  gap: 25px;
  margin-top: 100px;
}

/* force same width for both cards */
.cards-center .card {
  height: 100px;
  width: 400px;               /* adjust if you want bigger/smaller */
}

/*----------------------- Auto_listing_Excel --------------------*/
.card-excel {
  border-top: 5px solid #0abde3;
}

/* Manual card */
.card-manual {
  border-top: 5px solid #0abde3;
}

/* Optional: nicer hover glow */
.card-excel:hover {
  box-shadow: 0 6px 15px rgba(10, 189, 227, 0.3);
}

.card-manual:hover {
 box-shadow: 0 6px 15px rgba(10, 189, 227, 0.3);
}



/* Excel page container: vertical spacing and center */
.excel-page-container {
  max-width: 700px;          /* smaller width */
  margin: 80px auto;         /* top-bottom spacing + center horizontally */
  padding: 0 20px;
}

/* Optional: adjust form-box width to fit container */
.excel-page-container .form-box {
  width: 100%;               /* matches container width */
  margin-top: 20px;
}
/* -----------------loading-overlay-----------------------  */

#loading-overlay {
  display: none; /* hidden by default */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#loading-overlay .loading-box {
  width: 72px;
  height: 72px;
  border: 2px solid #ffffff;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
}

#loading-overlay .spinner {
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  animation: spin 0.8s linear infinite;
}

#loading-overlay .loading-text {
  display: none;
  max-width: 220px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}

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



/*---------------------------for delete listings ------------------------*/
select.input-field,
.form-box input[type="text"],
.form-box input[type="url"],
.form-box input[type="number"],
.form-box textarea.input-field {
  width: 100%;
  padding: 12px 15px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

/* Danger button */
.danger-btn {
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}

.danger-btn:hover {
  background: #c0392b;
}

/* ================= Excel Upload Page (Redesign) ================= */

/* Page title */
.content h1 {
  text-align: center;
  font-size: 30px;
  margin-top: 10px;
  margin-bottom: 40px;
  color: #1e272e;
}

/* Excel page container */
.excel-page-container {
  
  max-width: 650px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

/* Section heading */
.excel-page-container h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #333;
}

/* Description text */
.excel-page-container p {
  font-size: 14px;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Upload card */
.excel-page-container .form-box {
  background: #ffffff;
  padding: 30px 35px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  border-top: 5px solid #0abde3;
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

/* File label */
.file-label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: left;
  color: #333;
}

/* File input */
.form-box input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 2px dashed #ccc;
  border-radius: 10px;
  font-size: 14px;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.form-box input[type="file"]:hover {
  border-color: #0abde3;
  background: #f0fbff;
}

/* Upload button */
.form-box button {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: #0abde3;
  color: white;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.form-box button:hover {
  background: #0097c7;
  transform: translateY(-1px);
}

.manual-listing-page {
  max-width: 860px;
}

.manual-note {
  margin-top: -8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #3f5563;
}

.manual-listing-form-box {
  text-align: left;
}

.manual-listing-form-box fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.manual-listing-form-box textarea.input-field {
  resize: vertical;
  min-height: 120px;
}

.manual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.manual-actions .manual-action-button {
  width: auto;
  padding: 12px 20px;
  flex: 0 1 auto;
  min-width: 140px;
  margin-top: 0;
}

.manual-action-button.manual-action-secondary {
  background: #e6edf3;
  color: #2f3a43;
}

.manual-action-button.manual-action-secondary:hover {
  background: #d8e3ea;
}

.manual-group-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.manual-group-modal.is-open {
  display: flex;
}

.manual-group-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 35, 50, 0.55);
  backdrop-filter: blur(2px);
}

.manual-group-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 92vw);
  max-height: 84vh;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(12, 25, 40, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-left: 32px;
}

.manual-group-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e1e9f0;
  background: #f9fbfd;
}

.manual-group-dialog-head h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #1e272e;
}

.manual-group-dialog-head .manual-note {
  margin-top: 4px;
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .manual-group-dialog {
    margin-left: 0;
  }
}

.manual-group-dialog-body {
  padding: 16px 18px;
  overflow: auto;
}

.manual-group-dialog .manual-group-close {
  border: none;
  background: #eef3f7;
  color: #2f3a43;
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transform: none;
}

.manual-group-dialog .manual-group-close:hover {
  background: #e0e9f0;
  transform: none;
}

.manual-group-count {
  font-size: 13px;
  font-weight: 600;
  color: #3f5563;
}

.manual-group-limit {
  margin-top: 4px;
  font-size: 12px;
  color: #b33939;
}

.manual-group-empty {
  font-size: 13px;
  color: #5b6a74;
  padding: 6px 2px;
  grid-column: 1 / -1;
}

.manual-group-list {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e1e9f0;
  border-radius: 10px;
  max-height: 320px;
  overflow: auto;
}

.manual-group-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: #1e272e;
  word-break: break-word;
  padding: 6px 4px;
}

.manual-group-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.manual-group-name {
  font-size: 16px;
  font-weight: 600;
}

.manual-group-meta {
  font-size: 12px;
  color: #6c7a83;
}

.manual-group-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0abde3;
}

.manual-group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  padding: 14px 18px;
  border-top: 1px solid #e1e9f0;
  background: #f9fbfd;
}

.manual-group-actions .manual-action-button {
  width: auto;
  padding: 12px 20px;
  min-width: 140px;
  margin-top: 0;
}

/* ================= Website Posting (CarsDealDirect) ================= */
.website-posting-page {
  max-width: 980px;
}

.website-posting-form-box {
  text-align: left;
}

.website-posting-results-box {
  margin-top: 18px;
  text-align: left;
}

.website-posting-results-title {
  font-size: 18px;
  margin: 0 0 12px;
  color: #1e272e;
}

.website-posting-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px 18px;
  margin-top: 6px;
}

.website-posting-info-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7fbff;
  border: 1px solid #d7edf7;
}

.website-posting-info-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5b6a74;
  margin-bottom: 4px;
  font-weight: 700;
}

.website-posting-info-value {
  font-size: 14px;
  color: #1e272e;
  font-weight: 600;
  word-break: break-word;
}

.website-posting-images-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}

.website-posting-images-meta {
  font-size: 13px;
  color: #56636c;
}

.website-posting-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #1e272e;
  font-size: 13px;
  user-select: none;
}

.website-posting-image-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
  margin: 10px 0 0;
}

.website-posting-image-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d7edf7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.website-posting-image-preview {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.website-posting-image-caption {
  padding: 8px 10px;
  font-size: 11px;
  color: #4f5b63;
  background: #fbfdff;
  border-top: 1px solid #eef6fb;
  word-break: break-all;
}

.website-posting-image-check {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 18px;
  height: 18px;
  accent-color: #0abde3;
  cursor: pointer;
}

.website-posting-image-card.is-selected {
  border-color: #0abde3;
  box-shadow: 0 8px 18px rgba(10, 189, 227, 0.22);
}

@media (max-width: 1200px) {
  .website-posting-image-grid {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
  }
}

@media (max-width: 1260px) {
  .topbar {
    padding: 8px 14px;
  }

  .topbar-inner {
    gap: 8px;
  }

  .topbar-brand {
    min-width: 184px;
    flex-basis: 192px;
  }

  .header-account-box {
    min-width: 184px;
    max-width: 194px;
    flex-basis: 194px;
  }

  .add-account {
    padding: 7px 8px;
    font-size: 10px;
  }

  .junk-pill {
    padding: 6px 7px;
    font-size: 8.8px;
  }

  .account-pill {
    max-width: 122px;
  }
}

@media (max-width: 1110px) {
  .topbar-brand-version,
  .header-mode-title {
    display: none;
  }

  .topbar-brand {
    min-width: 168px;
    flex-basis: 176px;
  }

  .header-account-box {
    min-width: 168px;
    max-width: 178px;
    flex-basis: 178px;
  }

  .header-utility-group {
    gap: 4px;
    padding: 4px;
  }

  .account-pill {
    max-width: 108px;
  }
}

@media (max-width: 980px) {
  .website-posting-info-grid {
    grid-template-columns: 1fr;
  }
  .website-posting-image-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
}

@media (max-width: 640px) {
  .website-posting-image-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

.manual-image-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  margin: 10px 0 18px;
}

.manual-image-slot {
  background: #fbfcfe;
  border: 1px dashed #c5d9e7;
  border-radius: 10px;
  padding: 8px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.manual-image-input {
  display: none;
}

.manual-image-label {
  border: 1px solid #d4e6f0;
  border-radius: 8px;
  background: #ffffff;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  color: #2d5569;
}

.manual-image-label:hover {
  border-color: #0abde3;
  background: #f2fbff;
}

.manual-image-plus {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.manual-image-text {
  font-size: 12px;
  font-weight: 600;
}

.manual-image-name {
  margin-top: 8px;
  font-size: 11px;
  color: #5a6974;
  text-align: center;
  word-break: break-word;
}

/* Back button spacing */
.btn-back {
  display: block;
  width: fit-content;
  margin: 40px auto 0;
  padding: 10px 22px;
  background: #484747;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s;
}

.btn-back:hover {
  background-color: #666565;
}

@media (max-width: 900px) {
  .manual-image-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}
 

 /* -----------------auto reply page css---------------------------------- */
/* Container */
.auto-reply-container {
  max-width: 600px;
  width: 100%;
  margin: 0px auto;
  height: 100%; /* fill viewport */
  display: flex;
  flex-direction: column;
  justify-content: center; /* center vertically */
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Title */
.auto-reply-title {
  font-size: 28px;
  text-align: center;
  color: #333;
  margin-bottom: 15px;
}

/* Info Text */
.auto-reply-info {
  font-size: 14px;
  color: #555;
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.5;
}

/* Card */
.auto-reply-card {
  background: #fff;
  width: 100%;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-sizing: border-box;
  text-align: left;
}

/* Labels */
.auto-reply-label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

/* Select Inputs */
.auto-reply-select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  box-sizing: border-box;
}

/* Textarea */
.auto-reply-textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  resize: none;
  box-sizing: border-box;
}

/* Confirmation Checkbox */
.auto-reply-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
  color: #333;
}

/* Button */
.auto-reply-btn {
  width: 100%;
  padding: 12px;
  background-color: #0abde3;
  color: white;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-top: 15px;
  transition: 0.2s;
}

.auto-reply-btn:hover {
  background-color: #09a9cc;
}

/* Back Button */
.auto-reply-back {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #484747;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: 0.2s;
}

.auto-reply-back:hover {
  background-color: #666565;
}

.auto-reply-status-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 25px;
}

.status-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 20px;
}

.status-badge {
    text-align: center;
    font-weight: bold;
    padding: 10px;
    border-radius: 20px;
    width: 140px;
    margin: 0 auto 25px;
}

.status-badge.running {
    background: #e8f8f2;
    color: #1e8449;
    border: 1px solid #1e8449;
}

.status-badge.stopped {
    background: #fdecea;
    color: #922b21;
    border: 1px solid #922b21;
}

.status-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.status-row:last-child {
    border-bottom: none;
}

.label {
    font-weight: 600;
    color: #555;
}

.value {
    color: #111;
    max-width: 60%;
    text-align: right;
    word-wrap: break-word;
}

.btn {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
}

.stop-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
}

.stop-btn:hover {
    background: #c0392b;
}

.start-btn {
  margin-top:15px;
    background: #2ecc71;
    color: #fff;
}

.start-btn:hover {
    background: #27ae60;
}

.stopped-box {
    text-align: center;
    margin-top: 30px;
    color: #666;
}

@media (max-width: 900px) {
  .app {
    display: block;
    padding-top: var(--mobile-topbar-height);
  }

  .mobile-header-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .sidebar {
    position: sticky;
    top: var(--mobile-topbar-height);
    width: 100%;
    bottom: auto;
    padding: 10px 12px 12px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.14);
    overflow-x: auto;
    overflow-y: hidden;
  }

  .menu {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: max-content;
    padding-bottom: 2px;
  }

  .menu li {
    flex: 0 0 auto;
  }

  .menu-link-wrap {
    min-width: 150px;
    padding: 10px 12px;
  }

  .main {
    margin-left: 0;
    min-width: 0;
  }

  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    min-height: 88px;
    padding: 12px 14px;
    overflow: visible;
    z-index: 1200;
  }

  .topbar-inner {
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .topbar-brand {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }

  .accounts,
  .header-shortcuts,
  .header-utility-group,
  .topbar-identity,
  .topbar-inner {
    flex-wrap: wrap;
    overflow: visible;
  }

  .accounts {
    width: 100%;
    min-width: 0;
    gap: 10px;
  }

  .header-account-box,
  .header-shortcuts,
  .header-utility-group,
  .topbar-identity {
    width: 100%;
  }

  .header-account-box {
    max-width: none;
    flex: 1 1 100%;
  }

  .topbar-identity {
    margin-left: 0;
    justify-content: space-between;
    align-items: center;
    padding-left: 0;
  }

  body.mobile-header-collapsed .topbar {
    padding-bottom: 10px;
  }

  body.mobile-header-collapsed .accounts,
  body.mobile-header-collapsed .topbar-identity {
    display: none;
  }

  body.mobile-header-collapsed .mobile-header-toggle svg {
    transform: rotate(180deg);
  }

  body.mobile-header-collapsed .sidebar {
    top: var(--mobile-topbar-height);
  }

  .content {
    padding: 22px 14px 28px;
  }

  .dashboard-v2 {
    min-height: auto;
    padding: 20px 16px;
  }

  .dashboard-v2-box {
    min-height: 0;
    padding: 15px;
  }

  .page-container {
    margin: 20px auto;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0 14px;
  }

  .form-box,
  .accounts-box {
    max-width: none;
    justify-self: stretch;
  }

  .cards-center {
    margin-top: 40px;
    padding: 0 14px;
  }

  .cards-center .card {
    width: 100%;
    max-width: 400px;
  }

  .message-box {
    top: 50%;
    left: 50%;
    width: min(92vw, 420px);
    min-width: 0;
    padding: 22px 18px;
    font-size: 17px;
  }

  .info-grid {
    margin-top: 24px;
  }

  .website-posting-images-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .manual-actions .manual-action-button,
  .manual-group-actions .manual-action-button {
    width: 100%;
    min-width: 0;
  }
}

/* ---------------- Account page redesign ---------------- */
.account-page {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 18px 30px;
  color: #1e272e;
}

.account-page .account-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 22px;
}

.account-page .account-hero h1 {
  font-size: 28px;
  margin-bottom: 6px;
}

.account-page .account-subtitle {
  color: #5f6368;
  font-size: 14px;
  max-width: 680px;
  line-height: 1.5;
}

.account-page .account-badge {
  background: linear-gradient(135deg, #f7f3ff, #efe7ff);
  border: 1px solid #d7c7ff;
  padding: 12px 16px;
  border-radius: 10px;
  text-align: right;
  min-width: 220px;
}

.account-page .badge-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6a5f7d;
}

.account-page .badge-value {
  font-weight: 700;
  font-size: 14px;
  color: #4d3c75;
  word-break: break-word;
}

.account-page .account-capacity {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.account-page .capacity-item {
  background: #ffffff;
  border: 1px solid #e3e9f1;
  border-radius: 8px;
  padding: 14px 16px;
  min-width: 0;
}

.account-page .capacity-label {
  display: block;
  color: #66717d;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.account-page .capacity-item strong {
  color: #27323d;
  font-size: 18px;
}

.account-page .account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.phone-verify-page {
  max-width: 980px;
  margin: 0 auto;
}

.phone-verify-shell {
  background: #ffffff;
  border: 1px solid #dfe8ef;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(14, 58, 82, 0.08);
  padding: 20px;
}

.phone-verify-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.phone-verify-head h1 {
  margin: 0 0 8px;
  font-size: 28px;
  color: #17384b;
}

.phone-verify-subtitle {
  color: #566b78;
  line-height: 1.5;
  max-width: 680px;
}

.phone-verify-status {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #cae2f1;
  background: #edf7ff;
  color: #1f6b8e;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.phone-verify-status[data-status="success"] {
  background: #ebfaf1;
  border-color: #bfe7ce;
  color: #23724a;
}

.phone-verify-status[data-status="failed"],
.phone-verify-status[data-status="cancelled"] {
  background: #fff0ef;
  border-color: #efc4c1;
  color: #b33939;
}

.phone-verify-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.phone-verify-surface-note {
  margin-top: 16px;
  color: #5b6f7d;
  font-size: 13px;
  line-height: 1.4;
}

.phone-verify-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f5f9fc;
  border: 1px solid #d9e7f1;
  color: #355668;
  font-size: 12px;
  font-weight: 600;
}

.phone-verify-viewer {
  margin-top: 18px;
  display: block;
}

.phone-verify-frame-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #d7e7f2;
  background: #0d1117;
  min-height: 0;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-verify-frame {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  background: #0d1117;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
}

.phone-verify-back {
  margin-top: 18px;
}

.account-page .account-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px 22px 24px;
  border: 1px solid #e6ebf2;
  box-shadow: 0 8px 24px rgba(17, 40, 68, 0.08);
}

.account-page .card-head h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.account-page .card-head p {
  font-size: 13px;
  color: #6a7078;
  margin-bottom: 16px;
}

.account-page .account-form {
  display: grid;
  gap: 10px;
}

.account-page .field-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #57606a;
}

.account-page .account-form input[type="email"],
.account-page .account-form input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #cfd6e0;
  font-size: 15px;
  background: #fdfdfd;
}

.account-page .primary-btn {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  background: #5b3bd6;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.2s ease;
}

.account-page .primary-btn:hover {
  background: #4a2fb7;
  transform: translateY(-1px);
}

.account-page .account-back {
  display: inline-block;
  margin-top: 18px;
}

.account-page .delete-btn {
  background: #111827;
}

.account-page .delete-btn:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.18);
}

.account-page .hidden,
.auto-reply-status-container .hidden {
  display: none !important;
}

.account-page .session-check-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2px 0 14px;
}

.account-page .session-check-btn,
.account-page .session-check-cancel {
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.account-page .session-check-btn {
  background: #eef3fb;
  color: #26384f;
  border: 1px solid #d7e1ee;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.account-page .session-check-btn:hover {
  background: #dfe9f7;
  border-color: #bdcde2;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(38, 56, 79, 0.12);
}

.account-page .session-check-primary {
  background: #26384f;
  color: #ffffff;
  border-color: #26384f;
}

.account-page .session-check-primary:hover {
  background: #172436;
  border-color: #172436;
}

.account-page .session-check-cancel {
  background: #fff1f1;
  color: #b42318;
  border: 1px solid #ffd0d0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.account-page .session-check-cancel:hover {
  background: #ffe4e4;
  border-color: #ffb7b7;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(180, 35, 24, 0.12);
}

.account-page .session-check-btn:disabled,
.account-page .session-check-cancel:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.account-page .session-select-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #465461;
  font-size: 13px;
  font-weight: 700;
}

.account-page .session-check-loader {
  width: 16px;
  height: 16px;
  border: 2px solid #d5deea;
  border-top-color: #26384f;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.account-page .session-check-text {
  color: #66717d;
  font-size: 13px;
  min-height: 18px;
}

.account-page .saved-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.account-page .account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f6;
}

.account-page .account-row:last-child {
  border-bottom: none;
}

.account-page .account-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  color: #2f3740;
  word-break: break-word;
}

.account-page .account-check-wrap {
  display: inline-flex;
  align-items: center;
}

.account-page .account-check {
  width: 16px;
  height: 16px;
}

.account-page .session-health-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.account-page .session-health-badge.valid {
  background: #e9f8ef;
  color: #177245;
  border: 1px solid #bfe8cf;
}

.account-page .session-health-badge.expired {
  background: #fff0f0;
  color: #b42318;
  border: 1px solid #ffc9c9;
}

.account-page .empty-state {
  text-align: center;
  padding: 24px 12px;
  color: #6a7078;
}

.account-page .empty-state h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: #2d3741;
}

@media (max-width: 760px) {
  .account-page .account-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-page .account-badge {
    width: 100%;
    text-align: left;
  }

  .account-page .account-capacity {
    grid-template-columns: 1fr;
  }

  .phone-verify-viewer {
    display: block;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 10px 12px;
  }

  .topbar-brand {
    padding: 8px 10px 8px 8px;
  }

  .topbar-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 14px;
  }

  .topbar-brand-title {
    font-size: 15px;
  }

  .mobile-header-toggle {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .header-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
  }

  .top-link-wrap,
  .top-link-wrap .add-account {
    width: 100%;
  }

  .add-account {
    width: 100%;
    min-height: 38px;
    padding: 8px 6px;
  }

  .header-utility-group {
    flex-wrap: wrap;
    gap: 8px;
  }

  .header-mode-box,
  .clear-junk-form {
    width: 100%;
  }

  .header-mode-form {
    justify-content: space-between;
  }

  .junk-pill {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    justify-content: space-between;
  }

  .clear-junk-form .delete-btn {
    width: 100%;
  }

  .account-pill {
    max-width: none;
    flex: 1 1 auto;
    text-align: center;
  }

  .menu-link-wrap {
    min-width: 138px;
  }

  .content h1,
  .dashboard-v2-head h1,
  .auto-reply-title,
  .status-title {
    font-size: 24px;
  }

  .account-page .account-grid {
    grid-template-columns: 1fr;
  }

  .phone-verify-shell {
    padding: 16px;
    border-radius: 16px;
  }

  .phone-verify-head {
    flex-direction: column;
  }

  .phone-verify-status {
    white-space: normal;
  }

  .phone-verify-frame-wrap,
  .phone-verify-frame {
    min-height: 0;
  }

  .status-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .value {
    max-width: 100%;
    text-align: left;
  }

  .auto-reply-card {
    padding: 20px 18px;
  }
}

@media (max-width: 480px) {
  .header-shortcuts {
    grid-template-columns: 1fr;
  }

  .junk-pill {
    flex-basis: 100%;
  }

  .website-posting-image-grid,
  .manual-image-grid {
    grid-template-columns: 1fr;
  }

  .message-box {
    width: calc(100vw - 24px);
  }
}
