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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  background: #fafaf9;
  color: #1f2937;
  min-height: 100vh;
  overflow-x: hidden;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.main-content {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  width: 100%;
  min-height: calc(100vh - 200px);
}

.profile-container {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0ebe5;
  animation: fadeIn 0.6s ease-out;
  width: 100%;
  overflow: visible;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 24px;
  text-align: center;
  animation: fadeInUp 0.6s ease-out 0.1s both;
  letter-spacing: -0.5px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.role-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #a88264 0%, #927456 100%);
  color: white;
  border-radius: 12px;
  margin-bottom: 32px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(168, 130, 100, 0.2);
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.role-label {
  font-size: 14px;
  opacity: 0.9;
}

.role-value {
  font-size: 16px;
  font-weight: 700;
}

.avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.avatar-preview {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f9f7f4 0%, #f5f1eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 4px solid #a88264;
  box-shadow: 0 8px 24px rgba(168, 130, 100, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.avatar-preview:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(168, 130, 100, 0.25);
}

.avatar-placeholder {
  font-size: 64px;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.form-group {
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.form-group:nth-child(1) {
  animation-delay: 0.4s;
}
.form-group:nth-child(2) {
  animation-delay: 0.45s;
}
.form-group:nth-child(3) {
  animation-delay: 0.5s;
}
.form-group:nth-child(4) {
  animation-delay: 0.55s;
}
.form-group:nth-child(5) {
  animation-delay: 0.6s;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5ddd3;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: white;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #a88264;
  box-shadow: 0 0 0 3px rgba(168, 130, 100, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn {
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #a88264 0%, #927456 100%);
  color: white;
  animation: fadeInUp 0.6s ease-out 0.6s both;
  margin-top: 10px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(168, 130, 100, 0.3);
}

.btn-secondary {
  background: #f5f1eb;
  color: #1f2937;
  border: 2px solid #e5ddd3;
}

.btn-secondary:hover {
  background: #e5ddd3;
  border-color: #a88264;
}

.message {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.message.success {
  background: #d1fae5;
  color: #065f46;
  display: block;
}

.message.error {
  background: #fee2e2;
  color: #7f1d1d;
  display: block;
}

.avatar-button-group {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 300px;
}

.avatar-button-group .btn {
  flex: 1;
}

.btn-full {
  width: 100%;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 2px solid #e5ddd3;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: #1f2937;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.modal-close:hover {
  background: #f5f1eb;
  color: #1f2937;
}

.modal-body {
  padding: 24px;
}

.editor-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.preview-area {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f7f4;
  border-radius: 12px;
  padding: 20px;
  min-height: 300px;
}

#avatarCanvas {
  max-width: 100%;
  max-height: 280px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.controls-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-group label {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
}

.control-group input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e5ddd3;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.control-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #a88264;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(168, 130, 100, 0.3);
}

.control-group input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #a88264;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(168, 130, 100, 0.3);
}

.slider-value {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}

.control-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #a88264;
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 2px solid #e5ddd3;
  justify-content: flex-end;
}

.modal-footer .btn {
  flex: none;
  padding: 10px 24px;
}

/* Desktop: 1024px and up */
@media (min-width: 1025px) {
  .main-content {
    padding: 60px 20px;
  }

  .profile-container {
    padding: 40px;
  }

  .page-title {
    font-size: 32px;
    margin-bottom: 24px;
  }
}

/* Tablet: 768px to 1024px */
@media (max-width: 1024px) {
  .main-content {
    padding: 50px 16px;
  }

  .profile-container {
    padding: 32px 24px;
  }

  .page-title {
    font-size: 28px;
    margin-bottom: 22px;
  }
}

/* Small Tablet: 481px to 767px */
@media (max-width: 767px) {
  .main-content {
    padding: 40px 16px;
  }

  .profile-container {
    padding: 28px 20px;
    border-radius: 12px;
  }

  .page-title {
    font-size: 26px;
    margin-bottom: 20px;
    line-height: 1.2;
  }

  .role-badge {
    padding: 10px 16px;
    font-size: 14px;
    margin-bottom: 24px;
  }

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

  .avatar-preview {
    width: 120px;
    height: 120px;
    border: 3px solid #a88264;
  }

  .avatar-placeholder {
    font-size: 48px;
  }

  .editor-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .modal-content {
    max-width: 95vw;
  }

  .modal-header h2 {
    font-size: 18px;
  }

  .modal-footer {
    flex-direction: column;
    gap: 8px;
  }

  .modal-footer .btn {
    width: 100%;
  }

  .avatar-button-group {
    flex-direction: column;
  }

  .avatar-button-group .btn {
    width: 100%;
  }
}

/* Mobile: 361px to 480px */
@media (max-width: 480px) {
  .main-content {
    padding: 30px 12px;
  }

  .profile-container {
    padding: 20px 14px;
    border-radius: 12px;
    width: 100%;
    overflow: visible;
  }

  .page-title {
    font-size: 22px;
    margin-bottom: 18px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: block;
    width: 100%;
  }

  .role-badge {
    padding: 9px 12px;
    font-size: 13px;
    gap: 6px;
    margin-bottom: 22px;
    flex-wrap: wrap;
  }

  .role-label {
    font-size: 11px;
  }

  .role-value {
    font-size: 13px;
  }

  .avatar-section {
    margin-bottom: 22px;
  }

  .avatar-preview {
    width: 105px;
    height: 105px;
    border: 3px solid #a88264;
    flex-shrink: 0;
  }

  .avatar-placeholder {
    font-size: 45px;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .form-group label {
    font-size: 12px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 10px 12px;
    font-size: 14px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .form-row {
    gap: 12px;
  }

  .avatar-button-group {
    width: 100%;
    flex-direction: column;
    max-width: none;
  }

  .avatar-button-group .btn {
    width: 100%;
  }
}

/* ==================== PASSPORT BUTTON ==================== */

.btn-passport {
  width: 100%;
  padding: 16px 32px;
  margin-top: 12px;
  background: linear-gradient(135deg, #1a4d2e 0%, #2d7a4a 50%, #1a4d2e 100%);
  background-size: 200% 100%;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(26, 77, 46, 0.25);
  animation: fadeInUp 0.6s ease-out 0.7s both;
  position: relative;
  overflow: hidden;
}

.btn-passport::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-passport:hover::before {
  left: 100%;
}

.btn-passport:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(26, 77, 46, 0.35);
  background-position: 100% 0;
}

.btn-passport:active {
  transform: translateY(-1px);
}

/* ==================== PASSPORT MODAL ==================== */

.passport-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.passport-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.passport-modal {
  background: #fafaf9;
  border-radius: 20px;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.passport-modal-overlay.active .passport-modal {
  transform: scale(1) translateY(0);
}

/* Header */
.passport-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background: linear-gradient(135deg, #1a4d2e 0%, #2d7a4a 100%);
  color: white;
  flex-shrink: 0;
}

.passport-header-left h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.3px;
}

.passport-header-sub {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 3px;
}

.passport-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.passport-download-btn {
  padding: 9px 20px;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.passport-download-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.passport-download-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.passport-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.passport-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  transform: rotate(90deg);
}

/* Body */
.passport-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 32px;
}

/* Loading */
.passport-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 20px;
}

.passport-loading p {
  font-size: 15px;
  color: #888;
  font-weight: 600;
}

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

.passport-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e5e5;
  border-top-color: #1a4d2e;
  border-radius: 50%;
  animation: passportSpin 0.8s linear infinite;
}

/* Profile card */
.passport-profile-card {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 24px;
  background: white;
  border-radius: 16px;
  border: 1px solid #e8e3da;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
  animation: fadeInUp 0.5s ease-out both;
}

.passport-avatar {
  width: 90px;
  height: 90px;
  min-width: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0ebe5, #e5ddd3);
  overflow: hidden;
  border: 3px solid #1a4d2e;
  box-shadow: 0 4px 12px rgba(26, 77, 46, 0.15);
}

.passport-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.passport-profile-info h3 {
  font-size: 22px;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 10px;
  line-height: 1.2;
}

.passport-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.passport-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: #e8f5ef;
  color: #1a4d2e;
  border: 1px solid #c3e6d1;
}

.passport-tag:empty {
  display: none;
}

.passport-profile-details {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.passport-profile-details .detail-row {
  display: flex;
  gap: 6px;
}

.passport-profile-details .detail-label {
  font-weight: 700;
  color: #444;
  min-width: 100px;
}

/* Stats grid */
.passport-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  animation: fadeInUp 0.5s ease-out 0.1s both;
}

.passport-stat-card {
  background: white;
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  border: 1px solid #e8e3da;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.passport-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.passport-stat-num {
  font-size: 32px;
  font-weight: 900;
  color: #1a4d2e;
  line-height: 1;
  margin-bottom: 4px;
}

.passport-stat-label {
  font-size: 11px;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sections */
.passport-section {
  margin-bottom: 20px;
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

.passport-section-title {
  font-size: 16px;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8e3da;
  letter-spacing: 0.3px;
}

.passport-section-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Competition item */
.passport-comp-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e8e3da;
  transition: all 0.25s ease;
}

.passport-comp-item:hover {
  border-color: #c3e6d1;
  box-shadow: 0 3px 12px rgba(26, 77, 46, 0.08);
}

.passport-comp-status {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  margin-top: 5px;
}

.passport-comp-status.active {
  background: #22c55e;
}
.passport-comp-status.upcoming {
  background: #f59e0b;
}
.passport-comp-status.inactive {
  background: #9ca3af;
}

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

.passport-comp-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 3px;
}

.passport-comp-meta {
  font-size: 12px;
  color: #888;
}

.passport-comp-dates {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

/* Results item */
.passport-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e8e3da;
  transition: all 0.25s ease;
}

.passport-result-item:hover {
  border-color: #c3e6d1;
  box-shadow: 0 3px 12px rgba(26, 77, 46, 0.08);
}

.passport-result-place {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: white;
}

.passport-result-place.gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.passport-result-place.silver {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
}
.passport-result-place.bronze {
  background: linear-gradient(135deg, #b45309, #92400e);
}
.passport-result-place.other {
  background: linear-gradient(135deg, #1a4d2e, #2d7a4a);
}

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

.passport-result-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 2px;
}

.passport-result-details {
  font-size: 12px;
  color: #888;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.passport-result-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.passport-result-badge.score {
  background: #e8f5ef;
  color: #1a4d2e;
}
.passport-result-badge.achievement {
  background: #fef3c7;
  color: #92400e;
}

/* Rehearsal item */
.passport-reh-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e8e3da;
  transition: all 0.25s ease;
}

.passport-reh-item:hover {
  border-color: #c3e6d1;
}

.passport-reh-date-badge {
  min-width: 52px;
  text-align: center;
  padding: 8px 6px;
  background: linear-gradient(135deg, #1a4d2e, #2d7a4a);
  border-radius: 10px;
  color: white;
}

.passport-reh-day {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.passport-reh-month {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.8;
}

.passport-reh-info {
  flex: 1;
}

.passport-reh-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 2px;
}

.passport-reh-meta {
  font-size: 12px;
  color: #888;
}

/* Bio section */
.passport-bio-block {
  background: white;
  border-radius: 12px;
  border: 1px solid #e8e3da;
  padding: 18px;
}

.passport-bio-label {
  font-size: 12px;
  font-weight: 700;
  color: #1a4d2e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.passport-bio-text {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  white-space: pre-line;
}

/* Empty state */
.passport-empty {
  padding: 24px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
  font-style: italic;
}

/* Footer note */
.passport-footer-note {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e8e3da;
}

/* ==================== PASSPORT RESPONSIVE ==================== */

@media (max-width: 767px) {
  .passport-modal {
    border-radius: 14px;
    max-height: 95vh;
  }

  .passport-modal-header {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .passport-header-left h2 {
    font-size: 17px;
  }

  .passport-modal-body {
    padding: 16px 18px 24px;
  }

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

  .passport-profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .passport-profile-info h3 {
    font-size: 19px;
  }

  .passport-profile-meta {
    justify-content: center;
  }

  .passport-profile-details {
    text-align: left;
  }

  .passport-comp-item,
  .passport-result-item,
  .passport-reh-item {
    padding: 12px 14px;
  }

  .passport-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .passport-download-btn {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .passport-modal-overlay {
    padding: 10px;
  }

  .passport-modal {
    border-radius: 12px;
  }

  .passport-modal-header {
    padding: 14px 16px;
  }

  .passport-modal-body {
    padding: 14px 14px 20px;
  }

  .passport-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .passport-stat-num {
    font-size: 26px;
  }

  .passport-stat-label {
    font-size: 10px;
  }

  .passport-avatar {
    width: 72px;
    height: 72px;
    min-width: 72px;
  }

  .passport-result-place {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 15px;
  }

  .passport-comp-item {
    flex-direction: column;
    gap: 6px;
  }

  .passport-result-item {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}
@media (max-width: 360px) {
  .main-content {
    padding: 25px 10px;
  }

  .profile-container {
    padding: 16px 12px;
    border-radius: 10px;
  }

  .page-title {
    font-size: 20px;
    margin-bottom: 16px;
    line-height: 1.3;
    white-space: normal;
  }

  .role-badge {
    padding: 8px 10px;
    font-size: 12px;
    gap: 5px;
    margin-bottom: 18px;
  }

  .role-label {
    font-size: 10px;
  }

  .role-value {
    font-size: 12px;
  }

  .avatar-preview {
    width: 95px;
    height: 95px;
    border: 3px solid #a88264;
  }

  .avatar-placeholder {
    font-size: 40px;
  }

  .form-group label {
    font-size: 11px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 9px 11px;
    font-size: 13px;
  }

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