/* =====================================================================
   Engineers Academy — Energy Prices Page Styles
   Modular CSS that complements the main styles.css
   ===================================================================== */

/* ── Hero ─────────────────────────────────────────────────────────── */
.ep-hero .media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ep-hero-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
}

.ep-hero-mark svg {
  width: 160px;
  height: 160px;
  filter: drop-shadow(0 0 32px rgba(125, 222, 208, 0.25));
  animation: ep-spin-slow 20s linear infinite;
}

@keyframes ep-spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.ep-hero-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
}

/* ── Status Bar ───────────────────────────────────────────────────── */
.ep-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 10px 16px;
  background: rgba(125, 222, 208, 0.06);
  border: 1px solid rgba(125, 222, 208, 0.15);
  border-radius: 6px;
  width: fit-content;
}

.ep-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: ep-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  flex-shrink: 0;
}

.ep-live-dot.small {
  width: 6px;
  height: 6px;
}

@keyframes ep-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.ep-status-text {
  font-size: 0.75rem;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.03em;
}

.ep-last-update {
  font-size: 0.7rem;
  color: var(--mid);
  font-family: 'JetBrains Mono', monospace;
}

/* ── Section Layout ───────────────────────────────────────────────── */
.ep-section {
  padding: 60px 0;
}

.ep-section--alt {
  background: rgba(255, 255, 255, 0.015);
}

.ep-section-head {
  margin-bottom: 40px;
}

.ep-section-head h2 {
  margin-top: 8px;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

/* ── Primary Price Cards ──────────────────────────────────────────── */
.ep-ticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.ep-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.ep-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(125, 222, 208, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.ep-card:hover {
  border-color: rgba(125, 222, 208, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.ep-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ep-card-icon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: rgba(125, 222, 208, 0.1);
  border: 1px solid rgba(125, 222, 208, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.ep-card-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ep-card-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
}

.ep-card-unit {
  font-size: 0.68rem;
  color: var(--mid);
  font-family: 'JetBrains Mono', monospace;
}

.ep-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.ep-price-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color 0.4s;
}

.ep-price-currency {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--mid);
  order: -1;
}

.ep-card-change {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
}

.ep-card-change.up  { color: #22c55e; }
.ep-card-change.down { color: #ef4444; }
.ep-card-change.neutral { color: var(--mid); }

/* Sparkline */
.ep-sparkline {
  width: 100%;
  height: 52px;
  display: block;
}

/* Range */
.ep-card-range {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--mid);
}

.ep-range-label {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
  opacity: 0.7;
}

/* Price flash animation */
@keyframes ep-flash-up {
  0%   { background: rgba(34, 197, 94, 0.18); }
  100% { background: transparent; }
}
@keyframes ep-flash-down {
  0%   { background: rgba(239, 68, 68, 0.18); }
  100% { background: transparent; }
}
.ep-card.flash-up   { animation: ep-flash-up 0.8s ease; }
.ep-card.flash-down { animation: ep-flash-down 0.8s ease; }

/* ── Mini Cards (Secondary Grid) ─────────────────────────────────── */
.ep-secondary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.ep-mini-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.25s, transform 0.2s;
}

.ep-mini-card:hover {
  border-color: rgba(125, 222, 208, 0.25);
  transform: translateY(-1px);
}

.ep-mini-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ep-mini-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(125, 222, 208, 0.1);
  border: 1px solid rgba(125, 222, 208, 0.15);
  padding: 2px 6px;
  border-radius: 3px;
}

.ep-mini-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg);
}

.ep-mini-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--fg);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.ep-mini-price small {
  font-size: 0.65rem;
  color: var(--mid);
  font-weight: 400;
}

.ep-mini-change {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
}
.ep-mini-change.up   { color: #22c55e; }
.ep-mini-change.down { color: #ef4444; }
.ep-mini-change.neutral { color: var(--mid); }

.ep-mini-spark {
  width: 100%;
  height: 36px;
  display: block;
  margin-top: 4px;
}

/* ── Price Table ──────────────────────────────────────────────────── */
.ep-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.ep-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.ep-table thead {
  background: rgba(125, 222, 208, 0.06);
  border-bottom: 1px solid rgba(125, 222, 208, 0.15);
}

.ep-table th {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  white-space: nowrap;
}

.ep-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s;
}

.ep-table tbody tr:last-child {
  border-bottom: none;
}

.ep-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.ep-table td {
  padding: 14px 18px;
  color: var(--fg);
  white-space: nowrap;
}

.ep-table td:first-child {
  font-weight: 500;
}

.ep-table td.price-cell {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

.ep-table td.change-cell.up   { color: #22c55e; font-family: 'JetBrains Mono', monospace; }
.ep-table td.change-cell.down { color: #ef4444; font-family: 'JetBrains Mono', monospace; }

.ep-table-loading {
  text-align: center;
  padding: 40px;
  color: var(--mid);
  font-size: 0.85rem;
}

/* ── Insight Cards ────────────────────────────────────────────────── */
.ep-insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.ep-insight-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s, transform 0.25s;
}

.ep-insight-card:hover {
  border-color: rgba(125, 222, 208, 0.2);
  transform: translateY(-2px);
}

.ep-insight-icon {
  width: 44px;
  height: 44px;
  background: rgba(125, 222, 208, 0.08);
  border: 1px solid rgba(125, 222, 208, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ep-insight-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
}

.ep-insight-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
}

.ep-insight-card p {
  font-size: 0.82rem;
  color: var(--mid);
  line-height: 1.65;
  margin: 0;
}

/* ── Disclaimer ───────────────────────────────────────────────────── */
.ep-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
}

.ep-disclaimer-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: var(--mid);
  margin-top: 2px;
}

.ep-disclaimer p {
  font-size: 0.78rem;
  color: var(--mid);
  line-height: 1.65;
  margin: 0;
}

/* ── Loading Skeleton ─────────────────────────────────────────────── */
@keyframes ep-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.ep-skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 800px 100%;
  animation: ep-shimmer 1.5s infinite;
  border-radius: 4px;
}

/* ── Ticker tape (top horizontal scroll) ─────────────────────────── */
.ep-tape-wrap {
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
  height: 38px;
  display: flex;
  align-items: center;
}

.ep-tape-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ep-tape-scroll 40s linear infinite;
}

@keyframes ep-tape-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ep-tape-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.ep-tape-item .ep-tape-name {
  color: var(--mid);
}

.ep-tape-item .ep-tape-val {
  color: var(--fg);
  font-weight: 500;
}

.ep-tape-item .ep-tape-chg {
  font-size: 0.68rem;
}

.ep-tape-item .ep-tape-chg.up   { color: #22c55e; }
.ep-tape-item .ep-tape-chg.down { color: #ef4444; }

/* ── Arab Crudes Section ──────────────────────────────────────────── */
.ep-section--arab {
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.04) 0%, transparent 65%);
  border-top: 1px solid rgba(245, 158, 11, 0.12);
  border-bottom: 1px solid rgba(245, 158, 11, 0.12);
}

.ep-section-head-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.28);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.ep-arab-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.ep-arab-card {
  background: var(--bg-card, #1c1f21);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  position: relative;
  overflow: hidden;
}

.ep-arab-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.6), transparent);
  opacity: 0;
  transition: opacity var(--t-fast);
}

.ep-arab-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.ep-arab-card:hover::before {
  opacity: 1;
}

.ep-arab-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.ep-arab-flag-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--mid);
}

.ep-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.ep-arab-country {
  font-weight: 500;
  color: #dce3e4;
  font-size: 0.74rem;
}

.ep-arab-spec {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  white-space: nowrap;
}

.ep-arab-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.ep-arab-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: var(--fg);
}

.ep-arab-desc-sm {
  font-size: 0.72rem;
  color: var(--mid);
  display: block;
}

.ep-unit-sm {
  font-size: 0.74rem;
  color: var(--mid);
  font-family: 'JetBrains Mono', monospace;
  margin-inline-start: 4px;
}

/* ── Table Toolbar & Filters ──────────────────────────────────────── */
.ep-table-toolbar {
  margin-top: 24px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.ep-table-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 5px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ep-filter-btn {
  background: transparent;
  border: 0;
  color: var(--mid);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ep-filter-btn:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
}

.ep-filter-btn.active {
  background: var(--accent);
  color: #0b1716;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(125, 222, 208, 0.25);
}

.ep-tbl-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ep-tbl-flag {
  font-size: 1.05rem;
  line-height: 1;
}

.ep-tbl-spec {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ── RTL / Arabic ─────────────────────────────────────────────────── */
[dir="rtl"] .ep-card-header    { flex-direction: row-reverse; }
[dir="rtl"] .ep-price-row      { flex-direction: row-reverse; }
[dir="rtl"] .ep-card-range     { flex-direction: row-reverse; }
[dir="rtl"] .ep-status-bar     { flex-direction: row-reverse; }
[dir="rtl"] .ep-mini-top       { flex-direction: row-reverse; }
[dir="rtl"] .ep-disclaimer     { flex-direction: row-reverse; }
[dir="rtl"] .ep-arab-top       { flex-direction: row-reverse; }
[dir="rtl"] .ep-arab-main      { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .ep-arab-flag-badge { flex-direction: row-reverse; }
[dir="rtl"] .ep-tbl-name-cell  { flex-direction: row-reverse; }
[dir="rtl"] .ep-table th,
[dir="rtl"] .ep-table td       { text-align: right; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .ep-arab-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .ep-arab-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .ep-ticker-grid    { grid-template-columns: 1fr 1fr; }
  .ep-secondary-grid { grid-template-columns: 1fr 1fr; }
  .ep-insight-grid   { grid-template-columns: 1fr; }
  .ep-hero-mark svg  { width: 110px; height: 110px; }
}

@media (max-width: 520px) {
  .ep-arab-grid      { grid-template-columns: 1fr; }
  .ep-ticker-grid    { grid-template-columns: 1fr; }
  .ep-secondary-grid { grid-template-columns: 1fr 1fr; }
  .ep-price-val      { font-size: 1.6rem; }
  .ep-table-filters  { width: 100%; }
  .ep-filter-btn     { flex: 1; text-align: center; }
}


/* ── Energy Prices hero refinement (V8.8.51) ───────────────────────── */
.ep-hero .wrap.split { align-items: center; }
.ep-hero .text { min-width: 0; }
.ep-hero h1 {
  font-size: clamp(2.55rem, 4.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  white-space: normal;
  max-width: 12ch;
  text-wrap: balance;
}
.ep-market-panel {
  box-sizing: border-box;
  width: min(100%, 430px);
  min-height: 0;
  height: auto;
  padding: 15px 18px 13px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  border: 1px solid rgba(125,222,208,.22);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: radial-gradient(ellipse at 82% 0%, rgba(67,198,190,.13), transparent 46%), linear-gradient(145deg, #202b2c, #11191b 70%);
  box-shadow: 0 18px 55px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.035);
}
.ep-market-panel::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(120deg, transparent 20%, rgba(255,255,255,.025) 48%, transparent 68%); }
.ep-market-panel-top, .ep-market-panel-bottom { display:flex; align-items:center; justify-content:space-between; gap:12px; position:relative; z-index:1; }
.ep-market-live, .ep-market-time, .ep-market-panel-bottom { font-family:'JetBrains Mono',monospace; font-size:.64rem; letter-spacing:.12em; }
.ep-market-live { color:#e8f7f4; display:flex; align-items:center; gap:8px; }
/* Red indicator clearly communicates the LIVE state. */
.ep-market-live i,
.ep-status-bar .ep-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  background: #ff4545;
  box-shadow: 0 0 0 0 rgba(255,69,69,.55);
  animation: ep-live-red-pulse 1.6s ease-out infinite;
  flex-shrink: 0;
}
@keyframes ep-live-red-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,69,69,.55); }
  70% { box-shadow: 0 0 0 8px rgba(255,69,69,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,69,69,0); }
}
.ep-market-time { color:var(--mid); }
.ep-market-value-row { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; position:relative; z-index:1; }
.ep-market-value-row div:first-child { display:flex; flex-direction:column; gap:5px; }
.ep-market-symbol { color:var(--accent); font:600 .72rem 'JetBrains Mono',monospace; letter-spacing:.18em; }
.ep-market-value-row strong { font-size:clamp(1.7rem,3vw,2.35rem); font-weight:500; color:#f4f8f7; letter-spacing:-.04em; }
.ep-market-value-row small { color:var(--mid); font: .65rem 'JetBrains Mono',monospace; letter-spacing:.12em; }
.ep-market-change { color:var(--accent); font: .65rem 'JetBrains Mono',monospace; letter-spacing:.08em; padding:7px 9px; border:1px solid rgba(125,222,208,.2); border-radius:5px; }
.ep-market-chart { width:100%; height:190px; overflow:visible; position:relative; z-index:1; display:block; margin:0; }
.ep-chart-grid { fill:none; stroke:rgba(225,245,240,.08); stroke-width:1; stroke-dasharray:3 5; }
.ep-chart-fill { fill:url(#epChartFill); }
.ep-chart-line { fill:none; stroke:var(--accent); stroke-width:3; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 0 6px rgba(125,222,208,.55)); stroke-dasharray:600; stroke-dashoffset:600; animation: ep-chart-draw 2.4s ease-out forwards, ep-chart-glow 3s ease-in-out 2.4s infinite alternate; }
@keyframes ep-chart-draw { to { stroke-dashoffset:0; } }
@keyframes ep-chart-glow { from { filter:drop-shadow(0 0 3px rgba(125,222,208,.3)); } to { filter:drop-shadow(0 0 9px rgba(125,222,208,.75)); } }
.ep-chart-point { fill:var(--accent); stroke:#142020; stroke-width:2; }
.ep-market-panel-bottom { border-top:1px solid rgba(225,245,240,.09); padding-top:9px; color:var(--mid); }
.ep-market-panel-bottom span:last-child { display:flex; align-items:center; gap:7px; color:#d9e9e5; }
.ep-market-panel-bottom b { font-weight:500; }
@media (max-width: 1100px) {
  .ep-hero h1 { white-space:normal; font-size:clamp(2.45rem, 4.8vw, 3.5rem); max-width:13ch; }
  .ep-market-panel { min-height:0; }
}
@media (max-width: 760px) {
  .ep-hero h1 { font-size:clamp(2.2rem, 8vw, 3.1rem); max-width:13ch; }
  .ep-market-panel { min-height:0; width:100%; padding:15px; gap:10px; }
  .ep-market-chart { height:155px; }
}
@media (prefers-reduced-motion: reduce) {
  .ep-market-live i, .ep-status-bar .ep-live-dot, .ep-chart-line { animation:none; }
  .ep-chart-line { stroke-dashoffset:0; }
}


/* V8.8.56: explicitly show the Market Pulse / Monitoring footer. */
.ep-market-panel-bottom {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 16px;
  margin-top: 2px;
  padding: 7px 2px 0;
  border-top: 1px solid rgba(225,245,240,.09);
  position: relative;
  z-index: 2;
}
.ep-market-panel-bottom span:last-child {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}
.ep-market-panel-bottom i {
  display: inline-block !important;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #20d49a;
  box-shadow: 0 0 8px rgba(32,212,154,.45);
  animation: ep-monitor-pulse 1.8s ease-in-out infinite;
}
@media (max-width: 760px) {
  .ep-market-panel-bottom { display: flex !important; }
}


/* V8.8.57 — compact hero market card; keep Market Pulse / Monitoring */
.ep-hero .media { background: transparent !important; padding: 0 !important; }
.ep-market-panel {
  background: radial-gradient(ellipse at 82% 0%, rgba(67,198,190,.13), transparent 46%), linear-gradient(145deg, #202b2c, #11191b 70%) !important;
  padding: 14px 18px 12px !important;
  gap: 8px !important;
  min-height: 0 !important;
}
.ep-market-chart {
  height: 245px !important;
  flex: 1 1 auto;
  min-height: 210px;
}
.ep-market-panel-bottom { padding-top: 7px !important; margin-top: 0 !important; }
@media (max-width: 760px) {
  .ep-market-chart { height: 190px !important; min-height: 170px; }
}


/* V8.8.61 — title order and compact Energy Prices hero spacing */
.energy-page .ep-hero { min-height: 0 !important; padding-top: clamp(78px, 9vh, 105px) !important; padding-bottom: 28px !important; }
.energy-page .ep-hero .wrap.split { gap: clamp(36px, 7vw, 72px) !important; }
.energy-page .ep-hero .text { padding-top: 0 !important; margin-top: 0 !important; }
.energy-page .ep-hero-title { max-width: none !important; width: max-content; white-space: normal !important; line-height: 1.08 !important; margin-top: 12px !important; margin-bottom: 20px !important; }
.energy-page .ep-hero-title span { display: block; white-space: nowrap; }
.energy-page .ep-hero-title span:first-child { font-size: .82em; }
.energy-page .ep-hero-title span:last-child { font-size: 1em; }
.energy-page .ep-hero .media { align-self: center; }
@media (max-width: 760px) {
  .energy-page .ep-hero { padding-top: 88px !important; padding-bottom: 22px !important; }
  .energy-page .ep-hero-title { width: auto; font-size: clamp(2.1rem, 8vw, 3rem) !important; }
  .energy-page .ep-hero-title span:first-child { font-size: .78em; }
}
