*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #fff;
  --bg-subtle: #fafafa;
  --bg-panel: #f5f5f5;
  --bg-hover: #f1f5f9;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #0a0a0a;
  --text-muted: #525252;
  --text-faint: #9ca3af;
  --accent: #1e2a78;
  --accent-dark: #121a50;
  --accent-bg: #eff6ff;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --info: #1e2a78;
  --info-bg: #eff6ff;
  --purple: #7c3aed;
  --purple-bg: #f5f3ff;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow: 0 4px 12px rgba(0, 0, 0, .05);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, .1);
}

.login-title img {
  width: 200px;
}





/* Brand wrapper */
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}


.login-pill {
  display: inline-block;
  border-radius: 999px;
  background: rgba(30, 42, 120, 0.08);
  border: 1px solid rgba(30, 42, 120, 0.15);
  color: #1e2a78;
  /* Iqra University blue */
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
}

/* Title container */
.login-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}


.login-title img.dollar {
  height: 113px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18));
}

































/* ── Hero split layout ── */
.hero-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 32px;
  min-height: 520px;
}

/* Left column */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  width: fit-content;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.hero-headline {
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--text);
}

.hero-headline em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

/* Underline squiggle on the italic word */
.hero-headline em::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  border-radius: 999px;
  opacity: 0.35;
}

.hero-body {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 480px;
}

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 8px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.hero-stat-label {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.login-pill {
  display: inline-flex;
}

/* Right column — character */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-char-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
}

.hero-char {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.08));
  animation: hero-float 4s ease-in-out infinite;
}

@keyframes hero-float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* Floating tags around the character */
.hero-float-tag {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  animation: tag-float 3s ease-in-out infinite;
}

.hero-float-tag.t1 {
  top: 18%;
  left: -10%;
  animation-delay: 0s;
  transform: rotate(-4deg);
}

.hero-float-tag.t2 {
  top: 40%;
  right: -8%;
  animation-delay: 0.8s;
  transform: rotate(3deg);
  background: var(--accent-bg);
  border-color: #bfdbfe;
  color: var(--accent-dark);
}

.hero-float-tag.t3 {
  bottom: 20%;
  left: 0%;
  animation-delay: 1.6s;
  transform: rotate(-2deg);
}

@keyframes tag-float {

  0%,
  100% {
    transform: translateY(0) rotate(var(--r, -4deg));
  }

  50% {
    transform: translateY(-8px) rotate(var(--r, -4deg));
  }
}

/* Schedule preview — full width, below hero */
.demo-preview {
  margin-top: 0;
  /* remove any top margin if set, hero-split handles spacing */
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0 24px;
    text-align: center;
  }

  .hero-left {
    align-items: center;
    order: 2;
  }

  .hero-right {
    order: 1;
  }

  .hero-float-tag.t1 {
    top: 5%;
    left: -18%;
    /* push it further left, above the image notes */
  }

  .hero-float-tag.t2 {
    top: 25%;
    right: -18%;
    /* further right */
  }

  .hero-float-tag.t3 {
    bottom: 8%;
    left: -12%;
    /* bottom left, away from the image */
  }

  .hero-eyebrow {
    margin: 0 auto;
  }

  .login-brand {
    align-items: stretch !important;
    /* add this */
    text-align: left !important;
    /* add this */
  }

  .hero-body {
    text-align: center;
  }

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

  /* ── Hero fixes ── */

  .login-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 48px 0 40px;
    min-height: 500px;
    width: 100%;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    text-align: left;
  }

  .hero-left .login-pill {
    margin-bottom: 0;
  }

  .hero-headline {
    text-align: left;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.0;
    color: var(--text);
  }

  .hero-body {
    text-align: left;
    max-width: 420px;
  }

  .hero-stats {
    justify-content: flex-start;
  }

  .hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
  }

  .hero-char-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
    overflow: visible;
    padding: 20px 48px;
  }

  .demo-preview {
    width: 100%;
    max-width: none;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-float-tag.t1 {
    top: 5%;
    left: -12%;
  }

  .hero-float-tag.t2 {
    top: 28%;
    right: -14%;
  }

  .hero-float-tag.t3 {
    bottom: 10%;
    left: -8%;
  }

  /* Mobile */
  @media (max-width: 900px) {
    .hero-split {
      grid-template-columns: 1fr;
      padding: 32px 0 28px;
      gap: 24px;
    }

    .hero-left {
      order: 2;
      align-items: center;
      text-align: center;
    }

    .hero-right {
      order: 1;
    }

    .hero-body {
      text-align: center;
    }

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

    .hero-char-wrap {
      max-width: 300px;
      margin: 0 auto;
      padding: 16px 40px;
    }

    .hero-float-tag.t1 {
      left: -6%;
    }

    .hero-float-tag.t2 {
      right: -6%;
    }

    .hero-float-tag.t3 {
      left: 0%;
    }
  }

  .hero-char-wrap {
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-right {
    overflow: visible;
  }

  .hero-char-wrap {
    overflow: visible;
    /* tags need to bleed outside */
    padding: 20px 40px;
    /* give room for the floating tags */
  }

  .hero-split {
    padding-top: 24px;
    /* reduce from 48px since pill adds spacing */
    min-height: 480px;
    /* slightly shorter looks better */
  }

  .demo-preview {
    width: 100%;
    margin-top: 32px;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .hero-float-tag.t1 {
    left: -4%;
  }

  .hero-float-tag.t2 {
    right: -4%;
  }

  .hero-float-tag.t3 {
    left: 2%;
  }
}

@media (max-width: 560px) {
  .hero-headline {
    font-size: 30px !important;
    text-align: center !important;
  }

  .hero-float-tag {
    font-size: 11px;
    padding: 6px 10px;
  }

  .hero-body {
    font-size: 15px !important;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-stat-divider {
    display: none;
  }
}


.hero-split {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.login-cards {
  position: relative;
  z-index: 2;
}

.demo-preview {
  position: relative;
  z-index: 2;
}











































html,
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.iu-meta h4 {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.65rem !important;


  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;

  font-family: var(--font-mono) !important;
  font-size: clamp(0.78rem, 1.6vw, 1.05rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #8f8f8f !important;
}

@media (max-width: 480px) {

  .login-title {
    display: flex !important;
    flex-direction: column !important;
    /* logo above text */
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    flex-wrap: nowrap !important;
  }

  /* The image stays on top */
  .login-title>img.dollar {
    height: 80px !important;
    width: auto !important;
    display: block !important;
    flex: none !important;
  }


  .login-title>span.login-title {
    display: block !important;
    width: auto !important;
    white-space: nowrap !important;
    flex: none !important;

    font-size: 4rem !important;
    line-height: 1 !important;
    letter-spacing: -0.04em !important;
    text-align: center !important;
  }


  .login-title>span.login-title>.dollar {
    display: inline !important;
    white-space: nowrap !important;
    margin-right: 0.02em !important;
  }
}


@media (max-width: 480px) {
  .login-brand {
    gap: 0.85rem !important;
    margin-bottom: 1.5rem !important;
  }


  .login-pill {
    font-size: 0.72rem !important;
    padding: 0.35rem 0.8rem !important;
  }


  .login-title {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 0.55rem !important;
  }


  .login-title img.dollar {
    height: 80px !important;
    width: auto !important;
    flex-shrink: 0 !important;
  }




  .iu-meta h4 {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem 0.45rem !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 0.68rem !important;
    line-height: 1.35 !important;
    letter-spacing: 0.06em !important;
    text-align: center !important;
    max-width: 100% !important;
  }


  .students {
    height: 22px !important;
    width: auto !important;
    display: inline-block !important;
    vertical-align: middle !important;
  }


  .login-sub {
    margin-top: 0.6rem !important;
    padding: 0 0.5rem !important;
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    max-width: 100% !important;
  }
}


.students {
  height: 44px !important;
  width: auto !important;
  display: inline-block !important;
  vertical-align: middle !important;
  object-fit: contain !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

/* Optional: tighten spacing between title and meta */
.login-brand {
  gap: 0.75rem !important;
}

.iu-meta {
  text-align: center;
}

.iu-meta h4 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  flex-wrap: wrap;
}

.iu-meta h4 img {
  width: 100px;
  height: 100px;
}

.students {
  height: 2px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));






}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
}

/* Login */
.login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-image: radial-gradient(circle at 1px 1px, #e2e8f0 1px, transparent 0);
  background-size: 24px 24px;
}





/* 
update hero css */

.updated-hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

.updated-hero-section .right img {
  width: 500px;
  height: auto;
}







.login-wrap {
  width: 100%;
  max-width: 1100px;
}

.login-brand {
  text-align: center;
  margin-bottom: 40px;
}

.login-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.login-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

.login-title {
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 12px;
}

.login-title .dollar {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}

.login-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.login-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .login-cards {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  text-align: left;
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all .2s ease;
  cursor: pointer;
  width: 100%;
}

.plan-card:hover {
  border-color: var(--text);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.plan-card.pro {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  position: relative;
  overflow: hidden;
}

.plan-card.pro::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(30, 42, 120, .2), transparent 70%);
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
}

.plan-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.plan-card.pro .plan-tag {
  background: rgba(30, 42, 120, .1);
  border-color: rgba(30, 42, 120, .3);
  color: #60a5fa;
}

.plan-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
}

.plan-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  position: relative;
}

.plan-card.pro .plan-desc {
  color: #cbd5e1;
}

.plan-features {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 13px;
  position: relative;
}

.plan-features li {

  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.plan-features .check {
  color: var(--accent);
  flex-shrink: 0;
}

.plan-card.pro .plan-features .check {
  color: #60a5fa;
}

.plan-card.pro .plan-features .spark {
  color: #60a5fa;
}

.plan-features .locked {
  color: var(--text-faint);
}

.plan-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: gap .2s;
}

.plan-card:hover .plan-cta {
  gap: 8px;
}

.features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .features-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .2s;
}

.feature-card:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--text);
}

.feature-icon svg {
  width: 18px;
  height: 18px;
}

.feature-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.demo-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  overflow: hidden;
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.demo-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  position: relative;
  height: 160px;
}

.demo-col {
  position: relative;
  background: var(--bg-subtle);
  border-radius: 6px;
}

.demo-col::after {
  content: attr(data-label);
  position: absolute;
  top: -18px;
  left: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-faint);
}

.demo-block {
  position: absolute;
  left: 4px;
  right: 4px;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 600;
  animation: fadein .8s ease both;
  border-left: 3px solid;
  overflow: hidden;
}

.demo-block.b-em {
  background: #eff6ff;
  color: #065f46;
  border-color: #3b82f6;
  animation-delay: .1s;
}

.demo-block.b-bl {
  background: #eff6ff;
  color: #1e40af;
  border-color: #3b82f6;
  animation-delay: .3s;
}

.demo-block.b-am {
  background: #fffbeb;
  color: #92400e;
  border-color: #f59e0b;
  animation-delay: .5s;
}

.demo-block.b-vi {
  background: #f5f3ff;
  color: #5b21b6;
  border-color: #8b5cf6;
  animation-delay: .7s;
}

.demo-block.b-rs {
  background: #fff1f2;
  color: #9f1239;
  border-color: #f43f5e;
  animation-delay: .9s;
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.login-footer {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 3px;
}

.brand-mark {
  font-family: var(--font-mono);
  color: #111827;
  font-weight: 800;
  font-size: 20px;
}

.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 6px;
}

.brand-name {
  color: #111827;
  font-weight: 700;
  letter-spacing: -.02em;
  font-family: var(--font-mono);
}

.brand-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
  padding: 4px 8px;
  background: var(--bg-subtle);
  border-radius: 4px;
  border: 1px solid var(--border);
}

@media (max-width: 640px) {
  .brand-meta {
    display: none;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.plan-pill.free {
  background: var(--bg-subtle);
  color: var(--text);
  border: 1px solid var(--border);
}

.plan-pill.pro {
  background: #0f172a;
  color: #60a5fa;
}

.icon-btn-hdr {
  padding: 6px;
  color: var(--text-muted);
  border-radius: 6px;
  transition: all .2s;
  display: flex;
  align-items: center;
}

.icon-btn-hdr:hover {
  color: var(--text);
  background: var(--bg-subtle);
}

/* Tabs */
.tabs {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.tabs-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}

.tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
  white-space: nowrap;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: var(--text);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text);
}

.tab .pro-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 2px 6px;
  background: var(--accent-bg);
  color: var(--accent-dark);
  border-radius: 4px;
  border: 1px solid #bfdbfe;
  letter-spacing: .05em;
}

.tab svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.tab .count-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 1px 6px;
  background: var(--text);
  color: #fff;
  border-radius: 999px;
}

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

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.page-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}

.page-sub {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all .15s;
  border: 1px solid transparent;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--text);
  color: #fff;
}

.btn-primary:hover {
  background: #262626;
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
}

.btn-ghost {
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-subtle);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-dark);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #b91c1c;
}

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

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
}

.status-completed {
  background: var(--accent-bg);
  color: var(--accent-dark);
  border: 1px solid #bfdbfe;
}

.status-inProgress {
  background: var(--info-bg);
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.status-available {
  background: var(--warning-bg);
  color: #92400e;
  border: 1px solid #fcd34d;
}

.status-locked {
  background: var(--danger-bg);
  color: #991b1b;
  border: 1px solid #fecaca;
}

.status-notOffered {
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.status-elective {
  background: var(--purple-bg);
  color: var(--purple);
  border: 1px solid #ddd6fe;
}

.dot-completed {
  background: var(--accent);
}

.dot-inProgress {
  background: var(--info);
}

.dot-available {
  background: var(--warning);
}

.dot-locked {
  background: var(--danger);
}

.dot-notOffered {
  background: var(--text-faint);
}

.dot-elective {
  background: var(--purple);
}

/* Empty state */
.empty {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  text-align: center;
  background: var(--bg-subtle);
}

.empty-comment {
  font-family: var(--font-mono);
  color: var(--text-faint);
  font-size: 14px;
  margin-bottom: 8px;
}

.empty-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}

.empty-text {
  color: var(--text-muted);
  margin: 0 auto 32px;
  max-width: 480px;
}

.empty-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Progress page */
.progress-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .progress-hero {
    grid-template-columns: 1fr;
  }
}

.ring-card {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ring-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -30%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(30, 42, 120, .2), transparent 70%);
}

.ring {
  position: relative;
  width: 200px;
  height: 200px;
}

.ring svg {
  transform: rotate(-90deg);
}

.ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ring-pct {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.ring-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: .7;
  margin-top: 4px;
}

.ring-foot {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: .7;
  margin-top: 16px;
  text-align: center;
}

.progress-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.big-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.big-stat .label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.big-stat .value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
}

.big-stat .value .suffix {
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  font-weight: 500;
  margin-left: 4px;
}

.big-stat .hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.big-stat .footnote {
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 6px;
  font-style: italic;
}

.big-stat.accent {
  background: var(--accent-bg);
  border-color: #bfdbfe;
}

.big-stat.accent .value {
  color: var(--accent-dark);
}

.big-stat.info {
  background: var(--info-bg);
  border-color: #bfdbfe;
}

.big-stat.info .value {
  color: #1e40af;
}

.big-stat.warn {
  background: var(--warning-bg);
  border-color: #fcd34d;
}

.big-stat.warn .value {
  color: #92400e;
}

.semester-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .semester-grid {
    grid-template-columns: 1fr;
  }
}

.sem-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.sem-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sem-name {
  font-weight: 700;
  font-size: 15px;
}

.sem-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.sem-progress {
  height: 6px;
  background: var(--bg-panel);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
}

.sem-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width .4s;
}

.sem-courses {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sem-course {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
}

.sem-course-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sem-course-code {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 11px;
  min-width: 70px;
}

.sem-course-name {
  flex: 1;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sem-course-grade {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
}

/* Catalog */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all .15s;
}

.filter-chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.filter-chip.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.filter-chip .count {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  border-radius: 999px;
}

.filter-chip.active .count {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}

.search-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  margin-bottom: 16px;
  background: var(--bg);
}

.search-input:focus {
  border-color: var(--text);
}

.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.catalog-row {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
  transition: all .15s;
}

.catalog-row:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.cat-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.cat-main {
  min-width: 0;
}

.cat-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.cat-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cat-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.grade-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent-bg);
  color: var(--accent-dark);
}

@media (max-width: 640px) {
  .catalog-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cat-right {
    justify-content: flex-start;
  }
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
  animation: bdfade .15s ease;
}

@keyframes bdfade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalpop .2s ease;
}

@keyframes modalpop {
  from {
    opacity: 0;
    transform: scale(.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal.wide {
  max-width: 780px;
}

.modal-head {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.modal-title {
  font-weight: 700;
}

.modal-body {
  padding: 24px;
}

.modal .row {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.modal .row.two {
  grid-template-columns: 1fr 1fr;
}

.modal label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.field {
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--bg);
}

.field:focus {
  border-color: var(--text);
}

.field-mono {
  font-family: var(--font-mono);
  font-size: 13px;
}

textarea.field {
  resize: vertical;
  min-height: 220px;
  line-height: 1.5;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 12px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}

.note {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 16px;
}

.note-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.note p {
  font-size: 14px;
}

.note ul {
  margin: 6px 0 0 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Upload picker */
.upload-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.upload-tab {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.upload-tab.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.upload-tab.locked {
  opacity: .6;
  cursor: not-allowed;
}

.upload-tab .pro-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 1px 5px;
  background: rgba(30, 42, 120, .15);
  color: #1d4ed8;
  border-radius: 3px;
}

.upload-tab.active .pro-tag {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}

.upload-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  background: var(--bg-subtle);
  cursor: pointer;
  transition: all .15s;
}

.upload-drop:hover {
  border-color: var(--text);
  background: var(--bg);
}

.upload-drop input[type=file] {
  display: none;
}

.upload-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.upload-icon svg {
  width: 22px;
  height: 22px;
}

.upload-label {
  font-weight: 600;
  margin-bottom: 4px;
}

.upload-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.upload-status {
  padding: 12px;
  background: var(--info-bg);
  border: 1px solid #bfdbfe;
  color: #1e40af;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.upload-status .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #bfdbfe;
  border-top-color: var(--info);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

/* Planner */
.planner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .planner-grid {
    grid-template-columns: 1fr;
  }
}

.planner-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.planner-panel-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.planner-panel-title {
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.planner-panel-title .step {
  width: 20px;
  height: 20px;
  background: var(--text);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.planner-panel-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.planner-panel-body {
  padding: 0;
  max-height: 520px;
  overflow-y: auto;
}

.avail-group {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.avail-group:last-child {
  border-bottom: none;
}

.avail-group-head {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.avail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.avail-row:last-child {
  border-bottom: none;
}

.avail-info {
  flex: 1;
  min-width: 0;
}

.avail-code {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.avail-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.avail-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 2px;
}

.avail-action {
  flex-shrink: 0;
}

.avail-row.locked {
  opacity: .6;
}

.avail-row.added .avail-action {
  color: var(--accent);
}

.plan-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.plan-item:last-child {
  border-bottom: none;
}

.plan-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.plan-item-info {
  flex: 1;
  min-width: 0;
}

.plan-item-code {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.plan-item-name {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  margin-top: 2px;
}

.plan-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.plan-item-sessions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.plan-mini-sess {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--bg-subtle);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.plan-mini-sess select,
.plan-mini-sess input {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: none;
}

.plan-mini-sess input[type=time] {
  width: auto;
}

.plan-mini-sess .x {
  margin-left: auto;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 14px;
}

.plan-mini-sess .x:hover {
  color: var(--danger);
}

.add-mini {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.add-mini:hover {
  color: var(--text);
}

.diff-mini {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  cursor: pointer;
  outline: none;
}

.diff-easy {
  background: var(--accent-bg);
  color: #065f46;
  border-color: #bfdbfe;
}

.diff-medium {
  background: var(--info-bg);
  color: #1e40af;
  border-color: #bfdbfe;
}

.diff-hard {
  background: var(--warning-bg);
  color: #92400e;
  border-color: #fcd34d;
}

.diff-brutal {
  background: var(--danger-bg);
  color: #991b1b;
  border-color: #fecaca;
}

/* Stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.stat-card.accent {
  background: var(--accent-bg);
  border-color: #bfdbfe;
}

.stat-card.info {
  background: var(--info-bg);
  border-color: #bfdbfe;
}

.stat-card.warn {
  background: var(--warning-bg);
  border-color: #fcd34d;
}

.stat-card.danger {
  background: var(--danger-bg);
  border-color: #fecaca;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
}

.stat-value.danger {
  color: var(--danger);
}

.stat-value .suffix {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  font-weight: 500;
  margin-left: 4px;
}

.stat-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.panel-title {
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.bar-day {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  width: 40px;
}

.bar-track {
  flex: 1;
  height: 32px;
  background: var(--bg-subtle);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  transition: width .4s;
}

.bar-empty {
  background: var(--bg-panel);
}

.bar-low {
  background: var(--accent);
}

.bar-mid {
  background: var(--warning);
}

.bar-high {
  background: var(--danger);
}

.bar-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
}

.bar-label.on-fill {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

.bar-label.empty {
  color: var(--text-faint);
}

.alert {
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.alert-danger {
  background: var(--danger-bg);
  border: 1px solid #fecaca;
  color: #7f1d1d;
}

.alert-warn {
  background: var(--warning-bg);
  border: 1px solid #fcd34d;
  color: #78350f;
}

.alert-info {
  background: var(--info-bg);
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.alert-success {
  background: var(--accent-bg);
  border: 1px solid #bfdbfe;
  color: #065f46;
}

.alert svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.alert-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.alert-body {
  font-size: 13px;
}

/* Recommendations */
.rec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rec-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.rec-item.success {
  background: var(--accent-bg);
  border-color: #bfdbfe;
}

.rec-item.warn {
  background: var(--warning-bg);
  border-color: #fcd34d;
}

.rec-item.danger {
  background: var(--danger-bg);
  border-color: #fecaca;
}

.rec-item.info {
  background: var(--info-bg);
  border-color: #bfdbfe;
}

.rec-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 0, 0, .04);
}

.rec-icon svg {
  width: 14px;
  height: 14px;
}

.rec-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
}

.rec-text strong {
  font-weight: 700;
}

/* Timetable */
.timetable {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tt-header,
.tt-body {
  display: grid;
  grid-template-columns: 64px repeat(5, 1fr);
}

.tt-header {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.tt-header>div {
  padding: 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
}

.tt-header>div:last-child {
  border-right: none;
}

.tt-time {
  border-right: 1px solid var(--border);
}

.tt-time .hour {
  height: 60px;
  border-bottom: 1px solid #f1f5f9;
  padding: 2px 8px 0 0;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
}

.tt-day {
  position: relative;
  border-right: 1px solid var(--border);
}

.tt-day:last-child {
  border-right: none;
}

.tt-day .slot {
  height: 60px;
  border-bottom: 1px solid #f1f5f9;
}

.tt-block {
  position: absolute;
  left: 4px;
  right: 4px;
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  transition: box-shadow .15s;
  border-left: 4px solid var(--c);
  background: var(--c-bg);
  overflow: hidden;
}

.tt-block:hover {
  box-shadow: var(--shadow);
}

.tt-block.conflict {
  outline: 2px solid var(--danger);
  outline-offset: 1px;
  animation: cflash 2s ease-in-out infinite;
}

@keyframes cflash {

  0%,
  100% {
    outline-color: var(--danger);
  }

  50% {
    outline-color: rgba(220, 38, 38, .4);
  }
}

.tt-block .b-code {
  font-family: var(--font-mono);
  font-size: 9px;
  opacity: .7;
  color: var(--c-text);
}

.tt-block .b-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.2;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tt-block .b-time {
  font-family: var(--font-mono);
  font-size: 9px;
  opacity: .6;
  margin-top: 4px;
  color: var(--c-text);
}

.c-0 {
  --c: #3b82f6;
  --c-bg: #eff6ff;
  --c-text: #065f46;
}

.c-1 {
  --c: #3b82f6;
  --c-bg: #eff6ff;
  --c-text: #1e40af;
}

.c-2 {
  --c: #8b5cf6;
  --c-bg: #f5f3ff;
  --c-text: #5b21b6;
}

.c-3 {
  --c: #f59e0b;
  --c-bg: #fffbeb;
  --c-text: #92400e;
}

.c-4 {
  --c: #f43f5e;
  --c-bg: #fff1f2;
  --c-text: #9f1239;
}

.c-5 {
  --c: #06b6d4;
  --c-bg: #ecfeff;
  --c-text: #155e75;
}

.c-6 {
  --c: #f97316;
  --c-bg: #fff7ed;
  --c-text: #9a3412;
}

.c-7 {
  --c: #ec4899;
  --c-bg: #fdf2f8;
  --c-text: #9d174d;
}

/* AI tab */
.upgrade-card {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
}

.upgrade-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(30, 42, 120, .25), transparent 70%);
}

.upgrade-card .lock-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(30, 42, 120, .15);
  border: 1px solid rgba(30, 42, 120, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #60a5fa;
  position: relative;
}

.upgrade-card h2 {
  font-size: 32px;
  letter-spacing: -.02em;
  margin-bottom: 12px;
  position: relative;
}

.upgrade-card p {
  color: #cbd5e1;
  margin-bottom: 24px;
  position: relative;
  max-width: 480px;
}

.upgrade-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
  position: relative;
}

.upgrade-features div {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.upgrade-features div::before {
  content: '✓';
  color: #60a5fa;
}

.ai-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.ai-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.ai-title svg {
  color: var(--accent);
}

.ai-content {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
}

.ai-placeholder {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  padding: 24px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  text-align: center;
}

.ai-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.ai-error {
  padding: 12px;
  background: var(--danger-bg);
  border: 1px solid #fecaca;
  color: #7f1d1d;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

/* Settings — Pro API */
.settings-section {
  padding: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.settings-section-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-section-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.settings-row {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.settings-row:last-child {
  margin-bottom: 0;
}

.cost-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.pay-card {
  padding: 20px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.pay-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(30, 42, 120, .2), transparent 70%);
}

.pay-card-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
  position: relative;
}

.pay-card-sub {
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 16px;
  position: relative;
}

.pay-card-price {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}

.pay-card-price .unit {
  font-size: 12px;
  opacity: .7;
  font-weight: 500;
}

/* Utils */
.muted {
  color: var(--text-muted);
}

.mono {
  font-family: var(--font-mono);
}

.accent {
  color: var(--accent);
}

.danger {
  color: var(--danger);
}





/* Fix horizontal tabs scrollbar (desktop + mobile) */
.tabs {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  /* prevent outer scrollbar */
}

.tabs-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;

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

  /* Horizontal scroll only */
  overflow-x: auto;
  overflow-y: hidden;

  /* Hide scrollbars */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */

  /* Smooth scrolling on mobile */
  -webkit-overflow-scrolling: touch;

  /* Prevent wrapping */
  white-space: nowrap;
}

.tabs-inner::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.tab {
  position: relative;
  display: inline-flex;
  /* important */
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
  white-space: nowrap;
  flex-shrink: 0;
  /* prevent shrinking */
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .tabs-inner {
    padding: 0 12px;
  }

  .tab {
    padding: 14px 12px;
    font-size: 13px;
  }
}

/* ── BOOKMARKLET UI ── */

.upload-tab .reco-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 1px 6px;
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  letter-spacing: 0.05em;
  margin-left: 4px;
}

.upload-tab.active .reco-tag {
  background: #fff;
  color: var(--accent-dark);
}

/* Hero banner inside the bookmark tab */
.bm-hero {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.bm-hero-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bm-hero-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--accent-dark);
  margin-bottom: 4px;
}

.bm-hero-sub {
  font-size: 13px;
  color: #065f46;
  line-height: 1.55;
}

/* Drag zone with the big bookmark button */
.bm-drag-zone {
  text-align: center;
  padding: 28px 20px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  margin-bottom: 24px;
  background: var(--bg-subtle);
}

.bm-drag-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.bm-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(30, 42, 120, 0.35), 0 2px 4px rgba(30, 42, 120, 0.2);
  cursor: grab;
  user-select: none;
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative;
}

.bm-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(30, 42, 120, 0.45), 0 4px 8px rgba(30, 42, 120, 0.25);
}

.bm-button:active {
  cursor: grabbing;
  transform: translateY(0);
}

.bm-button::before {
  content: '⬆';
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: var(--accent);
  animation: bm-bounce 1.5s ease-in-out infinite;
}

@keyframes bm-bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.6;
  }

  50% {
    transform: translateX(-50%) translateY(-6px);
    opacity: 1;
  }
}

.bm-shortcut-hint {
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-muted);
}

.bm-shortcut-hint kbd {
  display: inline-block;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  margin: 0 1px;
  color: var(--text);
}

/* Platform tabs (desktop / mobile steps) */
.bm-steps-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.bm-steps-tab {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bm-steps-tab:hover {
  color: var(--text);
}

.bm-steps-tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* Step cards */
.bm-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bm-steps.desktop .bm-desc-mobile {
  display: none;
}

.bm-steps.mobile .bm-desc-desktop {
  display: none;
}

.bm-steps.mobile .bm-step-visual-desktop {
  display: none;
}

.bm-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.bm-step-num {
  width: 32px;
  height: 32px;
  background: var(--text);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  flex-shrink: 0;
}

.bm-step-body {
  flex: 1;
  min-width: 0;
}

.bm-step-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

.bm-step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.bm-step-desc .mono {
  font-family: var(--font-mono);
  background: var(--bg-panel);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* Animated mini visuals inside the steps */
.bm-step-visual {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 8px;
}

/* Step 1 — fake browser with bookmarks bar */
.bm-anim-browser {
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  overflow: hidden;
}

.bm-anim-dots {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}

.bm-anim-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e7eb;
}

.bm-anim-dots span:first-child {
  background: #f87171;
}

.bm-anim-dots span:nth-child(2) {
  background: #fbbf24;
}

.bm-anim-dots span:nth-child(3) {
  background: #60a5fa;
}

.bm-anim-bar {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.bm-anim-bookmark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--accent-bg);
  color: var(--accent-dark);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #bfdbfe;
  animation: bm-fadein 2s ease-out 0.5s both;
}

@keyframes bm-fadein {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.8);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Step 2 — fake LMS table */
.bm-anim-lms {
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  overflow: hidden;
}

.bm-anim-lms-head {
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}

.bm-anim-lms-table {
  padding: 4px 0;
}

.bm-anim-lms-row {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  gap: 8px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  align-items: center;
  border-bottom: 1px solid #f3f4f6;
}

.bm-anim-lms-row:last-child {
  border-bottom: none;
}

.bm-anim-lms-row .pill {
  background: var(--accent-bg);
  color: var(--accent-dark);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  text-align: center;
  font-size: 10px;
}

/* Step 3 — flow diagram */
.bm-anim-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px;
}

.bm-anim-flow-card {
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid var(--border-strong);
}

.bm-anim-flow-card.iulms {
  background: #fff;
  color: var(--text);
}

.bm-anim-flow-card.us {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  animation: bm-pulse 2s ease-in-out infinite;
}

@keyframes bm-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(30, 42, 120, 0.4);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(30, 42, 120, 0);
  }
}

.bm-anim-flow-arrow {
  color: var(--accent);
  animation: bm-slide 1.5s ease-in-out infinite;
}

@keyframes bm-slide {

  0%,
  100% {
    transform: translateX(0);
    opacity: 0.5;
  }

  50% {
    transform: translateX(6px);
    opacity: 1;
  }
}

/* Footer actions */
.bm-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}

/* Raw code reveal */
.bm-code-block {
  margin-top: 16px;
  padding: 12px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.bm-code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.bm-code-hint {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 6px;
}

#bookmarkCodeArea {
  font-size: 11px !important;
  min-height: 80px;
  word-break: break-all;
}

/* Import success/error banner */
.import-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.import-banner.success {
  background: var(--accent-bg);
  color: var(--accent-dark);
  border-bottom-color: #bfdbfe;
}

.import-banner.error {
  background: var(--danger-bg);
  color: #7f1d1d;
  border-bottom-color: #fecaca;
}

.import-banner svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Tab bar — fix overflow scrollbar issue */
.tabs-inner {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs-inner::-webkit-scrollbar {
  display: none;
}

/* Mobile responsive bookmarklet UI */
@media (max-width: 640px) {
  .bm-hero {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }

  .bm-hero-icon {
    width: 36px;
    height: 36px;
  }

  .bm-hero-title {
    font-size: 15px;
  }

  .bm-drag-zone {
    padding: 20px 14px;
  }

  .bm-button {
    padding: 12px 18px;
    font-size: 13px;
  }

  .bm-step {
    flex-direction: column;
  }

  .bm-step-num {
    margin-bottom: 4px;
  }

  .upload-tabs {
    flex-wrap: wrap;
  }

  .upload-tab {
    font-size: 12px;
    padding: 5px 9px;
  }

  .upload-tab .reco-tag,
  .upload-tab .pro-tag {
    display: none;
  }
}

/* ── Bookmark promo banner on login page ── */
.bm-promo {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 28px 0;
  position: relative;
  overflow: hidden;
}

.bm-promo::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(30, 42, 120, .25), transparent 70%);
  pointer-events: none;
}

.bm-promo-left {
  position: relative;
  z-index: 1;
}

.bm-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 42, 120, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(30, 42, 120, 0.4);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.bm-promo-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: #fff;
}

.bm-promo-sub {
  font-size: 14px;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 18px;
  max-width: 540px;
}

.bm-promo-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.bm-promo-actions .btn {
  background: var(--accent);
  color: #fff;
  border: none;
}

.bm-promo-actions .btn:hover {
  background: var(--accent-dark);
}

.bm-promo-hint {
  font-size: 12px;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.bm-promo-right {
  position: relative;
  z-index: 1;
}

.bm-promo-window {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 6px 12px rgba(0, 0, 0, 0.2);
  transform: rotate(-2deg);
  transition: transform .3s ease;
}

.bm-promo:hover .bm-promo-window {
  transform: rotate(0);
}

.bm-promo-dots {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}

.bm-promo-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
}

.bm-promo-dots span:first-child {
  background: #f87171;
}

.bm-promo-dots span:nth-child(2) {
  background: #fbbf24;
}

.bm-promo-dots span:nth-child(3) {
  background: #60a5fa;
}

.bm-promo-bar {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.bm-promo-bm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--accent-bg);
  color: var(--accent-dark);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #bfdbfe;
}

.bm-promo-body {
  padding: 12px;
  color: var(--text);
}

.bm-promo-line {
  display: grid;
  grid-template-columns: 60px 1fr 30px;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 0;
  border-bottom: 1px solid #f3f4f6;
  animation: bm-promo-row 3s ease-in-out infinite;
}

.bm-promo-line:nth-child(2) {
  animation-delay: 0.2s;
}

.bm-promo-line:nth-child(3) {
  animation-delay: 0.4s;
}

.bm-promo-line:last-child {
  border-bottom: none;
  color: var(--text-faint);
  text-align: center;
  display: block;
  padding-top: 8px;
  animation-delay: 0.6s;
}

@keyframes bm-promo-row {

  0%,
  30%,
  100% {
    opacity: 1;
  }

  15% {
    opacity: 0.4;
  }
}

.bm-promo-line .m {
  color: var(--text-muted);
  font-size: 10px;
}

.bm-promo-line .g {
  background: var(--accent-bg);
  color: var(--accent-dark);
  text-align: center;
  border-radius: 3px;
  font-weight: 700;
  font-size: 10px;
  padding: 1px 4px;
}

@media (max-width: 768px) {
  .bm-promo {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .bm-promo-right {
    display: none;
  }

  .bm-promo-title {
    font-size: 22px;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   v2.0 — DASHBOARD, TIMETABLE, ATTENDANCE & PREDICTION STYLES
   Extends the existing emerald/charcoal minimalist system with new
   layouts for the predictive dashboard and visual timetable.
   ════════════════════════════════════════════════════════════════════════ */

/* ── New-tab pill (replaces count badge on Dashboard tab) ── */
.new-badge {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  line-height: 1.4;
}

/* ── Dashboard hero ── */
.dash-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
  padding: 28px;
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid #1f1f1f;
  position: relative;
  overflow: hidden;
}

.dash-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.18), transparent 70%);
  pointer-events: none;
}

.dash-hero-left {
  position: relative;
  z-index: 1;
}

.dash-hello {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #60a5fa;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.dash-name {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.15;
  color: #fff;
}

.dash-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
}

.dash-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dash-actions .btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.dash-actions .btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.dash-actions .btn.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.dash-actions .btn.btn-primary:hover {
  background: var(--accent-dark);
}

.dash-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  position: relative;
  z-index: 1;
}

.dash-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: transform 0.15s, border-color 0.15s;
}

.dash-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}

.dash-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}

.dash-stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}

.dash-stat-value .suffix {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-left: 3px;
}

.dash-stat-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
  font-weight: 500;
}

.dash-stat.accent .dash-stat-value {
  color: #60a5fa;
}

.dash-stat.warn .dash-stat-value {
  color: #fbbf24;
}

.dash-stat.info .dash-stat-value {
  color: #60a5fa;
}

.dash-stat.danger .dash-stat-value {
  color: #f87171;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .dash-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

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

@media (max-width: 480px) {
  .dash-hero-stats {
    grid-template-columns: 1fr;
  }
}

/* ── Attendance rows ── */
.att-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}

.att-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  border-left-width: 3px;
}

.att-row.att-critical {
  border-left-color: var(--danger);
  background: var(--danger-bg);
}

.att-row.att-warning {
  border-left-color: var(--warning);
  background: var(--warning-bg);
}

.att-row.att-caution {
  border-left-color: #facc15;
  background: #fefce8;
}

.att-row.att-safe {
  border-left-color: var(--accent);
}

.att-row.att-no-data {
  border-left-color: var(--border-strong);
  background: var(--bg-subtle);
}

.att-info {
  min-width: 0;
}

.att-course {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.att-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.att-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.att-bar {
  flex: 1;
  height: 8px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.att-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.3s;
}

.att-critical .att-bar-fill {
  background: var(--danger);
}

.att-warning .att-bar-fill {
  background: var(--warning);
}

.att-caution .att-bar-fill {
  background: #facc15;
}

.att-pct {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  min-width: 52px;
  text-align: right;
}

/* ── CGPA scenario grid ── */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 4px 0 16px;
}

.scenario-card {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  text-align: center;
  transition: transform 0.15s;
}

.scenario-card:hover {
  transform: translateY(-2px);
}

.scenario-card.pess {
  background: var(--danger-bg);
  border-color: #fecaca;
}

.scenario-card.exp {
  background: var(--accent-bg);
  border-color: #bfdbfe;
}

.scenario-card.opt {
  background: var(--info-bg);
  border-color: #bfdbfe;
}

.scenario-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.scenario-value {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.scenario-card.pess .scenario-value {
  color: var(--danger);
}

.scenario-card.exp .scenario-value {
  color: var(--accent-dark);
}

.scenario-card.opt .scenario-value {
  color: var(--info);
}

.scenario-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
}

@media (max-width: 600px) {
  .scenario-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Per-course midterm prediction list ── */
.pred-list-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 160px;
  gap: 12px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.pred-legend strong {
  color: var(--accent);
}

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

.pred-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 160px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.pred-row:last-child {
  border-bottom: none;
}

.pred-info {
  min-width: 0;
}

.pred-code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.pred-name {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pred-mid {
  text-align: center;
}

.pred-mid-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.pred-mid-val.muted {
  color: var(--text-faint);
}

.pred-mid-lbl {
  font-size: 10px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pred-grades {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

.pred-grade {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  min-width: 38px;
  text-align: center;
  border: 1px solid transparent;
}

.pred-grade.pess {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: #fecaca;
}

.pred-grade.opt {
  background: var(--info-bg);
  color: var(--info);
  border-color: #bfdbfe;
}

.pred-grade.exp {
  background: var(--accent-bg);
  color: var(--accent-dark);
  border-color: #bfdbfe;
  font-weight: 800;
  font-size: 13px;
}

.pred-grade.exp.g-low {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: #fde68a;
}

.pred-grade.exp.g-fail {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: #fecaca;
}

@media (max-width: 600px) {

  .pred-list-head,
  .pred-row {
    grid-template-columns: minmax(0, 1fr) 70px;
  }

  .pred-list-head> :last-child,
  .pred-row .pred-grades {
    display: none;
  }

  .pred-row .pred-grades {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 6px;
  }

  .pred-list-head {
    display: none;
  }
}

/* ── Target CGPA slider block ── */
.target-cgpa-block {
  margin-top: 18px;
  padding: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.target-cgpa-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.target-cgpa-slider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.target-cgpa-slider input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  outline: none;
}

.target-cgpa-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.target-cgpa-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
}

.target-cgpa-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-dark);
  min-width: 50px;
  text-align: right;
}

.target-result {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
}

.target-result.ok {
  background: var(--accent-bg);
  border: 1px solid #bfdbfe;
  color: var(--text);
}

.target-result.ok svg {
  color: var(--accent);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.target-result.danger {
  background: var(--danger-bg);
  border: 1px solid #fecaca;
  color: var(--text);
}

.target-result.danger svg {
  color: var(--danger);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* ── Exam schedule list ── */
.exam-list {
  display: flex;
  flex-direction: column;
}

.exam-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.exam-row:last-child {
  border-bottom: none;
}

.exam-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-bg);
  padding: 4px 8px;
  border-radius: 6px;
  text-align: center;
}

.exam-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exam-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.exam-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 600px) {
  .exam-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .exam-code {
    justify-self: start;
  }
}

/* ── Grade distribution bars ── */
.grade-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

.g-bar {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: center;
}

.g-bar-letter {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.g-bar-track {
  height: 12px;
  background: var(--bg-subtle);
  border-radius: 999px;
  overflow: hidden;
}

.g-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.g-bar-fill.g-strong {
  background: var(--accent);
}

.g-bar-fill.g-mid {
  background: #60a5fa;
}

.g-bar-fill.g-low {
  background: var(--warning);
}

.g-bar-fill.g-fail {
  background: var(--danger);
}

.g-bar-count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
}

/* ── Timetable day-by-day summary ── */
.tt-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.tt-summary-day {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--bg);
}

.tt-summary-day.empty {
  background: var(--bg-subtle);
  border-style: dashed;
}

.tt-summary-name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.tt-summary-day.empty .tt-summary-name {
  color: var(--text-faint);
}

.tt-summary-meta {
  font-size: 12px;
  color: var(--text-faint);
  font-style: italic;
}

.tt-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tt-summary-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: baseline;
}

.tt-summary-time {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  grid-row: 1 / 3;
  align-self: center;
}

.tt-summary-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tt-summary-loc {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── Raw schedule fallback (no times detected) ── */
.tt-raw-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.tt-raw-row:last-child {
  border-bottom: none;
}

.tt-raw-day {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.tt-raw-detail {
  font-size: 12px;
  color: var(--text-muted);
  white-space: pre-line;
  line-height: 1.5;
}

/* ── Important-step variant in the import modal ── */
.bm-step.bm-step-important {
  background: var(--warning-bg);
  border-color: #fde68a;
}

.bm-step.bm-step-important .bm-step-num {
  background: var(--warning);
}