/* ==================== MESHCUE PROFILE UI STYLES ==================== */
/* Mobile-first, dark mode, responsive design */

:root {
  --profile-bg: #0a0e1a;
  --profile-card: rgba(15, 20, 40, 0.6);
  --profile-border: rgba(99, 102, 241, 0.12);
  --profile-text: #e2e8f0;
  --profile-text-muted: #94a3b8;
  --profile-primary: #06b6d4;
  --profile-primary-hover: #0891b2;
  --profile-error: #f44336;
  --profile-warning: #ff9800;
  --profile-radius: 16px;
  --profile-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.05);
}

/* ==================== ONBOARDING MODAL ==================== */

.onboarding-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.onboarding-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.onboarding-content {
  position: relative;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(15, 20, 40, 0.8);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.08);
  padding: 2rem;
  overflow: hidden;
}

.onboarding-screen {
  text-align: center;
}

.onboarding-logo svg {
  color: var(--profile-primary);
  margin-bottom: 1.5rem;
}

.onboarding-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--profile-text);
  margin-bottom: 0.5rem;
}

.onboarding-subtitle {
  font-size: 1rem;
  color: var(--profile-text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.onboarding-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--profile-bg);
  border-radius: 8px;
}

.feature-icon {
  font-size: 1.5rem;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--profile-text);
}

.onboarding-btn {
  width: 100%;
  padding: 0.875rem;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.onboarding-skip {
  margin-top: 0.5rem;
  color: var(--profile-text-muted);
}

.onboarding-back {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: transparent;
  border: none;
  color: var(--profile-text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background 0.2s;
}

.onboarding-back:hover {
  background: var(--profile-bg);
}

/* Onboarding Form */

.onboarding-form {
  text-align: left;
}

.avatar-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.avatar-label {
  cursor: pointer;
}

.avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(15, 20, 40, 0.6);
  border: 3px dashed rgba(99, 102, 241, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--profile-text-muted);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background-size: cover;
  background-position: center;
}

.avatar-preview:hover {
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--profile-text);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--profile-bg);
  border: 1px solid var(--profile-border);
  border-radius: 8px;
  color: var(--profile-text);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

.form-hint {
  display: block;
  font-size: 0.85rem;
  color: var(--profile-text-muted);
  margin-top: 0.25rem;
}

/* Success Screen */

.success-icon svg {
  margin-bottom: 1.5rem;
}

.profile-preview {
  background: var(--profile-bg);
  border-radius: var(--profile-radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.profile-card-mini {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-avatar-mini {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--profile-border);
}

.profile-info-mini h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--profile-text);
}

.profile-info-mini p {
  font-size: 0.9rem;
  color: var(--profile-text-muted);
  line-height: 1.4;
}

.onboarding-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ==================== RESUME PROFILE VIEW ==================== */

.resume-view-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

@media (max-width: 800px) {
  .resume-view-container {
    flex-direction: column;
    padding: 1rem;
  }
}

/* ==================== RESUME SIDEBAR ==================== */

.resume-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: rgba(15, 20, 40, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--profile-radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: sticky;
  top: 2rem;
}

@media (max-width: 800px) {
  .resume-sidebar {
    width: 100%;
    position: relative;
    top: 0;
  }
}

.resume-avatar-container {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #06b6d4, #6366f1, #a855f7);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.25), 0 0 60px rgba(99, 102, 241, 0.1);
}

.resume-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: #0a0e1a;
  border: 4px solid #0f1428;
}

.resume-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #0a0e1a;
  border: 4px solid #0f1428;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: var(--profile-text);
}

.resume-avatar-overlay {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s;
  cursor: pointer;
}

.resume-avatar-container:hover .resume-avatar-overlay {
  opacity: 1;
}

.resume-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}

.resume-job-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--profile-text-muted);
  margin: 0 0 1.5rem 0;
}

.resume-links a {
  color: var(--profile-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.resume-links a:hover {
  color: var(--profile-primary);
}

.resume-message-btn {
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: none;
  background: rgba(192, 132, 252, 0.15);
  color: #c084fc;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.resume-message-btn:hover {
  background: rgba(192, 132, 252, 0.25);
  box-shadow: 0 0 15px rgba(192, 132, 252, 0.1);
}

/* ==================== RESUME MAIN CONTENT ==================== */

.resume-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.resume-card {
  background: rgba(15, 20, 40, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--profile-radius);
  padding: 2rem;
  border: 1px solid rgba(99, 102, 241, 0.12);
  box-shadow: var(--profile-shadow);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.resume-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--profile-radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(99, 102, 241, 0.2), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.resume-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.1), 0 0 20px rgba(6, 182, 212, 0.05);
  transform: translateY(-2px);
}

.resume-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
  padding-bottom: 0.75rem;
}

.resume-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--profile-primary);
  letter-spacing: 1px;
  margin: 0;
  text-transform: uppercase;
}

.resume-edit-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--profile-text-muted);
  font-size: 15px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.resume-edit-btn:hover {
  color: var(--profile-primary);
  background: rgba(6, 182, 212, 0.1);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.15);
}

.resume-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--profile-text);
  white-space: pre-wrap;
}

/* Lists and Items */

.resume-exp-list,
.resume-edu-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.resume-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.resume-item-header {
  font-size: 1.05rem;
  color: var(--profile-text);
}

.resume-item-title {
  font-weight: 600;
  color: #fff;
}

.resume-item-org {
  color: var(--profile-text-muted);
}

.resume-item-date {
  font-size: 0.9rem;
  color: var(--profile-primary);
  float: right;
}

.resume-item-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--profile-text-muted);
}

.resume-skills-list {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--profile-text);
  line-height: 1.8;
  word-spacing: 4px;
}

.resume-lower-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 700px) {
  .resume-lower-grid {
    grid-template-columns: 1fr;
  }
}

.resume-empty {
  color: var(--profile-text-muted);
  font-size: 0.95rem;
  font-style: italic;
}

.resume-add-link {
  background: none;
  border: none;
  color: var(--profile-primary);
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
  padding: 0;
  margin-left: 8px;
}

/* Loading & Error States */

.profile-loading,
.profile-not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 2rem;
  text-align: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(99, 102, 241, 0.15);
  border-top-color: #06b6d4;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.profile-not-found svg {
  color: var(--profile-text-muted);
  margin-bottom: 1.5rem;
}

.profile-not-found h2 {
  font-size: 1.5rem;
  color: var(--profile-text);
  margin-bottom: 0.5rem;
}

.profile-not-found p {
  color: var(--profile-text-muted);
  margin-bottom: 2rem;
}

/* ==================== PROFILE EDIT ==================== */

.profile-edit-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

.profile-editor {
  background: rgba(15, 20, 40, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--profile-radius);
  border: 1px solid rgba(99, 102, 241, 0.12);
  overflow: hidden;
}

/* Editor Header */

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: rgba(10, 14, 26, 0.7);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.editor-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--profile-text);
  margin: 0;
}

.editor-actions {
  display: flex;
  gap: 0.75rem;
}

/* Editor Completion */

.editor-completion {
  padding: 1rem 2rem;
  background: rgba(10, 14, 26, 0.5);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--profile-text-muted);
}

.editor-completion .completion-bar {
  flex: 1;
  margin: 0;
}

/* Editor Tabs */

.editor-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 2rem 0;
  background: rgba(10, 14, 26, 0.5);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  overflow-x: auto;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--profile-text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  position: relative;
}

.tab-btn:hover {
  color: var(--profile-text);
}

.tab-btn.active {
  color: var(--profile-primary);
  border-bottom-color: var(--profile-primary);
}

.tab-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: var(--profile-error);
  color: white;
  font-size: 0.7rem;
  border-radius: 10px;
  margin-left: 0.5rem;
}

/* Editor Content */

.editor-content {
  padding: 2rem;
}

.tab-content {
  display: none;
}

.tab-content[style*="block"] {
  display: block;
}

.tab-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 2rem;
}

.tab-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--profile-text);
  margin-bottom: 0.5rem;
}

.tab-description {
  font-size: 0.9rem;
  color: var(--profile-text-muted);
  line-height: 1.6;
}

/* Toggle Switch */

.toggle-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.toggle-switch input {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 48px;
  height: 24px;
  background: var(--profile-border);
  border-radius: 12px;
  transition: background 0.2s;
}

.toggle-slider:before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}

.toggle-switch input:checked+.toggle-slider {
  background: linear-gradient(135deg, #06b6d4, #6366f1);
}

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

.toggle-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--profile-text-muted);
}

/* Edit Forms */

.edit-form {
  max-width: 600px;
}

.avatar-upload-edit {
  margin-bottom: 2rem;
}

.avatar-edit-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.avatar-preview-edit {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--profile-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--profile-text);
}

.avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Input Groups */

.input-with-prefix {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--profile-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--profile-bg);
  transition: border-color 0.2s;
}

.input-with-prefix:focus-within {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

.input-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  background: var(--profile-border);
  color: var(--profile-text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.input-with-prefix input {
  flex: 1;
  border: none !important;
  background: transparent !important;
}

/* Array Fields */

.form-group-array {
  padding: 1.5rem;
  background: var(--profile-bg);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.array-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.array-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--profile-text);
  margin: 0;
}

.form-group-array input,
.form-group-array textarea,
.form-group-array select {
  width: 100%;
  margin-bottom: 0.75rem;
}

.form-group-inline {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.form-group-inline input {
  flex: 1;
  margin-bottom: 0 !important;
}

.date-range {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.date-range input {
  flex: 1;
}

.date-range span {
  color: var(--profile-text-muted);
  font-size: 0.9rem;
}

/* Checkboxes */

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.checkbox-label:hover {
  background: var(--profile-bg);
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkbox-label span {
  font-size: 0.95rem;
  color: var(--profile-text);
}

/* Select */

select {
  width: 100%;
  padding: 0.75rem;
  background: var(--profile-bg);
  border: 1px solid var(--profile-border);
  border-radius: 8px;
  color: var(--profile-text);
  font-size: 0.95rem;
  cursor: pointer;
}

/* Buttons */

.btn-primary {
  background: linear-gradient(135deg, #06b6d4, #6366f1);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #06b6d4, #a855f7);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--profile-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}

.btn-text {
  background: transparent;
  color: var(--profile-text-muted);
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-text:hover {
  color: var(--profile-text);
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--profile-text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: var(--profile-error);
  color: white;
}

.btn-add {
  width: 100%;
  margin-top: 0.5rem;
}

/* Error Toast */

.error-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: var(--profile-error);
  color: white;
  border-radius: 8px;
  box-shadow: var(--profile-shadow);
  font-size: 0.9rem;
  z-index: 10000;
  animation: slideInRight 0.3s ease;
}

/* ==================== ANIMATIONS ==================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 768px) {
  .onboarding-content {
    width: 95%;
    padding: 1.5rem;
  }

  .profile-view-container,
  .profile-edit-container {
    padding: 0.5rem;
  }

  .profile-header {
    padding: 1.5rem 1rem;
  }

  .profile-section {
    padding: 1.5rem 1rem;
  }

  .profile-stats {
    gap: 1rem;
    padding: 1rem;
  }

  .profile-actions {
    flex-direction: column;
    width: 100%;
  }

  .profile-actions button {
    width: 100%;
    justify-content: center;
  }

  .editor-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .editor-actions {
    width: 100%;
  }

  .editor-actions button {
    flex: 1;
  }

  .editor-tabs {
    padding: 0.75rem 1rem 0;
  }

  .editor-content {
    padding: 1.5rem 1rem;
  }

  .tab-header {
    flex-direction: column;
    gap: 1rem;
  }

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

  .experience-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .experience-date {
    align-self: flex-start;
  }

  .avatar-edit-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .date-range {
    flex-direction: column;
  }

  .error-toast {
    left: 1rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .profile-name {
    font-size: 1.5rem;
  }

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

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

  .stat-item {
    flex-direction: row;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .editor-header h1 {
    font-size: 1.2rem;
  }

  .tab-btn {
    font-size: 0.85rem;
    padding: 0.625rem 1rem;
  }
}