.sm-content {
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.sm-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.sm-header .bc {
  font-size: 11px;
  color: #9ca3af;
}

.sm-header .bc a {
  color: #9ca3af;
  text-decoration: none;
}

.sm-btn-outline {
  background: transparent;
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
}

.sm-btn-outline:hover {
  background: #f9fafb;
}

/* Profile Banner */
.sm-profile-banner {
  background: #fff url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M50 0 L100 25 L100 75 L50 100 L0 75 L0 25 Z" fill="%23f9fafb" stroke="%23f3f4f6" stroke-width="2"/></svg>') center/100px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.sm-banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), #fff);
}

.sm-avatar {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 12px;
}

.sm-avatar img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #22c55e;
  padding: 2px;
  background: #fff;
}

.sm-name {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.sm-name i {
  color: #3b82f6;
  font-size: 14px;
}

.sm-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #6b7280;
  flex-wrap: wrap;
  justify-content: center;
}

.sm-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Profile Nav */
.sm-profile-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.sm-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
}

.sm-nav-links a {
  padding: 16px 0;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: .15s;
}

.sm-nav-links a:hover, .sm-nav-links a.active {
  color: #111827;
  border-bottom-color: #3b82f6;
}

.sm-nav-links a i {
  font-size: 10px;
  margin-left: 4px;
}

.sm-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
}

.sm-icon-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #6b7280;
  background: #fff;
  cursor: pointer;
  transition: .15s;
  font-size: 12px;
}

.sm-icon-btn:hover {
  background: #f9fafb;
  color: #111827;
}

/* Large Modal */
.sm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
}

.sm-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.sm-modal {
  background: #f9fafb;
  width: 95%;
  max-width: 1100px;
  height: 90vh;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: .2s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sm-modal-overlay.open .sm-modal {
  transform: translateY(0);
}

.sm-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.sm-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.sm-modal-subtitle {
  font-size: 11px;
  color: #6b7280;
}

.sm-modal-close {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 6px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  cursor: pointer;
  transition: .15s;
  font-size: 11px;
  font-weight: 600;
}

.sm-modal-close:hover {
  background: #f3f4f6;
}

.sm-modal-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Modal Sidebar */
.sm-modal-sidebar {
  width: 240px;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  padding: 20px;
  overflow-y: auto;
}

.sm-modal-nav-group {
  margin-bottom: 24px;
}

.sm-modal-nav-title {
  font-size: 11px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
  padding-left: 12px;
}

.sm-modal-nav-link {
  display: block;
  padding: 8px 12px;
  font-size: 12px;
  color: #6b7280;
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 4px;
  transition: .15s;
}

.sm-modal-nav-link:hover {
  color: #111827;
  background: #f9fafb;
}

.sm-modal-nav-link.active {
  color: #3b82f6;
  background: #eff6ff;
  font-weight: 600;
}

/* Modal Content Area */
.sm-modal-content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.sm-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.sm-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.sm-card-subtitle {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 20px;
}

.sm-btn-primary {
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
}

.sm-btn-primary:hover {
  background: #2563eb;
}

.sm-btn-danger {
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
}

.sm-btn-outline {
  background: transparent;
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
}

/* Theme Mode */
.sm-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.sm-theme-item {
  text-align: left;
}

.sm-theme-img {
  width: 100%;
  height: auto;
  border: 2px solid transparent;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}

.sm-theme-img.active {
  border-color: #22c55e;
}

.sm-theme-label {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
}

/* Toggle */
.toggle {
  position: relative;
  width: 34px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

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

.toggle span {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: #d1d5db;
  cursor: pointer;
  transition: .2s;
}

.toggle span::before {
  content: '';
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 2px;
  top: 2px;
  transition: .2s;
}

.toggle input:checked + span {
  background: #3b82f6;
}

.toggle input:checked + span::before {
  transform: translateX(15px);
}

/* Cards & rows */
.sm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
}

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

.sm-row-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.sm-row-info p {
  font-size: 11px;
  color: #6b7280;
}

.sm-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
  color: #111827;
  font-family: inherit;
  outline: none;
}

.sm-form-row {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.sm-form-label {
  width: 160px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.sm-form-input {
  flex: 1;
}

.sm-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 30px;
}

.footer {
  margin-top: 100px;
}

  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
}

.sm-btn-primary:hover {
  background: #2563eb;
}

@media (max-width: 640px) {
  .sm-profile-nav {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }
  .sm-nav-links {
    padding: 0 16px;
    border-bottom: 1px solid #e5e7eb;
  }
  .sm-nav-actions {
    padding: 12px 16px;
    justify-content: flex-end;
  }
}
