:root {
  /* Palette Tokens */
  --bg-main: #ffffff;
  --bg-alt: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-main-rgb: 15, 23, 42;
  --text-muted: #64748b;
  --border-main: #e2e8f0;
  --shadow-main: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);

  --accent: #8b5cf6;
  --accent-rgb: 139, 92, 246;
  --accent-purple: #8b5cf6;
  --accent-secondary: #d4ff00;
  --accent-secondary-rgb: 212, 255, 0;

  --header-bg: #ffffff;
  /* Pure white in light mode as requested */
  --header-border: rgba(15, 23, 42, 0.08);

  --btn-primary-bg: var(--accent);
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: var(--accent-secondary);
  --btn-secondary-text: #000000;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-main: #020617;
  --bg-alt: #0f172a;
  --card-bg: #1e293b;
  --text-main: #f8fafc;
  --text-main-rgb: 248, 250, 252;
  --text-muted: #94a3b8;
  --border-main: #475569;
  --shadow-main: 0 10px 15px -3px rgba(0, 0, 0, 0.5),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);

  --header-bg: rgba(2, 6, 23, 0.8);
  --header-border: rgba(248, 250, 252, 0.1);

  --btn-primary-bg: var(--accent);
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: var(--accent-secondary);
  --btn-secondary-text: #000000;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.4;
  margin: 0;
  padding-top: 98px; /* 38px announcement + 60px header */
  /* Remove html/body specific scroll override that breaks Safari mobile nav */
  min-height: 100vh;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

main,
.content-wrapper,
.req-container,
.bulletin-container,
.coming-soon-container,
.accounts-container,
.notes-container {
  flex: 1 0 auto;
  width: 100%;
  min-width: 0; /* CRITICAL for flex children to allow downscaling */
}

/* ══ CONTAINER ════════════════════════════════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══ HEADER ══════════════════════════════════════════ */
header {
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-main);
  position: fixed;
  top: 38px;
  left: 0;
  right: 0;
  z-index: 1000;
  color: var(--text-main);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: var(--transition);
  margin: 0;
}

[data-theme="dark"] header {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Header visible on home page */
body.is-home {
  padding-top: 98px;
  /* Announcement + Header */
}

.header-inner {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.burger-menu {
  font-size: 24px;
  cursor: pointer;
  display: none;
  align-items: center;
  color: var(--text-main);
  background: none;
  border: none;
  padding: 8px;
}

.vtu-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  margin-right: 12px;
}

.vtu-logo .vtu-txt {
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -1px;
  color: var(--accent-purple);
  display: inline-block;
}

.mobile-logo-cursive {
  display: none;
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
  mix-blend-mode: multiply;
  /* Removes white background in light mode */
}

.vtu-logo .sync-txt {
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

.nav-item {
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
}

.nav-item::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0px;
  left: 16px;
  right: 16px;
  background: var(--accent);
  transition: width 0.3s ease;
  transform: translateX(-50%);
  left: 50%;
}

.nav-item:hover {
  background: rgba(var(--accent-rgb), 0.05);
  color: var(--accent);
  transform: translateY(-2px) scale(1.08);
}

.nav-item:hover::after {
  width: calc(100% - 32px);
}

.nav-item.active {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}

.nav-item .arrow {
  font-size: 9px;
  opacity: 0.5;
  transition: transform 0.2s ease;
}

.nav-item:hover .arrow {
  transform: translateY(1px);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
  flex: 1;
}

.search-trigger {
  font-size: 18px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  color: var(--text-main);
}

.notif-btn {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 20px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: var(--transition);
}

.notif-btn:hover {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}

.search-trigger:hover {
  opacity: 1;
}

/* Toggle Switch Style */
.switch {
  font-size: 11px;
  position: relative;
  display: inline-block;
  width: 4em;
  height: 2.2em;
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2a2a2a;
  transition: 0.4s;
  border-radius: 30px;
  overflow: hidden;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.2em;
  width: 1.2em;
  border-radius: 20px;
  left: 0.5em;
  bottom: 0.5em;
  transition: 0.4s;
  transition-timing-function: cubic-bezier(0.81, -0.04, 0.38, 1.5);
  box-shadow: inset 8px -4px 0px 0px #fff;
}

.switch input:checked + .slider {
  background-color: #00a6ff;
}

.switch input:checked + .slider:before {
  transform: translateX(1.8em);
  box-shadow: inset 15px -4px 0px 15px #ffcf48;
}

.star {
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  width: 4px;
  transition: all 0.4s;
  height: 4px;
}

.star_1 {
  left: 2.5em;
  top: 0.5em;
}

.star_2 {
  left: 2.2em;
  top: 1.2em;
}

.star_3 {
  left: 3em;
  top: 0.9em;
}

.switch input:checked ~ .slider .star {
  opacity: 0;
}

.cloud {
  width: 3.5em;
  position: absolute;
  bottom: -1.4em;
  left: -1.1em;
  opacity: 0;
  transition: all 0.4s;
}

.switch input:checked ~ .slider .cloud {
  opacity: 1;
}

.btn-join {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 0;
  border-radius: 40px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
  height: 32px;
}

.btn-join span {
  padding: 0 12px;
  display: flex;
  align-items: center;
  height: 100%;
}

.btn-join .icon-box {
  background: var(--accent-secondary);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 14px;
}

.btn-join:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* ══ ANNOUNCEMENT BAR ══════════════════════════ */
.announcement-bar {
  width: 100%;
  background: linear-gradient(90deg, #5f2eea, #8e44ff);
  color: white;
  height: 38px;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 38px;
  overflow: hidden;
  margin: 0;
}

.announcement-bar span {
  display: flex;
  align-items: center;
}

.bulletin-container {
  display: flex;
  gap: 60px;
  padding: 0 48px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.bulletin-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.badge {
  background: #c6ff00;
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  margin: 0 8px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.bulletin-badge .dot {
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
  animation: pulse-dark 1s infinite;
}

@keyframes pulse-dark {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }

  100% {
    opacity: 1;
  }
}

.bulletin-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  font-weight: 500;
  font-size: 13px;
}

.hero {
  position: relative;
  height: 400px;
  background-image: url("../assets/hero.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px;
  margin-bottom: 48px;
}

.btn-signup {
  background: var(--accent);
  color: #fff;
  padding: 0;
  border-radius: 40px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  height: 48px;
}

.btn-signup span {
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 100%;
}

.btn-signup .icon-box {
  background: var(--accent-secondary);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 18px;
}

.btn-signup:hover {
  transform: translateY(-2px);
  filter: none;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.hero-card h1 {
  font-size: 32px;
  line-height: 1.2;
}

.hero-card p {
  font-size: 16px;
}

.glow-text {
  color: var(--accent);
  font-weight: 700;
  transition: var(--transition);
}

/* ══ MAIN CONTENT ═════════════════════════════════════ */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 24px;
  margin-bottom: 8px;
  text-align: center;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-align: center;
}

/* ══ TABS ═════════════════════════════════════════════ */
.tabs-container {
  display: flex;
  gap: 24px;
  margin-bottom: 4px;
  justify-content: center;
}

.tab {
  padding: 8px 0;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tab.active {
  color: var(--accent);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

@media (max-width: 1200px) {
  .course-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .course-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.course-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-main);
  background-color: var(--card-bg);
  border: 1px solid var(--border-main);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-main);
}

.course-card:hover .course-image {
  opacity: 0.9;
}

.course-image {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #ffffff;
  /* Consistent white-box for all logos */
  border: 1px solid var(--border-main);
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

[data-theme="dark"] .course-image {
  background-color: #ffffff;
  /* Pure white even in dark mode to match the other logo boxes as requested */
  border-color: rgba(255, 255, 255, 0.2);
}

.course-card:hover .course-image {
  transform: scale(0.98);
  border-color: var(--accent);
}

.course-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 2px;
  text-align: center;
  /* Standardize centering */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  line-height: 1.3;
}

.course-description {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  line-height: 1.3;
}

.course-tag {
  display: inline-block;
  background-color: var(--bg-alt);
  color: var(--text-main);
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  margin: 8px auto 0;
  /* Center horizontally */
  width: fit-content;
  border-radius: 4px;
  border: 1px solid var(--border-main);
}

section {
  margin-top: 60px;
  padding-bottom: 40px;
}

@media (max-width: 768px) {
  section {
    margin-top: 40px;
    padding-bottom: 30px;
  }
}

/* ══ FOOTER ═══════════════════════════════════════════ */
footer {
  background-color: var(--bg-main);
  color: var(--text-main);
  padding: 40px 0 20px 0;
  margin-top: 40px;
  border-top: 1px solid var(--border-main);
  transition: var(--transition);
  position: relative;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-cta {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-main);
}

.footer-cta h2 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 2px;
  color: var(--text-main);
}

.footer-cta p {
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 8px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-column-title {
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 2px;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  transition: var(--transition);
  opacity: 0.7;
}

.footer-link:hover {
  color: var(--accent);
  opacity: 1;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.contact-icon {
  width: 24px;
  height: 24px;
  background: var(--bg-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-main);
  color: var(--accent);
  font-size: 9px;
  flex-shrink: 0;
}

.contact-text {
  font-size: 10px;
  color: var(--text-main);
  line-height: 1.2;
}

.footer-bottom {
  border-top: 1px solid var(--border-main);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-legal-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
}

.copyright {
  font-size: 11px;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-cta h2 {
    font-size: 32px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

.footer-logo {
  font-weight: 700;
  font-size: 24px;
}

.copyright {
  font-size: 12px;
}

/* ══ TOOL CARDS ═══════════════════════════════════════ */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.tool-card {
  position: relative;
  min-height: 240px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border: 1px solid var(--header-border);
  transition: var(--transition);
  background-size: cover;
  background-position: center;
}

.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 1;
  transition: var(--transition);
}

.tool-card:hover::before {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-main);
}

.tool-card > * {
  position: relative;
  z-index: 2;
}

[data-theme="dark"] .tool-card::before {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.tool-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.tool-badge {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 2px 8px;
  font-size: 11px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tool-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.9);
}

/* Notes Section Styles */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.note-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--header-border);
  transition: var(--transition);
  box-shadow: var(--shadow-main);
  display: flex;
  flex-direction: column;
}

.note-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-main);
}

.note-header {
  height: 120px;
  background-color: var(--text-main);
  background-image: radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 70%
    ),
    radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--bg-main);
}

.note-header h4 {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.note-read-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--bg-main);
  color: var(--text-main);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}

.note-watermark {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 10px;
  opacity: 0.4;
  font-weight: 600;
}

.note-body {
  padding: 12px;
  flex-grow: 1;
}

.note-badge {
  background: var(--accent);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.note-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-main);
}

.note-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--header-border);
  padding-top: 10px;
  font-weight: 600;
}

.note-stats-group {
  display: flex;
  gap: 10px;
}

.note-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.note-stat i {
  font-size: 11px;
}

.note-stat.heart i {
  color: #ef4444;
}

@media (max-width: 1024px) {
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tool-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .tool-title {
    font-size: 28px;
  }

  .tool-card {
    padding: 32px;
    height: 400px;
  }
}

/* Premier Tracks Styles */
.track-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.track-card {
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--header-border);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.track-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-main);
}

.track-img-container {
  padding: 6px;
}

.track-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 4px;
  object-fit: cover;
  display: block;
}

.track-info {
  padding: 0 10px 12px 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.track-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.track-instructor {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: auto;
}

@media (max-width: 1200px) {
  .track-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .track-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .track-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Trusted By Marquee Animation */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
  margin-bottom: 24px;
  position: relative;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Floating Animation for Hero Card */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.hero-card {
  animation: float 6s ease-in-out infinite;
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-alt), transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-alt), transparent);
}

.marquee-content {
  display: inline-flex;
  animation: marquee 30s linear infinite;
  gap: 40px;
  align-items: center;
}

.marquee-item {
  font-size: 15px;
  font-weight: 900;
  /* Max weight for better visibility */
  color: var(--text-main) !important;
  opacity: 1 !important;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

[data-theme="dark"] .marquee-item {
  color: var(--text-main) !important;
}

.marquee-item:hover {
  opacity: 1;
  color: var(--accent);
  transform: scale(1.05);
}

.marquee-item i {
  font-size: 18px;
}

.dev-status-badge {
  display: inline-block;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  animation: pulse-glow 2s infinite;
}

.feature-highlight {
  border: 1px solid var(--border-main);
  padding: 32px;
  margin-bottom: 48px;
  transition: border-color 0.3s ease;
}

@media (max-width: 768px) {
  .feature-highlight {
    padding: 24px 16px;
    border-radius: 12px;
  }
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .section-header-flex {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
  }
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
  }
}

/* ══ RESPONSIVENESS UPDATES ══════════════════════════ */

@media (max-width: 1024px) {
  header {
    height: 56px;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    top: 38px;
    /* Match fixed announcement bar */
  }

  .header-left {
    gap: 12px;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 94px;
    /* 38px announcement bar + 56px header */
    left: 0;
    width: 100%;
    height: calc(100vh - 94px);
    background: var(--bg-main);
    flex-direction: column;
    padding: 24px 16px;
    gap: 12px;
    z-index: 2000;
    overflow-y: auto;
    border-top: 1px solid var(--border-main);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  }

  .nav-menu.active {
    display: flex;
    animation: slideInDown 0.3s ease-out;
  }

  @keyframes slideInDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-item {
    width: 100%;
    font-size: 18px;
    padding: 16px 20px;
    background: var(--bg-alt);
    border-radius: 12px;
    border: 1px solid var(--border-main);
  }

  .burger-menu {
    display: flex;
    font-size: 28px;
  }

  .header-right {
    gap: 8px;
  }

  .header-right .btn-join {
    display: flex;
    /* Ensure community box is visible on mobile too */
  }

  .header-right .btn-join span {
    display: none;
    /* Hide text, only show icon on mobile */
  }

  .vtu-logo .vtu-txt {
    font-size: 18px;
  }

  .mobile-logo-cursive {
    display: none !important;
  }

  .theme-switch {
    margin-right: 4px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 18px;
    text-align: center;
  }

  .section-subtitle {
    font-size: 12px;
    text-align: center;
    padding: 0 10px;
  }

  .tabs-container {
    overflow-x: auto;
    padding-bottom: 8px;
    gap: 16px;
    justify-content: flex-start;
  }

  .tabs-container::-webkit-scrollbar {
    display: none;
  }

  .course-grid,
  .notes-grid,
  .track-grid,
  .tool-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .footer-column {
    align-items: center;
  }

  .footer-contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 24px;
  }

  .contact-text {
    font-size: 13px;
    line-height: 1.5;
  }

  .footer-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding-bottom: 20px;
  }

  main {
    padding: 0 16px;
  }

  .hero {
    height: 200px;
    padding: 0 20px;
    margin-bottom: 24px;
    border-radius: 0;
  }

  .section-title {
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 6px;
  }

  .section-subtitle {
    font-size: 11px;
    margin-bottom: 16px;
  }

  .feature-highlight {
    padding: 16px 12px;
    margin-bottom: 24px;
    border-radius: 12px;
  }

  .feature-highlight h3 {
    font-size: 14px !important;
  }

  .course-title {
    font-size: 11px;
  }

  .note-title {
    font-size: 12px;
  }

  .note-desc {
    font-size: 10px;
  }

  .note-header h4 {
    font-size: 14px;
  }

  .track-title {
    font-size: 10px;
  }

  .track-instructor {
    font-size: 9px;
  }

  .marquee-item {
    font-size: 12px;
  }

  .course-card,
  .track-card,
  .note-card {
    box-shadow: none !important;
    border: 1px solid var(--border-main);
    padding: 6px;
  }

  .course-image,
  .track-img-container {
    margin-bottom: 6px;
    border-radius: 6px;
    height: auto;
  }

  .course-card:hover,
  .track-card:hover,
  .note-card:hover {
    transform: none;
  }

  .announcement-bar {
    padding: 10px 0;
    font-size: 12px;
    height: 40px;
    /* Fixed height for calculated sticky offset */
    display: flex;
    align-items: center;
  }

  .bulletin-container {
    gap: 20px;
  }

  .marquee-item {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Specific mobile overrides */
@media (max-width: 480px) {
  .mob-menu-logo-text {
    display: block !important;
  }

  .header-inner {
    height: 60px;
  }

  header {
    height: 60px;
  }

  body {
    padding-top: 100px;
  }

  .footer-legal-links {
    flex-direction: column;
    gap: 12px;
  }

  .tabs-container {
    padding: 10px 0;
    margin: 0 -16px;
    padding-left: 16px;
  }

  .course-card,
  .note-card {
    margin: 0 4px;
  }

  .marquee-item {
    font-size: 13px;
    gap: 8px;
  }

  .marquee-item i {
    font-size: 18px;
  }

  .course-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .track-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .step-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .opt-card {
    padding: 16px 8px !important;
  }

  .opt-card h3 {
    font-size: 13px !important;
  }

  .opt-card p {
    font-size: 10px !important;
    display: none;
    /* Hide descriptions on very small screens to save space */
  }

  .opt-card i {
    font-size: 24px !important;
  }
}

@keyframes rgbHighSpeed {
  0% {
    background-position: 0% 50%;
    filter: hue-rotate(0deg);
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
    filter: hue-rotate(360deg);
  }
}

.badge-new {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  color: #fff;
  text-transform: uppercase;
  margin-left: 6px;
  animation: rgbGlowPremium 2s linear infinite;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

@keyframes rgbGlowPremium {
  0% {
    background: #ff0000;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.5);
  }

  20% {
    background: #ff8800;
  }

  40% {
    background: #ffff00;
  }

  60% {
    background: #00ff00;
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.5);
  }

  80% {
    background: #0088ff;
  }

  100% {
    background: #ff0000;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.5);
  }
}

/* ══ INFO PAGES (About, Contact, Privacy, Terms) ═════ */
.info-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.info-hero {
  text-align: center;
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border-main);
  margin-bottom: 32px;
}

.info-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 92, 246, 0.08);
  color: var(--accent);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.info-hero h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.2;
}

.info-hero p {
  font-size: 13px;
  color: var(--text-muted);
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-main);
  border-radius: 12px;
  padding: 20px;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.info-card:hover {
  box-shadow: var(--shadow-main);
  transform: translateY(-2px);
}

.info-card-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.08);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.info-card-body h2 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.info-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.info-card-body ul {
  margin: 8px 0 0 0;
  padding-left: 18px;
}

.info-card-body ul li {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 4px;
}

.info-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 12px;
  transition: var(--transition);
}

.info-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .info-hero h1 {
    font-size: 22px;
  }

  .info-main {
    padding: 24px 16px 48px;
  }

  .info-card {
    padding: 16px;
    gap: 12px;
  }

  .info-card-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 14px;
  }

  .info-card-body h2 {
    font-size: 13px;
  }

  .info-card-body p,
  .info-card-body ul li {
    font-size: 12px;
  }
}

/* ─── Minimal Footer ─── */
footer {
  border-top: 1px solid var(--border-main);
  background: var(--bg-main);
}

.footer-minimal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 20px 0px;
  gap: 8px;
}

.footer-copy {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  letter-spacing: 0.01em;
}

.footer-dev {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.footer-dev strong {
  color: var(--accent-purple);
  font-weight: 700;
}

.footer-love {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.footer-state {
  color: var(--accent-purple);
  font-weight: 600;
}

/* ══ FULL-SCREEN MOBILE OVERLAY MENU ══════════════════════════ */
#mobileMenuOverlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  background-color: var(--bg-main);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

#mobileMenuOverlay.open {
  transform: translateX(0);
}

.mob-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-main);
  min-height: 64px;
}

.mob-menu-logo-wrapper {
  display: none !important;
}

.mob-menu-logo-text {
  display: none !important;
}

.mob-menu-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-main);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-main);
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.mob-menu-close:hover {
  background: var(--border-main);
  transform: scale(1.08);
}

.mob-menu-items {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  gap: 12px;
  flex: 1;
}

.mob-menu-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border-main);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mob-menu-link:hover,
.mob-menu-link:active {
  background: #f6f4ff;
  border-color: var(--accent-purple);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.08);
}

.mob-menu-link.active-page {
  background: #f6f4ff;
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.12);
}

.mob-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--accent-purple);
  flex-shrink: 0;
}

.mob-menu-link.active-page .mob-menu-icon {
  background: var(--accent-purple);
  color: #fff;
}

.mob-menu-footer {
  padding: 20px;
  border-top: 1px solid var(--border-main);
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Floating AI Button ────────────────────────────── */
.floating-ai-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.floating-ai-btn:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.6);
}

.floating-ai-btn i {
  animation: floating-icon 3s ease-in-out infinite;
}

@keyframes floating-icon {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 15px rgba(139, 92, 246, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
  }
}

/* Semester Pill Styles */
.sem-pill {
  padding: 12px 30px !important;
  border-radius: 50px !important;
  text-align: left !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  font-weight: 800 !important;
  font-size: 1.2rem !important;
  color: white !important;
  margin-bottom: 8px;
  border: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 100%;
}

.sem-pill:hover {
  transform: translateX(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.sem-1 {
  background: linear-gradient(90deg, #ff8c37, #f64e4e);
}

.sem-2 {
  background: linear-gradient(90deg, #f64e4e, #e91e63);
}

.sem-3 {
  background: linear-gradient(90deg, #e91e63, #9c27b0);
}

.sem-4 {
  background: linear-gradient(90deg, #9c27b0, #673ab7);
}

.sem-5 {
  background: linear-gradient(90deg, #673ab7, #3f51b5);
}

.sem-6 {
  background: linear-gradient(90deg, #4caf50, #8bc34a);
}

.sem-7 {
  background: linear-gradient(90deg, #8bc34a, #cddc39);
}

.sem-8 {
  background: linear-gradient(90deg, #ffc107, #ff9800);
}

/* Category specific tweaks */
.category-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Branch Card Adjustments */
.branch-card {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left !important;
  align-items: flex-start !important;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
}

.branch-img-wrapper {
  width: 100%;
  height: 120px;
  overflow: hidden;
  position: relative;
}

.branch-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.branch-card:hover .branch-img-wrapper img {
  transform: scale(1.1);
}

.branch-content {
  padding: 15px;
  width: 100%;
}

.branch-content h3 {
  margin: 0 0 5px 0 !important;
  font-size: 16px !important;
  color: var(--text-main);
}

.branch-content p {
  margin: 0 !important;
  font-size: 12px !important;
  opacity: 0.7;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 480px) {
  .branch-img-wrapper {
    height: 100px;
  }

  .branch-content {
    padding: 10px;
  }

  .branch-content h3 {
    font-size: 14px !important;
  }

  .branch-content p {
    font-size: 11px !important;
  }
}

/* Ensure only one scrollbar on the entire site */
html {
  overflow: hidden;
  height: 100%;
}

body {
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--border-main);
  border: 2px solid var(--bg-main);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ══ NOTIFICATIONS ══════════════════════════════════ */
.notification-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.notif-btn {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 18px;
  cursor: pointer;
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.notif-btn:hover {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}

.notif-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--card-bg);
  display: none !important;
}

.notif-dropdown {
  position: absolute;
  top: 120%;
  right: -20px;
  width: 250px;
  background: var(--card-bg);
  border: 1px solid var(--border-main);
  border-radius: 12px;
  box-shadow: var(--shadow-main);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  pointer-events: none;
}

.notification-wrapper.active .notif-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.notif-header {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-main);
  color: var(--text-main);
}

.notif-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
}

.notification-wrapper:hover .notif-dropdown,
.notification-wrapper:focus-within .notif-dropdown,
.notification-wrapper.active .notif-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: rgba(var(--accent-rgb), 0.05);
}

.notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.notif-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notif-title {
  font-size: 12px;
  font-weight: 700;
}

.notif-desc {
  font-size: 10px;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .notification-wrapper {
    margin-right: -4px;
  }
}

@media (max-width: 768px) {
  .notification-wrapper {
    margin-right: -4px;
  }
}

/* Enhanced Notification Panel Styles from User Request */
.notification-wrapper .notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  /* red */
  color: white;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 50%;
  display: none !important;
  /* Hidden by default until JS adds count */
}

.notif-btn .notif-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  display: none !important;
}

.notification-wrapper.active .notif-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* ══ SPLASH SCREEN ══════════════════════════════════════ */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  z-index: 1000000;
  transition: opacity 0.6s ease-out, visibility 0.6s;
}

#splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-logo {
  width: 250px; /* Increased size slightly from 240px */
  height: auto;
  opacity: 0;
  transform: translateY(20px);
  animation: splashFadeUp 0.8s ease-out forwards;
}

/* Loader removed as requested */

@keyframes splashFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes splashSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
