@import url("./dj-theme-standard.css");

/* ============================================
   MODERN ACCOUNT PAGE STYLES
   DhruvaJnanam Account Details Redesign
   ============================================ */

/* ============================================
   BASE STYLES & CONTAINER
   ============================================ */
.account-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 20px;
  font-family: var(--font-main, "Outfit", "Trebuchet MS", sans-serif);
}

/* ============================================
   ACCOUNT TOP - MERGED RESOURCES & SUPPORT
   ============================================ */
/* ============================================
   ACCOUNT TOP - MERGED RESOURCES & SUPPORT
   ============================================ */
.account-top-grid {
  display: flex;
  margin: 6px 0 24px 0 !important;
}

/* Single-row bar holding both resources and support groups */
.resources-support-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 240, 0.96) 100%);
  border-radius: 20px;
  border: 1.5px solid rgba(255, 140, 0, 0.22);
  box-shadow: 0 10px 30px -5px rgba(255, 140, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.03);
  padding: 6px 12px !important;
  overflow: hidden !important;
  position: relative;
  margin-bottom: 24px !important;
}

/* ============================================
   QUICK LINKS OVERFLOW & SCROLL CONTROL SYSTEM
   ============================================ */
.rs-scroll-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

/* Left & Right Soft Fade Gradients */
.rs-scroll-wrapper::before,
.rs-scroll-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.rs-scroll-wrapper::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 251, 245, 0.95) 0%, transparent 100%);
}

.rs-scroll-wrapper::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 251, 245, 0.95) 0%, transparent 100%);
}

.rs-scroll-wrapper.can-scroll-left::before {
  opacity: 1;
}

.rs-scroll-wrapper.can-scroll-right::after {
  opacity: 1;
}

/* Floating Chevron Scroll Buttons */
.rs-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #fdba74;
  color: #ea580c;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  padding: 0;
  user-select: none;
}

.rs-scroll-btn:hover {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
  transform: translateY(-50%) scale(1.1);
}

.rs-scroll-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.rs-scroll-left {
  left: -2px;
}

.rs-scroll-right {
  right: -2px;
}

/* Scroll Container Adjustments - Enforce Single Row */
.rs-main-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  scrollbar-width: thin;
  scrollbar-color: #fdba74 transparent;
  -webkit-overflow-scrolling: touch;
  padding: 4px 6px 8px 6px !important;
  scroll-behavior: smooth;
  scroll-padding: 0 12px;
}

/* Customized Sleek 4px Micro-Scrollbar */
.rs-main-row::-webkit-scrollbar {
  height: 4px;
  display: block;
}

.rs-main-row::-webkit-scrollbar-track {
  background: rgba(254, 215, 170, 0.2);
  border-radius: 999px;
}

.rs-main-row::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #fdba74 0%, #ea580c 100%);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.rs-main-row::-webkit-scrollbar-thumb:hover {
  background: #c2410c;
}

.rs-group {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
}

/* Vertical divider between Resources and Support */
.rs-divider {
  width: 1.5px;
  height: 24px;
  background: linear-gradient(to bottom, transparent, #FDBA74, transparent);
  flex-shrink: 0;
  align-self: center;
  margin: 0 4px;
}

.resources-section, .support-section {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* "RESOURCES" / "SUPPORT" label */
.rs-label {
  font-size: 11px;
  font-weight: 800;
  color: #a0522d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: fit-content;
}

.account-panel {
  background: linear-gradient(135deg, #ffffff 0%, #fffbf5 100%);
  border-radius: 24px;
  border: 2px solid rgba(191, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(191, 0, 0, 0.05);
  flex: 1 1 280px;
  min-width: 280px;
  transition: all 0.3s ease;
}

.account-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(191, 0, 0, 0.1);
}

.panel-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9A3412;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-user-details-data {
  max-width: 900px;
  margin: 16px auto;
}

/* ============================================
   SINGLE-ROW DHRUVA EXECUTIVE ACTION BAR
   ============================================ */
.quick-links-bar {
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  box-shadow: none;
  overflow: visible;
  max-width: none !important;
  width: auto !important;
}

.quick-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  margin: 0;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155 !important;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.quick-pill:hover {
  box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.25);
  border-color: #f97316;
  text-decoration: none !important;
}

/* 1. Hero Syllabus Pill */
.quick-pill.syllabus-pill {
  background: linear-gradient(135deg, #FF8C00 0%, #E07A3E 100%);
  border: 1.5px solid #FF8C00;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.35);
  letter-spacing: 0.3px;
}

.quick-pill.syllabus-pill:hover {
  background: linear-gradient(135deg, #FFA500 0%, #FF6347 100%);
  border-color: #FFA500;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(255, 140, 0, 0.45);
}

/* 2. Parent HB Pill */
.quick-pill.parent-hb-pill {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #B45309 !important;
}

.quick-pill.parent-hb-pill:hover {
  background: #FEF3C7;
  border-color: #FCD34D;
  color: #92400E !important;
}

/* 3. Teacher HB Pill */
.quick-pill.teacher-hb-pill {
  background: #FFF1F2;
  border-color: #FECDD3;
  color: #E11D48 !important;
}

.quick-pill.teacher-hb-pill:hover {
  background: #FFE4E6;
  border-color: #FDA4AF;
  color: #BE123C !important;
}

/* 3b. Teacher Course Pill */
.quick-pill.teacher-course-pill {
  background: linear-gradient(135deg, #9A3412 0%, #7C2D12 100%);
  border: 1.5px solid #9A3412;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(191, 0, 0, 0.3);
  letter-spacing: 0.3px;
}

.quick-pill.teacher-course-pill:hover {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border-color: #ef4444;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(191, 0, 0, 0.4);
}

/* 4. Ramayanam Pill */
.quick-pill.ramayanam-pill {
  background: #F0FDF4;
  border-color: #BBF7D0;
  color: #16A34A !important;
}

.quick-pill.ramayanam-pill:hover {
  background: #DCFCE7;
  border-color: #86EFAC;
  color: #15803D !important;
}

/* 5. WhatsApp Pill */
.quick-pill.whatsapp-pill,
.quick-pill.telegram-pill {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border: 1px solid #25D366;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25);
}

.quick-pill.whatsapp-pill:hover,
.quick-pill.telegram-pill:hover {
  background: linear-gradient(135deg, #28E16D 0%, #15A090 100%);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(37, 211, 102, 0.35);
}

/* 6. Help Desk Pill */
.quick-pill.helpdesk-pill {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #334155 !important;
}

.quick-pill.helpdesk-pill:hover {
  background: #E2E8F0;
  border-color: #94A3B8;
  color: #1E293B !important;
}

/* 7. Quick Submit Pill */
.quick-pill.submit-pill {
  background: #FEF3C7;
  border-color: #FDE68A;
  color: #B45309 !important;
  font-weight: 700;
}

.quick-pill.submit-pill:hover {
  background: #FDE68A;
  border-color: #FCD34D;
  color: #92400E !important;
}

/* 8. Admin / Teacher Tickets Pill */
.quick-pill.admin-tickets-pill, .quick-pill.teacher-tickets-pill {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #047857 !important;
  font-weight: 700;
}

.quick-pill.admin-tickets-pill:hover, .quick-pill.teacher-tickets-pill:hover {
  background: #D1FAE5;
  border-color: #6EE7B7;
  color: #065F46 !important;
}

/* 9. Error Log Pill */
.quick-pill.errorlog-pill {
  background: #F5F3FF;
  border-color: #DDD6FE;
  color: #6D28D9 !important;
  font-weight: 600;
}

.quick-pill.errorlog-pill:hover {
  background: #EDE9FE;
  border-color: #C4B5FD;
  color: #5B21B6 !important;
}

/* ============================================
   SUPPORT ACTIONS BAR
   ============================================ */
.support-actions-bar {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
}

.support-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
  border: none;
}

.support-action-btn:hover {
  opacity: 0.85;
  text-decoration: none;
}

.support-action-btn.helpdesk {
  background: #e2e8f0;
  color: #1a3a5f !important;
}

.support-action-btn.quick-submit {
  background: #f39c12;
  color: white !important;
}

.support-action-btn.teacher {
  background: #27ae60;
  color: white !important;
}

.support-action-btn.admin {
  background: #9A3412;
  color: white !important;
}

.support-action-btn.admin-log {
  background: #1a1a2e;
  color: white !important;
}

/* Notification badge for unclosed tickets (Inline pill tag style) */
.ticket-notification-badge {
  position: relative;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #EF4444;
  color: #ffffff !important;
  font-size: 10px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  border-radius: 8px;
  padding: 0 5px;
  margin-left: 4px;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.3);
  vertical-align: middle;
  border: none;
}

/* Color the number and border to match each button's background */
.support-action-btn.teacher  .ticket-notification-badge { color: #27ae60; }
.support-action-btn.admin    .ticket-notification-badge { color: #9A3412; }
.support-action-btn.helpdesk .ticket-notification-badge { color: #1a3a5f; }

/* ============================================
   VOLUNTEER REGISTRATION - CARD
   ============================================ */
.vol-bar {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 16px 0;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.vol-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(135deg, #fff8f0 0%, #ffedd5 100%);
  gap: 6px;
}

.vol-yr-label {
  font-size: 12px;
  font-weight: 800;
  color: #2f343a;
  letter-spacing: 0.2px;
}

.vol-deadline-badge {
  font-size: 10px;
  color: #e06016;
  background: #fff5eb;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #ffccbc;
  white-space: nowrap;
  font-weight: 600;
  margin-left: auto;
}

.vol-persons-list {
  display: flex;
  flex-direction: column;
  padding: 3px 6px 4px;
  gap: 2px;
}

.vol-person-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
}

.vol-pill-pending {
  background: #fafafa;
  border-color: #ebebeb;
}

.vol-pill-done {
  background: #e6ffed;
  border-color: #a3d9a5;
}

.vol-person-role-tag {
  font-size: 9px;
  font-weight: 700;
  color: #777;
  background: #efefef;
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 38px;
  text-align: center;
}

.vol-pill-done .vol-person-role-tag {
  background: #c6f6d5;
  color: #276749;
}

.vol-person-name {
  font-size: 11px;
  font-weight: 700;
  color: #3a3a3a;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vol-pill-done .vol-person-name {
  color: #276749;
}

.vol-status-pending {
  font-size: 10px;
  color: #e74c3c;
  white-space: nowrap;
  flex-shrink: 0;
}

.vol-status-registered {
  font-size: 10px;
  color: #38a169;
  flex-shrink: 0;
}

.vol-pill-btn {
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.vol-pill-btn:hover {
  opacity: 0.85;
}

.vol-btn-register {
  background: #9A3412;
  color: white !important;
}

.vol-btn-complete {
  background: #38a169;
  color: white !important;
}


.account-header-card {
  margin: 0 !important;
  background: linear-gradient(135deg, #9A3412 0%, #7C2D12 100%);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(191, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  max-width: none !important;
  width: auto !important;
  padding: 0 !important;
  display: block !important;
  min-width: 300px;
}

.account-header-card:not(.collapsed) {
  background: linear-gradient(135deg, rgba(255, 245, 225, 0.95) 0%, rgba(255, 235, 205, 0.95) 100%);
  border: 3px solid rgba(255, 159, 0, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(255, 159, 0, 0.2);
}

/* Hover on collapsed card changes the whole pill background */
.account-header-card.collapsed:hover {
  background: linear-gradient(135deg, #D40000 0%, #9A3412 100%);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(191, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.account-header-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 25px;
  background: transparent;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

.account-header-card:not(.collapsed) .account-header-toggle {
  background: linear-gradient(135deg, #9A3412 0%, #7C2D12 100%);
}

.account-header-card:not(.collapsed) .account-header-toggle:hover {
  background: linear-gradient(135deg, #D40000 0%, #9A3412 100%);
}

.account-header-toggle h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: white !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-header-toggle .toggle-icon {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.account-header-card.collapsed .account-header-content {
  display: none;
}

.account-header-content {
  padding: 20px 25px;
  display: block;
  background: linear-gradient(135deg, rgba(255, 245, 225, 0.8) 0%, rgba(255, 235, 205, 0.8) 100%);
}

.parent-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.parent-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
  border-radius: 10px;
  border: 1px solid #f0d78c;
}

.parent-info-item .icon {
  font-size: 20px;
}

.parent-info-item .label {
  font-size: 10px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.parent-info-item .value {
  font-size: 13px;
  font-weight: 700;
  color: #011440;
}

/* ============================================
   PAYMENT ALERT BANNER
   ============================================ */
.payment-alert-banner {
  position: relative;
  background: linear-gradient(145deg, #fffdf8 0%, #fff5ec 58%, #fff9f4 100%);
  border: 1px solid rgba(191, 0, 0, 0.12);
  border-top: 5px solid #c0030f;
  border-radius: 24px;
  padding: 0;
  margin: 28px 0 32px !important;
  display: block;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 12px 26px rgba(191, 0, 0, 0.10);
  overflow: hidden;
}

.payment-alert-banner::before {
  content: '';
  position: absolute;
  inset: auto -48px -72px auto;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(255, 214, 169, 0.35) 0%, rgba(255, 214, 169, 0.08) 48%, transparent 70%);
  pointer-events: none;
}

.payment-alert-banner.critical {
  background: linear-gradient(145deg, #fff8f5 0%, #ffe9e4 58%, #fff5f3 100%);
  border-color: rgba(191, 0, 0, 0.18);
  box-shadow: 0 14px 30px rgba(191, 0, 0, 0.12);
}

.payment-alert-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: stretch;
  position: relative;
  z-index: 1;
  padding: 20px 22px;
}

.payment-alert-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.payment-alert-title-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.payment-alert-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #c0030f 0%, #ff8453 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(191, 0, 0, 0.16);
  flex-shrink: 0;
}

.payment-alert-icon-wrap::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.payment-alert-icon {
  font-size: 22px;
  line-height: 1;
  filter: saturate(0.95);
}

.payment-alert-content {
  min-width: 0;
}

.payment-alert-kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #b14b24;
}

.payment-alert-content h3 {
  margin: 0;
  color: #7C2D12;
  font-size: 22px;
  line-height: 1.18;
}

.payment-alert-banner.critical .payment-alert-kicker,
.payment-alert-banner.critical .payment-alert-content h3 {
  color: #7C2D12;
}

.payment-alert-content p {
  margin: 0;
  font-size: 14px;
  color: #6b4b45;
  line-height: 1.65;
  max-width: 760px;
}

.payment-alert-banner.critical .payment-alert-content p {
  color: #7b3d3d;
}

.payment-alert-content strong {
  color: #7C2D12;
}

.payment-alert-helper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(191, 0, 0, 0.10);
  font-size: 13px;
  font-weight: 700;
  color: #7C2D12;
  max-width: 760px;
}

.payment-alert-helper::before {
  content: 'Action';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(191, 0, 0, 0.08);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7C2D12;
}

.payment-alert-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 248, 241, 0.96) 100%);
  border: 1px solid rgba(191, 0, 0, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  min-width: 0;
}

.payment-alert-banner.critical .payment-alert-aside {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 241, 238, 0.96) 100%);
  border-color: rgba(191, 0, 0, 0.16);
}

.payment-alert-count {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  color: #7C2D12;
  font-weight: 900;
}

.payment-alert-count-label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a4d4d;
}

.payment-alert-banner.critical .payment-alert-count-label {
  color: #6a4b4b;
}

.payment-alert-side-note {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(191, 0, 0, 0.10);
  color: #7b4c43;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}

.payment-alert-banner.critical .payment-alert-side-note {
  color: #7b3d3d;
}

body.att-modal-open .student-card,
body.att-modal-open .student-card:hover {
  transform: none !important;
}

body.att-modal-open .student-card {
  transition: box-shadow 0.3s ease, border-color 0.3s ease !important;
}

/* ============================================
   SECTION HEADER CARD - Student Details
   ============================================ */
.section-header-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%) !important;
  border-radius: 28px !important;
  padding: 16px 26px !important;
  margin: 15px 0 !important;
  max-width: none !important;
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.1) !important;
}

.section-header-content {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.section-header-content .section-icon {
  font-size: 24px !important;
  line-height: 1 !important;
}

.section-header-content h2 {
  margin: 0 !important;
  font-size: 18px !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
}

.student-count-badge {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 25px !important;
  padding: 6px 14px !important;
}

.student-count-badge .count-number {
  background: #FFFFFF !important;
  color: #2e7d32 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.student-count-badge .count-label {
  color: #FFFFFF !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* Legacy support */
.section-title {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin: 10px 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

.section-title h2 {
  margin: 0;
  font-size: 22px;
  color: #011440;
  font-weight: 600;
}

.section-title .badge {
  background: linear-gradient(135deg, #9A3412 0%, #7C2D12 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.section-title .badge {
  background: linear-gradient(135deg, #9A3412 0%, #7C2D12 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ============================================
   STUDENTS GRID
   ============================================ */
.students-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

/* ============================================
   STUDENT DETAILS PANEL
   ============================================ */
.student-details-panel {
  margin: 16px 0 20px 0;
  padding: 0;
  border-radius: 26px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 3px solid rgba(46, 125, 50, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(46, 125, 50, 0.15);
}

.student-details-panel .section-header-card {
  margin: 0 !important;
  border-radius: 26px 26px 0 0 !important;
  padding: 16px 24px !important;
}

.student-details-panel .students-grid {
  background: white;
  padding: 20px;
  border-radius: 0 0 26px 26px;
  margin: 0 !important;
}

/* ============================================
   STUDENT CARD
   ============================================ */
.student-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid rgba(191, 0, 0, 0.08);
}

.student-card:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
  border-color: rgba(191, 0, 0, 0.15);
}

.student-card.payment-pending {
  border: 3px solid #ffc107;
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
}

.student-card.payment-pending .student-card-header {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
}

/* Student Card Header */
.student-card-header {
  background: linear-gradient(135deg, #FFBF00 0%, #FFA500 100%);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.student-name-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.student-avatar {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #9A3412 0%, #7C2D12 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(191, 0, 0, 0.3);
}

.student-name-info h3 {
  margin: 0;
  font-size: 17px;
  color: #011440;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.student-name-info h3 .edit-icon {
  font-size: 16px;
  color: #9A3412;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.student-name-info h3 .edit-icon:hover {
  opacity: 1;
}

.student-level-badge {
  background: #011440;
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  display: inline-block;
}

.student-level-badge.not-enrolled {
  background: #ffc107;
  color: #664d03;
}

/* Payment Status Badge */
.payment-status-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.payment-status-badge.paid {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.payment-status-badge.pending {
  background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
  color: #664d03;
  animation: pulse-badge 2s infinite;
}

.payment-status-badge.unpaid {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
  50% { box-shadow: 0 0 0 8px rgba(255, 193, 7, 0); }
}

/* Student Card Body */
.student-card-body {
  padding: 20px;
}

/* ============================================
   INFO SECTIONS
   ============================================ */
.info-section {
  margin-bottom: 16px;
}

.info-section:last-child {
  margin-bottom: 0;
}

.info-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
}

.info-section-header .icon {
  font-size: 18px;
}

.info-section-header h4 {
  margin: 0;
  font-size: 13px;
  color: #9A3412;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-section-content {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 12px 15px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed #e0e0e0;
}

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

.info-row .label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.info-row .value {
  font-size: 13px;
  color: #011440;
  font-weight: 600;
  text-align: right;
}

.info-row .value a {
  color: #9A3412;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.info-row .value a:hover {
  text-decoration: underline;
}

/* Sub-row for contact details */
.info-row.sub-row {
  padding: 2px 0 !important;
  border-bottom: none !important;
  margin-top: -4px;
}

.info-row.sub-row .value {
  font-size: 12px !important;
  font-weight: 500 !important;
}

.info-row.sub-row .value a {
  color: #2e7d32 !important;
  font-size: 12px !important;
}

/* ============================================
   SUPPORT TEAM SECTION
   ============================================ */
.support-team-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: #475569;
}

.support-team-compact.hidden {
  display: none;
}

.stc-chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 12px;
  color: #334155;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stc-chip:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.stc-role {
  font-weight: 700;
  color: #475569;
}

.stc-name {
  font-weight: 600;
  color: #1e293b;
}

.stc-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0284c7;
  text-decoration: none;
  font-weight: 500;
  font-size: 11px;
  padding: 2px 8px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  transition: all 0.15s ease;
}

.stc-contact-item:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0369a1;
  text-decoration: none;
}

.contact-pending {
  font-size: 12px;
  color: #94a3b8;
  font-style: italic;
}

.support-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.team-card {
  border-radius: 12px;
  padding: 15px;
  transition: all 0.2s ease;
}

.team-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Teacher Card Styling */
.team-card.teacher-card {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
  border: 1px solid #FFB300;
}

/* Advisor Card Styling */
.team-card.advisor-card {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 1px solid #4caf50;
}

.team-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.team-card-header .team-icon {
  font-size: 22px;
  line-height: 1;
}

.team-card-header .team-role {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-card.teacher-card .team-role {
  color: #E65100;
}

.team-card.advisor-card .team-role {
  color: #2e7d32;
}

.team-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.team-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.team-contact .contact-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #555;
  text-decoration: none;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.team-contact .contact-link:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #9A3412;
}

.team-contact .contact-link span {
  font-size: 14px;
}

/* Legacy mentor card support */
.mentor-card {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 1px solid #4caf50;
  border-radius: 10px;
  padding: 12px 15px;
}

.mentor-card .mentor-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.mentor-card .mentor-header .icon {
  font-size: 20px;
}

.mentor-card .mentor-header h5 {
  margin: 0;
  font-size: 13px;
  color: #2e7d32;
  font-weight: 700;
}

.mentor-card .mentor-name {
  font-size: 15px;
  font-weight: 700;
  color: #1b5e20;
  margin-bottom: 6px;
}

.mentor-card .mentor-contact {
  font-size: 12px;
  color: #388e3c;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mentor-card .mentor-contact span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mentor-placeholder {
  background: #f5f5f5;
  border: 1px dashed #ccc;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  color: #999;
  font-style: italic;
  font-size: 13px;
}

.mentor-locked {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
  border: 1px solid #ffc107;
  border-radius: 10px;
  padding: 12px 15px;
  text-align: center;
  color: #856404;
  font-size: 12px;
  font-weight: 600;
}

/* ============================================
   QUICK VIEW LINKS
   ============================================ */
.quick-view-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(255, 191, 0, 0.1) 0%, rgba(255, 159, 0, 0.1) 100%);
  border-top: 1px solid rgba(191, 0, 0, 0.1);
}

.quick-view-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 11px;
  color: #011440;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.quick-view-link:hover {
  border-color: #9A3412;
  color: #9A3412;
  background: rgba(191, 0, 0, 0.05);
  text-decoration: none;
}

.quick-view-link .icon {
  font-size: 14px;
}

/* ============================================
   STUDENT ACTIVITIES PANEL (trimester-aware)
   ============================================ */
.student-activities-panel {
  padding: 14px 18px 6px;
  background: linear-gradient(135deg, rgba(255,191,0,0.07) 0%, rgba(255,159,0,0.07) 100%);
  border-top: 1px solid rgba(191,0,0,0.1);
}

/* --- Trimester Navigation --- */
.activity-trimester-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.activity-nav-label {
  font-size: 11px;
  font-weight: 700;
  color: #666;
  margin-right: 2px;
  white-space: nowrap;
}

.activity-trim-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border: 1.5px solid #ccc;
  border-radius: 20px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.18s ease;
}

.activity-trim-tab:hover {
  border-color: #9A3412;
  color: #9A3412;
  background: rgba(191,0,0,0.05);
}

.activity-trim-tab.active {
  background: linear-gradient(135deg, #7C2D12 0%, #9A3412 100%);
  color: #fff;
  border-color: #7C2D12;
}

.active-trim-dot {
  font-size: 8px;
  color: #ffd700;
  margin-left: 2px;
  text-shadow: 0 0 4px rgba(255,215,0,0.8);
}

/* "Showing content for: Trimester X" indicator bar */
.activity-trim-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 10px;
  padding: 7px 14px;
  background: linear-gradient(90deg, rgba(139,0,0,0.08) 0%, rgba(139,0,0,0.02) 100%);
  border-left: 3px solid #7C2D12;
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  color: #444;
  line-height: 1.3;
}

.activity-trim-indicator strong {
  color: #7C2D12;
  font-weight: 800;
}

.trim-indicator-icon {
  font-size: 13px;
  flex-shrink: 0;
}

/* --- Activity Grid Cards --- */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.activity-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 6px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  min-height: 48px;
}

.activity-card:hover {
  border-color: #9A3412;
  color: #9A3412;
  background: rgba(191,0,0,0.04);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.activity-card.disabled {
  background: #f5f5f5;
  color: #aaa;
  border-color: #ddd;
  cursor: default;
}

.activity-card.needs-attention {
  border-color: #ff8c00;
  background: #fff8f0;
  color: #8a4b00;
}

.activity-card.needs-attention:hover {
  background: #fff0d9;
  border-color: #e07000;
}

.activity-card.completed {
  border-color: #4CAF50;
  background: #f1fff2;
  color: #2e7d32;
}

.activity-card.expired {
  opacity: 0.6;
  cursor: not-allowed;
}

.ac-icon {
  font-size: 16px;
  line-height: 1;
}

.ac-label {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}

.ac-sub {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: #888;
  margin-top: 1px;
}

/* --- Event Registration Section --- */
.activity-event-section {
  margin-bottom: 10px;
}

.activity-event-register-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fff9ec 0%, #fff 100%);
  border: 2px dashed #ffb347;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
  position: relative;
}

.activity-event-register-btn:hover {
  border-style: solid;
  border-color: #ff8c00;
  background: #fff5e0;
  text-decoration: none;
  color: #7C2D12;
}

.activity-event-register-btn.needs-attention {
  border-style: solid;
  border-color: #ff8c00;
  background: linear-gradient(135deg, #fff5e0 0%, #fff 100%);
}

.aer-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.aer-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.aer-title {
  font-size: 13px;
  font-weight: 800;
  color: #7C2D12;
}

.aer-sub {
  font-size: 11px;
  color: #777;
}

.aer-registered-box {
  background: linear-gradient(135deg, #fff9f0 0%, #fff 100%);
  border: 2px solid #ff8c00;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(255,140,0,0.1);
}

.aer-reg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ffe8cc;
}

/* --- Kahoot Section --- */
.activity-kahoot-section {
  background: linear-gradient(135deg, #f0fff4 0%, #fff 100%);
  border: 1.5px solid #c8e6c9;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.activity-section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #2e7d32;
  margin-bottom: 10px;
}

.kahoot-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kahoot-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1.5px solid transparent;
}

.kahoot-action-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.kahoot-live-btn {
  background: #c62828;
  color: #fff;
  border-color: #b71c1c;
}

.kahoot-live-btn:hover {
  background: #b71c1c;
  color: #fff;
}

.kahoot-play-btn {
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  color: #fff;
  border-color: #2E7D32;
}

.kahoot-play-btn:hover {
  background: linear-gradient(135deg, #43A047, #1B5E20);
  color: #fff;
}

.kahoot-setup-btn {
  background: #fff7e6;
  color: #8a4b00;
  border-color: #ffd59e;
}

.kahoot-setup-btn:hover {
  background: #ffe8b2;
  color: #7a3b00;
  border-color: #ffc360;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .activity-trim-tab {
    padding: 4px 10px;
    font-size: 11px;
  }
  .kahoot-action-row {
    flex-direction: column;
  }
  .kahoot-action-btn {
    justify-content: center;
  }
}

/* ============================================
   STUDENT CARD ACTIONS
   ============================================ */
.student-card-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 15px 20px;
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.action-btn:hover {
  text-decoration: none;
}

.action-btn.primary {
  background: linear-gradient(135deg, #9A3412 0%, #7C2D12 100%);
  color: white;
}

.action-btn.primary:hover {
  box-shadow: 0 4px 12px rgba(191, 0, 0, 0.4);
  transform: translateY(-1px);
  color: white;
}

.action-btn.secondary {
  background: white;
  color: #9A3412;
  border: 2px solid #9A3412;
}

.action-btn.secondary:hover {
  background: #9A3412;
  color: white;
}

.action-btn.success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.action-btn.success:hover {
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
  transform: translateY(-1px);
  color: white;
}

.action-btn.disabled {
  background: #e0e0e0;
  color: #999;
  cursor: not-allowed;
}

.action-btn .icon {
  font-size: 16px;
}

.action-btn.full-width {
  grid-column: span 2;
}

.action-btn.pulse-animation {
  animation: pulse-action 2s infinite;
}

@keyframes pulse-action {
  0%, 100% { box-shadow: 0 0 0 0 rgba(191, 0, 0, 0.7); }
  50% { box-shadow: 0 0 0 10px rgba(191, 0, 0, 0); }
}

/* ============================================
   NOTES SECTION
   ============================================ */
.notes-section-modern {
  background: linear-gradient(135deg, #FFFBF0 0%, #FFF8E7 100%);
  border: 1px solid rgba(255, 191, 0, 0.3);
  border-radius: 16px;
  padding: 20px !important;
  margin: 20px 0 !important;
  max-width: none !important;
  display: block !important;
}

.notes-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(191, 0, 0, 0.15);
}

.notes-header .notes-icon {
  font-size: 24px;
}

.notes-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #9A3412;
  letter-spacing: 0.3px;
}

/* Alert Cards - For Important & Student Advisor */
.alert-card {
  display: flex;
  gap: 15px;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  align-items: flex-start;
}

.alert-card .alert-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.alert-card .alert-content {
  flex: 1;
}

.alert-card .alert-content strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.alert-card .alert-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #444;
}

/* Warning Alert - For Important/Payment Notice */
.alert-warning {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.08) 0%, rgba(220, 53, 69, 0.15) 100%);
  border: 1px solid rgba(220, 53, 69, 0.25);
  border-left: 4px solid #dc3545;
}

.alert-warning .alert-content strong {
  color: #c82333;
}

/* Advisor Alert - For Student Advisor */
.alert-advisor {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.08) 0%, rgba(46, 125, 50, 0.15) 100%);
  border: 1px solid rgba(46, 125, 50, 0.25);
  border-left: 4px solid #2e7d32;
}

.alert-advisor .alert-content strong {
  color: #2e7d32;
}

/* Notes Grid - For General Notes */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  margin: 15px 0;
}

.note-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  font-size: 13px;
  color: #333;
  line-height: 1.5;
  border: 1px solid rgba(1, 20, 64, 0.08);
  transition: all 0.2s ease;
}

.note-item:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(1, 20, 64, 0.15);
}

.note-bullet {
  color: #FFBF00;
  font-size: 10px;
  margin-top: 3px;
  flex-shrink: 0;
  text-shadow: 0 0 4px rgba(255, 191, 0, 0.5);
}

/* Enrollment Info Card */
.enrollment-info-card {
  background: linear-gradient(135deg, #FFFDF5 0%, #FFF8E1 100%) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  margin-top: 15px !important;
  box-shadow: 0 2px 10px rgba(191, 0, 0, 0.1) !important;
  border: 1px solid rgba(191, 0, 0, 0.2) !important;
}

.enrollment-header {
  background: linear-gradient(135deg, #9A3412 0%, #7C2D12 100%) !important;
  padding: 12px 20px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  border-bottom: none !important;
}

.enrollment-details {
  padding: 15px 20px !important;
  background: transparent !important;
}

.enrollment-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 0 !important;
  border-bottom: 1px dashed rgba(191, 0, 0, 0.15) !important;
}

.enrollment-row:last-of-type {
  border-bottom: none !important;
}

.enrollment-label {
  color: #333 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.enrollment-value {
  color: #9A3412 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.enrollment-value.highlight-date {
  color: #9A3412 !important;
  font-weight: 700 !important;
  background: rgba(255, 191, 0, 0.2) !important;
  padding: 4px 10px !important;
  border-radius: 15px !important;
}

.enrollment-fees {
  display: flex !important;
  gap: 15px !important;
  margin-top: 15px !important;
  padding-top: 15px !important;
  border-top: 1px solid rgba(191, 0, 0, 0.15) !important;
}

.fee-item {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 12px !important;
  background: rgba(191, 0, 0, 0.08) !important;
  border-radius: 10px !important;
  text-align: center !important;
  border: 1px solid rgba(191, 0, 0, 0.15) !important;
}

.fee-region {
  font-size: 12px !important;
  color: #555 !important;
  font-weight: 500 !important;
}

.fee-amount {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #9A3412 !important;
}

/* Responsive adjustments for notes */
@media (max-width: 600px) {
  .notes-grid {
    grid-template-columns: 1fr;
  }
  
  .enrollment-fees {
    flex-direction: column;
    gap: 10px;
  }
  
  .enrollment-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .alert-card {
    flex-direction: column;
    gap: 10px;
  }
  
  .alert-card .alert-icon {
    font-size: 24px;
  }
}

/* Keep old notes-section for backward compatibility but hide */
.notes-section {
  display: none !important;
}

/* ============================================
   ADMIN PANEL LINK
   ============================================ */
.admin-panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #9A3412 0%, #7C2D12 100%);
  color: white !important;
  text-decoration: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(191, 0, 0, 0.3);
  margin-top: 20px;
}

.admin-panel-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(191, 0, 0, 0.4);
  text-decoration: none;
  color: white !important;
}

/* ============================================
   ACCOUNT HOLD BANNER
   ============================================ */
.account-hold-banner {
  background: linear-gradient(135deg, #9A3412 0%, #7C2D12 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(191, 0, 0, 0.3);
}

.account-hold-banner .title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
}

.account-hold-banner .message {
  font-size: 14px;
}

/* ============================================
   NO CLASS ALERT
   ============================================ */
.no-class-alert {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border: 1px solid #dc3545;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
}

.no-class-alert .title {
  font-size: 14px;
  font-weight: 700;
  color: #721c24;
  margin-bottom: 10px;
}

.no-class-alert .register-btn {
  display: inline-block;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.no-class-alert .register-btn:hover {
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
  transform: translateY(-1px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .account-container {
    padding: 8px 6px;
  }

  .account-top-grid {
    flex-direction: column;
  }

  .resources-support-panel {
    padding: 6px 10px !important;
    margin-bottom: 10px;
    border-radius: 14px;
    overflow: hidden !important;
  }

  .rs-main-row {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 6px;
  }

  .rs-divider {
    display: block;
    height: 20px;
  }

  .resources-section {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    width: auto;
  }

  .support-section {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .rs-label {
    font-size: 10px;
    margin-bottom: 2px;
  }

  /* Quick links bar: 2-column grid on mobile */
  .quick-links-bar {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible;
    max-width: 100% !important;
    width: 100% !important;
  }

  .quick-links-header {
    display: none;
  }
  
  .quick-links-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .quick-links-content.collapsed {
    display: grid !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .quick-link {
    font-size: 12px;
    padding: 9px 10px;
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    flex-shrink: 0;
    background: #fff8f0 !important;
    border: 1px solid #e0c097;
    border-radius: 10px;
    color: #5a3e1b !important;
    font-weight: 600;
  }

  .quick-link.telegram {
    background: #e8f4fd !important;
    border-color: #b3d9f2;
    color: #0077b5 !important;
  }

  /* Support actions bar: 2-column grid on mobile */
  .support-actions-bar {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }
  
  .support-action-btn {
    flex: none;
    justify-content: center;
    padding: 9px 10px;
    font-size: 11px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    text-align: center;
  }

  .vol-bar {
    border-radius: 12px;
  }

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

  .student-details-panel,
  .student-details-panel .students-grid,
  .student-card,
  .student-card-body,
  .student-card-body > .info-section,
  .student-activities-panel,
  .activity-event-section,
  .activity-kahoot-section,
  .aer-registered-box,
  .activity-grid,
  .activity-card {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .student-activities-panel {
    padding: 12px 10px 6px;
  }

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

  .activity-card,
  .info-row .value,
  .aer-sub,
  .activity-trim-indicator {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .aer-reg-header {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }

  .aer-reg-header .quick-view-link {
    margin-left: 0;
  }

  .parent-info-grid {
    grid-template-columns: 1fr;
  }

  .student-card-actions {
    grid-template-columns: 1fr;
  }

  /* Override mobile-common.css forcing all .action-btn to red */
  .account-container .action-btn.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
  }

  .account-container .action-btn.secondary {
    background: white !important;
    color: #9A3412 !important;
    border: 2px solid #9A3412 !important;
  }

  .account-container .action-btn.disabled {
    background: #e0e0e0 !important;
    color: #999 !important;
    cursor: not-allowed !important;
  }

  .account-container .action-btn.primary {
    background: linear-gradient(135deg, #9A3412 0%, #7C2D12 100%) !important;
    color: white !important;
  }

  .account-container .action-btn {
    display: inline-flex !important;
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .action-btn.full-width {
    grid-column: span 1;
  }

  .payment-alert-banner {
    margin: 24px 0 28px !important;
    border-radius: 20px;
  }

  .payment-alert-main {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .payment-alert-title-row {
    gap: 12px;
  }

  .payment-alert-content h3 {
    font-size: 18px;
  }

  .payment-alert-aside {
    padding: 14px 16px;
  }

  .payment-alert-count {
    font-size: 28px;
  }

  .account-header-card {
    padding: 10px;
  }

  .account-header-card h2 {
    font-size: 16px;
  }

  .section-title h2 {
    font-size: 16px;
  }

  /* Section header card: tighter on mobile */
  .section-header-card {
    padding: 12px 14px !important;
    border-radius: 16px !important;
    margin: 10px 0 !important;
  }

  .section-header-content h2 {
    font-size: 15px !important;
  }

  .section-header-content .section-icon {
    font-size: 20px !important;
  }

  .student-count-badge {
    padding: 4px 10px !important;
    gap: 6px !important;
  }

  .student-count-badge .count-number {
    width: 22px !important;
    height: 22px !important;
    font-size: 12px !important;
  }

  .student-count-badge .count-label {
    font-size: 11px !important;
  }

  .student-details-panel .section-header-card {
    border-radius: 16px 16px 0 0 !important;
    padding: 12px 14px !important;
  }

  .student-details-panel .students-grid {
    padding: 10px;
    border-radius: 0 0 16px 16px;
  }

  /* Disable hover lift on mobile (causes jank) */
  .student-card:hover {
    transform: none;
  }

  .account-panel:hover {
    transform: none;
  }

  /* Student card: reduce border-radius and shadow on mobile */
  .student-card {
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }

  .student-card-header {
    flex-direction: row;
    gap: 8px;
    text-align: left;
    padding: 12px 15px;
    flex-wrap: nowrap;
  }
  
  /* Ensure white background on mobile */
  .student-card {
    background: white !important;
  }

  .student-name-section {
    flex-direction: row;
    text-align: left;
    gap: 8px;
    flex: 1;
    min-width: 0;
  }
  
  .student-avatar {
    width: 35px;
    height: 35px;
    font-size: 14px;
    flex-shrink: 0;
  }
  
  .student-name-info h3 {
    font-size: 14px;
    flex-wrap: wrap;
  }
  
  .student-name-info h3 .edit-icon {
    font-size: 14px;
  }
  
  .student-level-badge {
    font-size: 10px;
    padding: 2px 8px;
  }
  
  .payment-status-badge {
    padding: 4px 10px;
    font-size: 10px;
    flex-shrink: 0;
  }

  .quick-view-links {
    justify-content: center;
  }

  /* =============================================
     ACCOUNT PAGE MOBILE CONSISTENCY
     ============================================= */

  /* --- Shared font for all account elements --- */
  .account-container,
  .site-announcement,
  .welcome-section,
  .welcome-details-container,
  .resources-support-panel,
  .resources-section,
  .support-section,
  .panel-title,
  .quick-link,
  .support-action-btn,
  .action-btn,
  .quick-submit-btn,
  .quick-view-link,
  .pending-actions-section,
  .pill-button {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  }

  /* --- UPDATES / Announcement box: full pill shape --- */
  .site-announcement {
    margin: 8px 10px !important;
    padding: 10px 14px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
  }

  .announcement-row {
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }

  .announcement-left {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  .announcement-pill {
    padding: 4px 10px !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .announcement-summary {
    font-size: 13px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .announcement-toggle {
    border-radius: 999px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
  }

  /* --- Welcome bar: slim single-row pill --- */
  .welcome-section {
    border-radius: 999px !important;
    padding: 8px 20px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    min-height: auto !important;
  }

  .welcome-info {
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    justify-content: center !important;
  }

  .welcome-section span {
    font-size: 14px !important;
    margin-bottom: 0 !important;
    line-height: 1.4 !important;
  }

  .welcome-toggle-icon {
    font-size: 12px !important;
    line-height: 1 !important;
  }

  .welcome-details-container {
    border-radius: 24px !important;
  }

  /* --- Resources & Support panel --- */
  .resources-support-panel {
    border-radius: 14px !important;
    padding: 10px !important;
  }

  /* Quick links: proper background, rounded style */
  .quick-link {
    border-radius: 10px !important;
    font-size: 12px !important;
    padding: 9px 10px !important;
    background: #fff8f0 !important;
    color: #5a3e1b !important;
    font-weight: 600 !important;
  }

  .quick-link.telegram {
    background: #e8f4fd !important;
    color: #0077b5 !important;
  }

  /* --- Support section: 2-col grid on mobile --- */
  .support-section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  .support-actions-bar {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    gap: 6px !important;
  }

  .support-action-btn {
    border-radius: 10px !important;
    font-size: 11px !important;
    padding: 9px 10px !important;
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* --- All action buttons pill-shaped (override mobile-common) --- */
  .account-container .action-btn,
  .account-container .pill-button,
  .account-container button[type="submit"],
  .account-container input[type="submit"],
  .pending-actions-section .action-btn {
    border-radius: 999px !important;
  }

  .action-btn {
    border-radius: 999px !important;
    font-size: 13px !important;
    padding: 10px 18px !important;
  }

  .quick-submit-btn {
    border-radius: 999px !important;
    font-size: 15px !important;
    padding: 12px 20px !important;
  }

  .quick-submit-form-group select,
  .quick-submit-form-group input[type="text"],
  .quick-submit-form-group textarea {
    border-radius: 20px !important;
    font-size: 15px !important;
  }

  .quick-submit-form-group textarea {
    border-radius: 18px !important;
  }

  /* --- Quick view links: ensure Upload Essay text visible --- */
  .quick-view-links {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .quick-view-link {
    border-radius: 999px !important;
    font-size: 12px !important;
    padding: 8px 14px !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  /* --- Trimester 2 attention dot --- */
  .attention-dot {
    display: inline-block !important;
    width: 10px !important;
    height: 10px !important;
    flex-shrink: 0 !important;
  }

  .quick-view-link.needs-attention {
    border-color: rgba(191, 0, 0, 0.45) !important;
    box-shadow: 0 0 0 3px rgba(191, 0, 0, 0.08) !important;
  }

  /* --- Notes section: less padding on mobile --- */
  .notes-section-modern {
    padding: 14px 10px !important;
    margin: 12px 0 !important;
    border-radius: 14px;
  }

  .notes-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .notes-header .notes-icon {
    font-size: 20px;
  }

  .notes-grid {
    gap: 10px;
  }

  .alert-card {
    padding: 10px;
    border-radius: 12px;
  }

  /* --- Admin Panel link: full width on mobile --- */
  .admin-panel-link {
    display: flex;
    justify-content: center;
    margin: 12px 0;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 14px;
  }

  /* --- Pending actions section: uniform mobile spacing --- */
  .pending-actions-section {
    padding: 12px !important;
    margin: 16px 0 !important;
    border-radius: 14px !important;
  }

  /* --- Info sections inside student cards --- */
  .info-section {
    margin: 8px 0;
  }

  .info-section-header {
    padding: 8px 12px;
    font-size: 12px;
  }

  .info-section-content {
    padding: 10px 12px;
  }

  /* --- Download certificate button: full width --- */
  .action-btn.success {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }

  /* --- Enrollment section mobile --- */
  .enrollment-fees {
    flex-direction: column;
    gap: 8px;
  }

  .enrollment-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  /* --- Quick submit section mobile --- */
  .quick-submit-section {
    border-radius: 14px !important;
    margin: 8px 0 !important;
  }

  .quick-submit-header {
    padding: 12px 14px;
  }

  .quick-submit-body {
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  .account-container {
    padding: 6px 4px;
  }

  .students-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  /* Ensure white background on mobile */
  .student-card {
    background: white !important;
  }

  .student-card-body {
    padding: 15px;
  }

  .info-section-content {
    padding: 10px 12px;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .info-row .value {
    text-align: left;
  }

  /* Quick Submit Modal Responsive */
  .quick-submit-modal-content {
    max-width: 95%;
    margin: 20px;
  }

  .quick-submit-modal-header {
    padding: 15px 20px;
  }

  .quick-submit-modal-header h2 {
    font-size: 1.2em;
  }

  .quick-submit-modal-body {
    padding: 20px;
  }
}

/* ============================================
   PENDING ACTIONS SECTION & MANDATORY TRAININGS
   ============================================ */
.pending-actions-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 24px 0 !important;
  background: #ffffff;
  border-radius: 16px;
  border: 1.5px solid #fed7aa;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.08);
  overflow: hidden;
  box-sizing: border-box;
}

.pending-actions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-bottom: 1px solid #ffedd5;
  gap: 10px;
  flex-wrap: wrap;
}

.pending-actions-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pending-actions-title {
  font-size: 15px;
  font-weight: 800;
  color: #9a3412;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pending-actions-badge {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
  letter-spacing: 0.3px;
}

.pending-actions-body {
  display: flex;
  flex-direction: column;
  padding: 12px 16px 16px;
  gap: 12px;
}

.pa-item-card {
  background: #fffaf5;
  border: 1px solid #ffedd5;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pa-item-card:hover {
  border-color: #fdba74;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.1);
}

.pa-item-card.pa-mandatory {
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 100%);
  border: 1.5px solid #fca5a5;
}

.pa-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pa-item-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pa-item-icon {
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.pa-item-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.pa-badge-mandatory {
  font-size: 10px;
  font-weight: 800;
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.pa-item-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.pa-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pa-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.pa-status-not-started {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.pa-status-in-progress {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.pa-status-retry {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.pa-progress-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}

.pa-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.pa-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.pa-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.45);
}

/* ============================================
   ACCOUNT PAGE ANNOUNCEMENTS CARD (COMPACT & EXPANDABLE)
   ============================================ */
.dj-account-announcements-card {
  background: linear-gradient(135deg, #FFFDF7 0%, #FFFBEB 100%);
  border: 1.5px solid #FDE68A;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(124, 45, 18, 0.06);
  padding: 16px 20px;
  margin-bottom: 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dj-account-announcements-card.collapsed {
  background: linear-gradient(135deg, #FFFDF7 0%, #FEF9C3 100%);
  border-radius: 999px;
  padding: 8px 14px 8px 16px;
  border-color: #FCD34D;
  box-shadow: 0 2px 10px rgba(124, 45, 18, 0.05);
}

.dj-account-announcements-card.collapsed:hover {
  border-color: #F59E0B;
  box-shadow: 0 4px 14px rgba(124, 45, 18, 0.1);
}

.dj-account-announcement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  border-radius: 999px;
}

.dj-account-announcements-card:not(.collapsed) .dj-account-announcement-header {
  padding-bottom: 12px;
  border-bottom: 1.5px solid rgba(253, 230, 138, 0.7);
  margin-bottom: 14px;
  border-radius: 0;
}

.dj-account-announcement-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.dj-account-announcement-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.dj-announcement-icon-badge {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.dj-announcement-pill-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.dj-badge-amber {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.dj-badge-red {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* Compact summary (single row view) */
.dj-announcement-summary-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  font-size: 0.88rem;
  color: #451A03;
  line-height: 1.3;
}

.dj-account-announcements-card:not(.collapsed) .dj-announcement-summary-compact {
  display: none;
}

.dj-summary-primary {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.dj-summary-primary strong {
  color: #9A3412;
  font-weight: 800;
}

.dj-summary-divider {
  color: #D97706;
  font-weight: 800;
  opacity: 0.6;
  flex-shrink: 0;
}

.dj-summary-secondary {
  color: #78350F;
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Expanded Title */
.dj-announcement-title-expanded {
  display: none;
  font-family: var(--font-main, 'Outfit', sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  color: #7C2D12;
  letter-spacing: -0.2px;
}

.dj-account-announcements-card:not(.collapsed) .dj-announcement-title-expanded {
  display: block;
}

/* Quick Action & Toggle Buttons */
.dj-announcement-quick-btn {
  background: #9A3412;
  color: #FFFFFF;
  border: none;
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 800;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 5px rgba(154, 52, 18, 0.2);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dj-announcement-quick-btn:hover {
  background: #7C2D12;
  transform: scale(1.04);
}

.dj-announcement-toggle-btn {
  background: rgba(217, 119, 6, 0.12);
  color: #9A3412;
  border: 1px solid rgba(217, 119, 6, 0.25);
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 800;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dj-announcement-toggle-btn:hover {
  background: rgba(217, 119, 6, 0.22);
  border-color: #D97706;
}

.dj-toggle-icon {
  font-size: 0.68rem;
  transition: transform 0.25s ease;
}

/* Body (Expandable) */
.dj-account-announcements-body {
  display: block;
  animation: djFadeSlideDown 0.3s ease-out;
}

.dj-account-announcements-card.collapsed .dj-account-announcements-body {
  display: none;
}

@keyframes djFadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dj-account-announcements-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dj-account-announcement-item {
  background: #FFFFFF;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.dj-account-announcement-item:hover {
  border-color: rgba(217, 119, 6, 0.38);
  box-shadow: 0 4px 14px rgba(124, 45, 18, 0.08);
}

.dj-announcement-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #FEF3C7;
  color: #9A3412;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.dj-announcement-item-icon.dj-icon-youtube {
  background: #FEE2E2;
  color: #DC2626;
}

.dj-announcement-item-content {
  flex: 1;
  min-width: 0;
}

.dj-announcement-item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.dj-announcement-item-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #451A03;
}

.dj-announcement-item-text {
  font-size: 0.88rem;
  color: #57534E;
  line-height: 1.5;
  margin: 0;
}

.dj-announcement-item-action {
  flex-shrink: 0;
  align-self: center;
}

.dj-announcement-action-btn {
  background: #9A3412;
  color: #FFFFFF;
  border: none;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(154, 52, 18, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dj-announcement-action-btn:hover {
  background: #7C2D12;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(154, 52, 18, 0.35);
}

.dj-orientation-links-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(217, 119, 6, 0.2);
}

.dj-orientation-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dj-orientation-lang-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: #78350F;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.dj-orientation-sub-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.dj-orientation-video-btn {
  background: #FAFAFA;
  border: 1px solid #E5E7EB;
  color: #1F2937;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dj-orientation-video-btn:hover {
  background: #FEF2F2;
  border-color: #FCA5A5;
  color: #991B1B;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.12);
  text-decoration: none;
}

.dj-orientation-video-btn .dj-external-icon {
  font-size: 0.68rem;
  opacity: 0.7;
}

@media (max-width: 900px) {
  .dj-summary-secondary {
    display: none;
  }
  .dj-summary-divider {
    display: none;
  }
}

@media (max-width: 768px) {
  .dj-account-announcements-card {
    padding: 12px 14px;
    border-radius: 16px;
    margin-bottom: 16px;
  }
  .dj-account-announcements-card.collapsed {
    border-radius: 16px;
    padding: 8px 12px;
  }
  .dj-account-announcement-header {
    gap: 8px;
  }
  .dj-announcement-pill-badge {
    display: none;
  }
  .dj-announcement-summary-compact {
    font-size: 0.8rem;
  }
  .dj-announcement-quick-btn {
    padding: 4px 8px;
    font-size: 0.72rem;
  }
  .dj-announcement-quick-btn span {
    display: none;
  }
  .dj-announcement-toggle-btn {
    padding: 4px 8px;
    font-size: 0.72rem;
  }
  .dj-account-announcement-item {
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
  }
  .dj-announcement-item-action {
    align-self: flex-start;
    width: 100%;
  }
  .dj-announcement-action-btn {
    width: 100%;
    justify-content: center;
  }
  .dj-orientation-links-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .dj-orientation-group {
    width: 100%;
  }
  .dj-orientation-sub-buttons {
    flex-wrap: wrap;
    width: 100%;
  }
}


