/* HifzIQ Pro — Front-end stylesheet */
:root {
  --hiq-bg:        #07090f;
  --hiq-surface:   #0e1420;
  --hiq-card:      #131a28;
  --hiq-border:    #1e2d42;
  --hiq-gold:      #d4a843;
  --hiq-goldSoft:  #f0d080;
  --hiq-green:     #1e8a5a;
  --hiq-greenSoft: #2dba7a;
  --hiq-red:       #b83232;
  --hiq-blue:      #2a6fa8;
  --hiq-text:      #e8dfc8;
  --hiq-muted:     #6a7f9a;
  --hiq-accent:    #3a5f85;
}

/* ── Reset inside wrapper ─────────────────────────── */
.hifziq-wrap *, .hifziq-auth-wrap * { box-sizing: border-box; }

/* ── Auth ─────────────────────────────────────────── */
.hifziq-auth-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 2rem 1rem;
  background: var(--hiq-bg);
}
.hifziq-auth-card {
  background: var(--hiq-card);
  border: 1px solid var(--hiq-border);
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  color: var(--hiq-text);
}
.hifziq-logo-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.hifziq-logo-mark {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #d4a843, #7a4a00);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700; color: #fff;
  font-family: 'Amiri', serif;
}
.hifziq-brand       { font-size: 1.4rem; font-weight: 700; color: var(--hiq-goldSoft); }
.hifziq-pro-badge   { background: var(--hiq-gold); color: #000; border-radius: 4px; padding: 1px 6px; font-size: 0.7rem; font-weight: 700; margin-left: 4px; }
.hifziq-brand-sub   { font-size: 0.75rem; color: var(--hiq-muted); }

/* WP login form overrides */
.hifziq-auth-wrap #loginform,
.hifziq-auth-wrap #wp-submit { background: var(--hiq-gold); border: none; border-radius: 8px; padding: 0.6rem 1.2rem; color: #000; font-weight: 700; width: 100%; cursor: pointer; }
.hifziq-auth-wrap .login-username label,
.hifziq-auth-wrap .login-password label { color: var(--hiq-muted); font-size: 0.8rem; }
.hifziq-auth-wrap .login-username input,
.hifziq-auth-wrap .login-password input { background: var(--hiq-surface); border: 1px solid var(--hiq-border); color: var(--hiq-text); border-radius: 8px; padding: 0.5rem 0.75rem; width: 100%; }
.hifziq-auth-links  { margin-top: 1rem; text-align: center; }
.hifziq-auth-links a { color: var(--hiq-gold); font-size: 0.85rem; }

/* ── Alerts ───────────────────────────────────────── */
.hifziq-alert { padding: 0.75rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: 0.9rem; }
.hifziq-alert-error   { background: #2a1010; color: #e07070; border-left: 3px solid var(--hiq-red); }
.hifziq-alert-success { background: #0a2a1a; color: var(--hiq-greenSoft); border-left: 3px solid var(--hiq-green); }
.hifziq-notice { background: var(--hiq-card); border-left: 4px solid var(--hiq-gold); padding: 1rem; color: var(--hiq-text); border-radius: 8px; }

/* ── App wrapper ──────────────────────────────────── */
.hifziq-wrap {
  background: var(--hiq-bg);
  color: var(--hiq-text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  border-radius: 16px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  min-height: 70vh;
}

/* ── Header ───────────────────────────────────────── */
.hifziq-header {
  background: var(--hiq-surface);
  border-bottom: 1px solid var(--hiq-border);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hifziq-streak-pill {
  background: #1a1000;
  border: 1px solid rgba(212,168,67,.4);
  border-radius: 20px;
  padding: 4px 12px;
  color: var(--hiq-gold);
  font-size: 0.85rem;
}

/* ── Tabs ─────────────────────────────────────────── */
.hifziq-tabs {
  display: flex;
  background: var(--hiq-surface);
  border-bottom: 1px solid var(--hiq-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.hifziq-tabs::-webkit-scrollbar { display: none; }
.hifziq-tab {
  flex-shrink: 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--hiq-muted);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.2s;
}
.hifziq-tab:hover { color: var(--hiq-gold); }
.hifziq-tab.active { color: var(--hiq-gold); border-bottom-color: var(--hiq-gold); font-weight: 600; }

/* ── Panels ───────────────────────────────────────── */
.hifziq-panel { display: none; padding: 1.25rem; }
.hifziq-panel.active { display: block; }

/* ── Cards & sections ─────────────────────────────── */
.hifziq-card {
  background: var(--hiq-card);
  border: 1px solid var(--hiq-border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.hifziq-panel-title { color: var(--hiq-goldSoft); font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.hifziq-section-title { color: var(--hiq-muted); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; margin: 1.25rem 0 0.5rem; }
.hifziq-muted { color: var(--hiq-muted); }

/* ── Due alert ────────────────────────────────────── */
.hifziq-due-alert {
  background: linear-gradient(135deg, #2a1800, #1a0f00);
  border: 1px solid rgba(212,168,67,.5);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  margin-bottom: 1rem;
}
.hifziq-due-left    { display: flex; align-items: baseline; gap: 0.5rem; }
.hifziq-due-num     { font-size: 2.5rem; font-weight: 700; color: var(--hiq-gold); line-height: 1; }
.hifziq-arrow       { color: var(--hiq-gold); font-size: 0.9rem; font-weight: 600; }

/* ── Stat grid ────────────────────────────────────── */
.hifziq-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.hifziq-stat-tile  { background: var(--hiq-card); border: 1px solid var(--hiq-border); border-radius: 12px; padding: 0.75rem 0.5rem; text-align: center; }
.hifziq-stat-icon  { font-size: 1.25rem; }
.hifziq-stat-val   { font-size: 1.5rem; font-weight: 700; color: var(--hiq-goldSoft); line-height: 1.2; }
.hifziq-stat-label { font-size: 0.65rem; color: var(--hiq-muted); margin-top: 2px; text-transform: uppercase; }

/* ── Session grid ─────────────────────────────────── */
.hifziq-session-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.hifziq-session-tile {
  background: var(--hiq-card);
  border: 1.5px solid var(--hiq-border);
  border-radius: 12px;
  padding: 1rem 0.5rem;
  cursor: pointer;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.hifziq-session-tile:hover { border-color: var(--hiq-gold); background: #1a1200; }
.hifziq-stile-icon { font-size: 1.5rem; margin-bottom: 4px; }
.hifziq-stile-sub  { font-size: 0.7rem; color: var(--hiq-muted); margin-top: 2px; }

/* ── Assignment row ───────────────────────────────── */
.hifziq-assign-row { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--hiq-border); }
.hifziq-assign-row:last-child { border-bottom: none; }

/* ── Buttons ──────────────────────────────────────── */
.hifziq-btn {
  padding: 0.5rem 1.25rem;
  border: none; border-radius: 8px;
  cursor: pointer; font-size: 0.9rem;
  font-family: inherit; transition: all 0.2s;
}
.hifziq-btn-primary { background: var(--hiq-gold); color: #000; font-weight: 700; }
.hifziq-btn-primary:hover { background: var(--hiq-goldSoft); transform: translateY(-1px); }
.hifziq-btn-secondary { background: var(--hiq-accent); color: #fff; }
.hifziq-btn-secondary:hover { background: #4a7fa8; }
.hifziq-btn-danger { background: var(--hiq-red); color: #fff; }
.hifziq-btn-outline { background: transparent; border: 1px solid var(--hiq-border); color: var(--hiq-muted); }
.hifziq-btn-outline:hover { border-color: var(--hiq-gold); color: var(--hiq-gold); }
.hifziq-btn-sm { padding: 0.25rem 0.75rem; font-size: 0.75rem; }

/* ── Form ─────────────────────────────────────────── */
.hifziq-form { display: flex; flex-direction: column; gap: 1rem; }
.hifziq-field { display: flex; flex-direction: column; gap: 0.25rem; }
.hifziq-field label { font-size: 0.8rem; color: var(--hiq-muted); }
.hifziq-field input,
.hifziq-field select,
.hifziq-field textarea {
  background: var(--hiq-surface) !important;
  border: 1px solid var(--hiq-border) !important;
  color: var(--hiq-text) !important;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  -webkit-text-fill-color: var(--hiq-text);
  caret-color: var(--hiq-text);
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  box-sizing: border-box;
}
.hifziq-field input:focus,
.hifziq-field select:focus,
.hifziq-field textarea:focus {
  border-color: var(--hiq-gold) !important;
  background: var(--hiq-surface) !important;
  color: var(--hiq-text) !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(212,168,67,0.18);
}
/* Fix browser autofill yellow background */
.hifziq-field input:-webkit-autofill,
.hifziq-field input:-webkit-autofill:hover,
.hifziq-field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--hiq-surface) inset !important;
  -webkit-text-fill-color: var(--hiq-text) !important;
  caret-color: var(--hiq-text);
}
/* Select arrow colour fix */
.hifziq-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  padding-right: 2rem !important;
  cursor: pointer;
}
.hifziq-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* ── Progress bar ─────────────────────────────────── */
.hifziq-progress-bar { background: var(--hiq-border); border-radius: 10px; height: 7px; overflow: hidden; }
.hifziq-progress-fill { background: var(--hiq-green); height: 100%; border-radius: 10px; transition: width 0.3s; }

/* ── Review screen ────────────────────────────────── */
.hifziq-review-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.hifziq-review-card { background: var(--hiq-card); border: 1px solid var(--hiq-border); border-radius: 16px; padding: 1.25rem; }
.hifziq-arabic-text { font-family: 'Amiri','Traditional Arabic',serif; font-size: 1.6rem; line-height: 1.9; direction: rtl; text-align: right; padding: 1rem; background: var(--hiq-surface); border-radius: 12px; }
.hifziq-arabic-blur { filter: blur(4px); user-select: none; }
.hifziq-grade-row   { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.hifziq-grade-btn   { flex: 1; border: none; border-radius: 12px; padding: 0.85rem 0.5rem; color: #fff; cursor: pointer; text-align: center; font-family: inherit; }
.hifziq-grade-icon  { font-size: 1.25rem; }
.hifziq-grade-label { font-size: 0.85rem; font-weight: 600; margin-top: 2px; }
.hifziq-grade-hint  { font-size: 0.7rem; opacity: 0.7; margin-top: 2px; }
.hifziq-listen-circle {
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--hiq-accent); border: 2px solid var(--hiq-gold);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; margin: 0 auto 1rem; font-size: 2rem;
}
.hifziq-palace-box { background: var(--hiq-surface); border-radius: 10px; padding: 0.75rem; margin-top: 1rem; }
.hifziq-palace-row { display: flex; gap: 0.5rem; margin-top: 0.5rem; }

/* ── Surah browser ────────────────────────────────── */
.hifziq-surah-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem; }
.hifziq-surah-card {
  background: var(--hiq-card);
  border: 1px solid var(--hiq-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  cursor: pointer; transition: border-color 0.2s;
}
.hifziq-surah-card:hover { border-color: var(--hiq-gold); }
.hifziq-surah-num {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--hiq-accent); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0;
}
.hifziq-surah-name   { font-weight: 600; font-size: 0.9rem; }
.hifziq-surah-arabic { font-family: 'Amiri',serif; font-size: 1.1rem; color: var(--hiq-gold); }
.hifziq-surah-meta   { font-size: 0.65rem; color: var(--hiq-muted); }

.hifziq-verse-row {
  display: flex; gap: 0.75rem; padding: 0.85rem 0;
  border-bottom: 1px solid rgba(30,45,66,.5); align-items: flex-start;
}
.hifziq-verse-num { width: 28px; height: 28px; border-radius: 50%; background: var(--hiq-card); border: 1px solid var(--hiq-border); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0; margin-top: 4px; }
.hifziq-verse-arabic { font-family: 'Amiri',serif; font-size: 1.15rem; direction: rtl; line-height: 1.9; }
.hifziq-verse-actions { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }

/* ── Analytics ────────────────────────────────────── */
.hifziq-analytics-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.75rem; margin-bottom: 1rem; }
.hifziq-analytics-tile { background: var(--hiq-card); border: 1px solid var(--hiq-border); border-radius: 12px; padding: 0.75rem 0.5rem; text-align: center; }

/* ── Status chips ─────────────────────────────────── */
.hifziq-chip { padding: 2px 8px; border-radius: 10px; font-size: 0.7rem; font-weight: 600; }
.hifziq-chip-new    { background: #3a3010; color: #d4a843; }
.hifziq-chip-sabaq  { background: #1a2e10; color: #2dba7a; }
.hifziq-chip-sabqi  { background: #102038; color: #5fa8e0; }
.hifziq-chip-manzil { background: #0a2a1a; color: #2dba7a; }

/* ── Teacher ──────────────────────────────────────── */
.hifziq-student-card { background: var(--hiq-card); border: 1px solid var(--hiq-border); border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 1rem; }
.hifziq-student-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,#d4a843,#7a4a00); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.hifziq-student-actions { display: flex; gap: 6px; margin-left: auto; }

/* ── Session end ──────────────────────────────────── */
.hifziq-end-wrap { text-align: center; padding: 2rem 1rem; }
.hifziq-end-emoji { font-size: 3.5rem; margin-bottom: 0.5rem; }
.hifziq-end-title { font-size: 1.5rem; font-weight: 700; color: var(--hiq-goldSoft); margin-bottom: 0.5rem; }
.hifziq-end-stars { color: var(--hiq-gold); font-size: 1.5rem; letter-spacing: 4px; margin-bottom: 1rem; }
.hifziq-end-stat-row { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.hifziq-end-stat { text-align: center; }
.hifziq-end-stat-val { font-size: 2rem; font-weight: 700; line-height: 1; }
.hifziq-end-stat-label { font-size: 0.75rem; color: var(--hiq-muted); }
.hifziq-end-btns { display: flex; gap: 0.75rem; justify-content: center; margin-top: 1rem; }

/* ── Toast notification ───────────────────────────── */
.hifziq-toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  background: var(--hiq-card); border-left: 4px solid var(--hiq-gold);
  color: var(--hiq-goldSoft); padding: 0.75rem 1.25rem;
  border-radius: 10px; font-size: 0.9rem; z-index: 9999;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  animation: hiqSlideUp .3s ease;
}
@keyframes hiqSlideUp { from { transform: translateX(-50%) translateY(20px); opacity:0; } to { transform: translateX(-50%) translateY(0); opacity:1; } }

/* ── Misc ─────────────────────────────────────────── */
.hifziq-empty { text-align: center; color: var(--hiq-muted); padding: 3rem 1rem; }
.hifziq-dua { font-family: 'Amiri',serif; font-size: 1.5rem; color: var(--hiq-gold); text-align: center; direction: rtl; margin: 1.5rem 0 0.25rem; }
.hifziq-sci-tip { background: var(--hiq-surface); border-radius: 10px; padding: 0.75rem 1rem; font-size: 0.78rem; color: var(--hiq-muted); line-height: 1.6; margin-top: 0.75rem; font-style: italic; }
.hifziq-spinner { display: inline-block; width: 1.25rem; height: 1.25rem; border: 2px solid var(--hiq-border); border-top-color: var(--hiq-gold); border-radius: 50%; animation: hiqSpin .8s linear infinite; }
@keyframes hiqSpin { to { transform: rotate(360deg); } }

/* ── Admin ────────────────────────────────────────── */
.hifziq-admin-wrap    { max-width: 900px; }
.hifziq-admin-stats   { display: flex; gap: 1rem; margin: 1rem 0; flex-wrap: wrap; }
.hifziq-admin-stat    { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 1rem 1.5rem; text-align: center; min-width: 120px; }
.hifziq-admin-stat .dashicons { font-size: 2rem; display: block; margin-bottom: 4px; color: #d4a843; }
.hifziq-admin-stat strong { display: block; font-size: 2rem; }
.hifziq-admin-stat span  { font-size: 0.8rem; color: #666; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 600px) {
  .hifziq-stat-grid      { grid-template-columns: repeat(2, 1fr); }
  .hifziq-analytics-grid { grid-template-columns: repeat(2, 1fr); }
  .hifziq-surah-grid     { grid-template-columns: 1fr; }
  .hifziq-panel          { padding: 0.75rem; }
  .hifziq-grade-row      { flex-direction: column; }
}
/* ══ LOGIN BUTTON COLOUR FIX ════════════════════════════════════
   WP's #wp-submit defaults to dark bg with dark text — force it  */
.hifziq-auth-wrap #wp-submit,
.hifziq-auth-wrap input[type="submit"] {
  background: var(--hiq-gold) !important;
  color: #000 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.65rem 1.25rem !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  width: 100% !important;
  cursor: pointer !important;
  margin-top: 0.5rem !important;
}
.hifziq-auth-wrap #wp-submit:hover,
.hifziq-auth-wrap input[type="submit"]:hover {
  background: var(--hiq-goldSoft) !important;
}

/* ── Inputs / selects global ─────────────────────────────────── */
.hifziq-input, .hifziq-select {
  background: var(--hiq-surface);
  border: 1px solid var(--hiq-border);
  color: var(--hiq-text);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  width: 100%;
}
.hifziq-input:focus, .hifziq-select:focus {
  outline: none;
  border-color: var(--hiq-gold);
}

/* ── Notice links ────────────────────────────────────────────── */
.hifziq-notice-link { color: var(--hiq-gold); font-weight: 600; }
.hifziq-notice-warn { border-left-color: var(--hiq-red); color: #e07070; }

/* ── Toast colours ───────────────────────────────────────────── */
.hifziq-toast-success { border-left-color: var(--hiq-green); color: var(--hiq-greenSoft); }
.hifziq-toast-error   { border-left-color: var(--hiq-red);   color: #e07070; }
.hifziq-toast-info    { border-left-color: var(--hiq-gold);  color: var(--hiq-goldSoft); }
.hifziq-toast-warning { border-left-color: #e0a050;          color: #e0a050; }

/* ── Role toggle (register form) ─────────────────────────────── */
.hifziq-role-toggle { display: flex; gap: 1rem; margin-top: .25rem; }
.hifziq-role-option {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--hiq-surface); border: 1.5px solid var(--hiq-border);
  border-radius: 10px; padding: .65rem; cursor: pointer;
  font-size: .9rem; color: var(--hiq-muted); transition: all .2s;
}
.hifziq-role-option:has(input:checked) {
  border-color: var(--hiq-gold); color: var(--hiq-gold); background: #1a1200;
}
.hifziq-role-option input { display: none; }

/* ── Phase label ─────────────────────────────────────────────── */
.hifziq-phase-label {
  font-size: .7rem; color: var(--hiq-muted); text-transform: uppercase;
  letter-spacing: .07em; margin-bottom: 1rem; font-weight: 700;
}

/* ══ LANDING PAGE ═══════════════════════════════════════════════ */
.hifziq-landing { background: var(--hiq-bg); color: var(--hiq-text); font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }
.hifziq-landing * { box-sizing: border-box; }

.hiq-hero {
  background: radial-gradient(ellipse at top, #1a2a10 0%, var(--hiq-bg) 70%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--hiq-border);
}
.hiq-hero-inner { max-width: 680px; margin: 0 auto; }
.hiq-hero-logo  { margin-bottom: 1rem; display: flex; justify-content: center; }
.hiq-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900; color: var(--hiq-text);
  margin: 0 0 .75rem;
  line-height: 1.1;
}
.hiq-gold { color: var(--hiq-gold); }
.hiq-hero-sub   { font-size: 1.15rem; color: var(--hiq-muted); max-width: 500px; margin: 0 auto 2rem; line-height: 1.6; }
.hiq-hero-btns  { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.hiq-hero-btn   { padding: .8rem 2rem; font-size: 1rem; border-radius: 50px; }
.hifziq-btn-gold { background: var(--hiq-gold); color: #000; font-weight: 700; border: none; cursor: pointer; }
.hifziq-btn-gold:hover { background: var(--hiq-goldSoft); }
.hiq-hero-arabic { font-family: 'Amiri', serif; font-size: 1.6rem; color: var(--hiq-gold); direction: rtl; margin-bottom: .25rem; }
.hiq-hero-arabic-trans { font-size: .85rem; color: var(--hiq-muted); font-style: italic; }

.hiq-section { max-width: 1100px; margin: 0 auto; padding: 4rem 1.5rem; }
.hiq-section-dark { background: var(--hiq-surface); max-width: 100%; }
.hiq-section-dark .hiq-section { max-width: 1100px; margin: 0 auto; }
.hiq-section-title {
  text-align: center; font-size: 1.8rem; font-weight: 800;
  color: var(--hiq-goldSoft); margin-bottom: 2.5rem;
}

/* Steps */
.hiq-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.hiq-step { background: var(--hiq-card); border: 1px solid var(--hiq-border); border-radius: 16px; padding: 1.5rem; text-align: center; }
.hiq-step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--hiq-gold); color: #000; font-weight: 900; font-size: .85rem; display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem; }
.hiq-step-icon { font-size: 2rem; margin-bottom: .75rem; }
.hiq-step h3   { color: var(--hiq-goldSoft); margin-bottom: .5rem; font-size: 1rem; }
.hiq-step p    { color: var(--hiq-muted); font-size: .85rem; line-height: 1.5; }

/* Features */
.hiq-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.hiq-feature-card { background: var(--hiq-card); border: 1px solid var(--hiq-border); border-radius: 14px; padding: 1.25rem; }
.hiq-feature-icon { font-size: 1.75rem; margin-bottom: .5rem; }
.hiq-feature-card h4 { color: var(--hiq-goldSoft); margin-bottom: .4rem; }
.hiq-feature-card p  { color: var(--hiq-muted); font-size: .85rem; line-height: 1.5; }

/* Who is it for */
.hiq-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.hiq-role-card { border: 2px solid var(--hiq-border); border-radius: 20px; padding: 2rem 1.5rem; text-align: center; }
.hiq-role-student { border-color: var(--hiq-accent); background: #0a1420; }
.hiq-role-teacher { border-color: var(--hiq-gold);   background: #1a1200; }
.hiq-role-icon { font-size: 3rem; margin-bottom: .75rem; }
.hiq-role-card h3 { color: var(--hiq-goldSoft); margin-bottom: 1rem; font-size: 1.3rem; }
.hiq-role-card ul { list-style: none; padding: 0; margin: 0; text-align: left; }
.hiq-role-card li { padding: .35rem 0; color: var(--hiq-muted); font-size: .9rem; border-bottom: 1px solid var(--hiq-border); }
.hiq-role-card li:last-child { border: none; }

/* CTA */
.hiq-cta { text-align: center; border-top: 1px solid var(--hiq-border); margin-top: 0; }

/* ── Admin reset button ──────────────────────────────────────── */
#hiq-admin-reset-self { margin-top: .5rem; }

/* ── Responsive landing ──────────────────────────────────────── */
@media (max-width: 600px) {
  .hiq-hero { padding: 3rem 1rem 2.5rem; }
  .hiq-hero-btns { flex-direction: column; align-items: center; }
  .hiq-hero-btn { width: 100%; max-width: 280px; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════
   HifzIQ Pro v2.0 — Additional styles
   ═══════════════════════════════════════════════════════════════ */

/* ── Access Expired Notice ──────────────────────────────────── */
.hifziq-access-expired {
  max-width: 520px;
  margin: 3rem auto;
  background: var(--hiq-card);
  border: 1px solid var(--hiq-border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
}
.hifziq-access-expired h2 { color: var(--hiq-goldSoft); margin-bottom: .75rem; }
.hifziq-access-expired p  { color: var(--hiq-muted); margin-bottom: 1.25rem; line-height: 1.7; }

/* ── Registration role toggle ───────────────────────────────── */
.hifziq-role-toggle {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .35rem;
}
.hifziq-role-option {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .9rem;
  background: var(--hiq-surface);
  border: 1px solid var(--hiq-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: .9rem;
  transition: border-color .15s;
}
.hifziq-role-option:has(input:checked),
.hifziq-role-option.active {
  border-color: var(--hiq-gold);
  background: rgba(212,168,67,.1);
}
.hifziq-req { color: #e07070; }
.hifziq-pricing-card {
  background: rgba(212,168,67,.06);
  border: 1px solid rgba(212,168,67,.25);
  border-radius: 10px;
  padding: .85rem 1rem;
}
.hiq-price-row strong { color: var(--hiq-goldSoft); font-size: .95rem; }
.hiq-price-row p { margin: .25rem 0 0; font-size: .8rem; }

/* ── Landing: trust bar ─────────────────────────────────────── */
.hiq-trust {
  background: var(--hiq-card);
  border-top: 1px solid var(--hiq-border);
  border-bottom: 1px solid var(--hiq-border);
  padding: .85rem 1rem;
}
.hiq-trust-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  justify-content: center;
  font-size: .85rem;
  color: var(--hiq-greenSoft);
}

/* ── Landing: tagline ───────────────────────────────────────── */
.hiq-hero-tagline {
  font-size: 1.15rem;
  color: var(--hiq-goldSoft);
  margin-bottom: .5rem;
  font-weight: 600;
  letter-spacing: .04em;
}

/* ── Landing: school role card ──────────────────────────────── */
.hiq-role-card.hiq-role-school {
  background: linear-gradient(135deg, #1a2235 0%, #1e2a3a 100%);
  border-color: rgba(100,160,255,.3);
}
.hiq-role-price {
  margin-top: .75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--hiq-goldSoft);
}
.hiq-role-price small { font-size: .75rem; font-weight: 400; color: var(--hiq-muted); }

/* ── Landing: plugin setup steps ────────────────────────────── */
.hiq-plugin-steps {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  text-align: left;
  max-width: 560px;
  margin: 0 auto;
}
.hiq-plugin-step {
  background: var(--hiq-card);
  border: 1px solid var(--hiq-border);
  border-radius: 10px;
  padding: .75rem 1rem;
  font-size: .9rem;
  color: var(--hiq-text);
}
.hiq-plugin-step code {
  background: rgba(212,168,67,.15);
  color: var(--hiq-goldSoft);
  padding: .1rem .35rem;
  border-radius: 4px;
  font-size: .82rem;
}

/* ── Admin panel styles ─────────────────────────────────────── */
.hifziq-admin-wrap h1 { display: flex; align-items: baseline; gap: .5rem; }
.hifziq-admin-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 1.75rem;
}
.hifziq-admin-stat {
  background: #1e222e;
  border: 1px solid #2a3040;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  min-width: 110px;
  text-align: center;
}
.hifziq-admin-stat .dashicons { font-size: 1.4rem; color: #d4a843; }
.hifziq-admin-stat strong { font-size: 1.8rem; font-weight: 800; color: #fff; }
.hifziq-admin-stat span:last-child { font-size: .75rem; color: #888; }

/* ── Invite link URL boxes ──────────────────────────────────── */
.hifziq-admin-wrap input[type="text"][readonly] {
  background: #12161f;
  color: #b0bac9;
  border: 1px solid #2a3040;
  border-radius: 6px;
  padding: 4px 8px;
  font-family: monospace;
  font-size: .8rem;
}

/* ═══════════════════════════════════════════════════════════════
   HifzIQ Pro v2.2 — Pricing cards, parent portal, certificates
   ═══════════════════════════════════════════════════════════════ */

/* ── Pricing Cards ──────────────────────────────────────────── */
.hiq-price-card {
  background: var(--hiq-card);
  border: 1px solid var(--hiq-border);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  position: relative;
  transition: border-color .2s, transform .2s;
}
.hiq-price-card:hover { border-color: var(--hiq-gold); transform: translateY(-2px); }
.hiq-price-card-featured {
  border-color: var(--hiq-gold);
  background: linear-gradient(135deg, #1e1800, #2a2200);
}
.hiq-price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--hiq-gold);
  color: #000;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .7rem;
  border-radius: 20px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.hiq-price-icon { font-size: 2rem; text-align: center; }
.hiq-price-card h3 { text-align: center; color: var(--hiq-text); font-size: 1rem; margin: 0; }
.hiq-price-amount {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--hiq-goldSoft);
  margin: .25rem 0 0;
}
.hiq-price-amount small { font-size: .8rem; font-weight: 400; color: var(--hiq-muted); }
.hiq-price-free { color: var(--hiq-greenSoft); font-size: 1.2rem; }
.hiq-price-then { text-align: center; color: var(--hiq-muted); font-size: .8rem; margin-bottom: .25rem; }
.hiq-price-list {
  list-style: none;
  padding: 0;
  margin: .5rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.hiq-price-list li { font-size: .82rem; color: var(--hiq-muted); }
.hiq-price-list li b, .hiq-price-list li strong { color: var(--hiq-goldSoft); }

/* ── Pricing gold button variant ────────────────────────────── */
.hifziq-btn-gold {
  background: var(--hiq-gold);
  color: #000;
  font-weight: 700;
}
.hifziq-btn-gold:hover { background: var(--hiq-goldSoft); transform: translateY(-1px); }

/* ── Parent portal child card ───────────────────────────────── */
.hifziq-parent-portal { max-width: 820px; margin: 0 auto; }
.hifziq-parent-child-card {
  background: var(--hiq-card);
  border: 1px solid var(--hiq-border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.hifziq-parent-child-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: .75rem;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ── Certificate generate button in JS ──────────────────────── */
.hifziq-cert-btn {
  background: transparent;
  border: 1px solid var(--hiq-gold);
  color: var(--hiq-goldSoft);
  border-radius: 8px;
  padding: .4rem .85rem;
  font-size: .8rem;
  cursor: pointer;
  transition: background .15s;
}
.hifziq-cert-btn:hover { background: rgba(212,168,67,.15); }
