/* =========================================================
   Easy Cash — modern landing styles (TonaPTC-inspired)
   ========================================================= */

:root{
  --ec-primary:#1f1d59;        /* dark navy */
  --ec-primary-2:#2a2575;
  --ec-accent:#ff9a3c;         /* orange */
  --ec-accent-2:#ffb86b;
  --ec-bg:#fdf5e6;             /* warm cream */
  --ec-bg-2:#fff8ec;
  --ec-card:#ffffff;
  --ec-text:#1e1b4b;
  --ec-muted:#5c5b7a;
  --ec-border:#eadfc6;
  --ec-success:#34c38f;
}

/* Reset bleed-through from old CSS for the new sections */
body.ec-body{
  margin:0;
  padding:0;
  font-family:'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color:var(--ec-text);
  background:var(--ec-bg);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
body.ec-body *{box-sizing:border-box}
body.ec-body img{max-width:100%;height:auto;display:block}
body.ec-body a{color:inherit;text-decoration:none}
body.ec-body h1,
body.ec-body h2,
body.ec-body h3,
body.ec-body h4{margin:0 0 .5em;font-weight:700;color:var(--ec-text);line-height:1.2}
body.ec-body p{margin:0 0 1em;color:var(--ec-muted)}

.ec-container{max-width:1200px;margin:0 auto;padding:0 24px}
.ec-section{padding:80px 0}
.ec-section-tight{padding:48px 0}

.ec-eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  color:var(--ec-primary);font-weight:600;
  font-size:14px;letter-spacing:.5px;
  margin-bottom:14px;
}
.ec-eyebrow::before{
  content:"//";color:var(--ec-accent);font-weight:800;
}
.ec-title{font-size:42px;line-height:1.15;margin-bottom:18px}
.ec-title .ec-underline,.ec-underline{
  position:relative;display:inline-block;
  font-style:italic;padding:0 6px;isolation:isolate;
  white-space:nowrap;
}
.ec-title .ec-underline::after,.ec-underline::after{
  content:"";position:absolute;left:0;right:0;
  bottom:6%;height:24%;background:var(--ec-accent);
  opacity:.55;border-radius:3px;z-index:-1;
}
.ec-sub{color:var(--ec-muted);font-size:16px;max-width:580px;margin:0 auto 24px}

/* ---------- Buttons ---------- */
.ec-btn,a.ec-btn,button.ec-btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:14px 26px;border-radius:10px;
  font-weight:600;font-size:15px;text-decoration:none;
  border:0;cursor:pointer;transition:.2s transform,.2s box-shadow,.2s background;
  line-height:1.2;font-family:inherit;
}
.ec-btn-primary,a.ec-btn-primary,button.ec-btn-primary{background:var(--ec-primary)!important;color:#fff!important}
.ec-btn-primary:hover,a.ec-btn-primary:hover{background:var(--ec-primary-2)!important;color:#fff!important;transform:translateY(-2px);box-shadow:0 10px 25px rgba(31,29,89,.25)}
.ec-btn-accent,a.ec-btn-accent{background:var(--ec-accent)!important;color:#fff!important}
.ec-btn-accent:hover,a.ec-btn-accent:hover{background:var(--ec-accent-2)!important;color:#fff!important}
.ec-btn-outline,a.ec-btn-outline{background:transparent!important;color:var(--ec-primary)!important;border:2px solid var(--ec-primary)!important}
.ec-btn-outline:hover,a.ec-btn-outline:hover{background:var(--ec-primary)!important;color:#fff!important}
.ec-btn-arrow::after{content:"↗";font-weight:700}

/* ---------- Header / Nav ---------- */
.ec-header{
  background:var(--ec-bg);
  position:sticky;top:0;z-index:50;
  border-bottom:1px solid rgba(31,29,89,.06);
}
.ec-nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 0;
}
.ec-brand{
  display:flex;align-items:center;gap:10px;
  font-weight:800;font-size:22px;letter-spacing:.3px;
}
.ec-brand-mark{
  width:38px;height:38px;border-radius:10px;
  background:linear-gradient(135deg,var(--ec-primary) 0%,var(--ec-accent) 100%);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:800;font-size:18px;
}
.ec-brand .accent{color:var(--ec-accent)}

.ec-nav-links{display:flex;gap:32px;list-style:none;margin:0;padding:0}
.ec-nav-links a{
  color:var(--ec-text);font-weight:500;font-size:15px;
  padding:6px 0;border-bottom:2px solid transparent;transition:.2s;
}
.ec-nav-links a:hover,.ec-nav-links a.active{color:var(--ec-primary);border-color:var(--ec-accent)}

.ec-nav-cta{display:flex;align-items:center;gap:12px}
.ec-burger{display:none;background:transparent;border:0;font-size:24px;cursor:pointer;color:var(--ec-primary)}

/* ---------- Hero ---------- */
.ec-hero{
  position:relative;overflow:hidden;
  padding:60px 0 80px;
}
.ec-hero-grid{
  display:grid;grid-template-columns:1.05fr 1fr;
  gap:48px;align-items:center;
}
.ec-hero-chips{
  display:flex;gap:6px;flex-wrap:wrap;margin-bottom:20px;
}
.ec-hero-chips span{
  width:34px;height:34px;border-radius:8px;
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--ec-primary);color:#fff;font-weight:700;font-size:13px;
}
.ec-hero-chips span:nth-child(odd){background:var(--ec-accent);color:#fff}
.ec-hero h1{font-size:56px;line-height:1.05;margin-bottom:20px}
.ec-hero h1 em{
  position:relative;display:inline-block;
  font-style:italic;font-weight:700;
  padding:0 6px;isolation:isolate;
}
.ec-hero h1 em::after{
  content:"";position:absolute;left:0;right:0;
  bottom:8%;height:22%;background:var(--ec-accent);
  opacity:.6;border-radius:3px;z-index:-1;
}
.ec-hero p{font-size:17px;max-width:520px;margin-bottom:30px}
.ec-hero-actions{display:flex;align-items:center;gap:16px}
.ec-play{
  width:54px;height:54px;border-radius:50%;
  background:var(--ec-accent);color:#fff;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:18px;border:6px solid #fff;
  box-shadow:0 8px 20px rgba(255,154,60,.35);
}
.ec-hero-illu{
  background:radial-gradient(circle at 60% 40%, #ffe5c5 0%, transparent 65%);
  border-radius:30px;padding:30px;text-align:center;
}
.ec-hero-illu svg{width:100%;max-width:480px;height:auto;margin:0 auto}

/* ---------- About ---------- */
.ec-about{background:#fff;padding:80px 0}
.ec-about-grid{
  display:grid;grid-template-columns:200px 1fr 1fr;gap:32px;align-items:center;
}
.ec-stat-card{
  background:var(--ec-primary);color:#fff;
  border-radius:20px;padding:30px 20px;text-align:center;
}
.ec-stat-card.accent{background:#fff5e3;color:var(--ec-text)}
.ec-stat-card .num{font-size:34px;font-weight:800;margin-bottom:6px}
.ec-stat-card .lbl{font-size:14px;opacity:.85}
.ec-stat-icon{
  width:64px;height:64px;border-radius:14px;background:rgba(255,255,255,.12);
  margin:0 auto 14px;display:flex;align-items:center;justify-content:center;font-size:28px;
}
.ec-stat-card.accent .ec-stat-icon{background:#fff;color:var(--ec-accent)}

.ec-about-illu{text-align:center}
.ec-about-illu svg{max-width:100%;height:auto}

/* ---------- Features ---------- */
.ec-features{background:var(--ec-bg);padding:90px 0}
.ec-features-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:50px;
}
.ec-feature{
  background:transparent;padding:8px 12px 20px;text-align:left;
}
.ec-feature-icon{
  width:74px;height:74px;border-radius:18px;
  display:flex;align-items:center;justify-content:center;font-size:30px;color:#fff;
  margin-bottom:24px;
}
.ec-feature h4{font-size:18px;margin-bottom:10px;position:relative;display:inline-block;padding-bottom:6px}
.ec-feature h4::after{
  content:"";position:absolute;left:0;bottom:0;width:50%;height:2px;background:var(--ec-accent);
}
.ec-feature p{font-size:14px;color:var(--ec-muted);margin:0}
.ec-fc-1{background:linear-gradient(135deg,#3a2dcc,#1f1d59)}
.ec-fc-2{background:linear-gradient(135deg,#ff9a3c,#ff7a18)}
.ec-fc-3{background:linear-gradient(135deg,#1ea7ff,#0070dd)}
.ec-fc-4{background:linear-gradient(135deg,#34c38f,#1f9c6e)}
.ec-fc-5{background:linear-gradient(135deg,#ff6b6b,#e63946)}
.ec-fc-6{background:linear-gradient(135deg,#22b6d3,#0d8499)}
.ec-fc-7{background:linear-gradient(135deg,#ffa726,#fb8c00)}
.ec-fc-8{background:linear-gradient(135deg,#c44ddc,#8e24aa)}

/* ---------- Pricing ---------- */
.ec-pricing{background:#fff;padding:90px 0}
.ec-pricing-wrap{
  display:grid;grid-template-columns:1.1fr 1fr;gap:48px;align-items:center;
}
.ec-plans{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.ec-plans.ec-plans-4{grid-template-columns:repeat(4,1fr);max-width:1200px;margin:0 auto;gap:18px;align-items:stretch}
.ec-plans.ec-plans-4 .ec-plan,
.ec-plans.ec-plans-5 .ec-plan{
  padding:24px 18px 22px; min-height:360px;
  display:flex; flex-direction:column;
}
.ec-plans.ec-plans-4 .ec-plan ul,
.ec-plans.ec-plans-5 .ec-plan ul{flex:1;margin:18px 0 22px}
.ec-plans.ec-plans-4 .ec-plan li,
.ec-plans.ec-plans-5 .ec-plan li{margin-bottom:12px}
.ec-plans.ec-plans-4 .ec-plan-name h4,
.ec-plans.ec-plans-5 .ec-plan-name h4{font-size:14px}
.ec-plans.ec-plans-4 .ec-plan-name .price,
.ec-plans.ec-plans-5 .ec-plan-name .price{font-size:22px}
.ec-plans.ec-plans-5{grid-template-columns:repeat(5,1fr);max-width:1240px;margin:0 auto;gap:14px;align-items:stretch}
.ec-plans.ec-plans-5 .ec-plan-icon{width:46px;height:46px;font-size:18px}
.ec-plans.ec-plans-5 .ec-plan-icon svg{width:22px;height:22px}
/* Medium screens — 3+2 centered layout (elegant, no orphan row) */
@media (max-width:1100px){
  .ec-plans.ec-plans-5{grid-template-columns:repeat(6,1fr);max-width:900px}
  .ec-plans.ec-plans-5 .ec-plan{grid-column:span 2}
  .ec-plans.ec-plans-5 .ec-plan:nth-child(4){grid-column:2 / span 2}
}
@media (max-width:880px){
  .ec-plans.ec-plans-4{grid-template-columns:repeat(2,1fr)}
}
/* Phone — single column */
@media (max-width:599px){
  .ec-plans.ec-plans-5{grid-template-columns:1fr;max-width:400px}
  .ec-plans.ec-plans-5 .ec-plan,
  .ec-plans.ec-plans-5 .ec-plan:nth-child(4){grid-column:1}
}
.ec-plan{
  background:#fff7e6;border-radius:20px;padding:22px;position:relative;
}
.ec-plan.alt{background:#eef0ff}
.ec-plan .ec-plan-head{
  display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;
}
.ec-plan-icon{
  width:56px;height:56px;border-radius:14px;background:#fff;
  display:flex;align-items:center;justify-content:center;color:var(--ec-accent);font-size:24px;
  box-shadow:0 4px 14px rgba(0,0,0,.05);
}
.ec-plan-name{text-align:right}
.ec-plan-name h4{margin:0;font-size:16px}
.ec-plan-name .price{font-size:24px;font-weight:800;color:var(--ec-primary)}
.ec-plan ul{list-style:none;padding:0;margin:14px 0 18px;border-top:1px dashed rgba(0,0,0,.1);padding-top:14px;font-size:14px}
.ec-plan li{margin-bottom:8px;display:flex;align-items:center;gap:8px;color:var(--ec-text)}
.ec-plan li::before{content:"✓";display:inline-flex;width:18px;height:18px;background:var(--ec-primary);color:#fff;border-radius:50%;font-size:11px;align-items:center;justify-content:center}
.ec-plan .ec-btn{width:100%;justify-content:center;background:transparent;color:var(--ec-primary);border:1.5px solid var(--ec-primary)}
.ec-plan .ec-btn:hover{background:var(--ec-primary);color:#fff}
.ec-plan-popular{position:absolute;top:-12px;left:22px;background:var(--ec-primary);color:#fff;font-size:11px;font-weight:600;padding:4px 10px;border-radius:6px}

/* ---------- Counter Stats ---------- */
.ec-stats{padding:60px 0;background:var(--ec-bg);position:relative}
.ec-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.ec-stats-grid.ec-stats-3{grid-template-columns:repeat(3,1fr);max-width:900px;margin-left:auto;margin-right:auto}
.ec-stat-box{
  background:#fff;border:2px solid var(--ec-accent);border-radius:20px;
  padding:32px 20px;text-align:center;
}
.ec-stat-box .icon{font-size:34px;margin-bottom:14px}
.ec-stat-box .num{font-size:30px;font-weight:800;color:var(--ec-primary)}
.ec-stat-box .lbl{font-size:14px;color:var(--ec-muted);margin-top:4px}

/* ---------- Testimonials ---------- */
.ec-testimonials{background:#fff;padding:90px 0}
.ec-testi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:50px}
.ec-testi{
  background:#fff7e6;border-radius:20px;padding:28px 22px;
  position:relative;
}
.ec-testi-body{font-size:14px;color:var(--ec-text);text-align:center;margin-bottom:22px}
.ec-testi-foot{
  display:flex;align-items:center;gap:12px;padding-top:14px;border-top:1px solid rgba(0,0,0,.05);
}
.ec-avatar{
  width:48px;height:48px;border-radius:12px;background:var(--ec-primary);color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:700;
}
.ec-testi-foot strong{display:block;color:var(--ec-primary);font-size:15px}
.ec-testi-foot span{font-size:12px;color:var(--ec-muted)}

/* ---------- FAQ ---------- */
.ec-faq{background:var(--ec-bg);padding:90px 0}
.ec-faq-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:48px;align-items:start}
.ec-faq-item{
  background:#fff;border-radius:14px;margin-bottom:14px;padding:18px 22px;
  cursor:pointer;transition:.2s;
}
.ec-faq-item .q{
  display:flex;align-items:center;justify-content:space-between;gap:14px;font-weight:600;color:var(--ec-text);
}
.ec-faq-item .q .n{
  width:28px;height:28px;border-radius:8px;background:var(--ec-primary);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:13px;flex-shrink:0;
}
.ec-faq-item .q .ic{color:var(--ec-accent);font-size:22px;line-height:1}
.ec-faq-item .a{
  display:none;color:var(--ec-muted);font-size:14px;padding:12px 0 0 42px;
}
.ec-faq-item.open .a{display:block}
.ec-faq-item.open .ic::before{content:"−"}
.ec-faq-item .ic::before{content:"+"}

/* ---------- Newsletter ---------- */
.ec-news{background:#fff;padding:80px 0;text-align:center;border-top:1px solid var(--ec-border)}
.ec-news-form{
  display:flex;gap:10px;max-width:560px;margin:24px auto 0;
}
.ec-news-form input{
  flex:1;padding:14px 18px;border-radius:10px;border:1.5px solid var(--ec-border);
  font-size:15px;font-family:inherit;background:#fff;
}
.ec-news-form input:focus{outline:none;border-color:var(--ec-primary)}

/* ---------- Footer ---------- */
.ec-footer{background:#fff4dc;padding:70px 0 30px;color:var(--ec-text)}
.ec-footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:40px}
.ec-footer h5{font-size:18px;margin-bottom:16px;font-weight:700}
.ec-footer ul{list-style:none;padding:0;margin:0}
.ec-footer li{margin-bottom:10px;font-size:14px}
.ec-footer li::before{content:"●";color:var(--ec-accent);margin-right:8px;font-size:10px}
.ec-footer a:hover{color:var(--ec-accent)}
.ec-footer-card{background:#fff;border-radius:16px;padding:22px;border:1px solid var(--ec-border)}
.ec-footer-card p{font-size:13px;color:var(--ec-muted);margin:8px 0 0}
.ec-footer-contact div{display:flex;align-items:center;gap:10px;margin-bottom:12px;font-size:14px}
.ec-footer-contact .ic{
  width:30px;height:30px;border-radius:8px;background:#fff;
  display:flex;align-items:center;justify-content:center;color:var(--ec-accent);font-size:14px;
  border:1px solid var(--ec-border);
}
.ec-socials{display:flex;gap:10px;margin-top:14px}
.ec-socials a{
  width:38px;height:38px;border-radius:10px;background:var(--ec-primary)!important;color:#fff!important;
  display:flex;align-items:center;justify-content:center;font-size:15px;
}
.ec-socials a svg{ width:18px; height:18px; display:block; fill:currentColor }
.ec-socials a:hover{ background:var(--ec-accent)!important }
.ec-footer-contact .ic svg{ width:16px; height:16px; display:block; stroke:var(--ec-accent); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round }
.ec-copyright{text-align:center;padding-top:40px;margin-top:50px;border-top:1px solid var(--ec-border);font-size:13px;color:var(--ec-muted)}

/* ---------- Hide legacy member toolbar entirely ---------- */
body.ec-body .flotator,
body.ec-body .member_toolbar,
body.ec-body .mini_logo{ display:none !important; }

/* Sub-page wrapper (for non-home pages) — minimal, lets legacy CSS handle layout */
body.ec-body .subpages-bg{ background:var(--ec-bg); padding:24px 0; }

/* ===== Mobile responsive overrides for legacy sub-pages =====
   The original PHP templates use fixed pixel widths and HTML tables.
   Below rules ONLY apply at mobile widths so desktop looks untouched. */
@media (max-width:768px){
  /* Prevent ANY horizontal page overflow */
  html, body.ec-body{ overflow-x:hidden !important; max-width:100% !important; }

  /* shrink outer padding */
  body.ec-body .subpages-bg{ padding:14px 0; }
  body.ec-body #content{ padding:0 10px; max-width:100%; box-sizing:border-box; }
  body.ec-body .sub-page-background,
  body.ec-body .sub-page-backgroundInner{
    padding:6px !important; max-width:100% !important; box-sizing:border-box; overflow:hidden;
  }

  /* Override ALL inline pixel widths (style="width:NNNpx") on divs */
  body.ec-body div[style*="width:1"],
  body.ec-body div[style*="width:2"],
  body.ec-body div[style*="width:3"],
  body.ec-body div[style*="width:4"],
  body.ec-body div[style*="width:5"],
  body.ec-body div[style*="width:6"],
  body.ec-body div[style*="width:7"],
  body.ec-body div[style*="width:8"],
  body.ec-body div[style*="width:9"],
  body.ec-body div[style*="width: 1"],
  body.ec-body div[style*="width: 2"],
  body.ec-body div[style*="width: 3"],
  body.ec-body div[style*="width: 4"],
  body.ec-body div[style*="width: 5"],
  body.ec-body div[style*="width: 6"],
  body.ec-body div[style*="width: 7"],
  body.ec-body div[style*="width: 8"],
  body.ec-body div[style*="width: 9"]{
    width:100% !important; max-width:100% !important; box-sizing:border-box;
  }

  /* CSS-table layouts (account sidebar+content) stack vertically */
  body.ec-body div[style*="display:table"]{ display:block !important; width:100% !important; }
  body.ec-body div[style*="display:table-cell"]{
    display:block !important; width:100% !important; padding:0 !important;
  }
  body.ec-body .member_sidebar{ margin:0 0 14px 0 !important; }

  /* Blue banner headings: smaller text, less padding */
  body.ec-body .site_title{ font-size:16px !important; padding:10px 12px !important; word-wrap:break-word; }
  body.ec-body .site_content{ padding:8px !important; max-width:100% !important; box-sizing:border-box; overflow:hidden; }

  /* === Advertise page === 305px floating widgets must stack === */
  body.ec-body .shopcart{
    width:100% !important; float:none !important;
    margin:0 0 12px 0 !important; box-sizing:border-box;
  }
  body.ec-body .shopcart select,
  body.ec-body .shopcart input[type="submit"]{
    max-width:100% !important; box-sizing:border-box;
  }

  /* === All sub-page tables stack into vertical cards === */
  body.ec-body .site_content table,
  body.ec-body .sub-page-background table{
    width:100% !important; max-width:100% !important;
    table-layout:auto !important;
  }
  body.ec-body .site_content table tr,
  body.ec-body .sub-page-background table tr{
    display:block !important; width:100% !important;
  }
  body.ec-body .site_content table td,
  body.ec-body .site_content table th,
  body.ec-body .sub-page-background table td,
  body.ec-body .sub-page-background table th{
    display:block !important; width:100% !important;
    text-align:left !important; padding:5px 0 !important;
    box-sizing:border-box; word-wrap:break-word;
  }
  body.ec-body .site_content table input[type="text"],
  body.ec-body .site_content table input[type="password"],
  body.ec-body .site_content table input[type="email"],
  body.ec-body .site_content table input[type="number"],
  body.ec-body .site_content table select,
  body.ec-body .site_content table textarea{
    width:100% !important; max-width:100% !important;
    box-sizing:border-box; padding:9px 10px;
  }
  /* Generic inputs across sub-pages */
  body.ec-body .site_content input[type="text"],
  body.ec-body .site_content input[type="password"],
  body.ec-body .site_content input[type="email"],
  body.ec-body .site_content input[type="number"],
  body.ec-body .site_content select,
  body.ec-body .site_content textarea{
    max-width:100% !important; box-sizing:border-box;
  }

  /* Images shouldn't overflow */
  body.ec-body .sub-page-background img{ max-width:100% !important; height:auto !important; }

  /* Hide the on-screen virtual keyboard (real mobile keyboard is enough) */
  body.ec-body #keyboard{ display:none !important; }
}
@media (max-width:480px){
  body.ec-body .sub-page-background,
  body.ec-body .sub-page-backgroundInner{ padding:4px !important; }
  body.ec-body .site_title{ font-size:14px !important; padding:8px 10px !important; }
}

/* ===== Account pages — KEEP sidebar + content side-by-side on mobile ===== */
@media (max-width:768px){
  body.ec-body div[style*="display:table; width:100%"]{
    display:table !important; width:100% !important; table-layout:fixed !important;
  }
  body.ec-body div[style*="display:table-cell; width:210px"]{
    display:table-cell !important; width:33% !important;
    vertical-align:top !important; padding:0 4px 0 0 !important;
  }
  body.ec-body div[style*="display:table-cell; padding-left:20px"]{
    display:table-cell !important; width:67% !important;
    padding:0 0 0 6px !important; vertical-align:top !important;
  }
  /* Compact sidebar to fit narrow column */
  body.ec-body .member_sidebar{ font-size:11px !important; padding:0 !important; }
  body.ec-body .member_sidebar > li{ margin-bottom:8px; }
  body.ec-body .member_sidebar .title{
    font-size:12px !important; padding:5px 8px !important; line-height:1.2;
  }
  body.ec-body .member_sidebar li li{ padding:0 !important; }
  body.ec-body .member_sidebar li li a{
    padding:5px 8px !important; font-size:11px !important;
    display:block; word-wrap:break-word;
  }
}
@media (max-width:480px){
  /* Even narrower phones — give the sidebar a touch less, content a touch more */
  body.ec-body div[style*="display:table-cell; width:210px"]{ width:36% !important; }
  body.ec-body div[style*="display:table-cell; padding-left:20px"]{ width:64% !important; padding:0 0 0 4px !important; }
  body.ec-body .member_sidebar{ font-size:10px !important; }
  body.ec-body .member_sidebar .title{ font-size:11px !important; padding:4px 6px !important; }
  body.ec-body .member_sidebar li li a{ padding:4px 6px !important; font-size:10px !important; }
}

/* ===== Account Summary page — fix dashboard header on mobile ===== */
@media (max-width:768px){
  /* Hide the decorative cartoon background image, drop the 201px reservation */
  body.ec-body .admin-info{
    background:none !important;
    min-height:auto !important;
    padding-left:0 !important;
    padding-top:6px !important;
    float:none !important;
    width:100% !important; box-sizing:border-box;
  }
  body.ec-body .admin-info div{ font-size:12px !important; word-wrap:break-word; }
  body.ec-body .admin-info .title{ font-size:18px !important; padding-bottom:6px !important; }

  /* Calendar widget: don't float right, sit naturally and stay small */
  body.ec-body .calendar{
    float:none !important; width:90px !important; margin:8px 0 !important;
  }
  body.ec-body .calendar .top{ padding:6px 0 !important; font-size:22px !important; }
  body.ec-body .calendar .bottom{ font-size:12px !important; padding:3px 0 !important; }

  /* Tabs on summary page: wrap, smaller text, scrollable if needed */
  body.ec-body #tabs ul{ display:flex; flex-wrap:wrap; padding:0 !important; margin:0 0 8px 0 !important; }
  body.ec-body #tabs ul li{ list-style:none; margin:0 4px 4px 0; }
  body.ec-body #tabs ul li a{ font-size:11px !important; padding:5px 8px !important; }

  body.ec-body .widget-main-title{ font-size:14px !important; padding:6px 10px !important; }
  body.ec-body .widget-title{ font-size:13px !important; padding:5px 8px !important; }
  body.ec-body .widget-content{ padding:6px !important; }
  body.ec-body .dashboardbox{ font-size:11px; padding:8px; }
}

/* Anchor scroll offset for sticky header */
html{ scroll-behavior:smooth; scroll-padding-top:90px; }
section[id]{ scroll-margin-top:90px; }

/* ---------- Logged-in member chip in nav ---------- */
.ec-member-chip{
  display:flex;align-items:center;gap:10px;
  padding:6px 14px 6px 6px;border-radius:50px;
  background:#fff;border:1.5px solid var(--ec-border);
  color:var(--ec-text)!important;text-decoration:none;
}
.ec-member-chip:hover{border-color:var(--ec-primary)}
.ec-member-avatar{
  width:34px;height:34px;border-radius:50%;
  background:linear-gradient(135deg,var(--ec-primary),var(--ec-accent));
  color:#fff;font-weight:700;
  display:flex;align-items:center;justify-content:center;font-size:14px;
}
.ec-member-info{display:flex;flex-direction:column;line-height:1.1}
.ec-member-info strong{font-size:13px;color:var(--ec-text)}
.ec-member-info span{font-size:11px;color:var(--ec-accent);font-weight:600}

/* ---------- Inline SVG icon sizing ---------- */
.ec-feature-icon svg{ width:38px; height:38px; stroke:#fff; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; display:block }
.ec-plan-icon svg{ width:28px; height:28px; stroke:var(--ec-accent); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; display:block }
.ec-stat-icon svg{ width:32px; height:32px; stroke:#fff; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; display:block }
.ec-stat-card.accent .ec-stat-icon svg{ stroke:var(--ec-accent) }
.ec-stat-box .icon{ display:flex; justify-content:center; margin-bottom:14px }
.ec-stat-box .icon svg{ width:42px; height:42px; stroke:var(--ec-accent); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; display:block }

/* ---------- Animated hero character ---------- */
@keyframes ec-float{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-12px)}
}
@keyframes ec-float-slow{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-18px)}
}
@keyframes ec-spin{
  0%{transform:rotate(0)}
  100%{transform:rotate(360deg)}
}
@keyframes ec-wave{
  0%,100%{transform:rotate(-8deg)}
  25%{transform:rotate(18deg)}
  50%{transform:rotate(-18deg)}
  75%{transform:rotate(18deg)}
}
@keyframes ec-blink{
  0%,92%,100%{transform:scaleY(1)}
  95%{transform:scaleY(.1)}
}
@keyframes ec-pulse{
  0%,100%{transform:scale(1);opacity:.7}
  50%{transform:scale(1.4);opacity:0}
}
@keyframes ec-bounce{
  0%,100%{transform:translateY(0) scale(1)}
  50%{transform:translateY(-6px) scale(1.05)}
}
.ec-anim svg{overflow:visible}
.ec-anim .coin-1{animation:ec-float 3s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
.ec-anim .coin-2{animation:ec-float-slow 3.6s ease-in-out infinite .6s;transform-box:fill-box;transform-origin:center}
.ec-anim .coin-3{animation:ec-float 3.2s ease-in-out infinite 1.2s;transform-box:fill-box;transform-origin:center}
.ec-anim .coin-4{animation:ec-float-slow 4s ease-in-out infinite .3s;transform-box:fill-box;transform-origin:center}
.ec-anim .arm{animation:ec-wave 2s ease-in-out infinite;transform-box:fill-box;transform-origin:8px 4px}
.ec-anim .eyes{animation:ec-blink 4.5s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
.ec-anim .play-ring{animation:ec-pulse 1.8s ease-out infinite;transform-box:fill-box;transform-origin:center}
.ec-anim .play-btn{animation:ec-bounce 2.2s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
.ec-anim .gear{animation:ec-spin 12s linear infinite;transform-box:fill-box;transform-origin:center}
.ec-anim .body-shadow{transform-origin:center;animation:ec-bounce 2.2s ease-in-out infinite}

@keyframes ec-sway{
  0%,100%{transform:rotate(-3deg)}
  50%{transform:rotate(3deg)}
}
@keyframes ec-sparkle{
  0%,100%{opacity:.2;transform:scale(.8)}
  50%{opacity:1;transform:scale(1.15)}
}
@keyframes ec-coin-pop{
  0%{transform:translateY(0) scale(.6);opacity:0}
  30%{opacity:1}
  70%{transform:translateY(-30px) scale(1.1);opacity:.85}
  100%{transform:translateY(-50px) scale(.7);opacity:0}
}
.ec-anim .cash-fan{transform-box:fill-box;transform-origin:left bottom;animation:ec-sway 3s ease-in-out infinite}
.ec-anim .sparkle{transform-box:fill-box;transform-origin:center;animation:ec-sparkle 1.6s ease-in-out infinite}
.ec-anim .coin-pop{transform-box:fill-box;transform-origin:center;animation:ec-coin-pop 2.4s ease-out infinite}

/* ---------- Mobile ---------- */
@media (max-width:992px){
  .ec-hero h1{font-size:42px}
  .ec-features-grid{grid-template-columns:repeat(2,1fr)}
  .ec-stats-grid{grid-template-columns:repeat(2,1fr)}
  .ec-stats-grid.ec-stats-3{grid-template-columns:repeat(2,1fr)}
  .ec-testi-grid{grid-template-columns:1fr}
  .ec-footer-grid{grid-template-columns:repeat(2,1fr)}
  .ec-about-grid{grid-template-columns:1fr 1fr;gap:24px}
  .ec-about-illu{grid-column:1/-1;order:-1}
  .ec-pricing-wrap{grid-template-columns:1fr}
  .ec-faq-grid{grid-template-columns:1fr}
  .ec-faq-illu{display:none}
}
@media (max-width:768px){
  .ec-section{padding:60px 0}
  .ec-hero{padding:18px 0 28px}
  .ec-hero-grid{grid-template-columns:1fr;gap:10px;text-align:center}
  .ec-hero-illu{order:-1;padding:6px}
  .ec-hero-illu svg{max-width:240px;margin:0 auto}
  .ec-hero h1{font-size:26px;margin-bottom:10px}
  .ec-hero p{font-size:14px;margin:0 auto 16px;max-width:340px}
  .ec-hero-chips{justify-content:center;gap:4px;margin-bottom:12px}
  .ec-hero-chips span{width:24px;height:24px;font-size:11px;border-radius:6px}
  .ec-hero-actions{justify-content:center}
  .ec-title{font-size:30px}

  /* Mobile nav: compact CTAs + always-visible burger */
  body.ec-body .ec-header .ec-nav{gap:8px;padding-left:16px;padding-right:16px}
  .ec-nav-cta{gap:8px;flex-shrink:0}
  .ec-nav-links{
    display:none;position:absolute;top:100%;left:0;right:0;
    background:#fff;flex-direction:column;gap:0;padding:14px 0;
    box-shadow:0 10px 20px rgba(0,0,0,.08);
  }
  .ec-nav-links.open{display:flex}
  .ec-nav-links li{padding:12px 24px;border-bottom:1px solid #eee}
  .ec-burger{display:block;flex-shrink:0;font-size:26px;padding:6px 10px}
  .ec-nav-cta .ec-btn{padding:9px 12px;font-size:13px}
  .ec-member-info{display:none}
  .ec-member-chip{padding:3px;border:1.5px solid var(--ec-border)}

  .ec-plans,
  .ec-plans.ec-plans-4{grid-template-columns:1fr}
  .ec-about-grid{grid-template-columns:1fr;text-align:center}
  .ec-about-grid .ec-eyebrow{justify-content:center;display:inline-flex}
  .ec-about-grid .ec-btn{margin:0 auto}
  .ec-stat-card{padding:20px}

  /* Centered feature cards on mobile */
  .ec-feature{text-align:center}
  .ec-feature-icon{margin-left:auto;margin-right:auto}
  .ec-feature h4{display:inline-block}
  .ec-feature h4::after{left:25%;width:50%}

  /* Hide the right-side pricing illustration on mobile */
  .ec-pricing-wrap > div:last-child{display:none}

  /* FAQ centered */
  .ec-faq-grid > div:first-child{text-align:center}
  .ec-faq-grid .ec-eyebrow{justify-content:center;display:inline-flex}
  .ec-faq-item{text-align:left}

  /* Stats 3-col → 1-col so it doesn't overflow */
  .ec-stats-grid.ec-stats-3{grid-template-columns:1fr;max-width:360px}

  .ec-news-form{flex-direction:column}
  .ec-footer-grid{grid-template-columns:1fr;gap:30px}
}
@media (max-width:480px){
  .ec-features-grid{grid-template-columns:1fr}
  .ec-stats-grid{grid-template-columns:1fr}
  .ec-stats-grid.ec-stats-3{grid-template-columns:1fr}
  .ec-hero-actions{flex-direction:column;align-items:stretch}
  .ec-hero-actions .ec-btn{justify-content:center}
  .ec-brand{font-size:18px}
  .ec-brand-mark{width:32px;height:32px;font-size:15px}
}
