/* Frog IoT Server - Theme Styling */
:root {
  --frog-green: #22c55e;
  --frog-green-light: #4ade80;
  --frog-green-dark: #15803d;
  --frog-glow: rgba(34, 197, 94, 0.4);
  --bg-dark: #090d16;
  --bg-card: #111827;
  --bg-card-hover: #162032;
  --border-color: rgba(34, 197, 94, 0.22);
  --border-bright: rgba(74, 222, 128, 0.55);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(34, 197, 94, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(16, 185, 129, 0.07) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Navbar */
.navbar-frog {
  background: rgba(9, 13, 22, 0.92) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: all 0.3s ease;
}

/* Logo bo tròn & xóa nền */
.navbar-brand-logo {
  height: 48px;
  width: 48px;
  object-fit: cover;
  border-radius: 50%;
  background: transparent;
  filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.6));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-brand:hover .navbar-brand-logo {
  transform: rotate(-8deg) scale(1.15);
}

.brand-text {
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 25%, #4ade80 80%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-link {
  color: #cbd5e1 !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--frog-green-light) !important;
  background: rgba(34, 197, 94, 0.12);
}

/* Custom Buttons */
.btn-frog-primary {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  color: #ffffff;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 14px var(--frog-glow);
  transition: all 0.25s ease;
}

.btn-frog-primary:hover {
  background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(74, 222, 128, 0.55);
}

.btn-frog-outline {
  border: 1px solid var(--frog-green-light);
  color: var(--frog-green-light);
  font-weight: 600;
  background: transparent;
  transition: all 0.25s ease;
}

.btn-frog-outline:hover {
  background: var(--frog-green);
  color: #ffffff;
  box-shadow: 0 0 16px var(--frog-glow);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.1rem;
  border-radius: 50px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid var(--frog-green-light);
  color: var(--frog-green-light);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.25);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 650px;
}

.hero-logo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero Logo bo tròn & xóa nền */
.hero-logo-img {
  max-width: 270px;
  width: 100%;
  border-radius: 50%;
  background: transparent;
  filter: drop-shadow(0 12px 35px rgba(34, 197, 94, 0.5));
  animation: floatFrog 4.5s ease-in-out infinite;
}

@keyframes floatFrog {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Category Cards */
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: var(--frog-green-light);
  box-shadow: 0 14px 35px rgba(34, 197, 94, 0.25);
}

.category-img-container {
  height: 230px;
  position: relative;
  overflow: hidden;
  background: #0d131f;
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.category-card:hover .category-img {
  transform: scale(1.07);
}

.category-badge-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(9, 13, 22, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-bright);
  color: var(--frog-green-light);
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.category-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.category-tagline {
  color: var(--frog-green-light);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.category-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.category-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.category-link-text {
  color: var(--frog-green-light);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}

.category-card:hover .category-link-text {
  gap: 0.75rem;
}

/* Project Cards */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--frog-green-light);
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.18);
}

.project-thumb {
  height: 200px;
  width: 100%;
  object-fit: cover;
  background: #0f172a;
}

.project-thumb-placeholder {
  height: 200px;
  width: 100%;
  background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--frog-green-light);
  font-size: 3rem;
  border-bottom: 1px solid var(--border-color);
}

.tech-tag {
  background: rgba(34, 197, 94, 0.12);
  color: var(--frog-green-light);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid rgba(34, 197, 94, 0.25);
  display: inline-block;
}

/* Project Card Uniform Elements */
.project-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
  max-height: 2.8em;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.project-card-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 4.5em;
  max-height: 4.5em;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

/* Category Hero Banner */
.cat-hero-banner {
  background: linear-gradient(135deg, #111827 0%, #0d131f 100%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.cat-frog-hero-img {
  max-height: 240px;
  width: auto;
  border-radius: 18px;
  border: 2px solid var(--border-bright);
  box-shadow: 0 8px 30px var(--frog-glow);
  object-fit: contain;
}

/* Status Badges */
.status-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}
.status-done {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.4);
}
.status-dev {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.4);
}
.status-test {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.4);
}

/* Detail Box */
.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
}

/* ==================================================== */
/* 3D PCB VIEWER - LÀM TO & CẢ TOP VÀ BOTTOM */
/* ==================================================== */
.pcb-3d-wrapper-large {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(circle at center, #111827 0%, #050811 100%);
  border: 2px solid var(--border-bright);
  box-shadow: 0 0 35px rgba(34, 197, 94, 0.22);
}

.pcb-model-viewer {
  width: 100%;
  height: 100%;
  outline: none;
  background-color: transparent;
}

.pcb-3d-controls-floating {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(9, 13, 22, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 0.6rem 1.2rem;
  border-radius: 40px;
  border: 1px solid var(--border-bright);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  max-width: 95%;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.pcb-badge-hint-large {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(9, 13, 22, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-bright);
  color: var(--frog-green-light);
  padding: 0.45rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 20;
}

/* Tab Navigation for PCB View Modes */
.pcb-tab-btn {
  background: #111827;
  border: 1px solid var(--border-color);
  color: #cbd5e1;
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pcb-tab-btn.active, .pcb-tab-btn:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--frog-green-light);
  color: var(--frog-green-light);
}

/* Schematic Viewer Container */
.schematic-viewer-box {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
}

.schematic-img-zoomable {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

/* 2D Layout Top / Bottom View Frame */
.layout-preview-frame {
  background: #0d131f;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  padding: 1.5rem;
  text-align: center;
}

.layout-preview-img {
  max-width: 100%;
  max-height: 520px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ==================================================== */
/* MODERN PROJECT CONTENT NAVIGATION TABS */
/* ==================================================== */
.custom-project-nav {
  background: rgba(13, 19, 33, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(74, 222, 128, 0.22);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.custom-project-nav .nav-link {
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 1.15rem;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: transparent;
}

.custom-project-nav .nav-link:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.custom-project-nav .nav-link.active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.22) 0%, rgba(21, 128, 61, 0.4) 100%);
  color: #ffffff !important;
  border-color: rgba(74, 222, 128, 0.65);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.35);
}

/* Quick Jump Buttons in Sidebar */
.quick-view-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: #cbd5e1;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
}

.quick-view-btn:hover {
  background: rgba(34, 197, 94, 0.16);
  border-color: var(--frog-green-light);
  color: #ffffff;
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.15);
}

/* Mermaid Workflow Box & Zoom Controls */
.diagram-box {
  background: #090e18;
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: auto;
  max-height: 750px;
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.6);
}

/* Thanh cuộn chuyên dụng cho diagram box */
.diagram-box::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
.diagram-box::-webkit-scrollbar-track {
  background: #0c1222;
  border-radius: 4px;
}
.diagram-box::-webkit-scrollbar-thumb {
  background: rgba(74, 222, 128, 0.4);
  border-radius: 4px;
}
.diagram-box::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 222, 128, 0.7);
}

.diagram-viewport {
  width: 100%;
  text-align: center;
  overflow: auto;
  padding: 10px 0;
}

.diagram-wrapper {
  display: inline-block;
  transform-origin: top center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px;
  max-width: 100%;
}

.diagram-wrapper .mermaid,
.diagram-wrapper .mermaid-canvas {
  display: inline-block;
  text-align: center;
  width: 100%;
}

.diagram-wrapper .mermaid svg,
.diagram-wrapper .mermaid-canvas svg {
  max-width: 100% !important;
  height: auto !important;
  font-size: 14.5px !important;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.4));
  transition: max-width 0.25s ease;
}

.diagram-wrapper.zoomed .mermaid svg,
.diagram-wrapper.zoomed .mermaid-canvas svg {
  max-width: none !important;
}

.diagram-wrapper .mermaid .node text,
.diagram-wrapper .mermaid .label text,
.diagram-wrapper .mermaid text,
.diagram-wrapper .mermaid-canvas text {
  font-size: 14px !important;
  font-weight: 500 !important;
  font-family: 'JetBrains Mono', 'Inter', monospace, sans-serif !important;
}

.diagram-wrapper .mermaid .cluster-label span,
.diagram-wrapper .mermaid .cluster-label text,
.diagram-wrapper .mermaid-canvas .cluster-label span,
.diagram-wrapper .mermaid-canvas .cluster-label text {
  font-size: 15px !important;
  font-weight: 700 !important;
}

/* Swiper Carousel Styling - 1 Hàng Lướt Ngang Tự Động 5s */
.projectSwiper {
  width: 100%;
  padding-bottom: 45px !important;
  overflow: hidden;
}

.projectSwiper .swiper-slide {
  height: auto;
  display: flex;
}

.projectSwiper .swiper-slide .project-card {
  width: 100%;
}

.swiper-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #111827;
  border: 1px solid var(--border-color);
  color: var(--frog-green-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.swiper-nav-btn:hover {
  background: var(--frog-green);
  color: #ffffff;
  border-color: var(--frog-green-light);
  box-shadow: 0 0 16px var(--frog-glow);
  transform: scale(1.1);
}

.projectSwiper .swiper-pagination {
  bottom: 0 !important;
}

.projectSwiper .swiper-pagination-bullet {
  background: #4b5563;
  opacity: 0.5;
  width: 10px;
  height: 10px;
  margin: 0 5px !important;
  transition: all 0.35s ease;
  border-radius: 10px;
}

.projectSwiper .swiper-pagination-bullet-active {
  background: var(--frog-green-light) !important;
  width: 32px !important;
  opacity: 1;
  box-shadow: 0 0 12px var(--frog-glow);
}

/* Footer */
/* ======================================================== */
/* Footer Phong Cách Hệ Sinh Thái AnhNhat Smart Ecosystem Portal */
/* ======================================================== */
.portal-footer {
  padding: 70px 20px 45px;
  background: #080808;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  margin-top: auto;
  width: 100%;
  display: block;
}

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.social-link {
  color: var(--frog-green-light, #22c55e) !important;
  font-size: 36px !important;
  line-height: 1;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.55));
  cursor: pointer;
}

.social-link i {
  color: inherit !important;
  font-size: inherit !important;
}

.social-link:hover {
  color: #86efac !important;
  transform: translateY(-8px) scale(1.18);
  filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.95));
}

.footer-copy {
  font-size: 13px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
  margin: 0;
  text-align: center;
}

@media (max-width: 576px) {
  .portal-footer {
    padding: 50px 15px 35px;
  }
  .footer-socials {
    gap: 22px;
    margin-bottom: 20px;
  }
  .social-link {
    font-size: 30px !important;
  }
  .footer-copy {
    font-size: 11px;
    letter-spacing: 1.5px;
  }
}

.hover-green {
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.hover-green:hover {
  color: var(--frog-green-light) !important;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.45);
}

/* ======================================================== */
/* Hiệu Ứng Cuộn Tới Đâu Hiện Tới Đó (Scroll Reveal)        */
/* ======================================================== */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

.reveal.reveal-right {
  opacity: 0;
  transform: translateX(40px);
}

.reveal.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
}

.reveal.visible {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* Các lớp delay bổ sung */
.delay-100 { transition-delay: 100ms !important; }
.delay-200 { transition-delay: 200ms !important; }
.delay-300 { transition-delay: 300ms !important; }
.delay-400 { transition-delay: 400ms !important; }
.delay-500 { transition-delay: 500ms !important; }

/* Tôn trọng cài đặt giảm chuyển động của người dùng */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.reveal-left,
  .reveal.reveal-right,
  .reveal.reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ========================================================
   ROLE BADGE & POPUP MODAL (KHÁCH / ADMIN / THÀNH VIÊN)
   ======================================================== */
.role-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
  border: 1px solid transparent;
  background: transparent;
  line-height: 1.25;
}

.role-btn:hover {
  transform: translateY(-1px);
}

.role-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.pulse-dot {
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Khách */
.role-guest {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
}

.role-guest:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: var(--frog-green-light);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.role-badge-action {
  font-size: 0.75rem;
  background: rgba(34, 197, 94, 0.15);
  color: var(--frog-green-light);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 2px;
}

/* Admin */
.role-admin {
  background: rgba(22, 101, 52, 0.15);
  border-color: rgba(234, 179, 8, 0.4);
  color: #fef08a;
}

.role-admin:hover {
  background: rgba(22, 101, 52, 0.25);
  border-color: #eab308;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.25);
}

/* Thành viên */
.role-user {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.role-user:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: var(--frog-green-light);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.25);
}

.role-gear {
  color: #94a3b8;
  transition: transform 0.3s ease, color 0.3s ease;
  font-size: 0.75rem;
  margin-left: 2px;
}

.role-btn:hover .role-gear {
  transform: rotate(60deg);
  color: var(--frog-green-light);
}

/* Modal Popup Tùy Chọn Tài Khoản */
.cyber-modal-content {
  background: rgba(13, 19, 31, 0.95) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(34, 197, 94, 0.15) !important;
  overflow: hidden;
}

.user-modal-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
  background: #0f172a;
  border: 2px solid var(--frog-green);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.user-modal-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.status-indicator-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background-color: #22c55e;
  border: 2px solid #0f172a;
  border-radius: 50%;
}

.hover-border-green:hover {
  border-color: var(--frog-green) !important;
  background: rgba(34, 197, 94, 0.08) !important;
}

/* ==========================================================================
   GITHUB DARK FLAVORED MARKDOWN STYLING (.markdown-body)
   ========================================================================== */
.github-readme-card {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.github-readme-header {
  background: #161b22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.markdown-body {
  color: #e6edf3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  word-wrap: break-word;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  color: #ffffff;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 16px;
  line-height: 1.35;
}

.markdown-body h1 {
  font-size: 1.95rem;
  padding-bottom: 0.35em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.markdown-body h2 {
  font-size: 1.45rem;
  padding-bottom: 0.3em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.markdown-body h3 {
  font-size: 1.25rem;
}

.markdown-body h4 {
  font-size: 1.05rem;
}

.markdown-body p {
  margin-top: 0;
  margin-bottom: 16px;
  color: #cbd5e1;
}

.markdown-body a {
  color: #10b981;
  text-decoration: none;
  transition: color 0.2s;
}

.markdown-body a:hover {
  color: #34d399;
  text-decoration: underline;
}

.markdown-body strong {
  color: #ffffff;
  font-weight: 700;
}

.markdown-body hr {
  height: 1px;
  padding: 0;
  margin: 28px 0;
  background-color: rgba(255, 255, 255, 0.15);
  border: 0;
}

.markdown-body blockquote {
  padding: 12px 18px;
  color: #94a3b8;
  background: rgba(16, 185, 129, 0.05);
  border-left: 4px solid #10b981;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
}

.markdown-body blockquote p:last-child {
  margin-bottom: 0;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 2em;
  margin-top: 0;
  margin-bottom: 16px;
  color: #cbd5e1;
}

.markdown-body li {
  margin-top: 0.3em;
}

.markdown-body li > p {
  margin-top: 0.3em;
  margin-bottom: 0.3em;
}

.markdown-body .code-block-wrapper {
  position: relative;
  margin-top: 18px;
  margin-bottom: 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background: #090d16;
}

.markdown-body .code-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  background: #131926;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #8b949e;
}

.markdown-body .code-copy-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.markdown-body .code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #10b981;
  border-color: #10b981;
}

.markdown-body pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  background: transparent !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.55;
}

.markdown-body code {
  font-family: 'JetBrains Mono', monospace;
}

.markdown-body :not(pre) > code {
  padding: 0.2em 0.45em;
  margin: 0;
  font-size: 85%;
  background-color: rgba(110, 118, 129, 0.4);
  border-radius: 6px;
  color: #5eead4;
}

.markdown-body .table-responsive-wrapper {
  overflow-x: auto;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.markdown-body table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.markdown-body th {
  background: #161f30;
  color: #ffffff;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.18);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.markdown-body td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.markdown-body tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.markdown-body tr:hover td {
  background: rgba(16, 185, 129, 0.06);
}

.markdown-body img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  margin: 12px 0;
}


