
:root {
  --brand-teal: #5EBCBC;
  --petitek-teal: #5EBCBC;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1f2933;
  background-color: #f8f9fa;
}

/* =========================================================
TYPOGRAPHY
========================================================= */

.text-label {
  font-size: 14px;
  color: #6B7280;
}

.text-section {
  font-size: 20px;
  font-weight: 600;
  color: #374151;
}

.text-title {
  font-size: 14px;
  font-weight: 600;
}

.text-metric-lg {
  font-size: 14px;
  font-weight: 700;
}

.text-metric-md {
  font-size: 14px;
  font-weight: 600;
}

.text-button-sm {
  font-size: 12px;
}

.text-tight {
  margin-bottom: 0;
}

/* =========================================================
CARDS / BASE COMPONENTS
========================================================= */


.card {
  border: none;
  border-radius: 12px;
}

.activity-header {
  font-weight: 600;
}

/* =========================================================
STATUS SYSTEM
========================================================= */


.status-paid {
  background: #5EBCBC;
  color: #fff;
}

.status-unpaid {
  background: #cc5858;
  color: #fff;
}

.status-page-visit {
  background: #9f54d1;
  color: #fff;
}

.status-amazon-click {
  background: #dc6627;
  color: #fff;
}

.status-code-copied {
  background: #326ca3;
  color: #fff;
}

.status-redeemed {
  background: #29655d;
  color: #fff;
}

/* =========================================================
PUBLIC (REFERRAL)
========================================================= */

.public-page {
  background: #ffffff;
}

.public-page .referral-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
  text-align: center;
}

.public-page .hero h1 {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
}

.public-page .subheadline {
  font-size: 14px;
  color: #6B7280;
}

.public-page .hero-image img {
  width: 100%;
  max-width: 480px;
  border-radius: 14px;
}

.public-page .code-card {
  background: #f4f5f7;
  border-radius: 16px;
  padding: 22px;
}

.public-page .promo-code {
  font-size: 32px;
  font-weight: 700;
  border: 2px dashed #5EBCBC;
  padding: 18px;
}

.public-page .copy-btn {
  background: #5EBCBC;
  color: white;
  border-radius: 8px;
  padding: 10px 14px;
}

.public-page .copy-btn.secondary {
  background: #000;
}

.public-page .amazon-btn {
  background: #ff9900;
  font-weight: 700;
  padding: 16px;
}

/* =========================================================
AMBASSADOR
========================================================= */

.ambassador-page .card {
  border-radius: 10px;
}

.ambassador-page .navbar {
  background: #fff;
}

/* =========================================================
ADMIN
========================================================= */

.admin-page .card {
  border-radius: 6px;
  box-shadow: none;
}

.admin-page .btn {
  padding: 6px 10px;
}

/* =========================================================
FORMS
========================================================= */

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 0.25rem rgba(94, 188, 188, 0.25);
}

.form-check-input:checked {
  background-color: var(--brand-teal);
  border-color: var(--brand-teal);
}


.form-control,
.form-select,
.btn {
  height: 42px;
}

/* =========================================================
ADMIN COMPONENTS
========================================================= */

.rank-badge {
  font-weight: 600;
}

.stripe-ready {
  color: green;
}

.stripe-notready {
  color: gray;
}


/* =========================================================
ADMIN SETTINGS PAGE (RESTORED) START
========================================================= */

/* Page container */
.admin-page .page {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

/* Cards */
.admin-page .card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Labels */
.admin-page .label {
  font-weight: 600;
  margin-bottom: 6px;
}

.admin-page .small {
  font-size: 13px;
  color: #6B7280;
}

/* Inputs */
.admin-page input[type="number"],
.admin-page input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  margin-bottom: 10px;
}

.admin-page button[type="submit"] {
  width: auto;              /* 🔥 FIX */
  display: inline-block;    /* ensures shrink-to-fit */

  background: #111;
  color: #fff;
  border: none;

  padding: 6px 12px;        /* 🔥 smaller */
  border-radius: 6px;
  font-weight: 600;
}

.admin-page button[type="submit"]:hover {
  background: #000;
}

/* Toggle blocks */
.admin-page .check-block {
  margin-bottom: 20px;
}

.admin-page .check-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-page .check-input {
  transform: scale(1.2);
}

.admin-page .check-label {
  font-weight: 600;
}

.admin-page .check-sub {
  font-size: 13px;
  color: #6B7280;
  margin-left: 28px;
}

.admin-page .check-warning {
  font-size: 13px;
  color: #D46A6A;
  margin-left: 28px;
}

/* Status messages */
.admin-page .status {
  font-size: 13px;
  margin-top: 6px;
}

.admin-page .status.success {
  color: #3FAE9C;
}

.admin-page .status.error {
  color: #D46A6A;
}

/* Payout label */
.admin-page .payout-label {
  font-weight: 600;
}

/* =========================================================
ADMIN SETTINGS PAGE (RESTORED) END
========================================================= */

/* =========================================================
PAGE SETTINGS START
========================================================= */

/* PAGE HEIGHT FIX */
.page {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 80px);
}

.container-fluid {
  max-width: none;
}

.table-container {
  max-height: 600px;      /* 🔥 controls height */
  overflow-y: auto;       /* vertical scroll */
  overflow-x: auto;       /* horizontal if needed */
}


/* =========================================================
PAGE SETTINGS END
========================================================= */
.table-wrapper {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: auto;
}

.table thead th {
  position: sticky;
  top: 0px;   /* accounts for navbar */
  background: #101111;
  color: #fff;
  z-index: 100;

  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #101111;

  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* =========================
   BASE
========================= */

:root {
    --status-pending: #dbec27;
    --status-invited: #5EBCBC;
    --status-active: #5EBCBC;
    --status-rejected: #dd4d5b;

    --status-text: #ffffff;
}


/* =========================
BUTTON SYSTEM (GLOBAL)
========================= */

/* Base button (let Bootstrap handle most of it) */
.btn {
    font-size: 13px;
    border-radius: 6px;
    padding: 4px 12px;
}

/* PRIMARY (your teal) */
.btn-primary {
    background-color: #5EBCBC;
    border: none;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #4fa5a5;
    color: #ffffff;
}

/* OUTLINE PRIMARY (invite style) */
.btn-outline-primary {
    border: 1px solid #5EBCBC;
    color: #5EBCBC;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #5EBCBC;
    color: #ffffff;
}

/* DANGER (reject) */
.btn-outline-danger {
    border: 1px solid #dc3545;
    color: #dc3545;
    background: transparent;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: #ffffff;
}

/* DARK */
.btn-dark {
    background: #000;
    color: #fff;
}

.btn-dark:hover {
    background: #222;
}


/* =========================
ACCNT PAGE-SCOPED  BUTTON FIX
========================= */

.referral button,
.associate button {
  width: auto !important;
  display: inline-block;
  padding: 5px 12px;
}

.referral,
.associate {
  text-align: center;
}

.btn-csv {
    background-color: #6c757d;   /* gray */
    color: white;
    border: none;
}

.btn-csv:hover {
    background-color: #000000;   /* black */
    color: white;
}


/* =========================
BUTTON CONTAINER
========================= */

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;              /* 🔥 spacing between buttons */
    width: 90px;
}

.status-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;   /* 🔥 controls space between buttons */
}

.status-actions form {
    width: 100%;
}

.status-actions form + form {
    margin-top: 8px;   /* 🔥 THIS creates the spacing */
}



.btn-save:hover {
  background: #4daaaa;
}

.profile {
  text-align: left;
}

.text-link {
  font-size: 12px;
  color: #6B7280;
  cursor: pointer;
}

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

.text-link.danger {
  color: #D46A6A;
}


/* =========================
SAVE BUTTON (VISIBLE)
========================= */

.btn.btn-save {
    background-color: #5EBCBC;
    color: #ffffff;
    border: none;

    padding: 6px 12px;
    border-radius: 6px;

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

.btn.btn-save:hover {
    background-color: #4fa5a5;
}

/* =========================
SAVE BUTTON (FINAL FIX)
========================= */

button.btn.btn-save {
    background-color: #5EBCBC;
    color: #ffffff;
    border: none;

    padding: 6px 12px;
    border-radius: 6px;

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

    display: inline-block;
}

button.btn.btn-save:hover {
    background-color: #4fa5a5;
    color: #ffffff;
}


.btn-invite {
    width: 100%;
    padding: 4px 8px;    
    font-size: 12px;
    border-radius: 6px;

    border: 1px solid #dc3545;
    background: transparent;
    color:  #5EBCBC;

    transition: all 0.2s ease;
}

..btn-invite:hover {
    background: #388888;
    color: #ffffff;
}


.accordion-button:not(.collapsed) {
  background-color: #96b8b8;
}

/* Accordion Active State */
.accordion-button:not(.collapsed) {
  background-color:  #5EBCBC;   /* soft teal background */
  color: #1f2933;
  box-shadow: none;
}

/* Optional: icon color */
.accordion-button:not(.collapsed)::after {
  filter: none;
}


/* =========================
   MESSAGE CLOSE BUTTON
========================= */

.admin-message-close {
  background: transparent;
  border: none;
  color: #333;
  font-size: 18px;
  padding: 6px 10px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
}

.admin-message-close:hover {
  opacity: 1;
  color: #000;
}


/* =========================
REJECT BUTTON (MATCH SIZE)
========================= */

.btn-reject {
    width: 100%;
    padding: 4px 8px;     
    font-size: 12px;
    border-radius: 6px;

    border: 1px solid #994d4d;
    background: transparent;
    color: #994d4d;

    transition: all 0.2s ease;
}

.btn-reject:hover {
    background: #852d36;
    color: #ffffff;
}


.badge-pending {
    background-color: #6B7280;
    color: #ffffff;
}

.badge-invited {
    background-color: #5EBCBC;
    color: #ffffff;
}

.badge-active {
    background-color: #3FAE9C;
    color: #ffffff;
}

.badge-rejected {
    background-color: #994d4d;
    color: #ffffff;
}


/* =========================
APPLY BUTTON (PRIMARY ACTION)
========================= */

.btn.btn-apply {
    background-color: #5EBCBC;   /* teal */
    color: #ffffff;
    border: none;

    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
    font-weight: 500;

    transition: all 0.2s ease;
}

.btn.btn-apply:hover {
    background-color: #4fa5a5;   /* slightly darker teal */
    color: #ffffff;
}


/* =========================
ACTION BUTTON BASE
========================= */

.badge-complete {
  background-color: #5EBCBC;
  color: #ffffff;
}

/* =========================
INVITE BUTTON (TEAL OUTLINE)
========================= */

.btn-outline-invite {
    border: 1px solid #5EBCBC;
    color: #5EBCBC;
}

.btn-outline-invite:hover {
    background: #5EBCBC;
    color: #ffffff;
}

/* =========================
REJECT BUTTON (RED OUTLINE)
========================= */

.btn-outline-reject {
    border: 1.5px solid #dc3545;
    color: #dc3545;
    background: transparent;
}

.btn-outline-reject:hover {
    background: #dc3545;
    color: #ffffff;
}

/* =========================
PRIMARY ACTION BUTTON
========================= */

.btn.btn-primary-action {
    width: 100%;
    padding: 10px 14px;

    background-color: #5EBCBC;   /* your blue */
    color: #ffffff;

    border: none;
    border-radius: 6px;

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

    transition: all 0.2s ease;
}

.btn.btn-primary-action:hover {
    background-color:  #3c9999;  /* darker blue on hover */
    color: #ffffff;
}


/* =========================
INVITE DATE TEXT
========================= */

.invite-date {
    font-size: 10px;
    color: #161617;
    margin-top: 4px;
}



/* =========================
   TYPOGRAPHY
========================= */

h1 {
  margin-bottom: 25px;
}

h2 {
  font-size: clamp(18px, 1.4vw, 22px);
  color: #5EBCBC;
  margin-bottom: 12px;
  font-weight: 600;
}

.metric {
  font-size: clamp(14px, 2vw, 22px);
  font-weight: 600;
}



.label-muted {
  font-size: 13px;
  color: #6B7280;
  margin-top: 12px;   /* 👈 ADD THIS */
  margin-bottom: 10px;
}

.small {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.4;
}

.split-grid h3 {
  font-size: 13px;
}

.subsection-title {
  font-size: 13px;
  font-weight: 600;
}

/* TEXTAREA (what you type) */
#adminMessageText {
  font-size: 13px;   /* adjust to 12px if you want tighter */
  line-height: 1.4;
}

/* MESSAGE BODY (actual messages) */
.message-body {
  font-size: 13px;
  line-height: 1.4;
}

/* MESSAGE META (date / admin) */
.message-meta {
  font-size: 11px;
  color: #6B7280;
}


.range-toggle {
  display: flex;
  gap: 6px;
  margin: 8px 0 12px 0;
}

.range-btn {
  background: #000000d6;
  color: #fff;
  border: none;
  padding: 4px 10px;
  font-size: 10px;
  border-radius: 6px;
  cursor: pointer;
}

.range-btn.active {
  background: #5EBCBC;
}

.metric-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 10px;
}

.metric-group {
  text-align: left;
}

.lifetime-block {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}

.alert .btn-close,
.notification .btn-close {
  background: transparent;
  border: none;
  font-size: 18px;
  opacity: 0.6;
}

.alert .btn-close:hover {
  opacity: 1;
}

/* =========================
GLOBAL + ADMIN MESSAGE SYSTEM
========================= */

.admin-message-alert {
  background-color: #cee7e0;
  border-left: 4px solid #f4f6f6;

  padding: 12px 16px;
  border-radius: 6px;

  margin-bottom: 10px;
}

.admin-message-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.admin-message-close {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.6;
}

.admin-message-close:hover {
  opacity: 1;
}


/* =========================
   STATUS COLORS
========================= */

.success { color: #3FAE9C; font-weight: 600; }
.warning { color: #D4A85A; font-weight: 600; }

/* =========================
   CARD SYSTEM
========================= */

.card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  width: 100%;
}

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

.card-desc {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E5E7EB;
}

.card-body {
    overflow: visible;
}

/* =========================
   GRID SYSTEM (FIXED)
========================= */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 30px;

  grid-template-areas:
    "identity performance traffic traffic"
    "status commission bonus login"
    "profile profile retail_admin retail_admin"
    "social social social social"
    "stripe stripe demo demo"
    "referral referral associate associate"
    "milestone_setup milestone_setup milestone_setup milestone_setup"
    "messaging messaging notes notes";
}

/* =========================
   GRID AREA MAPPING
========================= */

.identity { grid-area: identity; }
.performance { grid-area: performance; }
.traffic-milestone { grid-area: traffic; }

.bonus { grid-area: bonus; }
.account-status { grid-area: status; }
.commission { grid-area: commission; }
.login { grid-area: login; }

.profile { grid-area: profile; }
.social { grid-area: social; }
.retail-admin { grid-area: retail_admin; }

.stripe { grid-area: stripe; }
.demo-admin { grid-area: demo; }

.referral { grid-area: referral; }
.associate { grid-area: associate; }

.milestone-admin { grid-area: milestone_setup; }
.messaging { grid-area: messaging; }
.notes { 
  grid-area: notes; 
}

/* =========================
   RESPONSIVE
========================= */

/* TABLET */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .span-2,
  .span-3,
  .span-4 {
    grid-column: span 2;
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    grid-template-areas: none;   /* 🔥 THIS FIXES IT */
  }

  .dashboard-grid > * {
    grid-area: auto;            /* 🔥 reset placement */
  }
}

  .span-2,
  .span-3,
  .span-4 {
    grid-column: span 1;
  }


/* =========================
   FORMS
========================= */

input,
select,
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  font-size: 13px;
}

textarea#messageBody.sms-textarea {
    height: 260px !important;
    min-height: 260px !important;
    resize: vertical !important;
}

@media (max-width: 768px) {
    textarea#messageBody.sms-textarea {
        height: 240px !important;
        min-height: 240px !important;
        resize: none !important;
    }
}

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

/* Only style custom buttons explicitly */
.btn-dark,
.btn-black {
  background: #0b0b0b;
  color: white;
}


.btn-copy {
  background: white;
  color: #1F2933;
  border: 1px solid #D1D5DB;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-copy:hover {
  background: #F3F4F6;
}


.activation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.5); /* ← THIS IS THE MASK */

  z-index: 1050; /* above everything */
  display: flex;
  align-items: center;
  justify-content: center;
}

.activation-modal {
  width: 100%;
  max-width: 600px;
}

/* =========================
ACTIVATION BUTTON SYSTEM
========================= */

/* Base button sizing (shared) */
.activation-overlay .btn {
    width: 100%;
    height: 44px;

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

    font-weight: 600;
    border-radius: 8px;

    padding: 10px 18px;
    text-align: center;
}

/* Black button (default state) */
.activation-overlay .btn.btn-black {
    background-color: #000;
    border: none;
    color: #fff;
}

.activation-overlay .btn.btn-black:hover {
    background-color: #222;
}

/* Completed state (teal) */
.activation-overlay .btn.btn-complete {
    background-color: #5EBCBC;
    border: none;
    color: #ffffff;
    cursor: default;
}

/* Prevent hover change for completed */
.activation-overlay .btn.btn-complete:hover {
    background-color: #5EBCBC;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;   /* 🔥 force left alignment */
  width: auto;                   /* 🔥 prevents stretch */
  cursor: pointer;
}

.radio-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;  /* 🔥 keeps everything left */
}


/* =========================
STATUS TEXT SYSTEM
========================= */

.status-text {
    font-size: 13px;
    font-weight: 600;
}

/* individual statuses */

.status-text.active {
    color: #3FAE9C;
}

.status-text.pending {
    color: #6B7280;
}

.status-text.hold {
    color: #ef7d03;
}

.status-text.cancelled {
    color: #e72a2a;
}

.status-text.archived {
    color: #9CA3AF;
}

.status-text {
    font-size: 13px;
    font-weight: 600;
}




/* =========================
   UTILITIES
========================= */

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.timeline {
  margin-top: 6px;
  padding-left: 0;          /* 🔥 remove indent */
  list-style: none;         /* 🔥 remove bullets */
  max-height: 180px;
  overflow-y: auto;
}

.timeline li {
  font-size: 12px;
  margin-bottom: 6px;
  color: #6B7280;
}

.timeline li {
  list-style: none;
}

/* =========================
   SWITCH
========================= */

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  background: #ccc;
  border-radius: 26px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  cursor: pointer;
}

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

input:checked + .slider {
  background: #5EBCBC;
}

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


.demo-admin ul {
  margin: 6px 0 0 16px;
  padding: 0;
}

.demo-admin li {
  font-size: 12px;
  margin-bottom: 4px;
}

.login .radio-row span {
  font-size: 12px;
  font-weight: 500;
  color: #374151;
}


.demo-meta {
  margin-top: 8px;
}

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

.field {
  margin-bottom: 16px;
}

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

/* 🔥 THIS IS THE IMPORTANT ONE */
.inline-row input {
  flex: 0 0 65%;
}

/* RIGHT SIDE DISPLAY */
.inline-display {
  flex: 1;
  font-weight: 600;
  font-size: 13px;
  color: #111111e9;
}

/* =========================
   STATUS (ON / OFF)
========================= */

.status-pill.status-on {
    background-color: #3FAE9C;
    color: #ffffff;
}

.status-pill.status-off {
    background-color: #6B7280;
    color: #ffffff;
}

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

.btn-primary-custom {
    background-color: #5EBCBC;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.btn-primary-custom:hover {
    background-color: #4fa5a5;
}

.btn-danger-custom {
    background-color: transparent;
    color: #D46A6A;
    border: 1px solid #D46A6A;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.btn-danger-custom:hover {
    background-color: #D46A6A;
    color: #ffffff;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.settings-left {
  flex: 1;
  min-width: 0;
}

.form-check-input {
  transform: scale(1.2);
}


/* =========================
   CHECK SYSTEM (GLOBAL)
========================= */

.check-block {
  margin-bottom: 18px;
}

/* 🔥 KEY: checkbox + label inline */
.check-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

/* checkbox */
.check-input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #5EBCBC;
}

/* label */
.check-label {
  font-weight: 600;
  font-size: 13px;
}

/* subtext */
.check-sub {
  margin-left: 26px;
  font-size: 13px;
  color: #6B7280;
}

/* warning (payout only) */
.check-warning {
  margin-left: 26px;
  margin-top: 4px;
  font-size: 12px;
  color: #D4A85A;
}

/* status */
.check-block .status {
  margin-left: 26px;
  font-size: 12px;
  margin-top: 4px;
}

/* =========================
   PAYOUT PAGE STYLES
========================= */


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

/* Default (disabled look) */
.btn-pay {
    background-color: #e0e0e0;
    color: #888;
    border: none;
}

/* Disabled state (safety override) */
.btn-pay:disabled {
    background-color: #83b5b5;
    color: #ffffff;
    cursor: not-allowed;
}

/* Active state */
.btn-pay-active {
    background-color: #5EBCBC;
    color: #fff;
    border: none;
}

.btn-pay-active:hover {
    background-color: #5EBCBC;
    color: #fff;
}


/* =========================
   PAYOUT  LAYOUT
========================= */

.table-container {
    max-height: 65vh;
    overflow-y: auto;
}

/* Sticky header */
.table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #000;
    color: #fff;
}

/* Cell formatting */
.table td,
.table th {
    vertical-align: middle;
    font-size: 0.9rem;
    padding: 10px 12px;
}

/* Numeric alignment consistency */
.table td.text-end {
    font-variant-numeric: tabular-nums;
}

/* Hover state */
.table tbody tr:hover {
    background-color: #f5f5f5;
}

/* =========================
   PAYOUT FILTER BAR
========================= */

.filter-bar {
    position: sticky;
    top: 80px;
    z-index: 50;

    background: #fff;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.table thead th a {
    color: #ffffff;
    text-decoration: none;
}

/* =========================
   BUTTON BASE (CENTER TEXT)
========================= */

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


/* =========================
   APPLY BUTTON (TEAL)
========================= */

.btn-primary {
    background-color: var(--petitek-teal);
    border: none;
    color: #fff;
}

.btn-primary:hover {
    background-color: #4fa5a5;
}


/* =========================
   CLEAR BUTTON (LIGHT)
========================= */

.btn-outline-secondary {
    border: 1px solid #080808;
    color: #0f0f10;
    background-color: #fffdfd;
}

.btn-outline-secondary:hover {
    background-color: #716d6d;
}

/* =========================
   STATUS PILLS (STANDARDIZED)
========================= */

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 4px 10px;
  border-radius: 999px;

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

  white-space: nowrap;   /* prevents wrapping */
}

/* =========================
   STATUS COLORS
========================= */

/* Unpaid */
.status-unpaid {
    background-color: #61676c;
    color: #ffffff;
}

/* Paid */
.status-paid {
    background-color: #5EBCBC; 
    color: #ffffff;
}

/* =========================
   CHECKBOX BRAND TEAL
========================= */


/* Bootstrap */
.form-check-input:checked {
    background-color: #5EBCBC !important;
    border-color: #5EBCBC !important;
}

/* Native fallback */
input[type="checkbox"] {
    accent-color: #5EBCBC;
}

/* =========================
   FORCE BRAND TEAL CHECKBOX
========================= */

#commissionTable input[type="checkbox"] {
    accent-color: #5EBCBC !important;
}

.form-select:focus {
    border-color: #5EBCBC;
    box-shadow: 0 0 0 0.2rem rgba(94, 188, 188, 0.25);
}

/* =========================
   ACTION BUTTONS (YOUR SETUP)
========================= */

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Base sizing */
.action-buttons .btn {
    height: 32px;
    font-size: 0.85rem;
    padding: 0 10px;

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

/* Invite button */
.btn-invite {
    border: 1px solid #5EBCBC;
    color: #5EBCBC;
    background-color: transparent;
}

.btn-invite:hover {
    background-color: #5EBCBC;
    color: #fff;
}

/* Reject button */
.btn-reject {
    border: 1px solid #dc3545;
    color: #dc3545;
    background-color: transparent;
}

.btn-reject:hover {
    background-color: #dc3545;
    color: #fff;
}


.card-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}


.card.referral {
  text-align: center;
}


/* =========================
BUTTON SYSTEM (LOCKED)
========================= */

.btn,
button {
  display: inline-block;
  width: auto !important;

  padding: 2px 14px;
  font-size: 13px;
  font-weight: 500;

  border-radius: 6px;
  border: none;

  cursor: pointer;
  transition: all 0.2s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* PRIMARY */
.btn-primary {
  background-color: #5EBCBC;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #4fa5a5;
}

.btn-primary:active {
  transform: scale(0.97);
}

/* SECONDARY */
.btn-secondary {
  background-color: transparent;
  border: 1px solid #6c757d;
  color: #6c757d;
}

.btn-secondary:hover {
  background-color: #6c757d;
  color: #ffffff;
}

.btn-secondary:active {
  transform: scale(0.97);
}

/* COPY BUTTON */
.btn-copy {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #1F2933;
}

.btn-copy:hover {
  background: #e5e7eb;
}

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

/* DANGER */
.btn-danger {
  background-color: #d05f6a;
  color: white;
}

.btn-danger:hover {
  background-color: #c82333;
}

.actions-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;              /* 🔥 spacing between buttons */
  align-items: flex-start;  /* keeps buttons left aligned */
}

.btn-danger:active {
  transform: scale(0.97);
}


/* =========================
CARD LAYOUT FIX
========================= */

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

/* pushes button area to bottom */
.card-actions {
  margin-top: auto;
  padding-top: 10px;
}

/* Make card vertical layout */
.admin-notes {
  display: flex;
  flex-direction: column;
}

/* Push button to bottom and center it */
.admin-notes .card-actions {
  margin-top: auto;
  display: flex;
  justify-content: center;
}

/* Make stripe card vertical */
.card.stripe {
  display: flex;
  flex-direction: column;
}

/* Anchor button bottom center */
.card.stripe .card-actions {
  margin-top: auto;
  display: flex;
  justify-content: center;
}

.demo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;   /* 🔥 THIS fixes vertical alignment */
  gap: 16px;
}

.demo-text {
  max-width: 70%;
}

.demo-btn {
  white-space: nowrap;
}

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

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

.promo-badge {
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: white;

  padding: 8px 14px;
  border-radius: 10px;

  font-weight: 700;
  letter-spacing: 1px;
  font-size: 14px;

  display: inline-block;
}


/* Unredeemed */
.status-pill.pending {
  background: #e5e7eb;
  color: #374151;
}

.status-pill.pending {
  background: #4b5563;
  color: white;
}

.demo-card {
  padding: 20px 24px;   /* already there */
}

.demo-row,
.demo-header-row,
.demo-footer {
  margin-bottom: 14px;  /* 🔥 THIS adds vertical spacing */
}

.demo-code-group {
  margin-bottom: 10px;
}

.demo-footer {
  margin-top: 12px;   /* pushes button down */
}

.is-invalid {
  border-color: #dc3545;
  background-color: #fff5f5;
}


.btn-verify {
  border: 1px solid #5EBCBC;
  color: #5EBCBC;
  background: transparent;
}

.btn-verify:hover {
  background: #5EBCBC;
  color: #fff;
}

.btn-verify:disabled {
  opacity: 0.4;
  border-color: #ccc;
  color: #aaa;
}

.nav-logout-btn {
  display: flex;
  align-items: center;

  height: 38px;
  padding: 0 14px;

  border: 1px solid #5EBCBC;
  border-radius: 6px;

  color: #5EBCBC;
  background: transparent;

  font-size: 13px;
  font-weight: 500;

  text-decoration: none;
}

.nav-logout-btn:hover {
  background: #5EBCBC;
  color: #fff;
}

/* =========================
PAGE LAYOUT FIX
========================= */

.page-content {
  padding-top: 60px;   /* matches navbar height */
}

/* ACTIVE */
.btn-comm-active {
  background: #000;
  color: #fff;
}

/* SAVED */
.btn-comm-saved {
  background: #d1d5db;
  color: #6B7280;
}

.status-connected {
  color: #5EBCBC;   /* brand teal */
  font-weight: 600;
}

.status-connected::before {
  content: "● ";
  color: #5EBCBC;
}

.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* =========================
TERMS DOCUMENT
========================= */

.terms-container {
  max-width: 800px;
  margin: 0 auto;
}

.terms-doc {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.terms-header {
  text-align: center;
  margin-bottom: 24px;
}

.terms-meta {
  font-size: 12px;
  color: #6B7280;
}

.terms-body {
  font-size: 13px;
  line-height: 1.6;
}

.terms-body h5 {
  margin-top: 18px;
  font-weight: 600;
}

.signature-block {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.signature-label {
  font-size: 12px;
  color: #6B7280;
}

.signature-value {
  font-weight: 600;
  margin-top: 2px;
}

.contact-option {
    font-weight: 500;
}

.contact-check {
    color: #5EBCBC;
    font-weight: bold;
    margin-right: 4px;
}

/* GRID TIGHTENING */
.profile-grid {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    row-gap: 6px;          /* 🔥 reduced from 12px */
    column-gap: 20px;
    align-items: center;
}

/* prevent overflow issues */
.profile-grid > div {
    min-width: 0;
}

/* LABELS */
.profile-grid .label {
    font-weight: 500;
    color: #666;
    font-size: 14px;
}

/* VALUES (static text) */
.profile-grid .value {
    font-weight: 500;      /* 🔥 reduced from bold */
    font-size: 14px;
    color: #222;
}

/* INPUT FIELDS */
.profile-grid .field input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    padding: 6px 10px;     /* 🔥 tighter */
    font-size: 14px;       /* 🔥 match value text */
    font-weight: 500;      /* 🔥 match value text */

    border: 1px solid #ccc;
    border-radius: 6px;
}

/* REMOVE EXTRA SPACING FROM FORM */
.profile-grid .field {
    margin: 0;
}

/* CONTACT LINE (tighten it too) */
.contact-option {
    font-size: 14px;
    font-weight: 500;
}

.traffic-milestone .section-block {
    margin-bottom: 20px;
}

.section-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 20px 0;
}

.table-clean {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table-clean th {
    text-align: left;
    font-weight: 600;
    padding: 8px 12px;   /* 👈 more spacing */
    color: #555;
}

.table-clean td {
    padding: 8px 12px;   /* 👈 more spacing */
}

.table-clean tbody tr {
    border-bottom: 1px solid #f1f1f1;
}

/* 🔥 Align numbers properly */
.table-clean td:not(:first-child),
.table-clean th:not(:first-child) {
    text-align: right;
}

/* 🔥 Give first column (labels) breathing room */
.table-clean td:first-child {
    font-weight: 500;
    color: #374151;
}

/* Total row */
.total-row {
    border-top: 2px solid #ddd;
    font-weight: 600;
}

/* Status styles */
.status-awarded {
    color: #3FAE9C;
    font-weight: 600;
}

.status-achieved {
    color: #5EBCBC;
}

.status-progress {
    color: #999;
}

/* =========================
   ANNOUNCEMENT PAGE
========================= */

.announcement-page {
    background: #f5f7f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.announcement-container {
    max-width: 720px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px 35px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* HEADER */
.announcement-header {
    display: flex;
    justify-content: flex-end;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

/* TITLE */
.announcement-title {
    color: #5EBCBC;
    text-align: center;
    margin-bottom: 10px;
}

.announcement-date {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

/* BODY */
.announcement-body p {
    line-height: 1.6;
    margin-bottom: 14px;
    font-size: 15px;
    color: #333;
}

.announcement-body h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
}

.announcement-signature {
    margin-top: 25px;
}

/* FOOTER */
.announcement-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 13px;
    color: #777;
}

.footer-brand .petitek {
    color: #5EBCBC;
    font-weight: 600;
}

.footer-links {
    margin: 6px 0;
}

.footer-links a {
    color: #5EBCBC;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-meta {
    color: #999;
}

.control-block {
    display: flex;
    flex-direction: column;
    min-width: 140px;
    flex: 0 0 auto;   /* 🔥 THIS IS THE FIX */
}

.control-search {
    min-width: 260px;
    flex: 0 0 260px;  /* 🔥 LOCK SEARCH WIDTH */
}

.control-actions {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}


/* FORCE OVERRIDE BOOTSTRAP */
.btn.btn-outline-reject {
    background: transparent !important;
    border: 1.5px solid #c54451 !important;
    color: #b83c48 !important;
}

.btn.btn-outline-reject:hover {
    background: #d64d5b !important;
    color: #fff !important;
}


/* INVITE BUTTON */
.btn.btn-outline-invite {
    background: transparent !important;
    border: 1.5px solid #5EBCBC !important;
    color: #5EBCBC !important;
}

.btn.btn-outline-invite:hover {
    background: #5EBCBC !important;
    color: #fff !important;
}


/* NAVBAR */
.amb-nav {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 14px 20px;
    margin-bottom: 20px;   /* 🔥 THIS prevents layout break */
}

.amb-nav-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* BRAND */
.amb-brand {
    font-size: 16px;
    font-weight: 500;
}

.amb-brand .petitek {
    color: #5EBCBC;
    font-weight: 600;
}

.amb-brand .portal {
    color: #333;
    margin-left: 4px;
}

/* LOGIN BUTTON */
.btn-outline-teal {
    border: 1.5px solid #5EBCBC;
    color: #5EBCBC;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
}

.btn-outline-teal:hover {
    background: #5EBCBC;
    color: #fff;
}

.ambassador-heading {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: bold;
  text-align: center;
  margin: 20px auto 15px;
  color: #000707;
}

.title-block {
  text-align: center !important;
}

.video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.program-section {
  margin: 40px 0;
}

/* Keep headline white for contrast */
.program-hero h1 {
  color: #fff;
}

/* Make body text darker (not pure black) */
.program-hero p {
  color: rgba(0,0,0,0.85);
}

.ambassador-heading {
  max-width: 900px;
  margin: 60px auto;
}

.milestone-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;   /* 🔥 row spacing */
}

.milestone-table th {
  text-align: left;
  font-weight: 600;
  padding: 0 12px;
  color: #333;
}

.milestone-table td {
  padding: 12px;
  background: #fff;
  border-radius: 8px;
}

.milestone-table tr {
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* actions column spacing */
.milestone-table td:last-child {
  width: 140px;
}

/* buttons stack nicely */
.actions-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* =========================
MILESTONE ADMIN TABLE FIX
========================= */

.milestone-admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 14px;   /* 🔥 vertical spacing between rows */
}

.milestone-admin-table thead th {
  padding: 8px 14px;
  font-weight: 600;
  color: #374151;
}

.milestone-admin-table td {
  padding: 14px 14px;
  background: #ffffff;
  border-radius: 8px;
  vertical-align: middle;
}

/* create row "cards" */
.milestone-admin-table tbody tr {
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* spacing for actions column */
.milestone-admin-table td:last-child {
  min-width: 120px;
}

/* stack buttons cleanly */
.milestone-admin-table .actions-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message-buttons {
  margin-top: 8px;
}

/* =========================
   SHARED ROW SYSTEM
========================= */

.message-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid #eee;
}

.message-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.message-date {
  font-size: 0.8rem;
  color: #888;
  white-space: nowrap;
}

.message-text {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-delete {
  flex-shrink: 0;
  margin-left: 10px;
  color: #888;
  cursor: pointer;
  font-size: 0.9rem;
}

.message-delete:hover {
  color: #000;
}


/* =========================
   TEXTAREA + BUTTON MATCHING
========================= */

.custom-textarea {
  font-size: 14px;
  min-height: 110px;
}

.btn-clear {
  background: #f1f3f5;
  border: 1px solid #ccc;
  color: #333;
}

.btn-clear:hover {
  background: #e9ecef;
}


/* =========================
   CARD SPACING ALIGNMENT
========================= */

.card-actions,
.message-buttons {
  margin-top: 4px;
}


/* =========================
   GRID PLACEMENT (CRITICAL)
========================= */

.card.message {
  grid-area: messaging;
}

.card.notes {
  grid-area: notes;
}

.card .btn-primary {
  background-color: #5EBCBC;
  border-color: #5EBCBC;
  color: #fff;
}

.card .btn-primary:hover {
  background-color: #4aa9a9;
}

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

.card-actions {
  margin-top: auto;         /* 🔑 pushes it to bottom */
  display: flex;
  justify-content: center;  /* centers button horizontally */
}

.admin-container {
  max-width: 1400px;
}

.welcome-title {
  color: #5EBCBC;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.welcome-subtitle {
  font-size: 0.95rem;
  color: #6B7280;
}


.card-input-align {
  margin-top: 12px;
}

.input-label-block {
  height: 42px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}


.radio-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;   /* 👈 THIS IS THE KEY */
}

.card.identity a {
  color: #5EBCBC;
  font-weight: 500;
  text-decoration: none;
}

.card.identity a:hover {
  text-decoration: underline;
}

.referral-trust-line {
  font-size: 0.95rem;
  color: #6B7280; /* slate gray */
  margin-top: 6px;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.status-associate-view {
  background: #0ea5e9;
  color: #fff;
}

.modal-body {
  font-size: 0.95rem;
}

/* =========================
CHECKBOX FIX (FORCE CORRECT LAYOUT)
========================= */

.checkbox-group {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.checkbox-group label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin: 0;
}

.checkbox-group input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
}

/* Reach Channel badges */
.badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Optional: add spacing between rows of badges */
.badge.me-1 {
    margin-right: 6px;
}

/* =========================
   MODAL LAYOUT (CLEAN)
========================= */

.modal-dialog {
  max-height: 90vh;
}

.modal-content {
  height: 80vh;                 /* controls total modal size */
  display: flex;
  flex-direction: column;
}

/* Badge container fills space */
#qrCodeContainer {
  flex: 1;
  overflow: hidden;
}

/* iframe fits container */
#qrCodeContainer iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
}

/* =========================
   DASHBOARD HERO VIDEO
========================= */

.dashboard-video-card {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.dashboard-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #ffffff;
    overflow: hidden;
    line-height: 0;
}

.dashboard-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;

    /* Prevent controls until hover */
    pointer-events: none;
}

/* Enable Vimeo controls on hover */
.dashboard-video-wrapper:hover iframe {
    pointer-events: auto;
}

.dashboard-video-body {
    background: #ffffff;
    padding: 24px;
    text-align: center;
}

/* =========================
   DASHBOARD HERO ROW
========================= */

.dashboard-hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

/* =========================
   AUDIO PLAYER CARD
========================= */

.dashboard-audio-card {
    background: #ffffff;
    border: 1px solid #d8eeee;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    width: 360px;
    flex-shrink: 0;
}

.dashboard-audio-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.dashboard-audio-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.dashboard-audio-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.dashboard-audio-subtitle {
    font-size: 0.84rem;
    color: #6b7280;
    line-height: 1.45;
}

.dashboard-audio-player {
    width: 100%;
    height: 42px;
    accent-color: #5EBCBC;
    border-radius: 12px;
}

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

@media (max-width: 768px) {

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

    .dashboard-audio-card {
        width: 100%;
    }

}

.status-text {
    font-weight: normal;
    color: inherit;
}

.status-text.boarded {
    font-weight: bold;
}

.status-text.boarded-complete {
    font-weight: bold;
    color: #5EBCBC; /* Brand teal */
}

.status-text.pending {
    /* No additional styles, remains normal */
}

.status-text.archived{
    color:#6B7280;
    font-weight:700;
}

.status-text.cancelled{
    color:#D46A6A;
    font-weight:700;
}

.dashboard-site-link{
    position: fixed;

    top: 60px;
    left: 0;
    right: 0;

    z-index: 1020;

    background:#5EBCBC;

    text-align:center;

    padding:10px 12px;

    border-bottom:1px solid rgba(255,255,255,0.25);
}

.dashboard-site-link a{
    color:white;
    text-decoration:none;

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

    display:block;
}

.dashboard-site-link a:hover{
    color:white;
    opacity:.92;
}

body.ambassador-page .page-content{
    padding-top:110px;
}

@media (min-width: 992px) {

  .mobile-resource-link{
    display:none;
  }

}

/* =========================================
   Dashboard V2
========================================= */

.dashboard-v2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

.dashboard-v2 h1 {
    margin-bottom: 20px;
    color: #5EBCBC;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.dashboard-card h2 {
    margin: 0;
    color: #5EBCBC;
    font-size: 1.3rem;
}

/* Tablet */

@media (max-width: 1024px) {

    .dashboard-v2 {
        padding: 12px;
    }

    .dashboard-card {
        padding: 18px;
    }
}

/* Phone */

@media (max-width: 768px) {

    .dashboard-v2 {
        padding: 10px;
    }

    .dashboard-card {
        padding: 16px;
        border-radius: 10px;
    }

    .dashboard-card h2 {
        font-size: 1.1rem;
    }
}

.dashboard-v2 .metric-card,
.dashboard-v2 .dashboard-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    border-left: 4px solid #5EBCBC;
}

.dashboard-v2 .metric-value {
    color: #189b9b;
    font-size: 2rem;
    font-weight: 700;
}

.dashboard-v2 h2 {
    color: #111827;
    font-weight: 700;
}

.dashboard-v2 .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-v2 .tracking-section {
    border-left: none;
}

.dashboard-v2 .conversion-grid {
    border-top: 1px solid #e5e7eb;
    margin-top: 18px;
    padding-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

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

/* =========================
   Dashboard V2 Polish Fix
========================= */

.dashboard-v2 {
  max-width: 1120px;
}

.dashboard-v2 .dashboard-card,
.dashboard-v2 .metric-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  border-left: 4px solid #5EBCBC;
}

.dashboard-v2 .metric-card {
  min-height: 150px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.dashboard-v2 .metric-label {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 10px;
}

.dashboard-v2 .metric-value {
  font-size: 34px;
  font-weight: 700;
  color: #168f8f;
  line-height: 1;
}

.dashboard-v2 .metric-watermark {
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 86px;
  height: 70px;
  opacity: .28;
}

.dashboard-v2 svg {
  width: 100%;
  height: 100%;
  fill: none !important;
  stroke: #5EBCBC !important;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-v2 .line-art-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 50%;
  background: #eefafa;
  padding: 12px;
  margin-right: 18px;
}

.dashboard-v2 .section-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 0;
}

.dashboard-v2 .section-title-row {
  display: flex;
  align-items: center;
}

.dashboard-v2 .dashboard-toggle-card {
  padding: 22px;
  margin-bottom: 16px;
}

.dashboard-v2 .dashboard-toggle-card h2 {
  margin: 0;
  font-size: 22px;
  color: #168f8f;
}

.dashboard-v2 .section-subtitle {
  color: #4b5563;
  font-size: 15px;
}

.dashboard-v2 .toggle-chevron {
  font-size: 26px;
  color: #168f8f;
}

.dashboard-v2 .premium-section-card {
  padding: 24px;
}

.dashboard-v2 .earnings-grid,
.dashboard-v2 .premium-conversion-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.dashboard-v2 .earnings-item,
.dashboard-v2 .premium-conversion-grid > div {
  padding: 14px 18px;
  border-right: 1px solid #e5e7eb;
}

.dashboard-v2 .earnings-item:last-child,
.dashboard-v2 .premium-conversion-grid > div:last-child {
  border-right: 0;
}

.dashboard-v2 .earnings-value {
  font-size: 24px;
  font-weight: 700;
  color: #168f8f;
}

.dashboard-v2 .funnel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  gap: 10px;
}

.dashboard-v2 .funnel-step {
  flex: 1;
}

@media (max-width: 520px) {

  .dashboard-v2 .funnel-step {
    text-align: center;
  }

  .dashboard-v2 .metric-label {
    text-align: center;
    width: 100%;
  }

  .dashboard-v2 .funnel-value {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 6px;
  }

}

.dashboard-v2 .funnel-circle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #eefafa;
  padding: 14px;
  margin: 0 auto 10px;
}

.dashboard-v2 .funnel-value {
  font-size: 26px;
  font-weight: 700;
  color: #111827;
}

.dashboard-v2 .funnel-arrow {
  font-size: 24px;
  color: #111827;
}

.dashboard-v2 .dashboard-progress {
  height: 18px;
  border-radius: 20px;
  overflow: hidden;
}

.dashboard-v2 .dashboard-progress .progress-bar {
  background: #168f8f;
}

@media (max-width: 768px) {
  .dashboard-v2 .metric-card {
    min-height: 130px;
    padding: 18px;
  }

  .dashboard-v2 .metric-watermark {
    width: 64px;
    height: 52px;
  }

  .dashboard-v2 .earnings-grid,
  .dashboard-v2 .premium-conversion-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-v2 .earnings-item,
  .dashboard-v2 .premium-conversion-grid > div {
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .dashboard-v2 .funnel-row {
    flex-wrap: wrap;
  }

  .dashboard-v2 .funnel-arrow {
    display: none;
  }
}

@media (max-width: 520px) {

  .dashboard-v2 .funnel-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  .dashboard-v2 .funnel-step {
    display: grid !important;
    grid-template-columns: 64px 48px 1fr !important;
    align-items: center !important;
    column-gap: 12px !important;
    width: 100% !important;
    text-align: left !important;
  }

  .dashboard-v2 .funnel-circle {
    margin: 0 !important;
    width: 54px !important;
    height: 54px !important;
  }

  .dashboard-v2 .funnel-value {
    text-align: center !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 0 !important;
  }

  .dashboard-v2 .funnel-step .metric-label {
    text-align: left !important;
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
  }

  .dashboard-v2 .funnel-arrow {
    display: block !important;
    transform: rotate(90deg) !important;
    align-self: center !important;
    margin: -4px 0 !important;
    color: #5EBCBC !important;
  }
}/* =========================
   ACCOUNT V2
========================= */

.account-v2-page-title {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.account-v2-page-title h3 {
  font-weight: 700;
}

.account-v2-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.account-v2-card .card-body {
  padding: 1.5rem;
}

.account-v2-card h5 {
  font-weight: 700;
}

.account-stat-card {
  height: 100%;
  padding: 1rem;
  border-radius: 16px;
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.account-stat-value {
  margin-top: 0.25rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #111;
}

.status-connected {
  color: #198754;
  font-weight: 700;
}

.verification-banner {
  border-radius: 14px;
}

.sms-block {
  padding: 1rem;
  border-radius: 16px;
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.sms-message {
  font-size: 0.95rem;
  color: #333;
}

/* Forms */
.account-v2-card .form-control,
.account-v2-card .form-select {
  border-radius: 12px;
  min-height: 44px;
}

.account-v2-card .btn {
  border-radius: 999px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  .account-v2-card .card-body {
    padding: 1.15rem;
  }

  .account-stat-value {
    font-size: 1.1rem;
  }

  .account-v2-card .text-end {
    text-align: center !important;
  }

  .account-v2-card .btn {
    width: 100%;
  }
}

/* ==========================================
   Referral Performance Funnel
========================================== */

.progress {
  height: 14px;
  border-radius: 999px;
  background: #e9ecef;
}

.progress-bar {
  background: #000;
  border-radius: 999px;
}

.earnings-v2 .dashboard-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.earnings-v2 .page-title {
  font-size: 1.8rem;
  font-weight: 700;
}

.earnings-v2 .page-subtitle {
  color: #666;
}

.earnings-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  padding: 20px;
  min-height: 112px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.earnings-card.unpaid {
  border-color: #111;
}

.earnings-label {
  font-size: .82rem;
  color: #666;
  margin-bottom: 8px;
}

.earnings-value {
  font-size: 1.65rem;
  font-weight: 700;
  color: #111;
}

.earnings-table-header {
  padding: 18px 22px;
  border-bottom: 1px solid #e6e6e6;
}

.earnings-table-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

.earnings-table th {
  font-size: .78rem;
  text-transform: uppercase;
  color: #555;
  background: #f7f7f7;
  white-space: nowrap;
}

.earnings-table td {
  vertical-align: middle;
  white-space: nowrap;
}

.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.status-paid {
  background: #111;
  color: #fff;
}

.status-unpaid {
  background: #f1f1f1;
  color: #111;
  border: 1px solid #ccc;
}

@media (max-width: 767px) {
  .earnings-v2 .dashboard-card {
    padding: 18px;
    border-radius: 14px;
  }

  .earnings-value {
    font-size: 1.35rem;
  }

  .earnings-table {
    font-size: .85rem;
  }
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.review-rating {
    color: #f5a623;
}

.review-click-row {
    cursor: pointer;
}

.checkout-review-widget {
  margin-top: 8px;
  margin-bottom: 22px;
}

.account-earnings-card {
  background: linear-gradient(180deg,#ffffff 0%, #f8ffff 100%);
}

.account-earnings-equation {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
}

.account-earnings-box {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 16px 12px;
  background: #fff;
  text-align: center;
}

.account-earnings-label {
  font-size: .78rem;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 6px;
}

.account-earnings-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #111827;
}

.account-earnings-note {
  font-size: .75rem;
  color: #6b7280;
  margin-top: 4px;
}

.account-earnings-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #5EBCBC;
}

.account-earnings-total {
  background: #5EBCBC;
  border-color: #5EBCBC;
}

.account-earnings-total .account-earnings-label,
.account-earnings-total .account-earnings-value,
.account-earnings-total .account-earnings-note {
  color: #fff;
}

.account-next-milestone-box {
  border: 1px dashed #5EBCBC;
  border-radius: 16px;
  padding: 14px 16px;
  background: #f9ffff;
  text-align: center;
}

.account-earnings-disclaimer {
  font-size: .75rem;
  color: #6b7280;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 768px) {
  .account-earnings-equation {
    flex-direction: column;
    gap: 8px;
  }

  .account-earnings-symbol {
    height: 24px;
  }

  .account-earnings-box {
    padding: 16px;
  }

  .account-earnings-value {
    font-size: 1.55rem;
  }
}

.account-earnings-example{

    margin-top:22px;

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

    padding:18px 20px;

    border:1px dashed #5EBCBC;
    border-radius:16px;

    background:#f9ffff;

}

@media(max-width:768px){

.account-earnings-example{

    flex-direction:column;
    text-align:center;
    gap:14px;

}

.account-earnings-example .btn{

    width:100%;

}

}
/* FINAL PAGE WIDTH FIX */
.page-shell > .container {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.page-shell .program-hero,
.page-shell .program-section,
.page-shell #signup {
  width: 100% !important;
  max-width: 892px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

.page-shell .campaign-banner {
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 700px) {
  .page-shell .program-hero,
  .page-shell .program-section,
  .page-shell #signup {
    max-width: 100% !important;
  }
}

/* RETAIL AMBASSADRO ACCOUNT PAGE */
.retail-partner-card {
  overflow: hidden;
}

.retail-card-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.retail-icon-wrap {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  background: rgba(94,188,188,.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.retail-icon {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #138f90;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.retail-account-pill {
  padding: 9px 14px;
  border: 1px solid rgba(94,188,188,.45);
  background: rgba(94,188,188,.10);
  color: #0d6f70;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.retail-info-note {
  border: 1px dashed #5EBCBC;
  background: rgba(94,188,188,.06);
  color: #164b4d;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.45;
}

.retail-section-title {
  margin: 22px 0 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,.07);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #334155;
}

.retail-card-footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.retail-save-btn {
  width: 100%;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .retail-card-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .retail-save-btn {
    width: auto;
    min-width: 220px;
  }
}

.account-save-btn.account-save-saved {
  background: #6c757d !important;
  border-color: #6c757d !important;
  cursor: default;
  opacity: 1;
}

#demoCodeDisplay{
    overflow-wrap:anywhere;
    word-break:break-all;
}

/* ==========================
   RETAIL DEMONSTRATION KIT
========================== */

.retail-kit-card{
    border-radius:18px;
}

.kit-image-placeholder{
    text-align:center;
}

.kit-image-placeholder img{
    width:100%;
    max-width:500px;
    display:block;
    margin:auto;
}

.kit-list{
    list-style:none;
    padding:0;
    margin:0;
}

.kit-list li{
    padding:9px 0;
    font-size:17px;
    color:#222;
    line-height:1.45;
}

.kit-price-area{
    text-align:center;
}

.kit-price{
    font-size:42px;
    font-weight:700;
    line-height:1;
    color:#111;
}

.kit-shipping{
    margin-top:10px;
    font-size:17px;
    font-weight:600;
    color:#5EBCBC;
}

.btn-retail-kit{

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

    min-width:300px;

    padding:14px 34px;

    border:none;

    border-radius:999px;

    background:#5EBCBC;

    color:#fff;

    font-size:18px;

    font-weight:600;

    text-decoration:none;

    transition:.2s;
}

.btn-retail-kit:hover{

    background:#4aa9a9;

    color:#fff;

    text-decoration:none;

}

.kit-footer-note{

    font-size:14px;

    color:#777;

}

.kit-check{

    display:inline-block;

    width:22px;

    color:#5EBCBC;

    font-weight:700;

}

@media (max-width:991px){

    .kit-image-placeholder{

        margin-bottom:28px;

    }

    .kit-price{

        font-size:36px;

    }

    .btn-retail-kit{

    width:100%;
    min-width:0;

    font-size:15px;
    padding:12px 24px;

}
  

}