/* =============================================
   TEAM RAPARIGAS - ÁREA DO ALUNO
   Color Palette: #FFFFFF, #F7D9AE, #FB522A
   ============================================= */

:root {
  --white: #FFFFFF;
  --cream: #F7D9AE;
  --orange: #FB522A;
  --orange-dark: #d94018;
  --orange-light: #ff7a52;
  --dark: #1a1a1a;
  --dark-2: #2c2c2c;
  --gray: #6b7280;
  --gray-light: #f3f4f6;
  --gray-border: #e5e7eb;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --sidebar-width: 260px;
  --header-height: 64px;
  --transition: all 0.3s ease;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow: 0 4px 6px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f5f5f5;
  color: var(--dark);
  line-height: 1.6;
  font-size: 14px;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%; /* Previne zoom de fonte no iOS */
  touch-action: manipulation;    /* Melhora responsividade de toque */
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
}

input, textarea, select {
  font-family: inherit;
  outline: none;
}

/* =============================================
   LAYOUT: SIDEBAR + MAIN
   ============================================= */

.app-layout {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  width: 100%;
}

/* ---- SIDEBAR ---- */
.sidebar {
  width: var(--sidebar-width);
  background: var(--dark);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 1000;
  transition: var(--transition);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-header {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--dark-2);
  min-height: var(--header-height);
}

.sidebar-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--white);
  padding: 2px;
  flex-shrink: 0;
}

.sidebar-brand {
  flex: 1;
  overflow: hidden;
}

.sidebar-brand h2 {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-brand span {
  color: var(--cream);
  font-size: 11px;
  font-weight: 400;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: var(--transition);
  flex-shrink: 0;
}

.sidebar-close:hover { background: rgba(255,255,255,0.1); }

/* User Profile in Sidebar */
.sidebar-user {
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  overflow: hidden;
}

.user-info strong {
  color: var(--white);
  font-size: 13px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-info small {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
}

/* Nav Menu */
.sidebar-nav {
  flex: 1;
  padding: 12px 0;
}

.nav-section {
  margin-bottom: 4px;
}

.nav-section-title {
  color: rgba(255,255,255,0.35);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: rgba(255,255,255,0.65);
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
  position: relative;
  cursor: pointer;
}

.nav-item:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
  border-left-color: rgba(251,82,42,0.5);
}

.nav-item.active {
  color: var(--white);
  background: rgba(251,82,42,0.15);
  border-left-color: var(--orange);
}

.nav-item i {
  width: 18px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}

.nav-item .nav-badge {
  margin-left: auto;
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.btn-logout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(239,68,68,0.1);
  color: #fca5a5;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid rgba(239,68,68,0.2);
}

.btn-logout:hover {
  background: rgba(239,68,68,0.2);
  color: #fca5a5;
}

/* ---- MAIN CONTENT ---- */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  transition: var(--transition);
  min-width: 0;
  overflow-x: hidden;
  width: calc(100% - var(--sidebar-width));
}

/* ---- TOPBAR ---- */
.topbar {
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--dark);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: var(--transition);
}

.menu-toggle:hover { background: var(--gray-light); }

.topbar-title h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.topbar-title p {
  font-size: 12px;
  color: var(--gray);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-btn {
  background: none;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 17px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.topbar-btn:hover {
  background: var(--gray-light);
  color: var(--dark);
}

.topbar-btn .notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  border: 2px solid var(--white);
}

.topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid var(--cream);
}

/* ---- PAGE CONTENT ---- */
.page-content {
  flex: 1;
  padding: 24px 24px 40px;
  max-width: 1100px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  overflow-x: hidden;
}

/* =============================================
   COMPONENTS
   ============================================= */

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--gray-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-header h3 i {
  color: var(--orange);
}

.card-body {
  padding: 22px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(251,82,42,0.35);
}

.btn-secondary {
  background: var(--cream);
  color: var(--dark);
  border-color: var(--cream);
}

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

.btn-outline {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}

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

.btn-ghost {
  background: var(--gray-light);
  color: var(--gray);
  border-color: var(--gray-border);
}

.btn-ghost:hover {
  background: var(--gray-border);
  color: var(--dark);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 15px;
}

.btn-block { width: 100%; justify-content: center; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
}

.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef9c3; color: #a16207; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-info { background: #dbeafe; color: #1d4ed8; }
.badge-gray { background: var(--gray-light); color: var(--gray); }
.badge-orange { background: #ffedd5; color: #c2410c; }

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-label span.req { color: var(--orange); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(251,82,42,0.12);
}

.form-control::placeholder { color: #adb5bd; }

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

.form-hint {
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--gray-border);
  margin: 20px 0;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--gray);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.3;
  display: block;
}

.empty-state h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.empty-state p { font-size: 13px; }

/* Loading Spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid var(--gray-border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

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

/* Overlay / Backdrop */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  backdrop-filter: blur(2px);
}

.overlay.active { display: block; }

/* =============================================
   MODAL
   ============================================= */
.modal-wrapper {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-wrapper.active { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
}

.modal {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--gray-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-header h3 i { color: var(--orange); }

.modal-close {
  background: var(--gray-light);
  border: none;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.modal-close:hover { background: var(--gray-border); color: var(--dark); }

.modal-body { padding: 24px; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* =============================================
   UPLOAD AREA
   ============================================= */
.upload-area {
  border: 2px dashed var(--gray-border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  background: #fafafa;
}

.upload-area:hover, .upload-area.dragover {
  border-color: var(--orange);
  background: #fff7f4;
}

.upload-area i {
  font-size: 40px;
  color: var(--orange);
  margin-bottom: 12px;
  display: block;
}

.upload-area h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.upload-area p {
  font-size: 12.5px;
  color: var(--gray);
}

.upload-area .btn { margin-top: 14px; }

/* =============================================
   TIMELINE / STATUS BAR
   ============================================= */
.status-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  padding: 8px 0;
  overflow-x: auto;
}

.status-timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 24px;
  right: 24px;
  height: 3px;
  background: var(--gray-border);
  z-index: 0;
}

.timeline-progress {
  position: absolute;
  top: 28px;
  left: 24px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  z-index: 1;
  transition: width 0.8s ease;
  border-radius: 2px;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 90px;
}

.step-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: var(--white);
  border: 3px solid var(--gray-border);
  color: var(--gray);
  transition: var(--transition);
  position: relative;
}

.timeline-step.done .step-icon {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.timeline-step.active .step-icon {
  background: var(--white);
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 0 4px rgba(251,82,42,0.15);
}

.step-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--gray);
  text-align: center;
  line-height: 1.3;
  max-width: 82px;
}

.timeline-step.done .step-label,
.timeline-step.active .step-label {
  color: var(--dark);
}

.timeline-step.active .step-label {
  color: var(--orange);
}

/* =============================================
   FEED POSTS
   ============================================= */
.feed-post {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
  border-left: 4px solid transparent;
  transition: var(--transition);
}

.feed-post:hover { box-shadow: var(--shadow-lg); }
.feed-post.type-update { border-left-color: var(--info); }
.feed-post.type-alert { border-left-color: var(--orange); }
.feed-post.type-success { border-left-color: var(--success); }
.feed-post.type-tip { border-left-color: var(--warning); }

.feed-post-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.feed-post-avatar {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.feed-post-meta { flex: 1; }

.feed-post-meta strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  display: block;
}

.feed-post-meta span {
  font-size: 12px;
  color: var(--gray);
}

.feed-post-content {
  font-size: 14px;
  color: var(--dark-2);
  line-height: 1.7;
}

.feed-post-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =============================================
   PROGRESS BAR
   ============================================= */
.progress-bar-wrap {
  background: var(--gray-border);
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
  flex: 1;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  transition: width 0.6s ease;
}

.progress-bar-fill.green {
  background: linear-gradient(90deg, #22c55e, #86efac);
}

.progress-bar-fill.yellow {
  background: linear-gradient(90deg, #f59e0b, #fcd34d);
}

.progress-bar-fill.red {
  background: linear-gradient(90deg, var(--danger), #fca5a5);
}

/* =============================================
   EXAM LIST ITEM
   ============================================= */
.exam-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: var(--white);
  transition: var(--transition);
}

.exam-item:hover { border-color: var(--cream); box-shadow: var(--shadow-sm); }

.exam-icon {
  width: 40px; height: 40px;
  background: #fff7f4;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 18px;
  flex-shrink: 0;
}

.exam-info { flex: 1; }

.exam-info strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark);
}

.exam-info small {
  font-size: 12px;
  color: var(--gray);
}

.exam-sla {
  flex: 1;
  max-width: 160px;
}

.exam-sla span {
  display: block;
  font-size: 11px;
  color: var(--gray);
  margin-bottom: 4px;
}

/* =============================================
   FILE LIST ITEM
   ============================================= */
.file-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: var(--transition);
  background: var(--white);
}

.file-item:hover { border-color: var(--orange); box-shadow: var(--shadow-sm); }

.file-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.file-icon.pdf { background: #fee2e2; color: #ef4444; }
.file-icon.doc { background: #dbeafe; color: #3b82f6; }
.file-icon.img { background: #dcfce7; color: #22c55e; }
.file-icon.other { background: var(--gray-light); color: var(--gray); }

.file-info { flex: 1; }

.file-info strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark);
}

.file-info p {
  font-size: 12px;
  color: var(--gray);
  margin: 2px 0;
}

.file-info small {
  font-size: 11.5px;
  color: #9ca3af;
}

/* =============================================
   DOUBT / SOLICITAÇÃO ITEM
   ============================================= */
.doubt-item {
  padding: 16px 18px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: var(--white);
  transition: var(--transition);
}

.doubt-item:hover { border-color: var(--cream); box-shadow: var(--shadow-sm); }

.doubt-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.doubt-item-header h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  flex: 1;
}

.doubt-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.doubt-meta span {
  font-size: 12px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 4px;
}

.doubt-message {
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.6;
}

.doubt-answer {
  margin-top: 12px;
  padding: 12px 14px;
  background: #f0fdf4;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--success);
}

.doubt-answer strong {
  font-size: 12px;
  color: #15803d;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.doubt-answer p {
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
}

/* =============================================
   FAQ ACCORDION
   ============================================= */
.faq-item {
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open { border-color: var(--orange); }

.faq-question {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: var(--white);
  transition: var(--transition);
  gap: 12px;
}

.faq-question:hover { background: #fafafa; }
.faq-item.open .faq-question { background: #fff7f4; }

.faq-question h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  flex: 1;
  line-height: 1.4;
}

.faq-question i {
  color: var(--orange);
  font-size: 16px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-question i { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 18px 16px;
  background: #fff7f4;
}

.faq-answer p {
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.7;
  padding-top: 4px;
  border-top: 1px solid rgba(251,82,42,0.1);
  padding-top: 12px;
}

/* =============================================
   PENDÊNCIAS
   ============================================= */
.pendencia-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: var(--white);
  transition: var(--transition);
}

.pendencia-item:hover { border-color: var(--cream); }

.pendencia-item.urgente { border-left: 4px solid var(--danger); }
.pendencia-item.normal { border-left: 4px solid var(--warning); }

.pendencia-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #fff7f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 18px;
  flex-shrink: 0;
}

.pendencia-icon.danger {
  background: #fee2e2;
  color: var(--danger);
}

.pendencia-info { flex: 1; }

.pendencia-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.pendencia-info p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
}

/* =============================================
   CONTA / PROFILE
   ============================================= */
.profile-banner {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, #3a1a08 100%);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.profile-banner::after {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(251,82,42,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.profile-banner-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
  border: 3px solid rgba(247,217,174,0.4);
  flex-shrink: 0;
}

.profile-banner-info h2 {
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
}

.profile-banner-info p {
  color: var(--cream);
  font-size: 13px;
  margin-top: 4px;
}

.profile-banner-info .badges { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }

/* =============================================
   CONVITES
   ============================================= */
.invite-card {
  background: linear-gradient(135deg, var(--dark) 0%, #2a1205 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  color: var(--white);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.invite-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(251,82,42,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.invite-code-box {
  background: rgba(255,255,255,0.1);
  border: 1px dashed rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin: 16px auto;
  max-width: 320px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.invite-code-box span {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cream);
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 3px solid var(--gray-border);
  transition: var(--transition);
}

.stat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.stat-card.orange { border-top-color: var(--orange); }
.stat-card.green { border-top-color: var(--success); }
.stat-card.blue { border-top-color: var(--info); }
.stat-card.yellow { border-top-color: var(--warning); }

.stat-card .stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
}

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: var(--white);
}

.login-left {
  flex: 1;
  background: linear-gradient(145deg, var(--dark) 0%, #1a0a02 50%, #2d1205 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(251,82,42,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.login-left-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.login-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 28px;
  filter: drop-shadow(0 8px 24px rgba(251,82,42,0.3));
}

.login-left-content h1 {
  color: var(--white);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.2;
}

.login-left-content h1 span { color: var(--orange); }

.login-left-content p {
  color: var(--cream);
  font-size: 15px;
  opacity: 0.8;
  line-height: 1.6;
  max-width: 340px;
}

.login-features {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  width: 100%;
  max-width: 320px;
}

.login-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.75);
  font-size: 13.5px;
}

.login-feature i {
  width: 32px; height: 32px;
  background: rgba(251,82,42,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 14px;
  flex-shrink: 0;
}

.login-right {
  width: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: var(--white);
}

.login-form-box {
  width: 100%;
  max-width: 360px;
}

.login-form-box .login-mobile-logo {
  display: none;
  text-align: center;
  margin-bottom: 28px;
}

.login-mobile-logo img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.login-form-box h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}

.login-form-box p.subtitle {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 32px;
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap i.icon-left {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 15px;
}

.input-icon-wrap .form-control {
  padding-left: 40px;
}

.input-icon-wrap .toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 15px;
  padding: 2px;
}

.forgot-link {
  text-align: right;
  margin-top: -10px;
  margin-bottom: 20px;
}

.forgot-link a {
  font-size: 12.5px;
  color: var(--orange);
  font-weight: 500;
}

.forgot-link a:hover { text-decoration: underline; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--gray);
  font-size: 12px;
}

.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-border);
}

.login-footer-text {
  text-align: center;
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--gray);
}

.login-footer-text a { color: var(--orange); font-weight: 600; }

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header h2 i { color: var(--orange); }

.section-header .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =============================================
   INFO BOX
   ============================================= */
.info-box {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.info-box i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

.info-box.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.info-box.warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.info-box.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #14532d;
}

.info-box ul {
  margin-top: 6px;
  padding-left: 16px;
}

.info-box ul li {
  list-style: disc;
  margin-bottom: 3px;
  font-size: 12.5px;
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--dark);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 250px;
  max-width: 360px;
  animation: toastIn 0.3s ease;
  pointer-events: auto;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.info { border-left: 4px solid var(--info); }

.toast i { font-size: 16px; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.warning i { color: var(--warning); }
.toast.info i { color: var(--info); }

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

/* =============================================
   RESPONSIVE — MOBILE FIRST
   Base: 430px (iPhone 15 Pro Max)
   ============================================= */

/* ---- TABLET: ≤ 1024px ---- */
@media (max-width: 1024px) {
  .page-content { padding: 20px 18px 36px; }
  .login-left { display: none; }
  .login-right { width: 100%; }
  .login-form-box .login-mobile-logo { display: block; }
}

/* ---- MOBILE: ≤ 768px ---- */
@media (max-width: 768px) {

  /* --- Sidebar como drawer --- */
  .sidebar {
    position: fixed;
    left: -100%;
    width: 82vw;
    max-width: 300px;
    height: 100dvh;
    z-index: 1100;
    box-shadow: 4px 0 24px rgba(0,0,0,0.3);
  }
  .sidebar.open { left: 0; }
  .sidebar-close { display: flex !important; }

  /* --- Main sem margem lateral --- */
  .main-content {
    margin-left: 0;
    width: 100%;
    min-width: 0;
  }

  /* --- Topbar --- */
  .menu-toggle { display: flex; }
  .topbar { padding: 0 14px; height: 56px; }
  .topbar-title h1 { font-size: 16px; }
  .topbar-title p { display: none; }
  .topbar-btn { width: 34px; height: 34px; font-size: 15px; }
  .topbar-avatar { width: 32px; height: 32px; font-size: 13px; }

  /* --- Page content --- */
  .page-content {
    padding: 14px 12px 80px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* --- Cards --- */
  .card { border-radius: 10px; }
  .card-body { padding: 14px; }
  .card-header { padding: 14px 16px; }

  /* --- Stats row --- */
  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat-card { padding: 14px 10px; }
  .stat-card .stat-num { font-size: 22px; }
  .stat-card .stat-label { font-size: 11px; }

  /* --- Status timeline --- */
  .status-timeline-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .status-timeline { min-width: 500px; }
  .step-label { font-size: 10px; max-width: 72px; }
  .step-icon { width: 30px; height: 30px; font-size: 12px; }

  /* --- Feed posts --- */
  .feed-post { padding: 14px; border-radius: 10px; }
  .feed-post-avatar { width: 34px; height: 34px; font-size: 14px; border-radius: 8px; }
  .feed-post-meta strong { font-size: 13px; }
  .feed-post-meta span { font-size: 11px; }
  .feed-post-content { font-size: 13px; }

  /* --- Section header --- */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .section-header h2 { font-size: 15px; }
  .section-header .actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .section-header .actions .btn {
    flex: 1;
    justify-content: center;
    font-size: 12px;
    padding: 8px 10px;
  }

  /* --- Buttons --- */
  .btn { font-size: 13px; padding: 8px 14px; }
  .btn-lg { padding: 11px 20px; font-size: 14px; }

  /* --- Modal --- */
  .modal-wrapper { align-items: flex-end; padding: 0; }
  .modal {
    max-width: 100%;
    width: 100%;
    margin: 0;
    border-radius: 18px 18px 0 0;
    max-height: 92dvh;
  }
  .modal-body { padding: 18px 16px; }
  .modal-header { padding: 16px 18px; }
  .modal-footer {
    padding: 14px 16px;
    flex-direction: column;
    gap: 8px;
  }
  .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }

  /* --- Upload area --- */
  .upload-area { padding: 24px 16px; }
  .upload-area i { font-size: 28px; }
  .upload-area h4 { font-size: 13px; }

  /* --- Forms --- */
  .form-control { font-size: 16px; } /* evita zoom no iOS */
  select.form-control { font-size: 16px; }

  /* --- Doubt items --- */
  .doubt-item { padding: 12px 14px; }
  .doubt-item-header { flex-direction: column; gap: 8px; }
  .doubt-item-header h4 { font-size: 13.5px; }

  /* --- File items --- */
  .file-item {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
  }
  .file-item .btn { width: 100%; justify-content: center; margin-top: 4px; }
  .file-info { min-width: 0; }
  .file-info strong { font-size: 13px; white-space: normal; word-break: break-word; }

  /* --- Exam items --- */
  .exam-item {
    flex-wrap: wrap;
    padding: 12px 14px;
    gap: 10px;
  }
  .exam-sla { max-width: 100%; width: 100%; order: 3; }

  /* --- Pendencias --- */
  .pendencia-item { flex-wrap: wrap; padding: 12px 14px; gap: 10px; }
  .pendencia-item > .btn { width: 100%; justify-content: center; }

  /* --- Profile banner --- */
  .profile-banner {
    flex-direction: column;
    text-align: center;
    padding: 22px 18px;
    gap: 14px;
  }
  .profile-banner-info .badges { justify-content: center; }
  .profile-banner > .btn { width: 100%; justify-content: center; }

  /* --- Invite card --- */
  .invite-card { padding: 20px 16px; }
  .invite-code-box { padding: 10px 14px; }
  .invite-code-box span { font-size: 16px; letter-spacing: 0.06em; }

  /* --- FAQ --- */
  .faq-question { padding: 13px 14px; }
  .faq-question h4 { font-size: 13px; }
  .faq-answer { padding: 0 14px 14px; }
  .faq-answer p { font-size: 13px; }

  /* --- Login --- */
  .login-right { padding: 28px 20px; }
  .login-form-box h2 { font-size: 20px; }

  /* --- Info boxes --- */
  .info-box { font-size: 12.5px; padding: 12px 14px; }

  /* --- Badges --- */
  .badge { font-size: 11px; padding: 3px 8px; }
}

/* ---- SMALL MOBILE: ≤ 430px (iPhone 15 Pro Max e menores) ---- */
@media (max-width: 430px) {

  body { font-size: 13.5px; }

  /* Topbar */
  .topbar { padding: 0 12px; height: 52px; }
  .topbar-title h1 { font-size: 15px; }

  /* Page padding */
  .page-content { padding: 12px 10px 80px; }

  /* Cards */
  .card-body { padding: 12px; }
  .card-header { padding: 12px 14px; }
  .card-header h3 { font-size: 14px; }

  /* Stats: coluna única se necessário */
  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .stat-card { padding: 12px 8px; border-radius: 10px; }
  .stat-card .stat-num { font-size: 20px; }
  .stat-card .stat-label { font-size: 10.5px; }

  /* Buttons */
  .btn { font-size: 12.5px; padding: 8px 12px; gap: 6px; }
  .btn-lg { padding: 10px 18px; font-size: 13.5px; }
  .btn-sm { font-size: 11.5px; padding: 5px 10px; }

  /* Feed */
  .feed-post { padding: 12px; margin-bottom: 12px; }
  .feed-post-header { gap: 10px; }

  /* Section header */
  .section-header h2 { font-size: 14px; }

  /* Doubt items */
  .doubt-meta { gap: 6px; }

  /* Profile banner */
  .profile-banner-avatar { width: 56px; height: 56px; font-size: 22px; }
  .profile-banner-info h2 { font-size: 17px; }
  .profile-banner-info p { font-size: 11.5px; }

  /* Login */
  .login-right { padding: 24px 16px 32px; }
  .login-form-box h2 { font-size: 19px; }
  .login-form-box p.subtitle { font-size: 13px; margin-bottom: 24px; }
  .login-mobile-logo img { width: 72px; height: 72px; }

  /* Invite card */
  .invite-card { padding: 18px 14px; border-radius: 14px; }
  .invite-card h2 { font-size: 18px; }
  .invite-code-box span { font-size: 15px; }

  /* FAQ hero */
  .faq-hero-title { font-size: 17px; }

  /* File items */
  .file-icon { width: 38px; height: 38px; font-size: 17px; border-radius: 8px; }

  /* Exam items */
  .exam-icon { width: 36px; height: 36px; font-size: 16px; border-radius: 8px; }

  /* Modal */
  .modal { max-height: 95dvh; }
  .modal-header h3 { font-size: 15px; }

  /* Info box */
  .info-box { padding: 10px 12px; font-size: 12px; }
  .info-box ul li { font-size: 12px; }

  /* Upload area */
  .upload-area { padding: 20px 12px; }

  /* Pendencia items */
  .pendencia-info strong { font-size: 13px; }
  .pendencia-info p { font-size: 12px; }

  /* Empty state */
  .empty-state { padding: 36px 16px; }
  .empty-state i { font-size: 38px; }
  .empty-state h4 { font-size: 15px; }
  .empty-state p { font-size: 12.5px; }
}

/* =============================================
   LAYOUT HELPERS
   ============================================= */

/* Wrapper que substitui os inline flex centering */
.main-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

/* Step desc row (home timeline) */
.progress-subtitle {
  font-size: 12.5px;
  color: var(--gray);
  margin-bottom: 16px;
}

.step-desc-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.step-desc-box {
  flex: 1;
  min-width: 0;
  border-radius: 8px;
  padding: 12px 14px;
}

.step-desc-box strong {
  font-size: 12px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.step-desc-box p {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
}

.step-desc-box a {
  color: var(--orange);
  font-weight: 600;
}

.step-desc-pending {
  background: #f9fafb;
  border-left: 3px solid var(--orange);
}

.step-desc-done {
  background: #f0fdf4;
  border-left: 3px solid var(--success);
}

.step-desc-done strong { color: #15803d; }

/* Load more wrap */
.load-more-wrap {
  text-align: center;
  margin-top: 8px;
}

/* conta.html grid */
.conta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.conta-grid-full {
  grid-column: 1 / -1;
}

/* share buttons row */
.share-btn-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* invite form row */
.invite-form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.invite-form-row .form-group {
  flex: 1;
  min-width: 160px;
  margin-bottom: 0;
}

.invite-form-row .btn {
  flex-shrink: 0;
  height: 42px;
}

/* how it works grid */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}

.how-step {
  padding: 14px 10px;
  background: #f9fafb;
  border-radius: var(--radius-sm);
}

.how-step-green { background: #f0fdf4; }
.how-step-blue { background: #eff6ff; }

.how-step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 17px;
  font-weight: 800;
  margin: 0 auto 10px;
}

.how-step strong {
  font-size: 13px;
  color: var(--dark);
  display: block;
  margin-bottom: 4px;
}

.how-step p {
  font-size: 11.5px;
  color: var(--gray);
  line-height: 1.4;
}

/* Dados pessoais view grid */
.dados-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dados-grid-item p.label-small {
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.dados-grid-item p.value {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

/* Dados edit grid */
.dados-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.dados-edit-grid .form-group {
  margin-bottom: 0;
}

/* profile banner edit btn */
.profile-banner-edit {
  margin-left: auto;
  flex-shrink: 0;
}

/* faq hero */
.faq-hero {
  background: linear-gradient(135deg, var(--dark), #2a1205);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  margin-bottom: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.faq-hero::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(251,82,42,0.15), transparent 70%);
  border-radius: 50%;
}

.faq-hero-icon {
  font-size: 36px;
  color: var(--orange);
  margin-bottom: 10px;
  display: block;
  position: relative;
  z-index: 1;
}

.faq-hero-title {
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.faq-hero-subtitle {
  color: var(--cream);
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.faq-search-wrap {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  z-index: 1;
}

.faq-search-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
}

.faq-search-wrap .form-control {
  padding-left: 42px;
  border-radius: 50px;
  border-color: transparent;
}

/* FAQ filter row */
.faq-filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* invite stats row */
.invite-stats-note {
  text-align: center;
  font-size: 11px;
  color: var(--gray);
  margin-top: 14px;
}

/* Plano card info rows */
.plano-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 6px 0;
}

/* security item */
.security-item {
  padding: 12px 14px;
  background: var(--gray-light);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.security-item strong {
  font-size: 13px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.security-item p {
  font-size: 12px;
  color: var(--gray);
  margin-top: 2px;
}

/* toggle switch */
.notif-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  padding-top: 4px;
}

/* Profile banner edit button on mobile */
@media (max-width: 768px) {
  .profile-banner-edit {
    margin-left: 0;
    width: 100%;
  }
  .profile-banner-edit .btn {
    width: 100%;
    justify-content: center;
  }

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

  .conta-grid-full {
    grid-column: 1 / -1;
  }

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

  .dados-edit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .invite-form-row {
    flex-direction: column;
  }

  .invite-form-row .form-group {
    width: 100%;
  }

  .invite-form-row .btn {
    width: 100%;
    justify-content: center;
  }

  .how-it-works {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .share-btn-row .btn { flex: 1; min-width: 90px; }

  .step-desc-row { flex-direction: column; }
  .step-desc-box { min-width: 100%; }
}

@media (max-width: 430px) {
  .dados-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dados-edit-grid {
    grid-template-columns: 1fr 1fr;
  }
  .faq-hero { padding: 22px 14px 18px; border-radius: 12px; }
  .faq-hero-title { font-size: 17px; }
  .invite-code-box { flex-direction: column; gap: 8px; text-align: center; }
  .invite-code-box .btn { width: 100%; justify-content: center; }
}

/* dados-grid labels */
.dados-grid-item .label-small {
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.dados-grid-item .value {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

/* Plano banner */
.plano-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, var(--dark), #2a1205);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.plano-icon {
  width: 44px;
  height: 44px;
  background: rgba(251,82,42,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 20px;
  flex-shrink: 0;
}

.plano-name {
  color: var(--white);
  font-size: 15px;
  display: block;
}

.plano-desc {
  color: var(--cream);
  font-size: 12px;
}

.plano-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--orange);
  border-radius: 24px;
  transition: 0.3s;
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
  transform: translateX(20px);
}

/* label optional hint */
.label-optional {
  font-weight: 400;
  color: var(--gray);
  font-size: 12px;
}

/* Search + filter row */
.search-filter-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.search-input-wrap {
  flex: 1;
  min-width: 180px;
  position: relative;
}

.search-input-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 14px;
}

.search-input-wrap .form-control {
  padding-left: 38px;
}

.cat-filter {
  max-width: 180px;
  flex-shrink: 0;
}

/* pendencia meta & action */
.pendencia-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.pendencia-prazo {
  font-size: 12px;
  color: var(--gray);
}

.pendencia-action {
  flex-shrink: 0;
  align-self: flex-start;
}

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

.dados-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.dados-edit-grid .form-group {
  margin-bottom: 0;
}

/* Invite card inner */
.invite-card-content {
  position: relative;
  z-index: 1;
}

.invite-card-icon {
  font-size: 36px;
  color: var(--orange);
  margin-bottom: 10px;
  display: block;
}

.invite-card-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--white);
}

.invite-card-desc {
  color: var(--cream);
  font-size: 13.5px;
  opacity: 0.9;
  margin-bottom: 4px;
}

.invite-card-desc strong { color: var(--orange); }

.invite-card-note {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  margin-bottom: 18px;
}

.invite-card-note strong { color: var(--cream); }

.invite-code-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}

/* share buttons */
.btn-invite-copy {
  background: var(--orange);
  color: white;
  border: none;
  flex-shrink: 0;
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  border: none;
}

.btn-instagram {
  background: linear-gradient(135deg,#405de6,#5851db,#833ab4,#c13584,#e1306c,#fd1d1d);
  color: white;
  border: none;
}

.btn-copylink {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

/* faq need help box */
.faq-need-help {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
  text-align: center;
  border: 2px dashed var(--gray-border);
}

.faq-need-help i {
  font-size: 28px;
  color: var(--orange);
  margin-bottom: 10px;
  display: block;
}

.faq-need-help h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.faq-need-help p {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 14px;
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--gray-light); }
::-webkit-scrollbar-thumb { background: var(--cream); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* =============================================
   UTILITY CLASSES
   ============================================= */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-gray { color: var(--gray); }
.text-orange { color: var(--orange); }
.text-sm { font-size: 12.5px; }
.fw-bold { font-weight: 700; }
.w-100 { width: 100%; }
