.portal-section-wrap {
  padding: 60px 0;
  min-height: calc(100vh - 200px);
  background: #ecfdf5;
}

.portal-card {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 12px 40px rgba(6, 78, 59, 0.12);
  border-top: 4px solid #34d399;
  text-align: center;
}

.portal-spinner {
  font-size: 3rem;
  color: #34d399;
  margin-bottom: 16px;
}

.portal-brand {
  margin-bottom: 28px;
}

.portal-brand-icon {
  font-size: 3rem;
  color: #34d399;
  margin-bottom: 12px;
}

.portal-brand h1 {
  color: #064e3b;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.portal-tagline {
  color: #64748b;
  font-size: 0.9rem;
}

.portal-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  border-radius: 40px;
  background: #f0fdf4;
  padding: 4px;
}

.portal-tabs button {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  border-radius: 40px;
  font-weight: 600;
  color: #065f46;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.2s;
  font-family: 'Inter', sans-serif;
}

.portal-tabs button.active {
  background: #059669;
  color: #fff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.portal-card .form-group {
  margin-bottom: 18px;
  text-align: left;
}

.portal-card .form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #064e3b;
  font-size: 0.85rem;
}

.portal-card .form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  background: #f0fdf4;
  color: #0f172a;
  transition: 0.2s;
}

.portal-card .form-group input:focus {
  outline: none;
  border-color: #34d399;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

.portal-submit {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  margin-top: 8px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.portal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.portal-links {
  margin-top: 16px;
  text-align: center;
}

.link-btn {
  background: none;
  border: none;
  color: #059669;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  padding: 4px 8px;
  transition: 0.2s;
}

.link-btn:hover {
  color: #047857;
  text-decoration: underline;
}

.portal-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  text-align: center;
  padding: 12px 16px;
  background: #f0fdf4;
  border-radius: 12px;
}

.portal-note i {
  color: #059669;
  margin-right: 4px;
}

.portal-pending {
  text-align: center;
}

.portal-pending-icon {
  font-size: 4rem;
  color: #f59e0b;
  margin-bottom: 16px;
}

.portal-pending h2 {
  color: #064e3b;
  margin-bottom: 12px;
}

.portal-pending p {
  color: #334155;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.pending-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  padding: 24px 28px;
  background: #064e3b;
  color: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(6, 78, 59, 0.2);
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dashboard-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #34d399;
  color: #064e3b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
}

.dashboard-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.dashboard-header h2 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.dashboard-header p {
  color: #d1fae5;
  font-size: 0.85rem;
}

.dashboard-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #34d399;
  color: #064e3b;
  padding: 8px 16px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.85rem;
}

.logout-btn {
  border: 2px solid #34d399;
  color: #34d399;
  padding: 8px 20px;
  font-size: 0.85rem;
  background: transparent;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  font-family: 'Inter', sans-serif;
}

.logout-btn:hover {
  background: #34d399;
  color: #064e3b;
}

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

.dashboard-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 6px 18px rgba(6, 78, 59, 0.06);
  border-top: 3px solid #34d399;
  transition: 0.2s;
  cursor: pointer;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(6, 78, 59, 0.15);
}

.dash-icon {
  font-size: 2rem;
  color: #34d399;
  margin-bottom: 14px;
  display: block;
}

.dashboard-card h3 {
  color: #064e3b;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.dashboard-card p {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 14px;
  line-height: 1.5;
}

.dashboard-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #059669;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: 0.2s;
}

.dashboard-card a:hover {
  color: #047857;
  gap: 10px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #059669;
  font-weight: 600;
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

.portal-content {
  margin-top: 24px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2px solid #a7f3d0;
  color: #065f46;
  padding: 10px 20px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 24px;
  transition: 0.2s;
}

.back-btn:hover {
  background: #d1fae5;
  border-color: #34d399;
}

.portal-panel {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 6px 18px rgba(6, 78, 59, 0.06);
  border-top: 3px solid #34d399;
}

.portal-panel h2 {
  color: #064e3b;
  font-size: 1.4rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-list {
  display: grid;
  gap: 16px;
}

.portal-item {
  background: #f0fdf4;
  border-radius: 16px;
  padding: 20px 24px;
  border-left: 4px solid #34d399;
}

.portal-item h3 {
  color: #064e3b;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.portal-item p {
  color: #334155;
  font-size: 0.92rem;
  margin-bottom: 10px;
  line-height: 1.6;
}

.portal-meta {
  color: #64748b !important;
  font-size: 0.82rem !important;
  margin-bottom: 8px !important;
}

.portal-tag {
  display: inline-block;
  background: #059669;
  color: #fff;
  padding: 2px 12px;
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portal-item-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #059669;
  color: #fff;
  padding: 8px 16px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: 0.2s;
  font-family: 'Inter', sans-serif;
}

.portal-link-btn:hover {
  background: #047857;
}

.portal-empty {
  color: #64748b;
  text-align: center;
  padding: 40px 20px;
  font-size: 0.95rem;
}

.profile-card {
  background: #f0fdf4;
  border-radius: 16px;
  padding: 8px 4px;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #d1fae5;
  gap: 16px;
}

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

.profile-label {
  font-weight: 600;
  color: #064e3b;
  font-size: 0.9rem;
}

.profile-row span:last-child {
  color: #334155;
  font-size: 0.92rem;
  text-align: right;
}

.profile-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.profile-photo-frame {
  position: relative;
  width: 140px;
  height: 140px;
}

.profile-photo-frame img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #34d399;
  background: #d1fae5;
  display: block;
  transition: opacity 0.3s;
}

.profile-photo-upload {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #059669;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  border: 3px solid #fff;
  transition: 0.2s;
}

.profile-photo-upload:hover {
  background: #047857;
}

.profile-photo-upload input {
  display: none;
}

.profile-photo-hint {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .portal-card {
    padding: 28px 22px;
  }

  .dashboard-header {
    flex-direction: column;
    text-align: center;
  }

  .dashboard-user {
    flex-direction: column;
    text-align: center;
  }

  .dashboard-actions {
    justify-content: center;
  }

  .portal-panel {
    padding: 20px;
  }

  .profile-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-row span:last-child {
    text-align: left;
  }
}
