/* ==========================================================================
   JerkAds Premium Network — Stylesheet
   Authentic programmatic display ad formatting, sizes, and behaviors.
   Zero external dependencies. Self-contained.
   ========================================================================== */

/* --- Slot Size Reservations (No Layout Shift) --- */
.jad-slot {
  display: block;
  position: relative;
  box-sizing: border-box;
  margin: 1.75rem auto;
  text-align: left;
  clear: both;
}

/* Fallback house message (shown when JS is disabled) */
.jad-slot-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.04);
  border: 1px dashed rgba(120, 120, 120, 0.4);
  color: #777777;
  font-family: 'Martian Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  padding: 1rem;
  text-align: center;
  box-sizing: border-box;
  border-radius: 4px;
}

/* 1. Billboard (970x250 >= 1024px, adapts to mrec 300x250 below) */
.jad-slot[data-jad-format="billboard"] {
  width: 970px;
  max-width: 100%;
  height: 268px; /* includes 18px label space */
}
@media (max-width: 1023.98px) {
  .jad-slot[data-jad-format="billboard"] {
    width: 300px;
    height: 268px;
  }
}

/* 2. Leaderboard (728x90 >= 768px, mobile-banner 320x100 below) */
.jad-slot[data-jad-format="leaderboard"] {
  width: 728px;
  max-width: 100%;
  height: 108px; /* includes label */
}
@media (max-width: 767.98px) {
  .jad-slot[data-jad-format="leaderboard"] {
    width: 320px;
    max-width: 100%;
    height: 118px; /* includes label */
  }
}

/* 3. MREC (300x250) */
.jad-slot[data-jad-format="mrec"] {
  width: 300px;
  max-width: 100%;
  height: 268px; /* includes label */
}

/* 4. Halfpage (300x600, only >= 1280px) */
.jad-slot[data-jad-format="halfpage"] {
  width: 300px;
  height: 618px; /* includes label */
}
@media (max-width: 1279.98px) {
  .jad-slot[data-jad-format="halfpage"] {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
  }
}

/* 5. Native (Fluid card) */
.jad-slot[data-jad-format="native"] {
  width: 100%;
  min-height: 340px;
}

/* 6. Video (16:9 outstream, max-width 640px) */
.jad-slot[data-jad-format="video"] {
  width: 100%;
  max-width: 640px;
  min-height: 240px;
}

/* 7. Anchor (Sticky bottom) */
.jad-slot[data-jad-format="anchor"] {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  margin: 0;
  padding: 0;
  height: 50px;
  display: none; /* revealed after 600px scroll */
}
@media (min-width: 768px) {
  .jad-slot[data-jad-format="anchor"] {
    height: 90px;
  }
}

/* --- Tiny Advertisement Label --- */
.jad-label {
  display: block;
  font-family: 'Martian Mono', ui-monospace, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #71717a;
  margin-bottom: 3px;
  line-height: 1.2;
  user-select: none;
}
.jad-label--sponsored {
  color: #64748b;
  font-weight: 700;
}

/* --- Shimmer Placeholder --- */
.jad-shimmer {
  position: absolute;
  inset: 18px 0 0 0;
  background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 50%, #e2e8f0 100%);
  background-size: 200% 100%;
  animation: jad-shimmer-sweep 1.6s ease-in-out infinite;
  border-radius: 4px;
  z-index: 2;
}
@keyframes jad-shimmer-sweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Dark theme shimmer for MC and dark contexts */
.mc-panel-deepslate .jad-shimmer,
.mc-panel-stone .jad-shimmer,
body.mc-panel-deepslate .jad-shimmer,
.log-section .jad-shimmer {
  background: linear-gradient(90deg, #181524 0%, #2b2540 50%, #181524 100%);
  background-size: 200% 100%;
}

@keyframes jadFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Creative Container Base --- */
.jad-creative-wrap {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  display: flex;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  outline: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
  animation: jadFadeIn 180ms ease forwards;
}
.jad-creative-wrap:focus-visible {
  outline: 2px solid #007aff;
  outline-offset: 2px;
}
.jad-creative-wrap:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

/* --- AdChoices Badge (Top-Right) --- */
.jad-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  background-color: #007aff;
  color: #ffffff;
  border: none;
  border-radius: 2px;
  padding: 1px 2px;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  max-width: 19px;
  height: 17px;
  white-space: nowrap;
  overflow: hidden;
  transition: max-width 0.22s ease, background-color 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.jad-badge:hover,
.jad-badge:focus-visible {
  max-width: 76px;
  background-color: #0056b3;
  outline: none;
}
.jad-badge svg {
  display: block;
  flex-shrink: 0;
}
.jad-badge__text {
  opacity: 0;
  margin-left: 3px;
  margin-right: 3px;
  font-size: 9px;
  letter-spacing: 0.03em;
  transition: opacity 0.15s ease;
}
.jad-badge:hover .jad-badge__text,
.jad-badge:focus-visible .jad-badge__text {
  opacity: 1;
}

/* --- Popover "Why this ad?" Menu --- */
.jad-popover {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  color: #1e293b;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  animation: jad-popover-in 0.18s ease-out;
}
@keyframes jad-popover-in {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}
.jad-popover__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 320px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
}
.jad-popover__title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.jad-popover__close-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #64748b;
  padding: 2px 6px;
  line-height: 1;
}
.jad-popover__close-btn:hover {
  color: #0f172a;
}
.jad-popover__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 320px;
}
.jad-popover__btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  text-align: center;
}
.jad-popover__btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}
.jad-popover__text {
  font-size: 11px;
  line-height: 1.4;
  color: #475569;
  margin-bottom: 8px;
  text-align: left;
}

/* --- Closed Ad Box State --- */
.jad-closed-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #475569;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  padding: 12px;
  box-sizing: border-box;
  text-align: center;
  gap: 6px;
}
.jad-undo-btn {
  color: #007aff;
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 6px;
}

/* --- Banner Animation: Headline slide-in & CTA gentle pulse --- */
@keyframes jad-headline-slide {
  from { transform: translateX(-8px); opacity: 0.5; }
  to { transform: translateX(0); opacity: 1; }
}
.jad-headline-anim {
  animation: jad-headline-slide 0.3s ease-out;
}

@keyframes jad-cta-pulse {
  0%, 88%, 100% { transform: scale(1); }
  94% { transform: scale(1.06); }
}
.jad-cta-pulse {
  animation: jad-cta-pulse 8s ease-in-out infinite;
}

/* --- Pill CTA Button --- */
.jad-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 6px 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.jad-cta-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* --- Typography Clamping --- */
.jad-headline {
  font-weight: 800;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.jad-tagline {
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.jad-sponsor {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  margin: 0;
}

/* --- Format Layouts --- */

/* 1. Leaderboard 728x90 */
.jad-panel-leaderboard {
  width: 728px;
  height: 90px;
  display: flex;
  align-items: center;
}
.jad-panel-leaderboard .jad-thumb-wrap {
  width: 160px;
  height: 90px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.jad-panel-leaderboard .jad-thumb {
  width: 160px;
  height: 90px;
  object-fit: contain;
}
.jad-panel-leaderboard .jad-center-content {
  flex: 1;
  padding: 6px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}
.jad-panel-leaderboard .jad-headline {
  font-size: 15px;
  -webkit-line-clamp: 1;
}
.jad-panel-leaderboard .jad-right-action {
  flex-shrink: 0;
  margin-right: 28px; /* space before AdChoices badge */
}

/* 2. Mobile Banner 320x100 */
.jad-panel-mobile-banner {
  width: 320px;
  max-width: 100%;
  box-sizing: border-box;
  height: 100px;
  display: flex;
  align-items: center;
}
.jad-panel-mobile-banner .jad-thumb-wrap {
  width: clamp(70px, 25vw, 100px);
  height: 100px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.jad-panel-mobile-banner .jad-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.jad-panel-mobile-banner .jad-content {
  flex: 1;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.jad-panel-mobile-banner .jad-headline {
  font-size: 13px;
  -webkit-line-clamp: 2;
}

/* 3. MREC 300x250 */
.jad-panel-mrec {
  width: 300px;
  height: 250px;
  display: flex;
  flex-direction: column;
}
.jad-panel-mrec .jad-thumb-wrap {
  width: 300px;
  height: 169px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.jad-panel-mrec .jad-thumb {
  width: 300px;
  height: 169px;
  object-fit: contain;
}
.jad-panel-mrec .jad-content {
  flex: 1;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}
.jad-panel-mrec .jad-headline {
  font-size: 14px;
  -webkit-line-clamp: 2;
}
.jad-panel-mrec .jad-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* 4. Halfpage 300x600 */
.jad-panel-halfpage {
  width: 300px;
  height: 600px;
  display: flex;
  flex-direction: column;
}
.jad-panel-halfpage .jad-top-media {
  width: 300px;
  height: 180px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.jad-panel-halfpage .jad-top-media img {
  width: 300px;
  height: 180px;
  object-fit: contain;
}
.jad-panel-halfpage .jad-main-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.jad-panel-halfpage .jad-headline {
  font-size: 20px;
  -webkit-line-clamp: 3;
}
.jad-panel-halfpage .jad-more-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
}
.jad-panel-halfpage .jad-more-thumb {
  width: 64px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 2px;
}

/* 5. Billboard 970x250 */
.jad-panel-billboard {
  width: 970px;
  height: 250px;
  display: flex;
  align-items: center;
}
.jad-panel-billboard .jad-thumb-wrap {
  width: 444px;
  height: 250px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.jad-panel-billboard .jad-thumb {
  width: 444px;
  height: 250px;
  object-fit: contain;
}
.jad-panel-billboard .jad-content {
  flex: 1;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.jad-panel-billboard .jad-headline {
  font-size: 26px;
  -webkit-line-clamp: 2;
}

/* 6. Native Unit */
.jad-panel-native {
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.jad-panel-native .jad-native-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.1);
  display: block;
  border-radius: 4px;
  margin-bottom: 12px;
}
.jad-panel-native .jad-native-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.jad-panel-native .jad-headline {
  font-size: 1.15rem;
}
.jad-panel-native .jad-tagline {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* 7. Outstream Video Unit (16:9, max-width 640px) */
.jad-panel-video {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background-color: #000000;
  border-radius: 4px;
}
.jad-video-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transform-origin: center center;
}
.jad-video-kenburns {
  animation: jad-kenburns-zoom 15s linear infinite alternate;
}
@keyframes jad-kenburns-zoom {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.08) translate(-1%, -1%); }
  100% { transform: scale(1.15) translate(-2%, -2%); }
}
.jad-video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.jad-video-top-bar {
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
}
.jad-video-muted-icon {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}
.jad-video-controls {
  padding: 8px 12px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  pointer-events: auto;
}
.jad-video-timer {
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  margin-right: 6px;
}
.jad-video-skip-btn {
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.jad-video-skip-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: #ffffff;
}
.jad-video-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
}
.jad-video-progress-bar {
  height: 100%;
  width: 0%;
  background: #007aff;
  transition: width 0.1s linear;
}
.jad-video-collapsed-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px dashed rgba(120, 120, 120, 0.3);
  border-radius: 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  color: #64748b;
}
.jad-video-replay-btn {
  background: none;
  border: none;
  color: #007aff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* 8. Sticky Anchor Bar */
.jad-anchor-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: rgba(18, 20, 25, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.jad-anchor-container.is-visible {
  transform: translateY(0);
}
.jad-anchor-close-tab {
  position: absolute;
  top: -24px;
  right: 16px;
  width: 28px;
  height: 24px;
  background: rgba(18, 20, 25, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
  line-height: 1;
}
.jad-anchor-close-tab:hover {
  background: #272a33;
}
.jad-panel-anchor-phone {
  width: 320px;
  height: 50px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.jad-panel-anchor-phone .jad-thumb {
  width: 60px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.15);
}
.jad-panel-anchor-phone .jad-content {
  flex: 1;
  padding: 2px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}
.jad-panel-anchor-phone .jad-headline {
  font-size: 12px;
  -webkit-line-clamp: 1;
}
.jad-panel-anchor-phone .jad-cta-btn {
  padding: 4px 10px;
  font-size: 11px;
}

/* --- Sponsor Landing Dialog (<dialog>) --- */
.jad-dialog {
  border: none;
  border-radius: 12px;
  max-width: 640px;
  width: 90%;
  padding: 0;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  background: #ffffff;
  color: #1e293b;
  overflow: hidden;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  z-index: 10000;
}
.jad-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.jad-dialog-image-frame {
  width: 100%;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.jad-dialog-image {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  display: block;
}
.jad-dialog-close-corner {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.jad-dialog-close-corner:hover {
  background: rgba(0, 0, 0, 0.9);
}
.jad-dialog-content {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.jad-dialog-brand-badge {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}
.jad-dialog-headline {
  font-family: var(--font-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
  color: #0f172a;
  margin: 0;
}
.jad-dialog-tagline {
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
  margin: 0;
}
.jad-dialog-offer {
  font-family: 'Martian Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  padding: 8px 12px;
}
.jad-dialog-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.jad-dialog-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease, transform 0.1s ease;
}
.jad-dialog-btn--primary {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
}
.jad-dialog-btn--secondary {
  background: #0f172a;
  color: #ffffff;
}
.jad-dialog-btn--secondary:hover {
  background: #1e293b;
}

/* --- Minecraft UI Styles Integration (for /mc and /mc/stats) --- */
.mc-jad-frame {
  box-sizing: border-box;
  max-width: 100%;
  border: 3px solid #111111;
  box-shadow:
    inset 3px 3px 0 #a8adc0,
    inset -3px -3px 0 #373737,
    4px 4px 0 #000000;
  background-color: #282834;
  padding: 4px;
}
.mc-ad-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

/* --- Roster view native ad integration in /mc/stats --- */
.roster-card.jad-roster-native {
  cursor: pointer;
  border-style: dashed;
  grid-column: 1 / -1;
  height: auto;
  min-height: 0;
}
.roster-card.jad-roster-native .jad-panel-native {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.roster-card.jad-roster-native .jad-native-media {
  width: min(260px, 40%);
  height: auto;
  flex-shrink: 0;
  margin-bottom: 0;
}
@media (max-width: 480px) {
  .roster-card.jad-roster-native .jad-panel-native {
    flex-direction: column;
    align-items: stretch;
  }
  .roster-card.jad-roster-native .jad-native-media {
    width: 100%;
  }
}

/* --- Reduced Motion Overrides --- */
@media (prefers-reduced-motion: reduce) {
  .jad-shimmer {
    animation: none !important;
  }
  .jad-headline-anim {
    animation: none !important;
    transform: none !important;
  }
  .jad-cta-pulse {
    animation: none !important;
    transform: none !important;
  }
  .jad-video-kenburns {
    animation: none !important;
    transform: none !important;
  }
  .jad-anchor-container {
    transition: none !important;
  }
}
