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

:root {
  --primary-color: #2563eb;
  --secondary-color: #7c3aed;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --dark-color: #1f2937;
  --light-color: #f9fafb;
  --border-color: #e5e7eb;
  --text-color: #374151;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--light-color);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container {
    padding: 0 4%;
  }

  .header .container {
    padding: 0.9rem 4%;
  }
}

.header {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.92),
    rgba(124, 58, 237, 0.92)
  );
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.18);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 2.5%;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.25));
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-left: 2.5%;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  transition: color 0.2s, background 0.2s, transform 0.2s;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.94rem;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.nav-mobile-actions {
  display: none;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.nav-mobile-bell {
  position: relative;
}

.nav-mobile-bell .nav-bell-dot {
  top: 6px;
  right: 22px;
}

.nav-actions a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s, transform 0.2s;
}

.btn-login {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .btn-login {
    display: none !important;
  }
}

.btn-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.25);
  background: rgba(255, 255, 255, 0.25);
}

.btn-logout {
  background: var(--danger-color);
  color: white !important;
  padding: 0.5rem 1.5rem !important;
  border-radius: 0.5rem;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark-color);
  border-radius: 3px;
  transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero-section {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: white;
  color: var(--primary-color);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary-color);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
}

.btn-link {
  color: var(--primary-color);
  padding: 0;
}

.features-section {
  padding: 4rem 0;
}

.features-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--dark-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.stats-section {
  background: white;
  padding: 3rem 0;
  margin: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
}

.stat-card h3 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-card p {
  font-size: 1.125rem;
  color: var(--text-color);
}

.page-header {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.news-section,
.activities-section,
.documents-section {
  padding: 3rem 0;
}

.news-grid,
.activities-grid,
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.scores-section,
.rewards-section,
.board-section,
.fees-section {
  padding: 3rem 0;
}

.scores-filter,
.rewards-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  background: #ffffff;
  border-radius: 18px;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.75rem;
}

.scores-filter label,
.rewards-filter label {
  font-weight: 600;
  color: var(--dark-color);
}

.scores-filter select,
.rewards-filter select {
  min-width: 160px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: #ffffff;
  padding: 0.6rem 0.9rem;
  font-weight: 500;
  color: var(--dark-color);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.scores-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.scores-table th {
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.75rem;
  color: rgba(15, 23, 42, 0.65);
}

.scores-table td {
  font-weight: 600;
  color: var(--dark-color);
}

.scores-table td:nth-child(2) {
  color: var(--primary-color);
}

.empty-state {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  color: rgba(55, 65, 81, 0.7);
  box-shadow: var(--shadow-lg);
}

.rewards-list {
  display: grid;
  gap: 1.5rem;
}

.reward-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid rgba(59, 130, 246, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reward-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.12);
}

.reward-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #ffffff;
  background: var(--primary-color);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1rem;
}

.reward-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reward-card.badge-reward {
  border-left-color: rgba(34, 197, 94, 0.65);
}

.reward-card.badge-reward .reward-card-badge {
  background: #22c55e;
}

.reward-card.badge-discipline {
  border-left-color: rgba(239, 68, 68, 0.65);
}

.reward-card.badge-discipline .reward-card-badge {
  background: #ef4444;
}

.reward-card-body h2 {
  font-size: 1.2rem;
  color: var(--dark-color);
  margin-bottom: 0.75rem;
}

.reward-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(55, 65, 81, 0.7);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.board-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.board-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.board-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.board-info h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-color);
}

.board-position {
  font-weight: 600;
  color: var(--primary-color);
}

.board-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
  color: rgba(55, 65, 81, 0.85);
}

.board-info ul strong {
  color: var(--dark-color);
}

.nav-account-section {
  margin: 0.75rem 0 1rem;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 16px;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.nav-account-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: #1f2937;
}

.nav-account-fee-badge {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-account-fee-badge.fee-status-paid {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.nav-account-fee-badge.fee-status-unpaid {
  background: rgba(248, 113, 113, 0.18);
  color: #b91c1c;
}

.nav-account-fee-badge.fee-status-none {
  background: rgba(148, 163, 184, 0.15);
  color: #475569;
}

.nav-account-section-note {
  font-size: 0.78rem;
  color: rgba(71, 85, 105, 0.8);
}

.nav-account-fee-link {
  margin-top: 0.35rem;
}

.fee-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.fee-summary-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fee-summary-label {
  font-size: 0.85rem;
  color: rgba(71, 85, 105, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fee-summary-card strong {
  font-size: 1.4rem;
  color: #1f2937;
}

.fees-filter {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #ffffff;
  border-radius: 18px;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.75rem;
}

.fees-filter label {
  font-weight: 600;
  color: var(--dark-color);
}

.fees-filter select {
  min-width: 150px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 0.6rem 0.9rem;
  font-weight: 500;
  color: var(--dark-color);
}

.fee-list {
  display: grid;
  gap: 1.5rem;
}

.fee-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.65rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fee-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.fee-status-badge {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
}

.fee-card-amount {
  font-weight: 700;
  color: #1f2937;
  font-size: 1.1rem;
}

.fee-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.fee-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgba(55, 65, 81, 0.8);
}

.fee-card-row strong {
  color: #1f2937;
}

.fee-card-footer {
  font-size: 0.82rem;
  color: rgba(71, 85, 105, 0.8);
}

.fee-card.fee-status-paid .fee-status-badge {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.fee-card.fee-status-unpaid .fee-status-badge {
  background: rgba(248, 113, 113, 0.16);
  color: #b91c1c;
}

.fee-card.fee-status-unknown .fee-status-badge {
  background: rgba(148, 163, 184, 0.18);
  color: #475569;
}

.board-contact-button {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.9),
    rgba(99, 102, 241, 0.9)
  );
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.board-contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(59, 130, 246, 0.28);
}

.news-card,
.activity-card,
.document-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.news-card:hover,
.activity-card:hover,
.document-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-card img,
.document-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content,
.activity-content,
.document-content {
  padding: 1.5rem;
}

.news-content h3,
.activity-content h3,
.document-content h3 {
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.news-date,
.document-date {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.activity-card {
  display: flex;
  gap: 1rem;
}

.activity-date {
  background: var(--primary-color);
  color: white;
  padding: 1rem;
  text-align: center;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.activity-date .day {
  font-size: 2rem;
  font-weight: 700;
}

.activity-date .month {
  font-size: 0.875rem;
}

.activity-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.activity-score {
  background: var(--success-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-color);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.login-footer {
  text-align: center;
  margin-top: 1rem;
}

.login-footer a {
  color: var(--primary-color);
  text-decoration: none;
}

.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: #fee2e2;
  color: var(--danger-color);
  border: 1px solid var(--danger-color);
}

.alert-success {
  background: #d1fae5;
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

.dashboard-container,
.profile-container {
  padding: 3rem 0;
}

.dashboard-container h1,
.profile-container h1 {
  margin-bottom: 2rem;
  color: var(--dark-color);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.dashboard-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.user-profile {
  text-align: center;
}

.user-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.user-avatar-default {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 1rem;
}

.user-code {
  color: #6b7280;
  font-size: 0.875rem;
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  background: var(--light-color);
  border-radius: 0.5rem;
}

.stat-value {
  font-weight: 700;
  color: var(--primary-color);
}

.dashboard-activities {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.dashboard-activities h3 {
  margin-bottom: 1.5rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.5);
  border-radius: 999px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.35);
  border-radius: 999px;
}

.table-responsive table {
  min-width: 560px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background: var(--light-color);
  font-weight: 600;
  color: var(--dark-color);
}

.data-table tr:hover {
  background: var(--light-color);
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-pending {
  background: #fef3c7;
  color: var(--warning-color);
}

.status-approved {
  background: #d1fae5;
  color: var(--success-color);
}

.status-rejected {
  background: #fee2e2;
  color: var(--danger-color);
}

.footer {
  background: #111827;
  color: white;
  padding: 7% 0 3%;
  margin-top: clamp(8%, 15vh, 15rem);
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 0;
  padding: 0 4%;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
}

.footer-section a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 4%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

.chatbot-trigger {
  position: fixed;
  bottom: 5%;
  right: 5%;
  width: clamp(48px, 14vw, 60px);
  height: clamp(48px, 14vw, 60px);
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s;
  z-index: 1000;
}

.chatbot-trigger:hover {
  transform: scale(1.1);
}

.chatbot-container {
  position: fixed;
  bottom: calc(5% + clamp(58px, 16vw, 70px));
  right: 5%;
  width: min(90vw, 350px);
  height: min(80vh, 500px);
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  z-index: 1000;
}

.chatbot-container.active {
  display: flex;
}

.chatbot-header {
  background: var(--primary-color);
  color: white;
  padding: 1rem;
  border-radius: 1rem 1rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.chatbot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.chatbot-message {
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  line-height: 1.4;
  word-break: break-word;
}

.chatbot-message-bot {
  background: #f3f4f6;
  margin-right: 1.5rem;
  color: #1f2937;
}

.chatbot-message-user {
  background: #2563eb;
  color: #ffffff;
  margin-left: 1.5rem;
  text-align: right;
}

.chatbot-message-text {
  white-space: pre-line;
}

.chatbot-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.25rem 0 0.75rem;
}

.chatbot-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 0.9rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.chatbot-card img {
  width: 100%;
  height: clamp(100px, 30vw, 160px);
  object-fit: cover;
  border-radius: 0.6rem;
}

.chatbot-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.chatbot-card-subtitle {
  font-size: 0.85rem;
  color: #1f2937;
}

.chatbot-card-meta {
  font-size: 0.8rem;
  color: #6366f1;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.chatbot-card-link {
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
  border-radius: 0.5rem;
  padding: 0.4rem 0.75rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.2s, background 0.2s;
}

.chatbot-card-link:hover {
  background: rgba(59, 130, 246, 0.22);
  transform: translateY(-1px);
}

.chatbot-card-action {
  margin-top: 0.35rem;
  align-self: flex-start;
  border: none;
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.chatbot-card-action:hover {
  background: rgba(16, 185, 129, 0.25);
  transform: translateY(-1px);
}

.chatbot-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}

.chatbot-actions button {
  border: none;
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.chatbot-actions button:hover {
  background: rgba(99, 102, 241, 0.2);
  transform: translateY(-1px);
}

.chatbot-controls-wrapper {
  padding: 0.75rem 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chatbot-controls-toggle {
  align-self: center;
  background: rgba(129, 140, 248, 0.16);
  color: #312e81;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.35rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  box-shadow: 0 10px 18px rgba(99, 102, 241, 0.18);
}

.chatbot-controls-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.22);
  background: rgba(99, 102, 241, 0.18);
}

.chatbot-controls-toggle:active {
  transform: translateY(0);
}

.chatbot-controls-toggle .toggle-close {
  display: none;
}

.chatbot-controls-toggle[aria-expanded="true"] .toggle-open {
  display: none;
}

.chatbot-controls-toggle[aria-expanded="true"] .toggle-close {
  display: inline;
}

.chatbot-controls {
  display: flex;
  gap: 0.65rem;
  padding: 0.5rem 1rem 0.75rem;
  flex-wrap: wrap;
  background: rgba(67, 56, 202, 0.06);
  border: 1px solid rgba(79, 70, 229, 0.08);
  border-radius: 0.9rem;
}

.chatbot-controls.collapsed {
  display: none;
}

.chatbot-control-btn {
  flex: 1 1 42%;
  min-width: 138px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.22),
    rgba(79, 70, 229, 0.14)
  );
  color: #312e81;
  border: none;
  border-radius: 0.75rem;
  padding: 0.6rem 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  box-shadow: 0 10px 18px rgba(59, 130, 246, 0.18);
}

.chatbot-control-btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.28);
}

.chatbot-beta-btn {
  flex: 1 1 100%;
  min-width: 100%;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(236, 233, 254, 0.95),
    rgba(209, 200, 255, 0.82)
  );
  color: #4c1d95;
  box-shadow: 0 10px 18px rgba(168, 85, 247, 0.18);
}

.chatbot-beta-btn:hover {
  box-shadow: 0 12px 24px rgba(147, 51, 234, 0.28);
}

.chatbot-beta-btn.active {
  background: linear-gradient(
    135deg,
    rgba(199, 210, 254, 0.95),
    rgba(165, 180, 252, 0.88)
  );
  color: #312e81;
}

.chatbot-control-btn:active {
  transform: translateY(0);
}

.chatbot-control-btn.active {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.28),
    rgba(37, 99, 235, 0.18)
  );
  color: #1d4ed8;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
}

.chatbot-control-btn span {
  pointer-events: none;
}

.chatbot-control-btn .label-active {
  display: none;
}

.chatbot-control-btn.active .label-default {
  display: none;
}

.chatbot-control-btn.active .label-active {
  display: inline;
}

.chatbot-voice-group {
  position: relative;
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0.85rem;
  padding: 0.65rem 0.85rem 0.8rem;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.16);
}

.chatbot-voice-group:not(.active) {
  display: none;
}

.chatbot-voice-group.active {
  display: flex;
}

.chatbot-voice-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 660;
  color: rgba(55, 48, 163, 0.9);
}

.chatbot-voice-select {
  appearance: none;
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.09),
    rgba(129, 140, 248, 0.18)
  );
  color: #1e3a8a;
  border: none;
  border-radius: 0.65rem;
  padding: 0.65rem 2.5rem 0.65rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.chatbot-voice-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  transform: translateY(-1px);
}

.chatbot-voice-select option {
  font-weight: 500;
  color: #1f2937;
}

.chatbot-voice-arrow {
  position: absolute;
  right: 1.35rem;
  bottom: 1.14rem;
  font-size: 1rem;
  pointer-events: none;
  color: rgba(30, 64, 175, 0.75);
}

.chatbot-input {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--border-color);
}

.chatbot-input input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
}

.chatbot-input button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

/* news section */
.home-news-section {
  padding: 3rem 0;
  background: #f8fafc;
}

.home-news-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.home-news-section .section-header h2 {
  font-size: 2rem;
  color: #0f172a;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.news-list li {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 1.1rem 1.5rem 1.1rem 3.3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.news-list li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 1.25rem;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.15);
}

.news-thumb-link {
  display: block;
  width: 86px;
  min-width: 86px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  position: relative;
}

.news-thumb-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.1),
    rgba(15, 23, 42, 0)
  );
  opacity: 0;
  transition: opacity 0.2s ease;
}

.news-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-list li:hover .news-thumb-link::after {
  opacity: 1;
}

.news-list li:hover {
  transform: translateX(6px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
}

.news-date {
  font-size: 0.82rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-title {
  font-size: 1.08rem;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.5;
}

.news-title:hover {
  color: #2563eb;
}

@media (max-width: 640px) {
  .home-news-section {
    padding: 2.5rem 0;
  }

  .home-news-section .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-list li {
    grid-template-columns: 1fr;
    padding-left: 3rem;
  }

  .news-thumb-link {
    width: 100%;
    height: 160px;
  }
}

/* news detail */
.news-detail-header {
  text-align: left;
}

.news-detail-header .container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.news-detail-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}

.back-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.back-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.news-detail {
  padding: 3rem 0;
  background: #f8fafc;
}

.news-detail .container {
  max-width: 900px;
}

.news-detail-image {
  margin-bottom: 2rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
  height: 250px;
}

.news-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-detail-content {
  background: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
  line-height: 1.8;
  color: #1e293b;
}

.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.news-detail-content p {
  margin-bottom: 1.25rem;
}

.news-detail-content ul,
.news-detail-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  padding: 0;
}

@media (max-width: 768px) {
  .news-detail-content {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .news-detail-header h1 {
    font-size: 2rem;
  }
}

.alert-info {
  background: #e0f2fe;
  color: #0c4a6e;
  border: 1px solid #38bdf8;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      135deg,
      rgba(79, 70, 229, 0.96),
      rgba(99, 102, 241, 0.96)
    );
    flex-direction: column;
    padding: 1.5rem 1.25rem 3rem;
    overflow-y: auto;
    z-index: 1200;
    gap: 1rem;
    margin-left: 0;
  }

  .nav-links.open {
    display: flex;
    gap: 1rem;
  }

  .nav-links a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
  }

  .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .nav-mobile-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
  }

  .nav-mobile-link.nav-mobile-logout {
    background: rgba(248, 113, 113, 0.25);
  }

  .nav-mobile-login {
    display: block;
    text-align: center;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color)
    );
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .features-grid,
  .news-grid,
  .activities-grid,
  .documents-grid {
    grid-template-columns: 1fr;
  }

  .chatbot-container {
    width: calc(100% - 40px);
    right: 20px;
    bottom: 90px;
  }

  .data-table {
    font-size: 0.875rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.5rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header .container {
    padding: 0.9rem 18px;
    justify-content: space-between;
  }

  .nav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
}

@media (min-width: 769px) {
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
}

.news-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.news-card-mini {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 22px;
  text-decoration: none;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
  min-height: 220px;
  overflow: hidden;
}

.news-card-mini:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
  border-color: rgba(59, 130, 246, 0.45);
}

.news-card-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.news-card-thumb.placeholder {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.3),
    rgba(124, 58, 237, 0.3)
  );
}

.news-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
  color: #ffffff;
}

.news-card-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.news-card-body span {
  font-size: 0.9rem;
}

.news-card-mini::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0) 30%,
    rgba(15, 23, 42, 0.75) 100%
  );
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.news-card-mini:hover .news-card-thumb {
  transform: scale(1.05);
}

.news-card-mini:hover::after {
  opacity: 1;
}

/* news list filters */
.news-filters {
  background: #f1f5f9;
  padding: 2rem 0;
}

.news-filter-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: end;
}

.filter-field label {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
  display: block;
}

.filter-field input,
.filter-field select {
  width: 100%;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid #cbd5f5;
  font-size: 1rem;
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: var(--primary-color);
  outline: none;
}

.news-list .news-grid {
  margin-top: 2rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #1f2937;
  text-decoration: none;
  transition: all 0.2s ease;
}

.page-link:hover,
.page-link.active {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #ffffff;
  border-color: transparent;
}

@media (max-width: 640px) {
  .filter-actions {
    flex-direction: column;
  }
}

.news-filter-wrapper {
  position: relative;
}

.news-filter-wrapper.loading {
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.news-filter-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.news-filter-overlay::after {
  content: "";
  width: 24px;
  height: 24px;
  border: 3px solid rgba(99, 102, 241, 0.4);
  border-top-color: rgba(59, 130, 246, 0.9);
  border-radius: 50%;
  animation: newsFilterSpin 0.8s linear infinite;
}

.news-filter-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

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

.activity-status {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.status-none {
  background: rgba(148, 163, 184, 0.2);
  color: #1e293b;
}

.activity-joined-date {
  font-size: 0.75rem;
  color: #64748b;
}

.activity-feedback {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #1e293b;
}

.activity-feedback.success {
  color: #047857;
}

.activity-feedback.error {
  color: #b91c1c;
}

.documents-section {
  padding: 3rem 0;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.document-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.document-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px rgba(15, 23, 42, 0.15);
}

.document-thumb {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.document-thumb.placeholder {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.25),
    rgba(124, 58, 237, 0.25)
  );
}

.document-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.document-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}

.document-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 1rem;
}

.document-view-btn {
  white-space: nowrap;
}

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

  .document-thumb {
    height: 160px;
  }
}

/* documents */
.documents-tiles {
  padding: 3rem 0;
  padding-left: 1.5rem;
}

.documents-tiles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-start;
  padding: 0;
}

.document-tile,
.document-tile-disabled {
  width: 260px;
  height: 260px;
  border-radius: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.15);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.document-tile {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
}

.document-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.2) 20%,
    rgba(15, 23, 42, 0.85) 100%
  );
  z-index: 1;
  transition: opacity 0.25s ease;
}

.document-tile:hover::before {
  opacity: 0.95;
}

.document-tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(59, 130, 246, 0.15);
  z-index: 1;
  pointer-events: none;
}

.document-tile-title,
.document-tile-date {
  position: relative;
  z-index: 2;
  color: #ffffff;
  text-align: center;
}

.document-tile-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.document-tile-date {
  font-size: 0.88rem;
  margin-top: 0.4rem;
}

.document-tile-disabled {
  background: rgba(148, 163, 184, 0.35);
  color: #0f172a;
  box-shadow: inset 0 0 0 2px rgba(148, 163, 184, 0.4);
}

.document-tile-disabled .document-tile-date {
  color: #334155;
}

@media (max-width: 640px) {
  .document-tile,
  .document-tile-disabled {
    width: 180px;
    height: 180px;
    border-radius: 20px;
  }
}

@media (max-width: 768px) {
  .documents-tiles {
    padding-left: 1rem;
  }
}

.nav-bell {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.nav-bell svg {
  pointer-events: none;
}

.nav-bell:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.nav-bell-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f97316;
}

.notifications-panel {
  position: absolute;
  top: calc(100% - 4px);
  right: 494px;
  width: min(320px, 90vw);
  max-height: 65vh;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  z-index: 1300;
  overflow: hidden;
  animation: panelFade 0.25s ease;
}

.notifications-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.notifications-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #0f172a;
}

.notifications-header button {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s;
}

.notifications-header button:hover {
  color: #1e293b;
}

.notifications-body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
  flex: 1;
  display: grid;
  gap: 0.75rem;
}

.notification-item {
  background: rgba(248, 250, 252, 0.9);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: background 0.2s, transform 0.2s;
}

.notification-item:hover {
  background: rgba(219, 234, 254, 0.6);
  transform: translateX(4px);
}

.notification-item h5 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  color: #0f172a;
}

.notification-item p {
  margin: 0;
  font-size: 0.85rem;
  color: #475569;
}

.notification-item time {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
  display: block;
}

.notification-empty {
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
  padding: 1.5rem 0;
}

@media (max-width: 768px) {
  .nav-bell {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .notifications-panel {
    position: fixed;
    top: 70px;
    right: 16px;
    left: 16px;
    bottom: 96px;
    width: auto;
    max-height: 30vh;
  }
}

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

.notification-item .notification-type {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.notification-item .notification-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: #2563eb;
  text-decoration: none;
}

.notification-item .notification-link:hover {
  text-decoration: underline;
}

#notificationsData {
  display: none;
}

.notifications-panel[hidden] {
  display: none;
}

.global-flash {
  position: sticky;
  top: 0;
  z-index: 1100;
  padding: 0.75rem 0;
  text-align: center;
}

.global-flash .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.global-flash-success {
  background: #dcfce7;
  color: #166534;
  border-bottom: 1px solid #22c55e;
}

.global-flash-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: inherit;
  cursor: pointer;
  line-height: 1;
}

.auth-body {
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}

.auth-main {
  width: 100%;
  max-width: 420px;
}

.auth-wrap {
  width: 100%;
  position: relative;
}

.auth-card {
  position: relative;
  background: hsla(0, 0%, 100%, 0.95);
  border-radius: 24px;
  padding: 3rem 3rem 2.5rem;
  box-shadow: 0 35px 80px rgba(30, 64, 175, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
  overflow: hidden;
}

.forgot-card {
  max-width: 480px;
}

.auth-textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  background: rgba(255, 255, 255, 0.92);
  resize: vertical;
  min-height: 120px;
}

.auth-textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25);
}

.auth-card::before,
.auth-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  top: -90px;
  right: -60px;
  filter: blur(0);
  z-index: 0;
}

.auth-card::after {
  width: 140px;
  height: 140px;
  background: rgba(37, 99, 235, 0.12);
  bottom: -70px;
  left: -40px;
  top: auto;
}

.auth-logo {
  text-align: center;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
}

.auth-logo-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.15),
    rgba(124, 58, 237, 0.25)
  );
  color: #2563eb;
  margin-bottom: 0.75rem;
  box-shadow: 0 18px 30px rgba(59, 130, 246, 0.3);
  overflow: hidden;
}

.auth-logo-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-logo h1 {
  font-size: 2.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.auth-subtitle {
  color: #64748b;
  font-size: 0.98rem;
}

.auth-alert {
  position: relative;
  display: none;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  margin-bottom: 1rem;
  font-weight: 500;
  z-index: 1;
}

.auth-alert-success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.auth-alert-error {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.auth-field {
  margin-bottom: 1.35rem;
  position: relative;
  z-index: 1;
}

.auth-field label {
  display: block;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.auth-input {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: #94a3b8;
}

.auth-input input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  padding: 0.95rem 0.95rem 0.95rem 46px;
  font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  background: rgba(255, 255, 255, 0.92);
}

.auth-input input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25);
  transform: translateY(-1px);
}

.auth-submit {
  width: 100%;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
}

.auth-submit .btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.auth-submit .btn-loader {
  display: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-top-color: transparent;
  animation: spin 0.9s linear infinite;
}

.auth-submit.auth-submit-loading .btn-text {
  display: none;
}

.auth-submit.auth-submit-loading .btn-loader {
  display: inline-block;
}

.auth-links {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
  z-index: 1;
}

.auth-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.auth-link:hover {
  color: #1d4ed8;
}

.auth-link-underline {
  text-decoration: underline;
}

.auth-note {
  margin-top: 1.25rem;
  text-align: center;
  color: #475569;
  font-size: 0.95rem;
  opacity: 0.9;
}

.auth-forgot-btn {
  display: inline-flex;
  margin: 30px auto 1rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #4f46e5;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
}

.auth-forgot-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.6);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 768px) {
  .nav-account {
    position: relative;
    display: none;
    align-items: center;
    margin-left: 0.75rem;
  }
}
.nav-account[open] .nav-account-trigger {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.nav-account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  list-style: none;
  white-space: nowrap;
}

.nav-account-trigger::-webkit-details-marker {
  display: none;
}

.nav-account-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 220px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  padding: 0.75rem;
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 1500;
}

.nav-account[open] .nav-account-dropdown {
  display: flex;
}

.nav-account-info {
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  font-weight: 600;
}

.nav-account-item.profile {
  color: #1f2937;
}

.nav-account-item {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  color: #1f2937;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav-account-item:hover {
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
}

.nav-account-item.logout {
  color: #ef4444;
}

.nav-account-item.logout:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.nav-account-dropdown[hidden] {
  visibility: hidden;
}

@media (max-width: 768px) {
  .scores-filter,
  .rewards-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .scores-filter select,
  .rewards-filter select,
  .fees-filter select {
    width: 100%;
  }

  .board-card {
    padding: 1.75rem 1.25rem;
  }

  .fees-filter {
    flex-direction: column;
    align-items: stretch;
  }
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.activities-grid.is-hidden {
  display: none;
}

.activity-status-tabs {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.5rem;
  margin-top: 2.5rem;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  overflow-x: auto;
}

.activity-status-tabs::-webkit-scrollbar {
  height: 6px;
}

.activity-status-tabs::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.2);
  border-radius: 999px;
}

.status-tab {
  border: none;
  background: rgba(99, 102, 241, 0.08);
  color: #4338ca;
  font-weight: 600;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
  white-space: nowrap;
}

.status-tab:hover {
  background: rgba(79, 70, 229, 0.18);
  color: #3730a3;
  transform: translateY(-1px);
}

.status-tab.is-active {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(79, 70, 229, 0.28);
}

.status-tab.is-active .status-tab-count {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.status-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.14);
  color: #4338ca;
  font-size: 0.85rem;
  font-weight: 700;
}

.activity-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  gap: 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.activity-card.status-card-not_joined {
  border-color: rgba(59, 130, 246, 0.18);
}

.activity-card.status-card-pending {
  border-color: rgba(251, 191, 36, 0.26);
}

.activity-card.status-card-joined {
  border-color: rgba(34, 197, 94, 0.26);
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 45px rgba(79, 70, 229, 0.18);
}

.activity-card-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.activity-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.activity-card-date {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.95rem;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.14),
    rgba(99, 102, 241, 0.14)
  );
  color: #1d4ed8;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.18);
}

.activity-card-day {
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 800;
}

.activity-card-date-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: #1d4ed8;
  margin-top: 0.05rem;
}

.activity-card-month {
  font-weight: 700;
}

.activity-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.activity-card-info {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.activity-card-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.activity-card-title-group h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #1f2937;
}

.activity-card-location {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(30, 64, 175, 0.85);
  background: rgba(37, 99, 235, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}

.activity-card-location svg {
  opacity: 0.7;
}

.activity-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
  box-shadow: 0 14px 28px rgba(99, 102, 241, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-card:hover .activity-card-icon {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(79, 70, 229, 0.28);
}

.activity-card-icon.status-icon-not_joined {
  background: rgba(59, 130, 246, 0.16);
  color: #2563eb;
  box-shadow: 0 18px 32px rgba(59, 130, 246, 0.24);
}

.activity-card-icon.status-icon-pending {
  background: rgba(251, 191, 36, 0.24);
  color: #b45309;
  box-shadow: 0 18px 32px rgba(251, 191, 36, 0.28);
}

.activity-card-icon.status-icon-joined {
  background: rgba(34, 197, 94, 0.24);
  color: #15803d;
  box-shadow: 0 18px 32px rgba(34, 197, 94, 0.26);
}

.activity-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.18);
}

.activity-score-badge svg {
  opacity: 0.75;
}

.activity-card-description {
  margin: 0;
  color: rgba(15, 23, 42, 0.7);
  line-height: 1.6;
  font-size: 0.96rem;
}

.activity-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.activities-section .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.activities-section .status-badge:hover {
  transform: translateY(-1px);
}

.activities-section .status-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.activities-section .status-badge-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.activities-section .status-badge-text {
  white-space: nowrap;
}

.activities-section .status-badge.status-pending {
  background: rgba(251, 191, 36, 0.2);
  color: #b45309;
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.28);
}

.activities-section .status-badge.status-approved {
  background: rgba(34, 197, 94, 0.22);
  color: #15803d;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.28);
}

.activities-section .status-badge.status-rejected {
  background: rgba(248, 113, 113, 0.2);
  color: #b91c1c;
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.28);
}

.activity-meta-info {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.activity-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.activity-register-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(99, 102, 241, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-register-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(99, 102, 241, 0.32);
}

.activity-register-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.activity-register-btn-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.activity-register-btn-text {
  font-weight: inherit;
}

.activity-register-btn.is-pending {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 16px 30px rgba(251, 191, 36, 0.35);
}

.activity-register-btn.is-joined {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 16px 30px rgba(34, 197, 94, 0.32);
}

.activity-register-btn:disabled {
  cursor: not-allowed;
  background: rgba(148, 163, 184, 0.25);
  color: rgba(30, 41, 59, 0.6);
  box-shadow: none;
}

.activity-register-btn.is-pending:disabled,
.activity-register-btn.is-joined:disabled {
  color: #ffffff;
  opacity: 1;
}

.activity-register-btn.is-pending:disabled {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.85),
    rgba(245, 158, 11, 0.88)
  );
  box-shadow: 0 16px 30px rgba(251, 191, 36, 0.28);
}

.activity-register-btn.is-joined:disabled {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.9),
    rgba(22, 163, 74, 0.9)
  );
  box-shadow: 0 16px 30px rgba(34, 197, 94, 0.28);
}

.activity-register-btn.loading {
  position: relative;
  color: transparent;
}

.activity-register-btn.loading::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: rgba(255, 255, 255, 1);
  animation: spin 0.8s linear infinite;
}

.activity-feedback {
  flex: 1;
  min-width: 220px;
}

.activity-feedback-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.95rem 1.2rem;
  border-radius: 18px;
  background: rgba(148, 163, 184, 0.12);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.activity-feedback-card.fade-out {
  opacity: 0;
  transform: translateY(-6px);
}

.activity-feedback-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.activity-feedback-text strong {
  display: block;
  color: #1f2937;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.activity-feedback-text p {
  margin: 0;
  color: rgba(55, 65, 81, 0.7);
  font-size: 0.85rem;
}

.feedback-badge {
  margin-top: 0.65rem;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.14);
  color: #4338ca;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.activity-feedback.loading .activity-feedback-card {
  background: rgba(59, 130, 246, 0.1);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.18);
}

.activity-feedback.loading .activity-feedback-icon {
  border: 3px solid rgba(59, 130, 246, 0.25);
  border-top-color: rgba(59, 130, 246, 0.9);
  animation: spin 0.8s linear infinite;
}

.activity-feedback.success .activity-feedback-card {
  background: rgba(34, 197, 94, 0.12);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.18);
}

.activity-feedback.success .activity-feedback-icon {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 8px 16px rgba(34, 197, 94, 0.35);
}

.activity-feedback.error .activity-feedback-card {
  background: rgba(248, 113, 113, 0.14);
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.22);
}

.activity-feedback.error .activity-feedback-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 8px 16px rgba(239, 68, 68, 0.32);
}

.activity-feedback-icon::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.activity-feedback-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  color: rgba(15, 23, 42, 0.85);
  font-size: 0.95rem;
}

.activity-feedback.loading .activity-feedback-icon::after {
  background: transparent;
}

.activity-feedback.loading .activity-feedback-icon::before {
  display: none;
}

.activity-feedback.success .activity-feedback-icon::before,
.activity-feedback.success-email .activity-feedback-icon::before {
  content: "\2713";
  color: #ffffff;
}

.activity-feedback.error .activity-feedback-icon::before {
  content: "\2715";
  color: #ffffff;
}

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

.activities-section .status-badge.status-none {
  background: rgba(148, 163, 184, 0.18);
  color: rgba(71, 85, 105, 0.85);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
}

.activities-empty {
  margin-top: 2.5rem;
}

.activities-empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding: 2.75rem 2.25rem;
  border-radius: 22px;
  background: rgba(226, 232, 240, 0.5);
  border: 1px dashed rgba(148, 163, 184, 0.65);
  color: rgba(55, 65, 81, 0.75);
  text-align: center;
  box-shadow: 0 18px 36px rgba(148, 163, 184, 0.18);
}

.activities-empty-card p {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}

.activities-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.activities-empty-standalone {
  margin-top: 3.5rem;
}

@media (max-width: 768px) {
  .activities-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .activity-status-tabs {
    padding: 1rem;
    gap: 0.75rem;
    margin-top: 2rem;
  }

  .status-tab {
    padding: 0.6rem 1.05rem;
    font-size: 0.95rem;
  }

  .activity-card {
    padding: 1.4rem 1.2rem;
    gap: 1.1rem;
  }

  .activity-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .activity-card-date {
    width: 100%;
    justify-content: space-between;
  }

  .activity-card-info {
    flex-direction: column;
    gap: 0.85rem;
  }

  .activity-card-icon {
    width: 42px;
    height: 42px;
  }

  .activity-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .activity-register-btn {
    width: 100%;
  }
}

.profile-container h1 {
  margin-bottom: 2rem;
  color: var(--dark-color);
}

.profile-wrapper {
  padding: 3rem 0;
}

.profile-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  padding: 1.8rem 2rem;
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.82),
    rgba(99, 102, 241, 0.78)
  );
  box-shadow: 0 24px 45px rgba(79, 70, 229, 0.2);
  color: #ffffff;
}

.profile-hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
}

.profile-hero-initials {
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffffff;
}

.profile-hero-meta {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-hero-heading h1 {
  margin: 0;
  font-size: 1.8rem;
}

.profile-hero-heading p {
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.85);
}

.profile-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.profile-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 500;
}

.profile-alert {
  margin-top: 1.75rem;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.14);
}

.profile-form {
  margin-top: 2rem;
  background: #ffffff;
  border-radius: 22px;
  padding: 2rem;
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile-form-section {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.profile-form-section-header h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #1f2937;
}

.profile-form-section-header p {
  margin: 0.2rem 0 0;
  color: rgba(55, 65, 81, 0.7);
  font-size: 0.9rem;
}

.profile-form .form-row {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.profile-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.profile-form .form-control {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: rgba(249, 250, 251, 0.95);
}

.profile-form .form-control:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.75);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.profile-avatar-upload small {
  color: rgba(107, 114, 128, 0.7);
  display: block;
}

.profile-form-section + .profile-form-section {
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  padding-top: 1.75rem;
}

.profile-form-footer {
  display: flex;
  justify-content: flex-end;
}

.profile-submit {
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(99, 102, 241, 0.22);
}

@media (max-width: 768px) {
  .profile-hero {
    padding: 1.6rem;
  }

  .profile-form {
    padding: 1.6rem;
  }
}

.profile-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 992px) {
  .header .container {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .chatbot-control-btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .chatbot-control-btn {
    flex: 1 1 100%;
  }
}

.main-content {
  min-height: 85vh;
  padding: 0;
}

.main-content > * {
  width: 100%;
  max-width: 100%;
  padding-left: max(2%, 16px);
  padding-right: max(2%, 16px);
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .main-content {
    padding: 0;
  }

  .main-content > * {
    width: 100%;
    max-width: 100%;
    padding-left: max(4%, 12px);
    padding-right: max(4%, 12px);
  }
}

.main-content .full-width,
.main-content .hero-section,
.main-content .page-header,
.main-content .home-hero,
.main-content .banner-section {
  width: 100%;
  margin: 0;
  padding: 0;
}
