* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Paleta:
   Azul escuro: #0A2E5D
   Azul médio:  #0F5FAF
   Azul claro:  #1FB6E9
   Branco:      #FFFFFF
*/

body {
  background: #0A2E5D;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  color: #0A2E5D;
}

/* ====== MINI CHAT ====== */

.chat-section {
  background: #0f172a;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  border: 1px solid #1e293b;
  margin-top: 20px;
}

.admin-body .chat-section,
.seller-body .chat-section {
  background: rgba(15, 23, 42, 0.75);
  border-radius: 12px;
  box-shadow: none;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

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

.chat-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f8fafc;
}

.chat-header p {
  font-size: 0.92rem;
  color: #94a3b8;
}

.chat-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-controls label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5f5;
}

.chat-select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #334155;
  font-size: 0.9rem;
  background: #0b1220;
  color: #e2e8f0;
}

.chat-messages {
  background: #0b1220;
  border-radius: 12px;
  padding: 12px;
  min-height: 140px;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #1f2937;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-message {
  max-width: 75%;
  padding: 10px 12px;
  border-radius: 12px;
  background: #0f172a;
  border: 1px solid #1f2937;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  color: #e2e8f0;
}

.chat-message--outgoing {
  align-self: flex-end;
  background: #1d4ed8;
  color: #FFFFFF;
  border-color: #1d4ed8;
}

.chat-message--outgoing .chat-meta {
  color: rgba(255, 255, 255, 0.7);
}

.chat-message--incoming {
  align-self: flex-start;
}

.chat-message p {
  font-size: 0.95rem;
  line-height: 1.4;
  word-break: break-word;
}

.chat-image {
  margin-top: 8px;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid #1f2937;
}

.chat-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  word-break: break-word;
}

.chat-meta {
  margin-top: 6px;
  font-size: 0.72rem;
  color: #94a3b8;
}

.chat-form {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.chat-form input[type=\"text\"],
.chat-form textarea {
  flex: 1 1 320px;
  padding: 12px 14px;
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid #334155;
  font-size: 0.98rem;
  background: #0b1220;
  color: #e2e8f0;
}

.chat-form textarea {
  min-height: 90px;
  resize: vertical;
}

.chat-upload {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px dashed #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.chat-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.chat-send-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: #38bdf8;
  color: #FFFFFF;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(56, 189, 248, 0.35);
}

.chat-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.chat-clear-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.6);
  background: rgba(248, 113, 113, 0.15);
  color: #fecaca;
  font-weight: 700;
  cursor: pointer;
}

.chat-clear-btn:hover {
  background: rgba(248, 113, 113, 0.25);
}

.chat-alert-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.9);
  background: #ef4444;
  color: #fff5f5;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(248, 113, 113, 0.3);
}

.chat-alert-btn:hover {
  filter: brightness(1.05);
}

.chat-status {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #cbd5f5;
}

.chat-upload-status {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
}

.chat-upload-status.is-loading {
  color: #fbbf24;
}

.chat-upload-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(251, 191, 36, 0.3);
  border-top-color: #fbbf24;
  animation: chatSpinner 0.9s linear infinite;
}

.chat-upload-ready {
  color: #4ade80;
  font-weight: 700;
}

.chat-message--alert {
  border-color: #f87171;
  box-shadow: 0 8px 18px rgba(248, 113, 113, 0.2);
}

.chat-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.2);
  color: #fecaca;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

@keyframes chatSpinner {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.chat-notification {
  display: none;
  align-items: center;
  gap: 6px;
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.chat-notification.is-visible {
  display: inline-flex;
}

.chat-badge {
  background: #ef4444;
  color: #FFFFFF;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 0.75rem;
}

.chat-shell {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.chat-profiles {
  width: 210px;
  background: #0b1220;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.chat-profiles-empty {
  color: #94a3b8;
  font-size: 0.85rem;
}

.chat-profile-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #e2e8f0;
  cursor: pointer;
  text-align: left;
}

.chat-profile-item:hover {
  border-color: #334155;
  background: rgba(148, 163, 184, 0.1);
}

.chat-profile-item.is-active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
}

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.chat-profile-name {
  font-size: 0.85rem;
  word-break: break-word;
  flex: 1;
}

.chat-profile-unread {
  background: #ef4444;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 2px 6px;
  font-weight: 700;
}

.chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-current {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.chat-current-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chat-current strong {
  color: #e2e8f0;
  font-size: 0.92rem;
}

.admin-unread-banner {
  background: #111827;
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  margin: 12px 0 8px;
  display: none;
}

.admin-unread-banner.is-visible {
  display: block;
}

@media (max-width: 720px) {
  .chat-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-message {
    max-width: 100%;
  }

  .chat-shell {
    flex-direction: column;
  }

  .chat-profiles {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ====== GERADOR ====== */

.container {
  background: #FFFFFF;
  width: 100%;
  max-width: 720px;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  border-top: 4px solid #0F5FAF;
}

.header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 16px;
}

.logo {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.header-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0A2E5D;
}

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

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0A2E5D;
}

.form-row input,
.form-row textarea,
.form-row select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: #1FB6E9;
  box-shadow: 0 0 0 1px rgba(31, 182, 233, 0.45);
  background-color: #f9fafb;
}

.form-row textarea {
  resize: vertical;
}

.form-row-search {
  gap: 8px;
}

.search-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-controls input {
  flex: 1 1 220px;
}

.search-btn,
.save-client-btn {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #0F5FAF;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.search-btn {
  background: #e0f2fe;
  color: #0F5FAF;
  box-shadow: 0 8px 18px rgba(31, 182, 233, 0.25);
}

.save-client-btn {
  background: #0F5FAF;
  color: #FFFFFF;
  box-shadow: 0 8px 18px rgba(15, 95, 175, 0.35);
}

.search-btn:hover,
.save-client-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.search-btn:active,
.save-client-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  font-size: 0.88rem;
  color: #0A2E5D;
}

.search-results:empty {
  display: none;
}

.search-results.empty {
  border-style: solid;
  background: #fff7ed;
  color: #9a3412;
}

.search-result-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #FFFFFF;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.search-result-item strong {
  font-size: 0.9rem;
  color: #0A2E5D;
}

.search-result-meta {
  font-size: 0.78rem;
  color: #64748b;
}

.email-suggestion-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.email-suggestion {
  display: none;
  align-items: center;
}

.email-suggestion-btn {
  border: 1px dashed #1FB6E9;
  background: rgba(31, 182, 233, 0.12);
  color: #0F5FAF;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.email-suggestion-btn:hover {
  background: rgba(31, 182, 233, 0.2);
  border-color: #0F5FAF;
  color: #0A2E5D;
}

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

.buttons-row button {
  flex: 1 1 220px;
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

#btn-cliente {
  background: #1FB6E9;
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(31, 182, 233, 0.45);
}

#btn-dashboard {
  background: #0F5FAF;
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(15, 95, 175, 0.4);
}

.buttons-row button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.buttons-row button:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.back-login-link {
  margin-top: 18px;
  text-align: center;
  font-size: 0.9rem;
}

.back-login-link a {
  color: #0F5FAF;
  text-decoration: none;
  font-weight: 600;
}

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

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

  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header h1 {
    font-size: 1.1rem;
  }
}

/* ====== LOGIN ====== */

.login-body {
  background: radial-gradient(circle at top, #1FB6E9 0, #0F5FAF 40%, #0A2E5D 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  color: #0A2E5D;
}

.login-container {
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 22px 20px 20px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  text-align: center;
  border-top: 3px solid #0F5FAF;
}

.login-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  margin-bottom: 8px;
}

.login-card h2 {
  font-size: 1.2rem;
  color: #0A2E5D;
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 14px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.login-form .form-row label {
  color: #0A2E5D;
}

.login-form .form-row input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #dbeafe;
}

.login-error {
  font-size: 0.85rem;
  color: #b91c1c;
  background: #fee2e2;
  border-radius: 8px;
  padding: 6px 8px;
  margin-top: 4px;
}

.login-info {
  font-size: 0.85rem;
  color: #0f5132;
  background: #d1fae5;
  border-radius: 8px;
  padding: 6px 8px;
  margin-top: 4px;
}

.login-button {
  margin-top: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  background: #0F5FAF;
  color: #FFFFFF;
  box-shadow: none;
  transition: background 0.12s ease;
}

.login-forgot-btn {
  margin-top: 10px;
  width: 100%;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 95, 175, 0.45);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  background: #ffffff;
  color: #0F5FAF;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.login-forgot-btn:hover {
  background: #eef6ff;
  border-color: rgba(15, 95, 175, 0.7);
}

.login-forgot-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.login-button:hover {
  background: #0b4f93;
}

.login-button:active {
  background: #0a4683;
}

.login-hint {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #64748b;
}

/* ====== PAINEL ADMIN ====== */

.admin-body {
  background: radial-gradient(circle at top left, #1FB6E9 0, #0F5FAF 35%, #0A2E5D 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 12px;
  color: #e5e7eb;
}

.admin-body.admin-alert-active {
  background: radial-gradient(circle at top left, #fecaca 0, #b91c1c 35%, #7f1d1d 100%);
}

.admin-container {
  width: 100%;
  max-width: 1180px;
  background: #0A2E5D;
  border-radius: 14px;
  padding: 18px 16px 22px;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-body.admin-alert-active .admin-container {
  border: 2px solid rgba(254, 202, 202, 0.9);
  box-shadow: 0 22px 44px rgba(127, 29, 29, 0.7);
}

.admin-popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.65);
  z-index: 50;
}

.admin-popup.is-visible {
  display: flex;
}

.admin-popup-card {
  width: min(520px, 92vw);
  background: #0b1f3d;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  padding: 18px 18px 20px;
  color: #e2e8f0;
}

.admin-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.admin-popup-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.admin-popup-text {
  margin: 0;
  color: #e2e8f0;
  line-height: 1.4;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.admin-header-left h1 {
  font-size: 1.2rem;
  font-weight: 700;
}

.admin-header-left p {
  font-size: 0.86rem;
  color: #cbd5f5;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.support-body {
  background: radial-gradient(circle at top left, #1f2937 0%, #111827 45%, #0b1220 100%);
}

.support-container {
  max-width: 1200px;
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 20px 0 24px;
}

.support-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.support-header .admin-header-left h1 {
  color: #f8fafc;
}

.support-header .admin-header-left p,
.support-header .admin-user {
  color: #cbd5f5;
}

.support-section {
  margin-top: 24px;
  background: rgba(15, 23, 42, 0.86);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.support-section h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #e2e8f0;
}

.support-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.support-tabs {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.support-tab-btn {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.support-tab-btn.is-active {
  background: #1d4ed8;
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: none;
}

.support-tab-panel {
  display: none;
}

.support-tab-panel.is-active {
  display: block;
}

.dashboard-tabs {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-tab-btn {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border 0.2s ease, color 0.2s ease;
}

.dashboard-tab-btn:hover {
  border-color: rgba(148, 163, 184, 0.55);
}

.dashboard-tab-btn.is-active {
  background: #0f5faf;
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: none;
}

.dashboard-tab-panel {
  display: none;
}

.dashboard-tab-panel.is-active {
  display: block;
}

.seller-tabs .dashboard-tab-btn {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(148, 163, 184, 0.35);
}

.seller-tabs .dashboard-tab-btn.is-active {
  background: #1d4ed8;
  border-color: #38bdf8;
  box-shadow: none;
}

.support-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.support-search input {
  min-width: 220px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  font-size: 0.9rem;
}

.support-count {
  font-size: 0.95rem;
  color: #93c5fd;
  font-weight: 600;
}

.support-form .form-row-inline {
  margin-bottom: 12px;
}

.support-commission-block {
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.support-commission-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.support-commission-block h3 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  color: #e2e8f0;
}

.support-commission-block p {
  margin: 0 0 10px 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

.support-commission-options {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.support-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #93c5fd;
}

.support-toggle input {
  accent-color: #38bdf8;
}

.support-commission-hint {
  font-size: 0.85rem;
  color: #94a3b8;
}

.support-commission-disabled-note {
  display: none;
  margin-bottom: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fca5a5;
}

.support-commission-block.is-disabled .support-commission-disabled-note {
  display: block;
}

.support-commission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.support-commission-card {
  background: rgba(11, 31, 61, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 12px;
}

.support-commission-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.support-commission-title {
  flex: 1;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  padding: 6px 8px;
  font-size: 0.9rem;
}

.support-commission-remove {
  border: none;
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.support-commission-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 8px;
}

.support-commission-checkbox input {
  accent-color: #38bdf8;
}

.support-commission-fields {
  display: grid;
  gap: 6px;
}

.support-commission-card label {
  display: block;
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 2px;
}

.support-commission-card input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  padding: 6px 8px;
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.support-commission-card.is-disabled {
  background: rgba(15, 23, 42, 0.6);
  opacity: 0.8;
}

.support-commission-card.is-disabled .support-commission-fields {
  display: none;
}

.support-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.support-status {
  margin-top: 10px;
  font-size: 0.92rem;
  color: #93c5fd;
}

.support-status.error {
  color: #fca5a5;
}

.support-status.success {
  color: #6ee7b7;
}

.support-list {
  display: grid;
  gap: 16px;
}

.support-billing-list {
  display: grid;
  gap: 16px;
}

.support-billing-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.9);
  display: grid;
  gap: 12px;
}

.support-billing-card.is-overdue {
  border-color: #f87171;
  background: rgba(127, 29, 29, 0.25);
}

.support-billing-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.support-billing-title {
  display: grid;
  gap: 4px;
}

.support-billing-title strong {
  color: #e2e8f0;
  font-size: 1.05rem;
}

.support-billing-meta {
  font-size: 0.88rem;
  color: #94a3b8;
}

.support-billing-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.support-billing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(30, 58, 138, 0.6);
  color: #dbeafe;
}

.support-billing-badge.is-overdue {
  background: rgba(127, 29, 29, 0.7);
  color: #fecaca;
}

.support-billing-badge.is-exempt {
  background: rgba(30, 41, 59, 0.8);
  color: #cbd5f5;
}

.support-billing-body {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: #e2e8f0;
}

.support-billing-body span {
  color: #93c5fd;
  font-weight: 600;
}

.support-billing-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.support-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.9);
}

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

.support-card-heading {
  display: grid;
  gap: 6px;
}

.support-toggle-btn {
  min-width: 110px;
}

.support-card.is-collapsed .support-card-details {
  display: none;
}

.support-card-title strong {
  font-size: 1.05rem;
  color: #e2e8f0;
}

.support-card-meta {
  font-size: 0.88rem;
  color: #94a3b8;
}

.support-card-body {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: #e2e8f0;
}

.support-card-commission {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(148, 163, 184, 0.4);
  font-size: 0.9rem;
  color: #cbd5f5;
}

.support-card-commission strong {
  color: #93c5fd;
}

.support-card-period {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #d6e0f5;
  display: grid;
  gap: 8px;
}

.support-period-fields {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.support-period-field label {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 2px;
}

.support-period-field input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  padding: 6px 8px;
  font-size: 0.88rem;
}

.support-period-result {
  font-size: 0.88rem;
  color: #e2e8f0;
  font-weight: 600;
}

.support-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #93c5fd;
}

.support-status-badge.is-blocked {
  color: #fca5a5;
}

.support-card-body span {
  color: #93c5fd;
  font-weight: 600;
}

.support-card-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.support-popup-form {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.support-popup-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.support-popup-status {
  font-size: 0.85rem;
  color: #94a3b8;
}

.support-modal {
  border: none;
  border-radius: 16px;
  padding: 0;
  width: min(860px, 92vw);
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.45);
}

.support-modal::backdrop {
  background: rgba(2, 6, 23, 0.6);
}

.support-modal-content {
  padding: 20px;
  display: grid;
  gap: 16px;
  background: rgba(15, 23, 42, 0.98);
  color: #e2e8f0;
}

.support-modal-content header h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.support-modal-content header p {
  color: #64748b;
  font-size: 0.9rem;
}

.support-modal-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.support-modal-grid {
  display: grid;
  gap: 12px;
}

.support-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.admin-section-body {
  display: grid;
  gap: 16px;
}

.admin-section.is-collapsed .admin-section-body {
  display: none;
}

.support-empty,
.support-loading {
  padding: 12px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.95rem;
}

.admin-user {
  font-size: 0.85rem;
  color: #e2e8f0;
}

.admin-logout-btn,
.admin-primary-btn,
.admin-secondary-btn,
.admin-danger-btn {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  box-shadow: none;
}

.admin-primary-btn {
  background: #1FB6E9;
  color: #FFFFFF;
  border: 1px solid rgba(31, 182, 233, 0.55);
}

.admin-secondary-btn {
  background: #0F5FAF;
  color: #ffffff;
  border: 1px solid rgba(15, 95, 175, 0.6);
}

.admin-logout-btn {
  background: #b91c1c;
  color: #ffffff;
  border: 1px solid rgba(185, 28, 28, 0.6);
}

.admin-danger-btn {
  background: #ef4444;
  color: #ffffff;
  border: 1px solid rgba(239, 68, 68, 0.6);
}

.admin-primary-btn:hover,
.admin-secondary-btn:hover,
.admin-logout-btn:hover,
.admin-danger-btn:hover {
  filter: brightness(1.03);
}

.admin-primary-btn:active,
.admin-secondary-btn:active,
.admin-logout-btn:active,
.admin-danger-btn:active {
  filter: brightness(0.97);
}

/* Cards de resumo */
.admin-resumo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.resumo-card {
  background: rgba(15, 95, 175, 0.18);
  border-radius: 10px;
  padding: 12px 12px 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.resumo-card h3 {
  font-size: 0.85rem;
  color: #E5E7EB;
}

.admin-billing-section {
  margin-top: 24px;
}

.admin-billing-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-billing-card {
  border: 1px solid #dce6f7;
  border-radius: 14px;
  padding: 14px;
  background: #f8fbff;
  display: grid;
  gap: 6px;
}

.admin-billing-card h3 {
  font-size: 0.9rem;
  color: #0f5faf;
}

.admin-billing-card p {
  font-size: 1rem;
  font-weight: 700;
  color: #0a2e5d;
}

.resumo-card p {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
}

/* Filtros */
.admin-filtros {
  background: rgba(15, 23, 42, 0.75);
  border-radius: 10px;
  padding: 12px 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  margin-bottom: 16px;
}

.admin-filtros h2 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.admin-filtros-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-col {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-col-small {
  flex: 0 0 130px;
}

.form-col label {
  font-size: 0.85rem;
  color: #E5E7EB;
}

.form-col input,
.form-col select {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #475569;
  background: #020617;
  color: #E5E7EB;
  font-size: 0.9rem;
}

.form-col input:focus,
.form-col select:focus {
  outline: none;
  border-color: #1FB6E9;
  box-shadow: 0 0 0 1px rgba(31, 182, 233, 0.65);
}

.admin-filtros-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.admin-report-btn {
  white-space: nowrap;
}

/* Tabelas gerais */
.admin-tabela-section,
.admin-usuarios-section {
  background: rgba(15, 23, 42, 0.75);
  border-radius: 10px;
  padding: 12px 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  margin-top: 12px;
}

.admin-clientes-section {
  background: rgba(15, 23, 42, 0.75);
  border-radius: 10px;
  padding: 12px 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  margin-top: 12px;
}

.admin-ranking-section {
  background: rgba(15, 23, 42, 0.75);
  border-radius: 10px;
  padding: 12px 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  margin-top: 12px;
}

.admin-ranking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-ranking-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-ranking-header h2 {
  font-size: 1rem;
}

.admin-ranking-note {
  font-size: 0.85rem;
  color: #CBD5F5;
}

.admin-ranking-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-ranking-controls label {
  font-size: 0.75rem;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.admin-ranking-select {
  background: rgba(2, 6, 23, 0.8);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.85rem;
}

.admin-ranking-period {
  font-size: 0.82rem;
  color: #93c5fd;
  margin-bottom: 8px;
}

.admin-ranking-list .seller-ranking-item {
  background: rgba(2, 6, 23, 0.6);
}

.admin-tabela-header,
.admin-usuarios-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-clientes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.admin-clientes-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-solicitacoes-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-tabela-header h2,
.admin-usuarios-header h2 {
  font-size: 1rem;
}

.admin-contagem {
  font-size: 0.85rem;
  color: #CBD5F5;
}

.admin-add-user-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-usuarios-controls {
  display: flex;
  align-items: center;
}

.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #CBD5F5;
}

.admin-checkbox input {
  accent-color: #38BDF8;
}

.admin-add-user-form input,
.admin-add-user-form select {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #475569;
  background: #020617;
  color: #E5E7EB;
  font-size: 0.9rem;
}

.admin-clientes-actions input {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #475569;
  background: #020617;
  color: #E5E7EB;
  font-size: 0.9rem;
  min-width: 240px;
}

.admin-clientes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 8px;
  background: rgba(2, 6, 23, 0.6);
}

.admin-clientes-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-clientes-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #E5E7EB;
  font-size: 0.85rem;
}

.admin-clientes-info strong {
  font-size: 0.95rem;
  color: #FFFFFF;
}

.admin-clientes-meta {
  font-size: 0.78rem;
  color: #94a3b8;
}

.admin-clientes-empty {
  padding: 12px;
  text-align: center;
  color: #CBD5F5;
  font-size: 0.85rem;
}

.admin-clientes-delete {
  white-space: nowrap;
}

.admin-tabela-wrapper {
  max-height: 420px;
  overflow: auto;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-tabela thead {
  background: rgba(2, 6, 23, 0.9);
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-tabela th,
.admin-tabela td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(30, 64, 175, 0.35);
  text-align: left;
}

.admin-tabela th {
  font-weight: 600;
  color: #E5E7EB;
}

.admin-tabela tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.72);
}

.admin-tabela tr:nth-child(odd) td {
  background: rgba(15, 23, 42, 0.6);
}

.admin-tabela-vazia {
  text-align: center;
  font-size: 0.9rem;
  color: #9ca3af;
}

.admin-pdf-link {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: none;
}

.admin-pdf-link:hover {
  text-decoration: underline;
}

.admin-pdf-button {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: none;
  background: #1FB6E9;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(31, 182, 233, 0.35);
  cursor: pointer;
}

.admin-pdf-button:hover {
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(31, 182, 233, 0.45);
  transform: translateY(-1px);
}

.admin-pdf-empty {
  color: #94a3b8;
}

.admin-status {
  margin-top: 8px;
  font-size: 0.82rem;
  color: #CBD5F5;
}

.admin-vendedor-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-assigned-note {
  font-size: 0.72rem;
  color: #fbbf24;
  font-weight: 600;
}

/* Botões de ação de usuário */
.admin-user-actions-btn {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.78rem;
  border: none;
  cursor: pointer;
  margin-right: 4px;
}

.admin-cert-actions-btn {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  border: none;
  cursor: pointer;
  background: #b91c1c;
  color: #ffffff;
  font-weight: 600;
}

.admin-cert-actions-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-password {
  background: #22c55e;
  color: #ffffff;
}

.btn-block {
  background: #0F5FAF;
  color: #FFFFFF;
}

.btn-delete {
  background: #b91c1c;
  color: #FFFFFF;
}

.admin-assign-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.admin-assign-modal {
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  padding: 20px;
  width: min(92vw, 420px);
  color: #e2e8f0;
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.45);
}

.admin-assign-modal h3 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: #f8fafc;
}

.admin-assign-message {
  margin: 0 0 16px;
  color: #e2e8f0;
  line-height: 1.4;
}

.admin-assign-select {
  width: 100%;
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  margin-bottom: 16px;
}

.admin-assign-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.admin-assign-btn {
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  background: #334155;
  color: #f8fafc;
  font-weight: 600;
}

.admin-assign-btn.primary {
  background: #0F5FAF;
}

@media (max-width: 900px) {
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-header-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

  .admin-add-user-form {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ====== DASHBOARD VENDEDOR ====== */

.seller-body {
  background: radial-gradient(circle at top, #16243f 0%, #0b1f3b 45%, #071529 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 16px 40px;
  color: #e2e8f0;
}

.seller-container {
  width: 100%;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.seller-header {
  background: rgba(15, 23, 42, 0.75);
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.seller-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seller-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.seller-header h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
}

.seller-header p {
  font-size: 0.9rem;
  color: #cbd5f5;
}

.seller-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.seller-user {
  font-size: 0.85rem;
  background: rgba(30, 64, 175, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #e0f2fe;
  padding: 6px 10px;
  border-radius: 999px;
}

.seller-primary-btn,
.seller-secondary-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  box-shadow: none;
}

.seller-primary-btn {
  background: #1fb6e9;
  color: #ffffff;
  border: 1px solid rgba(31, 182, 233, 0.55);
}

.seller-secondary-btn {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.seller-primary-btn:hover,
.seller-secondary-btn:hover {
  filter: brightness(1.05);
}

.seller-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.seller-month-section {
  background: rgba(15, 23, 42, 0.75);
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.seller-month-info h2 {
  font-size: 1.05rem;
  color: #f8fafc;
  margin-bottom: 4px;
}

.seller-month-info p {
  font-size: 0.85rem;
  color: #cbd5f5;
}

.seller-month-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.seller-month-controls label {
  font-size: 0.75rem;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.seller-month-select {
  background: rgba(2, 6, 23, 0.8);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.85rem;
}

.seller-kpi-card {
  background: rgba(15, 23, 42, 0.75);
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.seller-kpi-card h3 {
  font-size: 0.9rem;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.seller-kpi-card p {
  font-size: 1.7rem;
  font-weight: 800;
  color: #f8fafc;
}

.seller-kpi-sub {
  font-size: 0.8rem;
  color: #cbd5f5;
}

.seller-kpi-highlight {
  background: rgba(31, 182, 233, 0.16);
  border-color: rgba(31, 182, 233, 0.4);
}

.seller-list-section {
  background: rgba(15, 23, 42, 0.75);
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.seller-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.seller-list-header h2 {
  font-size: 1.05rem;
  color: #f8fafc;
}

.seller-count {
  font-size: 0.85rem;
  color: #cbd5f5;
}

.seller-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seller-list-item {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.5fr 0.35fr;
  gap: 8px;
  align-items: center;
  background: rgba(2, 6, 23, 0.55);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.seller-item-main h4 {
  font-size: 0.95rem;
  color: #f8fafc;
  margin-bottom: 4px;
}

.seller-item-main span {
  font-size: 0.85rem;
  color: #cbd5f5;
}

.seller-assigned-note {
  margin-top: 4px;
  font-size: 0.75rem;
  color: #fbbf24;
  font-weight: 600;
}

.seller-item-values {
  text-align: right;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.seller-item-value span {
  font-size: 0.75rem;
  color: #94a3b8;
}

.seller-item-value strong {
  font-size: 1rem;
  color: #38bdf8;
}

.seller-item-date {
  text-align: right;
  font-size: 0.8rem;
  color: #cbd5f5;
}

.seller-item-actions {
  text-align: right;
}

.seller-download-btn {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #e2f2ff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border 0.2s ease;
}

.seller-download-btn:hover {
  background: rgba(56, 189, 248, 0.35);
  border-color: rgba(56, 189, 248, 0.65);
}

.seller-download-empty {
  font-size: 0.8rem;
  color: #94a3b8;
}

.seller-empty {
  padding: 14px;
  text-align: center;
  color: #cbd5f5;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 10px;
}

.seller-status {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #fca5a5;
}

.seller-ranking-panel .seller-ranking {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.seller-ranking {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seller-ranking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.seller-ranking-header h3 {
  font-size: 1rem;
  color: #f8fafc;
}

.seller-ranking-note {
  font-size: 0.8rem;
  color: #cbd5f5;
}

.seller-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.seller-ranking-item {
  display: grid;
  grid-template-columns: auto 1.4fr 0.9fr 0.6fr;
  gap: 12px;
  align-items: center;
  background: rgba(2, 6, 23, 0.6);
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.seller-ranking-item.is-current {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: none;
  background: rgba(30, 58, 138, 0.25);
}

.seller-rank-badge {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #dbeafe;
  font-weight: 800;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.85rem;
}

.seller-rank-info h4 {
  font-size: 0.95rem;
  color: #f8fafc;
  margin-bottom: 4px;
}

.seller-rank-info span {
  font-size: 0.78rem;
  color: #cbd5f5;
}

.seller-rank-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  text-align: right;
}

.seller-rank-metrics span {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.seller-rank-metrics strong {
  font-size: 0.9rem;
  color: #38bdf8;
}

.seller-rank-graph {
  display: flex;
  justify-content: flex-end;
}

.seller-rank-track {
  width: 100%;
  height: 10px;
  background: rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.seller-rank-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--rank-fill, 55%);
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.8), rgba(14, 116, 194, 0.6));
  border-radius: 999px;
}

@media (max-width: 840px) {
  .seller-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .seller-month-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .seller-month-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .seller-list-item {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .seller-item-values,
  .seller-item-date,
  .seller-item-actions {
    text-align: left;
  }

  .seller-item-values {
    grid-template-columns: 1fr;
  }

  .seller-ranking-item {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .seller-rank-metrics {
    text-align: left;
  }

  .seller-rank-graph {
    width: 100%;
  }
}
