/*
Theme Name: EcolePedia
Theme URI: https://ecolepedia.com
Author: EcolePedia
Description: Premium academic writing service platform.
Version: 1.0.5
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ecolepedia
*/
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ══════════════════════════ TOKENS ══════════════════════════════════════════ */
:root {
  --p:   #1a56db; --pd: #1a44b8; --pl: #eff6ff;
  --s:   #059669; --sl: #d1fae5;
  --acc: #f59e0b;
  --dan: #dc2626;
  --g0: #fff; --g1: #f9fafb; --g2: #f3f4f6; --g3: #e5e7eb;
  --g4: #d1d5db; --g5: #9ca3af; --g6: #6b7280; --g7: #4b5563;
  --g8: #374151; --g9: #1f2937; --gA: #111827;
  --r:  8px; --rl: 14px; --rx: 20px;
  --sh:  0 1px 8px rgba(0,0,0,.07);
  --shl: 0 6px 28px rgba(0,0,0,.11);
  --shx: 0 20px 60px rgba(0,0,0,.16);
  --t:  .18s ease;
  --fw: 1200px;
  --fh: 'Sora', system-ui, sans-serif;
  --fb: 'DM Sans', system-ui, sans-serif;
}

/* ══════════════════════════ RESET ═══════════════════════════════════════════ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--fb); color: var(--g9); background: var(--g0);
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img,video { max-width: 100%; height: auto; display: block; }
a { color: var(--p); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--pd); }
h1,h2,h3,h4,h5,h6 { font-family: var(--fh); font-weight: 700; line-height: 1.22; color: var(--gA); }
ul,ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input,select,textarea { font-family: inherit; }
svg { flex-shrink: 0; }

/* ══════════════════════════ LAYOUT ══════════════════════════════════════════ */
.ep-skip-link { position: absolute; top: -100px; left: 16px; z-index: 9999; background: var(--p); color: #fff; padding: 8px 16px; border-radius: 0 0 var(--r) var(--r); font-weight: 600; }
.ep-skip-link:focus { top: 0; }
.ep-container { max-width: var(--fw); margin-inline: auto; padding-inline: 24px; width: 100%; }
.ep-section { padding: 80px 0; }
.ep-section-alt { background: var(--g1); }
.ep-section-head { text-align: center; margin-bottom: 52px; }
.ep-section-eyebrow { display: inline-flex; align-items: center; gap: 6px; background: var(--pl); color: var(--p); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; margin-bottom: 14px; }
.ep-section-title { font-size: clamp(1.5rem, 2.8vw, 2.15rem); margin-bottom: 12px; }
.ep-section-desc { color: var(--g6); font-size: .975rem; max-width: 540px; margin-inline: auto; line-height: 1.72; }
.ep-section-cta { text-align: center; margin-top: 44px; }

/* ══════════════════════════ BUTTONS ═════════════════════════════════════════ */
.ep-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; padding: 10px 22px; border-radius: var(--r);
  font-family: var(--fh); font-weight: 600; font-size: .875rem;
  transition: all var(--t); cursor: pointer; white-space: nowrap;
  border: 2px solid transparent; line-height: 1.2; text-decoration: none;
}
.ep-btn:focus-visible { outline: 3px solid var(--p); outline-offset: 2px; }
.ep-btn:disabled { opacity: .6; cursor: not-allowed; pointer-events: none; }
.ep-btn-primary      { background: var(--p);   color: #fff !important; border-color: var(--p); }
.ep-btn-primary:hover { background: var(--pd); border-color: var(--pd); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,86,219,.33); }
.ep-btn-white        { background: #fff; color: var(--p) !important; border-color: #fff; }
.ep-btn-white:hover  { background: var(--g1); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.ep-btn-ghost-white  { background: rgba(255,255,255,.14); color: #fff !important; border-color: rgba(255,255,255,.38); }
.ep-btn-ghost-white:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.7); }
.ep-btn-outline      { background: transparent; color: var(--p) !important; border-color: var(--g3); }
.ep-btn-outline:hover { background: var(--pl); border-color: var(--p); }
.ep-btn-outline-dark { background: transparent; color: var(--g9) !important; border-color: var(--g3); }
.ep-btn-outline-dark:hover { background: var(--g2); border-color: var(--g4); }
.ep-btn-ghost        { background: transparent; color: var(--g7) !important; border-color: var(--g3); }
.ep-btn-ghost:hover  { background: var(--g2); }
.ep-btn-danger       { background: var(--dan); color: #fff !important; border-color: var(--dan); }
.ep-btn-danger:hover { opacity: .9; }
.ep-btn-sm  { padding: 6px 14px; font-size: .8rem; }
.ep-btn-lg  { padding: 13px 30px; font-size: .975rem; border-radius: var(--rl); }
.ep-btn-xl  { padding: 15px 36px; font-size: 1rem; border-radius: var(--rl); }
.ep-btn-block { width: 100%; }

/* ══════════════════════════ FORMS ═══════════════════════════════════════════ */
.ep-form-group { margin-bottom: 14px; }
.ep-form-group:last-child { margin-bottom: 0; }
.ep-form-group label,
.ep-label { display: flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--g7); margin-bottom: 5px; }
.ep-label { display: block; text-transform: uppercase; letter-spacing: .04em; }
.ep-req    { color: var(--dan); margin-left: 2px; }
.ep-optional { color: var(--g4); font-weight: 400; font-size: .68rem; margin-left: 4px; text-transform: none; }
.ep-input,.ep-select {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--g3);
  border-radius: var(--r); background: var(--g0); font-size: .875rem; color: var(--g9);
  transition: border-color var(--t), box-shadow var(--t); -webkit-appearance: none; appearance: none;
}
.ep-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%236b7280' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px;
}
.ep-input:focus,.ep-select:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 3px rgba(26,86,219,.12); }
.ep-input-error { border-color: var(--dan) !important; box-shadow: 0 0 0 3px rgba(220,38,38,.1) !important; }
.ep-textarea {
  width: 100%; display: block; padding: 10px 12px; border: 1.5px solid var(--g3);
  border-radius: var(--r); background: var(--g0); font-size: .875rem; color: var(--g9);
  resize: vertical; min-height: 110px; transition: border-color var(--t), box-shadow var(--t);
}
.ep-textarea:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 3px rgba(26,86,219,.12); }
.ep-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ep-checkbox-label { display: flex; align-items: center; gap: 7px; font-size: .82rem; cursor: pointer; color: var(--g7); }
.ep-link-muted { font-size: .82rem; color: var(--g5); }
.ep-link-muted:hover { color: var(--p); }
.ep-char-count { font-size: .68rem; color: var(--g5); text-align: right; margin-top: 3px; }
.ep-field-hint { font-size: .72rem; color: var(--g5); margin-top: 4px; }
/* Currency prefix input */
.ep-currency-wrap { position: relative; }
.ep-currency-prefix { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--g6); pointer-events: none; font-size: .875rem; }
.ep-pl-currency { padding-left: 28px !important; }
/* Form action row */
.ep-form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* ══════════════════════════ BADGES / STATUS ══════════════════════════════════ */
.ep-badge,.ep-tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 100px; font-size: .7rem; font-weight: 600; letter-spacing: .02em; }
.ep-badge-primary   { background: var(--pl);   color: var(--p); }
.ep-badge-success   { background: var(--sl);   color: #065f46; }
.ep-badge-warning   { background: #fef3c7;     color: #92400e; }
.ep-badge-danger    { background: #fee2e2;     color: #991b1b; }
.ep-badge-secondary { background: var(--g2);   color: var(--g7); }
.ep-tag { background: var(--g2); color: var(--g7); font-size: .68rem; }
.ep-status-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 100px; font-size: .7rem; font-weight: 600; white-space: nowrap; }
.ep-status-primary   { background: #dbeafe; color: #1e40af; }
.ep-status-success   { background: var(--sl); color: #065f46; }
.ep-status-warning   { background: #fef3c7; color: #92400e; }
.ep-status-danger    { background: #fee2e2; color: #991b1b; }
.ep-status-info      { background: #e0f2fe; color: #075985; }
.ep-status-secondary { background: var(--g2); color: var(--g6); }
/* Utility colour */
.ep-green { color: var(--s); }
.ep-red   { color: var(--dan); }
.ep-amount-green { color: var(--s); font-weight: 700; }
/* Push badge to right in flex row */
.ep-badge-push-right { margin-left: auto; align-self: flex-start; }

/* ══════════════════════════ ALERTS ══════════════════════════════════════════ */
.ep-alert { padding: 11px 14px; border-radius: var(--r); font-size: .875rem; border: 1px solid transparent; margin-bottom: 14px; }
.ep-alert-error   { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.ep-alert-success { background: var(--sl); color: #065f46; border-color: #6ee7b7; }
.ep-alert-info    { background: #e0f2fe; color: #075985; border-color: #7dd3fc; }
.ep-alert-warning { background: #fef3c7; color: #92400e; border-color: #fcd34d; }

/* ══════════════════════════ HEADER ══════════════════════════════════════════ */
.ep-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.96); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--g3);
  transition: transform .3s ease, box-shadow .3s ease;
}
.ep-header-hidden { transform: translateY(-100%); }
.ep-header-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.ep-logo { display: flex; align-items: center; flex-shrink: 0; }
.ep-logo img { height: 34px; width: auto; max-width: 160px; }
.ep-primary-nav { flex: 1; }
.ep-nav-menu { display: flex; align-items: center; gap: 2px; }
.ep-nav-menu > li { position: relative; }
.ep-nav-menu > li > a { display: flex; align-items: center; gap: 4px; padding: 7px 11px; border-radius: var(--r); font-size: .85rem; font-weight: 500; color: var(--g7); transition: all var(--t); }
.ep-nav-menu > li > a:hover,
.ep-nav-menu > li.current-menu-item > a { color: var(--p); background: var(--pl); }
.ep-dropdown { position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px; background: #fff; border: 1px solid var(--g3); border-radius: var(--rl); box-shadow: var(--shl); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all var(--t); z-index: 100; }
.ep-nav-menu > li:hover .ep-dropdown { opacity: 1; visibility: visible; transform: none; }
.ep-dropdown li a { display: block; padding: 8px 12px; border-radius: var(--r); font-size: .82rem; color: var(--g7); }
.ep-dropdown li a:hover { background: var(--g1); color: var(--p); }
.ep-header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.ep-header-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: var(--r); font-size: .82rem; font-weight: 500; color: var(--g7); transition: all var(--t); }
.ep-header-link:hover { background: var(--g1); color: var(--g9); }
.ep-header-link-label { display: none; }
.ep-header-user-btn { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 100px; font-size: .82rem; font-weight: 600; color: var(--g8); background: var(--g1); border: 1px solid var(--g3); transition: all var(--t); }
.ep-header-user-btn:hover { background: var(--g2); }
.ep-header-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.ep-header-icon-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--g6); transition: all var(--t); }
.ep-header-icon-btn:hover { background: #fee2e2; color: var(--dan); }
.ep-hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 38px; height: 38px; padding: 6px; border-radius: var(--r); }
.ep-hamburger span { display: block; width: 22px; height: 2px; background: var(--g7); border-radius: 2px; transition: all var(--t); }
.ep-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ep-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ep-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════ HERO ════════════════════════════════════════════ */
.ep-hero { background: linear-gradient(135deg,#0b1840 0%,#1646c8 52%,#0a6b4f 100%); position: relative; overflow: hidden; padding-bottom: 0; }
.ep-hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ep-hero-shape { position: absolute; border-radius: 50%; opacity: .06; }
.ep-hero-shape-1 { width: 700px; height: 700px; background: radial-gradient(circle,#fff,transparent); top: -250px; right: -150px; }
.ep-hero-shape-2 { width: 500px; height: 500px; background: radial-gradient(circle,#34d399,transparent); bottom: -100px; left: -80px; }
.ep-hero-grid { display: grid; grid-template-columns: 1fr 420px; gap: 52px; align-items: center; padding: 72px 0 56px; position: relative; z-index: 1; }
.ep-hero-content { color: #fff; }
.ep-hero-pill { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.13); color: #fff; border: 1px solid rgba(255,255,255,.22); padding: 6px 16px; border-radius: 100px; font-size: .78rem; font-weight: 600; margin-bottom: 22px; backdrop-filter: blur(8px); }
.ep-hero-h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.13; color: #fff; margin-bottom: 18px; }
.ep-hero-accent { color: #fbbf24; }
.ep-hero-sub { font-size: 1rem; color: rgba(255,255,255,.82); max-width: 460px; margin-bottom: 30px; line-height: 1.72; }
.ep-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.ep-hero-trust { display: flex; flex-wrap: wrap; gap: 13px 22px; }
.ep-hero-badge-item { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 500; color: rgba(255,255,255,.85); }
/* Calculator card */
.ep-hero-card-wrap { display: flex; align-items: flex-start; }
.ep-calculator-card { background: #fff; border-radius: var(--rx); padding: 26px; box-shadow: var(--shx); width: 100%; }
.ep-calc-header { margin-bottom: 18px; }
.ep-calc-header h3 { font-size: 1.05rem; color: var(--gA); margin-bottom: 3px; }
.ep-calc-header p { font-size: .78rem; color: var(--g5); }
.ep-calc-field-group { margin-bottom: 13px; }
.ep-calc-label { display: flex; align-items: center; justify-content: space-between; font-size: .75rem; font-weight: 600; color: var(--g7); margin-bottom: 5px; }
.ep-calc-words { font-size: .7rem; color: var(--g5); font-weight: 400; }
.ep-calc-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ep-pages-spinner { display: inline-flex; align-items: center; border: 1.5px solid var(--g3); border-radius: var(--r); overflow: hidden; height: 42px; }
.ep-spin-btn { width: 38px; height: 100%; background: var(--g1); border: none; font-size: 1.2rem; font-weight: 700; color: var(--g7); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--t); user-select: none; line-height: 1; }
.ep-spin-btn:hover { background: var(--g2); color: var(--p); }
.ep-spin-display { min-width: 44px; text-align: center; font-size: 1rem; font-weight: 700; color: var(--g9); padding: 0 6px; border-left: 1px solid var(--g2); border-right: 1px solid var(--g2); }
.ep-calc-price-box { background: var(--g1); border-radius: var(--r); padding: 13px; margin: 14px 0; }
.ep-calc-breakdown-row { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--g6); margin-bottom: 6px; }
.ep-calc-breakdown-row[hidden] { display: none; }
.ep-calc-total-row { display: flex; justify-content: space-between; align-items: center; font-size: 1rem; font-weight: 700; color: var(--gA); border-top: 1px solid var(--g3); padding-top: 9px; margin-top: 4px; }
.ep-calc-order-btn { background: var(--p); font-size: .875rem; margin-bottom: 9px; color: #fff !important; }
.ep-calc-order-btn:hover { background: var(--pd); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(26,86,219,.35); }
.ep-calc-secure { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: .7rem; color: var(--g5); }
/* Stats bar */
.ep-hero-stats-bar { background: rgba(0,0,0,.3); border-top: 1px solid rgba(255,255,255,.1); position: relative; z-index: 1; }
.ep-hero-stats-inner { display: grid; grid-template-columns: repeat(4,1fr); text-align: center; padding: 20px 0; }
.ep-hero-stat { padding: 10px; border-right: 1px solid rgba(255,255,255,.07); }
.ep-hero-stat:last-child { border-right: none; }
.ep-hero-stat strong { display: block; font-size: 1.65rem; font-weight: 800; font-family: var(--fh); color: #fff; line-height: 1; margin-bottom: 4px; }
.ep-hero-stat span { font-size: .72rem; color: rgba(255,255,255,.6); }

/* ══════════════════════════ SECTIONS ════════════════════════════════════════ */
/* How It Works */
.ep-steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; position: relative; }
.ep-steps-grid::before { content: ''; position: absolute; top: 44px; left: 12.5%; width: 75%; height: 2px; background: linear-gradient(90deg,var(--p),var(--s)); z-index: 0; }
.ep-step-card { text-align: center; position: relative; z-index: 1; background: #fff; border: 1.5px solid var(--g3); border-radius: var(--rl); padding: 26px 18px; transition: all var(--t); }
.ep-step-card:hover { box-shadow: var(--shl); border-color: var(--p); transform: translateY(-3px); }
.ep-step-number { width: 30px; height: 30px; background: var(--p); color: #fff; border-radius: 50%; font-size: .85rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--pl); }
.ep-step-icon-wrap { width: 52px; height: 52px; background: var(--pl); color: var(--p); border-radius: var(--rl); display: flex; align-items: center; justify-content: center; margin: 0 auto 13px; }
.ep-step-card h3 { font-size: .9rem; margin-bottom: 7px; }
.ep-step-card p { font-size: .8rem; color: var(--g6); line-height: 1.6; }
/* Services */
.ep-services-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.ep-service-card { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--g3); border-radius: var(--rl); padding: 20px 16px; transition: all var(--t); color: inherit; text-decoration: none; }
.ep-service-card:hover { border-color: var(--p); box-shadow: var(--shl); transform: translateY(-3px); color: inherit; }
.ep-service-icon-box { width: 48px; height: 48px; background: var(--pl); color: var(--p); border-radius: var(--r); display: flex; align-items: center; justify-content: center; margin-bottom: 13px; transition: all var(--t); }
.ep-service-card:hover .ep-service-icon-box { background: var(--p); color: #fff; }
.ep-service-title { font-size: .9rem; margin-bottom: 7px; }
.ep-service-desc { font-size: .78rem; color: var(--g6); margin-bottom: 14px; line-height: 1.6; flex: 1; }
.ep-service-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--g2); padding-top: 11px; }
.ep-service-price { font-size: .78rem; font-weight: 700; color: var(--s); }
.ep-service-cta { font-size: .78rem; font-weight: 600; color: var(--p); }
/* Writers */
.ep-writers-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.ep-writers-grid-lg { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 20px; }
.ep-writer-card { background: #fff; border: 1.5px solid var(--g3); border-radius: var(--rl); padding: 18px; transition: all var(--t); display: flex; flex-direction: column; gap: 11px; }
.ep-writer-card:hover { border-color: var(--p); box-shadow: var(--shl); transform: translateY(-2px); }
.ep-wc-top { display: flex; gap: 12px; align-items: flex-start; }
.ep-wc-avatar-wrap { position: relative; flex-shrink: 0; }
.ep-wc-avatar,.ep-writer-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--g2); }
.ep-wc-verified { position: absolute; bottom: 0; right: 0; width: 17px; height: 17px; background: var(--s); border-radius: 50%; color: #fff; font-size: .6rem; font-weight: 900; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.ep-writer-avatar-initials { background: linear-gradient(135deg,var(--p),var(--s)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; font-family: var(--fh); }
.ep-wc-meta { flex: 1; min-width: 0; }
.ep-wc-name,.ep-writer-name { font-size: .875rem; font-weight: 700; color: var(--gA); margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-wc-edu,.ep-writer-edu { font-size: .7rem; color: var(--g5); margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-wc-rating { display: flex; align-items: center; gap: 5px; }
.ep-wc-rating-num { font-size: .78rem; font-weight: 700; color: var(--gA); }
.ep-wc-orders { font-size: .7rem; color: var(--g5); }
.ep-wc-specialities { display: flex; flex-wrap: wrap; gap: 4px; }
.ep-spec-tag,.ep-spec-pill { background: linear-gradient(135deg,#ede9fe,#dbeafe); color: #4338ca; font-size: .66rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; }
.ep-wc-subjects { display: flex; flex-wrap: wrap; gap: 4px; }
.ep-subj-pill,.ep-subj-tag { background: var(--g1); border: 1px solid var(--g2); color: var(--g6); font-size: .66rem; padding: 2px 7px; border-radius: 100px; }
.ep-wc-stats { display: flex; justify-content: space-around; background: var(--g1); border-radius: var(--r); padding: 10px 6px; }
.ep-wc-stat { text-align: center; }
.ep-wc-stat strong { display: block; font-size: .9rem; font-weight: 800; color: var(--gA); font-family: var(--fh); line-height: 1; margin-bottom: 2px; }
.ep-wc-stat span { font-size: .65rem; color: var(--g5); }
.ep-wc-actions { display: flex; gap: 8px; }
.ep-wc-actions .ep-btn { flex: 1; justify-content: center; }
/* Compat */
.ep-writer-avatar-xl { width: 96px; height: 96px; font-size: 1.6rem; border-radius: 50%; }
.ep-writer-meta { flex: 1; min-width: 0; }
.ep-writer-rating { display: flex; align-items: center; gap: 2px; font-size: .75rem; color: var(--g6); }
.ep-writer-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.ep-writer-stats-row { display: flex; align-items: center; margin-bottom: 12px; background: var(--g1); border-radius: var(--r); overflow: hidden; }
.ep-writer-stat-item { flex: 1; text-align: center; padding: 9px 5px; }
.ep-writer-stat-item strong { display: block; font-size: .9rem; font-weight: 800; color: var(--gA); font-family: var(--fh); }
.ep-writer-stat-item span { font-size: .63rem; color: var(--g5); }
.ep-writer-stat-divider { width: 1px; height: 30px; background: var(--g3); }
.ep-writer-actions { display: flex; gap: 8px; }
.ep-writer-actions .ep-btn { flex: 1; justify-content: center; }
.ep-writer-badge { background: var(--pl); color: var(--p); font-size: .65rem; font-weight: 700; padding: 2px 7px; border-radius: 100px; }
.ep-writer-specialty { font-size: .78rem; font-weight: 600; color: var(--g7); }
.ep-writer-verified { position: absolute; bottom: -2px; right: -2px; width: 17px; height: 17px; background: var(--s); border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
/* Testimonials */
.ep-reviews-aggregate { display: flex; align-items: flex-start; gap: 44px; background: #fff; border: 1.5px solid var(--g3); border-radius: var(--rl); padding: 26px; margin-bottom: 36px; }
.ep-reviews-score { text-align: center; flex-shrink: 0; }
.ep-score-num { font-size: 3.2rem; font-weight: 800; font-family: var(--fh); color: var(--gA); display: block; line-height: 1; }
.ep-score-stars { display: flex; justify-content: center; gap: 3px; margin: 8px 0; }
.ep-score-count { font-size: .72rem; color: var(--g5); }
.ep-reviews-bars { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.ep-review-bar { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--g6); }
.ep-bar-track { flex: 1; height: 7px; background: var(--g2); border-radius: 100px; overflow: hidden; }
.ep-bar-fill { height: 100%; background: var(--acc); border-radius: 100px; }
.ep-review-bar span:first-child { width: 20px; text-align: right; }
.ep-review-bar span:last-child { width: 30px; }
.ep-testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.ep-testimonial-card { background: #fff; border: 1.5px solid var(--g3); border-radius: var(--rl); padding: 22px; transition: all var(--t); }
.ep-testimonial-card:hover { border-color: var(--p); box-shadow: var(--sh); }
.ep-testimonial-top { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.ep-testimonial-avatar { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg,var(--p),var(--s)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800; }
.ep-testimonial-name { font-size: .875rem; font-weight: 700; color: var(--gA); }
.ep-testimonial-service { font-size: .7rem; color: var(--g5); margin-top: 1px; }
.ep-testimonial-stars,.ep-testimonial-stars-right { display: flex; gap: 2px; margin-left: auto; }
.ep-testimonial-text { font-size: .85rem; color: var(--g7); line-height: 1.7; font-style: italic; margin-bottom: 11px; }
.ep-testimonial-verified { display: flex; align-items: center; gap: 4px; font-size: .68rem; color: var(--s); font-weight: 600; }
/* Guarantees */
.ep-guarantees-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.ep-guarantee-card { background: #fff; border: 1.5px solid var(--g3); border-radius: var(--rl); padding: 24px 20px; transition: all var(--t); }
.ep-guarantee-card:hover { box-shadow: var(--sh); border-color: var(--g4); transform: translateY(-2px); }
.ep-guarantee-icon { width: 50px; height: 50px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; margin-bottom: 13px; }
.ep-guarantee-card h3 { font-size: .9rem; margin-bottom: 7px; }
.ep-guarantee-card p { font-size: .8rem; color: var(--g6); line-height: 1.65; }
/* Pricing */
.ep-pricing-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; align-items: start; }
.ep-pricing-card { background: #fff; border: 1.5px solid var(--g3); border-radius: var(--rl); padding: 26px 22px; position: relative; transition: all var(--t); }
.ep-pricing-card:hover { border-color: var(--g4); box-shadow: var(--sh); }
.ep-pricing-popular { border-color: var(--p); box-shadow: 0 0 0 2px var(--p); }
.ep-popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--p); color: #fff; font-size: .68rem; font-weight: 700; padding: 4px 13px; border-radius: 100px; white-space: nowrap; }
.ep-pricing-level { font-size: .75rem; font-weight: 700; color: var(--g5); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 9px; }
.ep-pricing-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 9px; }
.ep-price-from { font-size: .75rem; color: var(--g5); }
.ep-price-amount { font-size: 1.9rem; font-weight: 800; font-family: var(--fh); color: var(--gA); }
.ep-price-per { font-size: .8rem; color: var(--g5); }
.ep-pricing-desc { font-size: .8rem; color: var(--g6); margin-bottom: 18px; line-height: 1.6; }
.ep-pricing-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.ep-pricing-features li { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--g7); }
.ep-pricing-features svg { color: var(--s); flex-shrink: 0; }
.ep-pricing-note { text-align: center; margin-top: 22px; font-size: .8rem; color: var(--g5); display: flex; align-items: flex-start; justify-content: center; gap: 6px; line-height: 1.6; }
/* FAQ */
.ep-faq-container { max-width: 780px; margin-inline: auto; }
.ep-faq-list { border: 1.5px solid var(--g3); border-radius: var(--rl); overflow: hidden; }
.ep-faq-item { border-bottom: 1px solid var(--g2); }
.ep-faq-item:last-child { border-bottom: none; }
.ep-faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; background: #fff; text-align: left; font-size: .875rem; font-weight: 600; color: var(--g8); cursor: pointer; transition: all var(--t); border: none; }
.ep-faq-question:hover { background: var(--g1); color: var(--p); }
.ep-faq-question[aria-expanded="true"] { color: var(--p); background: var(--pl); }
.ep-faq-icon { transition: transform .25s ease; flex-shrink: 0; color: var(--g5); }
.ep-faq-icon.ep-faq-open { transform: rotate(180deg); color: var(--p); }
.ep-faq-answer { padding: 0 20px 16px; background: #fff; }
.ep-faq-answer p { font-size: .85rem; color: var(--g6); line-height: 1.7; }
.ep-faq-more { text-align: center; margin-top: 24px; font-size: .875rem; color: var(--g5); }
.ep-faq-more a { color: var(--p); font-weight: 600; }
/* CTA */
.ep-cta-section { background: linear-gradient(135deg,#0b1840 0%,#1646c8 60%,#0a6b4f 100%); padding: 72px 0; }
.ep-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 44px; flex-wrap: wrap; }
.ep-cta-text h2 { color: #fff; font-size: clamp(1.4rem,2.8vw,2rem); margin-bottom: 10px; }
.ep-cta-text p,.ep-cta-subtitle { color: rgba(255,255,255,.8); font-size: .975rem; margin-bottom: 16px; }
.ep-cta-badges { display: flex; flex-direction: column; gap: 5px; }
.ep-cta-badges span { font-size: .82rem; color: rgba(255,255,255,.72); }
.ep-cta-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; flex-shrink: 0; }

/* ══════════════════════════ FOOTER ══════════════════════════════════════════ */
.ep-site-footer { background: var(--gA); color: var(--g5); padding: 56px 0 0; }
.ep-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.07); }
.ep-footer-logo { display: block; margin-bottom: 11px; }
.ep-footer-logo img { height: 30px; width: auto; filter: brightness(0) invert(1) opacity(.88); }
.ep-footer-tagline { font-size: .82rem; line-height: 1.65; margin-bottom: 13px; }
.ep-footer-trust { display: flex; flex-direction: column; gap: 5px; margin-bottom: 15px; }
.ep-footer-trust span { display: flex; align-items: center; gap: 6px; font-size: .78rem; }
.ep-footer-trust svg { color: var(--s); flex-shrink: 0; }
.ep-footer-payments { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ep-footer-payments img { height: 18px; opacity: .45; filter: grayscale(1) brightness(2); }
.ep-footer-heading { color: #fff; font-size: .8rem; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .07em; }
.ep-footer-links { display: flex; flex-direction: column; gap: 8px; }
.ep-footer-links a { font-size: .82rem; color: var(--g5); transition: color var(--t); }
.ep-footer-links a:hover { color: #fff; }
.ep-footer-bottom { padding: 18px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.ep-footer-copy { font-size: .72rem; }
.ep-footer-copy a { color: var(--g5); }
.ep-footer-disclaimer { font-size: .7rem; color: var(--g6); }

/* ══════════════════════════ MODAL / AUTH ════════════════════════════════════ */
.ep-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ep-modal[hidden] { display: none !important; }
.ep-modal:not([hidden]) { display: flex !important; }
.ep-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.52); backdrop-filter: blur(4px); }
.ep-modal-box { position: relative; z-index: 1; background: #fff; border-radius: var(--rx); width: 100%; max-width: 420px; padding: 28px; box-shadow: var(--shx); animation: ep-modal-in .2s ease; }
.ep-modal-box-lg { max-width: 720px; }
.ep-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
@keyframes ep-modal-in { from { opacity: 0; transform: translateY(-12px) scale(.97); } }
.ep-modal-x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; background: var(--g1); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--g6); cursor: pointer; transition: all var(--t); }
.ep-modal-x:hover { background: var(--g2); color: var(--gA); }
.ep-auth-logo { text-align: center; margin-bottom: 18px; }
.ep-auth-logo img { height: 28px; margin-inline: auto; }
.ep-modal-tabs { display: flex; gap: 2px; margin-bottom: 20px; border-bottom: 2px solid var(--g2); }
.ep-modal-tab { flex: 1; padding: 9px; background: none; border: none; font-size: .875rem; font-weight: 600; color: var(--g5); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--t); }
.ep-modal-tab.active { color: var(--p); border-bottom-color: var(--p); }
.ep-modal-panel { display: none; }
.ep-modal-panel.active { display: block; }
.ep-auth-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.ep-auth-legal { font-size: .72rem; color: var(--g5); text-align: center; margin-top: 10px; }

/* ══════════════════════════ DASHBOARD ═══════════════════════════════════════ */
.ep-dashboard { background: var(--g1); min-height: 70vh; }
.ep-dash-wrap { display: grid; grid-template-columns: 252px 1fr; min-height: calc(100vh - 66px); align-items: start; }
.ep-dash-sidebar {
  background: #fff; border-right: 1px solid var(--g3); display: flex; flex-direction: column;
  position: sticky; top: 66px; height: calc(100vh - 66px); overflow-y: auto;
}
.ep-dash-sidebar::-webkit-scrollbar { width: 3px; }
.ep-dash-sidebar::-webkit-scrollbar-thumb { background: var(--g3); border-radius: 2px; }
.ep-dash-user { display: flex; align-items: center; gap: 10px; padding: 18px; background: linear-gradient(135deg,var(--pd),var(--p)); }
.ep-dash-avatar { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); object-fit: cover; flex-shrink: 0; }
.ep-dash-avatar-wrap { position: relative; flex-shrink: 0; }
.ep-dash-avatar-status { width: 9px; height: 9px; border-radius: 50%; background: #10b981; border: 2px solid #fff; position: absolute; bottom: 0; right: 0; }
.ep-dash-username { font-size: .875rem; font-weight: 700; color: #fff; }
.ep-dash-role { font-size: .68rem; color: rgba(255,255,255,.65); text-transform: capitalize; }
.ep-dash-nav { padding: 10px 8px; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.ep-dash-nav-item { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: var(--r); font-size: .82rem; font-weight: 500; color: var(--g7); transition: all var(--t); text-decoration: none; }
.ep-dash-nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.ep-dash-nav-item:hover { background: var(--g1); color: var(--p); }
.ep-dash-nav-item.active { background: var(--pl); color: var(--p); font-weight: 700; }
.ep-dash-badge { margin-left: auto; background: var(--dan); color: #fff; font-size: .6rem; font-weight: 700; min-width: 17px; height: 17px; border-radius: 100px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.ep-dash-sidebar-footer { padding: 10px 8px; border-top: 1px solid var(--g2); display: flex; flex-direction: column; gap: 2px; }
.ep-dash-footer-link,.ep-dash-back-link,.ep-dash-logout-link { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: var(--r); font-size: .8rem; color: var(--g6); transition: all var(--t); text-decoration: none; }
.ep-dash-footer-link:hover,.ep-dash-back-link:hover { background: var(--g1); color: var(--g9); }
.ep-dash-logout-link:hover,.ep-dash-logout:hover { background: #fee2e2; color: var(--dan); }
.ep-dash-toggle { display: none; }
.ep-dash-main { padding: 24px 28px 48px; min-height: calc(100vh - 66px); }
.ep-dash-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }
.ep-stat-card { background: #fff; border: 1.5px solid var(--g3); border-radius: var(--rl); padding: 16px; display: flex; align-items: center; gap: 12px; }
.ep-stat-icon { width: 42px; height: 42px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ep-stat-icon-blue   { background: #dbeafe; color: #1e40af; }
.ep-stat-icon-green  { background: var(--sl); color: #065f46; }
.ep-stat-icon-orange { background: #ffedd5; color: #c2410c; }
.ep-stat-icon-purple { background: #ede9fe; color: #6d28d9; }
.ep-stat-value { display: block; font-size: 1.25rem; font-weight: 800; font-family: var(--fh); color: var(--gA); line-height: 1; margin-bottom: 3px; }
.ep-stat-label { font-size: .68rem; color: var(--g5); font-weight: 500; }
.ep-dash-card { background: #fff; border: 1.5px solid var(--g3); border-radius: var(--rx); padding: 20px; margin-bottom: 16px; }
.ep-dash-card:last-child { margin-bottom: 0; }
.ep-dash-card-mt { margin-top: 18px; }
.ep-dash-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.ep-dash-card-header h2 { font-size: .975rem; margin: 0; }
.ep-dash-header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ep-dash-search { position: relative; }
.ep-dash-search svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--g5); pointer-events: none; }
.ep-dash-search-input { padding: 7px 10px 7px 32px; border: 1.5px solid var(--g3); border-radius: var(--r); font-size: .8rem; background: #fff; transition: all var(--t); width: 180px; }
.ep-dash-search-input:focus { outline: none; border-color: var(--p); width: 220px; }
.ep-select-sm { padding: 7px 26px 7px 10px; font-size: .8rem; }
.ep-orders-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ep-orders-table { width: 100%; border-collapse: collapse; }
.ep-orders-table th { padding: 9px 11px; text-align: left; font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--g5); background: var(--g1); border-bottom: 2px solid var(--g2); white-space: nowrap; }
.ep-orders-table td { padding: 11px; font-size: .82rem; color: var(--g7); border-bottom: 1px solid var(--g2); vertical-align: middle; }
.ep-orders-table tr:last-child td { border-bottom: none; }
.ep-orders-table tr:hover td { background: var(--g1); }
.ep-td-topic { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-empty-state { text-align: center; padding: 48px 20px; color: var(--g5); }
.ep-empty-state svg { margin: 0 auto 13px; opacity: .3; display: block; }
.ep-empty-state h3 { font-size: .975rem; color: var(--g7); margin-bottom: 6px; }
.ep-empty-state p { font-size: .82rem; margin-bottom: 16px; }
/* Bid form */
.ep-bid-heading { font-size: .975rem; margin-bottom: 16px; }
/* Payout card */
.ep-payout-card { margin-top: 16px; }
.ep-payout-card--available { border: 2px solid var(--s); }
.ep-payout-heading { font-size: .975rem; margin-bottom: 12px; }
.ep-payout-desc { color: var(--g6); font-size: .82rem; margin-bottom: 12px; }
.ep-empty-desc { color: var(--g5); font-size: .82rem; }
.ep-section-subheading { margin: 20px 0 12px; font-size: .975rem; }
.ep-earn-val { color: var(--s); font-weight: 700; }
.ep-label-optional { font-weight: 400; color: var(--g4); }
.ep-writer-apply-desc { color: var(--g6); margin-bottom: 16px; font-size: .875rem; }
/* Notifications */
.ep-notif-list { display: flex; flex-direction: column; }
.ep-notif-item { display: flex; align-items: flex-start; gap: 13px; padding: 13px 14px; border-radius: var(--r); transition: background var(--t); }
.ep-notif-item:hover { background: var(--g1); }
.ep-notif-unread { background: var(--pl); }
.ep-notif-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ep-notif-icon-success { background: var(--sl); color: var(--s); }
.ep-notif-icon-info    { background: #e0f2fe; color: #0369a1; }
.ep-notif-icon-warning { background: #fef3c7; color: #92400e; }
.ep-notif-icon-error   { background: #fee2e2; color: var(--dan); }
.ep-notif-body { flex: 1; min-width: 0; }
.ep-notif-title { font-size: .875rem; font-weight: 700; color: var(--gA); margin-bottom: 2px; }
.ep-notif-message { font-size: .8rem; color: var(--g6); line-height: 1.5; }
.ep-notif-time { font-size: .67rem; color: var(--g4); margin-top: 3px; }
/* Available orders */
.ep-available-orders { display: grid; grid-template-columns: repeat(auto-fill,minmax(290px,1fr)); gap: 14px; }
.ep-avail-card { background: #fff; border: 1.5px solid var(--g3); border-radius: var(--rl); padding: 16px; transition: all var(--t); display: flex; flex-direction: column; gap: 10px; }
.ep-avail-card:hover { border-color: var(--p); box-shadow: var(--sh); }
.ep-avail-header { display: flex; justify-content: space-between; align-items: flex-start; }
.ep-avail-budget-label { font-size: .63rem; color: var(--g5); display: block; }
.ep-avail-budget strong { font-size: 1.05rem; color: var(--s); }
.ep-avail-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.ep-avail-meta span { display: flex; align-items: center; gap: 4px; font-size: .73rem; color: var(--g6); }
.ep-avail-excerpt { font-size: .8rem; color: var(--g6); line-height: 1.55; margin: 0; }
.ep-avail-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.ep-avail-bids { font-size: .7rem; color: var(--g5); }
/* Earnings */
.ep-earnings-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 20px; background: linear-gradient(135deg,var(--pd),var(--p)); border-radius: var(--rl); margin-bottom: 18px; color: #fff; }
.ep-earn-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; opacity: .75; margin-bottom: 7px; }
.ep-earn-amount { font-size: 2.1rem; font-weight: 900; font-family: var(--fh); }
.ep-earn-stats { display: flex; gap: 18px; align-items: center; }
.ep-earn-stat { text-align: center; }
.ep-earn-stat-val { font-size: 1.3rem; font-weight: 800; font-family: var(--fh); }
.ep-earn-stat-label { font-size: .66rem; opacity: .75; }
.ep-earn-info-box { display: flex; align-items: flex-start; gap: 9px; background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--r); padding: 11px 13px; font-size: .8rem; color: #92400e; margin-bottom: 14px; }
/* Profile */
.ep-profile-layout { display: grid; grid-template-columns: 170px 1fr; gap: 26px; }
.ep-profile-avatar-col { text-align: center; }
.ep-profile-avatar-lg { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; display: block; border: 3px solid var(--g3); }
.ep-profile-meta { display: flex; gap: 14px; justify-content: center; margin-top: 13px; }
.ep-profile-meta-item { text-align: center; }
.ep-profile-meta-item strong { display: block; font-size: .975rem; font-weight: 800; color: var(--gA); }
.ep-profile-meta-item span { font-size: .67rem; color: var(--g5); }
/* Affiliate */
.ep-affiliate-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; margin-bottom: 18px; }
.ep-aff-stat { background: var(--g1); border-radius: var(--r); padding: 14px; text-align: center; }
.ep-aff-stat-val { font-size: 1.35rem; font-weight: 800; color: var(--gA); font-family: var(--fh); }
.ep-aff-stat-label { font-size: .67rem; color: var(--g5); margin-top: 3px; }
.ep-aff-link-box { background: var(--g1); border-radius: var(--rl); padding: 16px; margin-bottom: 18px; }
.ep-aff-link-row { display: flex; gap: 8px; }
.ep-aff-link-row .ep-input { flex: 1; font-family: monospace; font-size: .8rem; }
.ep-aff-steps { display: flex; gap: 14px; }
.ep-aff-step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px; }
.ep-aff-step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--p); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .875rem; }
.ep-aff-step p { font-size: .8rem; color: var(--g6); margin: 0; line-height: 1.55; }
/* Chat */
.ep-chat-layout { display: grid; grid-template-columns: 260px 1fr; height: 500px; border: 1.5px solid var(--g3); border-radius: var(--rl); overflow: hidden; }
.ep-chat-sidebar { border-right: 1px solid var(--g2); overflow-y: auto; background: var(--g1); }
.ep-chat-item { padding: 12px 13px; cursor: pointer; border-bottom: 1px solid var(--g2); transition: background var(--t); }
.ep-chat-item:hover,.ep-chat-item.active { background: var(--pl); }
.ep-chat-item-top { display: flex; justify-content: space-between; margin-bottom: 2px; }
.ep-chat-item-title { font-size: .8rem; font-weight: 600; color: var(--g8); }
.ep-chat-item-time { font-size: .63rem; color: var(--g4); }
.ep-chat-item-preview { font-size: .72rem; color: var(--g5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-chat-main { display: flex; flex-direction: column; overflow: hidden; }
.ep-chat-select-prompt { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--g4); }
.ep-chat-messages-wrap { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.ep-chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ep-chat-compose { border-top: 1px solid var(--g2); padding: 10px 11px; display: flex; gap: 8px; align-items: flex-end; }
.ep-chat-compose .ep-input { flex: 1; resize: none; min-height: 38px; max-height: 100px; }
.ep-message { display: flex; flex-direction: column; max-width: 72%; }
.ep-message-mine { align-items: flex-end; align-self: flex-end; }
.ep-message-theirs { align-items: flex-start; align-self: flex-start; }
.ep-message-bubble { padding: 8px 12px; border-radius: 13px; font-size: .82rem; line-height: 1.55; word-break: break-word; }
.ep-message-mine .ep-message-bubble { background: var(--p); color: #fff; border-radius: 13px 13px 3px 13px; }
.ep-message-theirs .ep-message-bubble { background: var(--g2); color: var(--g9); border-radius: 13px 13px 13px 3px; }
.ep-msg-time { font-size: .62rem; color: var(--g4); margin-top: 2px; padding: 0 2px; }
/* Order detail log */
.ep-order-log { display: flex; flex-direction: column; gap: 12px; list-style: none; }
.ep-order-log-entry { display: flex; gap: 10px; align-items: flex-start; }
.ep-log-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--p); margin-top: 6px; flex-shrink: 0; }
.ep-log-note { font-size: .82rem; color: var(--g8); }
.ep-log-time { font-size: .7rem; color: var(--g5); margin-top: 2px; }

/* ══════════════════════════ ORDER PAGE ══════════════════════════════════════ */
/* Core classes referenced by order.php inline CSS */
.ep-order-steps-nav { display: none; }
.ep-coupon-row { display: flex; gap: 8px; }
.ep-coupon-row .ep-input { flex: 1; }
.ep-order-step[hidden] { display: none !important; }
.ep-order-step:not([hidden]) { display: block !important; }

/* ══════════════════════════ PAYMENT ═════════════════════════════════════════ */
.ep-payment-methods { display: flex; gap: 9px; margin-bottom: 14px; flex-wrap: wrap; }
.ep-payment-method-btn { flex: 1; min-width: 110px; padding: 9px 13px; border: 2px solid var(--g3); border-radius: var(--r); background: #fff; cursor: pointer; transition: all .15s; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: .8rem; font-weight: 600; color: var(--g7); font-family: inherit; }
.ep-payment-method-btn:hover { border-color: var(--p); color: var(--p); }
.ep-payment-method-btn.active { border-color: var(--p); background: var(--pl); color: var(--p); box-shadow: 0 0 0 1px var(--p); }
.ep-stripe-panel,.ep-paypal-panel { display: none; }
.ep-stripe-panel.active,.ep-paypal-panel.active { display: block; }
.ep-paypal-btn-wrap { text-align: center; padding: 8px 0; }

/* ══════════════════════════ WRITERS / BLOG PAGES ════════════════════════════ */
.ep-writers-page-inner { padding-top: 32px; }
.ep-writers-filters { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.ep-filter-group { display: flex; align-items: center; gap: 7px; }
.ep-filter-group label { font-size: .78rem; font-weight: 600; color: var(--g7); white-space: nowrap; }
.ep-filter-group .ep-select { width: auto; min-width: 140px; }
.ep-filter-count { margin-left: auto; font-size: .78rem; color: var(--g5); }
.ep-pagination { display: flex; justify-content: center; gap: 5px; margin-top: 32px; flex-wrap: wrap; }
.ep-page-link { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--r); font-size: .875rem; font-weight: 600; color: var(--g7); border: 1.5px solid var(--g2); transition: all var(--t); }
.ep-page-link:hover,.ep-page-link.active { background: var(--p); color: #fff !important; border-color: var(--p); }
.ep-writer-profile-page { padding: 48px 0; }
.ep-writer-profile-header { display: flex; gap: 26px; align-items: flex-start; background: #fff; border: 1.5px solid var(--g3); border-radius: var(--rx); padding: 26px; margin-bottom: 22px; }
.ep-writer-profile-avatar-wrap { position: relative; flex-shrink: 0; }
.ep-writer-profile-badge { position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); background: var(--s); color: #fff; font-size: .6rem; font-weight: 700; padding: 3px 8px; border-radius: 100px; white-space: nowrap; }
.ep-writer-profile-name { font-size: 1.5rem; margin-bottom: 9px; }
.ep-writer-profile-expertise { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 13px; }
.ep-writer-profile-stats { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.ep-profile-stat { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--g7); }
.ep-writer-profile-actions { display: flex; gap: 9px; }
.ep-writer-profile-body { display: grid; grid-template-columns: 1fr 268px; gap: 20px; align-items: start; }
.ep-profile-section { background: #fff; border: 1.5px solid var(--g3); border-radius: var(--rl); padding: 18px; margin-bottom: 14px; }
.ep-profile-section h2 { font-size: .875rem; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--g2); }
.ep-writer-subjects { display: flex; flex-wrap: wrap; gap: 5px; }
.ep-writer-reviews { display: flex; flex-direction: column; gap: 11px; }
.ep-review-card { border: 1px solid var(--g2); border-radius: var(--r); padding: 12px; }
.ep-review-header { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }
.ep-review-author { display: flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 600; }
.ep-review-date { font-size: .68rem; color: var(--g4); margin-left: auto; }
.ep-review-text { font-size: .8rem; color: var(--g7); line-height: 1.6; font-style: italic; }
.ep-writer-profile-cta-card { background: #fff; border: 1.5px solid var(--g3); border-radius: var(--rx); padding: 18px; position: sticky; top: 80px; text-align: center; }
.ep-writer-guarantees { display: flex; flex-direction: column; gap: 7px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--g2); }
.ep-writer-guarantees div { display: flex; align-items: center; gap: 6px; font-size: .7rem; color: var(--g6); }
.ep-writer-guarantees svg { color: var(--s); }
.ep-content-wrap { display: grid; grid-template-columns: 1fr 268px; gap: 30px; max-width: var(--fw); margin-inline: auto; padding: 48px 24px; }
.ep-sidebar { display: flex; flex-direction: column; gap: 18px; }
.ep-sidebar-widget { background: #fff; border: 1.5px solid var(--g3); border-radius: var(--rl); padding: 16px; }
.ep-sidebar-widget h3 { font-size: .875rem; margin-bottom: 11px; padding-bottom: 9px; border-bottom: 1px solid var(--g2); }
.ep-blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.ep-blog-card { background: #fff; border: 1.5px solid var(--g3); border-radius: var(--rl); overflow: hidden; transition: all var(--t); }
.ep-blog-card:hover { box-shadow: var(--shl); transform: translateY(-2px); }
.ep-blog-thumb { display: block; overflow: hidden; aspect-ratio: 16/9; background: var(--g1); }
.ep-blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ep-blog-card:hover .ep-blog-thumb img { transform: scale(1.04); }
.ep-blog-body { padding: 16px; }
.ep-blog-meta { display: flex; gap: 6px; font-size: .7rem; color: var(--g5); margin-bottom: 7px; align-items: center; }
.ep-blog-title { font-size: .925rem; margin-bottom: 7px; line-height: 1.4; }
.ep-blog-title a { color: var(--gA); }
.ep-blog-title a:hover { color: var(--p); }
.ep-blog-excerpt { font-size: .8rem; color: var(--g6); margin-bottom: 11px; line-height: 1.6; }
.ep-blog-link { font-size: .8rem; font-weight: 600; color: var(--p); }
.ep-article-hero-img { border-radius: var(--rl); overflow: hidden; margin-bottom: 22px; }
.ep-article-meta { display: flex; gap: 11px; font-size: .7rem; color: var(--g5); margin-bottom: 9px; flex-wrap: wrap; }
.ep-article-title { font-size: clamp(1.35rem,2.8vw,1.85rem); margin-bottom: 18px; }
.ep-article-content { font-size: .95rem; line-height: 1.8; color: var(--g8); }
.ep-article-content h2,.ep-article-content h3 { margin: 26px 0 10px; }
.ep-article-content p { margin-bottom: 13px; }
.ep-article-content ul,.ep-article-content ol { padding-left: 20px; margin-bottom: 13px; }
.ep-article-content ul { list-style: disc; }
.ep-article-content ol { list-style: decimal; }
.ep-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 28px; }
.ep-post-nav-item { background: var(--g1); border: 1.5px solid var(--g2); border-radius: var(--rl); padding: 13px; }
.ep-post-nav-label { font-size: .68rem; color: var(--g5); margin-bottom: 3px; }
.ep-post-nav-title { font-size: .8rem; font-weight: 600; color: var(--g8); }
.ep-page-hero { background: linear-gradient(135deg,var(--pd),var(--p)); padding: 48px 0; text-align: center; color: #fff; }
.ep-page-hero h1 { color: #fff; font-size: clamp(1.4rem,3vw,2rem); margin-bottom: 8px; }
.ep-page-hero p { color: rgba(255,255,255,.8); }
.ep-404-wrap { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 40px 20px; }
.ep-404-content { text-align: center; }
.ep-404-num { font-size: clamp(5rem,15vw,9rem); font-weight: 900; font-family: var(--fh); color: var(--g2); line-height: 1; margin-bottom: 13px; }
.ep-404-content h1 { font-size: 1.7rem; margin-bottom: 9px; }
.ep-404-content p { color: var(--g5); margin-bottom: 24px; }
.ep-404-actions { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; }
.ep-breadcrumb-list { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; list-style: none; margin-bottom: 18px; }
.ep-breadcrumb-list li { font-size: .73rem; }
.ep-breadcrumb-list a { color: var(--g5); }
.ep-breadcrumb-list a:hover { color: var(--p); }
.ep-breadcrumb-sep { color: var(--g3); padding: 0 2px; }

/* ══════════════════════════ TOAST & ANIMATIONS ══════════════════════════════ */
.ep-toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 99999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; max-width: 340px; width: calc(100vw - 40px); }
.ep-toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--rl); font-size: .875rem; font-weight: 600; color: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.2); animation: ep-toast-in .25s ease; font-family: var(--fb); pointer-events: all; }
.ep-toast-success { background: #059669; }
.ep-toast-error   { background: var(--dan); }
.ep-toast-warning { background: #d97706; }
.ep-toast-info    { background: var(--p); }
@keyframes ep-toast-in  { from { opacity: 0; transform: translateX(20px); } }
@keyframes ep-toast-out { to   { opacity: 0; transform: translateX(20px); } }
@keyframes ep-spin     { to { transform: rotate(360deg); } }
@keyframes ep-pulse    { 0%,100% { box-shadow: 0 0 0 3px var(--sl); } 50% { box-shadow: 0 0 0 6px rgba(14,159,110,.08); } }
.ep-reveal-pending { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.ep-reveal-done    { opacity: 1 !important; transform: translateY(0) !important; }
.ep-fi-spin { width: 12px; height: 12px; border: 2px solid var(--p); border-top-color: transparent; border-radius: 50%; animation: ep-spin 1s linear infinite; flex-shrink: 0; }
body.ep-modal-open { overflow: hidden; }


/* ══════════════════════════ MICRO UTILITIES ═════════════════════════════════ */
.ep-coupon-input { text-transform: uppercase; letter-spacing: .08em; }
.ep-paypal-note  { text-align: center; font-size: .72rem; color: var(--g5); margin-top: 8px; }

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — One clean cascade, no duplicates
   ══════════════════════════════════════════════════════════════════════════════ */

/* Hamburger hidden on desktop */
@media (min-width: 901px) {
  .ep-hamburger { display: none !important; }
  .ep-header-link-label { display: block; }
}

/* ── 1100px ────────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ep-services-grid     { grid-template-columns: repeat(2,1fr); }
  .ep-writers-grid-lg   { grid-template-columns: repeat(3,1fr); }
  .ep-footer-grid       { grid-template-columns: 1fr 1fr; gap: 30px; }
  .ep-affiliate-stats-grid { grid-template-columns: repeat(2,1fr); }
  .ep-hero-grid         { gap: 36px; }
  .ep-dash-stats        { grid-template-columns: repeat(2,1fr); }
}

/* ── 960px ─────────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .ep-hero-grid          { grid-template-columns: 1fr; padding: 52px 0 44px; text-align: center; }
  .ep-hero-card-wrap     { display: none; }
  .ep-hero-ctas          { justify-content: center; }
  .ep-hero-trust         { justify-content: center; }
  .ep-hero-stats-inner   { grid-template-columns: repeat(2,1fr); }
  .ep-steps-grid         { grid-template-columns: repeat(2,1fr); }
  .ep-steps-grid::before { display: none; }
  .ep-testimonials-grid  { grid-template-columns: repeat(2,1fr); }
  .ep-reviews-aggregate  { flex-direction: column; gap: 18px; }
  .ep-pricing-cards      { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .ep-cta-inner          { flex-direction: column; text-align: center; }
  .ep-cta-actions        { align-items: center; }
  .ep-writer-profile-body { grid-template-columns: 1fr; }
  .ep-writer-profile-cta-card { position: static; }
  .ep-post-nav           { grid-template-columns: 1fr; }
  /* Dashboard: sidebar becomes drawer */
  .ep-dash-wrap          { grid-template-columns: 1fr; }
  .ep-dash-sidebar {
    position: fixed; top: 0; left: -280px; height: 100vh;
    z-index: 2000; transition: left .3s; box-shadow: var(--shx); overflow-y: auto;
    border-right: none;
  }
  .ep-dash-sidebar.ep-dash-sidebar-open { left: 0; }
  .ep-dash-toggle {
    display: flex; align-items: center; justify-content: center;
    position: fixed; top: 74px; left: 14px; z-index: 1999;
    width: 38px; height: 38px; border-radius: var(--r);
    background: var(--p); color: #fff; border: none; cursor: pointer;
    box-shadow: var(--sh);
  }
  .ep-dash-main          { padding: 64px 20px 44px; }
  /* Order */
  .ep-order-sidebar      { position: static !important; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
  .ep-sidebar-writers    { display: none; }
  .ep-affiliate-stats-grid { grid-template-columns: repeat(2,1fr); }
}

/* ── 768px ─────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --fw: 100%; }
  .ep-section     { padding: 52px 0; }
  .ep-container   { padding-inline: 16px; }
  /* Mobile nav overlay */
  .ep-hamburger   { display: flex; }
  .ep-primary-nav {
    display: none; position: fixed; top: 66px; left: 0; right: 0; bottom: 0;
    background: #fff; z-index: 999; overflow-y: auto; padding: 10px 14px 28px;
    box-shadow: var(--shx);
  }
  .ep-primary-nav.open { display: block; }
  .ep-nav-menu    { flex-direction: column; gap: 2px; }
  .ep-nav-menu > li > a { padding: 11px 13px; font-size: .9rem; }
  .ep-dropdown    {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: var(--g1);
    border-radius: var(--r); padding: 4px 0 4px 12px; margin-top: 2px;
  }
  /* Grids */
  .ep-services-grid     { grid-template-columns: 1fr 1fr; }
  .ep-writers-grid,.ep-writers-grid-lg { grid-template-columns: repeat(2,1fr); }
  .ep-guarantees-grid   { grid-template-columns: repeat(2,1fr); }
  .ep-testimonials-grid { grid-template-columns: 1fr; }
  .ep-blog-grid         { grid-template-columns: 1fr; }
  .ep-footer-grid       { grid-template-columns: 1fr; gap: 26px; }
  .ep-footer-bottom     { flex-direction: column; gap: 6px; text-align: center; }
  /* Dashboard */
  .ep-dash-stats  { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .ep-stat-card   { padding: 13px; }
  .ep-stat-value  { font-size: 1.15rem; }
  /* Chat */
  .ep-chat-layout { grid-template-columns: 1fr; height: auto; }
  .ep-chat-sidebar { height: 180px; border-right: none; border-bottom: 1px solid var(--g2); }
  .ep-chat-messages { height: 300px; }
  /* Profile */
  .ep-profile-layout { grid-template-columns: 1fr; }
  .ep-profile-avatar-col { display: flex; align-items: center; gap: 16px; text-align: left; }
  /* Content */
  .ep-content-wrap { grid-template-columns: 1fr; padding: 32px 16px; }
  .ep-sidebar      { display: none; }
  /* Prevent iOS zoom on focus */
  .ep-input,.ep-select,.ep-textarea { font-size: 16px; }
  /* Header */
  .ep-header-actions { gap: 6px; }
  /* Table */
  .ep-orders-table    { font-size: .75rem; }
  .ep-orders-table th,.ep-orders-table td { padding: 8px 7px; }
  .ep-td-topic        { max-width: 80px; }
  /* Hero */
  .ep-hero-h1 { font-size: clamp(1.8rem,7vw,2.4rem); }
  /* Forms */
  .ep-form-row-2 { grid-template-columns: 1fr; }
  /* Affiliate */
  .ep-aff-steps { flex-direction: column; }
  .ep-affiliate-stats-grid { grid-template-columns: repeat(2,1fr); }
  /* Earnings */
  .ep-earn-stats { flex-wrap: wrap; gap: 12px; }
  .ep-earnings-overview { grid-template-columns: 1fr; }
  /* Writer chooser */
  .ep-writer-chooser-grid { grid-template-columns: repeat(2,1fr) !important; }
  /* Order sidebar */
  .ep-order-sidebar   { grid-template-columns: 1fr !important; }
  .ep-order-hero-trust { display: none; }
  .ep-available-orders { grid-template-columns: 1fr; }
}

/* ── 600px ─────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .ep-services-grid     { grid-template-columns: 1fr; }
  .ep-writers-grid,.ep-writers-grid-lg { grid-template-columns: 1fr; }
  .ep-guarantees-grid   { grid-template-columns: 1fr; }
  .ep-hero-trust        { display: none; }
  .ep-affiliate-stats-grid { grid-template-columns: 1fr 1fr; }
  .ep-writer-chooser-grid { grid-template-columns: 1fr !important; }
}

/* ── 480px ─────────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .ep-container { padding-inline: 14px; }
  .ep-section   { padding: 40px 0; }
  .ep-section-head { margin-bottom: 30px; }
  .ep-hero-ctas { flex-direction: column; align-items: stretch; }
  .ep-btn-xl,.ep-btn-lg { width: 100%; justify-content: center; }
  .ep-steps-grid { grid-template-columns: 1fr; }
  .ep-hero-stats-inner { grid-template-columns: 1fr 1fr; }
  .ep-dash-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ep-404-actions { flex-direction: column; align-items: center; }
  /* Modal slides up from bottom */
  .ep-modal { align-items: flex-end; padding: 0; }
  .ep-modal-box { max-width: 100%; border-radius: 20px 20px 0 0; padding: 22px 16px 32px; margin: 0; }
  .ep-orders-table-wrap { margin: 0 -14px; padding: 0 14px; }
  .ep-affiliate-stats-grid { grid-template-columns: 1fr 1fr; }
  /* Progress bar simplified */
  .ep-progress-step .ep-prog-label { display: none; }
  .ep-prog-line { min-width: 8px !important; }
  .ep-order-progress { gap: 0; }
  .ep-toast-container { bottom: 14px; right: 14px; width: calc(100vw - 28px); }
}

/* ── 380px ─────────────────────────────────────────────────────────────────── */
@media (max-width: 380px) {
  .ep-container { padding-inline: 12px; }
  .ep-hero-h1   { font-size: 1.55rem; }
  .ep-hero-pill { font-size: .7rem; padding: 4px 10px; }
  .ep-dash-stats { grid-template-columns: 1fr; }
  .ep-earn-amount { font-size: 1.75rem; }
  .ep-hero-stats-inner { grid-template-columns: 1fr 1fr; }
  .ep-affiliate-stats-grid { grid-template-columns: 1fr; }
}
