/* ==========================================================================
   PERSONALIZA FLOW - DESIGN SYSTEM (LIGHT THEME + DUAL SIDEBAR)
   ========================================================================== */

:root {
  /* Dual Sidebar Colors */
  --sidebar-dark-bg: #2d174d;
  --sidebar-dark-hover: #41226c;
  --sidebar-dark-active: #59338f;
  
  --sidebar-panel-bg: #ffffff;
  --sidebar-panel-border: #e2e8f0;

  /* Main Workspace Colors */
  --bg-main: #ffffff;
  --bg-card: #ffffff;
  --bg-card-subtle: #ffffff;
  --bg-input: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #59338f;

  /* Typography Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  /* Brand Accents */
  --primary: #59338f;
  --primary-hover: #482875;
  --primary-light: #f3eefb;
  --primary-text: #59338f;

  --success: #10b981;
  --success-light: #ecfdf5;
  --success-text: #047857;

  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --warning-text: #b45309;

  --danger: #ef4444;
  --danger-light: #fef2f2;
  --danger-text: #b91c1c;

  /* Dimensions & Radius */
  --dark-sidebar-width: 64px;
  --panel-sidebar-width: 250px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-family: 'Asap Sharp', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* App Layout */
.app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   DUAL SIDEBAR DESIGN (OLIST ERP STYLE)
   -------------------------------------------------------------------------- */

.dual-sidebar-wrapper {
  display: flex;
  height: 100vh;
  flex-shrink: 0;
  position: relative;
  z-index: 50;
  transition: width 0.25s ease;
}

/* 1. Dark Far-Left Strip */
.sidebar-strip {
  width: var(--dark-sidebar-width);
  background-color: var(--sidebar-dark-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  gap: 1.25rem;
  flex-shrink: 0;
  z-index: 1002;
}

.sidebar-top-brand {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #59338f, #8b5cf6);
  box-shadow: 0 3px 10px rgba(89, 51, 143, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-top-brand:hover {
  transform: scale(1.08);
  box-shadow: 0 5px 14px rgba(89, 51, 143, 0.65);
}

.strip-brand-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.strip-menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  align-items: center;
  list-style: none;
}

.strip-item {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.strip-item svg {
  width: 20px;
  height: 20px;
  stroke: #94a3b8;
  transition: var(--transition);
}

.strip-item:hover {
  background-color: var(--sidebar-dark-hover);
  color: #ffffff;
}

.strip-item:hover svg,
.strip-item.active svg {
  stroke: #ffffff;
}

.strip-item.active {
  background-color: var(--sidebar-dark-active);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(89, 51, 143, 0.4);
}

.strip-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  width: 100%;
}

/* Avatar Minha Conta (Faixa Escura) & Tooltip */
.strip-avatar-account {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 0.25rem;
}

.account-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  position: relative;
}

.account-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.strip-avatar-account:hover .account-avatar-circle {
  transform: scale(1.06);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.55);
}

.account-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background-color: #ffffff;
  color: #0f172a;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1005;
}

.account-tooltip::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 6px solid #ffffff;
}

.strip-avatar-account:hover .account-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* 2. Light Expandable Secondary Panel */
.sidebar-panel {
  width: var(--panel-sidebar-width);
  background-color: var(--sidebar-panel-bg);
  border-right: 1px solid var(--sidebar-panel-border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  flex-shrink: 0;
  z-index: 1001;
  box-shadow: var(--shadow-sm);
}

/* Comportamento quando o menu está DESAFIXADO (unpinned) */
.dual-sidebar-wrapper.unpinned {
  width: var(--dark-sidebar-width);
}

.dual-sidebar-wrapper.unpinned .sidebar-panel {
  position: fixed;
  left: var(--dark-sidebar-width);
  top: 0;
  bottom: 0;
  width: var(--panel-sidebar-width);
  background-color: var(--sidebar-panel-bg);
  border-right: 1px solid var(--sidebar-panel-border);
  box-shadow: 10px 0 25px rgba(0, 0, 0, 0.14);
  transform: translateX(-105%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

/* Ao passar o mouse na faixa ou no menu suspenso, ele abre em flyout/modal */
.dual-sidebar-wrapper.unpinned:hover .sidebar-panel,
.dual-sidebar-wrapper.unpinned.hover-open .sidebar-panel {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.brand-section {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-logo-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-decoration: none;
}

.brand-logo-img {
  max-width: 150px;
  max-height: 38px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

.section-label {
  width: 100%;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  padding-left: 0.85rem;
}

.panel-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.panel-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.panel-item:hover {
  background-color: #f1f5f9;
  color: var(--text-primary);
}

.panel-item.active {
  background-color: var(--primary-light);
  color: var(--primary-text);
  font-weight: 600;
}

.panel-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Botão Sair do Sistema (Pill Button) */
.btn-logout-sidebar {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-logout-sidebar svg {
  width: 17px;
  height: 17px;
  stroke: #64748b;
  transition: var(--transition);
}

.btn-logout-sidebar:hover {
  background-color: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
}

.btn-logout-sidebar:hover svg {
  stroke: #e11d48;
}

.pin-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0 0.25rem;
}

/* Switch Toggle Component */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .2s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}

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

input:checked + .slider:before {
  transform: translateX(16px);
}

/* --------------------------------------------------------------------------
   MAIN WORKSPACE & CARDS
   -------------------------------------------------------------------------- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 2rem 2.5rem;
}

.top-welcome-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.welcome-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.welcome-subtitle {
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 0.2rem;
  display: block;
}

/* Role Selector Pill */
.role-selector {
  display: inline-flex;
  background-color: #e2e8f0;
  padding: 3px;
  border-radius: 9999px;
  gap: 2px;
}

.role-btn {
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
  transition: var(--transition);
}

.role-btn.active {
  background-color: #ffffff;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------------------------------------
   700x200 BANNER COMPONENT
   -------------------------------------------------------------------------- */
.welcome-banner {
  width: 100%;
  max-width: 700px;
  height: 200px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 50%, #e2e8f0 100%);
  border: 1px solid var(--border-color);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(89, 51, 143, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.banner-content {
  max-width: 420px;
  z-index: 2;
}

.banner-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.banner-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.banner-cta:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(89, 51, 143, 0.3);
}

.banner-illustration {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, #f3eefb, #e9d5ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  box-shadow: 0 4px 14px rgba(89, 51, 143, 0.15);
  z-index: 2;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   LINHA DO TEMPO HORIZONTAL - PASSO A PASSO (COMPACTO / SECUNDÁRIO)
   -------------------------------------------------------------------------- */
.how-it-works-card {
  width: 100%;
  max-width: 960px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 2rem;
  box-shadow: none;
}

.how-it-works-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.how-it-works-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 1.35rem;
  line-height: 1.4;
}

/* Container da Linha do Tempo Horizontal */
.timeline-horizontal {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  align-items: stretch;
}

/* Linha horizontal contínua conectando os pontos */
.timeline-horizontal::before {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(10% - 10px);
  right: calc(10% - 10px);
  height: 2px;
  background: linear-gradient(90deg, #4a2f6d 0%, #6d3ea8 50%, #9061d4 100%);
  z-index: 1;
  border-radius: 999px;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Círculo com o Número */
.timeline-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #4a2f6d;
  color: #4a2f6d;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(74, 47, 109, 0.12);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.timeline-step:hover .timeline-circle {
  background: #4a2f6d;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(74, 47, 109, 0.25);
}

/* Card de Conteúdo de cada Etapa */
.timeline-content {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.85rem 0.65rem;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.timeline-step:hover .timeline-content {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.timeline-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #4a2f6d;
  margin-bottom: 0.3rem;
  line-height: 1.25;
}

.timeline-desc {
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.35;
  margin: 0;
}

/* Botão de Envio no Passo 5 */
.timeline-cta-btn {
  margin-top: auto;
  margin-top: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  background: #4a2f6d;
  color: #ffffff;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(74, 47, 109, 0.2);
}

.timeline-cta-btn:hover {
  background: #623696;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(74, 47, 109, 0.3);
}

/* Responsivo para tablets e telas menores */
@media (max-width: 820px) {
  .timeline-horizontal {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .timeline-horizontal::before {
    top: 0;
    bottom: 0;
    left: 16px;
    right: auto;
    width: 2px;
    height: 100%;
  }

  .timeline-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
  }

  .timeline-circle {
    margin-bottom: 0;
  }

  .timeline-content {
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   MINI BLOCKS "PRECISA DE AJUDA?"
   -------------------------------------------------------------------------- */
.help-section {
  max-width: 700px;
  margin-bottom: 2rem;
}

.help-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.help-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.help-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
  cursor: pointer;
}

.help-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.help-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.help-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.help-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Card Container (Light & Crisp) */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

/* Forms & Inputs */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

input, select, textarea {
  background-color: var(--bg-input);
  border: 1px solid #cbd5e1;
  color: var(--text-primary);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(89, 51, 143, 0.15);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(89, 51, 143, 0.3);
}

.btn-secondary {
  background-color: #f1f5f9;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

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

.btn-success {
  background-color: var(--success);
  color: #ffffff;
}

.btn-success:hover {
  background-color: #059669;
}

.btn-danger {
  background-color: var(--danger-light);
  color: var(--danger-text);
  border: 1px solid #fca5a5;
}

.btn-danger:hover {
  background-color: #fee2e2;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background-color: #ffffff;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: middle;
  font-size: 0.88rem;
}

tr:hover td {
  background-color: #f8fafc;
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-draft { background-color: #f1f5f9; color: var(--text-secondary); }
.badge-quoted { background-color: var(--primary-light); color: var(--primary-text); }
.badge-approved { background-color: var(--success-light); color: var(--success-text); }
.badge-dispatched { background-color: var(--warning-light); color: var(--warning-text); }

/* Quote Cards Grid */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.quote-card {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.quote-card:hover, .quote-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 4px 14px rgba(89, 51, 143, 0.15);
}

.quote-carrier {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

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

.quote-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.quote-details {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: pointer;
}

.modal-content {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  cursor: default;
  position: relative;
}

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

.modal-close {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   MEUS PRODUTOS (CLIENT CATALOG GRID)
   -------------------------------------------------------------------------- */
.my-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.product-catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.product-catalog-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card-img-wrapper {
  width: 100%;
  height: 180px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}

.product-card-img-wrapper::after {
  content: "Expandir Imagem";
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(4px);
  pointer-events: none;
}

.product-card-img-wrapper:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card-img-wrapper:hover .product-card-img {
  transform: scale(1.06);
}

.product-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(4px);
}

.product-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.product-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-stock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-card-subtle);
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.product-card-stock-qty {
  font-weight: 800;
  color: var(--success-text);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.product-card-specs {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1.25rem;
}

.product-card-footer {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   UTILITY CLASSES & TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */
.hidden,
.modal-backdrop.hidden,
.tab-page.hidden {
  display: none !important;
}

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  background: #0f172a;
  color: #ffffff;
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1), fadeOut 0.4s ease 3.6s forwards;
  border-left: 4px solid var(--primary);
}

.toast.toast-success {
  border-left-color: var(--success);
}

.toast.toast-error {
  border-left-color: var(--danger);
}

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

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* --------------------------------------------------------------------------
   SHIPMENT TRACKING CARDS & VERTICAL TIMELINE
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   COMPACT SHIPMENT TRACKING CARDS & HORIZONTAL LAYOUT
   -------------------------------------------------------------------------- */
.shipment-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.shipment-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.shipment-card-top-bar {
  background: #ffffff;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.shipment-card-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  padding: 1.1rem;
  align-items: start;
  background: #ffffff;
}

@media (max-width: 900px) {
  .shipment-card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.shipment-card-left-col {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.shipment-product-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  flex-shrink: 0;
}

.shipment-info-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.shipment-product-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.92rem;
}

.shipment-address-block {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
  background: #ffffff;
  padding: 0;
  border: none;
  margin-top: 0.35rem;
}

.shipment-address-block strong {
  color: var(--text-primary);
}

/* Timeline Vertical Compacta */
.shipment-timeline-compact {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 1.35rem;
}

.timeline-step-compact {
  position: relative;
  padding-bottom: 0.75rem;
}

.timeline-step-compact:last-child {
  padding-bottom: 0;
}

.timeline-step-compact::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 9px;
  bottom: -4px;
  width: 2px;
  background-color: #e2e8f0;
}

.timeline-step-compact:last-child::before {
  display: none;
}

.timeline-step-compact.completed::before {
  background-color: #000000;
}

.timeline-step-compact .timeline-dot {
  position: absolute;
  left: -20px;
  top: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  z-index: 2;
}

.timeline-step-compact.active .timeline-dot {
  background: #000000;
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.timeline-step-compact.completed .timeline-dot {
  background: #000000;
  border-color: #000000;
}

/* Destaque Verde para a Bolinha de Entrega Concluída */
.timeline-step-compact.step-entrega.active .timeline-dot,
.timeline-step-compact.step-entrega.delivered .timeline-dot,
.timeline-step-compact.delivered .timeline-dot,
.timeline-step-compact .timeline-dot.dot-delivered {
  background: #16a34a !important;
  border-color: #16a34a !important;
  box-shadow: 0 0 0 3.5px rgba(22, 163, 74, 0.22) !important;
}

.timeline-step-compact.step-entrega.active .timeline-step-compact-title,
.timeline-step-compact.step-entrega.delivered .timeline-step-compact-title,
.timeline-step-compact .timeline-step-compact-title.title-delivered {
  color: #15803d !important;
  font-weight: 700 !important;
}

.timeline-step-compact.step-entrega.active .timeline-step-compact-subtext,
.timeline-step-compact.step-entrega.delivered .timeline-step-compact-subtext {
  color: #16a34a !important;
}

.timeline-step-compact-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: #94a3b8;
}

.timeline-step-compact.active .timeline-step-compact-title {
  font-weight: 700;
  color: #0f172a;
}

.timeline-step-compact.completed .timeline-step-compact-title {
  color: #475569;
  font-weight: 600;
}

.timeline-step-compact-subtext {
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 0.05rem;
}

/* --------------------------------------------------------------------------
   MEUS ENDEREÇOS (LIST VIEW & SELECTION MODAL)
   -------------------------------------------------------------------------- */
.addresses-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.address-list-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  transition: var(--transition);
}

.address-list-item:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
  background: #fafbfc;
}

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

.address-list-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.address-list-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
}

.address-list-badge-recipient {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.address-list-badge-cep {
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.address-list-details {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.4;
}

.address-list-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.addresses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.address-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.address-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.address-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.6rem;
}

.address-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.address-card-body {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.address-card-body strong {
  color: var(--text-primary);
}

.address-card-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Modal Address Select Item */
.address-select-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.address-select-item:hover {
  border-color: var(--primary);
  background: #f8fafc;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   MINHA CONTA & FEEDBACK ALERTS
   -------------------------------------------------------------------------- */
.feedback-success {
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  display: block;
}

.feedback-error {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  display: block;
}

.feedback-success.hidden,
.feedback-error.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .my-account-grid {
    grid-template-columns: 1fr !important;
  }
}

/* --------------------------------------------------------------------------
   CORREÇÃO DA MINIATURA DE FOTO DE PERFIL (MINHA CONTA)
   -------------------------------------------------------------------------- */
#my-account-avatar-circle {
  width: 84px !important;
  height: 84px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  position: relative !important;
  margin: 0 auto 0.85rem auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25) !important;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
}

#my-account-avatar-circle img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 50% !important;
  display: block !important;
}

/* --------------------------------------------------------------------------
   ATUALIZAÇÕES & FAQ (ACCORDION STYLING)
   -------------------------------------------------------------------------- */
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-left: 0.75rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--primary);
}

.faq-item:hover {
  border-color: #cbd5e1 !important;
}

.welcome-subtitle {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(99, 102, 241, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.welcome-subtitle:hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}


