/* AlphaEdge Daily Profit Results — Ultra Premium UI */
.aec-dr-popup-backdrop {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(7,13,26,0.65); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 1.25rem;
  animation: aecDrFade 0.3s ease;
}
@keyframes aecDrFade { from { opacity: 0; } to { opacity: 1; } }

.aec-dr-popup {
  background: #fff; border-radius: 20px; max-width: 440px; width: 100%;
  max-height: min(92vh, 720px);
  display: flex; flex-direction: column;
  padding: 0; box-shadow: 0 28px 80px rgba(10,31,68,0.35);
  border: 1px solid rgba(212,175,55,0.35); overflow: hidden;
  animation: aecDrUp 0.4s cubic-bezier(0.22,1,0.36,1);
}
.aec-dr-popup-scroll {
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  flex: 1 1 auto; min-height: 0;
}
.aec-dr-popup-footer {
  flex: 0 0 auto; padding: 0.85rem 1.25rem 1.15rem;
  background: #fff; border-top: 1px solid rgba(10,31,68,0.06);
  text-align: center;
}
@keyframes aecDrUp {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.aec-dr-ok {
  display: inline-block; margin: 0 auto; min-width: 140px;
  background: linear-gradient(135deg,#D4AF37,#B8860B); color: #0A1F44;
  border: none; border-radius: 10px; padding: 0.75rem 1.9rem;
  font-weight: 700; font-size: 1rem; cursor: pointer;
}
.aec-dr-ok:hover { filter: brightness(1.06); }

.aec-dr-card {
  background: linear-gradient(160deg, #0A1F44 0%, #132a55 55%, #0d1b36 100%);
  color: #fff; padding: 1.5rem 1.35rem 1.1rem; text-align: center;
  position: relative;
}
.aec-dr-card.is-compact { padding: 1.1rem 1rem; }
.aec-dr-brand {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #D4AF37; font-weight: 700; margin-bottom: 0.35rem;
}
.aec-dr-head {
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0.75; margin-bottom: 0.5rem;
  line-height: 1.35; padding: 0 0.25rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.aec-dr-img {
  width: 100%; max-height: 160px; object-fit: cover; border-radius: 10px;
  margin: 0.4rem 0 0.75rem; border: 1px solid rgba(212,175,55,0.25);
}
/* Banner under hero (index): show the full image, scaled to fit — no crop */
.aec-dr-banner .aec-dr-img {
  width: 100%;
  height: auto;
  max-height: min(480px, 55vh);
  object-fit: contain;
  object-position: center;
  background: rgba(10, 31, 68, 0.35);
  display: block;
  margin: 0.5rem 0 0.85rem;
}
.aec-dr-pct {
  font-size: 3.4rem; font-weight: 800; color: #D4AF37; line-height: 1;
  letter-spacing: -0.03em;
}
.aec-dr-pct span { font-size: 1.6rem; }
.aec-dr-card.is-compact .aec-dr-pct { font-size: 2.4rem; }
.aec-dr-label {
  display: inline-block; margin-top: 0.4rem; padding: 0.25rem 0.7rem;
  border: 1.5px solid rgba(212,175,55,0.5); border-radius: 6px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; color: #D4AF37;
}
.aec-dr-sub { margin-top: 0.55rem; font-size: 0.9rem; opacity: 0.9; }
.aec-dr-date { margin-top: 0.35rem; font-size: 0.78rem; opacity: 0.55; }
.aec-dr-body {
  margin: 0.85rem 0 0; font-size: 0.84rem; line-height: 1.6;
  opacity: 0.85; text-align: left;
  max-height: 9.5rem; overflow-y: auto; padding-right: 0.35rem;
  -webkit-overflow-scrolling: touch;
}
.aec-dr-body::-webkit-scrollbar { width: 4px; }
.aec-dr-body::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.45); border-radius: 4px; }
.aec-dr-foot {
  margin-top: 0.85rem; font-size: 0.65rem; opacity: 0.4;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.aec-dr-5day {
  display: flex; gap: 0.35rem; margin-top: 0.85rem; justify-content: center; flex-wrap: wrap;
}
.aec-dr-5cell {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(212,175,55,0.2);
  border-radius: 8px; padding: 0.35rem 0.5rem; min-width: 58px;
}
.aec-dr-5cell .d { display: block; font-size: 0.62rem; opacity: 0.55; }
.aec-dr-5cell .p { display: block; font-size: 0.85rem; font-weight: 700; color: #D4AF37; }

/* Side slides */
.aec-dr-side {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 9000;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.aec-dr-side-left { left: 0; }
.aec-dr-side-right { right: 0; }
.aec-dr-side-tab {
  background: linear-gradient(135deg,#0A1F44,#1a3358); color: #D4AF37;
  border: 1px solid rgba(212,175,55,0.4); padding: 0.85rem 0.55rem;
  cursor: pointer; writing-mode: vertical-rl; text-orientation: mixed;
  font-weight: 700; letter-spacing: 0.06em; box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}
.aec-dr-side-left .aec-dr-side-tab { border-radius: 0 12px 12px 0; border-left: none; }
.aec-dr-side-right .aec-dr-side-tab { border-radius: 12px 0 0 12px; border-right: none; writing-mode: vertical-lr; }
.aec-dr-side-pct { display: block; font-size: 1rem; }
.aec-dr-side-label { display: block; font-size: 0.65rem; opacity: 0.7; margin-top: 0.35rem; color: #fff; }
.aec-dr-side-panel {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: min(340px, 88vw); background: #0A1F44; border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4); border: 1px solid rgba(212,175,55,0.3);
  opacity: 0; pointer-events: none; transition: 0.3s;
}
.aec-dr-side-left .aec-dr-side-panel { left: 100%; margin-left: 8px; }
.aec-dr-side-right .aec-dr-side-panel { right: 100%; margin-right: 8px; }
.aec-dr-side.is-open .aec-dr-side-panel { opacity: 1; pointer-events: auto; }
.aec-dr-side-close {
  display: block; width: calc(100% - 1.5rem); margin: 0 0.75rem 0.75rem;
  background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #fff;
  border-radius: 8px; padding: 0.45rem; cursor: pointer; font-size: 0.85rem;
}
.aec-dr-edge-hotzone {
  position: fixed; top: 0; bottom: 0; width: 18px; z-index: 8999;
}
.aec-dr-edge-left { left: 0; }
.aec-dr-edge-right { right: 0; }

/* Corners */
.aec-dr-corner {
  position: fixed; z-index: 8900; display: flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg,#0A1F44,#1a3358); color: #fff;
  border: 1px solid rgba(212,175,55,0.4); border-radius: 12px;
  padding: 0.55rem 0.9rem; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}
.aec-dr-corner:hover { transform: translateY(-2px); }
.aec-dr-corner-br { bottom: 1.25rem; right: 1.25rem; }
.aec-dr-corner-bl { bottom: 1.25rem; left: 1.25rem; }
.aec-dr-corner-tr { top: calc(var(--nav-height, 72px) + 0.75rem); right: 1.25rem; }
.aec-dr-corner-pct { font-weight: 800; color: #D4AF37; font-size: 1.1rem; }
.aec-dr-corner-txt { font-size: 0.72rem; opacity: 0.75; letter-spacing: 0.04em; }

.aec-dr-banner {
  margin: 1rem auto;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 1100px; /* fits typical landscape result art (~70×30mm aspect when scaled) */
}
.aec-dr-banner .aec-dr-card {
  width: 100%;
  max-width: none;
}
.aec-dr-banner .aec-dr-card.is-compact {
  padding: 1.25rem 1.15rem 1.35rem;
}

@media (max-width: 768px) {
  .aec-dr-side { display: none; }
  .aec-dr-pct { font-size: 2.6rem; }
}
