@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

#my-eglence-app {
  --blue:     #3b82f6;
  --blue-lt:  #60a5fa;
  --blue-dk:  #1d4ed8;
  --bg:       #f1f5f9;
  --surf:     #ffffff;
  --surf2:    #f8fafc;
  --line:     rgba(59,130,246,.15);
  --line2:    rgba(0,0,0,.07);
  --txt:      #1e293b;
  --muted:    #64748b;

  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--txt);
  background: #f1f5f9;
  padding: 20px;
  border-radius: 20px;
  overflow: hidden;
  box-sizing: border-box;
}
#my-eglence-app * { box-sizing: border-box; }

/* HERO */
.eg-hero {
  position: relative;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #60a5fa 100%);
}
.eg-orb { position: absolute; border-radius: 999px; pointer-events: none; }
.eg-orb-a {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,.18) 0%, transparent 70%);
  top: -120px; left: -100px;
}
.eg-orb-b {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 70%);
  bottom: -110px; right: -90px;
}
.eg-hero-inner {
  position: relative;
  z-index: 2;
  padding: 52px 48px;
  max-width: 800px;
}
.eg-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.15);
  color: #fff;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.eg-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  color: #fff;
}
.eg-hero p {
  max-width: 560px;
  color: rgba(255,255,255,.75);
  font-size: 15px;
  line-height: 1.8;
  font-weight: 300;
  margin: 0;
}
.eg-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.eg-main-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  background: #fff;
  color: var(--blue-dk);
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
  transition: transform .2s, box-shadow .2s;
}
.eg-main-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
}
.eg-mini-proof {
  font-size: 12px;
  color: rgba(255,255,255,.65);
  font-weight: 300;
}

/* INTRO */
.eg-intro {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.eg-intro-text,
.eg-highlight-box,
.eg-content article,
.eg-faq {
  background: var(--surf);
  border: 1px solid var(--line2);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.eg-intro h2, .eg-content h2, .eg-faq h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--txt);
}
.eg-intro p, .eg-content p, .eg-faq p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  font-weight: 300;
}
.eg-highlight-box { display: flex; flex-direction: column; gap: 8px; }
.eg-highlight-box span {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 9px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--blue-dk);
  font-size: 13px;
  font-weight: 500;
}
.eg-highlight-box span::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  flex-shrink: 0;
}

/* LISTE */
.eg-list-section { margin-top: 14px; }
.eg-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line2);
}
.eg-section-head span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
}
.eg-section-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--txt);
}
.eg-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.eg-item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 20px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--txt);
  background: var(--surf);
  border: 1px solid var(--line2);
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  overflow: hidden;
  pointer-events: none;
  cursor: default;
  transition: box-shadow .2s;
}
.eg-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: var(--badge-color);
  opacity: .8;
}
.eg-card-top, .eg-card-bottom {
  position: relative; z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.eg-rank { font-size: 10px; color: #cbd5e1; font-weight: 500; }
.eg-badge {
  display: inline-flex;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  letter-spacing: .8px;
}
.eg-info { position: relative; z-index: 2; margin: 18px 0 12px; flex: 1; }
.eg-info small {
  display: block;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--badge-color);
  margin-bottom: 6px;
}
.eg-info h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--txt);
}
.eg-info p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; font-weight: 300; }
.eg-card-bottom {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line2);
}
.eg-note { font-size: 11px; color: #94a3b8; }
.eg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--blue-dk);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
}

/* CONTENT */
.eg-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 12px;
}
.eg-content article { min-height: 150px; }
.eg-content article:nth-child(1) {
  grid-column: span 2;
  background: linear-gradient(135deg, #eff6ff, #fff);
  border-color: #bfdbfe;
}

/* FAQ */
.eg-faq { margin-top: 12px; }
.eg-faq details {
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: var(--surf);
  padding: 14px 18px;
  margin-top: 8px;
  transition: border-color .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.eg-faq details[open] { border-color: #bfdbfe; }
.eg-faq summary {
  cursor: pointer;
  list-style: none;
  color: var(--txt);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.eg-faq summary::-webkit-details-marker { display: none; }
.eg-faq summary::before {
  content: '›';
  font-size: 18px;
  color: var(--blue);
  flex-shrink: 0;
  line-height: 1;
  transition: transform .2s;
}
details[open] summary::before { transform: rotate(90deg); }
.eg-faq details p { padding-top: 10px; }
.eg-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 18px;
  border-radius: 10px;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .eg-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .eg-intro { grid-template-columns: 1fr; }
  .eg-content { grid-template-columns: 1fr; }
  .eg-content article:nth-child(1) { grid-column: auto; }
}
@media (max-width: 640px) {
  #my-eglence-app { padding: 12px; border-radius: 16px; }
  .eg-hero { border-radius: 13px; }
  .eg-hero-inner { padding: 32px 20px; }
  .eg-hero h1 { font-size: 30px; }
  .eg-list { grid-template-columns: 1fr; }
  .eg-section-head { display: block; }
  .eg-section-head h2 { font-size: 22px; margin-top: 6px; }
  .eg-intro-text, .eg-highlight-box, .eg-content article, .eg-faq { padding: 20px; }
  .eg-item { min-height: auto; }
  .eg-main-cta { width: 100%; }
  .eg-mini-proof { display: none; }
}
