/* ===================================================
   STUDENT FLOW — Premium Interactive Design
   =================================================== */

/* ================================================
   Page Transitions
   ================================================ */
.sf-flow {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  animation: sfFadeIn 0.4s var(--ease-out);
  background: #e4e9f0;
}

@keyframes sfFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.sf-section {
  opacity: 0;
  transform: translateY(16px);
  animation: sfReveal 0.5s var(--ease-out) forwards;
}
.sf-section:nth-child(2) { animation-delay: 0.08s; }
.sf-section:nth-child(3) { animation-delay: 0.16s; }
.sf-section:nth-child(4) { animation-delay: 0.24s; }
.sf-section:nth-child(5) { animation-delay: 0.32s; }

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

/* ================================================
   Loading
   ================================================ */
.sf-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  gap: 1rem;
  color: var(--muted);
  animation: sfFadeIn 0.3s var(--ease-out);
}

.sf-error, .sf-closed {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  gap: 0.75rem;
  text-align: center;
  animation: sfFadeIn 0.4s var(--ease-out);
}
.sf-error h3, .sf-closed h2 { margin: 0; color: var(--navy); }
.sf-error p, .sf-closed p { color: var(--muted); max-width: 400px; }
.sf-error-icon {
  font-size: 2.5rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(185, 28, 28, 0.08);
  border-radius: 50%;
  color: #b91c1c;
}
.sf-closed-icon {
  font-size: 3rem;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(185, 28, 28, 0.08);
  border-radius: 50%;
  color: #b91c1c;
}

.sf-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 2rem;
  gap: 0.5rem;
  text-align: center;
  color: var(--muted);
  animation: sfFadeIn 0.4s var(--ease-out);
}
.sf-empty-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border-radius: 50%;
  color: var(--muted);
  border: 1.5px dashed var(--line-strong);
}

.sf-empty {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

/* ================================================
   Header — Animated Gradient Accent
   ================================================ */
.sf-header {
  background: var(--navy);
  color: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sf-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--gold) 0%,
    var(--blue-light) 25%,
    var(--gold) 50%,
    var(--blue-light) 75%,
    var(--gold) 100%);
  background-size: 200% 100%;
  animation: sfShimmerBar 4s linear infinite;
  opacity: 0.9;
}

@keyframes sfShimmerBar {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.sf-header-content {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.sf-header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.sf-header h1 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  font-family: var(--font-display);
}

.sf-header-sub {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  opacity: 0.55;
  font-weight: 400;
}

.sf-header-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.sf-header-actions .button {
  background: rgba(255, 255, 255, 0.07);
  color: #c8d8e8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 36px;
}
.sf-header-actions .button:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ================================================
   Step Indicator — Glow on Active
   ================================================ */
.sf-step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.sf-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s var(--ease-out);
}
.sf-step-num.active {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35), 0 0 24px rgba(255, 255, 255, 0.1);
  animation: sfStepPulse 2s ease-in-out infinite;
}
.sf-step-num.completed {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
  box-shadow: 0 0 8px rgba(15, 118, 110, 0.25);
}

@keyframes sfStepPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 255, 255, 0.35), 0 0 24px rgba(255, 255, 255, 0.1); }
  50% { box-shadow: 0 0 16px rgba(255, 255, 255, 0.5), 0 0 32px rgba(255, 255, 255, 0.15); }
}

.sf-step-line {
  width: 36px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 4px;
  transition: background 0.4s;
}
.sf-step-line.completed { background: var(--success); }

/* ================================================
   Body
   ================================================ */
.sf-body {
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 2rem 4rem;
  flex: 1;
}

#coe-render-area {
  background: #e4e9f0;
  margin: 0 -2rem;
  padding: 2rem;
  min-height: calc(100vh - 200px);
}

/* ================================================
   Info Banner — Avatar with gradient ring
   ================================================ */
.sf-info-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem 1.6rem;
  background: #e4e9f0;
  border: none;
  border-radius: 18px;
  box-shadow: 6px 6px 14px rgba(163, 177, 198, 0.4), -6px -6px 14px rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.sf-info-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--gold), var(--blue), var(--gold));
  background-size: 200% 100%;
  animation: sfShimmerBar 4s linear infinite;
}
.sf-info-banner:hover {
  box-shadow: 8px 8px 18px rgba(163, 177, 198, 0.5), -8px -8px 18px rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.sf-info-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy), var(--blue-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  box-shadow: 3px 3px 6px rgba(163, 177, 198, 0.4), -3px -3px 6px rgba(255, 255, 255, 0.85);
}
.sf-info-avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius-md) + 3px);
  background: linear-gradient(135deg, var(--gold), var(--blue-light));
  z-index: -1;
  opacity: 0.6;
}

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

.sf-info-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
}

.sf-info-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.sf-info-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  background: #dfe4eb;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  border: none;
  box-shadow: inset 1px 1px 2px rgba(163, 177, 198, 0.25), inset -1px -1px 2px rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
}
.sf-info-tag:hover {
  border-color: var(--line-strong);
  background: var(--bg-subtle);
}

.sf-info-badges {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.sf-info-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.6rem 1rem;
  background: #e4e9f0;
  border: none;
  border-radius: 12px;
  box-shadow: 3px 3px 6px rgba(163, 177, 198, 0.35), -3px -3px 6px rgba(255, 255, 255, 0.75);
  min-width: 76px;
  transition: all 0.25s var(--ease-out);
}
.sf-info-badge:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 10px rgba(163, 177, 198, 0.45), -5px -5px 10px rgba(255, 255, 255, 0.9);
}
.sf-info-badge small {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}
.sf-info-badge strong {
  font-size: 0.95rem;
  color: var(--ink);
  font-family: var(--font-display);
  transition: color 0.2s;
}

.sf-text-good { color: var(--success) !important; }
.sf-text-warn { color: var(--warning) !important; }

/* ================================================
   Honor Badges — Dean's Lister / President's Lister
   ================================================ */
.sf-honor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  vertical-align: middle;
  margin-left: 0.4rem;
  line-height: 1;
  animation: sf-honor-shimmer 2.5s ease-in-out infinite;
}
.sf-honor-badge i { font-size: 0.6rem; }
.sf-honor-deans {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.25);
}
.sf-honor-presidents {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
  border: 1px solid #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}
@keyframes sf-honor-shimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

/* ================================================
   Target Banner — Blue gradient
   ================================================ */
.sf-target-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: #e4e9f0;
  border: none;
  border-radius: 18px;
  box-shadow: 6px 6px 14px rgba(163, 177, 198, 0.4), -6px -6px 14px rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  transition: all 0.3s var(--ease-out);
}
.sf-target-banner:hover {
  box-shadow: 8px 8px 18px rgba(163, 177, 198, 0.5), -8px -8px 18px rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.sf-target-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.1), inset -2px -2px 4px rgba(255, 255, 255, 0.1);
}
.sf-target-icon svg { width: 22px; height: 22px; }

.sf-target-info h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1e40af;
  font-family: var(--font-display);
}
.sf-target-info p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: #3b82f6;
}

/* ================================================
   Sections
   ================================================ */
.sf-section-header {
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(163, 177, 198, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.sf-progress-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #e4e9f0;
  color: var(--muted);
  border: none;
  box-shadow: inset 2px 2px 4px rgba(163, 177, 198, 0.35), inset -2px -2px 4px rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}
.sf-section-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sf-section-header h2 i {
  color: var(--blue);
  font-size: 0.95rem;
}
.sf-section-sub {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ================================================
   Subject Search / Filter
   ================================================ */
.sf-search-wrap {
  position: relative;
  margin-bottom: 1rem;
}
.sf-search-input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  background: #e4e9f0;
  border: none;
  border-radius: 14px;
  box-shadow: inset 3px 3px 6px rgba(163, 177, 198, 0.5), inset -3px -3px 6px rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: var(--ink);
  transition: all var(--transition-fast);
  outline: none;
}
.sf-search-input:focus {
  border: none;
  box-shadow: inset 4px 4px 8px rgba(163, 177, 198, 0.55), inset -4px -4px 8px rgba(255, 255, 255, 0.9), 0 0 0 3px rgba(26, 115, 181, 0.15);
}
.sf-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  transition: color var(--transition-fast);
}
.sf-search-input:focus ~ .sf-search-icon { color: var(--blue); }
.sf-search-count {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: var(--muted);
  background: #e4e9f0;
  padding: 0.1rem 0.5rem;
  border-radius: 8px;
  box-shadow: inset 1px 1px 2px rgba(163, 177, 198, 0.25), inset -1px -1px 2px rgba(255, 255, 255, 0.6);
}

/* ================================================
   Grades — Collapsible Sections
   ================================================ */
.sf-grades-section {
  background: #e4e9f0;
  border-radius: 18px;
  box-shadow: 6px 6px 14px rgba(163, 177, 198, 0.4), -6px -6px 14px rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
  overflow: hidden;
  border: none;
  transition: all 0.3s var(--ease-out);
}
.sf-grades-section:hover {
  box-shadow: 8px 8px 18px rgba(163, 177, 198, 0.5), -8px -8px 18px rgba(255, 255, 255, 0.95);
}

.sf-grades-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.2rem;
  background: #dfe4eb;
  border-bottom: 1px solid rgba(163, 177, 198, 0.25);
  cursor: pointer;
  user-select: none;
  transition: background var(--transition-fast);
}
.sf-grades-header:hover { background: var(--bg); }
.sf-grades-header h4 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
}
.sf-grades-meta {
  display: flex;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.sf-grades-sep { opacity: 0.35; }

.sf-grades-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e4e9f0;
  box-shadow: 2px 2px 4px rgba(163, 177, 198, 0.35), -2px -2px 4px rgba(255, 255, 255, 0.75);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.sf-grades-toggle svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: transform 0.3s var(--ease-out);
}
.sf-grades-section.collapsed .sf-grades-toggle svg {
  transform: rotate(-90deg);
}

.sf-grades-table-wrap {
  overflow: hidden;
  max-height: 800px;
  transition: max-height 0.4s var(--ease-out), opacity 0.3s;
}
.sf-grades-section.collapsed .sf-grades-table-wrap {
  max-height: 0;
  opacity: 0;
}

.sf-grades-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.sf-grades-table th {
  text-align: left;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid rgba(163, 177, 198, 0.25);
  background: #dfe4eb;
}
.sf-grades-table td {
  padding: 0.55rem 1.2rem;
  border-bottom: 1px solid rgba(163, 177, 198, 0.2);
  color: var(--ink);
  transition: background var(--transition-fast);
}
.sf-grades-table tr:last-child td { border-bottom: none; }
.sf-grades-table tbody tr:hover { background: #dfe4eb; }

.sf-grades-code {
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--blue);
  white-space: nowrap;
}
.sf-grades-units { text-align: center; font-weight: 500; }
.sf-grades-grade { text-align: center; }

.sf-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.sf-grade:hover {
  transform: scale(1.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.sf-grade-na { background: #f1f5f9; color: #94a3b8; }
.sf-grade-excellent { background: #dcfce7; color: #166534; }
.sf-grade-good { background: #dbeafe; color: #1e40af; }
.sf-grade-satisfactory { background: #fef3c7; color: #92400e; }
.sf-grade-failing { background: #fee2e2; color: #991b1b; }

/* ================================================
   Grade Distribution Summary
   ================================================ */
.sf-grade-summary {
  display: flex;
  gap: 0.6rem;
  padding: 0.85rem 1.2rem;
  background: #dfe4eb;
  border-top: 1px solid rgba(163, 177, 198, 0.25);
  flex-wrap: wrap;
}
.sf-grade-dist {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.25rem 0.6rem;
  background: #e4e9f0;
  border-radius: var(--radius-sm);
  box-shadow: inset 1px 1px 2px rgba(163, 177, 198, 0.25), inset -1px -1px 2px rgba(255, 255, 255, 0.6);
}
.sf-grade-dist-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

/* ================================================
   Target Table — Enhanced
   ================================================ */
.sf-target-table-wrap {
  background: #e4e9f0;
  border-radius: 18px;
  box-shadow: 6px 6px 14px rgba(163, 177, 198, 0.4), -6px -6px 14px rgba(255, 255, 255, 0.85);
  overflow: hidden;
  border: none;
  transition: all 0.3s var(--ease-out);
}
.sf-target-table-wrap:hover {
  box-shadow: 8px 8px 18px rgba(163, 177, 198, 0.5), -8px -8px 18px rgba(255, 255, 255, 0.95);
}

.sf-target-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.sf-target-table th {
  text-align: left;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid rgba(163, 177, 198, 0.25);
  background: #dfe4eb;
}
.sf-target-table td {
  padding: 0.65rem 1.2rem;
  border-bottom: 1px solid rgba(163, 177, 198, 0.2);
  color: var(--ink);
  transition: background var(--transition-fast);
}
.sf-target-table tr:last-child td { border-bottom: none; }
.sf-target-table tbody tr:hover { background: #dfe4eb; }
.sf-target-table tfoot td {
  font-weight: 600;
  background: #dfe4eb;
  border-top: 2px solid rgba(163, 177, 198, 0.3);
}

.sf-target-code {
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--blue);
  white-space: nowrap;
}
.sf-target-units { text-align: center; font-weight: 500; }
.sf-target-prereq { font-size: 0.78rem; color: var(--muted); max-width: 250px; }
.sf-target-total-label { text-align: right; }

.sf-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  background: var(--success-bg);
  color: var(--success);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  border: none;
  box-shadow: inset 1px 1px 2px rgba(163, 177, 198, 0.2), inset -1px -1px 2px rgba(255, 255, 255, 0.5);
  transition: all var(--transition-fast);
}
.sf-category-tag:hover {
  border-color: var(--success-border);
}

/* ================================================
   Actions — Enhanced with animation
   ================================================ */
.sf-actions {
  padding: 1.5rem 0;
  text-align: center;
}

.sf-btn-proceed {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2.2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}
.sf-btn-proceed::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.sf-btn-proceed:hover::before {
  transform: translateX(100%);
}

.sf-blocked {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: #e4e9f0;
  border: none;
  border-radius: 14px;
  box-shadow: inset 3px 3px 6px rgba(163, 177, 198, 0.5), inset -3px -3px 6px rgba(255, 255, 255, 0.85);
  color: #92400e;
  font-size: 0.9rem;
  text-align: left;
  animation: sfFadeIn 0.4s var(--ease-out);
}
.sf-blocked-icon {
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e4e9f0;
  border-radius: 10px;
  color: #92400e;
  flex-shrink: 0;
  box-shadow: inset 2px 2px 4px rgba(163, 177, 198, 0.35), inset -2px -2px 4px rgba(255, 255, 255, 0.75);
}

/* ================================================
   Block Selection — Cards with glow & stagger
   ================================================ */
.sf-blocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sf-block-card {
  position: relative;
  background: #e4e9f0;
  border-radius: 18px;
  box-shadow: 6px 6px 14px rgba(163, 177, 198, 0.4), -6px -6px 14px rgba(255, 255, 255, 0.85);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  overflow: hidden;
  animation: sfCardIn 0.4s var(--ease-out) backwards;
}
.sf-block-card:nth-child(1) { animation-delay: 0.05s; }
.sf-block-card:nth-child(2) { animation-delay: 0.1s; }
.sf-block-card:nth-child(3) { animation-delay: 0.15s; }
.sf-block-card:nth-child(4) { animation-delay: 0.2s; }

@keyframes sfCardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.sf-block-card:hover {
  box-shadow: 8px 8px 18px rgba(163, 177, 198, 0.5), -8px -8px 18px rgba(255, 255, 255, 0.95);
  transform: translateY(-3px);
}
.sf-block-card.selected {
  box-shadow:
    inset 3px 3px 6px rgba(163, 177, 198, 0.4), inset -3px -3px 6px rgba(255, 255, 255, 0.8),
    0 0 0 3px rgba(26, 115, 181, 0.2);
  transform: translateY(-2px);
}
.sf-block-card.selected::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  z-index: 1;
}

.sf-block-card-top {
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid rgba(163, 177, 198, 0.2);
}

.sf-block-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.sf-block-card-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.sf-block-card-header h3::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  transition: background 0.2s;
}
.sf-block-card.selected .sf-block-card-header h3::before {
  background: var(--success);
  box-shadow: 0 0 6px rgba(15, 118, 110, 0.4);
}

.sf-block-slots { display: flex; align-items: baseline; gap: 0.2rem; }
.sf-block-slots-num {
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.2s;
}
.sf-block-slots-label { font-size: 0.72rem; color: var(--muted); }
.sf-slots-good .sf-block-slots-num { color: var(--success); }
.sf-slots-low .sf-block-slots-num { color: var(--warning); }
.sf-slots-critical .sf-block-slots-num { color: var(--danger); }

.sf-block-slot-bar {
  height: 4px;
  background: rgba(163, 177, 198, 0.3);
  border-radius: 2px;
  overflow: hidden;
}
.sf-block-slot-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s var(--ease-out);
}
.sf-slots-good .sf-block-slot-fill { background: linear-gradient(90deg, #0f766e, #14b8a6); }
.sf-slots-low .sf-block-slot-fill { background: linear-gradient(90deg, #b45309, #f59e0b); }
.sf-slots-critical .sf-block-slot-fill { background: linear-gradient(90deg, #b91c1c, #ef4444); }

.sf-block-card-subjects {
  padding: 0.7rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.3s;
}
.sf-block-card:hover .sf-block-card-subjects,
.sf-block-card.selected .sf-block-card-subjects {
  max-height: 500px;
  padding: 0.7rem 1.2rem;
}

.sf-block-subject {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(163, 177, 198, 0.2);
  animation: sfFadeIn 0.2s var(--ease-out) backwards;
}
.sf-block-subject:last-child { border-bottom: none; }

.sf-block-subject-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sf-block-subject-code {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
}
.sf-block-subject-units {
  font-size: 0.68rem;
  color: var(--muted);
  background: #dfe4eb;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-weight: 500;
  box-shadow: inset 1px 1px 2px rgba(163, 177, 198, 0.25), inset -1px -1px 2px rgba(255, 255, 255, 0.6);
}

.sf-block-subject-name {
  font-size: 0.8rem;
  color: var(--ink);
  margin-top: 0.1rem;
}

.sf-block-subject-schedule {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.sf-block-subject-schedule::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
  flex-shrink: 0;
}

/* ================================================
   Block List Grid — Compact cards
   ================================================ */
.sf-block-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sf-block-list-card {
  background: #e4e9f0;
  border-radius: 18px;
  border: none;
  box-shadow: 6px 6px 14px rgba(163, 177, 198, 0.4), -6px -6px 14px rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  overflow: hidden;
  animation: sfCardIn 0.35s var(--ease-out) backwards;
}
.sf-block-list-card:nth-child(1) { animation-delay: 0.05s; }
.sf-block-list-card:nth-child(2) { animation-delay: 0.1s; }
.sf-block-list-card:nth-child(3) { animation-delay: 0.15s; }
.sf-block-list-card:nth-child(4) { animation-delay: 0.2s; }
.sf-block-list-card:hover {
  box-shadow: 8px 8px 18px rgba(163, 177, 198, 0.5), -8px -8px 18px rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.sf-block-list-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem 0.6rem;
}

.sf-block-list-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sf-block-list-dot.sf-slots-good { background: var(--success); }
.sf-block-list-dot.sf-slots-low { background: var(--warning); }
.sf-block-list-dot.sf-slots-critical { background: var(--danger); }

.sf-block-list-info {
  flex: 1;
  min-width: 0;
}
.sf-block-list-info h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-display);
}
.sf-block-list-info p {
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.sf-block-list-slots {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  flex-shrink: 0;
}
.sf-block-list-slots-num {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-display);
}
.sf-block-list-slots-label {
  font-size: 0.7rem;
  color: var(--muted);
}

.sf-block-list-bar {
  height: 3px;
  margin: 0 1.1rem;
  background: rgba(163, 177, 198, 0.3);
  border-radius: 2px;
  overflow: hidden;
}
.sf-block-list-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s var(--ease-out);
}
.sf-block-list-bar-fill.sf-slots-good { background: linear-gradient(90deg, #0f766e, #14b8a6); }
.sf-block-list-bar-fill.sf-slots-low { background: linear-gradient(90deg, #b45309, #f59e0b); }
.sf-block-list-bar-fill.sf-slots-critical { background: linear-gradient(90deg, #b91c1c, #ef4444); }

.sf-block-list-days {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.6rem 1.1rem 0;
}
.sf-block-list-day-tag {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--blue);
  background: #e4e9f0;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
  box-shadow: inset 1px 1px 2px rgba(163, 177, 198, 0.25), inset -1px -1px 2px rgba(255, 255, 255, 0.6);
}

.sf-block-list-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  transition: color 0.2s;
}
.sf-block-list-card:hover .sf-block-list-action {
  color: #1e40af;
}
.sf-block-list-action svg {
  transition: transform 0.2s;
}
.sf-block-list-card:hover .sf-block-list-action svg {
  transform: translateX(3px);
}

/* ================================================
   Block Detail View — Full schedule
   ================================================ */
.sf-detail-capacity {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.3rem;
  background: #e4e9f0;
  border: none;
  border-radius: 18px;
  box-shadow: 6px 6px 14px rgba(163, 177, 198, 0.4), -6px -6px 14px rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}
.sf-detail-capacity-info {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-shrink: 0;
}
.sf-detail-capacity-num {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1;
}
.sf-detail-capacity.sf-slots-good .sf-detail-capacity-num { color: var(--success); }
.sf-detail-capacity.sf-slots-low .sf-detail-capacity-num { color: var(--warning); }
.sf-detail-capacity.sf-slots-critical .sf-detail-capacity-num { color: var(--danger); }
.sf-detail-capacity-label {
  font-size: 0.8rem;
  color: var(--muted);
}
.sf-detail-capacity-bar {
  flex: 1;
  height: 6px;
  background: rgba(163, 177, 198, 0.3);
  border-radius: 3px;
  overflow: hidden;
}
.sf-detail-capacity-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s var(--ease-out);
}
.sf-detail-capacity-fill.sf-slots-good { background: linear-gradient(90deg, #0f766e, #14b8a6); }
.sf-detail-capacity-fill.sf-slots-low { background: linear-gradient(90deg, #b45309, #f59e0b); }
.sf-detail-capacity-fill.sf-slots-critical { background: linear-gradient(90deg, #b91c1c, #ef4444); }

.sf-detail-schedule {
  background: #e4e9f0;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 6px 6px 14px rgba(163, 177, 198, 0.4), -6px -6px 14px rgba(255, 255, 255, 0.85);
}
.sf-detail-schedule-header {
  padding: 1rem 1.3rem;
  border-bottom: 1px solid rgba(163, 177, 198, 0.2);
}
.sf-detail-schedule-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sf-detail-schedule-header h2 i {
  color: var(--blue);
  font-size: 0.9rem;
}

.sf-detail-table-wrap {
  overflow-x: auto;
}
.sf-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.sf-detail-table th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(163, 177, 198, 0.2);
  background: #dfe4eb;
  white-space: nowrap;
}
.sf-detail-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(163, 177, 198, 0.2);
  vertical-align: top;
}
.sf-detail-table tr:last-child td { border-bottom: none; }
.sf-detail-table tr:hover td { background: #dfe4eb; }

.sf-detail-code {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}
.sf-detail-units {
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.sf-detail-sched {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.sf-detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
}
.sf-detail-lec {
  background: #e4e9f0;
  color: #1e40af;
  box-shadow: inset 1px 1px 2px rgba(163, 177, 198, 0.25), inset -1px -1px 2px rgba(255, 255, 255, 0.6);
}
.sf-detail-lab {
  background: #e4e9f0;
  color: #166534;
  box-shadow: inset 1px 1px 2px rgba(163, 177, 198, 0.25), inset -1px -1px 2px rgba(255, 255, 255, 0.6);
}
.sf-detail-tag i { font-size: 0.6rem; }

.sf-detail-submit-bar {
  display: flex;
  justify-content: center;
  padding: 1rem 0 0.5rem;
}

/* ================================================
   Submit Bar — Frosted glass + progress animation
   ================================================ */
.sf-submit-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 -4px 20px rgba(10, 22, 40, 0.06);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  z-index: 5;
  animation: sfSlideUp 0.3s var(--ease-out);
}

@keyframes sfSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.sf-submit-info { font-size: 0.85rem; color: var(--muted); }
.sf-submit-info strong { color: var(--blue); font-weight: 700; }

/* ================================================
   Status Dashboard — Gradient cards + pulse
   ================================================ */
.sf-status-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-xs);
  border: 1px solid;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.sf-status-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.sf-status-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}

.sf-status-pending {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border-color: #fde047;
}
.sf-status-pending::before { background: linear-gradient(90deg, #eab308, #f59e0b); }

.sf-status-enrolled {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #86efac;
}
.sf-status-enrolled::before { background: linear-gradient(90deg, #0f766e, #14b8a6); }

.sf-status-rejected {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fca5a5;
}
.sf-status-rejected::before { background: linear-gradient(90deg, #b91c1c, #ef4444); }

.sf-status-card-icon {
  font-size: 1.5rem;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.sf-status-card:hover .sf-status-card-icon { transform: scale(1.05); }

.sf-status-pending .sf-status-card-icon {
  color: #b45309;
  animation: sfPulseIcon 2s ease-in-out infinite;
}
.sf-status-enrolled .sf-status-card-icon { color: #0f766e; }
.sf-status-rejected .sf-status-card-icon { color: #b91c1c; }
@keyframes sfPulseIcon {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(234, 179, 8, 0); }
}

.sf-status-card-info { flex: 1; }
.sf-status-card-info h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-display);
}
.sf-status-card-info p { margin: 0.15rem 0 0; font-size: 0.82rem; opacity: 0.75; }

.sf-status-card-detail {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-shrink: 0;
}
.sf-status-detail-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.sf-status-detail-row:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.03);
}
.sf-status-detail-row small {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.55;
  font-weight: 600;
}
.sf-status-detail-row strong { font-size: 0.85rem; }

/* ================================================
   Timeline — Animated with glow
   ================================================ */
.sf-timeline { display: flex; flex-direction: column; padding: 0.5rem 0; }

.sf-timeline-item {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 0;
  position: relative;
}
.sf-timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 2.8rem;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.sf-timeline-item.completed::after { background: var(--success); }

.sf-timeline-marker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-subtle);
  border: 2px solid var(--line);
  z-index: 1;
  transition: all 0.4s var(--ease-out);
}
.sf-timeline-item.active .sf-timeline-marker {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(26, 115, 181, 0.12), 0 0 16px rgba(26, 115, 181, 0.2);
  animation: sfTimelinePulse 2s ease-in-out infinite;
}
.sf-timeline-item.completed .sf-timeline-marker {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

@keyframes sfTimelinePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(26, 115, 181, 0.12), 0 0 16px rgba(26, 115, 181, 0.2); }
  50% { box-shadow: 0 0 0 7px rgba(26, 115, 181, 0.06), 0 0 24px rgba(26, 115, 181, 0.12); }
}

.sf-timeline-icon {
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sf-timeline-content { flex: 1; padding-top: 0.2rem; }
.sf-timeline-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  transition: color 0.2s;
}
.sf-timeline-desc { font-size: 0.78rem; color: var(--muted); margin-top: 0.1rem; }
.sf-timeline-item.active .sf-timeline-label { color: var(--blue); }
.sf-timeline-item.completed .sf-timeline-label { color: var(--success); }

/* ================================================
   Enrolled / Rejected — Enhanced
   ================================================ */
.sf-enrolled-actions { text-align: center; padding: 1rem 0; }

.sf-enrolled-msg {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem 1.8rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  text-align: left;
  animation: sfFadeIn 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.sf-enrolled-msg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0f766e, #14b8a6);
}
.sf-enrolled-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 118, 110, 0.1);
  border-radius: var(--radius-md);
  color: #0f766e;
  flex-shrink: 0;
  animation: sfBounce 0.6s var(--ease-out);
}
@keyframes sfBounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.sf-enrolled-msg h3 { margin: 0; font-size: 1.15rem; color: #166534; font-family: var(--font-display); }
.sf-enrolled-msg p { margin: 0.2rem 0 0; font-size: 0.88rem; color: #166534; opacity: 0.75; }

.sf-enrolled-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.sf-rejected-msg {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem 1.8rem;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fca5a5;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
  text-align: left;
  animation: sfFadeIn 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.sf-rejected-msg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #b91c1c, #ef4444);
}
.sf-rejected-icon {
  font-size: 1.8rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(185, 28, 28, 0.1);
  border-radius: var(--radius-md);
  color: #b91c1c;
  flex-shrink: 0;
}
.sf-rejected-msg h3 { margin: 0; font-size: 1.1rem; color: #991b1b; font-family: var(--font-display); }
.sf-rejected-msg p { margin: 0.2rem 0 0; font-size: 0.85rem; color: #991b1b; opacity: 0.75; }

/* ================================================
   Confetti
   ================================================ */
.sf-confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.sf-confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: sfConfettiFall 2.5s linear forwards;
}

@keyframes sfConfettiFall {
  0% {
    transform: translateY(-20px) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg) scale(0.3);
    opacity: 0;
  }
}

/* ================================================
   Confirmation Dialog
   ================================================ */
.sf-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  animation: sfFadeIn 0.15s var(--ease-out);
}
.sf-confirm-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-float);
  border: 1px solid var(--line);
  animation: sfConfirmIn 0.3s var(--ease-out);
}
@keyframes sfConfirmIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.sf-confirm-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.sf-confirm-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sf-confirm-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-display);
}
.sf-confirm-body {
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.sf-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 768px) {
  .sf-header { padding: 0.8rem 1rem; }
  .sf-header-content { flex-direction: column; align-items: flex-start; }
  .sf-header-actions { width: 100%; justify-content: flex-end; }
  .sf-body { padding: 1rem; }
  .sf-info-banner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .sf-info-badges { width: 100%; justify-content: flex-start; }
  .sf-step-indicator { display: none; }
  .sf-blocks-grid { grid-template-columns: 1fr; }
  .sf-block-list-grid { grid-template-columns: 1fr; }
  .sf-status-card { flex-direction: column; align-items: flex-start; }
  .sf-target-banner { flex-direction: column; text-align: center; }
  .sf-submit-bar { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (max-width: 480px) {
  .sf-header h1 { font-size: 1.05rem; }
  .sf-header-sub { font-size: 0.72rem; }
  .sf-info-badge { min-width: 50px; padding: 0.3rem 0.4rem; }
  .sf-info-badge small { font-size: 0.55rem; }
  .sf-info-badge strong { font-size: 0.8rem; }
  .sf-honor-badge { font-size: 0.55rem; padding: 0.15rem 0.4rem; }
  .sf-honor-badge i { font-size: 0.5rem; }
  .sf-block-card-subjects { max-height: none; padding: 0.6rem 1rem; }
  .sf-block-card-top { padding: 0.9rem 1rem; }
  .sf-block-card-header h3 { font-size: 0.85rem; }
  .sf-grades-table { font-size: 0.78rem; }
  .sf-grades-table th, .sf-grades-table td { padding: 0.4rem 0.8rem; }
  .sf-target-table { font-size: 0.78rem; }
  .sf-target-table th, .sf-target-table td { padding: 0.5rem 0.8rem; }
  .sf-detail-table { font-size: 0.78rem; }
  .sf-detail-table th, .sf-detail-table td { padding: 0.5rem 0.7rem; }
  .sf-detail-capacity { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .sf-timeline-item { gap: 0.7rem; }
  .sf-timeline-marker { width: 30px; height: 30px; font-size: 0.7rem; }
  .sf-timeline-label { font-size: 0.82rem; }
  .sf-timeline-desc { font-size: 0.72rem; }
  .sf-enrolled-msg { padding: 1rem; flex-direction: column; text-align: center; }
  .sf-rejected-msg { padding: 1rem; flex-direction: column; text-align: center; }
  .sf-status-card-detail { flex-direction: row; gap: 0.3rem; }
  .sf-status-detail-row { padding: 0.3rem 0.5rem; }
  .sf-confirm-header { gap: 0.5rem; }
  .sf-confirm-header h3 { font-size: 1rem; }
  .sf-confirm-body { font-size: 0.82rem; }
}
