/* ============================================================
   CollegeBoard - Login flow
   ------------------------------------------------------------
   Colours, font and radius values were taken from the live
   stylesheet:
     --cb-color-primary        #324dc7
     --cb-color-primary-hover  #2236a8
     --cb-color-background     #ffffff
     --cb-color-text-primary   #1e1e1e
     --cb-color-text-secondary #737373
     --cb-border-radius        6px

   Measurements were derived from the screenshots.
   Reference scale: 430px card -> 578px in the image (1 : 1.344)
   ============================================================ */

:root {
  /* Renkler */
  --blue:        #324dc7;
  --blue-dark:   #2236a8;
  --blue-soft:   rgba(50, 77, 199, .10);
  --bg:          #f5f7fc;
  --card:        #ffffff;
  --bar:         #1e1e1e;
  --ink:         #1e1e1e;
  --muted:       #737373;
  --label-muted: #737373;
  --line:        #e6e9f2;
  --border:      #d8dae6;
  --danger:      #8c1c17;
  --placeholder: #a3a7b8;
  --eye:         #737373;

  /* Post-login navbar */
  --nav-blue:    #4a9fdb;
  --nav-dark:    #0d1b2a;
  --nav-h-top:   60px;
  --nav-h-sub:   74px;
  --nav-mark-w:  82px;
  --nav-word-w:  224px;
  --nav-avatar:  50px;
  --nav-rule:    1px solid #e2e2e6;

  /* Measurements */
  --bar-h:       45px;
  --brand-inset: 67px;
  --brand-w:     145px;
  --card-w:      430px;
  --card-pad:    48px;
  --r-card:      16px;
  --r-input:     6px;
  --r-pill:      999px;
  --h-input:     40px;
  --h-btn:       56px;
  --d-avatar:    97px;

  --font: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-mark: 'Roboto Slab', Georgia, 'Times New Roman', serif;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Not set: `overflow-x: hidden` on html/body forces overflow-y to auto,
   which turns the body into its own scroll box and breaks page scrolling
   on phones. Horizontal overflow is prevented by sizing the layout instead. */

svg { display: block; }

a { color: inherit; }

/* ---------------------------------------------------------
   Top bar + logo box
   --------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--bar-h);
  background: var(--bar);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 7px;
  width: var(--brand-w);
  height: 100%;
  margin-left: var(--brand-inset);
  padding: 0 13px;
  background: var(--card);
  color: #0A0A0A;
}

.topbar__brand svg { width: 19px; height: 19px; flex: none; }

.topbar__brand span {
  font-family: var(--font-mark);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .1px;
  white-space: nowrap;
}

/* ---------------------------------------------------------
   Bottom-left floating button
   --------------------------------------------------------- */

.mascot {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(28, 38, 110, .28);
  cursor: pointer;
  transition: background .15s, transform .1s;
}

.mascot:hover { background: var(--blue-dark); }
.mascot:active { transform: scale(.96); }
.mascot svg { width: 27px; height: 27px; }

/* ---------------------------------------------------------
   Sayfa + kart
   --------------------------------------------------------- */

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 52px 16px 72px;
}

.card {
  width: var(--card-w);
  max-width: 100%;
  padding: var(--card-pad);
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: 0 10px 34px rgba(21, 27, 64, .09);
}

.card__head { text-align: center; }

/* Logo dairesi */
.avatar {
  display: grid;
  place-items: center;
  width: var(--d-avatar);
  height: var(--d-avatar);
  margin: 0 auto;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}

.avatar svg { width: 43px; height: 43px; }

.title {
  margin: 22px 0 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.2px;
  text-align: center;
}

/* Email row */
.mail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}

.mail svg { width: 18px; height: 18px; flex: none; opacity: .8; }

.hint {
  margin: 44px 0 0;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  color: var(--ink);
}

.rule {
  height: 1px;
  margin: 30px 0 0;
  border: 0;
  background: var(--line);
}

/* Divider after a link group gets more breathing room */
.links + .rule { margin-top: 34px; }

/* ---------------------------------------------------------
   Form
   --------------------------------------------------------- */

.form { margin: 48px 0 0; }
.form--tight { margin-top: 28px; }

.field { display: block; }
.field + .field { margin-top: 22px; }

.label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--ink);
}

.input {
  width: 100%;
  height: var(--h-input);
  padding: 0 14px;
  border: 2px solid var(--border);
  border-radius: var(--r-input);
  background: var(--card);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.input::placeholder { color: var(--placeholder); }

.input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.input-wrap { position: relative; }
.input-wrap .input { padding-right: 48px; }

.eye {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: var(--h-input);
  padding: 0;
  border: 0;
  background: none;
  color: var(--eye);
  cursor: pointer;
}

.eye svg { width: 20px; height: 20px; }
.eye:hover { color: var(--ink); }

/* ---------------------------------------------------------
   Butonlar
   --------------------------------------------------------- */

.btn {
  display: block;
  width: 100%;
  height: var(--h-btn);
  margin-top: 37px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--blue);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: background .15s, transform .06s;
}

.btn:hover { background: var(--blue-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: default; }

.btn--outline {
  width: 152px;
  height: 48px;
  margin: 22px auto 0;
  background: var(--card);
  border: 2px solid var(--blue);
  color: var(--blue);
  font-size: 15px;
  font-weight: 500;
}

.btn--outline:hover { background: var(--blue-soft); }

/* ---------------------------------------------------------
   Error bar
   --------------------------------------------------------- */

.alert {
  display: flex;
  align-items: stretch;
  min-height: 51px;
  margin: 30px 0 0;
  background: var(--card);
  border: 1px solid #E0E2EC;
  border-left: 0;
}

.alert__icon {
  display: grid;
  place-items: center;
  flex: 0 0 50px;
  background: var(--danger);
  color: #fff;
}

.alert__icon svg { width: 20px; height: 20px; }

.alert__text {
  display: flex;
  flex: 1;
  align-items: center;
  padding: 0 16px;
  font-size: 16px;
  color: var(--ink);
}

/* Info bar (not an error) */
.alert--info .alert__icon--info { background: var(--blue); }
.alert--info .alert__text { color: var(--ink); }

/* Success bar */
.alert--success .alert__icon--success { background: #2e9e5b; }
.alert--success .alert__text { color: var(--ink); }

/* Longer lead paragraph under a card title */
.hint--lead {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
  text-wrap: pretty;
}

/* ---------------------------------------------------------
   Unlock account / Create account
   --------------------------------------------------------- */

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Vertical rhythm between stacked fields.
   `.field + .field` alone also matches the second field inside
   .field-pair, which would push it off the shared row. */
.field + .field,
.field-pair + .field { margin-top: 22px; }

.field-pair > .field + .field { margin-top: 0; }

.field__hint {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  color: var(--muted);
}

/* Password strength meter */
.rule-bar {
  display: block;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: #e8eaf2;
  overflow: hidden;
}

.rule-bar__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--muted);
  transition: width .25s, background .25s;
}

/* Terms checkbox */
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

/* ---------------------------------------------------------
   Professional Help
   --------------------------------------------------------- */

.topics {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.topic { border-bottom: 1px solid var(--line); }

.topic__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 2px;
  border: 0;
  background: none;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.topic__q:hover { color: var(--blue); }

.topic__chev {
  width: 17px;
  height: 17px;
  flex: none;
  transition: transform .2s;
}

.topic__q.is-open .topic__chev { transform: rotate(180deg); }

.topic__a p {
  margin: 0;
  padding: 0 2px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.contact {
  margin-top: 30px;
  padding: 18px 20px;
  background: #f7f8fc;
  border-radius: 8px;
}

.contact__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  font-size: 14px;
}

.contact__k { color: var(--muted); white-space: nowrap; }

.contact__v {
  font-weight: 500;
  color: var(--ink);
  text-align: right;
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.contact__v:hover { color: var(--blue); text-decoration: underline; }

/* ---------------------------------------------------------
   Verification method list
   --------------------------------------------------------- */

.option { text-align: center; }

.rule + .option { margin-top: 30px; }
.option + .option { margin-top: 51px; }

.option__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}

.option__icon svg { width: 24px; height: 24px; }

.option__name {
  margin: 22px 0 0;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--label-muted);
}

/* ---------------------------------------------------------
   Alt linkler
   --------------------------------------------------------- */

.links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 41px 0 0;
}

.links a {
  font-size: 16px;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s;
}

.links a:hover { color: var(--blue); }

.foot { margin: 39px 0 0; text-align: center; }
.foot a { font-size: 16px; text-decoration: underline; text-underline-offset: 2px; }
.foot a:hover { color: var(--blue); }

/* ============================================================
   Post-login navbar (two rows)
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--card);
  border-bottom: 3px solid var(--nav-blue);
}

/* --- Row 1: logo + actions --- */

.nav__top {
  display: flex;
  align-items: center;
  height: var(--nav-h-top);
}

.nav__toggle {
  display: grid;
  place-items: center;
  width: 68px;
  height: 100%;
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s;
}

.nav__toggle:hover { background: #f2f2f4; }
.nav__toggle svg { width: 20px; height: 20px; }

.nav__lockup {
  display: flex;
  align-self: stretch;
  flex: none;
  text-decoration: none;
}

.nav__mark {
  display: grid;
  place-items: center;
  width: var(--nav-mark-w);
  background: var(--nav-dark);
  color: #fff;
}

.nav__mark svg { width: 30px; height: 26px; }

.nav__word {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--nav-word-w);
  padding: 0 14px;
  background: var(--nav-blue);
  font-family: var(--font-mark);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.nav__word sup {
  font-size: .45em;
  vertical-align: super;
  line-height: 0;
  margin-left: 1px;
}

.nav__spacer { flex: 1; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: none;
  margin-left: auto;
  padding-right: 32px;
}

/* Signed-in user */
.nav__mail {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  line-height: 1.25;
}

.nav__mail-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
  text-align: right;
}

/* Session-active indicator */
.nav__dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #2e9e5b;
}

.nav__mail-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.nav__mail-addr {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.nav__signin {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav__signin:hover { text-decoration: underline; }

/* Avatar + dropdown menu */
.nav__account { position: relative; }

.nav__avatar {
  display: grid;
  place-items: center;
  width: var(--nav-avatar);
  height: var(--nav-avatar);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bar);
  color: #fff;
  cursor: pointer;
  transition: background .15s;
}

.nav__avatar:hover { background: #34343a; }
.nav__avatar svg { width: 26px; height: 26px; }

.nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  padding: 6px 0;
  background: var(--card);
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}

.nav__menu[hidden] { display: none; }

.nav__who {
  padding: 10px 18px 12px;
  border-bottom: 1px solid #ececf0;
  font-size: 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.nav__menu a,
.nav__menu button {
  display: block;
  width: 100%;
  padding: 11px 18px;
  border: 0;
  background: none;
  font-family: var(--font);
  font-size: 15px;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
}

.nav__menu a:hover,
.nav__menu button:hover { background: #f2f2f4; }

/* Arama */
.nav__search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 290px;
  flex: 0 1 290px;
  min-width: 0;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--ink);
}

.nav__search input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font);
  font-size: 17px;
  color: var(--ink);
  outline: none;
}

.nav__search input::placeholder { color: var(--muted); }

.nav__search input::-webkit-search-cancel-button { display: none; }

.nav__search button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.nav__search button:hover { color: var(--blue); }
.nav__search svg { width: 23px; height: 23px; }

/* --- Row 2: title + menu --- */

.nav__sub {
  display: flex;
  align-items: center;
  gap: 46px;
  height: var(--nav-h-sub);
  padding: 0 32px 0 20px;
  border-top: var(--nav-rule);
}

.nav__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav__links::-webkit-scrollbar { display: none; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}

.nav__link:hover { color: var(--blue); }

.nav__link svg {
  width: 15px;
  height: 15px;
  transition: transform .18s;
}

.nav__link:hover svg { transform: translateY(1px); }

/* Bottom highlight bar */
.nav__bar {
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 3px;
  background: var(--blue);
  transition: width .25s, transform .25s;
}

/* ---------------------------------------------------------
   Post-login page body
   --------------------------------------------------------- */

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 32px 96px;
}

.shell__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--ink);
}

.shell__text {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.shell__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.shell__count {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------------------------------------------------------
   Empty state
   --------------------------------------------------------- */

.empty {
  display: grid;
  justify-items: center;
  padding: 72px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.empty__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #eef1fa;
  color: var(--blue);
}

.empty__icon svg { width: 28px; height: 28px; }

.empty__text {
  margin: 22px 0 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}

/* ---------------------------------------------------------
   Exam dates
   --------------------------------------------------------- */

.exams {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.exam {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.exam:last-child { border-bottom: 0; }
.exam:hover { background: #fafbff; }

.exam__date {
  display: grid;
  justify-items: center;
  padding: 10px 6px;
  border-radius: 6px;
  background: #eef1fa;
}

.exam__day {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--blue);
}

.exam__month {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--blue);
}

.exam__year {
  font-size: 10px;
  color: var(--muted);
}

.exam__name {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

.exam__meta {
  margin-top: 5px;
  font-size: 14px;
  color: var(--muted);
}

.exam__status {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.exam__status--open {
  background: #e7f4ec;
  color: #1c6b3f;
}

.exam__status--closed {
  background: #f0f0f3;
  color: #6b6b73;
}

.exam__action {
  padding: 10px 22px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: none;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s;
}

.exam__action:hover { background: #eef1fa; }
.exam__action[disabled] {
  border-color: #d8dae6;
  color: #a3a7b8;
  cursor: default;
}

.exam__action[disabled]:hover { background: none; }

/* ---------------------------------------------------------
   Result cards
   --------------------------------------------------------- */

.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.rcard {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.rcard__top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.rcard__badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
}

.rcard__badge svg { width: 24px; height: 24px; }

.rcard__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.rcard__date {
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
}

.rcard__body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
}

.rcard__score {
  padding: 20px 22px;
  background: var(--card);
}

.rcard__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--muted);
}

.rcard__value {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.5px;
  color: var(--ink);
}

.rcard__range {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

/* Average + percentile */
.rcard__foot-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
}

.rcard__avg { white-space: nowrap; }

.rcard__pct {
  padding: 3px 9px;
  border-radius: 999px;
  background: #e7f4ec;
  font-size: 11px;
  font-weight: 700;
  color: #1c6b3f;
  white-space: nowrap;
}

.rcard__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 18px 22px;
}

.rcard__pdf {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--blue);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: background .15s;
}

.rcard__pdf:hover { background: var(--blue-dark); }
.rcard__pdf svg { width: 17px; height: 17px; }

.rcard__note {
  font-size: 13px;
  color: var(--muted);
}

/* ---------------------------------------------------------
   Profil
   --------------------------------------------------------- */

.profile {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile__pic {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--bar);
  color: #fff;
}

.profile__pic svg { width: 44px; height: 44px; }

.profile__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.profile__mail {
  margin-top: 5px;
  font-size: 15px;
  color: var(--muted);
}

.profile__rows {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.prow {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 17px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.prow__k { color: var(--muted); }
.prow__v { color: var(--ink); font-weight: 500; }

/* ---------------------------------------------------------
   Dar ekran
   --------------------------------------------------------- */

/* Narrow screens: the search field shrinks, then hides */
@media (max-width: 1180px) {
  .nav__search { flex-basis: 200px; }
  .nav__actions { gap: 16px; }
}

@media (max-width: 1040px) {
  .nav__search { flex-basis: 150px; }
  .nav__mail-addr { display: none; }
  .nav__mail-name { max-width: 140px; }
}

@media (max-width: 900px) {
  .nav__search { display: none; }
  .nav__mail-name { max-width: 120px; }
  .exam { grid-template-columns: 80px 1fr; }
  .exam__action { grid-column: 1 / -1; justify-self: start; }
  .prow { grid-template-columns: 150px 1fr; }
}

/* Tablets: keep the brand title but shrink it so the menu still fits */
@media (max-width: 880px) {
  .nav__sub { gap: 24px; padding: 0 20px; }
  .nav__title { font-size: 18px; }
  .nav__links { gap: 28px; }
}

/* ---- Phones ---- */

@media (max-width: 640px) {
  :root {
    --card-pad: 26px;
    --brand-inset: 12px;
    --nav-mark-w: 52px;
    --nav-word-w: 112px;
    --nav-avatar: 40px;
    --nav-h-sub: 58px;
  }

  /* Row 1 has to fit 375px, so every part shrinks */
  .nav__toggle { width: 42px; }
  .nav__mark svg { width: 22px; height: 20px; }
  .nav__word { padding: 0 8px; font-size: 14px; }
  .nav__actions { gap: 10px; padding-right: 12px; }
  .nav__mail-name { max-width: 96px; font-size: 13px; }

  /* Row 2: the four items fit without scrolling down to 375px */
  .nav__sub { padding: 0 12px; gap: 0; }
  .nav__title { display: none; }
  .nav__links {
    gap: 16px;
    flex: 1;
    padding: 0 0 2px;
    -webkit-overflow-scrolling: touch;
  }
  .nav__link { font-size: 15px; }

  /* Login pages */
  .page { padding: 28px 12px 84px; }
  .title { font-size: 21px; }
  /* Keep the floating button clear of the last link in the card */
  .mascot { width: 44px; height: 44px; left: 10px; bottom: 10px; }
  .mascot svg { width: 24px; height: 24px; }
  .option + .option { margin-top: 36px; }
  .btn { margin-top: 28px; }
  .links { gap: 14px; margin-top: 32px; }
  .foot, .rule { margin-top: 30px; }

  /* Give each name field the full width so typing stays comfortable */
  .field-pair { grid-template-columns: 1fr; gap: 0; }

  /* Contact details read better stacked than squeezed side by side */
  .contact__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .contact__v { text-align: left; }

  /* Inner pages */
  .shell { padding: 28px 16px 64px; }
  .shell__head { margin-bottom: 22px; }
  .shell__title { font-size: 22px; }
  .shell__text { font-size: 15px; }

  .results { grid-template-columns: 1fr; gap: 16px; }

  .exam { grid-template-columns: 1fr; gap: 14px; padding: 18px 16px; }
  .exam__date {
    justify-self: start;
    grid-auto-flow: column;
    align-items: baseline;
    gap: 6px;
    padding: 7px 12px;
  }
  .exam__name { font-size: 16px; }
  .exam__action { grid-column: 1 / -1; justify-self: stretch; text-align: center; }

  .profile { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 24px 18px; }
  .prow { grid-template-columns: 1fr; gap: 4px; }

  .empty { padding: 48px 20px; }
  .empty__text { font-size: 17px; }
}

@media (max-width: 380px) {
  .nav__mail-name { display: none; }
  .nav__word { width: 100px; font-size: 13px; }
  :root { --nav-mark-w: 46px; }
}
