/* =========================================================
   Kynd Hub Campaigns — Frontend Styles v1.0.0
   Brand blue: #439bc0
   ========================================================= */

/* ---------------------------------------------------------
   Stripe Elements — card input styling
   --------------------------------------------------------- */

.khc-card-element,
.khc-card-element-embed {
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.15s;
}
.khc-card-element.StripeElement--focus,
.khc-card-element-embed.StripeElement--focus  { border-color: #439bc0; }
.khc-card-element.StripeElement--invalid,
.khc-card-element-embed.StripeElement--invalid { border-color: #a32d2d; }
.khc-card-element.StripeElement--webkit-autofill,
.khc-card-element-embed.StripeElement--webkit-autofill { background: #fff !important; }

.khc-card-errors {
    color: #a32d2d;
    font-size: 13px;
    min-height: 18px;
    margin-top: 6px;
}

.khc-donation-widget__amount-display {
    font-size: 14px;
    color: #444;
    padding: 10px 0 6px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#khc-change-amount {
    font-size: 12px;
    color: #666 !important;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

/* ---------------------------------------------------------
   Profile banner — unified slot for donate CTA or Stripe warning
   --------------------------------------------------------- */

.khc-profile-banner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 12px 24px !important;
    margin: 12px 0 0 !important;
    border-radius: 12px !important;
}
.khc-profile-banner__text { flex: 1; }
.khc-profile-banner__text strong { display: block; font-size: 14px; font-weight: 500; }
.khc-profile-banner__text span   { font-size: 13px; }

.khc-profile-banner--donate { background: #439bc0 !important; }
.khc-profile-banner--donate .khc-profile-banner__text strong,
.khc-profile-banner--donate .khc-profile-banner__text span { color: rgba(255,255,255,0.9); }
.khc-profile-banner--donate .khc-profile-banner__text strong { color: #fff; }

.khc-profile-banner--warning { background: #FFF8E6 !important; border: 1px solid #F5D87A !important; }
.khc-profile-banner--warning .khc-profile-banner__text strong { color: #7A4F00; }
.khc-profile-banner--warning .khc-profile-banner__text span   { color: #9A6600; }

a.khc-donate-banner__btn,
a.khc-donate-banner__btn:link,
a.khc-donate-banner__btn:visited {
    display: inline-flex !important;
    align-items: center !important;
    padding: 8px 22px !important;
    background: #fff !important;
    color: #439bc0 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
    white-space: nowrap !important;
}
a.khc-donate-banner__btn:hover { background: #eef7fc !important; color: #3788aa !important; }

a.khc-btn-stripe-connect,
a.khc-btn-stripe-connect:link,
a.khc-btn-stripe-connect:visited {
    background: #E8A020 !important;
    color: #fff !important;
    border-color: #E8A020 !important;
    white-space: nowrap !important;
}
a.khc-btn-stripe-connect:hover { background: #C8881A !important; border-color: #C8881A !important; }

/* ---------------------------------------------------------
   Base / utility
   --------------------------------------------------------- */

.khc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, opacity 0.15s;
    line-height: 1.4;
}
.khc-btn-primary   { background: #439bc0; color: #fff !important; border-color: #439bc0; }
.khc-btn-primary:hover { background: #3788aa; border-color: #3788aa; }
.khc-btn-secondary { background: #fff; color: #439bc0 !important; border-color: #439bc0; }
.khc-btn-secondary:hover { background: #eef7fc; }
.khc-btn-ghost     { background: transparent; color: #666 !important; border-color: #ddd; }
.khc-btn-ghost:hover { background: #f5f5f5; }
.khc-btn-danger    { background: transparent; color: #a32d2d !important; border-color: #f09595; }
.khc-btn-danger:hover { background: #fcebeb; }
.khc-btn-sm        { padding: 5px 12px; font-size: 12px; }
.khc-btn-full      { width: 100%; }
.khc-btn:disabled  { opacity: 0.5; cursor: not-allowed; }

.khc-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #222;
    background: #fff;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.khc-input:focus { outline: none; border-color: #439bc0; }
.khc-textarea     { resize: vertical; min-height: 120px; }

.khc-label    { display: block; font-size: 14px; font-weight: 600; color: #222; margin-bottom: 6px; }
.khc-required { color: #a32d2d; }
.khc-form-hint{ font-size: 12px; color: #888; margin-bottom: 8px; margin-top: -2px; }
.khc-muted    { color: #888; }
.khc-link     { color: #439bc0; text-decoration: none; }
.khc-link:hover { text-decoration: underline; }

.khc-notice {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}
.khc-notice-error { background: #fcebeb; color: #791f1f; border-left: 3px solid #e24b4a; }
.khc-notice-info  { background: #E6F1FB; color: #0C447C; border-left: 3px solid #439bc0; }
.khc-notice-success { background: #EAF3DE; color: #27500A; border-left: 3px solid #639922; }

.khc-badge { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 500; }
.khc-badge--green { background: #EAF3DE; color: #3B6D11; }
.khc-badge--amber { background: #FAEEDA; color: #854F0B; }
.khc-badge--blue  { background: #E6F1FB; color: #185FA5; }
.khc-badge--gray  { background: #F1EFE8; color: #5F5E5A; }

.khc-progress-track { height: 7px; background: #f0f0f0; border-radius: 4px; overflow: hidden; margin: 6px 0; }
.khc-progress-track--lg { height: 10px; margin: 8px 0; }
.khc-progress-fill  { height: 100%; background: #439bc0; border-radius: 4px; transition: width 0.4s ease; }

.khc-cause-badge,
.khc-cause-tag {
    display: inline-block;
    padding: 2px 10px;
    background: #E6F1FB;
    color: #185FA5;
    border-radius: 20px;
    font-size: 11px;
    text-decoration: none;
    margin-right: 4px;
    margin-bottom: 3px;
}
.khc-cause-badge:hover { background: #B5D4F4; }

.khc-empty-state { text-align: center; padding: 40px 20px; color: #888; }
.khc-empty-state p { margin-bottom: 14px; }

/* ---------------------------------------------------------
   Stripe banner (create form + BB profile)
   --------------------------------------------------------- */

.khc-stripe-banner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #FFF8E6;
    border: 1px solid #F5D87A;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
}
.khc-stripe-banner strong { display: block; font-size: 14px; font-weight: 500; color: #7A4F00; }
.khc-stripe-banner span   { font-size: 13px; color: #9A6600; line-height: 1.5; }

/* ---------------------------------------------------------
   Campaign card
   --------------------------------------------------------- */

.khc-campaign-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}
.khc-campaign-grid--profile { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
    .khc-campaign-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .khc-campaign-grid, .khc-campaign-grid--profile { grid-template-columns: 1fr; }
}

.khc-campaign-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s;
}
.khc-campaign-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

.khc-campaign-card__image-link { display: block; position: relative; }
.khc-campaign-card__image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.khc-campaign-card__image--placeholder {
    width: 100%;
    height: 140px;
    background: #E6F1FB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 500;
    color: #185FA5;
}
.khc-campaign-card__goal-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #439bc0;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 5px;
}
.khc-campaign-card__goal-badge--ended { background: #888; }

.khc-campaign-card__body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; }

.khc-campaign-card__nonprofit {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: #666;
    font-size: 12px;
}
.khc-campaign-card__np-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}
.khc-campaign-card__np-initials {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #E6F1FB;
    color: #185FA5;
    font-size: 9px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.khc-campaign-card__title {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    line-height: 1.4;
}
.khc-campaign-card__title:hover { color: #439bc0; }

.khc-campaign-card__progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}
.khc-campaign-card__raised { font-weight: 500; color: #222; }
.khc-campaign-card__goal   { color: #888; }

.khc-campaign-card__time-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #888;
}

.khc-campaign-card__causes { margin-top: 2px; }
.khc-campaign-card__action { margin-top: auto; padding-top: 8px; }

/* ---------------------------------------------------------
   Single campaign page — full width override for BuddyBoss
   --------------------------------------------------------- */

.khc-campaign-page-area {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.khc-single-campaign { max-width: 1100px; margin: 0 auto; padding: 30px 20px; }

.khc-single-campaign__container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}
@media (max-width: 800px) {
    .khc-single-campaign__container { grid-template-columns: 1fr; }
}

.khc-single-campaign__cover {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    max-height: 380px;
    display: block;
    margin-bottom: 24px;
}
.khc-single-campaign__cover--placeholder {
    width: 100%;
    height: 240px;
    background: #E6F1FB;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 500;
    color: #185FA5;
    margin-bottom: 24px;
}

.khc-single-campaign__nonprofit {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 12px;
}
.khc-single-campaign__np-avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}
.khc-np-initials-circle {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #E6F1FB;
    color: #185FA5;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}
.khc-single-campaign__np-name   { font-size: 15px; font-weight: 500; color: #222; }
.khc-single-campaign__np-causes { font-size: 12px; color: #888; }

/* Content cards — match events page block style */
.khc-content-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 16px;
}
.khc-content-card__heading {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.khc-single-campaign__title       { font-size: 22px; font-weight: 600; color: #222; margin-bottom: 14px; line-height: 1.3; }
.khc-single-campaign__description { font-size: 15px; line-height: 1.7; color: #444; margin-bottom: 28px; }

.khc-single-campaign__donors { margin-bottom: 24px; }
.khc-single-campaign__donors h3 { font-size: 16px; font-weight: 500; margin-bottom: 12px; }

.khc-donor-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.khc-donor-row:last-child { border-bottom: none; }
.khc-donor-row__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #E6F1FB;
    color: #185FA5;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.khc-donor-row__info   { display: flex; flex-direction: column; }
.khc-donor-row__name   { font-size: 13px; color: #333; }
.khc-donor-row__time   { font-size: 11px; color: #aaa; }

.khc-single-campaign__owner-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 24px;
}
.khc-single-campaign__status-label { font-size: 13px; color: #888; }

/* Donation widget */
.khc-donation-widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 22px;
    position: sticky;
    top: 20px;
}
.khc-donation-widget__raised    { font-size: 28px; font-weight: 600; color: #222; }
.khc-donation-widget__goal-label{ font-size: 13px; color: #888; margin-bottom: 4px; }
.khc-donation-widget__meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}
.khc-donation-widget__donors-count { font-size: 13px; color: #888; margin-bottom: 16px; }
.khc-donation-widget__label { font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.khc-donation-widget__note  { font-size: 11px; color: #aaa; text-align: center; margin-top: 10px; }
.khc-donation-widget__no-stripe { background: #f9f9f9; border-radius: 8px; padding: 14px; text-align: center; }
.khc-donation-widget__no-stripe p { font-size: 13px; color: #666; margin-bottom: 12px; }
.khc-donation-widget__ended { text-align: center; }
.khc-donation-widget__ended p { font-size: 13px; color: #666; margin: 12px 0; }
.khc-donation-widget__goal-met { text-align: center; }
.khc-donation-widget__goal-met-badge {
    display: inline-block;
    background: #439bc0;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
}

.khc-amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}
.khc-amount-btn {
    padding: 9px 0;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 13px;
    cursor: pointer;
    background: #fff;
    color: #333;
    transition: border-color 0.15s, background 0.15s;
}
.khc-amount-btn--selected {
    border-color: #439bc0;
    background: #E6F1FB;
    color: #185FA5;
    font-weight: 500;
}
.khc-amount-btn:hover { border-color: #439bc0; }

/* ---------------------------------------------------------
   Create campaign form
   --------------------------------------------------------- */

.khc-create-form-wrap { max-width: 700px; margin: 0 auto; }
.khc-create-form-wrap__heading { margin-bottom: 20px; }
.khc-create-form-wrap__heading h2 { font-size: 24px; font-weight: 600; color: #222; margin-bottom: 4px; }
.khc-create-form-wrap__heading p  { font-size: 14px; color: #888; margin: 0; }

.khc-create-form-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* White card wrapping the main form — matches Events Dashboard */
.khc-create-form__main {
    background: #fff;
    border-radius: 12px;
    padding: 28px 28px 20px;
    border: 1px solid #eee;
}

.khc-form-group { margin-bottom: 20px; }
.khc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.khc-input-prefix-wrap { position: relative; }
.khc-input-prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 14px;
    pointer-events: none;
}
.khc-input--prefixed { padding-left: 26px; }

/* Cause area dropdown — used in both directory and create form */
.khc-cause-dropdown { position: relative; display: inline-block; }

.khc-cause-dropdown__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s;
    min-width: 180px;
    justify-content: space-between;
}
.khc-cause-dropdown__toggle:hover,
.khc-cause-dropdown--open .khc-cause-dropdown__toggle {
    border-color: #439bc0;
    color: #439bc0;
}
.khc-cause-dropdown__arrow { font-size: 11px; color: #888; }

.khc-cause-dropdown__panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 220px;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 6px 0;
}
.khc-cause-dropdown--open .khc-cause-dropdown__panel { display: block; }

/* Single-select option (directory) */
.khc-cause-dropdown__option {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: background 0.1s;
}
.khc-cause-dropdown__option:hover { background: #f5f5f5; }
.khc-cause-dropdown__option--active {
    background: #E6F1FB;
    color: #185FA5;
    font-weight: 500;
}

/* Multi-select checkboxes (create form) */
.khc-cause-dropdown__panel--multi { padding: 8px 0; }
.khc-cause-dropdown__check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background 0.1s;
}
.khc-cause-dropdown__check:hover { background: #f5f5f5; }
.khc-cause-dropdown__divider {
    height: 1px;
    background: #eee;
    margin: 4px 0;
}
.khc-cause-dropdown__footer {
    padding: 8px 10px;
    border-top: 1px solid #eee;
    margin-top: 4px;
}

/* Selected cause tags (create form) */
.khc-selected-causes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    min-height: 0;
}
.khc-selected-cause-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: #E6F1FB;
    color: #185FA5;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.khc-remove-cause {
    background: none;
    border: none;
    color: #439bc0;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    line-height: 1;
}
.khc-remove-cause:hover { color: #a32d2d; }

.khc-ongoing-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    cursor: pointer;
    font-weight: 400;
}
.khc-ongoing-toggle input { margin: 0; cursor: pointer; }

.khc-image-upload {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 28px 20px;
    text-align: center;
    background: #fafafa;
    transition: border-color 0.15s;
}
.khc-image-upload:hover { border-color: #439bc0; }
.khc-image-upload__options {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    padding: 8px 0;
}
.khc-image-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #444;
    transition: border-color 0.15s, background 0.15s;
    min-width: 160px;
}
.khc-image-option-btn:hover { border-color: #439bc0; background: #f5fafd; color: #439bc0; }
.khc-image-option-btn small { font-size: 11px; color: #aaa; }
.khc-image-option-icon { font-size: 22px; color: #439bc0; line-height: 1; }
.khc-default-thumb { width: 100%; max-width: 120px; border-radius: 4px; object-fit: cover; height: 60px; }
.khc-image-option-divider { font-size: 12px; color: #aaa; font-style: italic; }
.khc-image-upload__preview { max-width: 100%; border-radius: 6px; max-height: 200px; object-fit: cover; }

.khc-suggested-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.khc-create-form__sidebar-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 0;
}
.khc-create-form__bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.khc-create-form__sidebar-card--muted { background: #f9f9f9; }
.khc-create-form__sidebar-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #222; }
.khc-create-form__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 4px;
}

.khc-suggested-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
}
.khc-suggested-toggle input { margin: 0; cursor: pointer; width: 15px; height: 15px; }
.khc-suggested-toggle__label { font-size: 14px; font-weight: 500; color: #222; }

#khc-form-messages:not(:empty) { margin-bottom: 14px; }

/* ---------------------------------------------------------
   My campaigns dashboard
   --------------------------------------------------------- */

.khc-my-campaigns-wrap { max-width: 900px; margin: 0 auto; }

.khc-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.khc-stat-card { background: #f5f5f5; border-radius: 8px; padding: 14px 16px; }
.khc-stat-card__label { font-size: 12px; color: #888; margin-bottom: 4px; }
.khc-stat-card__value { font-size: 22px; font-weight: 500; color: #222; }

.khc-my-campaigns__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.khc-my-campaigns__heading { font-size: 16px; font-weight: 500; }

.khc-my-campaigns-table {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}
.khc-my-campaigns-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}
.khc-my-campaigns-row:last-child { border-bottom: none; }

.khc-my-campaigns-row__info { flex: 1; min-width: 160px; }
.khc-my-campaigns-row__title a { font-size: 14px; font-weight: 500; color: #222; text-decoration: none; }
.khc-my-campaigns-row__title a:hover { color: #439bc0; }
.khc-my-campaigns-row__meta { font-size: 12px; color: #888; margin-top: 2px; }

.khc-my-campaigns-row__progress { min-width: 140px; }
.khc-my-campaigns-row__amounts { font-size: 13px; font-weight: 500; margin-bottom: 3px; }

.khc-my-campaigns-row__actions { display: flex; gap: 6px; }

/* ---------------------------------------------------------
   Directory
   --------------------------------------------------------- */

.khc-directory-wrap { max-width: 1100px; margin: 0 auto; }

/* Directory filter box — matches Volunteers page style */
.khc-directory__filters-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 20px 14px;
    margin-bottom: 20px;
}
.khc-directory__filters-row {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.khc-directory__filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 160px;
}
.khc-directory__filter-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.khc-directory__search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.khc-directory__search-icon {
    position: absolute;
    left: 10px;
    color: #6b7280;
    font-size: 13px;
    pointer-events: none;
}
.khc-directory__search-input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
    height: 38px;
    box-sizing: border-box;
}
.khc-directory__search-input::placeholder { color: #6b7280; }
.khc-directory__search-input:focus { border-color: #439bc0; }
.khc-directory__filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    outline: none;
    height: 38px;
    box-sizing: border-box;
}
.khc-directory__filter-select:focus,
.khc-directory__filter-select:hover { border-color: #439bc0; }
.khc-directory__filters-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.khc-directory__nonprofit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}
.khc-directory__nonprofit-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text-primary, #222);
}

.khc-directory__count { font-size: 13px; color: #888; margin-bottom: 6px; }

.khc-directory__pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}
.khc-page-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 13px;
    text-decoration: none;
    color: #444;
    background: #fff;
}
.khc-page-btn--active { background: #439bc0; color: #fff; border-color: #439bc0; }
.khc-page-btn:hover:not(.khc-page-btn--active) { border-color: #439bc0; color: #439bc0; }

/* ---------------------------------------------------------
   Profile tab
   --------------------------------------------------------- */

.khc-profile-tab-wrap { padding: 16px 0; }
.khc-profile-tab__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.khc-profile-tab__count       { font-size: 14px; color: #666; }
.khc-profile-tab__header-right{ display: flex; align-items: center; gap: 10px; }

.khc-profile-tab__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

/* ---------------------------------------------------------
   My Donations page
   --------------------------------------------------------- */

.khc-my-donations { max-width: 780px; }

.khc-donation-history-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.khc-donation-history-card__campaign { font-size: 15px; font-weight: 500; color: #222; margin-bottom: 3px; }
.khc-donation-history-card__nonprofit { font-size: 13px; color: #666; }
.khc-donation-history-card__amount { font-size: 17px; font-weight: 500; color: #439bc0; white-space: nowrap; }
.khc-donation-history-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #666;
}
.khc-donation-history-card__link { color: #439bc0; text-decoration: none; margin-left: auto; }
.khc-donation-history-card__link:hover { text-decoration: underline; }

/* ---------------------------------------------------------
   My Campaigns — donor table
   --------------------------------------------------------- */

.khc-my-campaigns-row__donors {
    grid-column: 1 / -1;
    padding: 14px 0 4px;
    border-top: 1px solid #f5f5f5;
    margin-top: 10px;
}
.khc-my-campaigns-row__donors-heading {
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 10px;
}
.khc-donors-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.khc-donors-table th {
    text-align: left;
    color: #888;
    font-weight: 400;
    padding: 4px 8px 6px 0;
    border-bottom: 1px solid #f0f0f0;
}
.khc-donors-table td {
    padding: 6px 8px 6px 0;
    color: #444;
    border-bottom: 1px solid #f8f8f8;
}
.khc-donors-table tr:last-child td { border-bottom: none; }
.khc-donors-table__more {
    font-size: 12px;
    color: #888;
    padding-top: 8px;
}

.khc-donation-history-card__receipt {
    color: #439bc0;
    text-decoration: none;
    font-size: 13px;
}
.khc-donation-history-card__receipt:hover { text-decoration: underline; }
