/* IGSellers – Base Styles (shared by all pages) */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --brand: #e1306c;
  --brand-2: #833ab4;
  --brand-grad: linear-gradient(135deg, #833ab4, #e1306c, #fd1d1d);
  --bg: #f5f5f5;
  --white: #ffffff;
  --text: #262626;
  --text-muted: #8e8e8e;
  --border: #dbdbdb;
  --success: #059669;
  --error: #e74c3c;
  --shadow: 0 4px 20px rgba(0,0,0,0.10);
  --radius: 14px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
}

/* ── NAVBAR ── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-brand-icon {
  width: 32px;
  height: 32px;
  background: var(--brand-grad);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}

.btn-logout {
  padding: 7px 16px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
}
.btn-logout:hover { border-color: var(--error); color: var(--error); }

/* ── CARD ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow);
}

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

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

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

.card-icon.purple { background: #f3e8ff; }
.card-icon.blue   { background: #dbeafe; }
.card-icon.green  { background: #d1fae5; }
.card-icon.orange { background: #ffedd5; }

.card-header div h3 { font-size: 15px; font-weight: 600; line-height: 1.3; }
.card-header div p  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── FORM ── */
.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

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

.form-group input {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(225, 48, 108, 0.1);
}

.form-group input::placeholder { color: var(--text-muted); }

.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(225, 48, 108, 0.1);
}

.form-group textarea::placeholder { color: var(--text-muted); }

.form-helper {
  display: block;
  margin-top: -2px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.error-box {
  background: #fee2e2;
  color: #dc2626;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  display: none;
  border: 1px solid #fecaca;
  text-align: left;
}

.error-box[style*="display: block"] {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s;
  background: white;
  min-height: 90px;
}
textarea:focus { outline: none; border-color: var(--brand); }

.char-count { font-size: 12px; color: var(--text-muted); text-align: right; margin-top: 4px; }

.hidden { display: none !important; }

/* ── BUTTONS ── */
.btn-primary {
  padding: 11px 20px;
  background: var(--brand-grad);
  color: white;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.btn-primary:hover  { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.btn-secondary {
  padding: 10px 18px;
  background: white;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--text-muted); background: #f9fafb; }

.btn-instagram {
  width: 100%;
  padding: 14px 20px;
  background: var(--brand-grad);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.2s, transform 0.1s;
  margin-bottom: 12px;
}
.btn-instagram:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-instagram:active { transform: translateY(0); }
.btn-instagram svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn-instagram:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* ── STATUS BADGE ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
}
.status-badge.success  { background: #d1fae5; color: #059669; }
.status-badge.error    { background: #fee2e2; color: #dc2626; }
.status-badge.info     { background: #dbeafe; color: #2563eb; }
.status-badge.warning  { background: #fef3c7; color: #92400e; }
.status-badge.review   { background: #ede9fe; color: #6d28d9; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 32px 20px; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 36px; margin-bottom: 10px; }
.empty-state p { font-size: 13px; }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 13px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 999;
  pointer-events: none;
}
.toast.show    { transform: translateY(0); opacity: 1; }
.toast.success { background: #059669; }
.toast.error   { background: #e74c3c; }
.toast.info    { background: #2563eb; }

/* ── LOADING ── */
.loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 24px;
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f4f6;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-box p {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── PAGE HEADER (non-dashboard pages) ── */
.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 28px;
}
.page-header h2 { font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.page-header p  { color: var(--text-muted); font-size: 13px; }

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .navbar  { padding: 0 16px; }
  .page-header { padding: 16px; }
}
