/* ==========================================================
   TEORIONLINE SHARED THEME
   Shared custom CSS for index.php, my-pages.php and login.php.
   No CSS custom properties are used here.
   ========================================================== */

/* ---------- Home page ---------- */
* {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: "Open Sans", sans-serif;
      color: #21324a;
      background: #fff;
    }

    a {
      text-decoration: none;
    }

    #header {
      background: rgba(32, 55, 95, 0.96);
      padding: 15px 0;
      box-shadow: 0 12px 34px rgba(0, 0, 0, 0.10);
    }

    #header .logo a {
      color: #fff;
      font-weight: 900;
      letter-spacing: 3px;
      font-size: 31px;
    }

    .navbar a,
    .navbar a:focus {
      color: rgba(255,255,255, 0.9);
      font-weight: 800;
    }

    .navbar a:hover,
    .navbar .active,
    .navbar .active:focus,
    .navbar li:hover>a {
      color: #72d6ff;
    }

    .navbar .getstarted,
    .navbar .getstarted:focus {
      border: 2px solid rgba(255,255,255, 0.35);
      color: #fff;
      background: rgba(255,255,255, 0.08);
      padding: 9px 22px;
    }

    .navbar .getstarted:hover {
      color: #fff;
      border-color: #47b2e4;
      background: #47b2e4;
    }


    /* Mobile menu fix */
    .mobile-nav-toggle {
      color: #fff !important;
      font-size: 30px;
      line-height: 1;
      z-index: 10000;
    }

    .navbar-mobile {
      z-index: 9999;
    }

    .navbar-mobile ul {
      background: #fff;
      box-shadow: 0 18px 60px rgba(32, 55, 95, 0.24);
      border: 1px solid #e2edf6;
    }

    .navbar-mobile a,
    .navbar-mobile a:focus {
      color: #20375f !important;
      font-weight: 900;
    }

    .navbar-mobile a:hover,
    .navbar-mobile .active,
    .navbar-mobile li:hover > a {
      color: #47b2e4 !important;
    }

    .navbar-mobile .getstarted,
    .navbar-mobile .getstarted:focus {
      color: #20375f !important;
      border: 2px solid #47b2e4;
      background: #eef7fd;
      margin: 12px 18px;
      justify-content: center;
    }

    .navbar-mobile .getstarted:hover {
      color: #fff !important;
      background: #47b2e4;
    }

    .navbar-mobile .mobile-nav-toggle {
      color: #fff !important;
    }

    .hero {
      position: relative;
      overflow: hidden;
      min-height: 760px;
      display: flex;
      align-items: center;
      padding: 108px 0 96px;
      background:
        radial-gradient(circle at 78% 16%, rgba(114, 214, 255, 0.18), transparent 23%),
        radial-gradient(circle at 10% 85%, rgba(71, 178, 228, 0.18), transparent 23%),
        linear-gradient(135deg, #20375f 0%, #3b5c8d 52%, #263f68 100%);
      color: #fff;
    }

    .hero::before {
      content: "";
      position: absolute;
      width: 640px;
      height: 640px;
      border-radius: 50%;
      right: -160px;
      top: -190px;
      background: rgba(255,255,255, 0.08);
    }

    .hero::after {
      content: "";
      position: absolute;
      inset: auto -10% -105px -10%;
      height: 180px;
      background: #fff;
      transform: rotate(-2.3deg);
      transform-origin: center;
    }

    .hero-grid {
      position: relative;
      z-index: 2;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      border-radius: 999px;
      padding: 9px 15px;
      background: rgba(255,255,255, 0.12);
      border: 1px solid rgba(255,255,255, 0.18);
      color: #edf9ff;
      font-weight: 900;
      margin-bottom: 22px;
    }

    .hero h1 {
      font-family: "Jost", sans-serif;
      color: #fff;
      font-size: clamp(3rem, 6vw, 5.8rem);
      line-height: .98;
      letter-spacing: -.045em;
      font-weight: 900;
      margin: 0 0 22px;
    }

    .hero h1 span {
      color: #72d6ff;
      display: block;
    }

    .hero-lead {
      color: rgba(255,255,255, 0.83);
      max-width: 680px;
      font-size: clamp(1.08rem, 1.55vw, 1.28rem);
      font-weight: 750;
      line-height: 1.75;
      margin: 0 0 28px;
    }

    .hero-actions {
      display: flex;
      gap: 14px;
      align-items: center;
      flex-wrap: wrap;
      margin-bottom: 26px;
    }

    .btn-primary-clean,
    .btn-secondary-clean {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      min-height: 56px;
      padding: 14px 26px;
      border-radius: 999px;
      font-family: "Poppins", sans-serif;
      font-weight: 900;
      transition: .18s ease;
    }

    .btn-primary-clean {
      color: #fff;
      background: linear-gradient(135deg, #47b2e4, #24a3dd);
      box-shadow: 0 16px 36px rgba(71,178,228, 0.34);
    }

    .btn-primary-clean:hover {
      color: #fff;
      transform: translateY(-2px);
      box-shadow: 0 22px 46px rgba(71,178,228, 0.40);
    }

    .btn-secondary-clean {
      color: #fff;
      background: rgba(255,255,255, 0.08);
      border: 2px solid rgba(255,255,255, 0.28);
    }

    .btn-secondary-clean:hover {
      color: #fff;
      background: rgba(255,255,255, 0.14);
      transform: translateY(-2px);
    }

    .hero-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .hero-pills span {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      border-radius: 999px;
      background: rgba(255,255,255, 0.10);
      border: 1px solid rgba(255,255,255, 0.14);
      color: rgba(255,255,255, 0.88);
      padding: 8px 13px;
      font-weight: 850;
      font-size: .9rem;
    }

    .hero-pills i {
      color: #dff8ff;
    }

    .signature-image {
      position: relative;
      min-height: 520px;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      margin-left: 0;
      margin-right: -120px;
    }

    .signature-image::before {
      content: "";
      position: absolute;
      width: min(92%, 560px);
      height: min(92%, 560px);
      border-radius: 50%;
      background: rgba(255,255,255, 0.08);
      right: -4%;
      top: 50%;
      transform: translateY(-50%);
    }

    .signature-image::after {
      content: "";
      position: absolute;
      width: min(70%, 420px);
      height: min(70%, 420px);
      border-radius: 50%;
      border: 1px solid rgba(255,255,255, 0.13);
      right: 5%;
      top: 18%;
    }

    .signature-image img {
      position: relative;
      z-index: 2;
      width: min(112%, 760px);
      max-width: none;
      filter: drop-shadow(0 38px 44px rgba(0,0,0, 0.26));
      transform: translateX(38px) rotate(-2.4deg);
      animation: keyFloat 4.8s ease-in-out infinite alternate;
    }

    @keyframes keyFloat {
      from { transform: translateX(38px) translateY(0) rotate(-2.4deg); }
      to { transform: translateX(38px) translateY(-12px) rotate(-1.4deg); }
    }

    .quick-strip {
      position: relative;
      z-index: 3;
      margin-top: 0;
      padding: 34px 0 8px;
      background: #fff;
    }

    .quick-card {
      background: #fff;
      border: 1px solid #e2edf6;
      border-radius: 24px;
      padding: 20px 22px;
      height: 100%;
      box-shadow: 0 22px 60px rgba(32, 55, 95, 0.13);
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .quick-icon {
      width: 58px;
      height: 58px;
      border-radius: 18px;
      display: grid;
      place-items: center;
      background: #eef7fd;
      color: #47b2e4;
      font-size: 26px;
      flex: 0 0 auto;
    }

    .quick-icon-svg svg {
      width: 44px;
      height: 44px;
      display: block;
      filter: drop-shadow(0 8px 12px rgba(55,81,126, 0.12));
    }

    .quick-icon-svg .s-blue { fill: #37517e; }
    .quick-icon-svg .s-cyan { fill: #47b2e4; }
    .quick-icon-svg .s-light { fill: #e9f6fd; }
    .quick-icon-svg .s-white { fill: #ffffff; }
    .quick-icon-svg .s-dark { fill: #20375f; }


    .quick-card strong {
      display: block;
      font-family: "Jost", sans-serif;
      color: #20375f;
      font-size: 1.25rem;
      font-weight: 950;
      line-height: 1.1;
    }

    .quick-card span {
      color: #66768c;
      font-weight: 850;
      font-size: .92rem;
    }

    .payment-strip {
      padding: 42px 0 20px;
      background: #fff;
    }

    .payment-box {
      border: 1px solid #e2edf6;
      background: #fff;
      border-radius: 24px;
      padding: 18px 22px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      box-shadow: 0 12px 34px rgba(32,55,95, 0.06);
      flex-wrap: wrap;
    }

    .payment-text {
      color: #20375f;
      font-weight: 900;
      display: flex;
      align-items: center;
      gap: 9px;
    }

    .payment-text i {
      color: #2f8a48;
    }

    .payment-logos {
      display: flex;
      align-items: center;
      gap: 24px;
      flex-wrap: wrap;
    }

    .payment-logos img {
      max-height: 34px;
      width: auto;
      opacity: .72;
      filter: grayscale(100%);
      transition: .18s ease;
    }

    .payment-logos img:hover {
      opacity: .95;
      filter: grayscale(0%);
    }

    section {
      padding: 90px 0;
    }

    .soft-section {
      background: #f6f9fd;
    }

    .section-heading {
      text-align: center;
      margin-bottom: 48px;
    }

    .eyebrow {
      color: #47b2e4;
      text-transform: uppercase;
      letter-spacing: .11em;
      font-weight: 950;
      font-size: .82rem;
      margin-bottom: 10px;
    }

    .section-heading h2 {
      font-family: "Jost", sans-serif;
      font-weight: 950;
      color: #20375f;
      letter-spacing: -.035em;
      font-size: clamp(2rem, 4vw, 3.35rem);
      margin: 0 0 12px;
    }

    .section-heading p {
      max-width: 740px;
      margin: 0 auto;
      color: #66768c;
      line-height: 1.75;
      font-weight: 650;
      font-size: 1.05rem;
    }

    .offer-card {
      height: 100%;
      border: 1px solid #e2edf6;
      border-radius: 28px;
      padding: 24px;
      background: #fff;
      box-shadow: 0 18px 48px rgba(32,55,95, 0.07);
      transition: .18s ease;
    }

    .offer-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 26px 68px rgba(32,55,95, 0.12);
    }

    .offer-visual {
      height: 134px;
      border: 1px solid #e2edf6;
      border-radius: 22px;
      background:
        radial-gradient(circle at 78% 20%, rgba(71,178,228, 0.18), transparent 28%),
        linear-gradient(135deg, #f5fbff, #ffffff);
      display: grid;
      place-items: center;
      margin-bottom: 20px;
      overflow: hidden;
    }

    .offer-visual svg {
      width: 92px;
      height: 92px;
      filter: drop-shadow(0 14px 20px rgba(55,81,126, 0.13));
    }

    .svg-blue { fill: #37517e; }
    .svg-cyan { fill: #47b2e4; }
    .svg-light { fill: #e9f6fd; }
    .svg-white { fill: #ffffff; }
    .svg-dark { fill: #20375f; }

    .offer-card h3 {
      color: #20375f;
      font-family: "Jost", sans-serif;
      font-weight: 950;
      font-size: 1.5rem;
      margin-bottom: 10px;
    }

    .offer-card p {
      color: #66768c;
      font-weight: 650;
      line-height: 1.68;
      margin-bottom: 16px;
    }

    .offer-meta {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      color: #37517e;
      background: #eef7fd;
      border-radius: 999px;
      padding: 8px 13px;
      font-weight: 900;
      font-size: .88rem;
    }

    .split-card {
      border: 1px solid #e2edf6;
      border-radius: 34px;
      overflow: hidden;
      background: #fff;
      box-shadow: 0 22px 60px rgba(32, 55, 95, 0.13);
    }

    .split-card-left {
      padding: 46px;
    }

    .split-card-left h2 {
      font-family: "Jost", sans-serif;
      color: #20375f;
      font-weight: 950;
      font-size: clamp(2rem, 4vw, 3rem);
      line-height: 1.08;
      letter-spacing: -.035em;
      margin-bottom: 16px;
    }

    .split-card-left p {
      color: #66768c;
      font-weight: 650;
      line-height: 1.78;
    }

    .mini-list {
      list-style: none;
      padding: 0;
      margin: 24px 0 0;
    }

    .mini-list li {
      display: flex;
      gap: 12px;
      color: #4d5f73;
      font-weight: 750;
      line-height: 1.55;
      margin-bottom: 13px;
    }

    .mini-list i {
      color: #2f8a48;
      font-size: 20px;
      margin-top: 2px;
    }

    .app-preview {
      min-height: 430px;
      height: 100%;
      display: grid;
      place-items: center;
      padding: 36px;
      background:
        radial-gradient(circle at 72% 20%, rgba(114,214,255, 0.28), transparent 24%),
        linear-gradient(135deg, #20375f, #37517e);
    }

    .phone-preview {
      width: min(100%, 360px);
      border-radius: 28px;
      background: #fff;
      padding: 22px;
      box-shadow: 0 30px 80px rgba(0,0,0, 0.25);
    }

    .phone-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 18px;
    }

    .small-pill {
      border-radius: 999px;
      padding: 7px 12px;
      color: #37517e;
      background: #eef7fd;
      font-weight: 900;
      font-size: .82rem;
    }

    .line {
      height: 12px;
      border-radius: 999px;
      background: #dce8f1;
      margin-bottom: 8px;
    }

    .line.short {
      width: 70%;
    }

    .answer-preview {
      border: 2px solid #e2edf6;
      border-radius: 14px;
      color: #37517e;
      padding: 12px 13px;
      margin-top: 10px;
      font-weight: 900;
    }

    .answer-preview.correct {
      color: #1e6d32;
      background: #e9f7ed;
      border-color: #8fd49f;
    }

    .language-cloud {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      margin: 22px auto 0;
      max-width: 960px;
    }

    .language-cloud span {
      background: #fff;
      border: 1px solid #e2edf6;
      border-radius: 999px;
      color: #37517e;
      padding: 9px 14px;
      font-weight: 900;
      box-shadow: 0 10px 25px rgba(32,55,95, 0.05);
    }

    .step-card {
      height: 100%;
      background: #fff;
      border: 1px solid #e2edf6;
      border-radius: 26px;
      padding: 30px 26px;
      box-shadow: 0 16px 46px rgba(32,55,95, 0.07);
    }

    .step-num {
      width: 52px;
      height: 52px;
      display: grid;
      place-items: center;
      border-radius: 17px;
      color: #fff;
      background: #20375f;
      font-family: "Jost", sans-serif;
      font-size: 1.5rem;
      font-weight: 950;
      margin-bottom: 18px;
    }

    .step-card h3 {
      color: #20375f;
      font-family: "Jost", sans-serif;
      font-weight: 950;
      font-size: 1.42rem;
      margin-bottom: 10px;
    }

    .step-card p {
      color: #66768c;
      font-weight: 650;
      line-height: 1.7;
      margin: 0;
    }

    .price-panel {
      border-radius: 34px;
      padding: 48px;
      color: #fff;
      background:
        radial-gradient(circle at 80% 15%, rgba(114,214,255, 0.30), transparent 22%),
        linear-gradient(135deg, #20375f, #37517e);
      box-shadow: 0 30px 80px rgba(32,55,95, 0.22);
    }

    .price-panel h2 {
      color: #fff;
      font-family: "Jost", sans-serif;
      font-weight: 950;
      font-size: clamp(2.1rem, 4vw, 3.1rem);
      letter-spacing: -.035em;
      margin-bottom: 12px;
    }

    .price-panel p {
      color: rgba(255,255,255, 0.82);
      font-weight: 650;
      line-height: 1.72;
      margin: 0;
    }

    .price-number {
      color: #fff;
      font-family: "Jost", sans-serif;
      font-size: clamp(3rem, 7vw, 5rem);
      font-weight: 950;
      line-height: .9;
    }

    .price-label {
      color: rgba(255,255,255, 0.74);
      font-weight: 850;
      margin: 8px 0 20px;
    }

    .faq-modern .accordion-item {
      border: 1px solid #e2edf6;
      border-radius: 20px;
      overflow: hidden;
      margin-bottom: 12px;
      box-shadow: 0 12px 32px rgba(32,55,95, 0.05);
    }

    .faq-modern .accordion-button {
      color: #20375f;
      font-family: "Jost", sans-serif;
      font-weight: 950;
      font-size: 1.1rem;
      padding: 20px 24px;
    }

    .faq-modern .accordion-button:not(.collapsed) {
      background: #eef7fd;
      color: #20375f;
      box-shadow: none;
    }

    .faq-modern .accordion-body {
      color: #66768c;
      font-weight: 650;
      line-height: 1.75;
      padding: 0 24px 22px;
    }

    .contact-card {
      border: 1px solid #e2edf6;
      border-radius: 30px;
      padding: 34px;
      background: #fff;
      box-shadow: 0 22px 60px rgba(32, 55, 95, 0.13);
    }

    .contact-item {
      display: flex;
      gap: 14px;
      align-items: flex-start;
      margin-bottom: 20px;
    }

    .contact-item i {
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border-radius: 16px;
      color: #47b2e4;
      background: #eef7fd;
      font-size: 23px;
      flex: 0 0 auto;
    }

    .contact-item h4 {
      color: #20375f;
      margin: 0 0 2px;
      font-family: "Jost", sans-serif;
      font-weight: 950;
    }

    .contact-item p {
      color: #66768c;
      margin: 0;
      font-weight: 650;
    }

    .independent-note {
      margin-top: 22px;
      border: 1px solid #ffe3a3;
      background: #fff8e6;
      color: #654900;
      border-radius: 18px;
      padding: 15px 17px;
      font-weight: 760;
      line-height: 1.6;
    }

    #footer .footer-newsletter {
      display: none;
    }

    #footer {
      background: #20375f;
    }


    @media (min-width: 1200px) {
      .hero .col-lg-6:first-child {
        padding-top: 16px;
      }

      .signature-image {
        transform: translateX(18px);
      }
    }

    @media (max-width: 991px) {
      .hero {
        text-align: center;
        min-height: auto;
        padding-top: 104px;
        padding-bottom: 64px;
      }

      .hero .row {
        display: flex;
      }

      .hero .col-lg-6:first-child {
        order: 2;
      }

      .hero .col-lg-6:nth-child(2) {
        order: 1;
      }

      .hero-lead {
        margin-left: auto;
        margin-right: auto;
      }

      .hero-actions,
      .hero-pills {
        justify-content: center;
      }

      .hero::after {
        display: none;
      }

      .hero-pills {
        margin-bottom: 8px;
        padding-bottom: 0;
      }

      .hero-pills span {
        background: rgba(255,255,255, 0.14);
        border-color: rgba(255,255,255, 0.22);
      }


      .signature-image {
        min-height: 330px;
        margin-left: 0;
        margin-right: 0;
        justify-content: center;
        margin-bottom: 8px;
      }

      .signature-image img {
        transform: rotate(-2deg);
        animation: keyFloatMobile 4.8s ease-in-out infinite alternate;
        width: min(96%, 560px);
        max-width: 100%;
      }

      @keyframes keyFloatMobile {
        from { transform: translateY(0) rotate(-2deg); }
        to { transform: translateY(-10px) rotate(-1deg); }
      }


      .quick-strip {
        margin-top: 0;
        padding-top: 26px;
      }

      .payment-box {
        justify-content: center;
        text-align: center;
      }

      .split-card-left {
        padding: 34px 24px;
      }

      .price-panel {
        text-align: center;
        padding: 36px 24px;
      }
    }

    @media (max-width: 575px) {
      #header .logo a {
        font-size: 25px;
      }

      .hero {
        padding-top: 92px;
        padding-bottom: 58px;
      }

      .hero h1 {
        font-size: 2.65rem;
      }

      .signature-image {
        min-height: 255px;
        margin-left: 0;
        margin-right: 0;
        justify-content: center;
      }

      .signature-image::before,
      .signature-image::after {
        display: none;
      }

      .quick-card {
        padding: 18px;
      }

      section {
        padding: 70px 0;
      }

      .offer-card,
      .step-card,
      .contact-card {
        padding: 22px 18px;
      }

      .payment-logos {
        justify-content: center;
      }

      .quick-card {
        align-items: center;
      }

      .quick-icon {
        width: 54px;
        height: 54px;
      }

      .quick-icon-svg svg {
        width: 40px;
        height: 40px;
      }

    }


/* ---------- Dashboard / my-pages ---------- */
/* Teorionline app dashboard styling */

.app-body {
  background: #f6f9fd;
  color: #21324a;
}

.app-header {
  background: rgba(32, 55, 95, 0.96) !important;
  box-shadow: 0 12px 34px rgba(0,0,0, 0.10);
  padding: 15px 0 !important;
}

.app-header .logo a {
  color: #fff;
  font-weight: 900;
  letter-spacing: 3px;
  font-size: 31px;
}

.app-header .navbar a,
.app-header .navbar a:focus {
  color: rgba(255,255,255, 0.9);
  font-weight: 800;
}

.app-header .navbar a:hover,
.app-header .navbar .active,
.app-header .navbar .active:focus,
.app-header .navbar li:hover > a {
  color: #72d6ff;
}

.app-header .navbar .getstarted,
.app-header .navbar .getstarted:focus {
  border: 2px solid rgba(255,255,255, 0.35);
  color: #fff !important;
  background: rgba(255,255,255, 0.08);
  padding: 9px 22px;
}

.app-header .navbar .getstarted:hover,
.app-header .navbar .getstarted.active {
  color: #fff !important;
  border-color: #47b2e4;
  background: #47b2e4;
}

/* Mobile menu fix */
.mobile-nav-toggle {
  color: #fff !important;
  font-size: 30px;
  line-height: 1;
  z-index: 10000;
}

.navbar-mobile {
  z-index: 9999;
}

.navbar-mobile ul {
  background: #fff;
  box-shadow: 0 18px 60px rgba(32, 55, 95, 0.24);
  border: 1px solid #e2edf6;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  color: #20375f !important;
  font-weight: 900;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover > a {
  color: #47b2e4 !important;
}

.navbar-mobile .getstarted,
.navbar-mobile .getstarted:focus {
  color: #20375f !important;
  border: 2px solid #47b2e4;
  background: #eef7fd;
  margin: 12px 18px;
  justify-content: center;
}

.navbar-mobile .getstarted:hover {
  color: #fff !important;
  background: #47b2e4;
}

.dashboard-hero {
  padding: 120px 0 28px;
  background:
    radial-gradient(circle at 80% 10%, rgba(114,214,255, 0.20), transparent 23%),
    linear-gradient(135deg, #20375f, #37517e);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -210px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: rgba(255,255,255, 0.07);
}

.dashboard-hero-card {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
}

.dashboard-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255,255,255, 0.12);
  border: 1px solid rgba(255,255,255, 0.18);
  color: #edf9ff;
  padding: 8px 14px;
  font-weight: 900;
  margin-bottom: 18px;
}

.dashboard-hero h1 {
  color: #fff;
  font-family: "Jost", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 950;
  letter-spacing: -.04em;
  margin: 0 0 10px;
}

.dashboard-hero p {
  color: rgba(255,255,255, 0.82);
  font-weight: 700;
  line-height: 1.7;
  max-width: 680px;
  margin: 0;
}

.dashboard-account {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.account-pill {
  min-width: 150px;
  background: rgba(255,255,255, 0.12);
  border: 1px solid rgba(255,255,255, 0.18);
  border-radius: 20px;
  padding: 14px 16px;
  backdrop-filter: blur(10px);
}

.account-pill span {
  display: block;
  color: rgba(255,255,255, 0.72);
  font-weight: 800;
  font-size: .82rem;
  margin-bottom: 3px;
}

.account-pill strong {
  color: #fff;
  font-family: "Jost", sans-serif;
  font-weight: 950;
  font-size: 1.2rem;
}

.dashboard-content {
  padding: 42px 0 80px;
}

.resume-card,
.subscription-card,
.info-panel,
.dashboard-action-card {
  background: #fff;
  border: 1px solid #e2edf6;
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(32, 55, 95, 0.13);
}

.resume-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.resume-icon,
.subscription-icon,
.action-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #47b2e4;
  background: #eef7fd;
  font-size: 30px;
  flex: 0 0 auto;
}

.resume-content {
  flex: 1;
}

.resume-card h2,
.subscription-card h2,
.info-panel h2 {
  color: #20375f;
  font-family: "Jost", sans-serif;
  font-weight: 950;
  letter-spacing: -.02em;
  margin: 0 0 6px;
}

.resume-card p,
.subscription-card p {
  color: #66768c;
  font-weight: 650;
  line-height: 1.65;
  margin: 0;
}

.dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  min-height: 50px;
  padding: 13px 22px;
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  text-decoration: none;
  transition: .18s ease;
  white-space: nowrap;
}

.dash-btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, #47b2e4, #24a3dd);
  box-shadow: 0 16px 36px rgba(71,178,228, 0.28);
}

.dash-btn-primary:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(71,178,228, 0.36);
}

.dashboard-action-card {
  display: block;
  height: 100%;
  padding: 28px;
  text-decoration: none;
  transition: .18s ease;
  color: inherit;
}

.dashboard-action-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(32,55,95, 0.16);
}

.dashboard-action-card h3 {
  color: #20375f;
  font-family: "Jost", sans-serif;
  font-weight: 950;
  font-size: 1.5rem;
  margin: 18px 0 8px;
}

.dashboard-action-card p {
  color: #66768c;
  font-weight: 650;
  line-height: 1.65;
  margin-bottom: 18px;
}

.dashboard-action-card span {
  color: #47b2e4;
  font-weight: 950;
}

.dashboard-action-highlight {
  background:
    radial-gradient(circle at 82% 18%, rgba(114,214,255, 0.24), transparent 24%),
    #fff;
  border-color: rgba(71,178,228, 0.32);
}

.dashboard-stats {
  margin-top: 28px;
  padding: 28px;
  background:
    radial-gradient(circle at 92% 8%, rgba(71,178,228, 0.13), transparent 28%),
    #fff;
  border: 1px solid #dceaf5;
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(32,55,95,0.12);
}

.dashboard-stats-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.dashboard-stats-kicker {
  color: #249fd7;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-stats h2 {
  color: #20375f;
  font-family: "Jost", sans-serif;
  font-size: 1.8rem;
  font-weight: 950;
  letter-spacing: -.02em;
  margin: 3px 0 4px;
}

.dashboard-stats p {
  color: #66768c;
  font-weight: 650;
  margin: 0;
}

.dashboard-stats-badge {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 19px;
  color: #fff;
  background: linear-gradient(135deg, #47b2e4, #208fc8);
  box-shadow: 0 14px 30px rgba(71,178,228,.28);
  font-size: 26px;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-stat-card {
  padding: 20px;
  border: 1px solid #e2edf6;
  border-radius: 20px;
  background: #f8fbfe;
}

.dashboard-stat-card span,
.dashboard-stat-card small {
  display: block;
}

.dashboard-stat-card span {
  color: #66768c;
  font-weight: 850;
}

.dashboard-stat-card strong {
  display: block;
  color: #20375f;
  font-family: "Jost", sans-serif;
  font-size: 2.35rem;
  font-weight: 950;
  line-height: 1;
  margin: 10px 0 8px;
}

.dashboard-stat-card small {
  color: #7b899b;
  font-weight: 650;
  line-height: 1.45;
}

.dashboard-stat-card-primary {
  border-color: rgba(71,178,228,.34);
  background: linear-gradient(145deg, #eef9ff, #f8fcff);
}

.dashboard-stat-card-primary strong {
  color: #159edc;
}

.info-panel {
  padding: 28px;
  height: 100%;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #e2edf6;
  padding: 15px 0;
}

.info-row:first-of-type {
  margin-top: 12px;
}

.info-row span {
  color: #66768c;
  font-weight: 800;
}

.info-row strong {
  color: #20375f;
  font-weight: 950;
}

.settings-links {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.settings-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e2edf6;
  border-radius: 16px;
  padding: 14px 15px;
  color: #20375f;
  font-weight: 900;
  text-decoration: none;
  transition: .18s ease;
}

.settings-links a:hover {
  border-color: #47b2e4;
  background: #eef7fd;
  color: #20375f;
}

.settings-links i {
  color: #47b2e4;
  font-size: 20px;
}

.subscription-card {
  max-width: 680px;
  margin: 0 auto 28px;
  text-align: center;
  padding: 42px 28px;
}

.subscription-icon {
  margin: 0 auto 16px;
}

/* Keep old app classes working if another page still uses them */
.formstyle,
.app-card {
  border-radius: 28px;
}

#footer.app-footer .footer-newsletter {
  display: none;
}

#footer.app-footer {
  background: #20375f;
}

@media (max-width: 991px) {
  .dashboard-hero {
    padding-top: 105px;
  }

  .dashboard-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-account {
    justify-content: flex-start;
    width: 100%;
  }

  .account-pill {
    flex: 1;
  }

  .resume-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .dash-btn {
    width: 100%;
  }

  .dashboard-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .app-header .logo a {
    font-size: 25px;
  }

  .dashboard-hero {
    padding-top: 92px;
  }

  .dashboard-content {
    padding-top: 28px;
  }

  .dashboard-action-card,
  .info-panel,
  .subscription-card,
  .dashboard-stats {
    padding: 22px 18px;
  }

  .dashboard-stats-heading {
    align-items: flex-start;
  }

  .account-pill {
    min-width: 100%;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}


/* ---------- Auth / login ---------- */
/* Teorionline login/auth page - no CSS variables */

.auth-body {
  background: #f6f9fd;
  color: #21324a;
}

.auth-header {
  background: rgba(32, 55, 95, 0.96) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.10);
  padding: 15px 0 !important;
}

.auth-header .logo a {
  color: #fff;
  font-weight: 900;
  letter-spacing: 3px;
  font-size: 31px;
}

.auth-header .navbar a,
.auth-header .navbar a:focus {
  color: rgba(255,255,255,0.9);
  font-weight: 800;
}

.auth-header .navbar a:hover,
.auth-header .navbar .active,
.auth-header .navbar .active:focus,
.auth-header .navbar li:hover > a {
  color: #72d6ff;
}

.auth-header .navbar .getstarted,
.auth-header .navbar .getstarted:focus {
  border: 2px solid rgba(255,255,255,0.35);
  color: #fff !important;
  background: rgba(255,255,255,0.08);
  padding: 9px 22px;
}

.auth-header .navbar .getstarted:hover,
.auth-header .navbar .getstarted.active {
  color: #fff !important;
  border-color: #47b2e4;
  background: #47b2e4;
}

/* Mobile menu fix */
.mobile-nav-toggle {
  color: #fff !important;
  font-size: 30px;
  line-height: 1;
  z-index: 10000;
}

.navbar-mobile {
  z-index: 9999;
}

.navbar-mobile ul {
  background: #fff;
  box-shadow: 0 18px 60px rgba(32, 55, 95, 0.24);
  border: 1px solid #e2edf6;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  color: #20375f !important;
  font-weight: 900;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover > a {
  color: #47b2e4 !important;
}

.navbar-mobile .getstarted,
.navbar-mobile .getstarted:focus {
  color: #20375f !important;
  border: 2px solid #47b2e4;
  background: #eef7fd;
  margin: 12px 18px;
  justify-content: center;
}

.navbar-mobile .getstarted:hover {
  color: #fff !important;
  background: #47b2e4;
}

.auth-main {
  min-height: 68vh;
}

.auth-section {
  position: relative;
  overflow: hidden;
  padding: 130px 0 86px;
  background:
    radial-gradient(circle at 78% 12%, rgba(114,214,255,0.20), transparent 24%),
    linear-gradient(135deg, #20375f 0%, #37517e 56%, #263f68 100%);
}

.auth-section::after {
  content: "";
  position: absolute;
  inset: auto -10% -100px -10%;
  height: 170px;
  background: #f6f9fd;
  transform: rotate(-2.2deg);
}

.auth-section .container {
  position: relative;
  z-index: 2;
}

.auth-copy {
  color: #fff;
  max-width: 620px;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  padding: 9px 15px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #edf9ff;
  font-weight: 900;
  margin-bottom: 22px;
}

.auth-copy h1 {
  color: #fff;
  font-family: "Jost", sans-serif;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 950;
  margin: 0 0 20px;
}

.auth-copy p {
  color: rgba(255,255,255,0.84);
  font-size: 1.08rem;
  font-weight: 720;
  line-height: 1.75;
  margin-bottom: 24px;
}

.auth-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 520px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 18px;
  padding: 13px 14px;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  font-weight: 900;
}

.auth-feature i {
  color: #72d6ff;
  font-size: 21px;
}

.auth-note {
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.09);
  border-radius: 18px;
  padding: 14px 16px;
  color: rgba(255,255,255,0.84);
  font-weight: 780;
  line-height: 1.55;
}

.auth-card {
  background: #fff;
  border: 1px solid #e2edf6;
  border-radius: 32px;
  padding: 34px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.20);
  max-width: 540px;
  margin-left: auto;
}

.auth-card-header {
  margin-bottom: 22px;
}

.auth-card-header h2 {
  color: #20375f;
  font-family: "Jost", sans-serif;
  font-size: 2.2rem;
  font-weight: 950;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}

.auth-card-header p {
  color: #66768c;
  font-weight: 650;
  margin: 0;
}

.auth-alert {
  border: 1px solid #ef9a9a;
  background: #ffebee;
  color: #b71c1c;
  border-radius: 16px;
  padding: 13px 15px;
  margin-bottom: 18px;
  font-weight: 800;
  line-height: 1.5;
}

.auth-form .form-group {
  margin-bottom: 16px;
}

.auth-form label {
  color: #20375f;
  font-weight: 900;
  margin-bottom: 8px;
}

.auth-form .form-control {
  height: 50px;
  border: 2px solid #e2edf6;
  border-radius: 14px;
  color: #21324a;
  font-weight: 650;
  padding: 10px 14px;
}

.auth-form .form-control:focus {
  border-color: #47b2e4;
  box-shadow: 0 0 0 4px rgba(71,178,228,0.14);
}

.auth-submit {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #47b2e4, #24a3dd);
  box-shadow: 0 16px 36px rgba(71,178,228,0.30);
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 6px;
  transition: 0.18s ease;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(71,178,228,0.38);
}

.auth-links {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  text-align: center;
}

.auth-links a {
  color: #47b2e4;
  font-weight: 900;
  text-decoration: none;
}

.auth-links a:hover {
  color: #20375f;
}

#footer.auth-footer .footer-newsletter {
  display: none;
}

#footer.auth-footer {
  background: #20375f;
}

@media (max-width: 991px) {
  .auth-section {
    text-align: center;
    padding: 110px 0 74px;
  }

  .auth-section::after {
    display: none;
  }

  .auth-copy {
    max-width: 100%;
  }

  .auth-feature-grid {
    margin-left: auto;
    margin-right: auto;
  }

  .auth-card {
    margin: 0 auto;
  }
}

@media (max-width: 575px) {
  .auth-header .logo a {
    font-size: 25px;
  }

  .auth-section {
    padding: 95px 0 58px;
  }

  .auth-copy h1 {
    font-size: 2.55rem;
  }

  .auth-card {
    padding: 24px 18px;
    border-radius: 26px;
  }

  .auth-feature-grid {
    grid-template-columns: 1fr;
  }
}


/* ---------- Select topic page ---------- */

.topic-body {
  background: #f6f9fd;
  color: #21324a;
}

.topic-hero {
  padding: 120px 0 28px;
  background:
    radial-gradient(circle at 80% 10%, rgba(114,214,255,0.20), transparent 23%),
    linear-gradient(135deg, #20375f, #37517e);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.topic-hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -210px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}

.topic-hero-card {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
}

.topic-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #edf9ff;
  padding: 8px 14px;
  font-weight: 900;
  margin-bottom: 18px;
}

.topic-hero h1 {
  color: #fff;
  font-family: "Jost", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 950;
  letter-spacing: -0.04em;
  margin: 0 0 10px;
}

.topic-hero p {
  color: rgba(255,255,255,0.82);
  font-weight: 700;
  line-height: 1.7;
  max-width: 690px;
  margin: 0;
}

.topic-account {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topic-pill {
  min-width: 150px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 14px 16px;
  backdrop-filter: blur(10px);
}

.topic-pill span {
  display: block;
  color: rgba(255,255,255,0.72);
  font-weight: 800;
  font-size: 0.82rem;
  margin-bottom: 3px;
}

.topic-pill strong {
  color: #fff;
  font-family: "Jost", sans-serif;
  font-weight: 950;
  font-size: 1.2rem;
}

.topic-content {
  padding: 42px 0 80px;
}

.topic-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto 20px;
  border: 1px solid #ef9a9a;
  background: #ffebee;
  color: #b71c1c;
  border-radius: 18px;
  padding: 15px 17px;
  font-weight: 850;
}

.topic-panel {
  max-width: 980px;
  margin: 0 auto;
}

.topic-random-card {
  width: 100%;
  border: 1px solid rgba(71,178,228,0.32);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 15%, rgba(114,214,255,0.28), transparent 23%),
    #ffffff;
  box-shadow: 0 22px 60px rgba(32, 55, 95, 0.13);
  padding: 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  cursor: pointer;
  transition: 0.18s ease;
  color: #21324a;
}

.topic-random-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(32,55,95,0.16);
}

.topic-random-icon {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: #eef7fd;
  color: #47b2e4;
  font-size: 32px;
  flex: 0 0 auto;
}

.topic-random-card h2 {
  color: #20375f;
  font-family: "Jost", sans-serif;
  font-weight: 950;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.topic-random-card p {
  color: #66768c;
  font-weight: 650;
  line-height: 1.6;
  margin: 0;
}

.topic-random-card span {
  margin-left: auto;
  color: #47b2e4;
  font-weight: 950;
  white-space: nowrap;
}

.topic-section-title {
  margin: 34px 0 18px;
}

.topic-section-title h2 {
  color: #20375f;
  font-family: "Jost", sans-serif;
  font-weight: 950;
  letter-spacing: -0.02em;
  margin: 0 0 5px;
}

.topic-section-title p {
  color: #66768c;
  font-weight: 650;
  margin: 0;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.topic-card {
  width: 100%;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #e2edf6;
  border-radius: 22px;
  background: #fff;
  color: #20375f;
  box-shadow: 0 12px 34px rgba(32,55,95,0.06);
  padding: 16px 18px;
  cursor: pointer;
  transition: 0.18s ease;
  text-align: left;
}

.topic-card:hover {
  border-color: #47b2e4;
  background: #f5fbff;
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(32,55,95,0.10);
}

.topic-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #eef7fd;
  color: #47b2e4;
  flex: 0 0 auto;
  font-size: 20px;
}

.topic-card-text {
  flex: 1;
  color: #20375f;
  font-weight: 900;
  line-height: 1.35;
}

.topic-card-arrow {
  color: #47b2e4;
  font-size: 18px;
}

.topic-back {
  text-align: center;
  margin-top: 30px;
}

.topic-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #47b2e4;
  font-weight: 950;
  text-decoration: none;
}

.topic-back a:hover {
  color: #20375f;
}

@media (max-width: 991px) {
  .topic-hero {
    padding-top: 105px;
  }

  .topic-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .topic-account {
    justify-content: flex-start;
    width: 100%;
  }

  .topic-pill {
    flex: 1;
  }
}

@media (max-width: 575px) {
  .topic-hero {
    padding-top: 92px;
  }

  .topic-content {
    padding-top: 28px;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .topic-random-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 18px;
  }

  .topic-random-card span {
    margin-left: 0;
  }

  .topic-pill {
    min-width: 100%;
  }
}


/* ---------- Quiz page / page.php ---------- */

.quiz-body {
  background: #f6f9fd;
  color: #21324a;
}

.quiz-main {
  min-height: 70vh;
}

.quiz-shell {
  padding: 112px 0 78px;
  background:
    radial-gradient(circle at 80% 8%, rgba(114,214,255,0.18), transparent 24%),
    linear-gradient(135deg, #20375f 0%, #37517e 54%, #263f68 100%);
  position: relative;
  overflow: hidden;
}

.quiz-shell::after {
  content: "";
  position: absolute;
  inset: auto -10% -110px -10%;
  height: 170px;
  background: #f6f9fd;
  transform: rotate(-2deg);
}

.quiz-shell .container {
  position: relative;
  z-index: 2;
}

.quiz-layout {
  max-width: 1120px;
  margin: 0 auto;
}

.quiz-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  color: #fff;
  margin-bottom: 22px;
}

.quiz-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #edf9ff;
  padding: 8px 14px;
  font-weight: 900;
  margin-bottom: 12px;
}

.quiz-topbar h1 {
  color: #fff;
  font-family: "Jost", sans-serif;
  font-weight: 950;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  letter-spacing: -0.04em;
  margin: 0;
}

.quiz-topbar p {
  color: rgba(255,255,255,0.82);
  margin: 6px 0 0;
  font-weight: 720;
}

.quiz-stat-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.quiz-stat-pill {
  min-width: 118px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 12px 14px;
  color: #fff;
}

.quiz-stat-pill span {
  display: block;
  color: rgba(255,255,255,0.72);
  font-weight: 800;
  font-size: 0.78rem;
  margin-bottom: 2px;
}

.quiz-stat-pill strong {
  color: #fff;
  font-family: "Jost", sans-serif;
  font-weight: 950;
  font-size: 1.05rem;
}

.quiz-card-modern {
  background: #fff;
  border: 1px solid #e2edf6;
  border-radius: 32px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.20);
  padding: 28px;
}

.quiz-context {
  color: #66768c;
  font-weight: 850;
  margin-bottom: 10px;
}

.quiz-progress {
  height: 11px;
  background: #eef7fd;
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 8px;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(135deg, #47b2e4, #24a3dd);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.quiz-progress-label {
  color: #66768c;
  font-weight: 750;
  margin: 0 0 15px;
}

.quiz-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.quiz-unsure-btn,
.quiz-pause-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 42px;
  padding: 10px 16px;
  font-weight: 900;
  text-decoration: none;
  transition: 0.18s ease;
}

.quiz-unsure-btn {
  border: 2px solid #ffe3a3;
  color: #735300;
  background: #fff8e6;
}

.quiz-unsure-btn.active {
  background: #ffd966;
  border-color: #ffd966;
  color: #4a3400;
}

.quiz-pause-btn {
  border: 2px solid #e2edf6;
  color: #20375f;
  background: #fff;
}

.quiz-pause-btn:hover {
  border-color: #47b2e4;
  color: #20375f;
  background: #eef7fd;
}

.q-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #20375f;
  margin-bottom: 14px;
}

.q-meta b {
  font-family: "Jost", sans-serif;
  font-size: 1.2rem;
  font-weight: 950;
}

.timer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #eef7fd;
  border: 1px solid #e2edf6;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 950;
  color: #20375f;
  white-space: nowrap;
}

.q-image-wrap {
  text-align: center;
  margin: 14px 0 20px;
}

.q-image {
  display: inline-block;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 20px;
  border: 1px solid #e2edf6;
  box-shadow: 0 18px 46px rgba(32,55,95,0.13);
  background: #fff;
}

.q-text {
  font-size: 1.18rem;
  color: #21324a;
  line-height: 1.7;
  font-weight: 750;
  margin: 10px 0 22px;
}

.quiz-answers {
  row-gap: 2px;
}

.quiz-answer-btn,
.button {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 2px solid #e2edf6;
  border-radius: 18px;
  padding: 15px 17px !important;
  font-family: inherit;
  color: #20375f;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.48;
  font-weight: 800;
  transition: 0.18s ease;
}

.quiz-answer-btn:hover,
.button:hover {
  border-color: #47b2e4;
  background: #f5fbff;
  transform: translateY(-2px);
}

.quiz-answer-btn b,
.button b {
  color: #47b2e4;
}

.incorrect,
.button.incorrect {
  border-color: #c62828 !important;
  background: #ffebee !important;
  color: #b71c1c !important;
}

.correct,
.button.correct {
  border-color: #2e7d32 !important;
  background: #e8f5e9 !important;
  color: #1b5e20 !important;
}

.selected,
.button.selected {
  border-color: #47b2e4 !important;
  background: #eef7fd !important;
  color: #20375f !important;
}

.disabled,
.button.disabled {
  pointer-events: none;
  opacity: 0.86;
}

.q-explanation {
  margin-top: 16px;
  border: 1px solid #bfe5c7;
  background: #e9f7ed;
  color: #1e6d32;
  border-radius: 20px;
  padding: 18px;
  font-weight: 700;
  line-height: 1.7;
}

.q-explanation-hidden {
  display: none;
}

.q-explanation-label {
  color: #1e6d32;
  font-family: "Jost", sans-serif;
  font-size: 1.2rem;
  font-weight: 950;
  margin-bottom: 6px;
}

.quiz-card-footer {
  margin-top: 18px;
}

.next_btn,
.quiz-next-btn,
.quiz-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(135deg, #47b2e4, #24a3dd);
  box-shadow: 0 16px 36px rgba(71,178,228,0.30);
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: 0.18s ease;
}

.next_btn:hover,
.quiz-next-btn:hover,
.quiz-submit-btn:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(71,178,228,0.38);
}

.quiz-exam-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.quiz-nav-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2edf6;
}

.quiz-nav-cell {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  border: 1px solid #e2edf6;
  color: #20375f;
  font-weight: 950;
  text-decoration: none;
  transition: 0.18s ease;
}

.quiz-nav-cell:hover {
  border-color: #47b2e4;
  background: #eef7fd;
  color: #20375f;
}

.quiz-nav-cell.current {
  background: #20375f;
  border-color: #20375f;
  color: #fff;
}

.quiz-nav-cell.answered-exam {
  background: #eef7fd;
  border-color: #47b2e4;
  color: #20375f;
}

.quiz-nav-cell.correct {
  background: #e8f5e9;
  border-color: #2e7d32;
  color: #1b5e20;
}

.quiz-nav-cell.wrong {
  background: #ffebee;
  border-color: #c62828;
  color: #b71c1c;
}

.quiz-nav-cell.unsure {
  background: #fff8e6;
  border-color: #ffd966;
  color: #735300;
}

.exit-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: #47b2e4;
  font-weight: 950;
  text-decoration: none;
}

.exit-link:hover {
  color: #20375f;
}

@media (max-width: 991px) {
  .quiz-shell {
    padding-top: 105px;
  }

  .quiz-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .quiz-stat-pills {
    justify-content: flex-start;
    width: 100%;
  }

  .quiz-stat-pill {
    flex: 1;
  }
}

@media (max-width: 575px) {
  .quiz-shell {
    padding-top: 92px;
    padding-bottom: 58px;
  }

  .quiz-shell::after {
    display: none;
  }

  .quiz-card-modern {
    padding: 20px 16px;
    border-radius: 26px;
  }

  .q-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .quiz-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quiz-unsure-btn,
  .quiz-pause-btn,
  .next_btn,
  .quiz-next-btn,
  .quiz-submit-btn {
    width: 100%;
  }

  .quiz-exam-footer {
    justify-content: stretch;
  }

  .quiz-stat-pill {
    min-width: 100%;
  }

  .quiz-nav-cell {
    width: 34px;
    height: 34px;
  }
}


/* ---------- UX fixes v1.3 ---------- */

/* Quiz should start higher and not force unnecessary scrolling */
.quiz-shell {
  padding-top: 92px;
  padding-bottom: 46px;
}

.quiz-topbar {
  margin-bottom: 12px;
}

.quiz-topbar h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.quiz-kicker {
  margin-bottom: 8px;
}

.quiz-card-modern {
  padding: 22px;
}

.quiz-context,
.quiz-progress-label {
  margin-bottom: 8px;
}

.quiz-toolbar {
  margin-bottom: 12px;
}

.q-text {
  margin: 8px 0 14px;
}

.q-image {
  max-height: 260px;
}

.q-image-wrap {
  margin: 10px 0 14px;
}

.quiz-answers p {
  margin-bottom: 10px;
}

.quiz-answer-btn,
.button {
  padding: 12px 15px !important;
  border-radius: 15px;
}

/* On mobile, the next button is sticky so the user does not need to scroll down after answering */
@media (max-width: 575px) {
  .quiz-shell {
    padding-top: 82px;
    padding-bottom: 34px;
  }

  .quiz-topbar {
    margin-bottom: 10px;
  }

  .quiz-kicker {
    display: none;
  }

  .quiz-topbar h1 {
    font-size: 1.7rem;
  }

  .quiz-topbar p {
    font-size: 0.92rem;
  }

  .quiz-stat-pills {
    display: none;
  }

  .quiz-card-modern {
    padding: 16px 13px;
  }

  .quiz-toolbar {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .quiz-unsure-btn,
  .quiz-pause-btn {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.86rem;
  }

  .q-meta {
    margin-bottom: 8px;
  }

  .q-meta b {
    font-size: 1.03rem;
  }

  .timer {
    padding: 6px 10px;
    font-size: 0.9rem;
  }

  .q-image {
    max-height: 185px;
    border-radius: 14px;
  }

  .q-text {
    font-size: 1rem;
    line-height: 1.55;
    margin: 6px 0 12px;
  }

  .quiz-answer-btn,
  .button {
    padding: 11px 12px !important;
    font-size: 0.94rem;
    border-radius: 14px;
  }

  .q-explanation {
    margin-top: 10px;
    padding: 13px;
    font-size: 0.93rem;
    line-height: 1.55;
  }

  .quiz-card-footer {
    position: sticky;
    bottom: 10px;
    z-index: 50;
    margin-top: 10px;
  }

  .next_btn,
  .quiz-next-btn {
    box-shadow: 0 12px 30px rgba(32,55,95,0.22);
  }

  .quiz-nav-strip {
    max-height: 92px;
    overflow: auto;
    padding-top: 13px;
    margin-top: 15px;
  }

  .exit-link {
    margin-top: 14px;
  }
}

/* Login mobile: put the login card first and higher up */
@media (max-width: 991px) {
  .auth-section {
    padding-top: 92px;
  }

  .auth-section .row {
    display: flex;
  }

  .auth-section .row > .col-lg-6:first-child {
    order: 2;
  }

  .auth-section .row > .col-lg-6:nth-child(2) {
    order: 1;
  }

  .auth-card {
    margin-top: 0;
  }

  .auth-copy {
    margin-top: 18px;
  }
}

@media (max-width: 575px) {
  .auth-section {
    padding-top: 78px;
    padding-bottom: 42px;
  }

  .auth-card {
    padding: 20px 16px;
  }

  .auth-card-header {
    margin-bottom: 16px;
  }

  .auth-card-header h2 {
    font-size: 1.85rem;
  }

  .auth-copy h1 {
    font-size: 2rem;
  }

  .auth-copy p,
  .auth-note {
    font-size: 0.93rem;
  }
}


/* ---------- Quiz scroll position fix v1.4 ---------- */

.quiz-shell {
  padding-top: 76px;
}

.quiz-topbar {
  display: none;
}

.quiz-card-modern {
  margin-top: 18px;
}

@media (max-width: 575px) {
  .quiz-shell {
    padding-top: 68px;
    padding-bottom: 28px;
  }

  .quiz-card-modern {
    margin-top: 8px;
  }

  .quiz-context {
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .quiz-progress {
    height: 8px;
    margin: 8px 0 6px;
  }

  .quiz-progress-label {
    font-size: 0.84rem;
  }
}


/* ---------- Question image zoom v1.5 ---------- */

.q-image-open {
  display: inline-block;
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  max-width: 100%;
}

.q-image-open:hover .q-image {
  transform: scale(1.01);
  border-color: #47b2e4;
}

.q-image {
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.q-image-zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(32,55,95,0.92);
  color: #fff;
  font-weight: 900;
  font-size: 0.86rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.image-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: rgba(13, 24, 42, 0.88);
}

.image-zoom-modal.active {
  display: flex;
}

.image-zoom-modal img {
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,0.35);
}

.image-zoom-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #20375f;
  display: grid;
  place-items: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
}

.image-zoom-close:hover {
  background: #eef7fd;
}

.image-zoom-lock {
  overflow: hidden;
}

@media (max-width: 575px) {
  .q-image-zoom-hint {
    right: 8px;
    bottom: 8px;
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  .image-zoom-modal {
    padding: 14px;
  }

  .image-zoom-modal img {
    max-width: 96vw;
    max-height: 82vh;
    border-radius: 14px;
  }

  .image-zoom-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }
}


/* ---------- Quiz scroll + image zoom fix v1.6 ---------- */

/* Keep the quiz compact but do not jump below the question */
.quiz-shell {
  padding-top: 70px;
}

.quiz-card-modern {
  margin-top: 8px;
}

.q-text {
  scroll-margin-top: 92px;
}

/* Make image zoom button definitely clickable */
.q-image-open {
  display: inline-block;
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  max-width: 100%;
  z-index: 2;
}

.q-image-open img {
  pointer-events: none;
}

.q-image-open:hover .q-image {
  transform: scale(1.01);
  border-color: #47b2e4;
}

.q-image-zoom-hint {
  pointer-events: none;
}

.image-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: rgba(13, 24, 42, 0.88);
}

.image-zoom-modal.active {
  display: flex;
}

.image-zoom-modal img {
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,0.35);
}

.image-zoom-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #20375f;
  display: grid;
  place-items: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
  z-index: 100000;
}

.image-zoom-close:hover {
  background: #eef7fd;
}

.image-zoom-lock {
  overflow: hidden;
}

@media (max-width: 575px) {
  .quiz-shell {
    padding-top: 64px;
  }

  .q-text {
    scroll-margin-top: 78px;
  }

  .q-image-zoom-hint {
    right: 8px;
    bottom: 8px;
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  .image-zoom-modal {
    padding: 14px;
  }

  .image-zoom-modal img {
    max-width: 96vw;
    max-height: 82vh;
    border-radius: 14px;
  }

  .image-zoom-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }
}


/* ---------- Question top scroll fix v1.7 ---------- */

#questionTop {
  scroll-margin-top: 86px;
}

@media (max-width: 575px) {
  #questionTop {
    scroll-margin-top: 72px;
  }
}


/* ---------- Quiz context scroll fix v1.8 ---------- */

#quizContextTop {
  scroll-margin-top: 82px;
}

@media (max-width: 575px) {
  #quizContextTop {
    scroll-margin-top: 70px;
  }
}


/* ---------- Road sign game / vagmarkesspel.php v1.9 ---------- */

.road-body {
  background: #f6f9fd;
  color: #21324a;
}

.road-body.rtl {
  direction: rtl;
}

.road-main {
  min-height: 70vh;
}

.road-hero {
  padding: 120px 0 32px;
  background:
    radial-gradient(circle at 82% 12%, rgba(114,214,255,0.20), transparent 23%),
    linear-gradient(135deg, #20375f, #37517e);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.road-hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -210px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}

.road-hero-card {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 22px;
}

.road-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #edf9ff;
  padding: 8px 14px;
  font-weight: 900;
  margin-bottom: 16px;
}

.road-hero h1 {
  color: #fff;
  font-family: "Jost", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 950;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}

.road-hero p {
  color: rgba(255,255,255,0.82);
  font-weight: 720;
  line-height: 1.7;
  margin: 0;
  max-width: 690px;
}

.road-score-card {
  min-width: 190px;
  border-radius: 22px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}

.road-score-card span {
  display: block;
  color: rgba(255,255,255,0.72);
  font-weight: 800;
  font-size: 0.82rem;
  margin-bottom: 3px;
}

.road-score-card strong {
  color: #fff;
  font-family: "Jost", sans-serif;
  font-size: 1.35rem;
  font-weight: 950;
}

.road-content {
  padding: 42px 0 80px;
}

.road-layout {
  max-width: 1080px;
  margin: 0 auto;
}

.road-card {
  background: #fff;
  border: 1px solid #e2edf6;
  border-radius: 32px;
  box-shadow: 0 22px 60px rgba(32, 55, 95, 0.13);
  padding: 28px;
}

.road-empty {
  text-align: center;
  padding: 34px 22px;
}

.road-empty-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #47b2e4;
  background: #eef7fd;
  font-size: 34px;
}

.road-empty h2 {
  color: #20375f;
  font-family: "Jost", sans-serif;
  font-weight: 950;
}

.road-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.road-current-mode {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  background: #eef7fd;
  color: #20375f;
  padding: 9px 15px;
  font-weight: 900;
}

.road-current-mode i {
  color: #47b2e4;
}

.road-reset {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #47b2e4;
  font-weight: 950;
  text-decoration: none;
}

.road-reset:hover {
  color: #20375f;
}

.road-groups {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}

.road-chip {
  white-space: nowrap;
  border: 2px solid #e2edf6;
  background: #fff;
  color: #20375f !important;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.88rem;
  transition: 0.18s ease;
}

.road-chip:hover {
  border-color: #47b2e4;
  background: #f5fbff;
}

.road-chip.active {
  border-color: #47b2e4;
  background: #47b2e4;
  color: #fff !important;
}

.road-game-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.road-sign-panel {
  border: 1px solid #e2edf6;
  border-radius: 26px;
  background:
    radial-gradient(circle at 80% 16%, rgba(114,214,255,0.24), transparent 24%),
    #f8fcff;
  padding: 24px;
  text-align: center;
}

.road-question-title {
  color: #20375f;
  font-family: "Jost", sans-serif;
  font-size: 1.35rem;
  font-weight: 950;
  margin: 0 0 18px;
}

.road-image-wrap {
  min-height: 230px;
  display: grid;
  place-items: center;
}

.road-image {
  max-width: 250px;
  max-height: 250px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(32,55,95,0.13));
}

.road-options-panel {
  min-width: 0;
}

.road-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.road-option {
  width: 100%;
  min-height: 58px;
  border: 2px solid #e2edf6;
  background: #fff;
  color: #20375f;
  padding: 15px 16px;
  border-radius: 18px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: 0.18s ease;
  line-height: 1.4;
}

.road-option:hover {
  border-color: #47b2e4;
  background: #f5fbff;
  transform: translateY(-2px);
}

.road-option.correct {
  border-color: #2e7d32;
  background: #e8f5e9;
  color: #1b5e20;
}

.road-option.wrong {
  border-color: #c62828;
  background: #ffebee;
  color: #b71c1c;
}

.road-option:disabled {
  cursor: default;
  opacity: 1;
}

.road-result {
  margin-top: 18px;
  padding: 17px 18px;
  border-radius: 20px;
  line-height: 1.62;
  font-weight: 750;
}

.road-result.ok {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
}

.road-result.no {
  background: #ffebee;
  border: 1px solid #ef9a9a;
  color: #b71c1c;
}

.road-result strong {
  font-weight: 950;
}

.road-explanation {
  color: #20375f;
  margin-top: 9px;
}

.road-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.road-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(135deg, #47b2e4, #24a3dd);
  box-shadow: 0 16px 36px rgba(71,178,228,0.30);
  padding: 13px 24px;
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.road-btn:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(71,178,228,0.38);
}

.road-back {
  text-align: center;
  margin-top: 24px;
}

.road-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #47b2e4;
  font-weight: 950;
  text-decoration: none;
}

.road-back a:hover {
  color: #20375f;
}

.rtl .road-option,
.rtl .road-result,
.rtl .road-options-panel {
  text-align: right;
}

.rtl .road-game-grid {
  direction: rtl;
}

@media (max-width: 991px) {
  .road-hero {
    padding-top: 105px;
  }

  .road-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .road-score-card {
    width: 100%;
  }

  .road-game-grid {
    grid-template-columns: 1fr;
  }

  .road-image-wrap {
    min-height: 190px;
  }
}

@media (max-width: 575px) {
  .road-hero {
    padding-top: 92px;
    padding-bottom: 26px;
  }

  .road-hero h1 {
    font-size: 2.25rem;
  }

  .road-content {
    padding: 28px 0 60px;
  }

  .road-card {
    padding: 18px 14px;
    border-radius: 26px;
  }

  .road-topline {
    align-items: flex-start;
  }

  .road-current-mode {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .road-reset {
    width: 100%;
    justify-content: center;
  }

  .road-groups {
    padding-bottom: 12px;
  }

  .road-chip {
    font-size: 0.82rem;
    padding: 8px 12px;
  }

  .road-sign-panel {
    padding: 18px 14px;
    border-radius: 22px;
  }

  .road-image-wrap {
    min-height: 170px;
  }

  .road-image {
    max-width: 190px;
    max-height: 190px;
  }

  .road-option {
    min-height: 54px;
    padding: 13px 14px;
    border-radius: 16px;
    font-size: 0.94rem;
  }

  .road-actions {
    justify-content: stretch;
  }

  .road-btn {
    width: 100%;
  }
}


/* ---------- Road sign scroll target v2.0 ---------- */

#roadPracticeTop {
  scroll-margin-top: 92px;
}

/* ---------- Gemensam brandjustering v2.1 ---------- */
.app-body,
.auth-body,
.topic-body,
.quiz-body,
.road-body { background: #f3f7fb; }

.app-header,
.auth-header,
#header.app-header,
#header.auth-header {
  background: rgba(2, 20, 43, .96) !important;
  border-bottom: 1px solid rgba(91, 183, 255, .14);
}

.app-header .logo a,
.auth-header .logo a { letter-spacing: .14em; }

.dashboard-hero,
.topic-hero,
.quiz-hero,
.road-hero {
  background:
    radial-gradient(circle at 82% 8%, rgba(18,174,245,.2), transparent 24%),
    linear-gradient(135deg, #020d1e, #05264f) !important;
}

.dash-btn-primary,
.road-btn,
.quiz-primary-action {
  background: linear-gradient(135deg, #08a8f0, #19c2ff) !important;
}

.resume-icon,
.subscription-icon,
.action-icon { color: #078fd2; background: #e9f8ff; }

.dashboard-action-card,
.resume-card,
.subscription-card,
.info-panel,
.topic-panel,
.quiz-card,
.road-card {
  border-color: #dbe9f3;
  box-shadow: 0 22px 58px rgba(5, 38, 79, .11);
}

@media (max-width: 575px) {
  #roadPracticeTop {
    scroll-margin-top: 78px;
  }
}

/* ---------- Mina sidor: robust mobilmeny ---------- */
.app-header .mobile-nav-toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 46px;
  height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  padding: 0;
  color: #fff !important;
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  position: relative;
  z-index: 10050;
}

.app-body.app-menu-open {
  overflow: hidden;
}

#header.app-header {
  z-index: 10040;
}

.app-header .mobile-nav-toggle:focus {
  outline: 2px solid rgba(41, 192, 255, .75);
  outline-offset: 2px;
}

@media (max-width: 991px) {
  .app-header .mobile-nav-toggle {
    display: inline-flex !important;
  }

  .app-header .navbar ul {
    display: none;
  }

  .app-header .navbar.navbar-mobile {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: rgba(1, 10, 23, .94);
    z-index: 9999;
  }

  .app-header .navbar.navbar-mobile .mobile-nav-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
  }

  .app-header .navbar.navbar-mobile ul {
    display: block;
    position: absolute;
    top: 72px;
    right: 15px;
    bottom: 15px;
    left: 15px;
    margin: 0;
    padding: 12px 0;
    overflow-y: auto;
    background: #061a34;
    border: 1px solid rgba(97, 188, 255, .24);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
  }

  .app-header .navbar.navbar-mobile li {
    display: block;
  }

  .app-header .navbar.navbar-mobile a,
  .app-header .navbar.navbar-mobile a:focus {
    display: flex;
    align-items: center;
    min-height: 46px;
    margin: 4px 12px;
    padding: 10px 14px;
    color: #e5f3ff !important;
    border-radius: 12px;
  }

  .app-header .navbar.navbar-mobile a:hover,
  .app-header .navbar.navbar-mobile .active {
    color: #fff !important;
    background: rgba(18, 174, 245, .16);
  }

  .app-header .navbar.navbar-mobile .getstarted,
  .app-header .navbar.navbar-mobile .getstarted:focus {
    justify-content: center;
    margin: 10px 12px 4px;
    color: #fff !important;
    background: rgba(18, 174, 245, .22);
    border: 1px solid rgba(64, 190, 255, .5);
  }
}

/* ---------- Mina sidor: tvinga fram länkarna i mobilmenyn ---------- */
@media (max-width: 991px) {
  body.app-body #header.app-header #navbar.navbar-mobile {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    overflow: hidden !important;
    background: rgba(1, 10, 23, .96) !important;
    z-index: 10045 !important;
  }

  body.app-body #header.app-header #navbar.navbar-mobile > ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    position: fixed !important;
    top: 76px !important;
    right: 16px !important;
    bottom: 16px !important;
    left: 16px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 14px !important;
    overflow-y: auto !important;
    list-style: none !important;
    background: #061a34 !important;
    border: 1px solid rgba(97, 188, 255, .26) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .48) !important;
    z-index: 10046 !important;
  }

  body.app-body #header.app-header #navbar.navbar-mobile > ul > li {
    display: block !important;
    width: 100% !important;
  }

  body.app-body #header.app-header #navbar.navbar-mobile > ul > li > a {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 11px 14px !important;
    color: #eaf7ff !important;
    background: transparent !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 850 !important;
  }

  body.app-body #header.app-header #navbar.navbar-mobile > ul > li > a:hover,
  body.app-body #header.app-header #navbar.navbar-mobile > ul > li > a.active {
    color: #fff !important;
    background: rgba(18, 174, 245, .18) !important;
  }

  body.app-body #header.app-header #navbar.navbar-mobile > ul > li > a.getstarted {
    justify-content: center !important;
    margin-top: 8px !important;
    background: rgba(18, 174, 245, .26) !important;
    border: 1px solid rgba(64, 190, 255, .5) !important;
  }

  body.app-body #header.app-header #navbar.navbar-mobile .mobile-nav-toggle {
    position: fixed !important;
    top: 16px !important;
    right: 16px !important;
    z-index: 10047 !important;
  }
}

/* ---------- Mina sidor: separat mobilmeny utan BootstrapMade-krock ---------- */
.mypages-menu-backdrop,
.mypages-mobile-menu {
  display: none;
}

@media (max-width: 991px) {
  body.app-body #header.app-header #navbar > ul {
    display: none !important;
  }

  body.app-body #header.app-header #navbar {
    position: static !important;
    overflow: visible !important;
    background: transparent !important;
  }

  body.app-body #header.app-header #navbar .mobile-nav-toggle {
    display: block !important;
    color: #fff !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 0 0 14px !important;
    font-size: 30px !important;
    line-height: 1 !important;
    position: relative !important;
    z-index: 10070 !important;
  }

  body.mypages-mobile-menu-open {
    overflow: hidden !important;
  }

  body.mypages-mobile-menu-open .mypages-menu-backdrop {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    background: rgba(1, 10, 23, .82) !important;
    z-index: 10040 !important;
  }

  body.mypages-mobile-menu-open .mypages-mobile-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    position: fixed !important;
    top: 86px !important;
    right: 18px !important;
    left: 18px !important;
    max-height: calc(100vh - 112px) !important;
    padding: 16px !important;
    overflow-y: auto !important;
    background: #061a34 !important;
    border: 1px solid rgba(97, 188, 255, .28) !important;
    border-radius: 20px !important;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .52) !important;
    z-index: 10060 !important;
  }

  .mypages-mobile-menu a {
    display: flex !important;
    align-items: center !important;
    min-height: 50px !important;
    padding: 12px 14px !important;
    color: #eaf7ff !important;
    background: rgba(255, 255, 255, .035) !important;
    border: 1px solid rgba(97, 188, 255, .10) !important;
    border-radius: 14px !important;
    font-size: 17px !important;
    font-weight: 850 !important;
    text-decoration: none !important;
  }

  .mypages-mobile-menu a:hover,
  .mypages-mobile-menu a.is-current {
    color: #fff !important;
    background: rgba(18, 174, 245, .22) !important;
    border-color: rgba(64, 190, 255, .45) !important;
  }
}
