/* =========================================================
   YAZEED ENGLISH — AFFILIATE PORTAL
   Built to match the existing Yazeed English Hub CSS tokens.
   ========================================================= */
:root {
  --paper: #F5F6F2;
  --ink: #00273a;
  --ink-soft: #5B645F;
  --indigo: #00689b;
  --course-button: #00689b;
  --line: #DCDFD6;
  --card: #FFFFFF;
  --danger: #C94C4C;
  --white: #FFFFFF;
  --success: #15803d;
  --warning: #A16207;
  --shadow: 0 12px 32px rgba(0, 39, 58, .06);
}
body.dark {
  --paper: #15181C;
  --ink: #E8EAE4;
  --ink-soft: #9AA39B;
  --card: #1E2227;
  --line: #33383B;
  --indigo: #00689b;
  --course-button: #0088C7;
  --danger: #E2897A;
  --success: #4ade80;
  --warning: #FACC15;
  --shadow: 0 12px 32px rgba(0, 0, 0, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; font-family: "Tajawal", sans-serif;
  background: var(--paper); color: var(--ink); transition: background .25s ease, color .25s ease;
}
body, button, input { font-family: "Tajawal", sans-serif; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font-size: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(0, 104, 155, .25); outline-offset: 2px; }


.top-header {
  min-height: 77px;
  display: flex;
  flex-direction: row;
  direction: ltr;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 15px 35px;
  border-bottom: 1px solid var(--line);
  background: var(--card);

}

.header-side {
  display: flex;
  flex-direction: row;
  direction: ltr;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand {
  display: flex;
  flex-direction: row-reverse;
  direction: ltr;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.brand-logo { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }
.brand-logo-fallback { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--indigo); color: white; font-size: 20px; font-weight: 900; }

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1px;
}

.brand-text strong { font-size: 15px; font-weight: 900; }
.brand-text span { color: var(--ink-soft); font-size: 11px; }
.theme-btn, .icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line);
  border-radius: 11px; background: var(--card); color: var(--ink); cursor: pointer; transition: .2s;
}
.theme-btn:hover, .icon-btn:hover { border-color: var(--indigo); transform: translateY(-2px); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.logout-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 9px 15px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; transition: .2s; }
.logout-button:hover { border-color: var(--indigo); transform: translateY(-2px); }
.main-website { width: 100%; max-width: 1160px; margin: auto; padding: 34px 25px 60px; }
.login-shell { min-height: calc(100vh - 170px); display: grid; place-items: center; padding: 35px 18px; }
.login-card { width: min(100%, 440px); padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.login-mark { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 17px; background: rgba(0, 104, 155, .10); color: var(--indigo); font-size: 26px; }
.eyebrow { display: inline-block; color: var(--indigo); font-size: 12px; font-weight: 900; letter-spacing: 1.5px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.login-card h1 { margin: 8px 0; font-size: 31px; font-weight: 900; }
.muted { color: var(--ink-soft); line-height: 1.8; }
.field { display: grid; gap: 7px; margin-top: 18px; }
.field label { font-size: 14px; font-weight: 800; }
.field input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 15px; }
.field input::placeholder { color: var(--ink-soft); opacity: .8; }
.primary-btn, .secondary-btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; font-weight: 900; cursor: pointer; transition: .2s; }
.primary-btn { border: 0; background: var(--course-button); color: white; }
.primary-btn:hover { transform: translateY(-2px); opacity: .94; }
.secondary-btn { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.secondary-btn:hover { border-color: var(--indigo); color: var(--indigo); }
.login-submit { width: 100%; margin-top: 24px; }
.form-message { display: none; margin-top: 14px; padding: 11px 13px; border-radius: 10px; font-size: 13px; line-height: 1.7; }
.form-message.error { display: block; color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.form-message.success { display: block; color: var(--success); background: color-mix(in srgb, var(--success) 10%, transparent); }
.dashboard-welcome { margin: 4px 0 28px; }
.dashboard-welcome h1 { margin: 7px 0 3px; font-size: clamp(28px, 4vw, 38px); font-weight: 900; }
.dashboard-welcome p { margin: 0; color: var(--ink-soft); line-height: 1.8; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.stat-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 19px; background: var(--card); box-shadow: var(--shadow); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat-icon { width: 43px; height: 43px; display: grid; place-items: center; flex-shrink: 0; border-radius: 13px; color: var(--indigo); background: rgba(0, 104, 155, .10); font-size: 20px; }
.stat-icon.green { color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent); }
.stat-label { color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.stat-value { margin-top: 16px; font-size: clamp(25px, 3vw, 32px); font-weight: 900; letter-spacing: -.5px; direction: rtl; }
.stat-foot { margin-top: 3px; color: var(--ink-soft); font-size: 12px; }
.content-panel { margin-top: 26px; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: var(--card); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 21px 23px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: 20px; font-weight: 900; }
.panel-heading p { margin: 4px 0 0; color: var(--ink-soft); font-size: 13px; }
.count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 30px; padding: 0 9px; border-radius: 999px; background: var(--paper); color: var(--ink-soft); font-size: 12px; font-weight: 900; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: right; white-space: nowrap; }
.data-table th, .data-table td { padding: 15px 22px; border-bottom: 1px solid var(--line); font-size: 14px; }
.data-table th { color: var(--ink-soft); background: color-mix(in srgb, var(--paper) 55%, var(--card)); font-size: 12px; font-weight: 900; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td.amount { color: var(--success); font-weight: 900; }
.data-table td.amount.pending {
  color: #b6800b;
}
.empty-state { padding: 35px 20px 39px; text-align: center; }
.empty-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 16px; background: var(--paper); color: var(--ink-soft); font-size: 23px; }
.empty-state strong { display: block; font-size: 15px; font-weight: 900; }
.empty-state p { margin: 5px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.status-pill { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--paper); color: var(--ink-soft); font-size: 11px; font-weight: 900; }
.status-pill.refunded { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.page-card { padding: clamp(22px, 5vw, 40px); border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.page-card h1 { margin: 8px 0 14px; font-size: clamp(28px, 4vw, 38px); font-weight: 900; }
.page-card h2 { margin: 26px 0 8px; font-size: 21px; }
.page-card p, .page-card li { color: var(--ink-soft); line-height: 2; }
.page-card ul { padding-right: 22px; }
.site-footer { padding: 0 25px 27px; text-align: center; }
.footer-line { width: 100%; max-width: 1110px; height: 1px; margin: 0 auto 18px; background: var(--line); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px 22px; margin-bottom: 12px; }
.footer-links a { color: var(--ink-soft); font-size: 13px; transition: color .2s; }
.footer-links a:hover { color: var(--indigo); }


.site-footer p { margin: 0; color: var(--ink-soft); font-size: 12px; }


.demo-note { margin-top: 20px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; color: var(--ink-soft); font-size: 12px; line-height: 1.8; }


.loading-state { padding: 35px; text-align: center; color: var(--ink-soft); }
@media (max-width: 800px) {
  .top-header { padding: 15px 20px; }
  .stats-grid { grid-template-columns: 1fr; gap: 12px; }
  .stat-card { padding: 18px; }
  .stat-value { margin-top: 10px; }
  .main-website { padding: 28px 18px 45px; }
}
@media (max-width: 520px) {

  .top-header {
  padding: 13px 14px;
  gap: 8px;
}

.header-side {
  gap: 7px;
}

  .brand { gap: 9px; }
  .brand-logo, .brand-logo-fallback { width: 37px; height: 37px; }
  .brand-text strong { font-size: 13px; }
  .brand-text span { font-size: 10px; }
  .logout-button { padding: 8px 10px; font-size: 12px; }
  .login-card { padding: 25px 21px; border-radius: 20px; }
  .panel-heading { padding: 17px; }
  .data-table th, .data-table td { padding: 13px 15px; }
  .footer-links { gap: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Orders pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  direction: ltr;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 16px 20px 20px;
  padding: 8px 0;
  box-sizing: border-box;
  max-width: 100%;
}

.page-numbers-scroll {
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(420px, calc(100vw - 160px));
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  padding: 4px 0;
}

.page-btn {
  min-width: 32px;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--course-button);
}

.page-btn.active {
  background: #F5F6F2;
  border: 1px solid var(--line);
  color: var(--ink);
}

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

.pagination {
  display: flex;
  flex-wrap: wrap;
  direction: ltr;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 16px 8px 2px;
}

.page-numbers {
  display: flex;
  flex-direction: row;
  direction: ltr;
  gap: 6px;
  width: max-content;
  flex-wrap: nowrap;
}

.promo-code-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 22px 0;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(0, 39, 58, 0.04);
}

.promo-code-info {
    min-width: 0;
}

.promo-code-label {
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 800;
}

.promo-code-description {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.7;
}

.promo-code-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.promo-code-actions strong {
    min-width: 125px;
    padding: 11px 14px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    font-size: 19px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 1px;
    direction: ltr;
    overflow-wrap: anywhere;
}

.coupon-copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    color: var(--ink);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.coupon-copy-button:hover:not(:disabled) {
    background: var(--paper);
    border-color: var(--indigo);
}

.coupon-copy-button:focus-visible {
    outline: 2px solid var(--indigo);
    outline-offset: 3px;
}

.coupon-copy-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.coupon-message {
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-size: 12px;
}

.coupon-message:empty {
    display: none;
}

@media (max-width: 640px) {
    .promo-code-card {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .promo-code-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 8px;
    }

    .promo-code-actions strong {
        min-width: 0;
        font-size: 17px;
    }
}

/* Performance Dashboard */
.performance-panel {
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--card);
}

.performance-panel .panel-heading {
  padding: 21px 23px;
  border-bottom: 1px solid var(--line);
}

.performance-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  border-radius: 13px;
  background: rgba(0, 104, 155, .10);
  color: var(--course-button);
}

.performance-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 23px 0;
}

.performance-filters label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.performance-filters select {
  min-height: 39px;
  max-width: 100%;
  padding: 8px 30px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.performance-filters select:focus-visible {
  outline: 3px solid rgba(0, 104, 155, .2);
  outline-offset: 2px;
}

.performance-filters select[hidden] {
  display: none;
}

.performance-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  padding: 20px 23px 0;
}

.performance-kpi {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  transition: border-color .2s ease;
}

.performance-kpi:hover {
  border-color: var(--course-button);
}

.performance-kpi > span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.performance-kpi > strong {
  max-width: 100%;
  color: var(--ink);
  font-size: clamp(23px, 2.5vw, 30px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -.4px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.performance-kpi > small {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.performance-chart-section {
  margin: 24px 23px 0;
  padding: 22px 0 24px;
  border-top: 1px solid var(--line);
}

.performance-chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.performance-chart-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.performance-chart-heading > span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.performance-chart {
  display: grid;
  gap: 19px;
}

.performance-bar-row {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 13px;
}

.performance-bar-label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.performance-bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line);
}

.performance-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--course-button);
  transition: width .3s ease;
}

.performance-bar-value {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.performance-empty {
  padding: 30px 15px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

@media (max-width: 800px) {
  .performance-kpis {
    gap: 12px;
  }

  .performance-kpi {
    padding: 16px;
  }

  .performance-kpi > strong {
    font-size: 23px;
  }
}

@media (max-width: 520px) {
  .performance-panel .panel-heading {
    padding: 17px;
  }

  .performance-filters {
    gap: 8px;
    padding: 17px 17px 0;
  }

  .performance-filters label {
    width: 100%;
  }

  .performance-filters select {
    flex: 1;
    min-width: 0;
  }

  .performance-kpis {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 17px 17px 0;
  }

  .performance-kpi {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px 12px;
    padding: 15px 17px;
  }

  .performance-kpi > span {
    grid-column: 1;
  }

  .performance-kpi > strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 23px;
    text-align: end;
  }

  .performance-kpi > small {
    grid-column: 1;
  }

  .performance-chart-section {
    margin: 20px 17px 0;
    padding-top: 19px;
  }

  .performance-chart-heading {
    margin-bottom: 20px;
  }

  .performance-bar-row {
    grid-template-columns: 76px minmax(0, 1fr) 25px;
    gap: 9px;
  }

  .performance-bar-label,
  .performance-bar-value {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .performance-kpi,
  .performance-bar-fill {
    transition: none;
  }
}

/* Performance Toggle */
.performance-panel.performance-collapsed .performance-body {
  display: none;
}

.performance-panel.performance-collapsed .panel-heading {
  border-bottom: 0;
}

/* Performance Toggle */
.performance-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0 0 18px 18px;
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.performance-toggle:hover {
  background: var(--paper);
  color: var(--course-button);
}

.performance-toggle:focus-visible {
  outline: 2px solid var(--course-button);
  outline-offset: -4px;
}

.performance-toggle-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke-width: 2;
  transition: transform .2s ease;
}

.performance-panel.performance-collapsed .performance-body {
  display: none;
}

.performance-panel.performance-collapsed .panel-heading {
  border-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .performance-toggle,
  .performance-toggle-icon {
    transition: none;
  }
}

/* Affiliate order status colors */
.status-pill {
  background: #e8f5e9;
  color: #276738;
  border: 1px solid #c8e6cc;
  transform: translateX(8px);
}

.status-pill.refunded {
  /* Keep the existing refunded badge color */
  border-color: #f2caca;
  transform: translateX(0px);
}

.status-pill.pending {
  background: #c58c111c;
  color: #b6800b;
  border-color: #c58c114b;
  transform: translateX(6px);
}

/* Refunded commission: excluded from earnings */
.commission-refunded {
  color: rgb(201, 0, 0) !important;
  text-decoration-color: #d64545;
  text-decoration: line-through;
  text-decoration-thickness: 1.4px;
  opacity: 0.85;
}

.status-pill.refunded {
  position: relative;
  left: 12px;
  top: 0px;
}

/* Parent pill anchor */
.status-pill.pending {
  position: relative;
  cursor: help;
  -webkit-tap-highlight-color: transparent; /* Removes ugly blue flash on mobile tap */
}

/* Shared positioning & animation for both Box (::after) and Arrow (::before) */
.status-pill.pending::after,
.status-pill.pending::before {
  position: absolute;
  left: 50%;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.18s;
}

/* 1. The Tooltip Box */
.status-pill.pending::after {
  content: "الطلب في فترة الضمان الذهبي";
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px) scale(0.96);
  transform-origin: bottom center;

  /* Sizing & Balanced Wrapping */
  width: max-content;
  max-width: min(230px, 80vw); /* Prevents screen overflow on small phones */
  padding: 8px 12px;
  border-radius: 8px;

  /* Typography (Arabic RTL) */
  direction: rtl;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.65;
  text-align: center;
  white-space: normal;
  text-wrap: balance; /* Splits Arabic text into evenly sized lines */

  /* Elevated Visuals & Shadow */
  background: var(--card, #ffffff);
  color: var(--ink, #1a1a1a);
  border: 1px solid var(--line, #e5e7eb);
  box-shadow: 
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 4px 10px -3px rgba(0, 0, 0, 0.05);
}

/* 2. The Little Pointer Arrow */
.status-pill.pending::before {
  content: "";
  bottom: calc(100% + 5px); /* Sits right on the bottom edge of the box */
  width: 9px;
  height: 9px;
  background: var(--card, #ffffff);
  border-right: 1px solid var(--line, #e5e7eb);
  border-bottom: 1px solid var(--line, #e5e7eb);
  transform: translateX(-50%) translateY(6px) rotate(45deg);
  z-index: 101; /* Overlaps the box's bottom border seamlessly */
}

/* Active State: Pop up into place */
.status-pill.pending:hover::after,
.status-pill.pending:focus::after,
.status-pill.pending:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.status-pill.pending:hover::before,
.status-pill.pending:focus::before,
.status-pill.pending:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) rotate(45deg);
}