/* English GO — تصميم كامل بدون أي إطار عمل خارجي (لا Tailwind، لا React) */

#english-go-app, #english-go-app * {
  box-sizing: border-box;
}

#english-go-app {
  --ink-950: #0a0908;
  --ink-900: #121110;
  --ink-800: #1a1816;
  --ink-700: #252220;
  --ink-600: #332e2a;
  --gold-300: #f3d98b;
  --gold-400: #e8c468;
  --gold-500: #d4a942;
  --gold-600: #b8862e;
  --gold-700: #8f6620;
  --sand: #cfc6b8;
  --success: #3aa66f;
  --danger: #c0594a;

  direction: rtl;
  font-family: 'IBM Plex Sans Arabic', Tahoma, Arial, sans-serif;
  background: var(--ink-950);
  color: #fff;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  min-height: 600px;
  display: flex;
  flex-direction: column;
}

#english-go-app .eg-ltr {
  direction: ltr;
  text-align: left;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

#english-go-app .eg-screen {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px 90px;
  -webkit-overflow-scrolling: touch;
}

#english-go-app .eg-screen::-webkit-scrollbar { width: 6px; }
#english-go-app .eg-screen::-webkit-scrollbar-thumb { background: var(--gold-600); border-radius: 999px; }

/* ===== Header row ===== */
#english-go-app .eg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
#english-go-app .eg-title {
  color: var(--gold-400);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
}
#english-go-app .eg-points-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--ink-800);
  border: 1px solid rgba(143,102,32,0.4);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--gold-400);
  font-size: 12px;
  font-weight: 600;
}
#english-go-app .eg-icon-btn {
  background: none;
  border: none;
  color: var(--sand);
  opacity: 0.8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}
#english-go-app .eg-icon-btn:active { transform: scale(0.92); }

/* ===== Card ===== */
#english-go-app .eg-card {
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 20px -4px rgba(0,0,0,0.5);
  margin-bottom: 16px;
  animation: eg-pop 0.25s ease-out;
}
@keyframes eg-pop {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes eg-slide {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
#english-go-app .eg-badge {
  font-size: 11px;
  color: rgba(207,198,184,0.6);
  background: var(--ink-800);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
}
#english-go-app .eg-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
#english-go-app .eg-sentence-en {
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 8px;
  line-height: 1.35;
}
#english-go-app .eg-sentence-ar {
  font-size: 16px;
  color: var(--sand);
  margin: 0;
  line-height: 1.6;
}
#english-go-app .eg-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
#english-go-app .eg-speak-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink-800);
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--gold-400);
  cursor: pointer;
  font-size: 12px;
}
#english-go-app .eg-speak-btn:active { transform: scale(0.96); }
#english-go-app .eg-heart-btn {
  background: none;
  border: none;
  color: #f87171;
  cursor: pointer;
  display: flex;
}

/* ===== Buttons ===== */
#english-go-app .eg-btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--gold-500);
  color: var(--ink-950);
  font-weight: 800;
  border: none;
  border-radius: 18px;
  padding: 15px;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(212,169,66,0.35), 0 8px 30px -8px rgba(212,169,66,0.25);
}
#english-go-app .eg-btn-primary:active { transform: scale(0.98); }
#english-go-app .eg-btn-secondary {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
  color: var(--sand);
  font-weight: 600;
  border-radius: 18px;
  padding: 15px;
  font-size: 14px;
  cursor: pointer;
}

/* ===== Bottom nav ===== */
#english-go-app .eg-bottom-nav {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(18,17,16,0.97);
  border-top: 1px solid var(--ink-700);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 10;
}
#english-go-app .eg-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 0;
  color: rgba(207,198,184,0.6);
  font-size: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
#english-go-app .eg-nav-item.active { color: var(--gold-400); }

/* ===== Grids ===== */
#english-go-app .eg-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
#english-go-app .eg-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
#english-go-app .eg-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
#english-go-app .eg-tool-tile {
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
  border-radius: 16px;
  padding: 14px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--sand);
  text-decoration: none;
}
#english-go-app .eg-tool-tile:active { border-color: rgba(184,134,46,0.5); }
#english-go-app .eg-tool-tile svg { color: var(--gold-500); }
#english-go-app .eg-tool-tile span { font-size: 10.5px; text-align: center; line-height: 1.2; }

/* ===== Progress bar ===== */
#english-go-app .eg-progress-track {
  width: 100%;
  height: 8px;
  background: var(--ink-700);
  border-radius: 999px;
  overflow: hidden;
}
#english-go-app .eg-progress-fill {
  height: 100%;
  background: var(--gold-500);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* ===== List rows ===== */
#english-go-app .eg-row {
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
#english-go-app .eg-row-index {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: rgba(212,169,66,0.15);
  color: var(--gold-400);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#english-go-app .eg-row-text { flex: 1; min-width: 0; }
#english-go-app .eg-row-text .eg-ltr {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#english-go-app .eg-row-text .eg-ar {
  color: rgba(207,198,184,0.7);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Quiz options ===== */
#english-go-app .eg-option {
  width: 100%;
  text-align: right;
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
  border-radius: 14px;
  padding: 14px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
#english-go-app .eg-option.selected { background: rgba(212,169,66,0.1); border-color: var(--gold-500); }
#english-go-app .eg-option.correct { background: rgba(58,166,111,0.15); border-color: var(--success); }
#english-go-app .eg-option.wrong { background: rgba(192,89,74,0.15); border-color: var(--danger); }

#english-go-app .eg-input {
  width: 100%;
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
  border-radius: 14px;
  padding: 14px;
  color: #fff;
  font-size: 15px;
  outline: none;
  margin-bottom: 10px;
}
#english-go-app .eg-input:focus { border-color: var(--gold-500); }
#english-go-app .eg-input::placeholder { color: rgba(207,198,184,0.3); }

/* ===== Category tiles ===== */
#english-go-app .eg-cat-tile {
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
  border-radius: 16px;
  padding: 14px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  color: var(--sand);
}
#english-go-app .eg-cat-tile svg { color: var(--gold-500); }
#english-go-app .eg-cat-tile span { font-size: 10.5px; text-align: center; line-height: 1.2; }

/* ===== Stat box ===== */
#english-go-app .eg-stat-box {
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
#english-go-app .eg-stat-circle {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: rgba(212,169,66,0.1);
  color: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#english-go-app .eg-stat-value { font-weight: 700; font-size: 18px; line-height: 1; }
#english-go-app .eg-stat-label { font-size: 11px; color: rgba(207,198,184,0.5); margin-top: 4px; }

/* ===== Flashcard ===== */
#english-go-app .eg-flashcard {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--ink-900);
  border: 1px solid rgba(143,102,32,0.3);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  cursor: pointer;
  margin-bottom: 20px;
}

/* ===== Toast / message ===== */
#english-go-app .eg-message {
  background: var(--ink-800);
  border: 1px solid rgba(143,102,32,0.3);
  color: var(--sand);
  font-size: 13px;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 20px;
}

/* ===== Chat bubbles ===== */
#english-go-app .eg-bubble-row { display: flex; margin-bottom: 12px; }
#english-go-app .eg-bubble-row.you { justify-content: flex-end; }
#english-go-app .eg-bubble {
  max-width: 85%;
  border-radius: 18px;
  padding: 12px 14px;
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
}
#english-go-app .eg-bubble-row.you .eg-bubble {
  background: rgba(212,169,66,0.15);
  border-color: rgba(212,169,66,0.3);
}

/* ===== Utilities ===== */
#english-go-app .eg-center { text-align: center; }
#english-go-app .eg-muted { color: rgba(207,198,184,0.5); }
#english-go-app .eg-mb-2 { margin-bottom: 8px; }
#english-go-app .eg-mb-4 { margin-bottom: 16px; }
#english-go-app .eg-flex-between { display: flex; align-items: center; justify-content: space-between; }
#english-go-app .eg-empty-state { text-align: center; padding: 60px 16px; color: rgba(207,198,184,0.4); }
#english-go-app .eg-hidden { display: none !important; }

#english-go-app .eg-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
}
#english-go-app .eg-logo-box {
  width: 60px; height: 60px;
  border: 2px solid var(--gold-500);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  font-weight: 800;
  font-size: 20px;
}
