/*
 Theme Name: Rev Digital Products
 Theme URI: https://www.revolutionwp.com/products/free-digital-download-wordpress-theme
 Author: revolutionwp
 Author URI: https://www.revolutionwp.com/
 Description: Rev Digital Products is a digital-download storefront theme. The eProduct store UI (hero, product grid, product detail, account) is bundled directly into the theme and powered by the eproduct-store plugin (CPT, cart, payments, orders).
 Version: 2.4.6
 Requires at least: 5.5
 Tested up to: 7.0
 Requires PHP: 5.6
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: rev-digital-products
*/

/* ============================================================
   eProduct Store — Design System (bundled into the theme)
   ============================================================ */
:root {
  --ep-primary: #6366f1;
  --ep-primary-2: #8b5cf6;
  --ep-accent: #ec4899;
  --ep-ink: #0f172a;
  --ep-text: #334155;
  --ep-muted: #64748b;
  --ep-surface: #ffffff;
  --ep-bg: #f8fafc;
  --ep-border: #e6e9f2;
  --ep-radius: 18px;
  --ep-radius-sm: 12px;
  --ep-shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --ep-shadow-lg: 0 24px 60px rgba(99, 102, 241, .22);
  --ep-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --ep-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body.eproduct {
  margin: 0;
  font-family: var(--ep-font);
  color: var(--ep-text);
  background: var(--ep-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
.eproduct a { color: var(--ep-primary); }
.eproduct img { max-width: 100%; }

/* ---------- Buttons ---------- */
.ep-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border: 0; border-radius: 999px;
  background: var(--ep-gradient); background-size: 180% 180%;
  color: #fff !important; font-weight: 600; font-size: 15px; text-decoration: none !important;
  cursor: pointer; position: relative; overflow: hidden;
  box-shadow: 0 8px 20px rgba(99, 102, 241, .35);
  transition: transform .18s ease, box-shadow .18s ease, background-position .4s ease;
}
.ep-btn:hover { transform: translateY(-2px); box-shadow: var(--ep-shadow-lg); background-position: 100% 50%; }
.ep-btn:active { transform: translateY(0); }
.ep-btn--ghost { background: transparent; color: #fff !important; border: 1.5px solid rgba(255,255,255,.7); box-shadow: none; }
.ep-btn--ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.ep-btn--dark { background: var(--ep-ink); box-shadow: 0 8px 20px rgba(15,23,42,.2); }
.ep-btn--sm { padding: 9px 16px; font-size: 13px; }

/* ---------- Header / Nav ---------- */
.ep-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.78); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15,23,42,.06);
  transition: box-shadow .3s ease, background .3s ease;
}
.ep-header.is-scrolled { box-shadow: 0 8px 28px rgba(15,23,42,.08); background: rgba(255,255,255,.94); }
.ep-header__inner { max-width: 1180px; margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; gap: 20px; }
.ep-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; color: var(--ep-ink); }
.ep-brand__mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; object-fit: cover; box-shadow: 0 6px 16px rgba(99,102,241,.4); }
.ep-brand__name { background: var(--ep-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ep-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.ep-nav__link { color: var(--ep-text); text-decoration: none; font-weight: 500; font-size: 15px; position: relative; }
.ep-nav__link::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--ep-gradient); transition: width .25s ease; }
.ep-nav__link:hover::after { width: 100%; }
.ep-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.ep-burger span { width: 24px; height: 2px; background: var(--ep-ink); border-radius: 2px; transition: .3s; }

/* ---------- Layout ---------- */
.ep-main { min-height: 60vh; }
.ep-section { max-width: 1180px; margin: 56px auto; padding: 0 22px; }
.ep-section__head { text-align: center; max-width: 680px; margin: 0 auto 34px; }
.ep-section__head h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 10px; color: var(--ep-ink); letter-spacing: -.02em; }
.ep-section__head p { margin: 0; color: var(--ep-muted); font-size: 17px; }

/* ---------- Hero ---------- */
.ep-hero {
  position: relative; margin: 22px auto 0; max-width: 1180px;
  padding: 92px 28px 80px; border-radius: 30px; overflow: hidden;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899, #6366f1);
  background-size: 300% 300%; animation: epGradient 14s ease infinite;
  color: #fff; text-align: center; box-shadow: var(--ep-shadow-lg);
}
@keyframes epGradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.ep-hero::before, .ep-hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.14); filter: blur(8px); }
.ep-hero::before { width: 340px; height: 340px; top: -130px; left: -90px; }
.ep-hero::after { width: 280px; height: 280px; bottom: -120px; right: -70px; background: rgba(236,72,153,.35); }
.ep-hero > * { position: relative; z-index: 1; }
.ep-hero h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.05; margin: 0 0 18px; font-weight: 800; letter-spacing: -.025em; }
.ep-hero p { font-size: clamp(16px, 2.4vw, 20px); max-width: 640px; margin: 0 auto 14px; color: rgba(255,255,255,.92); }
.ep-hero__actions { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.ep-hero__badges { margin-top: 30px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,.9); }
.ep-hero__badges span { display: inline-flex; align-items: center; gap: 7px; }
.ep-hero__badges svg { width: 17px; height: 17px; }

/* ---------- Features ---------- */
.ep-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.ep-feature {
  background: var(--ep-surface); border: 1px solid var(--ep-border); border-radius: var(--ep-radius);
  padding: 30px 26px; box-shadow: var(--ep-shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.ep-feature:hover { transform: translateY(-6px); box-shadow: var(--ep-shadow-lg); }
.ep-feature__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(236,72,153,.15)); color: var(--ep-primary); margin-bottom: 16px;
}
.ep-feature__icon svg { width: 26px; height: 26px; }
.ep-feature h3 { margin: 0 0 8px; font-size: 18px; color: var(--ep-ink); }
.ep-feature p { margin: 0; color: var(--ep-muted); font-size: 15px; }

/* ---------- Product grid + cards ---------- */
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 24px; }
.ep-card {
  display: flex; flex-direction: column; background: var(--ep-surface); border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius); overflow: hidden; box-shadow: var(--ep-shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.ep-card:hover { transform: translateY(-8px); box-shadow: var(--ep-shadow-lg); border-color: rgba(99,102,241,.4); }
.ep-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #eef2ff, #fce7f3); display: grid; place-items: center; }
.ep-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ep-card:hover .ep-card__media img { transform: scale(1.08); }
.ep-card__placeholder { font-size: 48px; font-weight: 800; background: var(--ep-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; position: relative; z-index: 0; }
.ep-card__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(15,23,42,.82) 0%, rgba(15,23,42,.20) 45%, rgba(15,23,42,0) 65%); }
.ep-card__tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(15,23,42,.78); color: #fff; font-size: 12px; padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(4px); }
.ep-card__name { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px 16px; color: #fff; font-size: 17px; font-weight: 700; line-height: 1.25; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.ep-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.ep-card__title { font-size: 17px; font-weight: 600; color: var(--ep-ink); margin: 0 0 6px; line-height: 1.3; }
.ep-card__title a { color: inherit; text-decoration: none; }
.ep-card__excerpt { color: var(--ep-muted); font-size: 14px; line-height: 1.5; margin: 0 0 14px; flex: 1; }
.ep-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ep-price { font-size: 19px; font-weight: 700; color: var(--ep-ink); }
.ep-price--free { color: #10b981; }

/* ---------- Filters ---------- */
.ep-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.ep-search { flex: 1; min-width: 240px; position: relative; }
.ep-search input { width: 100%; padding: 13px 16px 13px 44px; border: 1px solid var(--ep-border); border-radius: 999px; font-size: 15px; background: var(--ep-surface); color: var(--ep-ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.ep-search input:focus { border-color: var(--ep-primary); box-shadow: 0 0 0 4px rgba(99,102,241,.15); }
.ep-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ep-muted); }
.ep-cats { display: flex; flex-wrap: wrap; gap: 10px; }
.ep-cat { padding: 9px 18px; border: 1px solid var(--ep-border); background: var(--ep-surface); color: var(--ep-text); cursor: pointer; border-radius: 999px; font-size: 14px; font-weight: 500; transition: all .18s ease; }
.ep-cat:hover { border-color: var(--ep-primary); color: var(--ep-primary); }
.ep-cat.active { background: var(--ep-gradient); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(99,102,241,.3); }

/* ---------- CTA ---------- */
.ep-cta { margin: 60px auto; max-width: 1180px; padding: 56px 28px; border-radius: 30px; text-align: center; color: #fff; background: linear-gradient(135deg, #0f172a, #312e81 60%, #6d28d9); box-shadow: var(--ep-shadow-lg); }
.ep-cta h2 { font-size: clamp(24px, 4vw, 36px); margin: 0 0 12px; }
.ep-cta p { color: rgba(255,255,255,.85); margin: 0 0 24px; font-size: 17px; }

/* ---------- Product detail ---------- */
.ep-single { max-width: 1080px; margin: 40px auto; padding: 0 22px; }
.ep-single__back { display: inline-block; margin-bottom: 18px; color: var(--ep-muted); text-decoration: none; font-size: 14px; }
.ep-single__back:hover { color: var(--ep-primary); }
.ep-single__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.ep-single__media { border-radius: var(--ep-radius); overflow: hidden; box-shadow: var(--ep-shadow); background: linear-gradient(135deg, #eef2ff, #fce7f3); }
.ep-single__media img { width: 100%; height: auto; display: block; }
.ep-single__placeholder { aspect-ratio: 4/3; display: grid; place-items: center; background: linear-gradient(135deg,#eef2ff,#fce7f3); color: var(--ep-primary); font-size: 64px; font-weight: 800; }
.ep-single__title { font-size: clamp(26px, 4vw, 38px); margin: 0 0 10px; color: var(--ep-ink); letter-spacing: -.02em; }
.ep-single__price { font-size: 30px; font-weight: 800; color: var(--ep-primary); margin: 0 0 18px; }
.ep-single__desc { color: var(--ep-text); line-height: 1.7; font-size: 16px; margin: 0 0 26px; }
.ep-single__meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.ep-badge { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--ep-bg); border: 1px solid var(--ep-border); color: var(--ep-muted); }
.ep-note { color: var(--ep-muted); font-size: 14px; margin-top: 16px; }

/* ---------- Generic blocks ---------- */
.ep-about, .ep-policy { max-width: 820px; margin: 44px auto; padding: 0 22px; }
.ep-about h1, .ep-policy h1 { font-size: 34px; color: var(--ep-ink); margin: 0 0 16px; }
.ep-about p, .ep-policy p { line-height: 1.8; font-size: 16px; }
.ep-login, .ep-register, .ep-checkout { max-width: 520px; margin: 50px auto; padding: 0 22px; }
.ep-login h1, .ep-register h1, .ep-checkout h1 { font-size: 30px; color: var(--ep-ink); margin: 0 0 18px; text-align: center; }
.ep-login form, .ep-register form { background: var(--ep-surface); border: 1px solid var(--ep-border); border-radius: var(--ep-radius); padding: 28px; box-shadow: var(--ep-shadow); }
.ep-login label, .ep-register label { display: block; font-size: 14px; font-weight: 600; color: var(--ep-ink); margin: 12px 0 6px; }
.ep-login input, .ep-register input, .ep-checkout input, .ep-checkout select { width: 100%; padding: 12px 14px; border: 1px solid var(--ep-border); border-radius: var(--ep-radius-sm); font-size: 15px; }
.ep-cart, .ep-orders { max-width: 760px; margin: 40px auto; padding: 0 22px; }
.ep-cart li, .ep-orders td, .ep-orders th { padding: 12px 10px; }
.ep-orders { width: 100%; border-collapse: collapse; }
.ep-orders th { text-align: left; border-bottom: 2px solid var(--ep-border); color: var(--ep-ink); }
.ep-orders tr + tr td { border-top: 1px solid var(--ep-border); }
.ep-total { font-size: 20px; font-weight: 700; color: var(--ep-ink); margin: 18px 0; }

/* ---------- Footer ---------- */
.ep-footer { margin-top: 70px; background: #0f172a; color: #cbd5e1; }
.ep-footer__inner { max-width: 1180px; margin: 0 auto; padding: 50px 22px 30px; display: grid; grid-template-columns: 1.4fr 2fr; gap: 30px; }
.ep-footer__brand { font-size: 20px; font-weight: 800; color: #fff; }
.ep-footer__brand p { font-size: 14px; color: #94a3b8; margin: 10px 0 0; max-width: 280px; }
.ep-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ep-footer__cols h4 { color: #fff; font-size: 14px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .06em; }
.ep-footer__cols a { display: block; color: #94a3b8; text-decoration: none; font-size: 14px; margin-bottom: 8px; }
.ep-footer__cols a:hover { color: #fff; }
.ep-footer__bar { border-top: 1px solid rgba(255,255,255,.08); text-align: center; padding: 18px; font-size: 13px; color: #64748b; }

/* ---------- Brand homepage: grid variants ---------- */
.ep-grid--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ep-grid--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 860px) { .ep-grid--3, .ep-grid--4 { grid-template-columns: 1fr; } }

/* ---------- Brand homepage: flat cards (for-you / features / trust) ---------- */
.ep-card--flat {
  background: var(--ep-surface); border: 1px solid var(--ep-border); border-radius: 18px;
  padding: 30px 26px; text-align: center; transition: transform .25s ease, box-shadow .25s ease;
}
.ep-card--flat:hover { transform: translateY(-6px); box-shadow: var(--ep-shadow-lg); }
.ep-card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--ep-bg); display: grid; place-items: center; margin: 0 auto 16px; color: var(--ep-primary); }
.ep-card__icon svg { width: 26px; height: 26px; }
.ep-card--flat h3 { font-size: 18px; margin: 0 0 8px; color: var(--ep-ink); }
.ep-card--flat p { margin: 0; color: var(--ep-muted); font-size: 15px; line-height: 1.6; }

/* ---------- Brand homepage: steps (how it works) ---------- */
.ep-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }
.ep-step { text-align: center; padding: 24px 16px; }
.ep-step__num {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 50%; background: var(--ep-gradient); color: #fff; font-weight: 800; font-size: 18px;
  margin-bottom: 16px;
}
.ep-step h3 { font-size: 17px; margin: 0 0 8px; color: var(--ep-ink); }
.ep-step p { margin: 0; color: var(--ep-muted); font-size: 15px; line-height: 1.6; }

/* ---------- Brand homepage: testimonials ---------- */
.ep-testimonials { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.ep-testimonial { background: var(--ep-surface); border: 1px solid var(--ep-border); border-radius: 18px; padding: 26px 24px; }
.ep-testimonial__stars { color: #f59e0b; font-size: 16px; letter-spacing: 2px; margin-bottom: 12px; }
.ep-testimonial p { margin: 0 0 14px; color: var(--ep-text); font-size: 15px; line-height: 1.6; font-style: italic; }
.ep-testimonial__author { font-size: 14px; font-weight: 600; color: var(--ep-ink); }

/* ---------- Brand homepage: FAQ ---------- */
.ep-faq { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.ep-faq__item { background: var(--ep-surface); border: 1px solid var(--ep-border); border-radius: 14px; padding: 22px 26px; }
.ep-faq__item h3 { font-size: 16px; margin: 0 0 8px; color: var(--ep-ink); }
.ep-faq__item p { margin: 0; color: var(--ep-muted); font-size: 15px; line-height: 1.6; }

/* ---------- CTA sub-text ---------- */
.ep-cta__sub { font-size: 14px !important; color: rgba(255,255,255,.65) !important; margin-top: 16px !important; margin-bottom: 0 !important; }

/* ---------- Reveal animation (progressive enhancement) ---------- */
html.js .ep-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
html.js .ep-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .ep-single__grid { grid-template-columns: 1fr; gap: 24px; }
  .ep-nav { position: absolute; top: 64px; right: 16px; left: 16px; flex-direction: column; align-items: stretch; gap: 12px; background: #fff; padding: 18px; border-radius: 16px; box-shadow: var(--ep-shadow-lg); display: none; }
  .ep-nav.is-open { display: flex; }
  .ep-burger { display: flex; }
  .ep-footer__inner { grid-template-columns: 1fr; }
}

/* ---------- Auth (login / register) ---------- */
.ep-auth {
  max-width: 940px; margin: 48px auto; display: grid; grid-template-columns: 1fr 1fr;
  border-radius: 28px; overflow: hidden; box-shadow: var(--ep-shadow-lg); background: var(--ep-surface);
}
.ep-auth__aside {
  position: relative; padding: 50px 42px; color: #fff; display: flex; flex-direction: column;
  background: linear-gradient(135deg, #6366f1, #8b5cf6 55%, #ec4899);
  min-height: 100%;
}
.ep-auth__aside::before, .ep-auth__aside::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.14); filter: blur(8px); }
.ep-auth__aside::before { width: 230px; height: 230px; top: -90px; right: -70px; }
.ep-auth__aside::after { width: 180px; height: 180px; bottom: -80px; left: -50px; background: rgba(236,72,153,.35); }
.ep-auth__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; margin-bottom: 26px; }
.ep-auth__brand .ep-brand__name { color: #fff; -webkit-text-fill-color: #fff; }
.ep-auth__aside h2 { font-size: 30px; margin: 0 0 12px; letter-spacing: -.02em; position: relative; z-index: 1; }
.ep-auth__aside p { color: rgba(255,255,255,.92); margin: 0 0 22px; font-size: 16px; position: relative; z-index: 1; }
.ep-auth__points { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.ep-auth__points li { position: relative; padding-left: 30px; font-size: 15px; color: rgba(255,255,255,.95); }
.ep-auth__points li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 12px; }
.ep-auth__card { padding: 50px 42px; display: flex; flex-direction: column; justify-content: center; }
.ep-auth__title { font-size: 28px; color: var(--ep-ink); margin: 0 0 6px; }
.ep-auth__sub { color: var(--ep-muted); margin: 0 0 26px; font-size: 15px; }
.ep-auth__sub a, .ep-auth__alt { color: var(--ep-primary); text-decoration: none; font-weight: 600; }
.ep-auth__form { display: grid; gap: 14px; }
.ep-auth__form label { font-size: 14px; font-weight: 600; color: var(--ep-ink); }
.ep-auth__form input[type="text"], .ep-auth__form input[type="email"], .ep-auth__form input[type="password"] {
  width: 100%; padding: 13px 15px; border: 1px solid var(--ep-border); border-radius: 12px;
  font-size: 15px; color: var(--ep-ink); outline: none; transition: border-color .2s, box-shadow .2s;
}
.ep-auth__form input:focus { border-color: var(--ep-primary); box-shadow: 0 0 0 4px rgba(99,102,241,.15); }
.ep-auth__submit { margin-top: 6px; justify-self: start; }
.ep-auth__alt { margin-top: 18px; font-size: 14px; display: inline-block; }
.ep-auth__note { color: var(--ep-muted); font-size: 14px; margin: 16px 0 0; }
/* ---------- Auth modal ---------- */
.ep-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.ep-modal.is-open { display: block; }
.ep-modal__overlay { position: absolute; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(4px); }
.ep-modal__dialog {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(920px, 94vw); max-height: 92vh; overflow: auto;
  background: var(--ep-surface); border-radius: 28px; box-shadow: var(--ep-shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
}
.ep-modal__close {
  position: absolute; top: 14px; right: 16px; z-index: 3;
  width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.85); color: var(--ep-ink); font-size: 22px; line-height: 1;
}
.ep-modal__body { padding: 44px 42px; display: flex; flex-direction: column; justify-content: center; }
.ep-modal__tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.ep-tab { flex: 1; padding: 11px; border: 1px solid var(--ep-border); background: #fff; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ep-text); cursor: pointer; transition: all .18s ease; }
.ep-tab.active { background: var(--ep-gradient); color: #fff; border-color: transparent; }
.ep-auth__msg { margin-top: 14px; font-size: 14px; border-radius: 10px; padding: 10px 12px; }
.ep-auth__msg.is-ok { background: #ecfdf5; color: #047857; }
.ep-auth__msg.is-err { background: #fef2f2; color: #b91c1c; }
.ep-auth__msg.is-info { background: #eef2ff; color: var(--ep-primary); }

@media (max-width: 760px) {
  .ep-auth { grid-template-columns: 1fr; margin: 24px auto; }
  .ep-auth__aside { display: none; }
  .ep-auth__card { padding: 40px 26px; }
  .ep-modal__dialog { grid-template-columns: 1fr; }
  .ep-modal__aside { display: none; }
  .ep-modal__body { padding: 40px 24px; }
}

/* Lock background scroll when modal open */
body.ep-modal-open { overflow: hidden; }
