/* ================================
   QUEST4YOU - Profile Page Styles
   Redesigned 2025
   ================================ */

/* Profile Container */
.profile-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 20px 60px;
}

/* ================================
   NEW PROFILE HEADER
   ================================ */
.profile-header-new {
  position: relative;
  background: var(--bg-card, white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
  overflow: hidden;
}

.profile-header-bg {
  display: none; /* Removido o fundo vermelho */
}

.profile-header-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
}

.profile-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #e53935, #d81b60);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.profile-avatar img.loaded {
  display: block;
}

.avatar-fallback {
  font-size: 42px;
  color: white;
  font-weight: 600;
}

.profile-avatar img.loaded + .avatar-fallback {
  display: none;
}

.profile-completion-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #4caf50;
  border: 3px solid var(--bg-card, white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.profile-completion-badge.incomplete {
  background: #ff9800;
}

.profile-completion-badge.low {
  background: #f44336;
}

.completion-percent {
  font-size: 9px;
  font-weight: 700;
  color: white;
}

.profile-info {
  flex: 1;
  padding-bottom: 8px;
}

.profile-info h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-edit-name {
  background: none;
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-edit-name:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
}

.profile-nickname {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 8px;
}

.profile-email {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.profile-joined {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ================================
   PROFILE COMPLETION ALERT
   ================================ */
.profile-completion-alert {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border: 2px solid #ff9800;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: #ff9800; }
  50% { border-color: #f57c00; }
}

.profile-completion-alert .alert-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.profile-completion-alert .alert-content {
  flex: 1;
}

.profile-completion-alert h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e65100;
  margin-bottom: 4px;
}

.profile-completion-alert p {
  font-size: 0.9rem;
  color: #bf360c;
  margin: 0;
}

/* ================================
   PERSONAL INFO SECTION (NEW)
   ================================ */
.personal-info-section {
  margin-bottom: 32px;
}

.personal-info-section .section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.required-badge {
  background: linear-gradient(135deg, #e53935, #d81b60);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.personal-info-card {
  background: var(--bg-card, white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.personal-info-card:hover {
  border-color: rgba(229, 57, 53, 0.2);
}

.section-description {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.personal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

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

.form-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.required-star {
  color: #e53935;
  font-weight: 700;
}

.form-select {
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid var(--border, #e0e0e0);
  border-radius: var(--radius-md);
  background: var(--bg-card, white);
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}

.form-select:hover {
  border-color: var(--text-muted, #bdbdbd);
}

.form-select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1);
}

.form-select.filled {
  border-color: var(--success, #4caf50);
  background-color: rgba(76, 175, 80, 0.08);
}

.form-select.error {
  border-color: #f44336;
  background-color: rgba(244, 67, 54, 0.06);
}

/* Form Input (Text fields) */
.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid var(--border, #e0e0e0);
  border-radius: var(--radius-md);
  background: var(--bg-card, white);
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: var(--text-muted, #9e9e9e);
}

.form-input:hover {
  border-color: var(--text-muted, #bdbdbd);
}

.form-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1);
}

.form-input.filled {
  border-color: var(--success, #4caf50);
  background-color: rgba(76, 175, 80, 0.08);
}

.form-input.error {
  border-color: #f44336;
  background-color: rgba(244, 67, 54, 0.06);
}

/* Location Section */
.location-section {
  background: var(--bg-warm, #f5f5f5);
  padding: 24px;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
}

.subsection-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Save Section */
.save-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border, #e0e0e0);
}

.btn-lg {
  padding: 16px 48px;
  font-size: 1.1rem;
}

.save-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ================================
   ORIGINAL STYLES (UPDATED)
   ================================ */

/* Section Titles */
.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Nickname Section */
.nickname-section {
  margin-bottom: 32px;
}

.nickname-card {
  background: var(--bg-card, white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.nickname-desc {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.nickname-form {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.nickname-input-group {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 250px;
  gap: 8px;
}

.nickname-emoji-select {
  width: 70px;
  min-width: 70px;
  height: 48px;
  padding: 8px 4px;
  font-size: 1.5rem;
  line-height: 1;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card, white);
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 14px;
  padding-right: 20px;
}

.nickname-emoji-select:focus {
  border-color: var(--primary);
  outline: none;
}

.nickname-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.nickname-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 74, 94, 0.1);
}

.nickname-hint {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card, white);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

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

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Results Section */
.results-section {
  margin-bottom: 32px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

/* New Compact Result Cards */
.result-card-compact {
  display: flex;
  background: var(--bg-card, white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #eee;
}

.result-card-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  border-color: #ddd;
}

.result-card-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-width: 80px;
  color: white;
}

.result-card-left .result-card-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.result-card-left .result-card-score {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
}

.result-card-right {
  flex: 1;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-card, white);
}

.result-card-right .result-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary, #333);
  margin: 0 0 4px 0;
}

.result-card-right .result-card-category {
  font-size: 0.8rem;
  color: var(--text-secondary, #666);
  margin: 0 0 4px 0;
}

.result-card-right .result-card-date {
  font-size: 0.75rem;
  color: var(--text-muted, #999);
}

/* Old result-card styles - keep for backwards compatibility */
.result-card {
  background: var(--bg-card, white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.result-card-header {
  padding: 20px;
  background: var(--gradient-primary);
  color: white;
}

.result-card-header h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.result-card-date {
  font-size: 0.8rem;
  opacity: 0.9;
}

.result-card-body {
  padding: 20px;
}

.result-card-category {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 12px;
}

.result-card-score {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  background: var(--bg-card, white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* Badges Section */
.badges-section {
  margin-bottom: 32px;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.badge-card {
  background: var(--bg-card, white);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.badge-card:hover {
  transform: translateY(-4px);
}

.badge-card.locked {
  opacity: 0.5;
  filter: grayscale(1);
}

.badge-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.badge-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.badge-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Settings Section */
.settings-section {
  margin-bottom: 32px;
}

.settings-card {
  background: var(--bg-card, white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-info {
  display: flex;
  flex-direction: column;
}

.setting-label {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.setting-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Toggle Switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border, #ccc);
  transition: 0.3s;
  border-radius: 28px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle input:checked + .toggle-slider {
  background: var(--gradient-primary);
}

.toggle input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

/* Danger Zone */
.danger-section {
  margin-bottom: 32px;
}

.danger-section .section-title {
  color: var(--danger);
}

.danger-card {
  background: var(--bg-card, white);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(166, 93, 115, 0.3);
  overflow: hidden;
}

.danger-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.danger-item:last-child {
  border-bottom: none;
}

.danger-info {
  display: flex;
  flex-direction: column;
}

.danger-label {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.danger-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(139, 74, 94, 0.35);
}

.btn-secondary {
  background: var(--bg-warm);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--border, #F0EDE9);
}

.btn-danger {
  background: linear-gradient(135deg, #A65D73, #8B4A5E);
  color: white;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(166, 93, 115, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: var(--bg-card, white);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-warm);
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--primary);
  color: white;
}

.modal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

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

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Result Modal */
.result-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.result-content {
  background: var(--bg-card, white);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.result-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.result-close:hover {
  transform: scale(1.1);
}

.result-header {
  background: var(--gradient-primary);
  color: white;
  padding: 40px 32px;
  text-align: center;
}

.result-emoji {
  font-size: 4rem;
  margin-bottom: 16px;
}

.result-title {
  font-size: 1.5rem;
}

.result-body {
  padding: 32px;
}

.result-score-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.result-score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-primary);
}

.result-score-value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.result-score-label {
  font-size: 0.85rem;
  opacity: 0.9;
}

.result-category {
  text-align: center;
  margin-bottom: 20px;
}

.result-category-emoji {
  font-size: 2rem;
  margin-right: 8px;
}

.result-category-label {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
}

.result-description {
  text-align: center;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.result-breakdown {
  margin-bottom: 24px;
}

.breakdown-item {
  margin-bottom: 12px;
}

.breakdown-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.breakdown-bar {
  height: 8px;
  background: var(--bg-warm);
  border-radius: 4px;
  overflow: hidden;
}

.breakdown-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ================================
   PHOTOS SECTION
   ================================ */

.photos-section {
  margin-bottom: 32px;
}

.photos-card {
  background: var(--bg-card, white);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.photos-desc {
  color: var(--text-muted);
  margin: 0 0 24px 0;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.photo-slot {
  background: var(--bg-warm, #f8f9fa);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.photo-preview {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--border, #e0e0e0), var(--bg-warm, #f5f5f5));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
}

.photo-placeholder {
  font-size: 3rem;
  opacity: 0.5;
}

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

.photo-info {
  margin-bottom: 12px;
}

.photo-type-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.photo-type-badge.public {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
}

.photo-type-badge.private {
  background: linear-gradient(135deg, #FF9800, #f57c00);
  color: white;
}

.photo-type-badge.secret {
  background: linear-gradient(135deg, #9C27B0, #7B1FA2);
  color: white;
}

.photo-type-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.photo-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.gender-validation-status {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border, #e0e0e0);
}

.validation-pending {
  font-size: 0.8rem;
  color: #FF9800;
}

/* Gender Validation Card */
.gender-validation-card {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.1), rgba(156, 39, 176, 0.05));
  border: 1px solid rgba(156, 39, 176, 0.2);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.gender-validation-card h4 {
  margin: 0 0 12px 0;
  color: #7B1FA2;
}

.gender-validation-card > p {
  color: var(--text-muted);
  margin: 0 0 16px 0;
}

.validation-requirements {
  background: var(--bg-card, white);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.validation-requirements p {
  margin: 0 0 8px 0;
  font-weight: 500;
}

.validation-requirements ul {
  margin: 0;
  padding-left: 20px;
}

.validation-requirements li {
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.validation-status {
  text-align: center;
}

.status-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.status-badge.pending {
  background: var(--warning-bg, #FFF3E0);
  color: var(--warning-text, #E65100);
}

.status-badge.approved {
  background: var(--success-bg, #E8F5E9);
  color: var(--success-text, #2E7D32);
}

.status-badge.rejected {
  background: var(--danger-bg, #FFEBEE);
  color: var(--danger-text, #C62828);
}

.validation-not-started,
.validation-pending-review,
.validation-approved,
.validation-rejected {
  padding: 16px;
}

.validation-pending-review p,
.validation-approved p,
.validation-rejected p {
  margin: 8px 0 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.photos-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
}

/* Responsive Photos */
@media (max-width: 768px) {
  .photos-grid {
    grid-template-columns: 1fr;
  }

  .photo-slot {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
    text-align: left;
    align-items: center;
  }

  .photo-preview {
    width: 100px;
    height: 100px;
    margin-bottom: 0;
  }

  .photo-info {
    margin-bottom: 8px;
  }

  .photo-actions {
    justify-content: flex-start;
    grid-column: 2;
  }

  .gender-validation-status {
    grid-column: 2;
    margin-top: 0;
    padding-top: 8px;
    border-top: none;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .profile-avatar {
    width: 80px;
    height: 80px;
  }

  .avatar-fallback {
    font-size: 32px;
  }

  .profile-info h1 {
    font-size: 1.5rem;
  }

  .btn-edit {
    position: static;
    margin-top: 16px;
  }

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

  .nickname-form {
    flex-direction: column;
    align-items: stretch;
  }
  .nickname-input-group {
    min-width: auto;
  }

  .nickname-emoji-select {
    width: 65px;
    min-width: 65px;
    height: 44px;
    font-size: 1.4rem;
  }

  .setting-item,
  .danger-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions .btn {
    width: 100%;
  }

  /* New Profile Sections - Responsive */
  .profile-header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px 24px;
  }

  .profile-avatar {
    width: 100px;
    height: 100px;
  }

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

  .personal-info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .location-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .profile-completion-alert {
    flex-direction: column;
    text-align: center;
  }

  .personal-info-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .profile-container {
    padding: 80px 16px 40px;
  }

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

  .stat-card {
    padding: 16px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

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

  .modal-content,
  .result-content {
    margin: 10px;
    padding: 24px;
  }

  /* Mobile extra small */
  .profile-header-bg {
    height: 80px;
  }

  .btn-lg {
    width: 100%;
    padding: 14px 24px;
  }

  .location-section {
    padding: 16px;
  }
}

/* ================================
   FEEDBACK SECTION
   ================================ */
.feedback-section {
  margin-bottom: 32px;
}

.feedback-card {
  background: var(--bg-card, white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 2px dashed #17a2b8;
}

.feedback-info {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.feedback-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.feedback-text h3 {
  color: #17a2b8;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.feedback-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feedback-textarea {
  width: 100%;
  padding: 16px;
  border: 2px solid var(--border, #e0e0e0);
  border-radius: var(--radius-md);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.3s ease;
  background: var(--bg-card, white);
  color: var(--text-primary);
}

.feedback-textarea:focus {
  border-color: #17a2b8;
  outline: none;
  box-shadow: 0 0 0 4px rgba(23, 162, 184, 0.1);
}

.feedback-type-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.feedback-type {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border, #e0e0e0);
  background: var(--bg-card, white);
  transition: all 0.3s ease;
}

.feedback-type:hover {
  border-color: #17a2b8;
  background: var(--bg-warm, #f0f9fa);
}

.feedback-type input[type="radio"] {
  display: none;
}

.feedback-type:has(input:checked) {
  border-color: #17a2b8;
  background: #17a2b8;
  color: white;
}

.feedback-type span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ================================
   SUPPORT SECTION (Buy Me a Coffee)
   ================================ */
.support-section {
  margin-bottom: 32px;
}

.support-card {
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 2px solid #ffc107;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.support-info {
  display: flex;
  gap: 16px;
  flex: 1;
}

.support-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.support-text h3 {
  color: #856404;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.support-text p {
  color: #6c5a1a;
  font-size: 0.95rem;
  line-height: 1.6;
}

.btn-support {
  background: #ffdd00;
  color: #000;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.btn-support:hover {
  background: #ffc107;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 193, 7, 0.5);
}

/* ================================
   GENDER VALIDATION IMPROVEMENTS
   ================================ */
.validation-watermark {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: monospace;
  max-width: 90%;
  word-break: break-all;
}

.validation-watermark-overlay {
  position: relative;
}

.validation-info-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(229, 57, 53, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .feedback-info {
    flex-direction: column;
    text-align: center;
  }

  .feedback-type-selector {
    justify-content: center;
  }

  .support-card {
    flex-direction: column;
    text-align: center;
  }

  .support-info {
    flex-direction: column;
  }
}

/* ================================
   FRIENDS SECTION
   ================================ */
.friends-section {
  margin-top: 32px;
}

.friends-section .section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.friends-count-badge {
  background: linear-gradient(135deg, var(--cardinal-red), var(--deep-purple));
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Friend Requests Card */
.friend-requests-card {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border: 2px solid #ff9800;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.friend-requests-card .subsection-title {
  color: #e65100;
  font-size: 1.1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.friend-requests-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.friend-request-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card, white);
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.friend-request-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cardinal-red), var(--deep-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  flex-shrink: 0;
}

.friend-request-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.friend-request-info {
  flex: 1;
  min-width: 0;
}

.friend-request-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.friend-request-nickname {
  font-size: 0.85rem;
  color: var(--text-light);
}

.friend-request-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.friend-request-actions .btn {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Friends Card */
.friends-card {
  background: var(--bg-card, white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.friends-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.friends-search {
  flex: 1;
  min-width: 200px;
}

.friends-search .form-input {
  width: 100%;
  max-width: 300px;
}

/* Friends Grid */
.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.friend-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.friend-card:hover {
  border-color: var(--cardinal-red);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.friend-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cardinal-red), var(--deep-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  font-weight: 600;
  flex-shrink: 0;
  position: relative;
}

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

.friend-online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #4caf50;
  border: 2px solid var(--bg-card, white);
}

.friend-online-indicator.offline {
  background: var(--text-muted, #9e9e9e);
}

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

.friend-name {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-nickname {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 2px;
}

.friend-stats {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  gap: 12px;
}

.friend-card-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.friend-card:hover .friend-card-actions {
  opacity: 1;
}

.friend-action-btn {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.friend-action-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* ================================
   ADMIN FRIEND CARD STYLES
   ================================ */
.admin-friend-card {
  position: relative;
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.05) 0%, rgba(140, 35, 143, 0.05) 100%);
  border: 2px solid transparent;
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.admin-friend-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--cardinal-red), var(--deep-purple));
  z-index: -1;
  opacity: 0.3;
}

.admin-friend-card:hover {
  box-shadow: 0 4px 20px rgba(229, 57, 53, 0.25);
}

.admin-badge-corner {
  position: absolute;
  top: -2px;
  right: -2px;
  background: linear-gradient(135deg, var(--cardinal-red), var(--deep-purple));
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 0 var(--radius-md) 0 var(--radius-md);
  z-index: 1;
}

.admin-avatar {
  background: linear-gradient(135deg, var(--cardinal-red), var(--deep-purple)) !important;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
}

.admin-friend-card .friend-online-indicator.online {
  background: #4caf50;
  animation: pulse-online 2s infinite;
}

@keyframes pulse-online {
  0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(76, 175, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.admin-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--cardinal-red), var(--deep-purple));
  color: white;
  font-size: 0.65rem;
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
}

.admin-friend-card .friend-card-actions {
  opacity: 1; /* Sempre visÃƒÂ­vel para o admin */
}

.admin-friend-card .chat-btn {
  background: linear-gradient(135deg, var(--cardinal-red), var(--deep-purple));
  color: white;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

.admin-friend-card .chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
}

/* Add Friend Modal */
#addFriendModal .modal-desc {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.search-input-wrapper {
  position: relative;
}

.search-loading {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: translateY(-50%) rotate(360deg); }
}

.search-results {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 16px;
}

.search-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px;
  color: var(--text-light);
  justify-content: center;
}

.hint-icon {
  font-size: 1.2rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s;
}

.search-result-item:hover {
  background: var(--bg-light);
}

.search-result-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cardinal-red), var(--deep-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  flex-shrink: 0;
}

.search-result-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

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

.search-result-name {
  font-weight: 600;
  color: var(--text-primary);
}

.search-result-nickname {
  font-size: 0.85rem;
  color: var(--text-light);
}

.search-result-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.search-result-action {
  flex-shrink: 0;
}

.search-no-results {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-light);
}

.search-no-results .no-results-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

/* View Friend Profile Modal */
#viewFriendModal .modal-content {
  max-width: 500px;
}

.friend-profile-header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.friend-profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cardinal-red), var(--deep-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-lg);
}

.friend-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.friend-profile-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.friend-profile-nickname {
  color: var(--text-light);
  font-size: 1rem;
}

.friend-profile-body {
  padding: 0 10px;
}

.friend-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.friend-stat {
  text-align: center;
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
}

.friend-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cardinal-red);
}

.friend-stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
}

.friend-profile-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.friend-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
}

.friend-info-label {
  color: var(--text-light);
  font-size: 0.9rem;
}

.friend-info-value {
  font-weight: 600;
  color: var(--text-primary);
}

/* Empty state for friends */
.friends-section .empty-state {
  grid-column: 1 / -1;
  padding: 40px 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .friends-header {
    flex-direction: column;
    align-items: stretch;
  }

  .friends-search {
    order: 2;
  }

  .friends-search .form-input {
    max-width: 100%;
  }

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

  .friend-request-item {
    flex-wrap: wrap;
  }

  .friend-request-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 8px;
  }

  .friend-card-actions {
    opacity: 1;
  }

  .friend-profile-stats {
    grid-template-columns: 1fr;
  }
}

/* ================================
   ADMIN PROFILE MODAL STYLES
   ================================ */

.admin-profile-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 32px;
  height: 32px;
  background: var(--bg-card, white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
}

.admin-profile-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--cardinal-red), var(--deep-purple));
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 8px;
}

.admin-profile-content {
  text-align: center;
}

.admin-welcome-section {
  margin-bottom: 24px;
}

.admin-welcome-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.admin-welcome-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.admin-welcome-section p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.admin-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.admin-feature-item {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.admin-feature-item:hover {
  border-color: var(--cardinal-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.admin-feature-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.admin-feature-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.admin-feature-desc {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.3;
}

.admin-action-cta .btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.friend-profile-avatar.admin-avatar {
  position: relative;
  box-shadow: 0 4px 20px rgba(229, 57, 53, 0.4);
}

@media (max-width: 480px) {
  .admin-features-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================
   FULL REPORT MODAL
   ================================ */
.full-report-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.full-report-content {
  background: var(--bg-card, white);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.full-report-content .result-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.full-report-content .result-close:hover {
  transform: scale(1.1);
  background: var(--bg-card, white);
}

.full-report-header {
  background: var(--gradient-primary);
  color: white;
  padding: 40px 32px;
  text-align: center;
}

.full-report-header-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.full-report-header h1 {
  margin: 0 0 8px 0;
  font-size: 1.8rem;
}

.full-report-subtitle {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
}

.full-report-body {
  padding: 32px;
}

.full-report-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 24px 32px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-light);
}

/* Report Sections */
.report-section {
  margin-bottom: 32px;
}

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

.report-section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

/* Overview Grid */
.report-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.report-stat-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border-light);
}

.report-stat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

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

.report-stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Scores Chart */
.report-scores-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-score-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.report-score-quiz {
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-quiz-icon {
  font-size: 1.2rem;
}

.report-quiz-name {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.report-score-bar-container {
  flex: 1;
  height: 20px;
  background: var(--bg-light);
  border-radius: 10px;
  overflow: hidden;
}

.report-score-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
}

.report-score-value {
  min-width: 50px;
  text-align: right;
  font-weight: 600;
  color: var(--text-primary);
}

/* Details Grid */
.report-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.report-detail-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.report-detail-header {
  padding: 12px 16px;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-detail-icon {
  font-size: 1.2rem;
}

.report-detail-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.report-detail-body {
  padding: 16px;
  background: var(--bg-card, white);
}

.report-detail-score {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 8px;
}

.report-detail-category {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.report-detail-breakdown {
  margin-top: 12px;
}

.report-mini-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.75rem;
}

.report-mini-bar span:first-child {
  min-width: 80px;
  color: var(--text-secondary);
}

.report-mini-bar-bg {
  flex: 1;
  height: 6px;
  background: var(--bg-light);
  border-radius: 3px;
  overflow: hidden;
}

.report-mini-bar-fill {
  height: 100%;
  border-radius: 3px;
}

.report-mini-bar span:last-child {
  min-width: 35px;
  text-align: right;
  color: var(--text-primary);
  font-weight: 500;
}

.report-detail-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

/* Profile Summary */
.report-profile-summary {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.report-profile-text {
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.report-highlights h4 {
  margin-bottom: 12px;
  color: var(--text-primary);
}

.report-highlight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-tag {
  padding: 8px 16px;
  border-radius: 20px;
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .full-report-content {
    max-height: 95vh;
    margin: 10px;
  }
  
  .full-report-header {
    padding: 30px 20px;
  }
  
  .full-report-header h1 {
    font-size: 1.5rem;
  }
  
  .full-report-body {
    padding: 20px;
  }
  
  .report-overview-grid {
    grid-template-columns: 1fr;
  }
  
  .report-score-row {
    flex-wrap: wrap;
  }
  
  .report-score-quiz {
    min-width: 100%;
    margin-bottom: 8px;
  }
  
  .report-details-grid {
    grid-template-columns: 1fr;
  }
  
  .full-report-actions {
    flex-direction: column;
  }
  
  .full-report-actions .btn {
    width: 100%;
  }
}
