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

:root {
  --brand-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-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
}

.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: center;
}

.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 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 {
  font-size: 13px;
  color: #6B7280;
}

.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"
    "health status commission login"
    "profile profile 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; }

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

.profile { grid-area: profile; }
.social { grid-area: social; }

.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; 
  grid-column: span 4;
}

/* =========================
   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 {
  resize: vertical;
  min-height: 100px;
}

/* =========================
   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 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 PILL
========================= */

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  height: 22px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

/* =========================
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;

    min-width: 90px;        /* 🔥 forces equal width */
    height: 28px;

    padding: 0 10px;

    border-radius: 999px;

    font-size: 0.8rem;
    font-weight: 600;

    text-align: center;
}

/* =========================
   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;
}

.status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* 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;
}

/* Clean table */
.table-clean {
    width: 100%;
    border-collapse: collapse;
}

.table-clean th {
    text-align: left;
    font-weight: 600;
    padding: 6px 8px;
    color: #333;
}

.table-clean td {
    padding: 6px 8px;
}

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

/* 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;
}

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