@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Cinzel:wght@700;900&family=Dancing+Script:wght@700&display=swap');

/* ═══════════════════════════════════════════
   INDIATICS SEO EXAM v2 — FRONTEND STYLES
   ═══════════════════════════════════════════ */
:root {
  --bg:      #0c0e16;
  --bg2:     #111420;
  --bg3:     #181c2a;
  --card:    #1c2033;
  --card2:   #222740;
  --b1:      rgba(255,255,255,.07);
  --b2:      rgba(255,255,255,.13);
  --b3:      rgba(255,255,255,.22);
  --gold:    #f5c842;
  --gold2:   #c9a84c;
  --cyan:    #00d4ff;
  --purple:  #7c4dff;
  --green:   #00e676;
  --red:     #ff5252;
  --text:    #eaecf4;
  --muted:   #7a8099;
  --font:    'Outfit', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.iseo-root {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  border-radius: 20px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  min-height: 500px;
}

/* ── Screens ── */
.iseo-screen { display: none; padding: 0; }
.iseo-screen--active { display: block; animation: iseo-up .4s cubic-bezier(.16,1,.3,1); }
@keyframes iseo-up { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }

/* ══ HERO ══ */
.iseo-hero {
  background: linear-gradient(150deg, #0a0d18 0%, #131828 100%);
  border-bottom: 1px solid rgba(245,200,66,.18);
  padding: 36px 24px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.iseo-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--gold), var(--purple), transparent);
}
.iseo-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(245,200,66,.07) 0%, transparent 60%);
  pointer-events: none;
}
.iseo-hero__logo img { height: 56px; width: auto; object-fit: contain; margin-bottom: 10px; }
.iseo-hero__icon { font-size: 2.8rem; display: block; margin-bottom: 8px; }
.iseo-hero__title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  background: linear-gradient(135deg, #fff 20%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1.2; margin-bottom: 8px;
}
.iseo-hero__tag {
  font-size: .88rem; font-weight: 600;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; letter-spacing: 1px; margin-bottom: 5px;
}
.iseo-hero__sub { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.iseo-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.iseo-pill {
  background: var(--card); border: 1px solid var(--b2);
  border-radius: 99px; padding: 5px 14px;
  font-size: .72rem; font-weight: 700; color: var(--cyan);
  letter-spacing: .4px;
}
.iseo-pill--gold { color: var(--gold); border-color: rgba(245,200,66,.3); background: rgba(245,200,66,.06); }

/* ══ REGISTRATION ══ */
.iseo-reg-card {
  background: var(--card); max-width: 500px; margin: 24px auto 32px;
  border: 1px solid var(--b2); border-radius: 18px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(245,200,66,.05);
  position: relative; overflow: hidden;
}
.iseo-reg-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--gold));
}
.iseo-reg-card__heading { font-size: 1.35rem; font-weight: 800; color: #fff; margin-bottom: 5px; }
.iseo-reg-card__sub { font-size: .85rem; color: var(--muted); margin-bottom: 22px; }
.iseo-stats-strip {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 22px;
}
.iseo-stats-strip > div {
  background: var(--bg3); border: 1px solid var(--b1);
  border-radius: 10px; padding: 12px 8px; text-align: center;
}
.iseo-stat-n { display: block; font-size: 1.3rem; font-weight: 900; color: var(--gold); }
.iseo-stat-l { display: block; font-size: .62rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }
.iseo-field { margin-bottom: 16px; }
.iseo-label { display: block; font-size: .75rem; font-weight: 700; color: var(--cyan); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 7px; }
.iseo-req { color: var(--red); }
.iseo-input {
  width: 100%; padding: 12px 16px;
  background: var(--bg3); border: 1.5px solid var(--b2);
  border-radius: 10px; color: #fff;
  font-family: var(--font); font-size: .95rem;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.iseo-input::placeholder { color: var(--muted); }
.iseo-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,212,255,.1); }
.iseo-field__hint { font-size: .72rem; color: var(--muted); margin-top: 5px; display: block; }
.iseo-err { color: var(--red); font-size: .82rem; margin-top: 10px; text-align: center; min-height: 18px; }

/* ══ BUTTONS ══ */
.iseo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 11px; cursor: pointer;
  font-family: var(--font); font-weight: 800; letter-spacing: .5px;
  transition: all .2s; text-decoration: none;
}
.iseo-btn--start {
  width: 100%; padding: 15px; font-size: 1rem;
  background: linear-gradient(135deg, #00b4d8, #00d4ff);
  color: #000; box-shadow: 0 6px 20px rgba(0,212,255,.35);
}
.iseo-btn--start:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,212,255,.45); }
.iseo-btn--next {
  padding: 13px 32px; font-size: .9rem;
  background: linear-gradient(135deg, var(--purple), #5e35b1);
  color: #fff; box-shadow: 0 5px 16px rgba(124,77,255,.35);
  display: none; margin-top: 18px;
}
.iseo-btn--next:hover { transform: translateY(-2px); }
.iseo-btn--outline {
  padding: 11px 24px; font-size: .85rem;
  background: transparent; border: 2px solid var(--b2); color: var(--text);
}
.iseo-btn--outline:hover { border-color: var(--cyan); color: var(--cyan); }
.iseo-btn--cert {
  padding: 11px 24px; font-size: .85rem;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: #000; box-shadow: 0 5px 16px rgba(245,200,66,.3);
}
.iseo-btn--cert:hover { transform: translateY(-2px); }
.iseo-btn--pdf {
  padding: 13px 28px; font-size: .88rem;
  background: linear-gradient(135deg, #00b4d8, #00d4ff);
  color: #000; box-shadow: 0 5px 16px rgba(0,212,255,.35);
}
.iseo-btn--pdf:hover { transform: translateY(-2px); }

/* ══ PROGRESS ══ */
.iseo-prog-bar-wrap {
  background: var(--card); border: 1px solid var(--b2);
  border-radius: 14px; padding: 14px 20px 12px;
  margin-bottom: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.3);
}
.iseo-prog-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.iseo-prog-label { font-size: .78rem; font-weight: 600; color: var(--muted); }
.iseo-prog-label strong { color: #fff; font-size: .95rem; }
.iseo-prog-score { font-size: .78rem; font-weight: 600; color: var(--gold); background: rgba(245,200,66,.08); border: 1px solid rgba(245,200,66,.25); border-radius: 99px; padding: 4px 13px; }
.iseo-prog-score strong { color: var(--gold); }
.iseo-prog-track { height: 8px; background: var(--bg3); border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.iseo-prog-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--purple), var(--gold)); transition: width .5s cubic-bezier(.4,0,.2,1); }
.iseo-dot-row { display: flex; gap: 5px; flex-wrap: wrap; }
.iseo-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bg3); border: 1px solid var(--b2); transition: all .2s; }
.iseo-dot--correct { background: var(--green); border-color: var(--green); }
.iseo-dot--wrong   { background: var(--red);   border-color: var(--red);   }
.iseo-dot--current { background: var(--cyan);  border-color: var(--cyan); transform: scale(1.35); }

/* ══ QUESTION CARD ══ */
.iseo-qcard {
  background: var(--card); border: 1px solid var(--b2);
  border-radius: 18px; padding: 28px 30px;
  box-shadow: 0 14px 40px rgba(0,0,0,.4);
  position: relative; overflow: hidden;
}
.iseo-qcard::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--cyan), var(--purple));
  border-radius: 4px 0 0 4px;
}
.iseo-qcard__label { font-size: .7rem; font-weight: 700; color: var(--cyan); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.iseo-qcard__text  { font-size: 1.05rem; font-weight: 700; color: #fff; line-height: 1.65; margin-bottom: 22px; }
.iseo-opts { display: flex; flex-direction: column; gap: 10px; }
.iseo-opt {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg3); border: 1.5px solid var(--b2);
  border-radius: 11px; padding: 12px 16px;
  cursor: pointer; width: 100%; text-align: left;
  font-family: var(--font); font-size: .93rem; color: var(--text);
  transition: all .18s; position: relative; overflow: hidden;
}
.iseo-opt::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,212,255,.05), transparent); opacity: 0; transition: opacity .18s; }
.iseo-opt:hover:not(:disabled)::before { opacity: 1; }
.iseo-opt:hover:not(:disabled) { border-color: var(--cyan); transform: translateX(4px); }
.iseo-opt__letter {
  min-width: 30px; height: 30px; border-radius: 7px;
  background: var(--card2); border: 1.5px solid var(--b2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .76rem; color: var(--cyan); flex-shrink: 0; transition: all .18s;
}
.iseo-opt:disabled { cursor: default; }
.iseo-opt--correct { background: rgba(0,230,118,.08); border-color: var(--green); }
.iseo-opt--correct .iseo-opt__letter { background: var(--green); border-color: var(--green); color: #000; }
.iseo-opt--correct .iseo-opt__text   { color: var(--green); font-weight: 700; }
.iseo-opt--wrong   { background: rgba(255,82,82,.08); border-color: var(--red); }
.iseo-opt--wrong   .iseo-opt__letter { background: var(--red); border-color: var(--red); color: #fff; }
.iseo-opt--wrong   .iseo-opt__text   { color: var(--red); }
.iseo-opt--dim     { opacity: .38; }
.iseo-fb {
  margin-top: 14px; padding: 12px 16px; border-radius: 11px;
  display: none; align-items: center; gap: 10px; font-size: .86rem; font-weight: 600;
}
.iseo-fb--correct { display: flex; background: rgba(0,230,118,.1); border: 1px solid rgba(0,230,118,.3); color: var(--green); }
.iseo-fb--wrong   { display: flex; background: rgba(255,82,82,.1);  border: 1px solid rgba(255,82,82,.3);  color: #ff8a80; }
.iseo-fb__icon { font-size: 1.4rem; flex-shrink: 0; }

/* ══ RESULT ══ */
.iseo-result-card {
  background: var(--card); border: 1px solid var(--b2);
  border-radius: 18px; padding: 44px 36px;
  text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  position: relative; overflow: hidden;
  margin: 20px 16px;
}
.iseo-result-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--purple));
  border-radius: 18px 18px 0 0;
}
.iseo-result-emoji   { font-size: 5rem; margin-bottom: 12px; animation: iseo-pop .6s cubic-bezier(.36,.07,.19,.97); }
@keyframes iseo-pop { 0%,100%{transform:scale(1)} 50%{transform:scale(1.2)} }
.iseo-result-heading { font-size: 1.7rem; font-weight: 900; color: #fff; margin-bottom: 4px; }
.iseo-result-name    { font-size: 1.1rem; font-weight: 700; background: linear-gradient(90deg, var(--cyan), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 28px; }
.iseo-ring-wrap { position: relative; width: 140px; margin: 0 auto 20px; }
.iseo-ring-svg { width: 140px; height: 140px; }
.iseo-ring-inner { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; }
.iseo-ring-score { font-size: 2rem; font-weight: 900; color: #fff; line-height: 1; }
.iseo-ring-label { font-size: .62rem; color: var(--muted); letter-spacing: 1px; margin-top: 2px; }
.iseo-ring-pct   { font-size: 1rem; font-weight: 700; color: var(--gold); margin-top: 2px; }
.iseo-pf-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 28px; border-radius: 99px; margin-bottom: 16px;
  font-size: 1rem; font-weight: 900; letter-spacing: 2px; text-transform: uppercase;
}
.iseo-pf-badge--pass { background: rgba(0,230,118,.1); border: 2px solid var(--green); color: var(--green); }
.iseo-pf-badge--fail { background: rgba(255,82,82,.1);  border: 2px solid var(--red);   color: var(--red);   }
.iseo-result-msg     { font-size: .9rem; color: var(--muted); max-width: 400px; margin: 0 auto 24px; line-height: 1.7; }
.iseo-result-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ══ CERTIFICATE CARD ══ */
.iseo-cert-card-wrap {
  background: var(--card); border: 1px solid var(--b2);
  border-radius: 18px; padding: 28px 20px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  margin: 20px 16px;
}
.iseo-cert-wrap-title { font-size: 1.2rem; font-weight: 800; color: #fff; text-align: center; margin-bottom: 20px; }
.iseo-cert-preview-outer {
  width: 100%; overflow: hidden; border-radius: 8px;
  margin-bottom: 18px; position: relative;
}
.iseo-cert-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }

/* ══ SHARE ══ */
.iseo-share-wrap { border-top: 1px solid var(--b1); padding-top: 16px; text-align: center; }
.iseo-share-label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.iseo-share-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.iseo-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; border-radius: 8px; padding: 8px 14px;
  font-family: var(--font); font-size: .73rem; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.iseo-share-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.iseo-share-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.iseo-share-btn--wa { background: #25D366; color: #fff; }
.iseo-share-btn--fb { background: #1877F2; color: #fff; }
.iseo-share-btn--li { background: #0A66C2; color: #fff; }
.iseo-share-btn--tw { background: #000;    color: #fff; }
.iseo-share-btn--tg { background: #26A5E4; color: #fff; }

/* ══ RESPONSIVE ══ */
@media (max-width: 560px) {
  .iseo-reg-card { padding: 24px 18px; }
  .iseo-qcard { padding: 20px 16px; }
  .iseo-result-card, .iseo-cert-card-wrap { margin: 12px 8px; padding: 28px 16px; }
  .iseo-stats-strip { grid-template-columns: 1fr 1fr; }
}
