/*
Theme Name: hindustan-ekta-ePaper-main-theme-old

Theme URI: https://hindustanekta.in
Author: Hindustan Ekta
Author URI: https://hindustanekta.in
Description: Hindustan Ekta — Hindi ePaper custom theme with daily edition listings, archive calendar, and a page-by-page viewer. Includes admin area-mapping (draw clickable news regions with cursor) and a click-to-clip popup with download/share/print.
Version: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: summer-epaper
Tags: news, custom-post-type, custom-menu, translation-ready
*/



@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Oswald", sans-serif !important;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

p,
a {
  font-family: "Montserrat", sans-serif !important;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  font-family: 'Noto Sans Devanagari', 'Segoe UI', system-ui, Arial, sans-serif;
  color: #1f2937;
  background: #f7f7fb;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

a {
  color: #1d4ed8;
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px
}

/* ---------- Top utility bar ---------- */
.top-bar {
  background: #fff;
  border-bottom: 1px solid #eceef3;
  font-size: 13px;
  color: #6b7280
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px
}

/* ---------- Brand header ---------- */
.brand {
  background: #fff;
  padding: 14px 0;
  text-align: center;
  border-bottom: 1px solid #eceef3
}

.brand img {
  max-height: 70px;
  margin: 0 auto
}

.brand h1 {
  margin: 0;
  font-size: 34px;
  color: #b91c1c;
  letter-spacing: .5px
}

/* ---------- Primary nav ---------- */
.main-nav {
  background: #0b2447;
  color: #fff
}

.main-nav .container {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap
}

.main-nav a {
  color: #fff;
  display: inline-block;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 15px
}

.main-nav a:hover {
  background: rgba(255, 255, 255, .08);
  text-decoration: none
}

.main-nav .home-icon {
  padding: 10px 14px
}

/* Sub nav (pills) */
.sub-nav {
  background: #0b2447;
  padding-bottom: 14px
}

.sub-nav .container {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap
}

.sub-nav a {
  background: #1e88e5;
  color: #fff;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600
}

.sub-nav a:hover {
  background: #1565c0;
  text-decoration: none
}

/* ---------- Page heading ---------- */
.page-title {
  font-size: 26px;
  font-weight: 700;
  margin: 28px 0 18px;
  color: #111827;
  padding-bottom: 30px;
}

/* ---------- Listing grid ---------- */
.epaper-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  margin-bottom: 40px
}

@media (max-width:900px) {
  .epaper-layout {
    grid-template-columns: 1fr
  }
}

.edition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px
}

.edition-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease
}

.edition-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(15, 23, 42, .18)
}

.edition-card a {
  color: inherit;
  display: block
}

.edition-card .thumb {
  /* aspect-ratio: 3/4; */
  background: #f3f4f6;
  overflow: hidden
}

.edition-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 100%;
}

.edition-card .meta {
  padding: 12px 14px;
  text-align: center;
}

.edition-card .meta strong {
  display: block;
  font-size: 15px;
  color: #111827
}

.edition-card .meta span {
  font-size: 13px;
  color: #6b7280
}

/* ---------- Archive calendar widget ---------- */
.archive-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px
}

.archive-box h3 {
  margin: 0 0 14px;
  font-size: 20px;
  color: #1d4ed8;
  font-weight: 700
}

.archive-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px
}

.archive-controls select {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  font: inherit
}

.archive-controls button {
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 14px;
  color: #374151
}

.archive-controls button:hover {
  background: #f3f4f6
}

table.epaper-cal {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 14px
}

table.epaper-cal th {
  padding: 8px 0;
  color: #6b7280;
  font-weight: 600
}

table.epaper-cal td {
  padding: 8px 0;
  color: #9ca3af
}

table.epaper-cal td.has-edition {
  color: #1d4ed8;
  font-weight: 600;
  cursor: pointer
}

table.epaper-cal td.has-edition:hover {
  background: #eff6ff;
  border-radius: 4px
}

table.epaper-cal td.today {
  background: #fde68a;
  border-radius: 4px;
  color: #111827
}

table.epaper-cal td a {
  color: inherit;
  display: block
}

/* ---------- Viewer ---------- */
.viewer-share {
  display: flex;
  gap: 0;
  margin-bottom: 18px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06)
}

.viewer-share a,
.viewer-share button {
  flex: 1;
  padding: 14px;
  text-align: center;
  color: #fff;
  font-size: 18px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px
}

.viewer-share .sh-fb {
  background: #1877f2
}

.viewer-share .sh-x {
  background: #000
}

.viewer-share .sh-wa {
  background: #25d366
}

.viewer-share .sh-li {
  background: #0a66c2
}

.viewer-share .sh-tg {
  background: #29a3e1
}

.viewer-share .sh-pr {
  background: #dc2626
}

.viewer-share .sh-dl {
  background: #377590
}

.viewer-share a:hover {
  opacity: .92;
  text-decoration: none
}

.viewer-layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: start
}

@media (max-width:760px) {
  .viewer-layout {
    grid-template-columns: 1fr
  }
}

.page-thumbs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 800px;
  overflow-y: auto;
  padding-right: 6px
}

.page-thumb {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transition: border-color .15s;
  min-height: 200px;
}

.page-thumb img,
.page-thumb .thumb-img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: auto;
}

.page-thumb .thumb-img-wrap {
  display: block;
  width: 100%;
  min-height: 120px;
  background: #f3f4f6;
}

.page-thumb.active {
  border-color: #1d4ed8
}

.page-thumb .label {
  display: block;
  text-align: center;
  padding: 6px 4px;
  font-size: 13px;
  color: #1d4ed8;
  background: #fff
}

.page-stage {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 16px;
  min-height: 60vh;
  text-align: center;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none
}

.page-stage-inner {
  position: relative;
  display: inline-block;
  max-width: 100%
}

.page-stage img#pageMain {
  margin: 0 auto;
  max-height: 100%;
  width: auto;
  max-width: 100%;
  cursor: crosshair;
  -webkit-user-drag: none;
  user-drag: none;
  display: block;
  image-rendering: auto;
}

.viewer-hint {
  margin: 8px 0 12px;
  padding: 8px 12px;
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  color: #78350f;
  font-size: 13px;
  border-radius: 4px
}

/* Clickable hotspots (admin-defined news regions) */
.hotspot-layer {
  position: absolute;
  inset: 0;
  pointer-events: none
}

.hotspot {
  position: absolute;
  background: unset;
  border: 2px solid transparent;
  /* important */
  cursor: pointer;
  pointer-events: auto;
  padding: 0;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hotspot:hover,
.hotspot:focus {
  background: rgba(239, 68, 68, 0.22);
  border: 2px solid #ea1717;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .25);
  outline: none
}

/* ---------- Clip popup (enhanced) ---------- */
.epaper-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  max-height: 600px;
  background: #fff;
  /* border-radius: 12px; */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 9999;
  overflow: scroll;
  padding-top: 20px;
  max-height: 500px;
  border: 5px solid #cc5353;
  height:600px;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: var(--bs-modal-margin);
  pointer-events: unset;
  display: flex;
  flex-flow: column-reverse;
}

.epaper-modal.open {
  display: block;
}

@keyframes epm-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.epaper-modal .modal-inner {
  background: #fff;
  width: 100%;
  max-width: 760px;
  border-radius: 14px;
  position: relative;
  padding: 0 0 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, .5);
  animation: epm-pop .25s cubic-bezier(.2, .8, .3, 1.2);
  overflow: hidden;
}

@keyframes epm-pop {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Close button — circular, sits at top-right OUTSIDE card */
.epaper-modal .close-btn {
  position: absolute;
  top: 0px;
  right: 0px;
  background: #0f172a;
  color: #fff;
  border: 3px solid #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 10001;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  transition: transform .15s, background .15s;
}

.epaper-modal .close-btn:hover {
  background: #dc2626;
  transform: rotate(90deg) scale(1.05);
}

/* Modal header — same look as site header (logo centered) */
.clip-modal-header {
  background: #fff;
  border-bottom: 1px solid #eef0f3;
  padding: 18px 24px 14px;
  text-align: center;
}

.clip-modal-header .clip-brand-logo {
  display: inline-block;
  line-height: 0;
}

.clip-modal-header .logo {
  max-height: 70px;
  width: auto;
  display: inline-block;
}

.clip-brand-meta {
  margin: 8px 0 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
}

.clip-brand-meta a {
  color: #475569;
  text-decoration: none;
}

.clip-brand-meta a:hover {
  color: #0f172a;
}

.clip-brand-meta .sep {
  margin: 0 6px;
  color: #94a3b8;
}

/* Top share toolbar — pill row below header */
.clip-share-bar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #eef0f3;
}

.cs-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.cs-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
  color: #fff;
  text-decoration: none;
}

.cs-btn:active {
  transform: translateY(0) scale(.96);
}

.cs-btn i {
  font-size: 17px;
  line-height: 1;
}

.cs-fb {
  background: #1877f2;
}

.cs-x {
  background: #000;
}

.cs-wa {
  background: #25d366;
}

.cs-li {
  background: #0a66c2;
}

.cs-tg {
  background: #29a3e1;
}

.cs-pr {
  background: #dc2626;
}

.cs-dl {
  background: #377590;
}

/* Tab strip */
.clip-tabs {
  border-bottom: 1px solid #e5e7eb;
  margin: 16px 24px 16px;
  padding: 0 4px;
}

.clip-tab {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid #e5e7eb;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  font-size: 14px;
  color: #0f172a;
  background: #f8fafc;
  position: relative;
  top: 1px;
}

.clip-tab.active {
  font-weight: 600;
  background: #fff;
  border-color: #e5e7eb;
}

.epaper-modal .modal-body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 120px;
  padding: 0 24px;
  border: none;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}

.epaper-modal .modal-body img,
.epaper-modal .modal-body canvas {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

#clip-title {
  margin: 14px 24px 0;
  font-size: 15px;
  text-align: center;
  color: #0f172a;
  font-weight: 600;
}

@media (max-width: 640px) {
  .epaper-modal {
    padding: 24px 10px;
    max-width: 600px;
  }

  .epaper-modal .modal-inner {
    border-radius: 12px;
  }

  .clip-actions {
    width: 100% !important;
    padding: 0;
  }

  .clip-actions a,
  .clip-actions button {
    height: 40px !important;
  }

  .page-title {
    font-size: 21px;
    font-weight: 700;
    margin: 0;
    color: #111827;
    padding-bottom: 30px;
    padding-top: 19px;
  }

  .epaper-modal .close-btn {
    top: -14px;
    right: -8px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .clip-modal-header {
    padding: 14px 14px 10px;
  }

  .clip-modal-header .logo {
    max-height: 50px;
  }

  .clip-share-bar {
    gap: 4px;
    padding: 10px 12px;
  }

  .cs-btn {
    height: 40px;
    border-radius: 6px;
    font-size: 14px;
  }

  .cs-btn i {
    font-size: 15px;
  }

  .clip-tabs {
    margin: 12px 14px;
  }

  .epaper-modal .modal-body {
    padding: 0 14px;
  }

  #clip-title {
    margin: 12px 14px 0;
  }
}

@media (max-width: 640px) {

  .page-thumb .label {
    display: none;
  }

  .page-thumb {
    min-height: 30px;
  }

  .page-thumbs {
    display: flex;
    flex-direction: row;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0b2447;
  color: #cbd5e1;
  margin-top: 60px;
  padding: 34px 0;
  text-align: center;
  font-size: 14px
}

.sitesection {
  text-align: center;
  display: flex;
  justify-content: center;
  flex-direction: column;
  border-bottom: 2px dashed red;  padding-bottpm:10px;
      margin: 20px 0px;
}

.site-footer a {
  color: #fff
}

/* ---------- 404 ---------- */
.notfound {
  padding: 80px 0;
  text-align: center
}

.notfound h1 {
  font-size: 72px;
  margin: 0;
  color: #b91c1c
}

#region-mapper {
  top: 60px;
}


/* =========================
   FOOTER
========================= */
.footer {
  background: #222;
  color: #fff;
  padding: 50px 20px 20px;
  margin-top: 50px;
  text-align: left;

}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;

  gap: 30px;
}

/* FOOTER LEFT */
.footer-left img {
  height: 60px;
  margin-bottom: 10px;
}

.footer-left p {
  font-size: 14px;
  color: #fff;
  /* max-width: 250px; */
  line-height: 1.5;
  padding: 10px 0;
  text-align: left;
}

/* FOOTER LINKS */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.footer-links h4 {
  font-size: 16px;
  margin-bottom: 10px;
  position: relative;
}

.footer-links h4::after {
  content: "";
  width: 40px;
  height: 2px;
  background: #ea1717;
  display: block;
  margin-top: 5px;
}

.footer-links a,
.footer-bottom a,
.footer-bottom {
  color: #ffffff;
  box-shadow: inset 0 0 0 0 #000;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;

}

#epaperdetails #thumbnails {
  background: #e60023 !important;
}

.footer-bottom a {
  color: #20c3cc;
}

.footer-bottom {
  text-align: center;
}

.footer-links a:hover,
.footer-bottom:hover a {
  color: #ea1717;
}

.footer-links a:hover strong {
  color: #fff !important;

}

/* SOCIAL ICONS */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.footer-social .icon i {
  width: 40px;
  height: 38px;
  background: #20c3cc;
  display: flex;
  align-items: center;
  justify-content: center;
  /* border-radius: 50%; */
  cursor: pointer;
  transition: 0.3s;
  color: #fff;
}

.calenderboxnew {
  position: absolute;
  max-width: 350px;
  top: 0;

}

#archiveButton {
  background-color: #000;
}

#clipButton {
  background-color: #e60023;
}

#archiveButton:hover,
#clipButton:hover {
  background-color: #20c3cc;
}

.footer-social a {
  text-decoration: none;
}

.footer-social .icon i:hover {
  background: #e60023;
  color: #fff;
  transform: scale(1.1);
}

/* DIVIDER */
.footer-divider {
  height: 1px;
  background: #222;
  margin: 30px 0;
}

/* =========================
   HEADER
========================= */
.header {
  background: #fff;
  text-align: center;
  padding: 20px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: center;
}

.mainsectionnews {
  border-top: 2px solid #ea1717;
}

.logo {
  height: 100%;
}

.epaper-modal~* .top-bar,
.epaper-modal~* .toolbar,
.epaper-modal~* .ep-toolbar {
  display: none !important;
}

.clip-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  margin: 18px auto;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  width: fit-content;
  padding-top: 0px;
  margin-top: 0px;
}

/* common button style */
.clip-actions a,
.clip-actions button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 16px;
  color: #fff;
}

/* hover effect */
.clip-actions a:hover,
.clip-actions button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* individual colors */
.btn-dl {
  background: #334155;
}

.btn-print {
  background: #64748b;
}

.btn-fb {
  background: #1877f2;
}

.btn-x {
  background: #000000;
}

.btn-wa {
  background: #25D366;
}

.btn-li {
  background: #0a66c2;
}

.btn-tg {
  background: #229ED9;
}

/* logo center below bar */
.clip-title-logo {
  text-align: center;
  margin-top: 12px;
  margin: 0 auto;
}

.clip-title-logo img {
  height: 100%;
  width:100%;
  object-fit: contain;

}


@media (max-width:480px) {
  .epaper-modal {
    padding: 24px 10px;
    max-width: 380px;
  }
}
/* ============================================================
   New: calendar popup, share link, mobile pager, modal loader
   ============================================================ */

/* Calendar + share buttons in viewer-share toolbar */
.viewer-share .sh-cal,
.viewer-share .sh-link {
  background: #0f172a;
  color: #fff;
  border: none;
  cursor: pointer;
}
.viewer-share .sh-cal { background: #1d4ed8; }
.viewer-share .sh-link { background: #059669; }
.viewer-share .sh-cal:hover { background: #1e40af; }
.viewer-share .sh-link:hover { background: #047857; }

/* Calendar modal */
.ep-cal-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: none;
  z-index: 10000;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  animation: epm-fade .2s ease-out;
}
.ep-cal-modal.open { display: flex; }
.ep-cal-dialog {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0,0,0,.4);
  padding: 22px 18px 18px;
  max-width: 460px;
  width: 100%;
  animation: epm-pop .25s cubic-bezier(.2,.8,.3,1.2);
}
.ep-cal-dialog .archive-box { margin: 0; }
.ep-cal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  border: 3px solid #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.ep-cal-close:hover { background: #dc2626; }

/* Toast */
.ep-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 10001;
}
.ep-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile pager (hidden on desktop) */
.mobile-pager { display: none; }
@media (max-width: 640px) {
  /* Hide thumb strip "tab" on phone */
  .page-thumbs { display: none !important; }

  .mobile-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 14px 10px 4px;
    padding: 8px 10px;
    background: #f1f5f9;
    border-radius: 10px;
    position: sticky;
    bottom: 0;
    z-index: 50;
  }
  .mp-btn {
    flex: 1;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .mp-btn:active { transform: scale(.97); }
  .mp-btn:disabled { opacity: .4; }
  .mp-info {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    min-width: 90px;
    text-align: center;
  }
}

/* Modal loader */
.ep-modal-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 20px;
  width: 100%;
  color: #475569;
  font-size: 14px;
}
.ep-progress-ring {
  position: relative;
  width: 88px;
  height: 88px;
}
.ep-progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ep-progress-ring .ep-ring-bg {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 8;
}
.ep-progress-ring .ep-ring-fg {
  fill: none;
  stroke: #1d4ed8;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 251.2; /* 2*pi*40 */
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset .25s ease;
}
.ep-progress-ring .ep-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #1d4ed8;
  font-variant-numeric: tabular-nums;
}
/* Legacy spinner fallback (indeterminate) */
.ep-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid #e2e8f0;
  border-top-color: #1d4ed8;
  animation: ep-spin .8s linear infinite;
}
@keyframes ep-spin { to { transform: rotate(360deg); } }