/* ========================================= RESET========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0b2b78;
  --navy-dark: #071f58;
  --blue: #1457d9;
  --green: #16a34a;
  --green-dark: #078638;
  --orange: #f59e0b;
  --purple: #6d35d5;
  --pink: #e85198;
  --cyan: #21b6b6;
  --text: #111827;
  --muted: #667085;
  --border: #e3e8f0;
  --light-bg: #f8fafc;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
}

button,
input {
  font-family: inherit;
}

button {
  border: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========================================= HERO========================================= */
.hero-section {
  max-width: 1480px;
  margin: 22px auto 0;
  padding: 0 24px;
}

.hero-slider {
  height: 425px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(90deg, #f5f9ff 0%, #edf7ff 100%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(25px);
  transition: opacity .45s ease, transform .45s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.hero-content {
  padding-left: 120px;
}

.hero-content h1 {
  font-size: 48px;
  line-height: 1.15;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -.8px;
}

.hero-content h1 span {
  color: var(--green);
}

.hero-content p {
  max-width: 430px;
  margin-top: 20px;
  color: #26334d;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.primary-button {
  background: var(--navy);
  color: #ffffff;
}

.secondary-button {
  background: #ffffff;
  color: var(--green);
  border: 1px solid var(--green);
}

.hero-visual {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-visual img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 5px 18px rgba(15, 39, 82, .13);
  cursor: pointer;
  z-index: 20;
}

.slider-prev {
  left: 22px;
}

.slider-next {
  right: 22px;
}

.slider-dots {
  position: absolute;
  bottom: 17px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 20;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b8c0cb;
  cursor: pointer;
}

.slider-dot.active {
  background: var(--navy);
}

/* ========================================= COMMON SECTIONS========================================= */
.page-section {
  padding: 52px 24px 0;
}

.section-container {
  max-width: 1380px;
  margin: 0 auto;
}

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

.section-heading h2 {
  display: inline-block;
  position: relative;
  color: var(--navy);
  font-size: 27px;
  font-weight: 800;
}

.section-heading h2::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 2px;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  background: var(--green);
}

.section-heading p {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

/* ========================================= CATEGORY========================================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}

.category-card {
  min-height: 150px;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: #bcc9dd;
  box-shadow: 0 8px 22px rgba(34, 53, 84, .08);
}

.category-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 31px;
}

.category-card strong {
  font-size: 14px;
  color: #121a2d;
}

.category-card small {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}

.banking {
  color: #1461dc;
}

.ssc {
  color: #6534ce;
}

.railways {
  color: #ff620d;
}

.nursing {
  color: #16b6b4;
}

.tnpsc {
  color: #179a43;
}

.teaching {
  color: #c83c79;
}

.all-exams {
  color: #667085;
}

/* ========================================= EXPLORE EXAMS========================================= */
.explore-section {
  padding-top: 65px;
}

.explore-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 15px;
}

.explore-categories,
.exam-list-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.explore-categories {
  padding: 14px;
}

.explore-category {
  width: 100%;
  min-height: 49px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  color: #16213a;
  border-bottom: 1px solid #edf0f4;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.explore-category span {
  display: flex;
  align-items: center;
  gap: 13px;
}

.explore-category.active {
  border-radius: 5px;
  background: linear-gradient(90deg, #0c327f, #092767);
  color: #ffffff;
}

.exam-list-panel {
  padding: 18px 20px 17px;
}

.exam-list-heading h3 {
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.exam-list {
  border-top: 1px solid #e8edf4;
}

.exam-row {
  min-height: 50px;
  padding: 0 8px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #e8edf4;
  cursor: pointer;
}

.exam-row:hover {
  background: #f8fbff;
}

.exam-name {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 13px;
  font-weight: 700;
}

.exam-name i {
  color: #1664e4;
}

.exam-row small {
  color: #67758c;
  font-size: 11px;
}

.exam-row>i {
  color: var(--navy);
  font-size: 11px;
}

.view-all-exams {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* ========================================= STATISTICS========================================= */
.stats-section {
  padding: 28px 24px 0;
}

.stats-container {
  --stats-divider: rgba(203, 222, 249, .18);
  max-width: 1280px;
  min-height: 108px;
  margin: 0 auto;
  padding: 22px 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  border: 1px solid #29476c;
  border-radius: 14px;
  color: #f8fbff;
  background: linear-gradient(110deg, #17375f 0%, #102b4e 55%, #0d2342 100%);
  box-shadow: 0 6px 18px rgba(13, 35, 66, .12), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-width: 0;
  min-height: 56px;
  padding: 0 22px;
  border-right: 1px solid var(--stats-divider);
}

.stat-item:last-child {
  border-right: 0;
}

.stat-item .stat-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 1px solid rgba(174, 213, 255, .24);
  border-radius: 12px;
  background: #25466b;
  color: #aed5ff;
  font-size: 21px;
}

.stat-item strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.015em;
}

.stat-item span {
  display: block;
  margin-top: 4px;
  color: #c7d5e8;
  font-size: 12px;
  line-height: 1.5;
}

/* ========================================= CURRENT AFFAIRS + QUIZ========================================= */
.affairs-quiz-section {
  padding-top: 38px;
}

.affairs-quiz-grid {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 20px;
}

.current-affairs-card,
.daily-quiz-card {
  padding: 21px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}

.card-heading h3 {
  color: #142140;
  font-size: 15px;
  font-weight: 700;
}

.card-heading a {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.affairs-list {
  display: flex;
  flex-direction: column;
}

.affair-item {
  min-height: 62px;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 14px;
}

.affair-item img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  background: #e7ebf0;
}

.affair-item strong {
  display: block;
  color: #12203d;
  font-size: 11px;
  line-height: 1.45;
}

.affair-item time {
  color: #758095;
  font-size: 10px;
  white-space: nowrap;
}

.affairs-bottom-link {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.daily-quiz-card {
  background: linear-gradient(135deg, #ffffff, #f7fff9);
}

.quiz-heading h3 {
  color: var(--green-dark);
}

.quiz-content {
  min-height: 300px;
  display: grid;
  grid-template-columns: 1fr 180px;
  align-items: center;
  gap: 20px;
}

.quiz-details p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: #192644;
  font-size: 13px;
}

.quiz-details p i {
  width: 18px;
  color: #42557b;
}

.quiz-start-button {
  width: 100%;
  height: 46px;
  margin-top: 7px;
  border-radius: 5px;
  background: linear-gradient(90deg, #11a144, #07913a);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.previous-quiz-link {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
}

.quiz-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-board {
  width: 125px;
  height: 145px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 7px solid #2860c4;
  border-radius: 9px;
  background: #ffffff;
  color: #15a34a;
  font-size: 62px;
}

.quiz-illustration span {
  position: absolute;
  right: 4px;
  bottom: 3px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
}

/* ========================================= WHY CHOOSE EXAMTIER========================================= */
.why-section {
  padding-top: 45px;
  padding-bottom: 45px;
}

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

.why-card {
  min-height: 145px;
  padding: 25px;
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 18px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.why-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 29px;
}

.why-card h3 {
  color: #132140;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}

.why-card p {
  margin-top: 8px;
  color: #526079;
  font-size: 11px;
  line-height: 1.65;
}

.blue-card {
  background: #f4f8ff;
}

.purple-card {
  background: #f8f4ff;
}

.yellow-card {
  background: #fffaf0;
}

.cyan-card {
  background: #f1fbfb;
}

.pink-card {
  background: #fff6fa;
}

.green-card {
  background: #f5fbf6;
}

.blue-icon {
  color: #1768db;
}

.purple-icon {
  color: #6b3fd3;
}

.yellow-icon {
  color: #f2a006;
}

.cyan-icon {
  color: #1db8b4;
}

.pink-icon {
  color: #dc5b99;
}

.green-icon {
  color: #32a55c;
}

/* ========================================= RESPONSIVE========================================= */
@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: 180px 1fr auto;
  }

  .brand-logo {
    width: 164px;
    height: 52px;
  }

  .main-nav {
    display: none;
  }

  .hero-content {
    padding-left: 80px;
  }

  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    padding: 16px 22px;
  }

  .stat-item:nth-child(2) {
    border-right: 0;
  }

  .stat-item:nth-child(n+3) {
    border-top: 1px solid var(--stats-divider);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .header-inner {
    height: auto;
    padding: 12px 16px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .brand-logo {
    width: 150px;
    height: 48px;
  }

  .header-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .login-button span {
    display: none;
  }

  .login-button {
    width: 44px;
    padding: 0;
  }

  .hero-slider {
    height: 620px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .hero-content {
    padding: 50px 45px 20px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-visual {
    height: 280px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .explore-layout {
    grid-template-columns: 1fr;
  }

  .explore-categories {
    display: flex;
    overflow-x: auto;
    gap: 8px;
  }

  .explore-category {
    min-width: max-content;
    border: 1px solid var(--border);
    border-radius: 5px;
  }

  .explore-category>i {
    display: none;
  }

  .stats-container {
    grid-template-columns: 1fr 1fr;
    padding: 8px 12px;
  }

  .stat-item {
    padding: 16px 12px;
  }

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

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

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* =========================================
   UNIFIED FULL-BLEED HOMEPAGE HERO
========================================= */
.hero-slider {
  background: #eef6ff;
  box-shadow: inset 0 0 0 1px rgba(23, 105, 255, .08);
}

.hero-slide {
  display: block;
  isolation: isolate;
}

.hero-slide .hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide .hero-visual img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  transform: none;
}

.hero-slide .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #f3f8ff 0%,
    rgba(243, 248, 255, .99) 31%,
    rgba(243, 248, 255, .94) 39%,
    rgba(243, 248, 255, .68) 48%,
    rgba(243, 248, 255, .18) 61%,
    rgba(243, 248, 255, 0) 72%
  );
  pointer-events: none;
}

.hero-slide .hero-content {
  position: relative;
  z-index: 2;
  width: 51%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 34px;
}

.hero-slide .hero-content p {
  color: #253451;
}

.hero-slide .hero-actions {
  position: relative;
  z-index: 3;
}

.slider-arrow,
.slider-dots {
  z-index: 3;
}

@media (max-width: 800px) {
  .hero-slider {
    height: 650px;
  }

  .hero-slide .hero-content {
    width: 100%;
    height: 54%;
    justify-content: flex-start;
    padding: 54px 46px 24px;
  }

  .hero-slide .hero-visual {
    inset: auto 0 0;
    height: 49%;
  }

  .hero-slide .hero-visual::after {
    background: linear-gradient(
      180deg,
      #f3f8ff 0%,
      rgba(243, 248, 255, .7) 14%,
      rgba(243, 248, 255, 0) 38%
    );
  }

  .hero-slide .hero-visual img {
    object-position: center center;
  }
}

@media (max-width: 520px) {
  .hero-slider {
    height: 640px;
  }

  .hero-slide .hero-content {
    height: 57%;
    padding: 44px 30px 20px;
  }

  .hero-slide .hero-content h1 {
    font-size: 30px;
  }

  .hero-slide .hero-content p {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-slide .hero-actions {
    margin-top: 20px;
  }

  .hero-slide .hero-visual {
    height: 46%;
  }
}

@media (max-width: 520px) {
  .brand-logo {
    width: 132px;
    height: 44px;
  }

  .page-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-section {
    padding: 0 10px;
  }

  .hero-content {
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero-content h1 {
    font-size: 31px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

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

  .category-card {
    min-height: 130px;
  }

  .stats-container {
    grid-template-columns: 1fr;
    padding: 6px 22px;
  }

  .stat-item {
    justify-content: flex-start;
    padding: 16px 0;
    border-right: 0;
  }

  .stat-item + .stat-item {
    border-top: 1px solid var(--stats-divider);
  }

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

  .quiz-illustration {
    display: none;
  }

  .affair-item {
    grid-template-columns: 60px 1fr;
  }

  .affair-item img {
    width: 60px;
    height: 44px;
  }

  .affair-item time {
    display: none;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

.exams-mega-menu {
  display: none;
  position: absolute;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
 width: min(1100px, calc(100% - 40px));
  background: #ffffff;
  border: 1px solid #e3e8f0;
  border-radius: 10px;
  box-shadow: 0 12px 35px rgba(15, 35, 70, 0.12);
  z-index: 999;
}

.exams-mega-menu.open {
  display: block;
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 560px;
}

.mega-categories {
  padding: 18px;
  border-right: 1px solid #e8edf3;
}

.mega-category {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  color: #142140;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
}

.mega-category span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mega-category.active {
  background: #eef7f1;
  color: #0f8f42;
}

.mega-exams-area {
  padding: 28px 38px;
}

.mega-exam-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 55px;
}

.mega-exam-item {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  color: #142140;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid #edf0f4;
}

.mega-exam-item:hover {
  color: #16a34a;
}

.mega-exam-icon {
  width: 30px;
  display: flex;
  justify-content: center;
  color: #1457d9;
  font-size: 20px;
}

.mega-view-all {
  margin-top: 22px;
  background: transparent;
  color: #16a34a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 800px) {
  .exams-mega-menu {
    position: fixed;
    top: 70px;
    left: 10px;
    right: 10px;
    width: auto;
    transform: none;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }

  .mega-menu-inner {
    grid-template-columns: 1fr;
  }

  .mega-categories {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #e8edf3;
  }

  .mega-category {
    min-width: max-content;
  }

  .mega-exam-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 390px;
  max-height: 440px;
}

.mega-categories {
  padding: 12px;
}

.mega-category {
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
}

.mega-exams-area {
  padding: 20px 28px;
  overflow-y: auto;
}

.mega-exam-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 40px;
}

.mega-exam-item {
  min-height: 52px;
  font-size: 13px;
}

.mega-exam-icon {
  width: 25px;
  font-size: 17px;
}

.mega-view-all {
  margin-top: 14px;
}

/* =========================================
   EXAMTIER AUTHENTICATION POPUP
========================================= */

body.tb-auth-open {
  overflow: hidden;
}

.tb-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(8, 21, 42, 0.72);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.tb-auth-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tb-auth-modal {
  position: relative;
  width: min(940px, calc(100% - 80px));
  height: 610px;
  max-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 46% 54%;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(3, 18, 46, 0.22);
  transform: translateY(15px) scale(0.985);
  transition: transform 0.25s ease;
}

.tb-auth-overlay.open .tb-auth-modal {
  transform: translateY(0) scale(1);
}

.tb-auth-close {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 30;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #0c1f43;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.tb-auth-close:hover {
  background: #f1f4f8;
  color: #1457d9;
}

/* =========================================
   LEFT BRAND PANEL
========================================= */

.tb-auth-brand-panel {
 height: 610px;
padding: 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid #e6ebf2;
  background:
    radial-gradient(
      circle at 22% 18%,
      rgba(20, 87, 217, 0.035),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f8fbff 100%
    );
}

.tb-auth-logo{
    width:230px;
    height:72px;
    object-fit:contain;
}

.tb-auth-brand-heading {
  margin-top: 10px;
  text-align: center;
}

.tb-auth-brand-heading h2 {
  color: #0b2b78;
   font-size:22px;
    line-height:1.32;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.tb-auth-brand-heading h2 span {
  display: block;
  color: #16a34a;
}

.tb-auth-illustration {
  width:100%;
  height:180px;
  margin-top:18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tb-auth-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tb-auth-benefits {
  width: 100%;
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tb-auth-benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tb-benefit-icon {
  width: 43px;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 17px;
}

.tb-benefit-green {
  color: #07913c;
  background: #dff7e8;
}

.tb-benefit-blue {
  color: #1457d9;
  background: #e4efff;
}

.tb-benefit-purple {
  color: #7044df;
  background: #eee8ff;
}

.tb-auth-benefit strong {
  margin-top: 9px;
  color: #122452;
  font-size: 11px;
  line-height: 1.4;
}

.tb-auth-benefit small {
  max-width: 115px;
  margin-top: 5px;
  color: #65738a;
  font-size: 9px;
  line-height: 1.45;
}

.tb-auth-brand-dots {
  margin-top: auto;
  display: flex;
  gap: 7px;
}

.tb-auth-brand-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d4dbe6;
}

.tb-auth-brand-dots span.active {
  background: #0b2b78;
}

/* =========================================
   RIGHT FORM PANEL
========================================= */

.tb-auth-form-panel {
  height: 580px;
padding: 42px 38px 28px;
  display: flex;
  align-items: center;
  overflow-y: auto;
  background: #ffffff;
}

.tb-auth-step {
  display: none;
  width: 100%;
  animation: tbAuthFade 0.25s ease;
}

.tb-auth-step.active {
  display: block;
}

@keyframes tbAuthFade {
  from {
    opacity: 0;
    transform: translateX(8px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.tb-auth-heading {
  text-align: center;
}

.tb-auth-heading h2 {
  color: #0b2b78;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.tb-auth-heading h2 span {
  color: #16a34a;
}

.tb-auth-heading p {
  margin-top: 10px;
  color: #68758a;
  font-size: 14px;
  font-weight: 500;
}

.tb-auth-form {
  margin-top: 28px;
}

.tb-auth-field {
  margin-bottom: 19px;
}

.tb-auth-field label {
  display: block;
  margin-bottom: 9px;
  color: #101e3b;
  font-size: 13px;
  font-weight: 700;
}

.tb-mobile-input-wrap {
  height: 58px;
  display: flex;
  border: 1px solid #c9d3e1;
  border-radius: 7px;
  background: #ffffff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.tb-mobile-input-wrap:focus-within {
  border-color: #1457d9;
  box-shadow: 0 0 0 3px rgba(20, 87, 217, 0.08);
}

.tb-country-code {
  min-width: 130px;
  height: 100%;
  padding: 0 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-right: 1px solid #dbe2eb;
  color: #142140;
}

.tb-india-flag {
  font-size: 0;
  line-height: 1;
}

.tb-india-flag::before {
  content: "";
  display: block;
  width: 22px;
  height: 15px;
  border: 1px solid #d8dee9;
  border-radius: 2px;
  background:
    radial-gradient(circle at center, #1a3c8c 0 1.5px, transparent 1.8px),
    linear-gradient(to bottom, #ff9933 0 33.33%, #fff 33.33% 66.66%, #138808 66.66% 100%);
  box-shadow: 0 1px 2px rgba(15, 35, 85, 0.12);
}

.tb-country-code strong {
  font-size: 14px;
}

.tb-country-code i {
  margin-left: auto;
  font-size: 10px;
}

.tb-mobile-input-wrap input {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  border: 0;
  outline: 0;
  color: #15213b;
  background: transparent;
  font-size: 14px;
}

.tb-mobile-input-wrap input::placeholder {
  color: #8994a6;
}

.tb-auth-error {
  min-height: 18px;
  margin-top: 6px;
  color: #dc2626;
  font-size: 11px;
  font-weight: 500;
}

.tb-auth-primary-btn,
.tb-register-btn {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  border-radius: 7px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.tb-auth-primary-btn {
  background: linear-gradient(
    90deg,
    #0b2b78,
    #0b3d9b
  );
  box-shadow: 0 8px 20px rgba(11, 43, 120, 0.17);
}

.tb-register-btn {
  background: linear-gradient(
    90deg,
    #0c9843,
    #09a449
  );
  box-shadow: 0 8px 20px rgba(12, 152, 67, 0.15);
}

.tb-auth-primary-btn:hover,
.tb-register-btn:hover {
  transform: translateY(-1px);
}

.tb-auth-primary-btn:disabled,
.tb-register-btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.tb-auth-divider {
  margin: 28px 0 23px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 17px;
}

.tb-auth-divider span {
  height: 1px;
  background: #dde3eb;
}

.tb-auth-divider p {
  color: #5f6b7e;
  font-size: 12px;
  font-weight: 700;
}

.tb-google-btn {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid #ccd5e1;
  border-radius: 7px;
  background: #ffffff;
  color: #142140;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.tb-google-btn strong {
  font-size: 14px;
  font-weight: 700;
}

.tb-google-btn:hover {
  border-color: #9daabd;
  background: #fafcff;
  box-shadow: 0 4px 14px rgba(11, 43, 120, 0.06);
}

.tb-google-icon{
    width:21px;
    height:21px;
    object-fit:contain;
    flex-shrink:0;
}

.tb-data-safe {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #657288;
  font-size: 13px;
}

.tb-data-safe i {
  color: #52617a;
}

/* =========================================
   OTP STEP
========================================= */

.tb-otp-mobile-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tb-otp-mobile-row strong {
  color: #0b9a43;
  font-size: 13px;
}

.tb-otp-mobile-row button {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: #1457d9;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.tb-otp-inputs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.tb-otp-inputs input {
  width: 100%;
  height: 56px;
  border: 1px solid #cbd5e2;
  border-radius: 7px;
  outline: none;
  color: #0b2b78;
  text-align: center;
  font-size: 21px;
  font-weight: 800;
}

.tb-otp-inputs input:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.08);
}

.tb-otp-error {
  text-align: center;
}

.tb-resend-row {
  min-height: 38px;
  margin: 16px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #778397;
  font-size: 11px;
}

.tb-resend-row button {
  background: transparent;
  color: #1457d9;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.tb-resend-row button:disabled {
  visibility: hidden;
}

.tb-google-otp {
  height: 54px;
}

/* =========================================
   REGISTRATION STEP
========================================= */

.tb-registration-heading h2 {
  font-size: 24px;
}

.tb-registration-form {
  margin-top: 26px;
}

.tb-registration-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tb-registration-form .tb-auth-field {
  margin-bottom: 14px;
}

.tb-registration-form input,
.tb-registration-form select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #ccd5e1;
  border-radius: 6px;
  outline: none;
  background: #ffffff;
  color: #17223a;
  font-size: 12px;
}

.tb-registration-form input:focus,
.tb-registration-form select:focus {
  border-color: #1457d9;
  box-shadow: 0 0 0 3px rgba(20, 87, 217, 0.07);
}

.tb-registration-form input::placeholder {
  color: #929cad;
}

.tb-registration-form select:disabled {
  cursor: not-allowed;
  color: #9aa4b4;
  background: #f6f8fb;
}

.tb-registration-error {
  text-align: center;
}

.tb-register-btn {
  height: 51px;
  margin-top: 2px;
  font-size: 14px;
}

.tb-registration-safe {
  margin-top: 16px;
  font-size: 11px;
}

/* =========================================
   REGISTRATION SUCCESS TOAST
========================================= */

.tb-registration-toast {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 60;
  min-width: 300px;
  min-height: 58px;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #b9ebcc;
  border-radius: 8px;
  background: #f2fff6;
  color: #106d35;
  box-shadow: 0 12px 32px rgba(11, 43, 70, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -14px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

.tb-registration-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.tb-registration-toast span {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #15a34a;
  color: #ffffff;
}

.tb-registration-toast strong {
  font-size: 13px;
}

/* =========================================
   RESPONSIVE AUTHENTICATION POPUP
========================================= */

@media (max-width: 950px) {
  .tb-auth-modal {
    width: min(570px, 100%);
    min-height: auto;
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .tb-auth-brand-panel {
    display: none;
  }

  .tb-auth-form-panel {
    min-height: 620px;
    padding: 66px 42px 35px;
  }
}

@media (max-width: 600px) {
  .tb-auth-overlay {
    padding: 0;
    align-items: stretch;
  }

  .tb-auth-modal {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }

  .tb-auth-close {
    top: 18px;
    right: 18px;
  }

  .tb-auth-form-panel {
    min-height: 100vh;
    padding: 65px 18px 30px;
    align-items: flex-start;
  }

  .tb-auth-heading h2 {
    font-size: 25px;
  }

  .tb-auth-form {
    margin-top: 34px;
  }

  .tb-country-code {
    min-width: 104px;
    padding: 0 12px;
  }

  .tb-mobile-input-wrap,
  .tb-auth-primary-btn,
  .tb-google-btn {
    height: 54px;
  }

  .tb-auth-primary-btn {
    font-size: 14px;
  }

  .tb-data-safe {
    margin-top: 38px;
  }

  .tb-otp-inputs {
    gap: 6px;
  }

  .tb-otp-inputs input {
    height: 50px;
    font-size: 18px;
  }

  .tb-registration-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .tb-registration-form {
    margin-top: 23px;
  }

  .tb-registration-form input,
  .tb-registration-form select {
    height: 47px;
  }

  .tb-registration-toast {
    top: 14px;
    min-width: calc(100% - 70px);
  }
}

/* =========================================
   COMPACT GOOGLE + EMAIL LOGIN
========================================= */

.tb-social-login-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
}

.tb-social-login-btn {
  width: 135px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  background: #ffffff;
  border: 1px solid #d9dee7;
  border-radius: 8px;

  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #263247;

  cursor: pointer;
  transition: 0.2s ease;
}

.tb-social-login-btn:hover {
  border-color: #aeb8c7;
  background: #f8fafc;
}

.tb-social-login-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.tb-social-login-btn i {
  font-size: 17px;
  color: #344054;
}

/* =========================================
   EMAIL LOGIN + FORGOT PASSWORD
========================================= */


/* EMAIL + PASSWORD INPUTS */

#tbEmailLoginStep .tb-auth-field > input,
#tbForgotPasswordStep .tb-auth-field > input,
.tb-email-password-wrap input {
  width: 100%;
  height: 50px;

  padding: 0 15px;

  box-sizing: border-box;

  border: 1px solid #d9e0eb;
  border-radius: 10px;

  background: #f8fafc;

  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #172033;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}


/* PLACEHOLDER */

#tbEmailLoginStep .tb-auth-field > input::placeholder,
#tbForgotPasswordStep .tb-auth-field > input::placeholder,
.tb-email-password-wrap input::placeholder {
  color: #a0a9b8;
}


/* INPUT FOCUS */

#tbEmailLoginStep .tb-auth-field > input:focus,
#tbForgotPasswordStep .tb-auth-field > input:focus,
.tb-email-password-wrap input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}


/* =========================================
   PASSWORD FIELD
========================================= */

.tb-email-password-wrap {
  position: relative;
  width: 100%;
}

.tb-email-password-wrap input {
  padding-right: 48px;
}

.tb-email-password-wrap button {
  position: absolute;

  right: 10px;
  top: 50%;

  transform: translateY(-50%);

  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: none;
  background: transparent;

  color: #7b8798;
  font-size: 15px;

  cursor: pointer;
}

.tb-email-password-wrap button:hover {
  color: #0b1f5e;
}


/* =========================================
   FORGOT PASSWORD BUTTON
========================================= */

.tb-email-forgot-row {
  display: flex;
  justify-content: flex-end;

  margin-top: -10px;
  margin-bottom: 20px;
}

.tb-email-forgot-row button {
  padding: 0;

  border: none;
  background: transparent;

  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;

  color: #2563eb;

  cursor: pointer;
}

.tb-email-forgot-row button:hover {
  text-decoration: underline;
}


/* =========================================
   BACK BUTTON
========================================= */

.tb-email-back-btn {
  width: 100%;

  margin-top: 17px;
  padding: 6px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  border: none;
  background: transparent;

  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;

  color: #596579;

  cursor: pointer;
}

.tb-email-back-btn:hover {
  color: #0b1f5e;
}

/* =========================================
   COMPACT MOBILE LOGIN
========================================= */

#tbMobileStep .tb-auth-form {
  max-width: 390px;
  margin-left: auto;
  margin-right: auto;
}

#tbMobileStep .tb-mobile-input-wrap {
  height: 48px;
}

#tbMobileStep .tb-country-code {
  min-width: 105px;
  padding: 0 13px;
  gap: 7px;
}

#tbMobileStep .tb-country-code strong {
  font-size: 13px;
}

#tbMobileStep .tb-mobile-input-wrap input {
  padding: 0 14px;
  font-size: 13px;
}

#tbMobileStep .tb-auth-primary-btn {
  height: 46px;
  font-size: 14px;
  gap: 14px;
}

/* MOBILE INPUT - SAME LOOK AS EMAIL / PASSWORD */

#tbMobileStep .tb-mobile-input-wrap {
  background: #f8fafc;
  border: 1px solid #d9e0eb;
  border-radius: 10px;
}

#tbMobileStep .tb-country-code {
  background: transparent;
  border-right: 1px solid #d9e0eb;
}

#tbMobileStep .tb-mobile-input-wrap input {
  background: transparent;
}

#tbMobileStep .tb-mobile-input-wrap:focus-within {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

/* =========================================
   COMPACT VERIFY OTP - SAME INPUT STYLE
========================================= */

#tbOtpStep .tb-auth-form {
  max-width: 390px;
  margin-left: auto;
  margin-right: auto;
}

#tbOtpStep .tb-otp-inputs {
  gap: 8px;
}

#tbOtpStep .tb-otp-inputs input {
  height: 48px;
  border: 1px solid #d9e0eb;
  border-radius: 9px;
  background: #f8fafc;
  font-size: 18px;
  font-weight: 700;
  box-shadow: none;
}

#tbOtpStep .tb-otp-inputs input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

#tbOtpStep .tb-auth-primary-btn {
  height: 46px;
  font-size: 14px;
}

.tb-invisible-recaptcha .grecaptcha-badge{visibility:hidden!important}.tb-recaptcha-notice{display:block;margin:8px auto 0;max-width:360px;text-align:center;color:#71809e;font-size:10px;line-height:1.4}.tb-recaptcha-notice a{color:#2563eb;text-decoration:none}
