@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700;800&display=swap');
:root {
  font-family:
    'Tajawal',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  color: #14233e;
  background: #f5f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
svg {
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.4;
  letter-spacing: -0.4px;
  margin-bottom: 5px;
}
h2 {
  font-size: 17px;
  margin-bottom: 4px;
}
h3 {
  font-size: 16px;
  margin-bottom: 7px;
}
.muted {
  color: #8591a7;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 258px;
  flex-shrink: 0;
  background: #0c1830;
  color: #c1cadd;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 34px 24px 24px;
}
.brand-symbol {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  background: linear-gradient(142deg, #7d70f3, #494bcc);
  color: white;
  border-radius: 13px;
  box-shadow: 0 8px 22px #373acb55;
}
.brand strong {
  display: block;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
}
.brand span {
  display: block;
  color: #98a7c5;
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 6px;
  font-family: Arial, sans-serif;
}
.sidebar-separator {
  height: 1px;
  background: #25334b;
  margin: 0 23px 15px;
}
.nav-heading {
  color: #667995;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin: 18px 27px 11px;
}
.nav-heading.second {
  margin-top: 37px;
}
.sidebar nav {
  display: grid;
  gap: 3px;
  padding: 0 11px;
}
.nav-item {
  border: 0;
  background: transparent;
  color: #bac7da;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  position: relative;
  transition: background 0.2s;
}
.nav-item:hover {
  background: #1b2942;
  color: white;
}
.nav-item.selected {
  background: #273354;
  color: #fff;
}
.nav-item.selected::before {
  position: absolute;
  content: '';
  right: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 3px;
  background: #8584ff;
}
.nav-item.selected svg {
  color: #a2a0ff;
}
.sidebar-footer {
  margin: auto 16px 22px;
  border: 1px solid #273650;
  border-radius: 12px;
  padding: 12px 13px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.sidebar-footer strong {
  font-size: 12px;
  display: block;
  color: #f0f4ff;
}
.sidebar-footer small {
  font-size: 11px;
  color: #8494b1;
}
.security-dot {
  height: 33px;
  width: 33px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #1c4257;
  color: #4be2b4;
}
.main-layout {
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 83px;
  background: white;
  border-bottom: 1px solid #e9edf3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 44px;
}
.topbar-start,
.top-actions,
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
}
.breadcrumb {
  font-size: 13px;
  color: #8d98aa;
  gap: 10px;
}
.breadcrumb strong {
  color: #36445d;
  font-size: 13px;
}
.user-avatar {
  display: grid;
  place-items: center;
  background: #eef0ff;
  border-radius: 50%;
  height: 35px;
  width: 35px;
  color: #6564d1;
  font-size: 15px;
  font-weight: 800;
}
.mode-pill {
  border-radius: 50px;
  padding: 8px 12px;
  background: #e8f8f1;
  color: #14886a;
  font-size: 11px;
  font-weight: 800;
}
.page {
  max-width: 1530px;
  margin: auto;
  padding: 39px 44px;
}
.preview-banner,
.notice-line,
.disclaimer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
  background: #fff8e9;
  border: 1px solid #f6e4bd;
  color: #98702c;
  padding: 12px 17px;
  border-radius: 10px;
  margin-bottom: 22px;
}
.page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 29px;
}
.eyebrow {
  color: #7572db;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin: 0 0 6px;
}
.lead {
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
}
.btn {
  border: 0;
  border-radius: 10px;
  padding: 12px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
  font-size: 12.5px;
  white-space: nowrap;
  transition:
    transform 0.15s,
    background 0.15s;
  min-height: 43px;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: #514cce;
  color: #fff;
  box-shadow: 0 4px 12px #514cce18;
}
.btn-primary:hover {
  background: #423bb4;
}
.btn-outline {
  border: 1px solid #dfe4ed;
  background: #fff;
  color: #31415e;
}
.btn-soft {
  background: #f1f2ff;
  color: #514cce;
}
.full {
  width: 100%;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 25px;
}
.stat-card {
  background: white;
  border: 1px solid #e8edf4;
  border-radius: 14px;
  padding: 21px 23px;
  min-height: 151px;
  box-shadow: 0 2px 8px #10264d05;
}
.stat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #6c788e;
  font-size: 12px;
  font-weight: 800;
}
.stat-icon {
  display: grid;
  place-items: center;
  height: 40px;
  width: 40px;
  border-radius: 11px;
}
.stat-icon.purple {
  background: #f0edff;
  color: #7b65e6;
}
.stat-icon.blue {
  background: #eaf2ff;
  color: #4c8ed8;
}
.stat-icon.orange {
  background: #fff1e1;
  color: #e3a055;
}
.stat-icon.green {
  background: #e6f9f1;
  color: #37b48b;
}
.stat-value {
  font-size: 31px;
  font-weight: 800;
  color: #182742;
  margin: 10px 0 2px;
  line-height: 1.2;
}
.stat-card p {
  color: #a0aabe;
  font-size: 11px;
  margin: 0;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 19px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 14px;
  box-shadow: 0 2px 10px #1a28550a;
}
.activity-panel {
  min-height: 459px;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 25px 16px;
}
.panel-header p {
  font-size: 11px;
  color: #9da6b6;
  margin: 4px 0;
}
.text-link {
  border: 0;
  background: none;
  color: #615dca;
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
}
.post-row {
  padding: 14px 23px;
  display: grid;
  grid-template-columns: 42px minmax(145px, 1fr) minmax(110px, auto) minmax(
      125px,
      auto
    ) 66px;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #f1f3f7;
}
.post-icon {
  width: 39px;
  height: 39px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.post-icon.x {
  background: #eef0f5;
  color: #28364c;
}
.post-icon.youtube {
  background: #fff0f0;
  color: #ec424a;
}
.post-info {
  min-width: 0;
}
.post-info strong {
  display: block;
  color: #23324b;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-info small {
  font-size: 11px;
  color: #8f9aae;
  display: block;
  margin-top: 7px;
}
.status {
  font-size: 10px;
  font-weight: 800;
  border-radius: 50px;
  padding: 7px 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.status i,
.not-connected i {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  display: inline-block;
  background: currentColor;
}
.status-draft {
  color: #737c91;
  background: #f0f2f6;
}
.status-scheduled {
  color: #bc843b;
  background: #fff4e4;
}
.status-published {
  color: #169d7e;
  background: #e5f8ef;
}
.status-failed {
  color: #d45858;
  background: #fff0f0;
}
.post-date {
  font-size: 10.5px;
  color: #8d98aa;
  white-space: nowrap;
}
.post-actions {
  display: flex;
  justify-content: end;
  gap: 4px;
}
.icon-button {
  border: 0;
  background: transparent;
  display: inline-grid;
  place-items: center;
  color: #8592a6;
  height: 30px;
  width: 30px;
  border-radius: 7px;
}
.icon-button:hover {
  background: #eff1ff;
  color: #514cce;
}
.icon-button.danger:hover {
  background: #fff0f1;
  color: #e04759;
}
.sidepanels {
  display: grid;
  gap: 18px;
}
.launch-panel {
  padding: 23px;
  background: linear-gradient(165deg, #faf8ff, #fff);
}
.panel-head-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #eeebff;
  color: #6861e7;
  margin-bottom: 19px;
}
.launch-panel h2 {
  font-size: 17px;
}
.launch-panel p,
.guide p {
  color: #8590a5;
  font-size: 12px;
  line-height: 1.9;
  margin: 8px 0 21px;
}
.setup-panel {
  padding: 23px;
}
.setup-panel h3 {
  margin-bottom: 20px;
}
.setup-step {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8c97ac;
  font-size: 11.5px;
  margin: 14px 0;
}
.setup-step span {
  border: 1px solid #e4e8ef;
  height: 23px;
  width: 23px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 10px Arial;
  color: #91a0b5;
}
.setup-step.done {
  color: #4a586f;
}
.setup-step.done span {
  background: #e5f8ee;
  color: #2aa781;
  border: 0;
}
footer {
  font-size: 10.5px;
  color: #a2afbf;
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.compose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 20px;
  align-items: start;
}
.compose-form {
  padding: 30px;
}
.form-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 23px;
}
.form-section-head.extra {
  margin: 32px 0 19px;
}
.num-bubble {
  background: #eeeeff;
  color: #6461d5;
  border-radius: 9px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  font: 700 12px Arial;
}
.form-section-head h2 {
  margin-bottom: 2px;
}
.form-section-head p {
  margin: 0;
  color: #98a3b6;
  font-size: 11px;
}
.compose-form label,
.login-card label {
  display: block;
  margin: 18px 0 9px;
  color: #45536b;
  font-size: 12px;
  font-weight: 800;
}
.compose-form input,
.compose-form textarea,
.compose-form select,
.login-card input,
.search-wrap input {
  width: 100%;
  border: 1px solid #e1e7f0;
  background: #fff;
  color: #1e2d46;
  border-radius: 9px;
  outline: 0;
  padding: 12px 14px;
  font-size: 12px;
  transition: border 0.2s;
}
.compose-form input:focus,
.compose-form textarea:focus,
.compose-form select:focus,
.login-card input:focus,
.search-wrap input:focus {
  border-color: #8d87ef;
  box-shadow: 0 0 0 3px #8b86e918;
}
.compose-form textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.8;
}
.compose-form input::placeholder,
.compose-form textarea::placeholder {
  color: #b6bfce;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.helper {
  display: block;
  font-size: 10.5px;
  color: #9da8bb;
  margin-top: 8px;
}
.disclaimer {
  margin: 18px 0 0;
  background: #f4f6ff;
  border-color: #e9e9ff;
  color: #6b70a4;
}
.form-buttons {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #f0f1f5;
}
.compose-side {
  display: grid;
  gap: 17px;
}
.compose-side .panel {
  padding: 24px;
}
.mini-star {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: #eeeaff;
  color: #6b63db;
  border-radius: 12px;
  margin-bottom: 18px;
}
.guide ul {
  margin: 0;
  padding-right: 18px;
  color: #6e7b8d;
  font-size: 12px;
  line-height: 2.3;
}
.connected h3 {
  margin-bottom: 19px;
}
.connect-mini {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  font-size: 12px;
  font-weight: 800;
  color: #36425b;
  border-bottom: 1px solid #f0f2f6;
}
.connect-mini:last-child {
  border: 0;
}
.connect-mini span {
  margin-right: auto;
  color: #a4aebe;
  font-size: 11px;
}
.library-panel {
  min-height: 325px;
}
.library-toolbar {
  padding: 19px 23px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.filter-tabs {
  display: flex;
  gap: 5px;
  padding: 4px;
  background: #f4f6fb;
  border-radius: 9px;
}
.filter-tab {
  padding: 8px 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8a98af;
  font-size: 11px;
  font-weight: 800;
}
.filter-tab.active {
  background: white;
  box-shadow: 0 2px 4px #111a3110;
  color: #4d4bc4;
}
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  color: #9aa6b8;
}
.search-wrap svg {
  position: absolute;
  right: 12px;
}
.search-wrap input {
  padding-right: 38px;
  width: 225px;
}
.empty {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: center;
  justify-content: center;
  color: #959fb2;
  text-align: center;
}
.empty strong {
  color: #4b5870;
  font-size: 14px;
}
.empty small {
  font-size: 12px;
}
.empty .btn {
  margin-top: 7px;
}
.calendar-list {
  overflow: hidden;
}
.calendar-list .panel-header {
  border-bottom: 1px solid #eff1f6;
}
.calendar-item {
  display: flex;
  gap: 17px;
  padding: 19px 23px;
  align-items: center;
  border-bottom: 1px solid #f1f3f7;
}
.date-bullet {
  background: #eff0ff;
  color: #625bdc;
  padding: 11px;
  border-radius: 10px;
}
.calendar-item h3 {
  font-size: 13px;
  margin: 0;
}
.calendar-item p {
  font-size: 11px;
  color: #95a0b4;
  margin: 6px 0 0;
}
.calendar-item .btn {
  margin-right: auto;
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}
.account-card {
  padding: 29px;
}
.account-logo {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  border-radius: 14px;
  margin-bottom: 21px;
}
.account-logo.dark {
  background: #151e30;
  color: white;
}
.account-logo.red {
  background: #ffefef;
  color: #ed434f;
}
.account-card h2 {
  font-size: 19px;
}
.account-card p {
  font-size: 12px;
  color: #8d9aac;
  line-height: 1.9;
  max-width: 350px;
  min-height: 48px;
}
.not-connected {
  font-size: 11px;
  color: #bd795d;
  background: #fff5ee;
  padding: 8px 11px;
  border-radius: 20px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 23px;
}
.settings-list {
  display: grid;
  gap: 13px;
}
.settings-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  gap: 17px;
}
.settings-card > div {
  display: flex;
  align-items: center;
  gap: 20px;
}
.settings-card > div > svg {
  color: #716be1;
}
.settings-card h3 {
  margin-bottom: 4px;
}
.settings-card p {
  font-size: 11px;
  color: #95a1b5;
  margin: 0;
}
.settings-value {
  font-size: 12px;
  color: #68758a;
  font-weight: 800;
}
.toast {
  position: fixed;
  bottom: 27px;
  left: 26px;
  z-index: 99;
  max-width: min(92vw, 420px);
  box-shadow: 0 12px 35px #132b3d29;
  color: white;
  background: #28354f;
  padding: 15px 17px;
  border-radius: 10px;
  font-size: 13px;
  display: flex;
  gap: 15px;
  align-items: center;
}
.toast button {
  border: 0;
  background: none;
  color: white;
  font-size: 22px;
}
.login-page {
  min-height: 100vh;
  background: #f5f7fc;
  display: grid;
  place-items: center;
  padding: 25px;
}
.login-card {
  width: min(100%, 420px);
  background: white;
  border: 1px solid #e5e8f2;
  border-radius: 18px;
  box-shadow: 0 16px 48px #13294b15;
  padding: 32px 36px;
}
.login-brand {
  padding: 0 0 28px;
}
.login-brand .brand strong {
  color: #111;
}
.login-brand strong {
  color: #14233e;
}
.login-brand span {
  color: #9aa4b4;
}
.login-lock {
  background: #f0efff;
  color: #625bdd;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  margin: 9px 0 22px;
}
.login-card h1 {
  font-size: 26px;
  margin-bottom: 5px;
}
.login-card > p {
  color: #95a0b2;
  font-size: 12px;
  margin-bottom: 26px;
}
.login-card input {
  padding: 14px;
}
.login-card .btn {
  margin-top: 27px;
}
.login-foot {
  border-top: 1px solid #f0f2f8;
  color: #a2abba;
  text-align: center;
  font-size: 10px;
  margin-top: 26px;
  padding-top: 20px;
}
.mobile-menu,
.mobile-overlay {
  display: none;
}
@media (max-width: 1250px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .post-row {
    grid-template-columns: 40px minmax(135px, 1fr) 115px 64px;
  }
  .post-date {
    display: none;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .page {
    padding: 31px 30px;
  }
  .topbar {
    padding: 0 30px;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 222px;
  }
  .brand {
    padding: 29px 15px 23px;
  }
  .dashboard-grid,
  .compose-grid {
    grid-template-columns: 1fr;
  }
  .sidepanels,
  .compose-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sidepanels .panel {
    height: 100%;
  }
}
@media (max-width: 730px) {
  .sidebar {
    position: fixed;
    right: 0;
    transform: translateX(100%);
    transition: transform 0.2s;
    width: 258px;
    box-shadow: -12px 0 36px #0d19302a;
  }
  .sidebar.nav-open {
    transform: translateX(0);
  }
  .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: #15203977;
    border: 0;
    z-index: 20;
  }
  .mobile-menu {
    display: inline-grid;
  }
  .main-layout {
    width: 100%;
  }
  .topbar {
    height: 69px;
    padding: 0 17px;
  }
  .page {
    padding: 25px 15px;
  }
  .page-title-row {
    align-items: flex-start;
  }
  .page-title-row .btn {
    font-size: 0;
    padding: 11px;
    min-width: 43px;
  }
  .page-title-row .btn svg {
    width: 20px;
    height: 20px;
  }
  .page-title-row h1 {
    font-size: 23px;
  }
  .lead {
    font-size: 12px;
  }
  .stat-card {
    padding: 18px;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat-value {
    font-size: 26px;
  }
  .stat-head {
    font-size: 11px;
  }
  .sidepanels,
  .compose-side {
    grid-template-columns: 1fr;
  }
  .account-grid {
    grid-template-columns: 1fr;
  }
  .compose-form {
    padding: 20px;
  }
  .post-row {
    grid-template-columns: 36px minmax(100px, 1fr) 60px;
    gap: 9px;
    padding: 12px;
  }
  .post-status {
    display: none;
  }
  .post-icon {
    width: 35px;
    height: 35px;
  }
  .post-info strong {
    font-size: 12px;
  }
  .panel-header,
  .library-toolbar {
    padding: 18px 15px;
  }
  .library-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-tabs {
    justify-content: center;
  }
  .search-wrap input {
    width: 100%;
  }
  .post-actions {
    gap: 0;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .mode-pill {
    font-size: 9px;
  }
  .preview-banner {
    font-size: 11px;
  }
  .settings-card {
    padding: 16px 13px;
  }
  .settings-card > div {
    gap: 10px;
  }
  .settings-card p {
    line-height: 1.5;
  }
  .sidebar-footer {
    margin-top: auto;
  }
  .page-title-row {
    margin-bottom: 22px;
  }
  .breadcrumb {
    font-size: 12px;
  }
}
@media (max-width: 390px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-head svg {
    display: none;
  }
  .stat-card {
    min-height: 132px;
  }
  .stat-card p {
    font-size: 9px;
  }
  .breadcrumb strong {
    font-size: 11px;
  }
  .page-title-row h1 {
    font-size: 21px;
  }
}

.metricool-linked { display: flex; align-items: center; gap: 8px; margin: 16px 0; color: #087a57; font-weight: 700; font-size: 14px; }
.metricool-linked i { width: 8px; height: 8px; border-radius: 50%; background: #16a36a; display: inline-block; }

.oauth-uri{overflow-wrap:anywhere;direction:ltr;text-align:left;background:#f2f5fb;border-radius:10px;padding:12px;font-size:12px;}
.direct-linked{display:flex;align-items:center;gap:8px;color:#087a57;font-weight:700;margin:14px 0;}
.direct-linked i{display:inline-block;background:#14a76c;border-radius:50%;height:8px;width:8px;}
