:root {
  --cceea-blue: #1f73b7;
  --cceea-blue-dark: #155a94;
  --cceea-gray: #f5f7fa;
  --cceea-text: #4b5563;
}

/* =========================
   HEADER
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================
   TOP BAR
========================= */

.top-bar {
  background: var(--cceea-blue-dark);
  color: white;
  font-size: 13px;
}

.top-bar .container {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-left span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-right a {
  color: white;
  transition: 0.2s;
}

.top-bar-right a:hover {
  opacity: 0.8;
}

/* =========================
   NAVBAR
========================= */

.main-navbar {
  background: white;
  height: 80px;

  display: flex;
  align-items: center;

  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-logo img {
  height: 60px;
  width: auto;
}

.navbar-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.menu-list {
  display: flex;
  align-items: center;
  gap: 28px;

  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-list > li {
  position: relative;
}

.menu-list > li > a {
  color: var(--cceea-blue);
  text-decoration: none;

  font-size: 14px;
  font-weight: 600;

  display: flex;
  align-items: center;
  gap: 6px;

  transition: 0.2s;
}

.menu-list > li > a:hover {
  color: var(--cceea-blue-dark);
  text-decoration: none;
}

.menu-list > li > a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -10px;

  width: 0;
  height: 3px;

  background: var(--cceea-blue);

  transition: width 0.25s ease;
}

.menu-list > li:hover > a::after {
  width: 100%;
}

/* =========================
   DROPDOWNS
========================= */

.menu-list .dropdown-menu {
  min-width: 280px;

  border: none;
  border-radius: 14px;

  padding: 8px 0;
  margin-top: 18px;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.menu-list .dropdown-menu li {
  list-style: none;
}

.menu-list .dropdown-menu a {
  display: block;

  padding: 12px 18px;

  color: var(--cceea-text);
  text-decoration: none;

  font-size: 14px;
  font-weight: 500;
}

.menu-list .dropdown-menu a:hover {
  background: var(--cceea-gray);
  color: var(--cceea-blue);
}

/* =========================
   USUARIO
========================= */

.navbar-user {
  display: flex;
  align-items: center;
}

.user-trigger {
  display: flex !important;
  align-items: center;
  gap: 12px;

  text-decoration: none !important;
}

.user-avatar {
  width: 42px;
  height: 42px;

  border-radius: 50%;

  background: var(--cceea-blue);

  color: white;

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

.user-info {
  display: flex;
  flex-direction: column;
}

.user-chevron {
  color: var(--cceea-blue-dark);
}

.user-label {
  font-size: 11px;
  color: #888;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--cceea-text);
}

/* =========================
   LOGIN
========================= */

.login-btn {
  background: var(--cceea-blue);
  color: white;

  padding: 10px 18px;

  border-radius: 10px;

  text-decoration: none;
  font-weight: 600;

  transition: 0.25s;
}

.login-btn:hover {
  background: var(--cceea-blue-dark);
  color: white;
  text-decoration: none;
}

/* =========================
   MOBILE
========================= */

.mobile-submenu {
  display: none;

  background: #f8fafc;
}

.mobile-dropdown.open .mobile-submenu {
  display: block;
}

.mobile-submenu a {
  padding-left: 42px !important;
  font-size: 13px;
}

.mobile-dropdown-toggle {
  width: 100%;

  border: none;
  background: white;

  padding: 16px 24px;

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

  color: var(--cceea-blue);
  font-weight: 600;

  cursor: pointer;
}

.mobile-menu-toggle {
  display: none;
}

.mobile-menu-toggle button {
  border: none;
  background: transparent;

  color: var(--cceea-blue);

  font-size: 24px;
  cursor: pointer;
}

.mobile-nav {
  display: none;

  background: white;
  border-top: 1px solid #eee;

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav li a {
  display: block;

  padding: 16px 24px;

  color: var(--cceea-blue);
  text-decoration: none;

  border-bottom: 1px solid #f3f3f3;
}

.mobile-nav li a:hover {
  background: var(--cceea-gray);
}
.mobile-dropdown-toggle i {
  transition: transform 0.25s ease;
}

.mobile-dropdown.open .mobile-dropdown-toggle i {
  transform: rotate(180deg);
}

.mobile-dropdown-toggle:hover {
  background: #f8fafc;
}

.mobile-submenu {
  display: none;
  background: #f8fafc;
}

.mobile-dropdown.open .mobile-submenu {
  display: block;
}

.mobile-submenu li a {
  padding-left: 42px !important;
  font-size: 13px;
  color: var(--cceea-text);
}

.mobile-submenu li a:hover {
  color: var(--cceea-blue);
}

@media (max-width: 1200px) {
  .user-info {
    display: none;
  }

  .menu-list {
    gap: 18px;
  }

  .menu-list > li > a {
    font-size: 13px;
  }
}

/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {
  .mobile-menu-toggle {
    display: block;
  }

  .navbar-menu {
    display: none;
  }

  .navbar-logo {
    display: none;
  }

  .navbar-container {
    justify-content: space-between;
  }

  .main-navbar {
    height: 64px;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .top-bar-left {
    display: none;
  }

  .top-bar .container {
    justify-content: center;
  }

  .navbar-logo img {
    height: 50px;
  }

  .main-navbar {
    height: 70px;
  }
}

/* =========================
   DASHBOARD-PERFIL
========================= */

.dashboard-hero {
  background: #2472b5;
  min-height: 340px;
}

.dashboard-hero-bg {
  background: linear-gradient(135deg, #1f73b7 0%, #155a94 100%);

  border-radius: 28px;

  padding: 40px 50px;

  min-height: 280px;

  position: relative;

  overflow: hidden;
}

.dashboard-hero-bg::before {
  content: "";

  position: absolute;

  width: 350px;
  height: 350px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.05);

  right: -120px;
  top: -120px;
}

.dashboard-hero-bg::after {
  content: "";

  position: absolute;

  width: 220px;
  height: 220px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.04);

  left: -80px;
  bottom: -80px;
}

.dashboard-hero-content {
  max-width: 1200px;

  margin: 0 auto;

  min-height: 340px;

  display: flex;
  align-items: center;

  gap: 70px;

  padding: 0 40px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.hero-avatar {
  flex-shrink: 0;

  width: 220px;
  height: 220px;

  border-radius: 50%;

  overflow: hidden;

  border: 6px solid rgba(255, 255, 255, 0.35);

  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.12);
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-logo img {
  max-height: 90px;
  width: auto;
}

.hero-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-logo img {
  height: 90px;
  width: auto;
}

.hero-welcome {
  margin-top: 12px;

  color: white;

  font-size: 30px;
  font-weight: 300;
}

.hero-welcome strong {
  font-weight: 700;
}

.hero-stats {
  margin-top: 40px;

  display: flex;
  gap: 45px;

  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 10px;

  color: white;

  font-size: 22px;
}
.hero-stat-icon {
  width: 40px;
  height: 40px;

  object-fit: contain;

  flex-shrink: 0;
}

.hero-bottom {
  margin-top: 40px;
  color: white;
}

.welcome-label {
  display: block;

  font-size: 16px;

  opacity: 0.85;

  margin-bottom: 8px;
}

.hero-bottom h1 {
  margin: 0;

  font-size: 38px;
  font-weight: 700;

  color: white;
}

@media (max-width: 768px) {
  .dashboard-hero-content {
    flex-direction: column;

    text-align: center;

    gap: 30px;

    padding: 40px 20px;
  }

  .hero-stats {
    justify-content: center;

    gap: 20px;
  }

  .hero-avatar {
    width: 160px;
    height: 160px;
  }

  .hero-logo img {
    height: 70px;
  }

  .hero-welcome {
    font-size: 24px;
  }
}

/* ========================================
   DASHBOARD SUMMARY
======================================== */

.dashboard-progress {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 24px;
}
.dashboard-summary {
  display: grid;
  grid-template-columns: 2fr 1fr;

  gap: 30px;

  margin-top: 40px;
}

/* ========================================
   TITULOS DE SECCION
======================================== */

.dashboard-section-title {
  margin-bottom: 18px;

  font-size: 14px;
  font-weight: 600;

  letter-spacing: 4px;
  text-transform: uppercase;

  color: #7b8794;
}

/* ========================================
   CARD BASE
======================================== */

.dashboard-card {
  background: white;

  border-radius: 20px;

  padding: 30px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* ========================================
   PROGRESO
======================================== */

.progress-card {
  background: white;

  border-radius: 20px;

  padding: 30px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.progress-item + .progress-item {
  margin-top: 36px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 12px;

  font-weight: 600;

  color: var(--cceea-blue);
}

.progress-header span:first-child {
  font-size: 16px;
}

.progress-header span:last-child {
  color: #64748b;

  font-size: 14px;
  font-weight: 500;
}

.progress-track {
  height: 12px;

  background: #e5e7eb;

  border-radius: 999px;

  overflow: hidden;
}

.progress-fill {
  height: 100%;

  background: #d4df00;

  border-radius: 999px;

  transition: width 0.4s ease;
}

/* ========================================
   TITULO Y GRADO
======================================== */

.title-card {
  background: var(--cceea-blue);

  color: white;

  border-radius: 20px;

  padding: 30px;

  min-height: 220px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.title-label {
  opacity: 0.8;

  font-size: 14px;

  text-transform: uppercase;

  letter-spacing: 2px;
}

.title-card h2 {
  margin-top: 15px;
  margin-bottom: 0;

  font-size: 32px;
  font-weight: 700;

  line-height: 1.2;
  color: var(--cceea-gray);
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 992px) {
  .dashboard-summary {
    grid-template-columns: 1fr;
  }

  .title-card {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .progress-card,
  .title-card {
    padding: 24px;
  }

  .title-card h2 {
    font-size: 26px;
  }

  .progress-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ========================================
   HISTORIAL
======================================== */

.dashboard-history {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 24px;
}

.history-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

  gap: 24px;
}

.history-hidden {
  display: none;
}

.history-more {
  margin-top: 30px;
  text-align: center;
}

.history-btn {
  background: var(--cceea-blue);

  color: white;

  border: none;

  padding: 12px 30px;

  border-radius: 999px;

  cursor: pointer;

  transition: 0.25s;
}

.history-btn:hover {
  background: var(--cceea-blue-dark);
}

.history-card {
  background: white;

  border-radius: 20px;

  padding: 24px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);

  transition: all 0.25s ease;
}

.history-card:hover {
  transform: translateY(-3px);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.history-card-top {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 18px;
}

.history-type {
  color: var(--cceea-blue);

  font-size: 13px;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 1px;
}

.history-date {
  background: #eef2f7;

  color: #64748b;

  font-size: 12px;

  padding: 6px 10px;

  border-radius: 999px;
}

.history-card h4 {
  margin: 0 0 10px;

  color: var(--cceea-blue);

  font-size: 22px;

  font-weight: 700;

  line-height: 1.3;
}

.history-card p {
  margin: 0;

  color: #7b8794;

  font-size: 14px;

  line-height: 1.6;
}

.history-footer {
  display: flex;
  justify-content: flex-end;

  margin-top: 24px;
}
.history-load-more {
  background: white;

  border: 2px solid var(--cceea-blue);

  color: var(--cceea-blue);

  padding: 12px 24px;

  border-radius: 12px;

  font-weight: 600;

  transition: all 0.25s ease;

  cursor: pointer;
}
.history-load-more:hover {
  background: var(--cceea-blue);

  color: white;
}

/* ==========================
   KARDEX
========================== */

.dashboard-kardex {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 24px;
}

/* ==========================
   HEADER
========================== */

.dashboard-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 40px;
}

.dashboard-section-header h2 {
  margin: 0;

  color: var(--cceea-blue);

  font-size: 36px;
  font-weight: 700;
}

/* ==========================
   STATS
========================== */

.kardex-stats {
  display: flex;
  gap: 16px;
}

.kardex-stats .stat {
  background: var(--cceea-blue);

  padding: 12px 20px;

  border-radius: 14px;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);

  text-align: center;

  min-width: 110px;
}

.kardex-stats .stat span {
  display: block;

  font-size: 12px;

  color: #f3f3f3;

  margin-bottom: 4px;
}

.kardex-stats .stat strong {
  display: block;

  color: var(--cceea-gray);

  font-size: 22px;
  font-weight: 700;
}

/* ==========================
   GRID
========================== */

.kardex-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
}

/* ==========================
   ITEM
========================== */

.kardex-item {
  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;

  min-height: 280px;

  transition: all 0.25s ease;
}

.kardex-item:hover {
  transform: translateY(-3px);
}

.kardex-item span {
  margin-top: 18px;

  max-width: 260px;

  min-height: 110px;

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

  color: #666;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

/* ==========================
   ICONO
========================== */

.kardex-icon {
  width: 120px;
  height: 120px;

  border-radius: 50%;

  overflow: hidden;

  transition: all 0.3s ease;
}

.kardex-icon img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

/* ==========================
   COMPLETADO
========================== */

.kardex-item.completed .kardex-icon {
  opacity: 1;

  filter: none;

  box-shadow:
    0 0 0 4px #d4df00,
    0 10px 20px rgba(0, 0, 0, 0.12);
}

/* ==========================
   PENDIENTE
========================== */

.kardex-item.pending .kardex-icon {
  filter: grayscale(100%);
  opacity: 0.55;
}

/* ==========================
   PROGRESO GENERAL
========================== */

.kardex-progress {
  max-width: 700px;

  margin: 50px auto 0;
}

.kardex-progress-header {
  display: flex;

  justify-content: space-between;

  margin-bottom: 12px;

  color: var(--cceea-blue);

  font-weight: 600;
}

.kardex-progress-track {
  height: 14px;

  background: #e5e7eb;

  border-radius: 999px;

  overflow: hidden;
}

.kardex-progress-fill {
  height: 100%;

  background: #d4df00;

  border-radius: 999px;

  transition: width 0.4s ease;
}

.exam-banner {
  margin-top: 50px;

  padding: 30px;

  background: #f8fafc;

  border: 2px solid var(--cceea-blue);

  border-radius: 20px;

  text-align: center;
}

.exam-banner h3 {
  margin: 0 0 10px;

  color: var(--cceea-blue);

  font-size: 28px;

  font-weight: 700;
}

.exam-banner p {
  margin: 0;

  color: var(--cceea-text);

  font-size: 16px;

  line-height: 1.6;
}

.exam-btn {
  display: inline-block;

  margin-top: 24px;

  padding: 14px 32px;

  background: var(--cceea-blue);

  color: white;

  border-radius: 999px;

  text-decoration: none;

  font-weight: 600;

  transition: all 0.25s ease;
}

.exam-btn:hover {
  background: var(--cceea-blue-dark);

  color: white;

  text-decoration: none;

  transform: translateY(-2px);
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 992px) {
  .dashboard-section-header {
    flex-direction: column;

    align-items: flex-start;

    gap: 20px;
  }

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

@media (max-width: 992px) {
  .dashboard-section-header {
    flex-direction: column;
    align-items: flex-start;

    gap: 20px;
  }

  .kardex-grid {
    grid-template-columns: repeat(2, 180px);

    justify-content: center;
  }
}

@media (max-width: 576px) {
  .dashboard-kardex {
    padding: 0 24px;
  }

  .dashboard-section-header {
    align-items: center;
    text-align: center;
  }

  .kardex-stats {
    width: 100%;

    justify-content: center;

    flex-wrap: wrap;
  }

  .kardex-grid {
    grid-template-columns: 1fr;

    justify-items: center;
  }

  .kardex-item {
    width: 100%;
    max-width: 220px;
  }

  .kardex-icon {
    width: 90px;
    height: 90px;
  }

  .dashboard-section-header h2 {
    font-size: 28px;
  }
}

/* ==================================================
   RECURSOS
================================================== */

.dashboard-resources {
  max-width: 1200px;
  margin: 60px auto;
  padding: 50px;

  background: white;

  border: 2px solid var(--cceea-blue);
  border-radius: 32px;
}

/* ==================================================
   TITULO PRINCIPAL
================================================== */

.resources-title {
  text-align: center;

  margin-bottom: 60px;

  color: var(--cceea-blue);

  font-size: 42px;
  font-weight: 700;

  text-transform: uppercase;
}

/* ==================================================
   ENCABEZADOS DE CATEGORIA
================================================== */

.category-title {
  display: flex;
  align-items: center;

  gap: 30px;

  margin-bottom: 40px;
}

.category-title span {
  flex: 1;

  height: 1px;

  background: #d1d5db;
}

.category-title h3 {
  margin: 0;

  color: #9ca3af;

  font-size: 30px;
  font-weight: 300;

  text-transform: uppercase;
}

/* ==================================================
   GRID LIBROS
================================================== */

.books-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 40px;

  margin-bottom: 80px;
}

/* ==================================================
   TARJETA LIBRO
================================================== */

.book-card {
  display: flex;
  flex-direction: column;

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

  text-align: center;
}

.book-card img {
  display: block;

  width: 100%;
  max-width: 220px;

  transition: transform 0.3s ease;
}

.book-card:hover img {
  transform: translateY(-4px);
}

.book-card a {
  display: inline-block;
  color: var(--cceea-text);
  margin-top: 20px;

  padding: 10px 24px;

  background: white;

  border: 1px solid #bdbdbd;
  border-radius: 999px;

  transition: all 0.25s ease;
}

.book-card a:hover {
  border-color: var(--cceea-blue);
  color: var(--cceea-blue);
}

/* ==================================================
   GRID EBOOKS
================================================== */

.ebooks-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 40px;

  margin-bottom: 80px;
}

/* ==================================================
   TARJETA EBOOK
================================================== */

.ebook-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ebook-card img {
  display: block;

  width: 100%;
  max-width: 220px;

  transition: transform 0.3s ease;
}

.ebook-card:hover img {
  transform: translateY(-4px);
}

.ebooks-action {
  display: flex;
  justify-content: center;

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

.ebooks-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 32px;

  background: white;
  color: var(--cceea-text);

  border: 1px solid #bdbdbd;

  border-radius: 999px;

  text-decoration: none;

  transition: all 0.25s ease;
}

.ebooks-btn:hover {
  border-color: var(--cceea-blue);
  color: var(--cceea-blue);
}

/* ==================================================
   GRID HERRAMIENTAS
================================================== */

.tools-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 30px;
}

/* ==================================================
   TARJETA HERRAMIENTA
================================================== */

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tool-card img {
  width: 120px;
  height: 120px;

  object-fit: contain;

  opacity: 0.7;

  transition: all 0.3s ease;
}

.tool-card:hover img {
  opacity: 1;

  transform: translateY(-4px);
}

.tool-card a {
  margin-top: 15px;

  padding: 10px 20px;

  background: #a3a3a3;

  color: white;

  border: none;
  border-radius: 999px;

  transition: all 0.25s ease;
}

.tool-card a:hover {
  background: var(--cceea-blue);
}

/* ==================================================
   TABLETS
================================================== */

@media (max-width: 992px) {
  .books-grid,
  .ebooks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .resources-title {
    font-size: 34px;
  }

  .category-title h3 {
    font-size: 24px;
  }
}

/* ==================================================
   MOVILES
================================================== */

@media (max-width: 576px) {
  .dashboard-resources {
    margin: 50px 24px;
    padding: 30px 20px;
  }

  .resources-title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .category-title {
    gap: 15px;
    margin-bottom: 30px;
  }

  .category-title h3 {
    font-size: 20px;
  }

  .books-grid,
  .ebooks-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .book-card img,
  .ebook-card img {
    max-width: 180px;
  }

  .tool-card img {
    width: 100px;
    height: 100px;
  }
}

.cert-payment-card {
  border: none;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.cert-payment-header {
  background: linear-gradient(
    135deg,
    var(--cceea-blue),
    var(--cceea-blue-dark)
  );
  color: white;
  padding: 26px 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cert-payment-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 6px;
}

.cert-payment-header h3 {
  color: white;
  margin: 0;
  font-size: 26px;
  font-weight: 800;
}

.cert-modal-close {
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.cert-payment-body {
  padding: 28px 30px;
  background: #f8fafc;
}

.cert-summary {
  display: flex;
  gap: 16px;
  background: white;
  border: 1px solid #e8eef2;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 24px;
}

.cert-summary-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(1, 141, 154, 0.12);
  color: var(--cceea-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.cert-summary strong {
  display: block;
  color: var(--cceea-text);
  font-size: 17px;
  margin-bottom: 4px;
}

.cert-summary p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.cert-section {
  margin-bottom: 22px;
}

.cert-section-title {
  display: block;
  color: var(--cceea-text);
  font-weight: 700;
  margin-bottom: 12px;
}

.cert-payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.cert-payment-option {
  margin: 0;
  cursor: pointer;
}

.cert-payment-option input {
  display: none;
}

.cert-payment-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 12px;
  color: #475569;
  font-weight: 700;
  transition: 0.2s ease;
}

.cert-payment-option.active span,
.cert-payment-option input:checked + span {
  border-color: var(--cceea-blue);
  color: var(--cceea-blue);
  background: rgba(1, 141, 154, 0.08);
}

.cert-pay-panel {
  background: white;
  border: 1px solid #e8eef2;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 18px;
}

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

.cert-field-full {
  grid-column: 1 / -1;
}

.cert-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--cceea-text);
  margin-bottom: 7px;
}

.cert-field .form-control {
  height: 46px;
  border-radius: 12px;
  border: 1px solid #dbe5ea;
  box-shadow: none;
}

.cert-field .form-control:focus {
  border-color: var(--cceea-blue);
  box-shadow: 0 0 0 3px rgba(1, 141, 154, 0.12);
}

.cert-error {
  display: none;
  color: #dc2626;
  font-size: 12px;
  margin-top: 6px;
}

.cert-field.has-error .cert-error {
  display: block;
}

.cert-field.has-error .form-control {
  border-color: #dc2626;
}

.cert-info-box {
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 14px;
  padding: 14px 16px;
  line-height: 1.5;
}

.cert-checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--cceea-text);
  font-weight: 600;
  margin-bottom: 12px;
}

.cert-alert {
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 16px;
  font-weight: 600;
}

.cert-alert-error {
  background: #fef2f2;
  color: #991b1b;
}

.cert-alert-success {
  background: #ecfdf5;
  color: #065f46;
}

.cert-payment-footer {
  padding: 18px 30px;
  background: white;
  border-top: 1px solid #edf2f7;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.cert-btn {
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 800;
  cursor: pointer;
}

.cert-btn-light {
  background: #f1f5f9;
  color: #334155;
}

.cert-btn-primary {
  background: var(--cceea-blue);
  color: white;
}

.cert-btn-primary:hover {
  background: var(--cceea-blue-dark);
}

.cert-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .cert-payment-header,
  .cert-payment-body,
  .cert-payment-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cert-payment-methods {
    grid-template-columns: 1fr;
  }

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

.cert-result {
  min-height: 80vh;
  padding: 80px 20px;
  background: #f7fbfb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-result-card {
  width: 100%;
  max-width: 760px;
  background: white;
  border-radius: 28px;
  padding: 42px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
  border: 1px solid #e8f1f2;
}

.cert-result-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 38px;
}

.cert-result-icon.success {
  background: linear-gradient(135deg, #018d9a, #006d77);
}

.cert-result-icon.fail {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.cert-result-card h1 {
  color: #18484d;
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cert-result-card p {
  color: #64748b;
  font-size: 16px;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 24px;
}

.cert-score {
  margin: 30px auto;
  padding: 26px;
  max-width: 360px;
  border-radius: 22px;
  background: #f8fcfc;
  border: 1px solid #dceeee;
}

.cert-score span {
  display: block;
  color: #016c76;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cert-score strong {
  display: block;
  color: #018d9a;
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
}

.cert-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 26px 0;
}

.cert-details div {
  background: #f8fafc;
  border: 1px solid #e6eef0;
  border-radius: 16px;
  padding: 16px;
}

.cert-details span {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 5px;
}

.cert-details strong {
  color: #18484d;
  font-size: 16px;
  font-weight: 800;
}

.cert-alert {
  margin: 24px auto;
  padding: 16px 18px;
  border-radius: 16px;
  max-width: 560px;
  font-weight: 700;
  line-height: 1.5;
}

.cert-alert.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #bbf7d0;
}

.cert-alert.warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.cert-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.cert-actions a,
.cert-actions button {
  border: none;
  border-radius: 14px;
  padding: 13px 22px;
  font-weight: 800;
  text-decoration: none;
  transition: 0.2s ease;
}

.cert-actions .btn-primary {
  background: #018d9a;
  color: white;
}

.cert-actions .btn-primary:hover {
  background: #006d77;
  color: white;
  text-decoration: none;
}

.cert-actions .btn-secondary {
  background: #f1f5f9;
  color: #18484d;
}

.cert-actions .btn-secondary:hover {
  background: #e2e8f0;
  color: #18484d;
  text-decoration: none;
}
.cert-product-price {
  display: block;
  font-size: 22px;
  font-weight: 900;
  margin-top: 6px;
}

@media (max-width: 768px) {
  .cert-result {
    padding: 50px 16px;
  }

  .cert-result-card {
    padding: 30px 22px;
    border-radius: 22px;
  }

  .cert-result-card h1 {
    font-size: 27px;
  }

  .cert-score strong {
    font-size: 42px;
  }

  .cert-details {
    grid-template-columns: 1fr;
  }
}

.cert-terms-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 0;
  border: none;
  background: transparent;
  color: #016c76;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.cert-terms-link:hover {
  color: #018d9a;
}

.cert-terms-modal {
  border: none;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.cert-terms-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 26px 30px;
  background: #155a94;
  color: white;
}

.cert-terms-label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.cert-terms-header h3 {
  margin: 0;
  color: white;
  font-size: 26px;
  font-weight: 800;
}

.cert-terms-body hr {
  margin: 30px 0;
  border: 0;
  border-top: 1px solid #e8eef2;
}

.cert-terms-list {
  margin: 15px 0 0;
  padding-left: 22px;
}

.cert-terms-list li {
  margin-bottom: 12px;
  line-height: 1.7;
  color: #475569;
}

.cert-terms-body strong {
  color: #18484d;
}

.cert-terms-body h4 {
  color: #016c76;
}
.cert-terms-close {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.cert-terms-body {
  max-height: 65vh;
  padding: 28px 32px;
  overflow-y: auto;
  background: #ffffff;
  color: #475569;
  line-height: 1.75;
}

.cert-terms-body h4 {
  margin-top: 24px;
  margin-bottom: 8px;
  color: #18484d;
  font-size: 18px;
  font-weight: 800;
}

.cert-terms-body h4:first-child {
  margin-top: 0;
}

.cert-terms-body p {
  margin-bottom: 14px;
  font-size: 15px;
}

.cert-terms-footer {
  display: flex;
  justify-content: flex-end;
  padding: 18px 30px;
  border-top: 1px solid #e8eef0;
  background: #f8fafc;
}

@media (max-width: 768px) {
  .cert-terms-header,
  .cert-terms-body,
  .cert-terms-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cert-terms-header h3 {
    font-size: 22px;
  }
}
