/* MarketingClerks Core Clean Fix UI */
html,body{min-height:100%!important}
body{background:radial-gradient(circle at 8% 10%,rgba(255,122,26,.10),transparent 270px),radial-gradient(circle at 92% 8%,rgba(236,26,167,.10),transparent 300px),radial-gradient(circle at 50% 100%,rgba(123,53,255,.09),transparent 360px),linear-gradient(180deg,#fffaff 0%,#f8fbff 42%,#fff 100%)!important;background-attachment:fixed!important}
body .site-main,body main,body .main,body .page-wrap,body .container.page-wrap,body .member-wrapper,body .admin-wrapper,body .content,body .content-wrapper{background:transparent!important}
.ccf-page{max-width:1240px;margin:0 auto;padding:28px 20px 44px;--navy:#17133f;--muted:#74708c;--line:#edf0f7;--orange:#ff7a1a;--pink:#ec1aa7;--purple:#7b35ff;--blue:#467df4;--green:#32b851;background:transparent!important;position:relative;isolation:isolate}
.ccf-page:before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 15% 18%,rgba(255,186,105,.18),transparent 240px),radial-gradient(circle at 85% 20%,rgba(236,26,167,.12),transparent 260px),radial-gradient(circle at 50% 92%,rgba(70,125,244,.10),transparent 340px),linear-gradient(180deg,#fffaff 0%,#f8fbff 48%,#fff 100%)}
.ccf-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:32px;border-radius:26px;border:1px solid var(--line);background:radial-gradient(circle at 10% 15%,rgba(236,26,167,.16),transparent 220px),radial-gradient(circle at 80% 20%,rgba(255,122,26,.18),transparent 260px),linear-gradient(90deg,#fff,#fff9fd);box-shadow:0 18px 42px rgba(17,19,60,.06);margin-bottom:20px}
.ccf-badge{display:inline-flex;padding:8px 13px;border-radius:999px;color:var(--purple);background:#f4efff;font-weight:900;font-size:.84rem;margin-bottom:12px}.ccf-hero h1{margin:0 0 10px;max-width:840px;font-size:2.42rem;letter-spacing:-.045em;line-height:1.12;color:var(--navy)}.ccf-hero p{margin:0;max-width:800px;color:var(--muted);line-height:1.75;font-size:1.02rem}.ccf-hero-points{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.ccf-hero-points span{display:inline-flex;gap:6px;align-items:center;padding:9px 12px;border-radius:999px;background:#fff;border:1px solid #f0edf7;color:#5f5a78;font-weight:800;box-shadow:0 10px 24px rgba(17,19,60,.04)}.ccf-hero-points b{color:var(--orange)}
.ccf-hero-actions,.ccf-action-row,.ccf-inline{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.ccf-btn-primary,.ccf-btn-light,.ccf-btn-ghost,.ccf-btn-mini{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border-radius:13px;text-decoration:none;border:0;font-weight:900;cursor:pointer}.ccf-btn-primary{color:#fff!important;background:linear-gradient(90deg,#ff7a1a,#ff4d65,#e014a8);box-shadow:0 15px 30px rgba(236,26,167,.17)}.ccf-btn-primary.small,.ccf-btn-light.small{min-height:40px;padding:0 14px;font-size:.9rem}.ccf-btn-light{color:var(--navy)!important;background:#fff;border:1px solid #e7eaf2;box-shadow:0 12px 26px rgba(17,19,60,.06)}.ccf-btn-ghost{background:#f6f3ff;color:#7b35ff}.ccf-btn-mini{min-height:34px;padding:0 11px;border-radius:10px;background:#f4efff;color:#7b35ff;font-size:.82rem}.ccf-btn-mini.green{background:#dbffe4;color:#14933c}.ccf-btn-mini.danger{background:#ffe6ef;color:#c62850}.ccf-btn-mini.dark{background:#ececf3;color:#17133f}.ccf-btn-mini.purple{background:#f4efff;color:#7b35ff}.ccf-btn-primary.full,.ccf-btn-light.full{width:100%}.ccf-btn-light:disabled,.ccf-btn-primary:disabled,.ccf-btn-mini:disabled{opacity:.55;cursor:not-allowed}
.ccf-stat-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin:20px 0}.ccf-stat-grid article{display:flex;align-items:center;gap:14px;min-height:112px;padding:20px;border:1px solid var(--line);border-radius:19px;background:#fff;box-shadow:0 16px 38px rgba(17,19,60,.055)}.ccf-stat-grid i{display:grid;place-items:center;flex:0 0 auto;width:56px;height:56px;border-radius:16px;color:#fff;font-style:normal;font-size:1.05rem;font-weight:900}.ccf-stat-grid i.orange,.ccf-quick-list i.orange{background:linear-gradient(135deg,#ffbd67,#ff7a1a)}.ccf-stat-grid i.green,.ccf-quick-list i.green{background:linear-gradient(135deg,#67d87b,#32b851)}.ccf-stat-grid i.purple,.ccf-quick-list i.purple{background:linear-gradient(135deg,#b875ff,#7b35ff)}.ccf-stat-grid i.blue,.ccf-quick-list i.blue{background:linear-gradient(135deg,#7fabff,#467df4)}.ccf-stat-grid i.pink,.ccf-quick-list i.pink{background:linear-gradient(135deg,#ff75b7,#ec1aa7)}.ccf-stat-grid span{display:block;color:#625f7d;font-weight:850;font-size:.9rem}.ccf-stat-grid strong{display:block;margin:4px 0 2px;color:var(--navy);font-size:1.55rem;letter-spacing:-.035em}.ccf-stat-grid small{color:#8a879d}
.ccf-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(330px,.75fr);gap:20px}.ccf-main,.ccf-side{display:flex;flex-direction:column;gap:20px}.ccf-card{border:1px solid var(--line);border-radius:20px;background:#fff!important;box-shadow:0 16px 38px rgba(17,19,60,.055);padding:24px;margin-bottom:20px}.ccf-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.ccf-card h2,.ccf-card-head h2{margin:0 0 7px;color:var(--navy);font-size:1.35rem;letter-spacing:-.025em}.ccf-card-head p,.ccf-muted{margin:0;color:var(--muted);line-height:1.65}
.ccf-surf-preview{display:grid;grid-template-columns:70px 1fr;gap:16px;align-items:center;padding:18px;border-radius:18px;background:#fbf8ff;border:1px solid #efeaf8;margin-bottom:18px}.ccf-preview-icon{display:grid;place-items:center;width:70px;height:70px;border-radius:20px;background:linear-gradient(135deg,#ffbd67,#ec1aa7);font-size:2rem}.ccf-surf-preview h3{margin:0 0 6px;color:var(--navy)}.ccf-surf-preview p{margin:0;color:var(--muted);word-break:break-all}.ccf-surf-preview small{display:block;margin-top:6px;color:#8a879d}
.ccf-timer-box{display:grid;grid-template-columns:130px 1fr;gap:18px;align-items:center;padding:20px;border-radius:20px;background:linear-gradient(135deg,#fff8ec,#f8f2ff);border:1px solid #f0e7fb;margin-bottom:18px}.ccf-timer-circle{display:grid;place-items:center;width:120px;height:120px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 10px #f4efff,0 14px 30px rgba(17,19,60,.08)}.ccf-timer-circle strong{font-size:2rem;color:var(--navy);letter-spacing:-.04em}.ccf-timer-circle span{font-size:.8rem;color:var(--muted);font-weight:900}.ccf-timer-info h3{margin:0 0 8px;color:var(--navy)}.ccf-timer-info p{margin:0;color:var(--muted);line-height:1.7}
.ccf-pill{display:inline-flex;padding:8px 12px;border-radius:999px;background:#f4efff;color:#7b35ff;font-weight:900}.ccf-empty{text-align:center;padding:44px 20px;border:1px dashed #e4dafb;border-radius:20px;background:#fcfaff}.ccf-empty div{font-size:3rem}.ccf-empty h3{margin:10px 0 8px;color:var(--navy)}.ccf-empty p{color:var(--muted);line-height:1.7}.ccf-empty-mini{padding:18px;border-radius:16px;background:#fcfaff;border:1px dashed #e4dafb;color:var(--muted);text-align:center}
.ccf-table-wrap{overflow:auto}.ccf-table{width:100%;border-collapse:separate;border-spacing:0}.ccf-table th{text-align:left;padding:13px 14px;color:#332e63;background:#faf7ff;font-size:.9rem}.ccf-table td{padding:14px;border-bottom:1px solid #f0f2f7;color:#4b4863;vertical-align:top}.ccf-table tr:last-child td{border-bottom:0}.ccf-table strong{display:block;color:var(--navy)}.ccf-table small{display:block;margin-top:4px;color:var(--muted);word-break:break-word}.ccf-link{color:#7b35ff;text-decoration:none;font-weight:900;word-break:break-all}
.ccf-status{display:inline-flex;padding:6px 10px;border-radius:999px;background:#f4efff;color:#7b35ff;font-size:.82rem;font-weight:900}.ccf-status.active,.ccf-status.approved,.ccf-status.paid,.ccf-status.completed,.ccf-status.published{color:#14933c;background:#dbffe4}.ccf-status.pending,.ccf-status.shown,.ccf-status.silver{color:#b87900;background:#fff3d4}.ccf-status.rejected,.ccf-status.cancelled,.ccf-status.inactive,.ccf-status.blocked,.ccf-status.invalid{color:#c62850;background:#ffe6ef}.ccf-status.skipped{color:#6d6688;background:#eef0f5}
.ccf-quick-list{display:flex;flex-direction:column;gap:12px}.ccf-quick-list a{display:grid;grid-template-columns:46px 1fr;gap:12px;align-items:center;padding:13px;border-radius:15px;border:1px solid #eceff7;text-decoration:none;background:#fff;transition:.16s}.ccf-quick-list a:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(17,19,60,.08)}.ccf-quick-list i{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;color:#fff;font-style:normal;font-weight:900}.ccf-quick-list b{display:block;color:var(--navy)}.ccf-quick-list small{display:block;color:var(--muted);margin-top:3px}
.ccf-guide ol{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:14px}.ccf-guide li{display:grid;grid-template-columns:26px 1fr;gap:10px}.ccf-guide li:before{content:counter(list-item);display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#f4efff;color:#7b35ff;font-weight:900}.ccf-guide b{display:block;color:var(--navy)}.ccf-guide span{display:block;color:var(--muted);line-height:1.55}
.ccf-filter{display:grid;grid-template-columns:1fr 190px auto;gap:12px}.ccf-filter input,.ccf-filter select,.ccf-inline input,.ccf-form input,.ccf-form select,.ccf-form textarea{width:100%;padding:13px;border:1px solid #dfe5f0;border-radius:13px;font:inherit}.ccf-inline input{max-width:95px}.ccf-form{display:flex;flex-direction:column;gap:15px}.ccf-form label{font-weight:850;color:#332e63}.ccf-form textarea{resize:vertical}.ccf-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.ccf-check{display:flex!important;gap:10px;align-items:center}.ccf-check input,.ccf-pay-method input{width:auto!important}.ccf-checklist{padding:15px;border-radius:16px;background:#fff8ec;border:1px solid #ffe5c2;display:flex;flex-direction:column;gap:10px}.ccf-checklist label{display:flex;gap:10px;align-items:flex-start;color:#5f5a78;line-height:1.55;font-weight:750}.ccf-checklist input{width:auto;margin-top:5px}
.ccf-plan-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.ccf-plan{position:relative;display:flex;flex-direction:column;gap:10px;border:1px solid #edf0f7;border-radius:20px;padding:20px;background:#fff;box-shadow:0 14px 32px rgba(17,19,60,.045);cursor:pointer}.ccf-plan.popular{border-color:#edb7dc;background:linear-gradient(180deg,#fff,#fff8fd)}.ccf-plan input{width:auto}.ccf-plan h3{margin:4px 0;color:var(--navy)}.ccf-plan p{margin:0;color:var(--muted)}.ccf-plan strong{font-size:1.45rem;color:var(--navy);letter-spacing:-.035em}.ccf-plan ul{margin:0;padding-left:18px;color:#504b6a;line-height:1.65}.ccf-popular{position:absolute;right:14px;top:14px;padding:7px 10px;border-radius:999px;color:#fff;background:linear-gradient(90deg,#ff7a1a,#ec1aa7);font-size:.78rem;font-weight:900}.ccf-plan-settings-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.ccf-mini-card{padding:16px;border-radius:16px;border:1px solid #edf0f7;background:#fff}.ccf-mini-card label{display:block;margin-bottom:10px;color:#332e63;font-weight:850}.ccf-mini-card input[type=number],.ccf-mini-card input[type=text]{width:100%;padding:13px;border:1px solid #dfe5f0;border-radius:13px}
.ccf-pay-method{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;padding:13px;border-radius:15px;border:1px solid #edf0f7;background:#fff;margin-bottom:12px}.ccf-pay-method b{display:block;color:var(--navy)}.ccf-pay-method small{display:block;color:var(--muted);margin-top:4px}.ccf-alert{padding:15px;border-radius:16px;margin-bottom:18px}.ccf-alert.success{background:#dbffe4;color:#146c2e}.ccf-alert.error{background:#ffe6ef;color:#b31345}
.ccf-mini-nav{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 20px}.ccf-mini-nav a{display:inline-flex;align-items:center;min-height:42px;padding:0 15px;border-radius:999px;text-decoration:none;color:#3b365f;background:#fff;border:1px solid #edf0f7;font-weight:900;box-shadow:0 12px 26px rgba(17,19,60,.045)}.ccf-mini-nav a.active,.ccf-mini-nav a:hover{color:#fff;background:linear-gradient(90deg,#ff7a1a,#ec1aa7)}
@media(max-width:1180px){.ccf-stat-grid{grid-template-columns:repeat(3,1fr)}.ccf-layout{grid-template-columns:1fr}.ccf-plan-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){body{background-attachment:scroll!important}.ccf-page{padding:20px 14px 36px}.ccf-hero{flex-direction:column;align-items:flex-start;padding:24px}.ccf-hero h1{font-size:1.85rem}.ccf-stat-grid,.ccf-filter,.ccf-form-grid,.ccf-plan-grid,.ccf-plan-settings-grid{grid-template-columns:1fr}.ccf-card-head{flex-direction:column}.ccf-hero-actions,.ccf-action-row{width:100%;flex-direction:column}.ccf-btn-primary,.ccf-btn-light,.ccf-btn-ghost{width:100%}.ccf-timer-box,.ccf-surf-preview{grid-template-columns:1fr}.ccf-timer-circle{margin:0 auto}}


/* ==========================================================
   MarketingClerks Target Pages Header/Topbar Bright Fix
   Pages:
   - /member/upgrade.php
   - /member/products.php
   - /products.php
   - /surf.php

   Purpose:
   Force old header/topbar/body wrappers to Bright UI without
   changing PHP logic or database.
   ========================================================== */

html,
body {
  min-height: 100% !important;
}

body,
body.theme-marketing,
body.marketing-premium,
body.theme-marketing.marketing-premium {
  background:
    radial-gradient(circle at 8% 10%, rgba(255,122,26,.10), transparent 270px),
    radial-gradient(circle at 92% 8%, rgba(236,26,167,.10), transparent 300px),
    radial-gradient(circle at 50% 100%, rgba(123,53,255,.09), transparent 360px),
    linear-gradient(180deg, #fffaff 0%, #f8fbff 42%, #ffffff 100%) !important;
  background-attachment: fixed !important;
}

/* Neutralize old page wrappers */
body .site-main,
body main,
body .main,
body .page-wrap,
body .page-wrap-premium,
body .container.page-wrap,
body .content,
body .content-wrapper,
body .member-wrapper,
body .member-content,
body .dashboard-wrapper,
body .dashboard-content,
body .admin-wrapper,
body .admin-content {
  background: transparent !important;
}

/* Force header/topbar to Bright UI */
body .site-header,
body header.site-header,
body .site-header-premium,
body .main-header,
body .header,
body .header-area,
body .header-wrap,
body .site-topbar,
body .topbar,
body .top-bar,
body .navbar,
body .navbar-wrap,
body .app-topbar,
body .dashboard-topbar {
  background: rgba(255,255,255,.94) !important;
  background-image: none !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 0 !important;
  border-bottom: 1px solid #edf0f7 !important;
  box-shadow: 0 12px 32px rgba(17,19,60,.06) !important;
  color: #17133f !important;
}

/* Header inner container */
body .site-header .header-inner,
body .site-header .premium-inner,
body .site-header .container,
body .site-header-premium .header-inner,
body .site-header-premium .premium-inner,
body .main-header .container,
body .topbar .container,
body .navbar .container {
  background: transparent !important;
}

/* Brand/logo spacing */
body .site-header .brand,
body .site-header-premium .brand,
body .brand-premium {
  color: #17133f !important;
  text-decoration: none !important;
}

body .site-header .brand img,
body .site-header-premium .brand img,
body .brand-premium img {
  max-height: 48px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* Navigation text */
body .site-header a,
body header.site-header a,
body .site-header-premium a,
body .main-header a,
body .header a,
body .topbar a,
body .top-bar a,
body .navbar a,
body .nav a,
body .nav-premium a,
body .nav-app-compact a,
body .nav-home-compact a,
body .ms-dropdown button {
  color: #17133f !important;
  text-decoration: none !important;
}

/* Navigation hover */
body .site-header a:hover,
body .site-header-premium a:hover,
body .nav a:hover,
body .nav-premium a:hover,
body .ms-dropdown button:hover {
  color: #ec1aa7 !important;
}

/* Dropdown button */
body .ms-dropdown button {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-weight: 850 !important;
  cursor: pointer !important;
}

/* Dropdown menu */
body .ms-dropdown-menu,
body .site-header .ms-dropdown-menu,
body .site-header-premium .ms-dropdown-menu {
  background: #ffffff !important;
  border: 1px solid #edf0f7 !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 44px rgba(17,19,60,.12) !important;
  overflow: hidden !important;
}

body .ms-dropdown-menu a {
  color: #17133f !important;
  background: #ffffff !important;
}

body .ms-dropdown-menu a:hover {
  color: #ec1aa7 !important;
  background: #fff7fd !important;
}

/* Header action buttons */
body .site-header .btn,
body .site-header-premium .btn,
body .main-header .btn,
body .navbar .btn,
body .header-actions .btn {
  border-radius: 999px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

body .site-header .btn-primary,
body .site-header-premium .btn-primary,
body .main-header .btn-primary,
body .navbar .btn-primary,
body .header-actions .btn-primary,
body .site-header .btn-small,
body .site-header-premium .btn-small {
  color: #ffffff !important;
  background: linear-gradient(90deg, #ff7a1a, #ff4d65, #ec1aa7) !important;
  border: 0 !important;
  box-shadow: 0 12px 26px rgba(236,26,167,.18) !important;
}

body .site-header .btn-ghost,
body .site-header-premium .btn-ghost,
body .main-header .btn-ghost,
body .navbar .btn-ghost,
body .header-actions .btn-ghost {
  color: #17133f !important;
  background: #ffffff !important;
  border: 1px solid #e7eaf2 !important;
  box-shadow: 0 10px 22px rgba(17,19,60,.05) !important;
}

/* Mobile menu button */
body .ms-menu-toggle {
  color: #17133f !important;
  background: #ffffff !important;
  border: 1px solid #e7eaf2 !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 22px rgba(17,19,60,.06) !important;
}

/* Mobile opened menu */
body.ms-menu-open .nav,
body.ms-menu-open .nav-premium,
body.ms-menu-open .nav-app-compact,
body.ms-menu-open .nav-home-compact {
  background: #ffffff !important;
  border: 1px solid #edf0f7 !important;
  box-shadow: 0 18px 44px rgba(17,19,60,.12) !important;
  border-radius: 18px !important;
}

/* Old alert style normalization */
body .alert {
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 26px rgba(17,19,60,.08) !important;
}

body .alert.success {
  background: #dbffe4 !important;
  color: #146c2e !important;
}

body .alert.error {
  background: #ffe6ef !important;
  color: #b31345 !important;
}

/* Keep target page bright sections transparent when old CSS applies background */
.ccf-page,
.mpex-page,
.mpb-page,
.pbr-page,
.product-bright-page,
.clean-page,
.marketplace-page {
  background: transparent !important;
  position: relative !important;
  isolation: isolate !important;
}

@media (max-width: 760px) {
  body,
  body.theme-marketing,
  body.marketing-premium {
    background-attachment: scroll !important;
  }

  body .site-header .brand img,
  body .site-header-premium .brand img,
  body .brand-premium img {
    max-height: 42px !important;
  }
}
