/* Euphoric Portal — shared styles for portal, login, checkout and receipts. */
:root {
  --ep-brand: #8b5cf6;
  --ep-bg: #f5f5f8;
  --ep-surface: #ffffff;
  --ep-surface-2: #f0f0f5;
  --ep-text: #1d1f2b;
  --ep-muted: #6b6f82;
  --ep-border: #e3e3ec;
  --ep-ok: #15803d;
  --ep-ok-bg: #dcfce7;
  --ep-warn: #a16207;
  --ep-warn-bg: #fef3c7;
  --ep-err: #b91c1c;
  --ep-err-bg: #fee2e2;
  --ep-shadow: 0 1px 2px rgba(16, 18, 30, .06), 0 4px 16px rgba(16, 18, 30, .05);
  --ep-radius: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ep-bg: #0f1017;
    --ep-surface: #181a24;
    --ep-surface-2: #222532;
    --ep-text: #ececf3;
    --ep-muted: #9a9db0;
    --ep-border: #2c2f3d;
    --ep-ok: #4ade80;
    --ep-ok-bg: rgba(74, 222, 128, .12);
    --ep-warn: #fbbf24;
    --ep-warn-bg: rgba(251, 191, 36, .12);
    --ep-err: #f87171;
    --ep-err-bg: rgba(248, 113, 113, .12);
    --ep-shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body.ep {
  background: var(--ep-bg); color: var(--ep-text);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ep a { color: var(--ep-brand); text-decoration: none; }
.ep a:hover { text-decoration: underline; }
.ep h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 .25rem; letter-spacing: -.01em; }
.ep h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
.ep .ep-h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ep-muted); margin: 1.5rem 0 .6rem; }
.ep p { margin: 0 0 .75rem; }
.ep-muted { color: var(--ep-muted); }
.ep-small { font-size: .85rem; }
.ep-right { text-align: right; }
.ep-nowrap { white-space: nowrap; }
.ep-grow { flex: 1 1 auto; min-width: 0; }
.ep-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ep-between { justify-content: space-between; }
.ep-mb { margin-bottom: 1rem; }
.ep-mr-auto { margin-right: auto; }
.ep-center-text { text-align: center; }
.ep :focus-visible { outline: 2px solid var(--ep-brand); outline-offset: 2px; }

/* ---------- controls ---------- */
.ep input:not([type=checkbox]):not([type=radio]), .ep select, .ep textarea {
  width: 100%; padding: .6rem .75rem; border: 1px solid var(--ep-border); border-radius: 8px;
  background: var(--ep-surface); color: var(--ep-text); font: inherit;
}
.ep textarea { resize: vertical; }
.ep input:focus, .ep select:focus, .ep textarea:focus { outline: none; border-color: var(--ep-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ep-brand) 20%, transparent); }
.ep label { display: block; margin-bottom: .8rem; font-weight: 500; font-size: .9rem; }
.ep label > input, .ep label > select, .ep label > textarea { margin-top: .3rem; font-weight: 400; }
.ep-field > span { display: block; }
.ep-field small { display: block; margin-top: .25rem; font-weight: 400; }
.ep .ep-check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
.ep .ep-check input { margin-top: .25rem; accent-color: var(--ep-brand); }
.ep-select-sm { width: auto !important; padding: .35rem .5rem !important; }
.ep-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem 1rem; border-radius: 8px; border: 1px solid var(--ep-border);
  background: var(--ep-surface); color: var(--ep-text) !important; font: inherit; font-weight: 600; font-size: .9rem;
  cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s;
}
.ep-btn:hover { border-color: var(--ep-brand); }
.ep-btn:disabled { opacity: .6; cursor: progress; }
.ep-btn-primary { background: var(--ep-brand); border-color: var(--ep-brand); color: #fff !important; }
.ep-btn-primary:hover { filter: brightness(1.08); }
.ep-btn-danger { background: var(--ep-err); border-color: var(--ep-err); color: #fff !important; }
.ep-btn-ghost { background: transparent; border-color: transparent; }
.ep-btn-ghost:hover { background: var(--ep-surface-2); }
.ep-btn-sm { padding: .3rem .65rem; font-size: .8rem; }
.ep-btn-block { width: 100%; }
.ep-icon-btn { background: none; border: 0; color: var(--ep-muted); cursor: pointer; font-size: 1rem; padding: .3rem .45rem; border-radius: 6px; }
.ep-icon-btn:hover { background: var(--ep-surface-2); color: var(--ep-text); }
.ep-link { background: none; border: 0; padding: 0; color: var(--ep-brand); cursor: pointer; font: inherit; }
.ep-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 999px; background: var(--ep-surface-2); border: 1px solid var(--ep-border); font-size: .8rem; color: var(--ep-text); cursor: default; }
button.ep-chip { cursor: pointer; }
.ep-chip button { background: none; border: 0; cursor: pointer; color: var(--ep-muted); padding: 0; }
.ep-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .4rem; }
.ep-badge { display: inline-block; padding: .12rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 600; text-transform: capitalize; white-space: nowrap; }
.ep-badge-ok { background: var(--ep-ok-bg); color: var(--ep-ok); }
.ep-badge-warn { background: var(--ep-warn-bg); color: var(--ep-warn); }
.ep-badge-err { background: var(--ep-err-bg); color: var(--ep-err); }
.ep-badge-muted { background: var(--ep-surface-2); color: var(--ep-muted); }
.ep-badge-brand { background: color-mix(in srgb, var(--ep-brand) 15%, transparent); color: var(--ep-brand); }
.ep-note { padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem; background: var(--ep-surface-2); }
.ep-note-ok { background: var(--ep-ok-bg); color: var(--ep-ok); }
.ep-note-warn { background: var(--ep-warn-bg); color: var(--ep-warn); }
.ep-note-err { background: var(--ep-err-bg); color: var(--ep-err); }
.ep-error { color: var(--ep-err); font-size: .9rem; }
.ep-card { background: var(--ep-surface); border: 1px solid var(--ep-border); border-radius: var(--ep-radius); padding: 1.25rem; box-shadow: var(--ep-shadow); min-width: 0; }
.ep-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.ep-list-card { padding: .35rem; }
.ep-empty { text-align: center; padding: 1.75rem 1rem; color: var(--ep-muted); }
.ep-empty .ep-btn { margin-top: .4rem; }
.ep-spinner { width: 28px; height: 28px; border: 3px solid var(--ep-border); border-top-color: var(--ep-brand); border-radius: 50%; animation: ep-spin .8s linear infinite; }
@keyframes ep-spin { to { transform: rotate(360deg); } }
.ep-loading { display: flex; justify-content: center; padding: 2rem; }
.ep-boot { display: flex; height: 100vh; align-items: center; justify-content: center; }
.ep-progress { flex: 0 0 90px; height: 6px; background: var(--ep-surface-2); border-radius: 99px; overflow: hidden; }
.ep-progress > span { display: block; height: 100%; background: var(--ep-brand); border-radius: 99px; transition: width .3s; }
.ep-progress-lg { height: 10px; margin: .5rem 0 .35rem; flex: none; width: 100%; }
.ep-avatar { width: 30px; height: 30px; border-radius: 50%; flex: none; object-fit: cover; }
.ep-avatar-txt { display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--ep-brand) 18%, var(--ep-surface)); color: var(--ep-brand); font-size: .72rem; font-weight: 700; }
.ep-list { list-style: none; padding: 0; margin: 0; }
.ep-list li { padding: .5rem 0; border-bottom: 1px solid var(--ep-border); }
.ep-list li:last-child { border-bottom: 0; }
.ep-table-wrap { overflow-x: auto; }
.ep-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ep-table th, .ep-table td { padding: .6rem .5rem; border-bottom: 1px solid var(--ep-border); text-align: left; vertical-align: middle; }
.ep-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ep-muted); }
.ep-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .9rem; }
.ep-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 .9rem; }
.ep-grid-line { display: grid; grid-template-columns: 1fr 120px; gap: .5rem; margin-bottom: .5rem; }
.ep-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ---------- shell ---------- */
.ep-shell { display: flex; min-height: 100vh; }
.ep-side { width: 236px; flex: none; background: var(--ep-surface); border-right: 1px solid var(--ep-border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 1rem .75rem; }
.ep-side-brand { display: block; padding: .25rem .6rem 1.25rem; font-size: 1.15rem; color: var(--ep-text) !important; }
.ep-side-brand img { max-height: 36px; max-width: 100%; }
.ep-side ul { list-style: none; margin: 0; padding: 0; flex: 1; }
.ep-side li a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 8px; color: var(--ep-text); font-weight: 500; text-decoration: none !important; }
.ep-side li a:hover { background: var(--ep-surface-2); }
.ep-side li a.ep-active { background: color-mix(in srgb, var(--ep-brand) 14%, transparent); color: var(--ep-brand); }
.ep-nav-ico { width: 1.2rem; text-align: center; opacity: .8; }
.ep-nav-count { margin-left: auto; background: var(--ep-brand); color: #fff; font-size: .7rem; font-weight: 700; padding: .05rem .45rem; border-radius: 99px; }
.ep-side-foot { display: flex; flex-direction: column; gap: .5rem; padding: .6rem; }
.ep-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ep-top { display: flex; align-items: center; gap: 1rem; padding: .7rem 1.5rem; border-bottom: 1px solid var(--ep-border); background: var(--ep-surface); position: sticky; top: 0; z-index: 5; }
.ep-context { display: flex; align-items: center; gap: .5rem; flex: 1; min-width: 0; font-size: .9rem; }
.ep-top-user { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.ep-menu-btn { display: none; font-size: 1.3rem; }
.ep-main { padding: 1.75rem 1.5rem 3rem; max-width: 1240px; width: 100%; margin: 0 auto; outline: none; }
.ep-page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.ep-page-head .ep-actions input[type=search] { width: 220px; }
.ep-back { display: inline-block; margin-bottom: .75rem; font-size: .9rem; }

/* ---------- dashboard ---------- */
.ep-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
.ep-tile { background: var(--ep-surface); border: 1px solid var(--ep-border); border-radius: var(--ep-radius); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .2rem; box-shadow: var(--ep-shadow); color: var(--ep-text) !important; text-decoration: none !important; }
.ep-tile:hover { border-color: var(--ep-brand); }
.ep-tile strong { font-size: 1.5rem; }
.ep-dash { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ep-span2 { grid-column: 1 / -1; }
.ep-row-link { display: flex; align-items: center; gap: .75rem; padding: .7rem .75rem; border-radius: 8px; color: var(--ep-text) !important; text-decoration: none !important; width: 100%; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.ep-row-link:hover { background: var(--ep-surface-2); }
.ep-row-link.ep-active { background: color-mix(in srgb, var(--ep-brand) 10%, transparent); }
.ep-unread strong { color: var(--ep-brand); }
.ep-installment { padding: .5rem 0; }
.ep-sub, .ep-order { padding: .8rem 0; border-bottom: 1px solid var(--ep-border); }
.ep-sub:last-child, .ep-order:last-child { border-bottom: 0; }
.ep-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.ep-project-card { color: var(--ep-text) !important; text-decoration: none !important; display: flex; flex-direction: column; gap: .4rem; }
.ep-project-card:hover { border-color: var(--ep-brand); }
.ep-project-card .ep-progress { flex: none; width: 100%; margin-top: auto; }

/* ---------- tabs / board ---------- */
.ep-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--ep-border); margin-bottom: 1.25rem; overflow-x: auto; }
.ep-tabs button { background: none; border: 0; padding: .6rem .9rem; font: inherit; font-weight: 600; color: var(--ep-muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.ep-tabs button.ep-active { color: var(--ep-brand); border-bottom-color: var(--ep-brand); }
.ep-board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: .9rem; overflow-x: auto; padding-bottom: .5rem; }
.ep-col { background: var(--ep-surface-2); border-radius: var(--ep-radius); padding: .6rem; display: flex; flex-direction: column; min-height: 200px; }
.ep-col header { display: flex; justify-content: space-between; font-weight: 700; font-size: .85rem; padding: .25rem .35rem .6rem; }
.ep-col-list { display: flex; flex-direction: column; gap: .5rem; flex: 1; min-height: 40px; border-radius: 8px; transition: background .15s; }
.ep-col-list.ep-over { background: color-mix(in srgb, var(--ep-brand) 10%, transparent); }
.ep-task { background: var(--ep-surface); border: 1px solid var(--ep-border); border-radius: 8px; padding: .65rem .7rem; cursor: grab; box-shadow: var(--ep-shadow); }
.ep-task:hover { border-color: var(--ep-brand); }
.ep-task.ep-dragging { opacity: .4; }
.ep-task-meta { display: flex; align-items: center; gap: .5rem; margin-top: .45rem; }
.ep-task-meta .ep-avatar { width: 22px; height: 22px; font-size: .6rem; }
.ep-overdue { color: var(--ep-err); }
.ep-add-task { background: none; border: 1px dashed var(--ep-border); border-radius: 8px; padding: .45rem; margin-top: .5rem; color: var(--ep-muted); cursor: pointer; font: inherit; }
.ep-add-task:hover { color: var(--ep-brand); border-color: var(--ep-brand); }
.ep-comments { max-height: 260px; overflow-y: auto; margin-bottom: .5rem; }
.ep-comment { display: flex; gap: .6rem; padding: .5rem 0; }
.ep-activity { list-style: none; padding: 0; margin: 0; }
.ep-activity li { display: flex; gap: .7rem; padding: .6rem 0; border-bottom: 1px solid var(--ep-border); }
.ep-activity small { display: block; }
.ep-preview iframe { width: 100%; height: 75vh; border: 1px solid var(--ep-border); border-radius: var(--ep-radius); background: #fff; margin-top: .5rem; }

/* ---------- docs ---------- */
.ep-doc-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.ep .ep-doc-title { font-size: 1.5rem !important; font-weight: 700; border: 0 !important; background: transparent !important; padding: .25rem 0 !important; box-shadow: none !important; }
.ep-toolbar { display: flex; flex-wrap: wrap; gap: .25rem; padding: .4rem; border: 1px solid var(--ep-border); border-bottom: 0; border-radius: var(--ep-radius) var(--ep-radius) 0 0; background: var(--ep-surface-2); position: sticky; top: 56px; z-index: 2; }
.ep-toolbar button { background: var(--ep-surface); border: 1px solid var(--ep-border); border-radius: 6px; padding: .3rem .55rem; font: inherit; font-size: .82rem; font-weight: 600; color: var(--ep-text); cursor: pointer; }
.ep-toolbar button:hover { border-color: var(--ep-brand); }
.ep-editor { min-height: 60vh; padding: 1.5rem 1.75rem; background: var(--ep-surface); border: 1px solid var(--ep-border); border-radius: 0 0 var(--ep-radius) var(--ep-radius); outline: none; line-height: 1.7; }
.ep-editor:focus { border-color: var(--ep-brand); }
.ep-editor blockquote { border-left: 3px solid var(--ep-brand); margin: 1rem 0; padding: .25rem 1rem; color: var(--ep-muted); }
.ep-doc-ico { font-size: 1.1rem; }

/* ---------- messages ---------- */
.ep-inbox { display: grid; grid-template-columns: 340px 1fr; gap: 1rem; height: calc(100vh - 190px); min-height: 480px; }
.ep-inbox-list { background: var(--ep-surface); border: 1px solid var(--ep-border); border-radius: var(--ep-radius); overflow-y: auto; padding: .35rem; }
.ep-inbox-pane { background: var(--ep-surface); border: 1px solid var(--ep-border); border-radius: var(--ep-radius); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.ep-thread-head { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-bottom: 1px solid var(--ep-border); }
.ep-thread-head h2 { margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-msgs { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .9rem; }
.ep-msg { display: flex; gap: .6rem; max-width: 82%; }
.ep-msg-mine { align-self: flex-end; flex-direction: row-reverse; }
.ep-msg-bubble { background: var(--ep-surface-2); border-radius: 12px; padding: .6rem .85rem; min-width: 0; }
.ep-msg-mine .ep-msg-bubble { background: color-mix(in srgb, var(--ep-brand) 14%, var(--ep-surface)); }
.ep-msg-meta { display: flex; gap: .5rem; align-items: center; font-size: .85rem; margin-bottom: .2rem; flex-wrap: wrap; }
.ep-msg-body { overflow-wrap: anywhere; }
.ep-msg-files { display: flex; flex-direction: column; gap: .3rem; margin-top: .4rem; }
.ep-file-chip { display: inline-block; padding: .3rem .6rem; background: var(--ep-surface); border: 1px solid var(--ep-border); border-radius: 8px; font-size: .85rem; }
.ep-composer { border-top: 1px solid var(--ep-border); padding: .75rem; }
.ep-composer textarea { margin-bottom: .5rem; }
.ep-show-sm { display: none; }
.ep-narrow-card { max-width: 720px; }

/* ---------- files ---------- */
.ep-crumbs { font-size: .9rem; }
.ep-drop { border: 2px dashed var(--ep-border); border-radius: var(--ep-radius); padding: 1.25rem; text-align: center; margin-bottom: 1rem; cursor: pointer; background: var(--ep-surface); }
.ep-drop:hover, .ep-drop.ep-over { border-color: var(--ep-brand); background: color-mix(in srgb, var(--ep-brand) 6%, var(--ep-surface)); }
.ep-uploads { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .75rem; }
.ep-upload { display: grid; grid-template-columns: 1fr 160px; gap: .75rem; align-items: center; font-size: .85rem; }
.ep-upload .ep-progress { flex: none; width: 100%; }
.ep-file-row { flex-wrap: wrap; }

/* ---------- modal / toast ---------- */
.ep-modal-wrap { position: fixed; inset: 0; background: rgba(10, 10, 20, .5); display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 50; }
.ep-modal { background: var(--ep-surface); color: var(--ep-text); border-radius: 14px; width: 100%; max-width: 560px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.ep-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--ep-border); }
.ep-modal-head h2 { margin: 0; }
.ep-modal-body { padding: 1.25rem; overflow-y: auto; }
.ep-modal-foot { display: flex; justify-content: flex-end; gap: .5rem; padding: .9rem 1.25rem; border-top: 1px solid var(--ep-border); }
.ep-toast { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); background: var(--ep-text); color: var(--ep-bg); padding: .65rem 1.1rem; border-radius: 10px; z-index: 60; font-size: .9rem; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); transition: opacity .3s; max-width: calc(100vw - 32px); }
.ep-toast-err { background: var(--ep-err); color: #fff; }
.ep-toast-out { opacity: 0; }

/* ---------- auth / checkout / receipt ---------- */
.ep-center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem 16px; }
.ep-auth { width: 100%; max-width: 400px; }
.ep-auth-brand { margin-bottom: 1rem; font-size: 1.2rem; }
.ep-auth-brand img { max-height: 44px; }
.ep-receipt { width: 100%; max-width: 640px; }
.ep-topbar { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.5rem; background: var(--ep-surface); border-bottom: 1px solid var(--ep-border); flex-wrap: wrap; }
.ep-logo { font-weight: 700; font-size: 1.1rem; color: var(--ep-text) !important; }
.ep-logo img { max-height: 34px; display: block; }
.ep-secure { color: var(--ep-muted); font-size: .9rem; margin-left: auto; }
.ep-checkout { max-width: 1080px; margin: 0 auto; padding: 2rem 16px 4rem; }
.ep-checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 1.25rem; align-items: start; }
.ep-summary { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.ep-summary .ep-h3 { margin-top: 0; }
.ep-line { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; padding: .3rem 0; }
.ep-total { display: flex; justify-content: space-between; font-size: 1.15rem; border-top: 1px solid var(--ep-border); padding-top: .75rem; }
.ep-eyebrow { color: var(--ep-brand); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .25rem; }
.ep-options { display: flex; flex-direction: column; gap: .5rem; }
.ep .ep-option { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border: 1px solid var(--ep-border); border-radius: 10px; cursor: pointer; margin: 0; font-weight: 400; }
.ep .ep-option:has(input:checked) { border-color: var(--ep-brand); background: color-mix(in srgb, var(--ep-brand) 6%, var(--ep-surface)); }
.ep-option input { margin-top: .3rem; accent-color: var(--ep-brand); }
.ep-option > span { display: flex; flex-direction: column; gap: .1rem; }
.ep-agreement { max-height: 200px; overflow-y: auto; padding: .9rem 1rem; border: 1px solid var(--ep-border); border-radius: 10px; background: var(--ep-surface-2); font-size: .85rem; margin-bottom: .75rem; }
.ep-paypal { min-height: 50px; display: flex; flex-direction: column; gap: .6rem; }
/* PayPal's frames don't declare a colour scheme; on a dark page the browser would paint them solid white. */
.ep-paypal iframe { color-scheme: light; }
.ep-pp-slot { border-radius: 12px; transition: background .2s, padding .2s; }
.ep-pp-slot.ep-pp-open { background: #fff; padding: .75rem; }
.ep-narrow { max-width: 640px; margin: 0 auto; }
.ep-thanks { text-align: center; }
.ep-check-big { width: 64px; height: 64px; border-radius: 50%; background: var(--ep-ok-bg); color: var(--ep-ok); font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.ep-plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; }
.ep-plan { display: flex; flex-direction: column; gap: .4rem; }
.ep-plan .ep-btn { margin-top: auto; }
.ep-price { font-size: 1.15rem; font-weight: 700; }
.ep-features { padding-left: 1.1rem; margin: .25rem 0 1rem; font-size: .9rem; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .ep-tiles { grid-template-columns: repeat(2, 1fr); }
  .ep-checkout-grid { grid-template-columns: 1fr; }
  .ep-summary { position: static; }
}
@media (max-width: 860px) {
  .ep-side { position: fixed; left: 0; top: 0; z-index: 40; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0, 0, 0, .2); }
  body.ep-nav-open .ep-side { transform: none; }
  .ep-menu-btn { display: inline-block; }
  .ep-top { padding: .6rem 16px; }
  .ep-main { padding: 1.25rem 16px 3rem; }
  .ep-dash { grid-template-columns: 1fr; }
  .ep-inbox { grid-template-columns: 1fr; height: auto; }
  .ep-inbox .ep-inbox-pane { display: none; min-height: 70vh; }
  .ep-inbox.ep-inbox-open .ep-inbox-list { display: none; }
  .ep-inbox.ep-inbox-open .ep-inbox-pane { display: flex; }
  .ep-show-sm { display: inline; }
  .ep-hide-sm { display: none; }
  .ep-msg { max-width: 94%; }
  .ep-board { grid-template-columns: repeat(4, 78vw); scroll-snap-type: x mandatory; }
  .ep-col { scroll-snap-align: start; }
  .ep-grid3 { grid-template-columns: 1fr; }
  .ep-toolbar { top: 52px; }
  .ep-editor { padding: 1rem; }
  .ep-page-head .ep-actions input[type=search] { width: 100%; }
}
@media (max-width: 520px) {
  .ep-grid2 { grid-template-columns: 1fr; }
  .ep-tiles { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .ep-tile strong { font-size: 1.2rem; }
  .ep h1 { font-size: 1.35rem; }
  .ep-upload { grid-template-columns: 1fr 90px; }
}
