/*
Theme Name: My Daily Mailer Theme
Theme URI: http://MyDailyMailer.com/
Description: A mobile friendly responsive theme for MyDailyMailer
Version: 1.0
Author: Jamison Raymond
*/

@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400&display=swap');

/* Base */
html {
  font-size: 16px;
}
body {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  color: #5C4A3D;
  background-color: #F4EAD5;
  margin: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #2B3A1E;
}

/* Salespage */
.salespage p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.salespage h1 {
  font-size: 4rem;
  color: #D97706;
  margin-bottom: 20px;
}

/* Feature Section */
.feature-section {
  padding: 3rem 0;
}
.feature-section h3 {
  margin-bottom: 1rem;
  font-size: 1.75rem;
  color: #2B3A1E;
}
.feature-text p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
  font-size: 1.125rem;
  color: #5C4A3D;
}
.feature-img img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}
.feature-img img:hover {
  transform: scale(1.015);
}

/* Utilities */
.orange {
  color: #D97706;
}

/* Layout */
.lfm_outerdiv {
  display: flex;
  width: 100%;
  align-items: stretch;
}
.main {
  width: 100%;
}
.lfm_menu_logo {
  max-height: 100px;
  margin: 1rem 1.1rem;
}

/* Topbar */
.lfm_topbar {
  background: #2B3A1E;
  color: #FFE8BB;
  margin-bottom: 0;
  min-height: 120px;
}

/* Sidebar */
.lfm_slidebar {
  min-width: 225px;
  max-width: 225px;
  min-height: 100vh;
  background: #2B3A1E;
  transition: margin 0.4s ease-in-out;
}
.member-count {
  background-color: #FFF9EC;
  color: #2B3A1E;
  border: 1px solid #D1C4A9;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: bold;
  margin-bottom: 15px;
}


@media (min-width: 890px) {
  .lfm_slidebar {
    margin-left: 0;
  }
  .lfm_slidebar.toggled {
    margin-left: -225px;
  }
}
@media (max-width: 889px) {
  .lfm_slidebar {
    margin-left: -225px;
  }
  .lfm_slidebar.toggled {
    margin-left: 0;
  }
}
.lfm_slidebar_toggleswitch {
  cursor: pointer;
  font-size: 24px;
  color: #FFE8BB;
  padding-right: 10px;
}
.lfm_slidebar_toggleswitch:hover {
  color: #B15C00;
}
.lfm_slidebar_mainmenu {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: auto;
}
.lfm_slidebar_mainmenu li > a {
  display: block;
  padding: 0.5rem 1.1rem;
  font-size: 16px;
  font-weight: 400;
  color: #FFE8BB;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,232,187,0.3);
}
.lfm_slidebar_mainmenu li > a:hover,
.lfm_slidebar_mainmenu li > a.active {
  background: #2E5D43;
}

/* Header & Footer */
.header {
  background: linear-gradient(90deg, #FFE8BB 0%, #F8DB99 100%);
  color: #fff;
  /* ditch all bottom space */
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;

}

/* remove the default padding on the container inside the header */
.header > .container-fluid {
  padding-bottom: 0 !important;
}

.lfm_footer {
  background-color: #2B3A1E;
  color: #FFE8BB;
}

/* Icons */
.far, .fas {
  margin-right: 3px;
}
.feedicon {
  color: #3097D1;
  font-size: 20px;
  margin-right: 5px;
}

/* Profile Pics */
.profilepic_small { width: 40px; height: 40px; }
.profilepic_med   { width: 75px; height: 75px; }
.profilepic_large { width: 150px; height: 150px; margin-top: 10px;}

/* Button Link */
.buttonlink {
  display: inline-block;
  background-color: #1468e5;
  border: 1px solid #002175;
  border-radius: 2px;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  padding: 4px 7px;
  margin: 2px 1px;
  text-decoration: none;
  cursor: pointer;
}
.buttonlink:hover {
  background-color: #3385FF;
}

/* Infobar */
.infobar {
  width: 100%;
  padding: 15px 0;
  background-color: #555;
  color: #fff;
}
.infobar h2 {
  margin: 0;
}

/* Vertical Center */
.vcenter {
  display: flex;
  align-items: center;
}

/* Titles & Descriptions */
.lfm_title {
  font-family: "Montserrat", sans-serif;
  color: #2B3A1E;
  font-size: 2rem;
}
.lfm_descr {
  font-family: "Open Sans", sans-serif;
  color: #5C4A3D;
  font-size: 1rem;
}
.lfm_descr_bold {
  font-weight: 700;
}

/* Links */
a {
  color: #3B7A57;
  text-decoration: none;
}
a:hover {
  color: #2E5D43;
  text-decoration: underline;
}

/* Danger Button */
.btn-danger {
  display: inline-block;
  background-color: #D97706;
  border: 1px solid #D97706;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  border-radius: 5px;
  padding: 12px 24px;
  font-size: 1.125rem;
  transition: background-color 0.2s, transform 0.2s;
  text-align: center;
  text-decoration: none;
}
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
  background-color: #B15C00;
  border-color: #B15C00;
  transform: scale(1.04);
}

.btn-success {
  display: inline-block;
  background-color: #28a745;
  border: 1px solid #28a745;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  border-radius: 5px;
  padding: 12px 24px;
  font-size: 1.125rem;
  transition: background-color 0.2s, transform 0.2s;
  text-align: center;
  text-decoration: none;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
  background-color: #218838;
  border-color: #218838;
  transform: scale(1.04);
}

/* Forms */
input, textarea, select {
  width: 300px;
  padding: 10px;
  border: 1px solid #D1C4A9;
background-color: #FFF9EC;

}
@media (max-width: 575px) {
  input, textarea, select { width: 100%; }
}

/* Containers */
.container,
.container-fluid {
  max-width: 1100px;
  padding: 10px 20px;
  margin: 0 auto;
}

/* Salespage Media Query */
@media (max-width: 767px) {
  .salespage .row.px-5.mx-5 {
    margin: 0 !important;
    padding: 0 1rem !important;
  }
}

/* AOS */
[data-aos="fade-in"] {
  opacity: 0;
  transition: opacity 0.8s ease-in;
}
[data-aos="fade-in"].aos-animate {
  opacity: 1;
}

/* Member Spotlight Card — Tabbed Banner Style */
.member-spotlight-card {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  background: none;
  border: none;
  text-align: center;
  position: relative;
  font-family: 'Open Sans', sans-serif;
}

/* Banner */
.banner-container {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  border-bottom: 3px solid #D97706;
}

.banner-container img {
  display: block;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.banner-container img:hover {
  transform: scale(1.01);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

/* Tab-style Label */
.member-ad-label {
  display: inline-block;
  background: #FFE8BB;                      /* softer, branded tab color */
  border: 1px solid #D1C4A9;                /* consistent soft border */
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  line-height: 1.2;
  color: #2B3A1E;                           /* strong brand text color */
  margin-top: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeSlideUp 0.6s ease-out forwards;
}


@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Link inside label */
.member-profile-link {
  color: #D97706;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
}

.member-profile-link:hover {
  color: #B15C00;
  text-decoration: underline;
}

/* Mobile Optimization */
@media (max-width: 767px) {
  .member-ad-label {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Header Layout */
@media (min-width: 501px) {
  .header-flex-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .header-logo,
  .tagline-wrapper {
    flex: 1 1 50%;
  }
  .tagline-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
  margin-top: 30px;
  }
  .tagline-wrapper h3 {
    margin: 0;
    text-align: center;
  }
}
@media (max-width: 500px) {
  .header-flex-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .header-logo,
  .tagline-wrapper {
    width: 100%;
    text-align: center;
  }
  .tagline-wrapper h3 {
    margin: 0;
    text-align: center;
  }
}

/* Custom container for the Send Mailing form */
.send-mail-card {
  background-color: #FFF9EC;    /* white card */
  border: 1px solid rgba(209, 196, 169, 0.5);
  border-radius: 10px;                  /* Gently rounded corners */ 
  padding: 20px 40px 20px 40px;     /* top 20px, left/right 40px, bottom 40px */
  margin: 10px auto;                    /* Center with vertical spacing */ 
  max-width: 600px;                     /* Keeps it narrow and focused */ 
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* Subtle depth */
}

.send-mail-card input[type="text"],
.send-mail-card textarea {
  background-color: #F7F3EA;   /* very pale tan */
  border: 1px solid #E0D7C0;    /* matching neutral border */
  border-radius: 8px;
  padding: 8px;
  width: 100%;
  box-sizing: border-box;
}

.tox .tox-editor-header,
.tox .tox-toolbar,
.tox .tox-editor-container {
  background-color: #F7F3EA !important;
  border-radius: 4px 4px 0 0;
}
.tox .tox-edit-area, 
.tox .tox-edit-area iframe {
  background-color: #FFFFFF !important;
}
.tox .tox-editor-header,
.tox .tox-toolbar {
  padding: 6px 8px;
}

.tox .tox-edit-area__iframe:focus {
  outline: none !important;
  border: 2px solid #5C4A3D !important; /* your brand brown */
  border-radius: 4px;
}


/* don’t let checkboxes inherit that 300px width */
input[type="checkbox"] {
  width: auto;
  padding: 0;
  margin: 0 0.5rem 0 0;  /* small right‐gap between box and label */
  vertical-align: middle;
}
/* ———————————————————————————————
   Emphasize the TinyMCE editor box
   ——————————————————————————————— */
.tox .tox-editor-container {
  border: 2px solid #D1C4A9;      /* match your form’s accent border */
  border-radius: 6px;             /* soften the corners */
  background-color: #fff;         /* keep the white editing surface */
  /* optional shadow for extra pop: */
  /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
}
/* Editor pop-out */
.tox-tinymce {
  box-shadow: 0 1px 3px rgba(224, 123, 37, 0.1);
  border: 1px solid rgba(224, 123, 37, 0.2);
  border-radius: 4px;
}

/* Inputs */
#subjecttext,
#linkurl {
  background: #fbf5ed;
  border: 1px solid #e6d6c8;
  border-radius: 4px;
  padding: .5rem .75rem;
}

/* Macros heading */
.lfm_macros-title {
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

/* Send button */
.btn-danger {
  min-width: 160px;
  padding: .75rem 1.5rem;
}

/* ───────────────────────────────────────────────
   Force white inputs inside our “Send A Mailing” card
─────────────────────────────────────────────── */
.send-mail-card input[type="text"],
.send-mail-card input[type="url"],
.send-mail-card input[type="number"],
.send-mail-card textarea,
.send-mail-card select {
  background-color: #ffffff !important;
  border: 1px solid #D1C4A9 !important;
  color: #2B3A1E !important;
}
.send-mail-card {
  /* …your existing rules… */
  display: flex;
  flex-direction: column;  /* stack its children vertically */
  align-items: center;     /* center them horizontally */
  text-align: center;      /* center their text */
}


/* ── Desktop View ───────────────────────────────────────────── */
.sent-messages-table {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-collapse: collapse;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #5C4A3D;
  text-align: center;
}
.sent-messages-table thead {
  background-color: #FFE8BB;
  position: sticky;
  top: 0;
  z-index: 2;
}
.sent-messages-table th,
.sent-messages-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #E0D1B4;
  text-align: center;
}
.sent-messages-table td:nth-child(5) {
  font-family: monospace;
}

/* ── Status Badges & Buttons ───────────────────────────────── */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 4px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
}
.status-sent     { background-color: #3B7A57; }
.status-failed   { background-color: #E63946; }
.status-sending  { background-color: #D97706; }
.status-scheduled{ background-color: #B15C00; }
.status-queued   { background-color: #998E84; }

.buttonlink {
  display: inline-block;
  background-color: #D97706;
  border: 1px solid #D97706;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  margin: 0;
}
.buttonlink:hover {
  background-color: #B15C00;
  border-color: #B15C00;
}

/* ── Mobile View (cards) ───────────────────────────────────── */
@media (max-width: 600px) {
  .sent-messages-table {
    border: 0;
    width: 100%;
    overflow-x: hidden;
  }
  .sent-messages-table thead {
    display: none;
  }

  /* card container */
  .sent-messages-table tr {
    display: block;
    background-color: #FFF9EC;
    border: 1px solid #D1C4A9;
    border-left: 5px solid #D97706;
    border-radius: 10px;
    margin: 16px auto;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    box-sizing: border-box;
    text-align: center; /* centers action row */
  }

  /* each field row inside the card */
  .sent-messages-table td {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    border-bottom: 1px solid #E0D1B4; /* separator line */
  }

  /* remove last separator under buttons */
  .sent-messages-table tr > td:last-of-type {
    border-bottom: none;
  }

  /* label (left) */
  .sent-messages-table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #2B3A1E;
    font-family: 'Montserrat', sans-serif;
    width: 40%;
    min-width: 100px;
    padding-right: 0.5rem;
    box-sizing: border-box;
    text-align: left;
  }

  /* value (right) */
  .sent-messages-table td span.cell-value {
    width: 60%;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
    text-align: left;
  }

  /* ─── Group the “Resend” button ───────────────── */
  /* hide its label */
  .sent-messages-table td[data-label="Resend"]::before {
    display: none;
  }
  /* sit both action cells side-by-side */
  .sent-messages-table td[data-label="Resend"] {
    display: inline-block;
    width: auto;
    margin: .5rem .5rem 1rem; /* add top space + small gap + bottom space */
    border: none;
    padding: 0;
    text-align: center;
  }

  /* keep all other fields left-aligned */
  .sent-messages-table td:not([data-label="Resend"]) {
    text-align: left;
  }

  /* ensure buttons aren’t offset */
  .buttonlink {
    margin: 0;
  }
}

/* ── Desktop View ───────────────────────────────────────────── */
.templates-table {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-collapse: collapse;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #5C4A3D;               /* secondary text */ :contentReference[oaicite:0]{index=0}:contentReference[oaicite:1]{index=1}
  text-align: center;
}
.templates-table thead {
  background-color: #FFE8BB;    /* header background */ :contentReference[oaicite:2]{index=2}:contentReference[oaicite:3]{index=3}
  position: sticky;
  top: 0;
  z-index: 2;
}
.templates-table th,
.templates-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #E0D1B4; /* footer bg used as row divider */ :contentReference[oaicite:4]{index=4}:contentReference[oaicite:5]{index=5}
  text-align: center;
}

/* make the CTR column monospace */
.templates-table td:nth-child(5) {
  font-family: monospace;
}

/* ── Send Now / Delete Buttons ─────────────────────────────── */
.buttonlink {
  display: inline-block;
  background-color: #D97706;     /* primary CTA */ :contentReference[oaicite:8]{index=8}:contentReference[oaicite:9]{index=9}
  border: 1px solid #D97706;     /* primary CTA */ :contentReference[oaicite:10]{index=10}:contentReference[oaicite:11]{index=11}
  color: #fff;
  font-family: 'Montserrat', sans-serif; /* CTA font */ :contentReference[oaicite:12]{index=12}:contentReference[oaicite:13]{index=13}
  font-weight: 600;
  font-size: 0.875rem;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  margin: 0;
}
.buttonlink:hover {
  background-color: #B15C00;     /* CTA hover */ :contentReference[oaicite:14]{index=14}:contentReference[oaicite:15]{index=15}
  border-color: #B15C00;         /* CTA hover */ :contentReference[oaicite:16]{index=16}:contentReference[oaicite:17]{index=17}
}

/* ── Mobile View ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .templates-table {
    border: 0;
    width: 100%;
    overflow-x: hidden;
  }
  .templates-table thead {
    display: none;
  }
  .templates-table tr {
    display: block;
    background-color: #FFF9EC;    /* card background */ :contentReference[oaicite:18]{index=18}:contentReference[oaicite:19]{index=19}
    border: 1px solid #D1C4A9;     /* border color */ :contentReference[oaicite:20]{index=20}:contentReference[oaicite:21]{index=21}
    border-left: 5px solid #D97706;/* accent bar */ :contentReference[oaicite:22]{index=22}:contentReference[oaicite:23]{index=23}
    border-radius: 10px;
    margin: 16px auto;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    box-sizing: border-box;
    text-align: center;           /* center everything by default */
  }
  .templates-table td {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
  }
  .templates-table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #2B3A1E;               /* primary text */ :contentReference[oaicite:24]{index=24}:contentReference[oaicite:25]{index=25}
    font-family: 'Montserrat', sans-serif; /* heading font */ :contentReference[oaicite:26]{index=26}:contentReference[oaicite:27]{index=27}
    width: 40%;
    min-width: 100px;
    padding-right: 0.5rem;
    box-sizing: border-box;
  }
  .templates-table td span.cell-value {
    width: 60%;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* ── Group Send Now + Delete into one centered row ───────── */
  .templates-table td[data-label="Send Now"]::before,
  .templates-table td[data-label="Delete"]::before {
    display: none;
  }
  .templates-table td[data-label="Send Now"],
  .templates-table td[data-label="Delete"] {
    display: inline-block;   /* sit side by side */
    width: auto;             /* shrink-to-fit */
    margin: 1rem .5rem 1rem;     /* small gap + bottom spacing */
    border: none;
    padding: 0;
  }
  /* keep all other cells left-aligned */
  .templates-table td:not([data-label="Send Now"]):not([data-label="Delete"]) {
    text-align: left;
  }
  /* ensure buttons aren’t offset by default margins */
  .buttonlink {
    margin: 0;
  }
}

/* Promo Codes Card (polished) */
.promo-codes-card {
  background: #FFF9EC;
  border: 1px solid #D1C4A9;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  max-width: 600px;
  margin: 0 auto 40px;
}

.promo-codes-card .card-header {
  background: #F7F1E3;
  padding: 15px 20px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.promo-codes-card .card-header h3 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  color: #2B3A1E;
  text-align: center;
}

.promo-codes-card .card-body {
  padding: 15px 20px;
  font-family: 'Open Sans', sans-serif;
  color: #5C4A3D;
  text-align: center;           /* center the list text */
}

.promo-codes-card .promo-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.promo-codes-card .promo-list li {
  padding: 8px 0;
  border-bottom: 1px solid #D1C4A9;
}

.promo-codes-card .promo-list li:last-child {
  border-bottom: none;
}

.promo-codes-card .promo-list li span.code {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.promo-codes-card .promo-list li span.prize {
  margin-left: 6px;
  opacity: 0.8;
}
.section-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2B3A1E;
  text-align: center;
}

.alert-error {
  background-color: #FFE8BB;
  border: 1px solid #D97706;
  padding: 1rem;
  color: #2B3A1E;
  font-weight: bold;
  text-align: center;
  margin: 20px auto;
  max-width: 600px;
  border-radius: 6px;
}

.account-summary {
  background-color: #FFF9EC;
  border: 1px solid #D1C4A9;
  padding: 1.25rem;
  margin: 1rem auto 2rem;
  max-width: 600px;
  text-align: center;
  font-size: 1.1rem;
  color: #5C4A3D;
  border-radius: 8px;
}

.account-summary p {
  margin: 0.5rem 0;
}
.centered-container {
  margin: 0 auto;
}

.quick-assign-card {
  background-color: #FFF9EC;
  border: 1px solid #D1C4A9;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.quick-assign-title {
  font-size: 1.4rem;
  font-family: "Montserrat", sans-serif;
  color: #2B3A1E;
  margin-bottom: 1rem;
}

.quick-assign-label {
  font-size: 1rem;
  color: #5C4A3D;
  display: block;
  margin-bottom: 0.5rem;
}

.quick-assign-input {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #D1C4A9;
  border-radius: 4px;
  background-color: #FFF9EC;
  margin-bottom: 0.5rem;
}

.quick-assign-note {
  font-size: 0.9rem;
  color: #5C4A3D;
  margin-bottom: 1rem;
}

.mt-package-card {
  background-color: #FFF9EC;
  border: 1px solid #D1C4A9;
  border-radius: 16px;
  padding: 20px;
  margin: 20px auto;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.mt-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #2B3A1E;
  margin-bottom: 10px;
}
.mt-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 15px 0;
}
.mt-buttons img {
  height: 60px;
  width: auto;
  cursor: pointer;
}
.mt-description {
  font-family: "Open Sans", sans-serif;
  color: #5C4A3D;
  font-size: 1rem;
}
@media (max-width: 500px) {
  .mt-buttons {
    flex-direction: column;
    gap: 10px;
  }
}
.mt-buttons input[type="image"] {
  height: 70px !important;
  width: auto !important;
  max-height: 60px;
  border: none;
  outline: none;
  box-shadow: none;
  background: none;
}
.mt-buttons input[type="image"]:hover {
  filter: brightness(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}



/* ==========================================================================
   Banner Management Styles for mybanners.php
   ========================================================================== */

/* 1) Overall container */
.banner-section-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

/* 2) Page header */
.page-section-title {
  text-align: center;
  font-size: 2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #2B3A1E;
  margin-top: 0.5rem;
}
.page-section-subtext {
  text-align: center;
  font-size: 1.1rem;
  font-family: 'Open Sans', sans-serif;
  color: #5C4A3D;
  margin-bottom: 1.5rem;
}

/* 3) Top MT-balance summary */
.mb-account-summary {
  background-color: #FFF9EC;
  border: 1px solid #D1C4A9;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  color: #2B3A1E;
}
.mb-account-summary p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

/* 4) Individual banner cards */
.banner-card {
  background-color: #FFF9EC;
  border: 1px solid #D1C4A9;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 0 auto 2rem;
  width: 100%;
  max-width: 530px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.banner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/*  — Preview */
.banner-card__preview {
  text-align: center;
  margin-bottom: 1.25rem;
}
.banner-card__preview img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.banner-card__preview img:hover {
  transform: scale(1.02);
}

/*  — Editor form */
.banner-card__editor {
  margin-bottom: 1rem;
}
.banner-card__editor .banner-edit-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.banner-edit-form label {
  font-weight: bold;
  color: #2B3A1E;
  font-size: 0.95rem;
  margin: 0.5rem 0 0.25rem;
}
.banner-edit-form input {
  width: 100%;
  padding: 0.6rem;
  background: #FFF9EC;
  border: 1px solid #D1C4A9;
  border-radius: 4px;
  font-size: 1rem;
}

/*  — Buttons */
.banner-card-footer {
  text-align: center;
  margin-top: 0.75rem;
}
.btn-save,
.btn-add {
  background-color: #D97706;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  padding: 0.75rem 2rem;
  min-width: 140px;
  cursor: pointer;
}
.btn-save:hover,
.btn-add:hover {
  opacity: 0.9;
}

/* 5) Stats + Reset */
.mb-banner-stats {
  background-color: #FFF9EC;
  border: 1px solid #D1C4A9;
  border-radius: 4px;
  max-width: 300px;
  margin: 1rem auto;
  padding: 0.75rem 1rem;
  text-align: center;
}
.mb-banner-stats p {
  margin: 0.25rem 0;
}
.mb-banner-stats .reset-link {
  display: block;
  margin-top: 0.5rem;
  color: #3B7A57;
  text-decoration: none;
}
.mb-banner-stats .reset-link:hover {
  text-decoration: underline;
}

/* 6) Status badge */
.banner-card__status {
  text-align: center;
  margin-bottom: 0.75rem;
}
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
}
.status-badge.active   { background: #3B7A57; }
.status-badge.paused   { background: #998E84; }
.status-badge.pending  { background: #D97706; }
.banner-card__status a {
  margin-left: 6px;
  color: #3B7A57;
  text-decoration: none;
}
.banner-card__status a:hover {
  text-decoration: underline;
}

/* 7) Assigned imps */
.banner-card__impressions {
  text-align: center;
  font-size: 0.95rem;
  color: #5C4A3D;
  margin-bottom: 1rem;
}

/* 8) Assign MTs/Imps */
.banner-card__assign {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.banner-card__assign form {
  display: flex;
  gap: 0.5rem;
}
.banner-card__assign input {
  flex: 1;
  padding: 0.6rem;
  border: 1px solid #D1C4A9;
  border-radius: 4px;
  background: #FFF9EC;
}
.banner-card__assign button {
  background: #3B7A57;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.5rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
}
.banner-card__assign button:hover {
  opacity: 0.9;
}

/* 9) Delete button */
.banner-card__delete {
  text-align: center;
  margin-top: 0.5rem;
}
.banner-card__delete .btn-delete {
  background: #E63946;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.75rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
}
.banner-card__delete .btn-delete:hover {
  opacity: 0.9;
}

/* 10) Add Banner card */
.add-banner-card {
  background-color: #FFF9EC;
  border: 1px solid #D1C4A9;
  border-radius: 8px;
  padding: 2rem;
  margin: 3rem auto;
  max-width: 530px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.add-banner-card h3 {
  font-size: 1.5rem;
  color: #2B3A1E;
  margin-bottom: 1.5rem;
}


/* ==========================================================================
   Contests Page Overrides
   ========================================================================== */

/* — Page Hero (contests) ———————————————————————————————— */
.page-hero {
  background-color: #F4EAD5;
  padding: 0.5rem 1rem 0.5rem;
  text-align: center;
  margin: 0.5rem auto 1rem auto;
  max-width: 720px;
}

.page-hero .page-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  color: #2B3A1E;
  margin-bottom: 0.25rem;
}
.page-hero .page-subtitle {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: #5C4A3D;
  margin-bottom: 1rem;
}

/* — Summary Bar Card —————————————————————————————— */
/* will shrink to contents and center itself */
.summary-bar {
  max-width: 480px;               /* approx two items + gap */
  margin: -1rem auto 2rem;        /* pull up slightly, then spacing below */
  background-color: #FFF9EC;      /* white card */
  border: 1px solid #D1C4A9;      /* soft tan border */
  border-radius: 8px;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.summary-item {
  text-align: center;
}
.summary-item .summary-value {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2B3A1E;
}
.summary-item .summary-label {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  color: #5C4A3D;
}

/* — Contests Grid ——————————————————————————————— */
.contests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* — Contest Card ——————————————————————————————————— */
.contest-card {
  background-color: #FFF9EC;
  border: 1px solid #D1C4A9;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.contest-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}
.contest-icon {
  margin-bottom: 0.5rem;
}
.contest-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  color: #2B3A1E;
  margin: 0 0 0.5rem;
  text-align: center;
}
.contest-description {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  color: #5C4A3D;
  font-style: italic;
  margin-bottom: 0.5rem;
  text-align: center;
}
.contest-period {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  color: #5C4A3D;
  margin: 0;
  text-align: center;
}

/* — Countdown Timer —————————————————————————————— */
.contest-countdown {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #D97706;
  text-align: center;
  margin: 1rem 0;
}

/* — Leaders Table ————————————————————————————————— */
.contest-leaders {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.contest-leaders th,
.contest-leaders td {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 1px solid #D1C4A9;
}
.contest-leaders th {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #2B3A1E;
}

/* — Empty State —————————————————————————————————— */
.no-entries {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #5C4A3D;
  margin: 1rem 0;
}

/* — Prize Legend ————————————————————————————————— */
.contest-prizes {
  margin-bottom: 1.5rem;
}
.contest-prizes h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  color: #2B3A1E;
  margin-bottom: 0.5rem;
}
.contest-prizes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contest-prizes li {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  color: #5C4A3D;
  margin-bottom: 0.4rem;
}

/* — Footer (Your Position + Button) —————————————————— */
.contest-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.your-position {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #2B3A1E;
  margin-bottom: 0.5rem;
}
.btn-primary {
  display: inline-block;
  background-color: #D97706;
  color: #FFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.btn-primary:hover {
  background-color: #B15C00;
}

/* — Past Winners Section —————————————————————————— */
.past-winners {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #D1C4A9;
}
.past-winners h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  color: #2B3A1E;
  margin-bottom: 0.5rem;
}
.past-winners p {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  color: #5C4A3D;
  margin-bottom: 1rem;
}
.past-list .past-contest {
  background-color: #FFF;
  border: 1px solid #D1C4A9;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.past-list .past-contest h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  color: #2B3A1E;
  margin: 0 0 0.5rem;
}
.past-list .past-contest p {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  color: #5C4A3D;
  margin: 0;
}

/* — Responsive Adjustments ——————————————————————— */
@media (max-width: 600px) {
  .summary-bar {
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
    margin: -1rem auto 2rem;
  }
  .contest-footer {
    justify-content: center;
  }
}
/* Reduce space below the contests subtitle */
.page-hero .page-subtitle {
  margin-bottom: 0.5rem !important;
}

/* referrals.css — Full CSS for Direct Referrals page */

/* Container & Section Header */
.container.referrals-page-header {
  max-width: 1100px;
  margin: 0.5 auto 30px;
  padding: 0.5px 20px 20px;
  box-sizing: border-box;
  text-align: center;
}

/* Page Title */
.referrals-page-header h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #2B3A1E;
  margin: 0 0 10px;
}

/* Intro Blurb */
.referrals-page-header .intro p {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #5C4A3D;
  margin: 0 auto 20px;
  max-width: 800px;
  text-align: center;
}
.referrals-page-header .intro span {
  color: #D97706;
  font-weight: 600;
}

/* Flex Controls: Intro, Sort, Buttons */
.referrals-page-header .flex-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Sort Form: inline label + select + button */
.referrals-page-header .sort-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  order: 2;
  flex: 1 1 100%;
}
@media (min-width: 769px) {
  .referrals-page-header .sort-form {
    order: 0;
    flex: 0 1 auto;
    margin: 0 10px;
  }
}
.referrals-page-header .sort-form .sort-label {
  font-family: "Open Sans", sans-serif;
  font-size: 0.9rem;
  color: #5C4A3D;
  white-space: nowrap;
}
.referrals-page-header .sort-form select {
  -webkit-appearance: none;
  appearance: none;
  font-family: "Open Sans", sans-serif;
  font-size: 0.9rem;
  color: #2B3A1E;
  padding: 8px 32px 8px 12px;   /* room for custom arrow */
  border: 1px solid #D1C4A9;
  border-radius: 4px;
  background: #FFF;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg ...arrow...%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  min-width: 140px;
}
.referrals-page-header .sort-form button {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  background: #E38A03;
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}
.referrals-page-header .sort-form button:hover {
  background: #C67202;
}
.referrals-page-header .sort-form select:focus,
.referrals-page-header .sort-form button:focus {
  outline: 2px solid #3B7A57;
  outline-offset: 2px;
}

/* Buttons Container */
.referrals-page-header .buttons {
  display: flex;
  gap: 10px;
  order: 3;
  flex: 1 1 100%;
}
@media (min-width: 769px) {
  .referrals-page-header .buttons {
    order: 0;
    flex: 0 1 auto;
    margin: 0 10px;
  }
}

/* CTA Buttons */
.referrals-page-header .buttons .button {
  display: inline-block;
  background: #D97706;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.15s ease;
  min-width: 140px;
  text-align: center;
  cursor: pointer;
}
.referrals-page-header .buttons .button:hover {
  background: #B15C00;
}

/* Section Divider */
.referrals-page-header .section-divider {
  border: none;
  border-top: 1px solid #E0D6C2;
  margin: 30px 0 0;
}

/* Empty State */
.referrals-empty {
  text-align: center;
  font-family: "Montserrat", sans-serif;
  color: #5C4A3D;
  margin: 40px 0;
}
.referrals-empty .button {
  background: #D97706;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.15s ease;
  margin-top: 10px;
}
.referrals-empty .button:hover {
  background: #B15C00;
}

/* Grid Layout for Cards */
.referrals-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
margin-top: 10px;
}

/* Card Container */
.referrals-card {
  display: flex;
  flex-direction: column;
  background-color: #FFF9EC;
  border: 1px solid #D1C4A9;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.2s;
}
.referrals-card:hover {
  transform: translateY(-2px);
}

/* Card Header */
.referrals-card__header {
  display: flex;
  align-items: center;
  padding: 15px;
  background: #F4EAD5;
}
.referrals-avatar {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
  background: #FFF9EC;
}
.referrals-card__title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  color: #2B3A1E;
  margin: 0;
}

/* Card Body: Two-column stats */
.referrals-card__body {
  flex: 1;
  padding: 15px;
  font-family: "Open Sans", sans-serif;
  color: #5C4A3D;
  font-size: 0.95rem;
  line-height: 1.4;
}
.referrals-card__body dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 30px;
  row-gap: 8px;
  margin: 0;
  padding: 0;
}
.referrals-card__body dt,
.referrals-card__body dd {
  break-inside: avoid-column;
  margin: 0;
  padding: 0;
}
.referrals-card__body dt {
  font-weight: bold;
  color: #2B3A1E;
}

/* Card Actions */
.referrals-card__actions {
  padding: 15px;
  border-top: 1px solid #E0D6C2;
  text-align: center;
}
.referrals-card__actions .buttonlink {
  background-color: #D97706;
  border: 1px solid #D97706;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  min-width: 140px;
  text-align: center;
}
.referrals-card__actions .buttonlink:hover {
  background-color: #B15C00;
  border-color: #B15C00;
}

/* Pagination */
.referrals-pagination {
  text-align: center;
  margin: 20px 0;
}
.referrals-pagination a,
.referrals-pagination span {
  display: inline-block;
  margin: 0 5px;
  padding: 6px 12px;
  font-family: "Open Sans", sans-serif;
  color: #3B7A57;
  border: 1px solid #D1C4A9;
  border-radius: 4px;
  text-decoration: none;
}
.referrals-pagination a:hover {
  background: #F4EAD5;
}
.referrals-pagination .active {
  background: #D97706;
  color: #fff;
  border-color: #D97706;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .referrals-card__header {
    flex-direction: column;
    text-align: center;
  }
  .referrals-avatar {
    margin: 0 0 10px;
  }
  .referrals-card__actions {
    text-align: center;
  }
  .referrals-card__body dl {
  }
}
@media (max-width: 600px) {
  /* Stack label, select, and button vertically */
  .referrals-page-header .sort-form {
    flex-direction: column;
    align-items: flex-start;
  }
  .referrals-page-header .sort-form .sort-label {
    margin-bottom: 6px;
  }

  /* Make the pill wrapper vertical, full-width */
  .referrals-page-header .sort-form .sort-pill {
    flex-direction: column;
    width: 100%;
    max-width: none;
  }

  /* Top half: the select gets top corners rounded, remove bottom border */
  .referrals-page-header .sort-form select {
    border-radius: 6px 6px 0 0;
    border-bottom: none;
  }

  /* Bottom half: the button gets bottom corners rounded, remove top border */
  .referrals-page-header .sort-form button {
    border-radius: 0 0 6px 6px;
    border-top: none;
    width: 100%;
    margin: 0; /* no funky overlap */
  }
}
@media (max-width: 600px) {
  /* 1) add breathing room under the select before the button */
  .referrals-page-header .sort-form .sort-pill select {
    margin-bottom: 8px;
  }

  /* 2) force the two CTA links to center on small screens */
  .referrals-page-header .buttons {
    justify-content: center;
    width: 100%;
  }
}
/* Mini stats banner under the header */
.referrals-stats-banner {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
  margin-bottom: 10px;
  font-family: "Montserrat", sans-serif;
}

.referrals-stats-banner .stat {
  text-align: center;
}

.referrals-stats-banner .stat strong {
  display: block;
  font-size: 1.5rem;
  color: #2B3A1E;
}

.referrals-stats-banner .stat span {
  display: block;
  font-size: 0.875rem;
  color: #5C4A3D;
}

/* ——————————————
   Transfer MTs Page Styles
   —————————————— */

/* transfer.css — Full CSS for referral_transfer.php page */

/* Container & Card */
.container.transfer-page {
  max-width: 500px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.transfer-card {
  background: #FFF9EC;              /* My Daily Mailer cream */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 30px 20px;
  font-family: "Open Sans", sans-serif;
}

/* Account Summary Box */
.account-summary {
  border: 1px solid #D1C4A9;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 25px;
  text-align: center;
  color: #5C4A3D;
}
.account-summary p {
  margin: 8px 0;
  font-size: 0.95rem;
}
.account-summary p strong {
  color: #2B3A1E;
}

/* Error Alert */
.alert-error {
  background: #FDECEA;
  border: 1px solid #F5C6CB;
  color: #C0392B;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* Transfer Form */
.transfer-form {
  text-align: left;
}
.transfer-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #2B3A1E;
}

/* Input + Unit */
.input-group {
  position: relative;
  margin-bottom: 20px;
}
.input-group input {
  width: 100%;
  padding: 10px 50px 10px 12px;
  font-size: 1rem;
  border: 1px solid #D1C4A9;
  border-radius: 4px;
  box-sizing: border-box;
}
.input-group .input-unit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: #5C4A3D;
  pointer-events: none;
}

/* Transfer Button */
.transfer-form button {
  width: 100%;
  padding: 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #D97706;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.transfer-form button:disabled {
  background: #E0D6C2;
  cursor: not-allowed;
}
.transfer-form button:not(:disabled):hover {
  background: #B15C00;
}

/* Success Panel */
.transfer-success {
  text-align: center;
  padding: 20px;
}
.transfer-success-icon {
  font-size: 3rem;
  color: #3B7A57;
  margin-bottom: 0.5rem;
}
.transfer-success h2 {
  margin: 0.5rem 0 1rem;
  color: #2B3A1E;
}
.transfer-success p {
  font-size: 0.95rem;
  color: #5C4A3D;
  margin: 8px 0;
}
.transfer-success .button {
  display: inline-block;
  margin-top: 15px;
}

/* Utility */
.button {
  display: inline-block;
  background: #D97706;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.15s ease;
  cursor: pointer;
}
.button:hover {
  background: #B15C00;
}



/* === Coffee Jar Page Styles (Scoped) === */

.coffeejar-section-header {
  margin: 0rem auto;
  text-align: center;
}
.coffeejar-section-header h1 {
  font-size: 2.5rem;
  color: #2B3A1E;
  margin-bottom: 0.5rem;
}
.coffeejar-subtext {
  font-size: 1.1rem;
  color: #5C4A3D;
}

/* Flexbox Grid for Deposit Options */
.coffeejar-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 2rem auto 3rem;
}

/* Deposit Option Card */
.coffeejar-deposit-box {
  background: #F8FFF4;
  border: 1px solid #004400;
  border-radius: 10px;
  padding: 20px;
  flex: 1 1 calc(33.333% - 1.5rem);
  max-width: 330px;
  min-width: 280px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: 'Open Sans', sans-serif;
}

/* Instructional text and lists */
.coffeejar-deposit-box p,
.coffeejar-deposit-box ol,
.coffeejar-deposit-box ul,
.coffeejar-deposit-box li {
  text-align: left;
  color: #2B3A1E;
  font-size: 0.95rem;
  margin: 0.25rem 0;
}
.coffeejar-deposit-box ol {
  padding-left: 1.25rem;
}

/* Inputs and Buttons */
.coffeejar-deposit-box input[type="text"],
.coffeejar-deposit-box textarea {
  width: 100% !important;
  max-width: 260px;
  display: block;
  margin: 0.5rem auto;
  padding: 10px;
  border: 1px solid #D1C4A9;
  border-radius: 5px;
  background-color: #FFF9EC;
  color: #2B3A1E;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  box-sizing: border-box;
}

.coffeejar-deposit-box input[type="submit"] {
  width: 100%;
  max-width: 260px;
  display: block;
  margin: 0.75rem auto 0;
  background-color: #008000;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}
.coffeejar-deposit-box input[type="submit"]:hover {
  background-color: #006600;
}

/* Commission Transfer Box */
.coffeejar-transfer-box {
  background-color: #FFF9EC;
  border: 1px solid #D1C4A9;
  padding: 1.25rem;
  margin: 2rem auto;
  max-width: 600px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font-size: 1.1rem;
  color: #5C4A3D;
}

/* Generic content card for sections like Subscriptions & History */
.coffeejar-card {
  background-color: #FFF9EC;
  border: 1px solid #D1C4A9;
  border-radius: 12px;
  max-width: 1100px;
  margin: 2rem auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.coffeejar-card-header {
  background: #F7F1E3;
  padding: 15px 20px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.coffeejar-card-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-family: 'Montserrat', sans-serif;
  color: #2B3A1E;
  text-align: center;
}
.coffeejar-card-body {
  padding: 15px 20px;
  color: #5C4A3D;
  font-family: 'Open Sans', sans-serif;
  text-align: center;
}
.coffeejar-card-body p {
  margin-bottom: 1rem;
}

/* Tables inside cards */
.coffeejar-card table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  font-size: 0.95rem;
  color: #5C4A3D;
}
.coffeejar-card th,
.coffeejar-card td {
  padding: 10px;
  border-bottom: 1px solid #E0D1B4;
  text-align: center;
}
.coffeejar-card tr:last-child td {
  border-bottom: none;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .coffeejar-deposit-box {
    flex: 1 1 calc(50% - 1.5rem);
  }
}
@media (max-width: 768px) {
  .coffeejar-deposit-box {
    flex: 1 1 100%;
    max-width: 90%;
    margin: 0 auto;
  }
  .coffeejar-card-body {
    padding: 1rem;
  }
}
.commission-table-wrapper {
  padding: 1rem;
}

.commission-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #FFF9EC;
  color: #5C4A3D;
  font-family: 'Open Sans', sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

.commission-table thead {
  background-color: #FFE8BB;
  color: #2B3A1E;
}

.commission-table th,
.commission-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #E0D1B4;
  text-align: center;
}

.commission-table td:nth-child(4) {
  font-family: 'Open Sans', sans-serif;
}

.commission-table tr:last-child td {
  border-bottom: none;
}
/* ── Mobile View for Commission Table ───────────────────────────── */
@media (max-width: 600px) {
  .commission-table {
    border: 0;
    width: 100%;
  }
  .commission-table thead {
    display: none;
  }
.commission-table tr {
  display: block;
  background-color: #FFF9EC;
  border: 1px solid #D1C4A9;
  border-left: 5px solid #D97706;
  border-radius: 10px;
  margin: 24px auto 0; /* <-- top spacing between cards */
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
}

  .commission-table td {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    border-bottom: 1px solid #E0D1B4;
  }
  .commission-table td:last-of-type {
    border-bottom: none;
  }
  .commission-table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #2B3A1E;
    font-family: 'Montserrat', sans-serif;
    width: 40%;
    min-width: 100px;
    padding-right: 0.5rem;
    box-sizing: border-box;
    text-align: left;
  }
  .commission-table td span.cell-value {
    width: 60%;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
  }
  .commission-table td[data-label="Status"]::before {
    display: none;
  }
  .commission-table td[data-label="Status"] {
    justify-content: center;
    border: none;
    margin-top: 10px;
  }
}
/* — Clean up container margin on mobile — */
@media (max-width: 600px) {
  .commission-table-wrapper {
    padding: 0;
    margin: 0 auto;
  }
}

/* — Total Box Style — */
.commission-total-box {
  background-color: #FFF9EC;
  border: 1px solid #D1C4A9;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2.5rem auto;
  max-width: 600px;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.commission-total-box .total-label {
  font-size: 1.1rem;
  color: #2B3A1E;
  font-weight: bold;
  margin-bottom: 0.25rem;
}
.commission-total-box .total-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #5C4A3D;
}
@media (max-width: 600px) {
  .commission-table-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
  }
}
@media (max-width: 600px) {
  /* Make sure nothing is wrapping cards visually */
  .commission-table {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* Reset any leftover styling from the tbody/table container */
  .commission-table tbody {
    display: block;
    padding: 0;
    margin: 0;
    background: transparent !important;
  }

  /* Space the first card away from the top of the screen */
  .commission-table tr:first-child {
    margin-top: 1.25rem !important;
  }
}
.promo-tip-box {
  background-color: #FFF9EC;
  border: 1px solid #D1C4A9;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 800px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
}


.promo-tip-title {
  font-family: 'Montserrat', sans-serif;
  color: #2B3A1E;
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
}

.promo-tip-text {
  font-family: 'Open Sans', sans-serif;
  color: #5C4A3D;
  font-size: 1.1rem;
  margin: 0;
}

.promo-tip-text a {
  color: #3B7A57;
  font-weight: 600;
  text-decoration: none;
}

.promo-tip-text a:hover {
  color: #2E5D43;
  text-decoration: underline;
}

/* === My Affiliate Tools Page Styles === */
html {
  scroll-padding-top: 10px;
  scroll-behavior: smooth;
}

.affiliate-tools-wrapper {
  max-width: 1100px;
  margin: 0rem auto;
  padding: 0rem;
}

.affiliate-tools-card {
  background: #FFF9EC;
  border: 1px solid #D1C4A9;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 720px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.affiliate-tools-heading {
  font-family: 'Montserrat', sans-serif;
  color: #2B3A1E;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

.affiliate-tools-note {
  color: #5C4A3D;
  text-align: center;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.affiliate-tools-copygroup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.affiliate-tools-copygroup button {
  margin: 0 auto 1rem auto;
}

.affiliate-tools-input {
  width: 100%;
  max-width: 600px;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #D1C4A9;
  background: #ffffff;
  border-radius: 6px;
  color: #2B3A1E;
}

.affiliate-tools-copy-btn {
  background-color: #D97706;
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 10px 16px;
  font-family: 'Montserrat', sans-serif;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.affiliate-tools-copy-btn:hover {
  background-color: #B15C00;
}

.affiliate-tools-subcard {
  border-top: 1px solid #E0D1B4;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.affiliate-tools-textarea {
  width: 100%;
  max-width: 600px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #D1C4A9;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.95rem;
  color: #2B3A1E;
  box-sizing: border-box;
  margin: 0 auto;
  display: block;
}

.affiliate-tools-preview iframe {
  width: 100%;
  max-width: 100%;
  height: 320px;
  border: 3px solid #D1C4A9;
  border-radius: 10px;
  padding: 6px;
  background: #fff;
}

.affiliate-tools-preview-link {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.affiliate-tools-preview-link a {
  color: #3B3A26;
  text-decoration: underline;
}

.affiliate-tools-preview-link a:hover {
  text-decoration: none;
}

.affiliate-tools-banner img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

.affiliate-tools-banner-size {
  font-size: 0.9rem;
  color: #5C4A3D;
  text-align: center;
  margin-top: 0.25rem;
}

.affiliate-tools-hero {
  text-align: center;
  background-color: #FFFBEA;
  border: 1px solid #D1C4A9;
  border-radius: 16px;
  padding: 2rem 1rem;
  margin: 2rem auto 0.1rem auto;
  max-width: 720px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.affiliate-tools-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #2B3A1E;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.affiliate-tools-description {
  font-size: 1.1rem;
  color: #4A4A4A;
  line-height: 1.6;
}

.affiliate-tools-jumplist {
  background: #FFF9EC;
  border: 1px solid #D1C4A9;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 720px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.affiliate-tools-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.affiliate-tools-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #2B3A1E;
  padding: 0.5rem 0.75rem;
  background: #FFFBEA;
  border: 1px solid #D1C4A9;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.affiliate-tools-nav a:hover {
  background-color: #FFE08A;
}

.affiliate-tools-nav a.active {
  background-color: #D97706;
  color: #fff;
  border-color: #B15C00;
}


/* Downline Builder */
/* Downline Builder */
/* Downline Builder */
/* Downline Builder */

.dlb-wrapper {
  max-width: 720px;
  margin: 2rem auto;
  padding: 1rem;
}

.dlb-jumpto {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #FDFBF6;
  border: 1px solid #E0D7C2;
  border-radius: 12px;
  margin-bottom: 2rem;
}
.dlb-jumpto a {
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  background: #FFF9EC;
  border: 1px solid #D1C4A9;
  border-radius: 6px;
  color: #2B3A1E;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: background 0.2s ease;
}
.dlb-jumpto a:hover {
  background: #FFE8BB;
}
.dlb-section-card {
  background: #fff;
  border: 1px solid #E0D7C2;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.dlb-section-card h3 {
  font-size: 1.3rem;
  color: #2B3A1E;
  margin-bottom: 1rem;
}
.dlb-card {
  margin-bottom: 1.25rem;
}
.dlb-card label {
  display: block;
  font-weight: bold;
  color: #2B3A1E;
  margin-bottom: 0.25rem;
}
.dlb-card input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #D1C4A9;
  border-radius: 6px;
  font-size: 1rem;
  background: #FFF9EC;
}
.dlb-card .dlb-hint {
  font-size: 0.85rem;
  color: #6E5E4C;
  margin-top: 0.25rem;
}
.dlb-card .dlb-join {
  margin-top: 0.1rem;
  display: inline-block;
  color: #3B7A57;
  font-weight: bold;
}
.dlb-card .dlb-recommended {
  display: inline-block;
  background: #FFCF73;
  color: #2B3A1E;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}
.dlb-progress {
  position: relative;
  background: #EDE5D7;
  border-radius: 10px;
  overflow: hidden;
  margin: 1rem auto 2rem;
  height: 20px;
  max-width: 500px;
}
.dlb-card input:focus {
  outline: none;
  border-color: #3B7A57;
  box-shadow: 0 0 0 2px rgba(59, 122, 87, 0.15);
}


.dlb-progress-fill {
  background: #EDC76F;
  height: 100%;
  border-radius: 10px;
  position: absolute;
  top: 0;
  left: 0;
}

.dlb-progress-label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: bold;
  color: #2B3A1E;
  line-height: 20px;
  z-index: 2;
}
.dlb-submit {
  display: block;
  width: 100%;
  margin-top: 2rem;
  padding: 0.75rem;
  font-size: 1.1rem;
  font-weight: bold;
  background: #3D6E57;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.dlb-joined-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: bold;
  color: #3B7A57;
  background: #DFF3E3;
  border: 1px solid #B2D9C3;
  padding: 0.1rem 0.5rem;
  margin-left: 0.5rem;
  border-radius: 6px;
  vertical-align: middle;
}
input:-webkit-autofill {
  box-shadow: 0 0 0px 1000px #FFF9EC inset !important;
  border: 1px solid #D1C4A9 !important;
  color: #2B3A1E !important;
}
.dlb-join {
  display: inline-block;
  color: #fff !important; /* force white text */
  background-color: #3B7A57;
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  margin: 0.4rem 0 0.5rem;
  transition: background-color 0.2s ease;
}

.dlb-join:hover {
  background-color: #32664C;
  text-decoration: none;
  color: #fff !important; /* again, ensure it doesn't change */
}
.dlb-alert-success {
  background: #DFF3E3;
  color: #2B3A1E;
  border: 1px solid #B2D9C3;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  margin: 1rem auto 1.5rem;
  text-align: center;
  max-width: 500px;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* === My Profile Custom Styling === */
.profile-wrapper {
  max-width: 700px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #FFF9EC;
  border: 1px solid #D1C4A9;
  border-radius: 12px;
  font-family: "Open Sans", sans-serif;
  margin-top: 0 !important;
}

.profile-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #2B3A1E;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.profile-form label {
  display: block;
  margin-bottom: 0.25rem;
  margin-top: 1rem;
  color: #2B3A1E;
  font-weight: 600;
}

.profile-form input[type="text"],
.profile-form input[type="password"],
.profile-form select {
  width: 100%;
  max-width: 450px;
  padding: 10px;
  background-color: #FFF9EC;
  border: 1px solid #D1C4A9;
  border-radius: 6px;
  font-size: 1rem;
  color: #5C4A3D;
}

.profile-form .checkbox-label {
  display: block;
  margin-top: 1rem;
  font-weight: 500;
}

.profile-note {
  font-size: 0.85rem;
  color: #998E84;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.profile-error {
  background: #FFE8BB;
  color: #B15C00;
  padding: 1rem;
  border-radius: 6px;
  font-weight: bold;
  margin-bottom: 2rem;
  text-align: center;
}

.profile-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}


.profile-btn-primary {
  background-color: #D97706;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  margin: 0 0.5rem;
}

.profile-btn-primary:hover {
  background-color: #B15C00;
}

.profile-btn-secondary {
  background-color: #FFE08A;
  color: #2B3A1E;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  margin: 0 0.5rem;
}

.profile-btn-danger {
  background-color: darkred;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 1rem;
}
.profile-alert-success {
  background-color: #E3F9D7;
  border: 1px solid #A9D18E;
  color: #2B3A1E;
  font-weight: bold;
  text-align: center;
  padding: 1rem;
  margin: 1rem auto 2rem;
  max-width: 600px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.profile-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.profile-delete-wrapper {
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 500px) {
  .profile-buttons {
    flex-direction: column;
    align-items: center;
  }
  .profile-buttons .btn-primary,
  .profile-buttons .btn-secondary {
    width: 100%;
    max-width: 300px;
  }
}
/* ============================================
   My Daily Mailer – Upgrade Page Styles
   ============================================ */

.upgrade-intro-card {
  display: flex;
  align-items: center;
  background-color: #FFF9EC;
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  margin: 1.5rem auto;
  max-width: 900px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  color: #5C4A3D;
  margin-top: 3rem;
  margin-bottom: 4rem;


}
.upgrade-intro-card .intro-text {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
}

.intro-profile-img {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.upgrade-section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #2B3A1E;
  font-family: 'Montserrat', sans-serif;
}

.upgrade-benefits-wrapper {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.upgrade-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
justify-content: center;
}

.upgrade-benefit-card {
  background-color: #FFF9EC;
  border: 1px solid #E6DCC4;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.upgrade-benefit-card:hover {
  transform: translateY(-4px);
  background-color: #FFF3DE;
}


.upgrade-benefit-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #2B3A1E;
  margin-bottom: 0.5rem;
}

.upgrade-benefit-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #5C4A3D;
  line-height: 1.6;
}

.upgrade-guarantee-box {
  background-color: #FFF3C2;
  border-left: 6px solid #E8A341;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 2rem auto;
  text-align: left;
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.upgrade-guarantee-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #2B3A1E;
  margin-bottom: 0.5rem;
}

.upgrade-guarantee-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #5C4A3D;
  line-height: 1.6;
  margin: 0;
}


.upgrade-testimonials {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1rem;
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.testimonial-grid blockquote {
  flex: 1 1 calc(33.333% - 2rem);
  background: #ffffff;
  border: 1px solid #E2D9C6;
  border-left: none;
  border-top: 4px solid #D97706;
  padding: 1.5rem 1.75rem; /* slightly increased for spacing */
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  font-style: italic;
  font-size: 0.98rem;
  color: #5C4A3D;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative; /* enables pseudo-element positioning */
  overflow: hidden;   /* ensures the quote mark stays inside */
}

.testimonial-grid blockquote:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.testimonial-grid blockquote::before {
  content: "“";
  position: absolute;
  top: -0.4rem;
  left: 0.5rem;
  font-family: 'Georgia', serif;
  font-size: 5rem;
  color: #E2D9C6;
  opacity: 0.3;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
}

.testimonial-grid footer {
  font-style: normal;
  font-weight: bold;
  margin-top: 0.5rem;
  color: #2B3A1E;
  text-align: right;
}

.upgrade-compare-card {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.upgrade-compare-card table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: #FFF9EC;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  font-family: 'Open Sans', sans-serif;
}

.upgrade-compare-card th,
.upgrade-compare-card td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid #E6DCC4;
  font-size: 0.95rem;
  color: #2B3A1E;
}

.upgrade-compare-card th {
  background-color: #F4EAD5;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #2B3A1E;
  border-bottom: 2px solid #E6DCC4;
}

.upgrade-compare-card td:first-child {
  font-weight: 600;
  color: #5C4A3D;
}

.upgrade-compare-card tr:last-child td {
  border-bottom: none;
}

.upgrade-compare-card .checkmark {
  font-weight: bold;
  color: #D97706;
  font-family: 'Montserrat', sans-serif;
}

.upgrade-compare-card td:nth-child(2) {
  background-color: #FFF3DE;
}

.upgrade-compare-card td:nth-child(3) {
  background-color: #FDF8EE;
}

.upgrade-table-closer {
  max-width: 800px;
  margin: 1.5rem auto 2.5rem auto;
  font-size: 1.05rem;
  font-weight: 600;
  color: #2B3A1E;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
}


.upgrade-cta-box {
  background-color: #FFF3DE;
  padding: 2rem 1rem;
  text-align: center;
  margin: 3rem auto;
  max-width: 900px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  border-top: 5px solid #D97706;
}

.upgrade-cta-headline {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2B3A1E;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.75rem;
}

.upgrade-cta-subtext {
  font-size: 1rem;
  color: #7A6F63;
  line-height: 1.6;
  font-family: 'Open Sans', sans-serif;
  margin: 0 auto 1.5rem auto;
  max-width: 750px;
}

.payment-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.payment-container input[type="image"] {
  height: 70px;
  max-width: 180px;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  background: none;
}


.payment-container input[type="image"]:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.upgrade-cta-trust {
  font-size: 1rem;
  color: #998E84;
  margin-top: 0.75rem;
}
@media (max-width: 480px) {
  .payment-container {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.page-subtitle {
  font-size: 1.15rem;
  margin-top: 0.25rem;
  line-height: 1.5;
}

.page-subtext {
  font-size: 1rem;
  color: #5C4A3D;
  margin-bottom: 0.75rem;
}

@media (max-width: 600px) {
  .upgrade-intro-card {
    flex-direction: column;
    text-align: center;
  }
  .intro-profile-img {
    margin: 0 0 1rem 0;
  }
}

.upgrade-already-box {
  background-color: #FFF9EC;
  padding: 2rem 1.5rem;
  max-width: 900px;
  margin: 2rem auto;
  border-radius: 10px;
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.upgrade-already-title {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  color: #2B3A1E;
  margin-top: 0.25rem;
}

.upgrade-already-text {
  font-size: 1rem;
  color: #5C4A3D;
  margin-top: 0.5rem;
}

.upgrade-already-highlight {
  font-size: 0.95rem;
  font-style: italic;
  color: #6A5B48;
  margin: 0.75rem 0;
  margin-bottom: 1rem;
}

.upgrade-already-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.upgrade-link {
  font-weight: 600;
  color: #2B877B;
  text-decoration: none;
  font-size: 0.95rem;
  font-family: 'Open Sans', sans-serif;
}

.upgrade-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .testimonial-grid {
    flex-direction: column;
    align-items: center;
  }

  .testimonial-grid blockquote {
    width: 90%;
    max-width: 400px;
  }
}
.comm-pay-wrapper {
  background: #ffffff;
  padding: 40px 30px;
  max-width: 600px;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  font-family: "Open Sans", sans-serif;
  text-align: center;
  color: #5C4A3D;
}

.comm-pay-title {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #2B3A1E;
  margin-bottom: 20px;
}

.comm-pay-balance {
  font-size: 1rem;
  margin-bottom: 10px;
}

.comm-pay-highlight {
  font-weight: 600;
  color: #D97706;
}

.comm-pay-item {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #2B3A1E;
}

.comm-pay-price {
  font-weight: 600;
  color: #2B3A1E;
}

.comm-pay-form {
  margin-top: 20px;
}

.comm-pay-btn {
  background-color: #D97706;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.comm-pay-btn:hover {
  background-color: #B15C00;
}
.radio-tight {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  gap: 0.4rem;
}


.radio-tight input[type="radio"] {
  margin-right: 6px;
  padding: 0;
  line-height: 1;
}
.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #5C4A3D;
}

.radio-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #5C4A3D;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  background-color: #FFF;
  cursor: pointer;
  vertical-align: middle;
}

.radio-option input[type="radio"]::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #5C4A3D;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s ease-in-out;
}

.radio-option input[type="radio"]:checked::before {
  transform: translate(-50%, -50%) scale(1);
}

.surfbar-wrapper {
  background-color: #FFF9EC;
  border: 1px solid #D1C4A9;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  padding: 1rem 1.5rem;
  margin: 0 auto 1rem;
  max-width: 1100px;
}
.mt-surfbar-footer {
  max-width: 500px;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.mt-surfbar-footer p {
  font-size: 1rem;
}

textarea#bio {
  width: 100%;
  max-width: 600px;
  padding: 12px;
  border: 1px solid #D1C4A9;
  background-color: #FFF9EC;
  border-radius: 6px;
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  color: #5C4A3D;
  box-sizing: border-box;
}
.profile-form-input,
.profile-form textarea,
.profile-form input[type="text"],
.profile-form input[type="password"],
.profile-form select {
  width: 100%;
  max-width: 450px;
  padding: 10px;
  background-color: #FFF9EC;
  border: 1px solid #D1C4A9;
  border-radius: 6px;
  font-size: 1rem;
  color: #5C4A3D;
  font-family: "Open Sans", sans-serif;
}


.profilepage-header {
  background: linear-gradient(to right, #fde7bb, #f9d998);
  padding: 10px 0;
}
.profilepage-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.profilepage-logo {
  max-width: 260px;
  height: auto;
}
.profilepage-intro {
  flex: 1 1 300px;
  max-width: 500px;
  text-align: center;
}
.profilepage-intro p {
  font-size: 1rem;
  font-weight: 600;
  color: #2B3A1E;
  margin: 0 0 10px;
}
.profilepage-intro span {
  color: #c25c0e;
}
.profilepage-tagline {
  font-size: 0.95rem;
  color: #555;
}
.btn-profilepage-cta {
  padding: 12px 24px;
  background-color: #c25c0e;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
}
.btn-profilepage-cta:hover {
  background-color: #b15c00;
}
.btn-profilepage-secondary {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #c25c0e;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}
.btn-profilepage-secondary:hover {
  background-color: #b15c00;
}
.profilepage-container {
  max-width: 800px;
  margin: 30px auto;
  padding: 0 20px;
}
.profilepage-card {
  background: #ffffff;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Final member box layout */
.profilepage-memberbox {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}
.profilepage-left-col {
  flex: 0 0 180px;
  text-align: center;
}
.profilepage-right-col {
  flex: 1;
}
.profilepage-right-col h2.profilepage-name {
  margin-top: 0;
}

.profilepage-spotlight {
  font-size: 1rem;
  font-weight: 600;
  color: #2B3A1E;
  margin-bottom: 0.5rem;
}
.profilepage-avatar {
  border-radius: 50%;
  width: 125px;
  height: 125px;
  margin-bottom: 0.25rem;
}
.profilepage-level {
  display: inline-block;
  background: #f0e6d6;
  color: #5C4A3D;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.profilepage-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2B3A1E;
  margin-bottom: 0.25rem;
}
.profilepage-meta,
.profilepage-views {
  font-size: 0.95rem;
  color: #5C4A3D;
  margin-bottom: 0.25rem;
}
.profilepage-bio-full {
  flex-basis: 100%;
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid #E8E0D0;
  margin-bottom: 0.5rem;
}
.profilepage-bio-header {
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  color: #2B3A1E;
}
.profilepage-bio-box {
  font-style: italic;
  color: #5C4A3D;
  line-height: 1.6;
}
.profilepage-cta-full {
  flex-basis: 100%;
  text-align: center;
  margin-top: 0.25rem;
}
.profilepage-stats {
  display: flex;
  justify-content: space-between;
  text-align: center;
  flex-wrap: wrap;
}
.profilepage-stats > div {
  flex: 1 1 140px;
  margin: 10px;
  padding: 15px;
  background: #f9f7f2;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.profilepage-banner-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 10px;
}
.profilepage-square-banners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* default: center all rows */
  gap: 15px;
  margin-top: 10px;
}

.profilepage-square {
  width: 125px;
  text-align: center;
  margin: 5px auto;
  padding: 0;
}

.profilepage-square img {
  width: 100%;
  height: auto;
  border: 2px solid #c25c0e; /* Accent color */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
  margin: 0 auto;
}

.profilepage-square img:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.profilepage-square .profilepage-banner-stats {
  font-size: 0.8rem;
  color: #5C4A3D;
  margin-top: 6px;
}



/* Responsive Fixes */
@media (max-width: 600px) {
  .profilepage-memberbox {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    text-align: center;
  }

  .profilepage-left-col,
  .profilepage-right-col {
    flex: 1 1 100%;
    text-align: center;
  }

  .profilepage-badges-row {
    justify-content: center;
  }

  .profilepage-cta-full {
    margin-top: 1rem;
  }

  .btn-profilepage-secondary {
    margin: 1rem auto 0;
  }
}

.profilepage-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* was 15px */
  margin: 1rem 0 0.5rem;
  justify-content: flex-start;
  align-items: flex-start; /* keep tops aligned */
}

.profilepage-badge-tile {
  width: 55px; /* was 60px */
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 0.75rem;
  color: #5C4A3D;
  font-weight: 600;
}



.profilepage-badge-tile img {
  width: 60px;
  height: 60px;
  display: block;
  margin: 0 auto 6px;
}

.profilepage-badge-label {
  font-size: 0.7rem;
  line-height: 1.2;
}
.profilepage-card .profilepage-bio-header {
  margin-top: 0;
}
.profilepage-card.profilepage-bio-card {
  margin-top: 5px;
}
@media (max-width: 600px) {
  .profilepage-avatar {
    display: block;
    margin: 0 auto 0.25rem;
  }

  .profilepage-level {
    display: block;
    margin: 0 auto 0.5rem;
  }
}
.profilepage-tool-banner {
  text-align: center;
  margin: 2px auto;
}

.profilepage-tool-banner img {
  width: 100%;
  height: auto;
  max-width: 468px;
  border: 2px solid #c25c0e; /* Accent color from style guide */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
  margin: 0 auto;
}

.profilepage-tool-banner img:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.profilepage-tool-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2B3A1E;
  margin-top: 2px;
}

.profilepage-tool-name a {
  color: #2B3A1E;
  text-decoration: none;
}

.profilepage-tool-name a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .profilepage-tool-banner img {
    width: 100% !important;
    height: auto !important;
  }
}
.profilepage-banner-stats {
  font-size: 0.8rem;
  color: #5C4A3D;
  margin-top: 6px;
}

@media (min-width: 480px) {
  .profilepage-square-banners.profilepage-square-count-1 {
    justify-content: center;
  }
  .profilepage-square-banners.profilepage-square-count-2 {
    justify-content: center;
  }
  .profilepage-square-banners.profilepage-square-count-3 {
    justify-content: center;
  }
  .profilepage-square-banners.profilepage-square-count-4 {
    justify-content: space-around;
  }
  .profilepage-square-banners.profilepage-square-count-5 {
    justify-content: space-between;
  }
}
.profilepage-square-banners.profilepage-square-count-1,
.profilepage-square-banners.profilepage-square-count-2,
.profilepage-square-banners.profilepage-square-count-3,
.profilepage-square-banners.profilepage-square-count-4 {
  justify-content: center;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 480px) {
  .profilepage-square-banners.profilepage-square-count-1,
  .profilepage-square-banners.profilepage-square-count-2 {
    flex-direction: column;
    align-items: center;
  }
}

.profilepage-card.cta-section {
  background: #FFF9EC;
  border: 1px solid #D1C4A9;
}
.square-banner-table {
  margin: 20px auto;
}

.square-banner-table td {
  text-align: center;
  padding: 5px 0;
}

.square-banner-img {
  width: 150px !important;
  height: 150px !important;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
  object-fit: cover;
}

.square-banner-img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
