/*!*********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************/
/* =========================================================
   RESET & ROOT
========================================================= */

* {
  box-sizing: border-box;
}

:root {
  --green: #16a05d;
  --green-dark: #078749;
  --green-light: #eaf8f1;

  --text: #17212b;
  --text-secondary: #66727e;
  --text-muted: #8b96a1;

  --border: #e7ebee;
  --background: #f7f9fa;
  --white: #ffffff;

  --blue: #3b82f6;
  --purple: #8b5cf6;
  --red: #ef5350;

  --sidebar-width: 258px;

  --radius-sm: 7px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-card: 0 2px 7px rgba(18, 35, 48, 0.025);
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   COMMON
========================================================= */

.grid {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.card,
.dashboard-card,
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.card {
  padding: 20px;
}

.section {
  margin-top: 22px;
}

.big {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 750;
}

.muted {
  color: #707b87;
  font-size: 13px;
}

.spacer {
  flex: 1 1;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn,
.primary-btn,
.outline-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 750;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    transform 0.15s ease;
}

.btn {
  border: 0;
  padding: 10px 15px;
  background: var(--green);
  color: var(--white);
  font-weight: 650;
}

.btn:hover {
  background: var(--green-dark);
}

.btn.secondary {
  background: #eef2f4;
  color: #29333d;
}

.primary-btn {
  padding: 10px 14px;
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(14, 164, 91, 0.15);
}

.primary-btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.primary-btn span {
  font-size: 16px;
  line-height: 1;
}

.outline-btn,
.secondary-btn {
  border: 1px solid #dfe5e2;
  background: var(--white);
  color: #40504a;
}

.outline-btn {
  padding: 10px 14px;
}

.secondary-btn {
  min-height: 38px;
  padding: 9px 13px;
}

.outline-btn:hover,
.secondary-btn:hover {
  border-color: #a9d9be;
  background: #f4fbf7;
  color: var(--green-dark);
}

/* =========================================================
   FORM ELEMENTS
========================================================= */

.input,
select,
textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px;
  border: 1px solid #d9dfe4;
  border-radius: var(--radius-md);
  outline: none;
}

.input:focus,
select:focus,
textarea:focus {
  border-color: #8bcfac;
  box-shadow: 0 0 0 3px var(--green-light);
}

.form {
  max-width: 520px;
}

/* =========================================================
   APP LAYOUT
========================================================= */

.layout {
  display: flex;
  min-height: 100vh;
  background: var(--background);
}

.main {
  min-width: 0;
  flex: 1 1;
  margin-left: var(--sidebar-width);
}

/* =========================================================
   SIDEBAR
========================================================= */

.side {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;

  width: var(--sidebar-width);

  display: flex;
  flex-direction: column;

  padding: 20px 14px 14px;

  overflow-x: hidden;
  overflow-y: auto;

  background: var(--white);
  border-right: 1px solid var(--border);

  scrollbar-width: thin;
  scrollbar-color: #dce4df transparent;
}

.side::-webkit-scrollbar {
  width: 5px;
}

.side::-webkit-scrollbar-track {
  background: transparent;
}

.side::-webkit-scrollbar-thumb {
  background: #dce4df;
  border-radius: 10px;
}

/* =========================================================
   BRAND
========================================================= */

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 10px 20px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;

  display: grid;
  place-items: center;

  border-radius: 11px;
  background: linear-gradient(145deg, #19b96d, #07914e);

  color: var(--white);
  font-size: 20px;
  font-weight: 800;

  box-shadow: 0 7px 18px rgba(13, 164, 91, 0.2);
}

.brand-name {
  font-size: 17px;
  line-height: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.brand-subtitle {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.3px;
}

/* =========================================================
   WORKSPACE
========================================================= */

.workspace {
  display: flex;
  align-items: center;
  gap: 9px;

  margin: 0 3px 18px;
  padding: 10px;

  border: 1px solid var(--border);
  border-radius: 11px;

  background: #fbfcfc;

  transition: border-color 0.15s ease, background 0.15s ease;
}

.workspace:hover {
  border-color: #d8e7df;
  background: #f9fcfa;
}

.workspace-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;

  display: grid;
  place-items: center;

  border-radius: 8px;
  background: #e6f6ed;
  color: var(--green-dark);

  font-size: 12px;
  font-weight: 800;
}

.workspace-info {
  min-width: 0;
  flex: 1 1;
}

.workspace-name {
  overflow: hidden;

  font-size: 12px;
  font-weight: 700;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.workspace-plan {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
}

.workspace-arrow {
  color: var(--text-muted);
  font-size: 14px;
}

/* =========================================================
   SIDEBAR NAVIGATION
========================================================= */

.nav-section {
  margin-bottom: 19px;
}

.nav-label {
  padding: 0 11px 7px;

  color: #a0a9b1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.1px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-link {
  min-height: 41px;

  display: flex;
  align-items: center;
  gap: 11px;

  padding: 9px 11px;

  border-radius: 9px;

  color: #5f6b76;
  font-size: 13px;
  font-weight: 600;

  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.nav-link:hover {
  background: #f3f7f5;
  color: var(--green-dark);
}

.nav-link:focus-visible {
  outline: 2px solid #9bdcba;
  outline-offset: 1px;
}

.nav-icon {
  width: 22px;
  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #82909b;
  font-size: 16px;
  line-height: 1;

  transition: color 0.15s ease;
}

.nav-link:hover .nav-icon {
  color: var(--green);
}

.nav-badge {
  min-width: 20px;
  height: 20px;

  display: grid;
  place-items: center;

  margin-left: auto;
  padding: 0 5px;

  border-radius: 20px;
  background: #eef1f3;

  color: #77828c;
  font-size: 10px;
  font-weight: 700;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;

  margin-left: auto;

  border-radius: 50%;
  background: #27ae60;

  box-shadow: 0 0 0 3px #e7f8ee;
}

/* =========================================================
   SIDEBAR BOTTOM
========================================================= */

.sidebar-bottom {
  margin-top: auto;
}

/* =========================================================
   UPGRADE CARD
========================================================= */

.upgrade-card {
  margin: 4px 3px 13px;
  padding: 15px;

  border: 1px solid #d9f0e3;
  border-radius: 12px;

  background: linear-gradient(145deg, #f0fbf5, #e7f7ef);
}

.upgrade-icon {
  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  margin-bottom: 9px;

  border-radius: 8px;
  background: var(--white);
  color: var(--green);

  font-size: 14px;
}

.upgrade-title {
  font-size: 12px;
  font-weight: 800;
}

.upgrade-text {
  margin-top: 5px;
  color: #6c7973;
  font-size: 10px;
  line-height: 16px;
}

.upgrade-btn {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-top: 11px;
  padding: 8px;

  border: 0;
  border-radius: 7px;

  background: var(--green);
  color: var(--white);

  font-size: 11px;
  font-weight: 750;

  transition: background 0.15s ease, transform 0.15s ease;
}

.upgrade-btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* =========================================================
   SIDEBAR PROFILE
========================================================= */

.profile {
  display: flex;
  align-items: center;
  gap: 9px;

  padding: 10px 7px 4px;

  border-top: 1px solid var(--border);
}

.profile-avatar,
.top-avatar {
  display: grid;
  place-items: center;

  border-radius: 50%;
  background: #dff4e9;
  color: var(--green-dark);

  font-weight: 800;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;

  font-size: 11px;
}

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

.profile-name {
  font-size: 11px;
  font-weight: 750;
}

.profile-email {
  margin-top: 2px;

  overflow: hidden;

  color: var(--text-muted);
  font-size: 9px;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.profile-menu {
  color: #9aa3ab;
  font-size: 15px;
}

/* =========================================================
   TOP BAR
========================================================= */

.top {
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
  padding: 0 32px;

  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.top-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-title {
  font-size: 15px;
  font-weight: 750;
}

.breadcrumb {
  margin-top: 3px;
  color: #9aa3ab;
  font-size: 10px;
}

.breadcrumb span {
  padding: 0 5px;
  color: #c2c8cd;
}

.mobile-menu {
  display: none;

  border: 0;
  background: transparent;

  font-size: 20px;
}

/* =========================================================
   TOP ACTIONS
========================================================= */

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search {
  width: 245px;
  height: 37px;

  display: flex;
  align-items: center;
  gap: 7px;

  padding: 0 9px;

  border: 1px solid var(--border);
  border-radius: 8px;

  background: #fafbfb;
}

.search > span {
  color: #8d98a2;
  font-size: 19px;
}

.search input {
  min-width: 0;
  flex: 1 1;

  border: 0;
  outline: 0;
  background: transparent;

  color: var(--text);
  font-size: 11px;
}

.search input::placeholder {
  color: #a0a9b1;
}

.search kbd {
  padding: 3px 5px;

  border: 1px solid #e3e7ea;
  border-radius: 4px;

  background: var(--white);
  color: #9aa3ab;

  font-size: 8px;
}

.icon-button {
  position: relative;

  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 8px;

  background: var(--white);
  color: #697681;
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;

  width: 5px;
  height: 5px;

  border-radius: 50%;
  background: var(--red);
}

/* =========================================================
   TOP PROFILE DROPDOWN
========================================================= */

.top-profile {
  position: relative;

  display: flex;
  align-items: center;
  gap: 8px;

  padding-left: 3px;
}

.top-profile-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.top-profile-text strong {
  font-size: 11px;
}

.top-profile-text span {
  color: var(--text-muted);
  font-size: 9px;
}

.profile-chevron {
  color: #9aa3ab;
  font-size: 14px;

  transition: transform 0.18s ease;
}

.profile-chevron-open {
  transform: rotate(180deg);
}

.profile-menu-wrap {
  position: relative;
}

.profile-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 0;

  border: 0;
  background: transparent;

  color: inherit;
  font: inherit;
  text-align: left;
}

.profile-menu-trigger:hover {
  opacity: 0.9;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1000;

  width: 235px;
  padding: 8px;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: var(--white);

  box-shadow: 0 12px 35px rgba(20, 35, 45, 0.12);
}

.profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px;
}

.dropdown-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: #dff4e9;
  color: var(--green-dark);

  font-size: 12px;
  font-weight: 800;
}

.profile-dropdown-header > div:last-child {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-dropdown-header strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 750;
}

.profile-dropdown-header span {
  color: var(--text-muted);
  font-size: 9px;
}

.profile-dropdown-divider {
  height: 1px;

  margin: 6px 2px;

  background: var(--border);
}

.profile-dropdown-item {
  width: 100%;
  min-height: 37px;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 8px 10px;

  border: 0;
  border-radius: 8px;

  background: transparent;
  color: #5f6b76;

  font-size: 10px;
  font-weight: 650;

  text-align: left;
}

.profile-dropdown-item > span:first-child {
  width: 20px;

  color: #7d8992;
  font-size: 14px;
  text-align: center;
}

.profile-dropdown-item:hover {
  background: #f3f7f5;
  color: var(--green-dark);
}

.profile-dropdown-item:hover > span:first-child {
  color: var(--green);
}

.profile-dropdown-item.logout-item {
  color: #d45450;
}

.profile-dropdown-item.logout-item > span:first-child {
  color: #d45450;
}

.profile-dropdown-item.logout-item:hover {
  background: #fff3f2;
  color: #c94440;
}

/* =========================================================
   LOGOUT
========================================================= */

.logout-btn {
  width: 100%;

  display: flex;
  align-items: center;
  gap: 10px;

  margin-top: 10px;
  padding: 10px 8px;

  border: 0;
  border-top: 1px solid var(--border);

  background: transparent;
  color: #7a858e;

  font-size: 11px;
  font-weight: 650;

  text-align: left;

  transition: color 0.15s ease, background 0.15s ease;
}

.logout-icon {
  width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  border-radius: 8px;

  background: #fff1f0;
  color: #e4514e;

  font-size: 15px;
  font-weight: 700;

  transition: background 0.15s ease, color 0.15s ease;
}

.logout-btn:hover {
  background: #fffafa;
  color: #d44e4b;
}

.logout-btn:hover .logout-icon {
  background: #ffe8e6;
  color: #d43f3b;
}

/* =========================================================
   CONTENT
========================================================= */

.content {
  width: 100%;
  max-width: 1440px;

  margin: 0 auto;
  padding: 30px 32px 24px;
}

.welcome-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 20px;
  margin-bottom: 24px;
}

.eyebrow {
  margin-bottom: 6px;

  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.welcome-row h1 {
  margin: 0;

  color: #18222c;
  font-size: 25px;
  line-height: 32px;
  letter-spacing: -0.7px;
}

.welcome-row p {
  margin: 6px 0 0;

  color: var(--text-secondary);
  font-size: 12px;
}

/* =========================================================
   STATS
========================================================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.stat-card {
  min-height: 142px;
  padding: 17px;
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-label {
  color: #697681;
  font-size: 11px;
  font-weight: 600;
}

.stat-icon,
.quick-icon {
  display: grid;
  place-items: center;

  border-radius: 8px;

  font-size: 13px;
  font-weight: 800;
}

.stat-icon {
  width: 31px;
  height: 31px;
}

.quick-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.stat-icon.blue,
.quick-icon.blue {
  background: #eaf2ff;
  color: #4285ed;
}

.stat-icon.green,
.quick-icon.green {
  background: #e8f8ef;
  color: #17a25f;
}

.stat-icon.purple,
.quick-icon.purple {
  background: #f1edff;
  color: #8157e9;
}

.stat-icon.red {
  background: #fff0ef;
  color: #e4514e;
}

.stat-value {
  margin-top: 13px;

  color: #17212b;
  font-size: 27px;
  font-weight: 780;
  letter-spacing: -0.7px;
}

.stat-footer {
  display: flex;
  align-items: center;
  gap: 4px;

  margin-top: 6px;

  font-size: 9px;
}

.stat-footer.positive {
  color: #1a9a5b;
}

.stat-footer.neutral {
  color: #8a949d;
}

.stat-footer strong {
  font-size: 9px;
}

.stat-period {
  margin-left: 2px;
  color: #9aa3ab;
}

/* =========================================================
   DASHBOARD COLUMNS
========================================================= */

.dashboard-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
  margin-top: 14px;
}

.dashboard-two-column > .dashboard-card {
  min-width: 0;
  width: 100%;
}

.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-gap: 14px;
  gap: 14px;
  margin-top: 14px;
}

.dashboard-whatsapp-card {
  width: 100%;
}
.dashboard-card {
  padding: 20px;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 15px;
}

.card-header h2 {
  margin: 0;

  font-size: 14px;
  letter-spacing: -0.15px;
}

.card-header p {
  margin: 5px 0 0;

  color: #8a949d;
  font-size: 10px;
}

.period-select {
  height: 32px;

  padding: 0 8px;

  border: 1px solid var(--border);
  border-radius: 7px;

  outline: none;

  background: var(--white);
  color: #596671;

  font-size: 10px;
}

/* =========================================================
   CHART
========================================================= */

.chart {
  display: flex;

  height: 245px;
  margin-top: 18px;
}

.chart-y {
  width: 30px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding-bottom: 25px;

  color: #a1a9b0;
  font-size: 8px;
}

.chart-area {
  position: relative;
  flex: 1 1;

  padding-bottom: 24px;
}

.chart-grid-line {
  position: relative;
  height: 20%;

  border-top: 1px dashed #edf0f2;
}

.chart-bars {
  position: absolute;
  inset: 0 8px 25px;

  display: flex;
  align-items: flex-end;
  justify-content: space-around;

  gap: 14px;
}

.bar-group {
  height: 100%;
  flex: 1 1;
  max-width: 60px;

  display: flex;
  align-items: flex-end;
  justify-content: center;

  gap: 4px;
}

.bar {
  width: 11px;
  min-height: 3px;

  border-radius: 4px 4px 1px 1px;
}

.sent-bar {
  background: #22ae6a;
}

.delivered-bar {
  background: #a9dec1;
}

.chart-labels {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  display: flex;
  justify-content: space-around;

  color: #9aa3ab;
  font-size: 8px;
}

.chart-legend {
  display: flex;
  align-items: center;

  gap: 14px;
  margin-top: 5px;

  color: #7c8790;
  font-size: 9px;
}

.chart-legend > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 7px;
  height: 7px;

  display: inline-block;

  border-radius: 50%;
}

.legend-dot.sent {
  background: #22ae6a;
}

.legend-dot.delivered {
  background: #a9dec1;
}

.legend-spacer {
  flex: 1 1;
}

/* =========================================================
   WHATSAPP CONNECTION
========================================================= */

.connection-card {
  min-width: 0;
}

.connected-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  padding: 5px 7px;

  border-radius: 20px;

  background: #eaf8f0;
  color: #149457;

  font-size: 8px;
  font-weight: 750;
}

.connected-badge i,
.status-online i {
  width: 5px;
  height: 5px;

  display: inline-block;

  border-radius: 50%;
  background: #19a761;
}

.whatsapp-preview {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-top: 21px;
  padding: 12px;

  border: 1px solid #edf2ef;
  border-radius: 9px;

  background: #f7faf9;
}

.whatsapp-logo {
  width: 35px;
  height: 35px;

  display: grid;
  place-items: center;

  border-radius: 9px;

  background: #dff5e9;
  color: #15985a;

  font-size: 16px;
  font-weight: 800;
}

.whatsapp-preview div:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.whatsapp-preview strong {
  font-size: 11px;
}

.whatsapp-preview span {
  color: #909aa2;
  font-size: 9px;
}

.connection-detail {
  display: flex;
  justify-content: space-between;

  gap: 15px;
  padding: 11px 0;

  border-bottom: 1px solid #f0f2f3;
}

.connection-detail span {
  color: #89939c;
  font-size: 10px;
}

.connection-detail strong {
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}

.status-online {
  display: flex;
  align-items: center;
  gap: 5px;

  color: #15985a;
}

/* =========================================================
   CAMPAIGNS
========================================================= */

.view-link {
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 750;
}

.view-link:hover {
  text-decoration: underline;
}

.table-wrap {
  width: 100%;

  overflow-x: auto;

  margin-top: 17px;
}

.dashboard-table,
.table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-table {
  white-space: nowrap;
}

.dashboard-table th,
.table th {
  padding: 10px 8px;

  border-bottom: 1px solid var(--border);

  color: #9aa3ab;
  font-size: 8px;
  font-weight: 750;

  text-align: left;
  text-transform: uppercase;

  letter-spacing: 0.6px;
}

.dashboard-table td,
.table td {
  padding: 13px 8px;

  border-bottom: 1px solid #f1f3f4;

  color: #63707a;
  font-size: 10px;
}

.dashboard-table th:first-child,
.dashboard-table td:first-child {
  padding-left: 20px;
}

.table th,
.table td {
  padding: 12px;
  font-size: 14px;
}

.campaign-name {
  display: flex;
  align-items: center;
  gap: 9px;
}

.campaign-avatar {
  width: 29px;
  height: 29px;

  display: grid;
  place-items: center;

  border-radius: 8px;

  background: #f1f4f5;
  color: #9aa3ab;

  font-size: 10px;
  font-weight: 800;
}

.campaign-name div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.campaign-name strong {
  color: #4d5a64;
  font-size: 10px;
}

.campaign-name span {
  color: #a0a8ae;
  font-size: 8px;
}

.empty-status {
  color: #adb5bb;
}

/* =========================================================
   BOTTOM GRID
========================================================= */

.bottom-grid {
  display: grid;

  grid-template-columns: 1.3fr 0.7fr;

  grid-gap: 14px;

  gap: 14px;
  margin-top: 14px;
}

.quick-actions {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  grid-gap: 9px;

  gap: 9px;
  margin-top: 16px;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 9px;

  padding: 11px;

  border: 1px solid #edf0f1;
  border-radius: 9px;

  background: #fcfdfd;

  transition: border-color 0.15s ease, background 0.15s ease,
    transform 0.15s ease;
}

.quick-action:hover {
  border-color: #d8e9df;
  background: #f7fbf8;
  transform: translateY(-1px);
}

.quick-action div {
  min-width: 0;
  flex: 1 1;
}

.quick-action strong {
  display: block;

  color: #4b5963;
  font-size: 9px;
}

.quick-action div span {
  display: block;

  margin-top: 3px;

  color: #9aa3ab;
  font-size: 8px;
}

.quick-action > span:last-child {
  color: #a5adb3;
  font-size: 12px;
}

.usage-value {
  display: flex;
  align-items: baseline;
  gap: 5px;

  margin-top: 23px;
}

.usage-value strong {
  font-size: 28px;
  letter-spacing: -0.8px;
}

.usage-value span {
  color: #89939c;
  font-size: 10px;
}

.usage-progress {
  width: 100%;
  height: 7px;

  margin-top: 12px;

  overflow: hidden;

  border-radius: 10px;

  background: #edf1ef;
}

.usage-progress span {
  display: block;
  height: 100%;

  border-radius: inherit;

  background: var(--green);
}

.usage-footer {
  display: flex;
  justify-content: space-between;

  gap: 10px;
  margin-top: 9px;

  color: #9aa3ab;
  font-size: 8px;
}

.usage-footer a {
  color: var(--green-dark);
  font-weight: 750;
}

.dashboard-footer {
  display: flex;
  justify-content: space-between;

  gap: 15px;
  margin-top: 20px;
  padding: 14px 2px 3px;

  color: #a3abb1;
  font-size: 8px;
}

/* =========================================================
   CONTACTS
========================================================= */

.contacts-card {
  margin-top: 14px;
  padding: 0;
  overflow: hidden;
}

.contacts-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;
  padding: 20px;

  border-bottom: 1px solid var(--border);
}

.contacts-toolbar h2 {
  margin: 0;
  font-size: 14px;
}

.contacts-toolbar p {
  margin: 5px 0 0;

  color: #8b969f;
  font-size: 10px;
}

.contacts-filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-search {
  width: 220px;
  height: 34px;

  display: flex;
  align-items: center;
  gap: 7px;

  padding: 0 9px;

  border: 1px solid var(--border);
  border-radius: 7px;

  background: #fafbfb;
}

.contact-search span {
  color: #8d98a2;
  font-size: 16px;
}

.contact-search input {
  width: 100%;

  border: 0;
  outline: 0;

  background: transparent;

  color: var(--text);
  font-size: 10px;
}

.contact-search input::placeholder {
  color: #a0a9b1;
}

.contact-filter {
  width: 125px;
  height: 34px;

  margin: 0;
  padding: 0 8px;

  border: 1px solid var(--border);
  border-radius: 7px;

  outline: none;

  background: var(--white);
  color: #596671;

  font-size: 10px;
}

.bulk-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;

  margin: 0 20px;
  padding: 9px 11px;

  border: 1px solid #dcefe4;
  border-radius: 8px;

  background: #f2fbf6;
}

.bulk-toolbar strong {
  color: #25764c;
  font-size: 10px;
}

.bulk-spacer {
  flex: 1 1;
}

.bulk-btn {
  border: 1px solid #d9e6df;
  border-radius: 6px;

  padding: 6px 9px;

  background: var(--white);
  color: #586760;

  font-size: 9px;
  font-weight: 700;
}

.bulk-btn:hover {
  background: #f8fbf9;
}

.bulk-btn.danger {
  color: #d44e4b;
}

.contacts-table th {
  background: #fbfcfc;
}

.contacts-table .checkbox-cell {
  width: 38px;
  padding-left: 20px;
}

.contacts-table input[type="checkbox"] {
  width: 14px;
  height: 14px;

  margin: 0;

  accent-color: var(--green);
}

.contact-avatar {
  background: #eaf8f0;
  color: #16945a;
}

.contact-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  padding: 5px 7px;

  border-radius: 20px;

  font-size: 8px;
  font-weight: 750;
}

.contact-status i {
  width: 5px;
  height: 5px;

  border-radius: 50%;
}

.contact-status.active {
  background: #eaf8f0;
  color: #159457;
}

.contact-status.active i {
  background: #18a55f;
}

.contact-status.inactive {
  background: #fff1f0;
  color: #d45854;
}

.contact-status.inactive i {
  background: #e65b57;
}

.contact-tags {
  display: flex;
  align-items: center;
  gap: 4px;
}

.contact-tag {
  padding: 4px 6px;

  border-radius: 5px;

  background: #f1edff;
  color: #7958c8;

  font-size: 8px;
  font-weight: 700;
}

.no-tags {
  color: #a4adb4;
  font-size: 9px;
}

.table-action {
  width: 27px;
  height: 27px;

  border: 1px solid #e7ebed;
  border-radius: 6px;

  background: var(--white);
  color: #7d8992;
}

.table-action:hover {
  background: #f5f8f7;
  color: var(--green-dark);
}

.empty-table {
  padding: 0 !important;
}

.empty-state {
  min-height: 280px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 7px;

  color: #8d979f;
}

.empty-icon {
  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  margin-bottom: 5px;

  border-radius: 14px;

  background: #edf8f2;
  color: #45a873;

  font-size: 20px;
}

.empty-state strong {
  color: #52606a;
  font-size: 12px;
}

.empty-state span {
  margin-bottom: 8px;

  color: #9ba4ab;
  font-size: 9px;
}

.table-footer {
  display: flex;
  justify-content: space-between;

  gap: 15px;
  padding: 12px 20px;

  border-top: 1px solid var(--border);

  color: #9aa3ab;
  font-size: 9px;
}

/* =========================================================
   CONTACT MODAL
========================================================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;

  display: grid;
  place-items: center;

  padding: 20px;

  background: rgba(15, 26, 35, 0.42);

  -webkit-backdrop-filter: blur(3px);

          backdrop-filter: blur(3px);
}

.modal {
  width: 100%;
  max-width: 470px;

  overflow: hidden;

  border: 1px solid #e5e9eb;
  border-radius: 14px;

  background: var(--white);

  box-shadow: 0 20px 60px rgba(20, 30, 38, 0.18);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 15px;
  padding: 20px;

  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  margin: 0;
  font-size: 16px;
}

.modal-header p {
  margin: 5px 0 0;

  color: #89949d;
  font-size: 10px;
}

.modal-close {
  width: 29px;
  height: 29px;

  border: 0;
  border-radius: 7px;

  background: #f3f5f5;
  color: #68747d;

  font-size: 19px;
}

.modal-close:hover {
  background: #edf1ef;
}

.modal form {
  padding: 20px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-form label {
  display: flex;
  flex-direction: column;

  color: #59656e;

  font-size: 10px;
  font-weight: 700;
}

.modal-form .input {
  margin-top: 6px;
  font-size: 11px;
}

.modal-form small {
  margin-top: 5px;

  color: #9aa3ab;

  font-size: 8px;
  font-weight: 400;
}

.checkbox-label {
  flex-direction: row !important;
  align-items: flex-start;

  gap: 8px;
  padding: 10px;

  border: 1px solid #e7efea;
  border-radius: 8px;

  background: #f8fcfa;

  line-height: 15px;
}

.checkbox-label input {
  width: 14px;
  height: 14px;

  margin: 1px 0 0;

  accent-color: var(--green);
}

.checkbox-label span {
  color: #64726b;
  font-size: 9px;
  font-weight: 600;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;

  gap: 8px;
  margin-top: 21px;
  padding-top: 15px;

  border-top: 1px solid #edf0f1;
}

.modal-actions .outline-btn,
.modal-actions .primary-btn {
  min-width: 100px;
}

/* =========================================================
   SETTINGS
========================================================= */

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  grid-gap: 20px;

  gap: 20px;
  margin-bottom: 20px;
}

.settings-card {
  padding: 24px;
}

.settings-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;
  margin-bottom: 22px;
}

.settings-card-header h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.settings-card-header p {
  margin: 0;

  color: #718096;
  font-size: 14px;
  line-height: 1.5;
}

.settings-status {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 16px;
  margin-bottom: 20px;

  border: 1px solid #e8edf3;
  border-radius: 12px;

  background: #f8fafc;
}

.status-icon {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  background: #e9f8ef;
  color: #159447;

  font-size: 18px;
  font-weight: 700;
}

.settings-status strong {
  display: block;

  margin-bottom: 3px;

  font-size: 14px;
}

.settings-status span {
  display: block;

  color: #718096;
  font-size: 13px;
}

.settings-details {
  display: flex;
  flex-direction: column;
}

.settings-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
  padding: 13px 0;

  border-bottom: 1px solid #edf1f5;
}

.settings-detail:last-child {
  border-bottom: 0;
}

.settings-detail span {
  color: #718096;
  font-size: 14px;
}

.settings-detail strong {
  color: #263238;
  font-size: 14px;
}

.status-badge {
  display: inline-flex;
  align-items: center;

  padding: 6px 11px;

  border-radius: 20px;

  background: #e9f8ef;
  color: #159447;

  font-size: 12px;
  font-weight: 600;
}

.webhook-box {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
  padding: 15px 16px;
  margin-bottom: 20px;

  border: 1px solid #e8edf3;
  border-radius: 10px;

  background: #f8fafc;
}

.webhook-box span {
  color: #718096;
  font-size: 13px;
}

.webhook-box code {
  padding: 7px 10px;

  border-radius: 7px;

  background: #eef2f7;
  color: #334155;

  font-size: 13px;
}

.webhook-events {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.webhook-events > span {
  min-width: 130px;

  padding-top: 7px;

  color: #718096;
  font-size: 13px;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-tags span {
  padding: 6px 10px;

  border-radius: 7px;

  background: #f1f5f9;
  color: #475569;

  font-size: 12px;
  font-weight: 500;
}

.security-card {
  margin-bottom: 20px;
}

.security-message {
  display: flex;
  align-items: flex-start;
  gap: 14px;

  padding: 16px;

  border: 1px solid #e5eaf0;
  border-radius: 12px;

  background: #f8fafc;
}

.security-icon {
  font-size: 20px;
}

.security-message strong {
  display: block;

  margin-bottom: 5px;

  font-size: 14px;
}

.security-message p {
  margin: 0;

  color: #718096;
  font-size: 13px;
  line-height: 1.6;
}

/* =========================================================
   LOGIN / REGISTER - LEGACY
========================================================= */

.login {
  min-height: 100vh;

  display: grid;
  place-items: center;

  padding: 20px;

  background: radial-gradient(circle at top left, #eaf8f1 0, transparent 35%),
    var(--background);
}

.login .card {
  width: 420px;
  max-width: 100%;
}

.login .form {
  padding: 28px;
}

.login h1 {
  margin-top: 0;
  margin-bottom: 22px;

  font-size: 24px;
  letter-spacing: -0.5px;
}

.error {
  margin-top: 10px;
  padding: 9px 10px;

  border-radius: 7px;

  background: #fff2f1;
  color: #c62828;

  font-size: 12px;
}

/* =========================================================
   AUTH / LOGIN PAGE
========================================================= */

.auth-page {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 22px;

  background: radial-gradient(
      circle at 15% 20%,
      rgba(22, 160, 93, 0.08),
      transparent 30%
    ),
    #f5f8f7;
}

.auth-shell {
  width: 100%;
  max-width: 1080px;
  min-height: 650px;

  display: grid;
  grid-template-columns: 1fr 0.9fr;

  overflow: hidden;

  border: 1px solid #e2e9e5;
  border-radius: 20px;

  background: var(--white);

  box-shadow: 0 25px 70px rgba(23, 45, 35, 0.1);
}

/* =========================================================
   AUTH LEFT PANEL
========================================================= */

.auth-brand-panel {
  position: relative;

  display: flex;
  flex-direction: column;

  padding: 42px 48px;

  overflow: hidden;

  background: radial-gradient(
      circle at 80% 10%,
      rgba(255, 255, 255, 0.1),
      transparent 25%
    ),
    linear-gradient(145deg, #0d9b58, #087c48);

  color: var(--white);
}

.auth-brand-panel::after {
  content: "";

  position: absolute;

  width: 320px;
  height: 320px;

  right: -150px;
  bottom: -160px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;

  box-shadow: 0 0 0 45px rgba(255, 255, 255, 0.035),
    0 0 0 90px rgba(255, 255, 255, 0.025);
}

.auth-brand {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  gap: 11px;
}

.auth-brand-mark {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.16);
  color: var(--white);

  font-size: 21px;
  font-weight: 850;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.auth-brand-name {
  font-size: 18px;
  line-height: 21px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.auth-brand-subtitle {
  margin-top: 2px;

  color: rgba(255, 255, 255, 0.7);

  font-size: 9px;
  letter-spacing: 0.5px;
}

.auth-hero {
  position: relative;
  z-index: 2;

  max-width: 440px;

  margin: auto 0;
}

.auth-eyebrow {
  margin-bottom: 12px;

  color: rgba(255, 255, 255, 0.7);

  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.auth-hero h1 {
  margin: 0;

  color: var(--white);

  font-size: 37px;
  line-height: 1.12;
  letter-spacing: -1.4px;
}

.auth-hero h1 span {
  color: #bdf2d4;
}

.auth-hero > p {
  max-width: 390px;

  margin: 17px 0 0;

  color: rgba(255, 255, 255, 0.72);

  font-size: 12px;
  line-height: 1.75;
}

.auth-features {
  display: flex;
  flex-direction: column;

  gap: 15px;
  margin-top: 32px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 11px;
}

.auth-feature-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;

  display: grid;
  place-items: center;

  border-radius: 7px;

  background: rgba(255, 255, 255, 0.14);
  color: #d8f9e6;

  font-size: 11px;
  font-weight: 800;
}

.auth-feature div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-feature strong {
  font-size: 10px;
  font-weight: 750;
}

.auth-feature div span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
}

.auth-brand-footer {
  position: relative;
  z-index: 2;

  color: rgba(255, 255, 255, 0.48);
  font-size: 8px;
}

/* =========================================================
   AUTH RIGHT PANEL
========================================================= */

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 45px;

  background: var(--white);
}

.auth-form-wrap {
  width: 100%;
  max-width: 355px;
}

.auth-mobile-brand {
  display: none;
}

.auth-heading {
  margin-bottom: 27px;
}

.auth-small-title {
  margin-bottom: 7px;

  color: var(--green);

  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.auth-heading h2 {
  margin: 0;

  color: #17212b;

  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.7px;
}

.auth-heading p {
  margin: 7px 0 0;

  color: #89949d;

  font-size: 10px;
  line-height: 1.6;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field {
  display: flex;
  flex-direction: column;
}

.auth-field label,
.auth-label-row label {
  color: #4f5d67;

  font-size: 10px;
  font-weight: 700;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;
  margin-bottom: 6px;
}

.forgot-password {
  padding: 0;

  border: 0;
  background: transparent;

  color: var(--green-dark);

  font-size: 9px;
  font-weight: 700;
}

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

.auth-input-wrap {
  position: relative;

  display: flex;
  align-items: center;

  margin-top: 6px;
}

.auth-input-icon {
  position: absolute;
  left: 12px;
  z-index: 1;

  color: #9aa4ac;
  font-size: 11px;
}

.auth-input {
  width: 100%;
  height: 43px;

  margin: 0;
  padding: 0 12px 0 34px;

  border: 1px solid #dfe5e8;
  border-radius: 9px;

  outline: none;

  background: #fcfdfd;
  color: #17212b;

  font-size: 11px;

  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease;
}

.auth-input::placeholder {
  color: #a9b1b7;
}

.auth-input:focus {
  border-color: #8bcfac;
  background: var(--white);

  box-shadow: 0 0 0 3px #eaf8f0;
}

.auth-error {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-top: -5px;
  padding: 9px 10px;

  border: 1px solid #f4d3d1;
  border-radius: 8px;

  background: #fff6f5;
  color: #c44743;

  font-size: 9px;
  line-height: 1.4;
}

.auth-error span {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #f9d8d6;

  font-size: 9px;
  font-weight: 800;
}

.auth-submit {
  width: 100%;
  height: 43px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;
  margin-top: 1px;

  border: 0;
  border-radius: 9px;

  background: var(--green);
  color: var(--white);

  font-size: 11px;
  font-weight: 750;

  box-shadow: 0 5px 15px rgba(22, 160, 93, 0.16);

  transition: background 0.15s ease, transform 0.15s ease;
}

.auth-submit:hover:not(:disabled) {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-submit > span:last-child {
  font-size: 15px;
}

.auth-spinner {
  width: 13px;
  height: 13px;

  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);

  border-radius: 50%;

  animation: auth-spin 0.7s linear infinite;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-divider {
  display: flex;
  align-items: center;

  gap: 12px;
  margin: 24px 0 13px;

  color: #a0a9b1;

  font-size: 9px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";

  height: 1px;
  flex: 1 1;

  background: #edf0f2;
}

.auth-create {
  width: 100%;
  height: 41px;

  border: 1px solid #dfe5e2;
  border-radius: 9px;

  background: var(--white);
  color: #40504a;

  font-size: 10px;
  font-weight: 700;
}

.auth-create:hover {
  border-color: #a9d9be;
  background: #f4fbf7;
  color: var(--green-dark);
}

.auth-security {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 6px;
  margin-top: 25px;

  color: #a0a9b1;

  font-size: 8px;
  text-align: center;
}

.auth-security span:first-child {
  font-size: 9px;
}

/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 230px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .bottom-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 900px) {
  .side {
    display: none;
  }

  .main {
    margin-left: 0;
  }

  .mobile-menu {
    display: block;
  }

  .top {
    padding: 0 18px;
  }

  .search {
    display: none;
  }

  .content {
    padding: 24px 18px;
  }

  .welcome-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .contacts-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .contacts-filters {
    width: 100%;
  }

  .contact-search {
    flex: 1 1;
  }

  .contact-filter {
    width: 130px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  /* Auth */
  .auth-page {
    padding: 15px;
  }

  .auth-shell {
    max-width: 650px;
    min-height: auto;

    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    display: none;
  }

  .auth-form-panel {
    min-height: calc(100vh - 30px);
    padding: 35px;
  }

  .auth-mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;
    margin-bottom: 42px;
  }

  .auth-mobile-brand .auth-brand-mark {
    border: 0;

    background: linear-gradient(145deg, #19b96d, #07914e);
  }

  .auth-mobile-brand .auth-brand-name {
    color: #17212b;
  }

  .auth-mobile-brand .auth-brand-subtitle {
    color: #8b96a1;
  }
}

/* =========================================================
   RESPONSIVE - SMALL MOBILE
========================================================= */

@media (max-width: 600px) {
  .top-profile-text,
  .profile-chevron {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .welcome-row h1 {
    font-size: 21px;
  }

  .primary-btn {
    width: 100%;
  }

  .dashboard-card {
    padding: 15px;
  }

  .chart {
    height: 205px;
  }

  .card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .period-select {
    width: 100%;
  }

  .dashboard-footer {
    flex-direction: column;
  }

  .welcome-row .row {
    width: 100%;
    flex-direction: column;
  }

  .welcome-row .secondary-btn,
  .welcome-row .primary-btn {
    width: 100%;
  }

  .contacts-filters {
    flex-direction: column;
  }

  .contact-search,
  .contact-filter {
    width: 100%;
  }

  .bulk-toolbar {
    margin: 0 12px;
  }

  .table-footer {
    flex-direction: column;
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal {
    max-width: none;

    border-radius: 16px 16px 0 0;
  }

  .settings-card {
    padding: 18px;
  }

  .settings-card-header {
    flex-direction: column;
  }

  .webhook-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .webhook-events {
    flex-direction: column;
    gap: 10px;
  }

  .settings-detail {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  /* Profile dropdown */
  .profile-dropdown {
    right: -5px;
    width: 220px;
  }

  /* Auth */
  .auth-page {
    padding: 0;
  }

  .auth-shell {
    min-height: 100vh;

    border: 0;
    border-radius: 0;

    box-shadow: none;
  }

  .auth-form-panel {
    min-height: 100vh;
    padding: 28px 22px;
  }

  .auth-mobile-brand {
    margin-bottom: 50px;
  }

  .auth-heading h2 {
    font-size: 23px;
  }

  .auth-security {
    line-height: 1.5;
  }
}

/* =========================================================
   PROFILE MENU — PROFESSIONAL POLISH
========================================================= */

.profile-menu-wrap {
  position: relative;
  z-index: 100;
}

/* Trigger */
.profile-menu-trigger {
  position: relative;
  min-height: 42px;
  gap: 9px;
  padding: 4px 6px 4px 4px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  transition: background 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.profile-menu-trigger:hover {
  opacity: 1;
  background: #f7faf8;
  border-color: #e8eeeb;
}

.profile-menu-trigger:focus-visible {
  outline: 2px solid #9bdcba;
  outline-offset: 2px;
}

/* Avatar */
.profile-menu-trigger .top-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid #ccebdd;
  background: linear-gradient(145deg, #e8f8ef, #d9f2e5);
  color: #078749;
  font-size: 11px;
  box-shadow: 0 2px 7px rgba(16, 145, 82, 0.08);
}

/* User text */
.top-profile-text {
  min-width: 0;
  gap: 3px;
}

.top-profile-text strong {
  max-width: 130px;
  overflow: hidden;
  color: #26323b;
  font-size: 11px;
  font-weight: 750;
  line-height: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.top-profile-text span {
  color: #8a959e;
  font-size: 9px;
  line-height: 12px;
}

/* Chevron */
.profile-chevron {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  margin-left: 1px;
  border-radius: 6px;
  color: #89949d;
  font-size: 13px;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.profile-menu-trigger:hover .profile-chevron {
  background: #edf5f1;
  color: #078749;
}

.profile-chevron-open {
  transform: rotate(180deg);
  background: #edf5f1;
  color: #078749;
}

/* =========================================================
   DROPDOWN
========================================================= */

.profile-dropdown {
  top: calc(100% + 9px);
  right: 0;
  width: 255px;
  padding: 7px;
  border: 1px solid #e1e8e4;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 45px rgba(20, 35, 45, 0.13),
    0 3px 10px rgba(20, 35, 45, 0.04);
  animation: profile-dropdown-in 0.16s ease-out;
  transform-origin: top right;
}

@keyframes profile-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================================
   DROPDOWN HEADER
========================================================= */

.profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 11px;
  border-radius: 10px;
  background: linear-gradient(145deg, #f8fcfa, #f3f9f6);
}

.dropdown-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid #cdebdc;
  background: linear-gradient(145deg, #e5f8ed, #d8f1e3);
  color: #078749;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(16, 145, 82, 0.07);
}

.profile-dropdown-header > div:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-dropdown-header strong {
  overflow: hidden;
  color: #26323b;
  font-size: 11px;
  font-weight: 750;
  line-height: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.profile-dropdown-header span {
  overflow: hidden;
  color: #7f8b94;
  font-size: 9px;
  line-height: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.profile-dropdown-header small {
  color: #159457;
  font-size: 8px;
  font-weight: 700;
}

/* =========================================================
   DIVIDER
========================================================= */

.profile-dropdown-divider {
  height: 1px;
  margin: 7px 4px;
  background: #edf0f1;
}

/* =========================================================
   MENU ITEMS
========================================================= */

.profile-dropdown-item {
  position: relative;
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #596671;
  font-size: 10px;
  font-weight: 650;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    transform 0.15s ease;
}

.profile-dropdown-item > span:first-child {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #f3f6f5;
  color: #7c8992;
  font-size: 13px;
  transition: background 0.15s ease, color 0.15s ease;
}

.profile-dropdown-item:hover {
  background: #f5faf7;
  border-color: #e3eee8;
  color: #078749;
  transform: translateX(1px);
}

.profile-dropdown-item:hover > span:first-child {
  background: #e5f7ed;
  color: #078749;
}

/* =========================================================
   LOGOUT
========================================================= */

.profile-dropdown-item.logout-item {
  color: #c95450;
}

.profile-dropdown-item.logout-item > span:first-child {
  background: #fff3f2;
  color: #d45450;
}

.profile-dropdown-item.logout-item:hover {
  background: #fff7f6;
  border-color: #f5dfdd;
  color: #c84440;
}

.profile-dropdown-item.logout-item:hover > span:first-child {
  background: #ffe8e6;
  color: #c84440;
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 600px) {
  .profile-menu-trigger {
    min-height: 38px;
    padding: 2px;
  }

  .profile-menu-trigger .top-avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .profile-dropdown {
    top: calc(100% + 8px);
    right: -3px;
    width: 235px;
  }

  .profile-dropdown-header {
    padding: 11px 10px;
  }
}

/* =========================================================
   SIDEBAR — PROFESSIONAL REFINEMENT
   UI ONLY — NO FUNCTIONAL CHANGES
========================================================= */

.side {
  width: var(--sidebar-width);
  padding: 18px 13px 13px;
  background: #ffffff;
  border-right: 1px solid #e7ece9;
  box-shadow: 1px 0 0 rgba(20, 35, 45, 0.015);
}

/* =========================================================
   BRAND
========================================================= */

.brand {
  gap: 10px;
  padding: 3px 9px 19px;
}

.brand-mark {
  width: 37px;
  height: 37px;
  border-radius: 10px;
  background: linear-gradient(145deg, #19b96d, #078749);
  box-shadow: 0 5px 14px rgba(13, 164, 91, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 18px;
}

.brand-name {
  color: #17212b;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: -0.35px;
}

.brand-subtitle {
  margin-top: 2px;
  color: #9aa4ab;
  font-size: 9px;
  letter-spacing: 0.25px;
}

/* =========================================================
   WORKSPACE
========================================================= */

.workspace {
  position: relative;
  gap: 9px;
  margin: 0 2px 19px;
  padding: 9px;
  border: 1px solid #e5ebe8;
  border-radius: 10px;
  background: #fafcfb;
  box-shadow: 0 1px 2px rgba(20, 35, 45, 0.015);
  transition: background 0.16s ease, border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.workspace:hover {
  border-color: #d6e7de;
  background: #f8fcfa;
  box-shadow: 0 3px 10px rgba(20, 35, 45, 0.035);
}

.workspace-avatar {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: #e6f6ed;
  color: #078749;
  font-size: 11px;
}

.workspace-info {
  padding-right: 3px;
}

.workspace-name {
  color: #33404a;
  font-size: 11px;
  font-weight: 750;
}

.workspace-plan {
  margin-top: 3px;
  color: #9aa4ab;
  font-size: 9px;
}

.workspace-arrow {
  color: #a1abb2;
  font-size: 13px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.workspace:hover .workspace-arrow {
  color: #078749;
  transform: translateX(1px);
}

/* =========================================================
   NAVIGATION SECTIONS
========================================================= */

.nav-section {
  margin-bottom: 18px;
}

.nav-label {
  padding: 0 10px 7px;
  color: #a3adb4;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.15px;
}

.nav {
  gap: 2px;
}

/* =========================================================
   NAV LINKS
========================================================= */

.nav-link {
  position: relative;
  min-height: 40px;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #65717b;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    transform 0.15s ease;
}

.nav-link:hover {
  background: #f4f8f6;
  border-color: #e8efeb;
  color: #078749;
  transform: translateX(1px);
}

.nav-link:focus-visible {
  outline: 2px solid #9bdcba;
  outline-offset: 1px;
}

/* =========================================================
   NAV ICONS
========================================================= */

.nav-icon {
  width: 23px;
  height: 23px;
  border-radius: 7px;
  color: #87939c;
  font-size: 15px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover .nav-icon {
  background: #e7f7ee;
  color: #078749;
}

/*
  If your existing navigation uses an "active" class,
  these styles will automatically improve it.
*/
.nav-link.active,
.nav-link[aria-current="page"] {
  background: #eaf8f1;
  border-color: #d9eee2;
  color: #078749;
  font-weight: 700;
}

.nav-link.active .nav-icon,
.nav-link[aria-current="page"] .nav-icon {
  background: #d9f2e4;
  color: #078749;
}

/* =========================================================
   NAV BADGE
========================================================= */

.nav-badge {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 1px solid #e6ebed;
  border-radius: 20px;
  background: #f3f5f6;
  color: #7d8992;
  font-size: 9px;
  font-weight: 750;
}

.nav-link:hover .nav-badge {
  border-color: #d5e8dd;
  background: #e9f7ef;
  color: #078749;
}

/* =========================================================
   ONLINE STATUS DOT
========================================================= */

.status-dot {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 0 3px #e8f8ef;
}

/* =========================================================
   SIDEBAR BOTTOM
========================================================= */

.sidebar-bottom {
  margin-top: auto;
  padding-top: 8px;
}

/* =========================================================
   UPGRADE CARD
========================================================= */

.upgrade-card {
  margin: 4px 2px 12px;
  padding: 14px;
  border: 1px solid #d9eee2;
  border-radius: 11px;
  background: radial-gradient(
      circle at 100% 0%,
      rgba(255, 255, 255, 0.75),
      transparent 45%
    ),
    linear-gradient(145deg, #f1fbf5, #e7f7ee);
  box-shadow: 0 3px 12px rgba(20, 120, 70, 0.035);
}

.upgrade-icon {
  width: 29px;
  height: 29px;
  margin-bottom: 9px;
  border: 1px solid #e2f0e8;
  border-radius: 8px;
  background: #ffffff;
  color: #16a05d;
  font-size: 13px;
  box-shadow: 0 2px 5px rgba(20, 35, 45, 0.025);
}

.upgrade-title {
  color: #34423b;
  font-size: 11px;
  font-weight: 800;
}

.upgrade-text {
  margin-top: 5px;
  color: #718079;
  font-size: 9px;
  line-height: 15px;
}

.upgrade-btn {
  min-height: 31px;
  margin-top: 11px;
  padding: 7px 8px;
  border-radius: 7px;
  background: #16a05d;
  box-shadow: 0 4px 10px rgba(22, 160, 93, 0.12);
  font-size: 10px;
}

.upgrade-btn:hover {
  background: #078749;
  box-shadow: 0 5px 13px rgba(22, 160, 93, 0.16);
}

/* =========================================================
   SIDEBAR PROFILE
========================================================= */

.profile {
  gap: 9px;
  padding: 11px 6px 3px;
  border-top: 1px solid #e8edeb;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border: 1px solid #ccebdd;
  background: #e2f6ea;
  color: #078749;
  font-size: 10px;
}

.profile-info {
  min-width: 0;
}

.profile-name {
  overflow: hidden;
  color: #46535d;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.profile-email {
  margin-top: 2px;
  color: #9aa4ab;
  font-size: 8px;
}

.profile-menu {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #9ba5ac;
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease;
}

.profile-menu:hover {
  background: #f2f7f4;
  color: #078749;
}

/* =========================================================
   SIDEBAR SCROLLBAR
========================================================= */

.side {
  scrollbar-width: thin;
  scrollbar-color: #dbe5df transparent;
}

.side::-webkit-scrollbar {
  width: 4px;
}

.side::-webkit-scrollbar-track {
  background: transparent;
}

.side::-webkit-scrollbar-thumb {
  background: #dbe5df;
  border-radius: 10px;
}

.side::-webkit-scrollbar-thumb:hover {
  background: #c5d4cc;
}

/* =========================================================
   SIDEBAR — TABLET
========================================================= */

@media (max-width: 1180px) {
  .side {
    padding-left: 11px;
    padding-right: 11px;
  }

  .nav-link {
    padding-left: 9px;
    padding-right: 9px;
  }
}

/* =========================================================
   SIDEBAR — MOBILE
========================================================= */

@media (max-width: 900px) {
  .side {
    display: none;
  }
}

/* =========================================
   Dashboard Stats - Refined
   ========================================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 18px;
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  position: relative;
  min-height: 148px;
  padding: 20px 21px;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: #dce3eb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stat-label {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
}

.stat-icon.blue {
  background: #eef6ff;
  color: #3b82f6;
}

.stat-icon.green {
  background: #ecfdf5;
  color: #10b981;
}

.stat-icon.purple {
  background: #f5f3ff;
  color: #8b5cf6;
}

.stat-icon.red {
  background: #fef2f2;
  color: #ef4444;
}

.stat-value {
  margin-top: 13px;
  color: #0f172a;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stat-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  min-height: 18px;
  color: #94a3b8;
  font-size: 12px;
}

.stat-footer.neutral {
  color: #94a3b8;
}

.stat-period {
  white-space: nowrap;
}

/* =========================================
     Message Performance
     ========================================= */

.performance-card {
  overflow: hidden;
}

.performance-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-top: 24px;
}

.performance-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 82px;
  padding: 16px;
  border: 1px solid #edf1f5;
  border-radius: 12px;
  background: #fafbfc;
}

.performance-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
}

.performance-dot.sent {
  background: #3b82f6;
}

.performance-dot.delivered {
  background: #10b981;
}

.performance-dot.read {
  background: #8b5cf6;
}

.performance-dot.failed {
  background: #ef4444;
}

.performance-item div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.performance-item strong {
  color: #0f172a;
  font-size: 21px;
  line-height: 1.1;
  font-weight: 700;
}

.performance-item span:not(.performance-dot) {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

/* =========================================
     Responsive
     ========================================= */

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

  .performance-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .performance-summary {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 135px;
  }
}

/* =========================================================
   ZUNOO DASHBOARD REFINEMENT
   ========================================================= */

.dashboard-content {
  padding-bottom: 32px;
}

.dashboard-welcome {
  margin-bottom: 28px;
}

.dashboard-welcome h1 {
  letter-spacing: -0.035em;
}

.dashboard-welcome p {
  max-width: 620px;
}

.dashboard-create-btn {
  min-width: 170px;
}

/* Stats */

.dashboard-stats {
  margin-bottom: 22px;
}

.dashboard-stat-card {
  min-height: 154px;
  position: relative;
  overflow: hidden;
}

.dashboard-stat-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -48px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.025);
  pointer-events: none;
}

.dashboard-stat-card .stat-value {
  margin-top: 18px;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.dashboard-stat-card .stat-footer {
  margin-top: 15px;
}

.stat-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #aab2bd;
  display: inline-block;
}

.delivered-stat .stat-status-dot {
  background: #7c5cff;
}

.failed-stat .stat-status-dot {
  background: #ef4444;
}

/* Main overview */

.dashboard-overview-grid {
  align-items: stretch;
  margin-bottom: 22px;
}

.dashboard-activity-card,
.dashboard-whatsapp-card {
  min-height: 365px;
}

.dashboard-activity-card {
  display: flex;
  flex-direction: column;
}

.activity-period {
  padding: 7px 11px;
  border: 1px solid #e7eaf0;
  border-radius: 8px;
  color: #667085;
  background: #fafbfc;
  font-size: 11px;
  font-weight: 600;
}

.activity-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 24px;
  gap: 24px;
  margin: 24px 0 20px;
  padding: 20px;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  background: #fafbfc;
}

.activity-total,
.activity-rate {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.activity-total > span,
.activity-rate span {
  font-size: 12px;
  color: #7a8492;
  font-weight: 500;
}

.activity-total strong,
.activity-rate strong {
  font-size: 27px;
  color: #17202b;
  letter-spacing: -0.03em;
}

.activity-progress {
  height: 7px;
  width: 100%;
  overflow: hidden;
  margin-top: 4px;
  border-radius: 20px;
  background: #e9edf2;
}

.activity-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #6c5ce7;
  transition: width 0.35s ease;
}

.performance-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 10px;
  gap: 10px;
  margin-top: auto;
}

.performance-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid #edf0f4;
  border-radius: 11px;
  background: #fff;
}

.performance-item > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.performance-item strong {
  color: #202833;
  font-size: 16px;
  line-height: 1.1;
}

.performance-item span:not(.performance-dot) {
  color: #8a93a0;
  font-size: 10px;
}

.performance-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
}

.performance-dot.sent {
  background: #3b82f6;
}

.performance-dot.delivered {
  background: #22c55e;
}

.performance-dot.read {
  background: #8b5cf6;
}

.performance-dot.failed {
  background: #ef4444;
}

.activity-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid #edf0f4;
  color: #7a8492;
  font-size: 11px;
}

.activity-footer strong {
  color: #252d38;
}

/* WhatsApp */

.dashboard-whatsapp-card {
  display: flex;
  flex-direction: column;
}

.dashboard-whatsapp-card .whatsapp-preview {
  margin-top: 5px;
}

.dashboard-whatsapp-card .connection-detail {
  padding: 13px 0;
}

.dashboard-whatsapp-card .outline-btn {
  margin-top: auto;
}

/* Campaigns */

.dashboard-campaigns-card {
  margin-bottom: 22px;
  overflow: hidden;
}

.dashboard-campaigns-card .card-header {
  padding-bottom: 20px;
}

.dashboard-campaigns-card .table-wrap {
  border-top: 1px solid #edf0f4;
}

.dashboard-campaigns-card .dashboard-table th {
  background: #fafbfc;
}

.dashboard-campaigns-card .dashboard-table td {
  height: 65px;
}

.dashboard-campaigns-card .campaign-name {
  min-width: 210px;
}

/* Bottom */

.dashboard-bottom-grid {
  align-items: stretch;
}

.dashboard-quick-card,
.dashboard-plan-card {
  min-height: 285px;
}

.dashboard-quick-card .quick-actions {
  gap: 9px;
}

.dashboard-quick-card .quick-action {
  min-height: 62px;
  border-radius: 12px;
  transition: background 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
}

.dashboard-quick-card .quick-action:hover {
  transform: translateY(-1px);
}

.quick-arrow {
  color: #a1a9b4;
  font-size: 16px;
}

/* Plan */

.dashboard-plan-card {
  position: relative;
  overflow: hidden;
}

.dashboard-plan-card::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(108, 92, 231, 0.045);
  pointer-events: none;
}

.plan-badge {
  padding: 6px 10px;
  border-radius: 7px;
  background: #f2efff;
  color: #6c5ce7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.dashboard-plan-card .usage-value {
  margin-top: 28px;
}

.dashboard-plan-card .usage-value strong {
  font-size: 38px;
  letter-spacing: -0.04em;
}

.dashboard-plan-card .usage-progress {
  margin-top: 20px;
}

.dashboard-plan-card .usage-footer {
  margin-top: 13px;
}

/* Footer */

.dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 2px 4px;
  color: #98a1ad;
  font-size: 10px;
}

.dashboard-footer span:first-child {
  font-weight: 600;
  color: #7f8895;
}

/* Responsive */

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

  .performance-summary {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

  .activity-main {
    grid-template-columns: 1fr;
  }

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

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

  .dashboard-welcome {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-create-btn {
    width: 100%;
  }

  .performance-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .activity-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }

  .dashboard-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Dashboard Layout Fix ===== */

.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}

.dashboard-bottom-grid > .dashboard-card {
  min-width: 0;
  height: 100%;
}

.dashboard-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}

.dashboard-two-column > .dashboard-card {
  min-width: 0;
  height: 100%;
}

.dashboard-campaigns-card,
.dashboard-whatsapp-card {
  min-height: 430px;
  height: 100%;
}

.dashboard-campaigns-card {
  display: flex;
  flex-direction: column;
}

.dashboard-campaigns-card .table-wrap {
  flex: 1 1;
  overflow-x: auto;
}

.dashboard-whatsapp-card {
  display: flex;
  flex-direction: column;
}

.dashboard-whatsapp-card .outline-btn {
  margin-top: auto;
}

@media (max-width: 1100px) {
  .dashboard-bottom-grid,
  .dashboard-two-column {
    grid-template-columns: 1fr;
  }

  .dashboard-campaigns-card,
  .dashboard-whatsapp-card {
    min-height: auto;
  }

  .dashboard-whatsapp-card .outline-btn {
    margin-top: 20px;
  }
}

@media (max-width: 700px) {
  .dashboard-bottom-grid,
  .dashboard-two-column {
    gap: 12px;
    margin-top: 12px;
  }
}
/* Dashboard secondary actions */
.dashboard-campaigns-card .view-link,
.dashboard-plan-card .usage-footer button {
  padding: 9px 12px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--white);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
}

/* Hover */
.dashboard-campaigns-card .view-link:hover,
.dashboard-plan-card .usage-footer button:hover {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(14, 164, 91, 0.15);
  text-decoration: none;
}

.danger-btn {
  padding: 10px 14px;
  border: 1px solid #dc2626;
  border-radius: 8px;
  background: #fff;
  color: #dc2626;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
  margin-top: 10px;
}

.danger-btn:hover {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.danger-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

