/* Shared professional chrome for Admin & Partner consoles */

.portal-login {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(79, 70, 229, 0.35), transparent 50%),
    linear-gradient(160deg, #0f172a 0%, #1e1b4b 55%, #0f172a 100%);
  padding: 24px;
}

.portal-login-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.portal-login-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f46e5, #3730a3);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.portal-login-mark svg {
  width: 26px;
  height: 26px;
}

.portal-login-card h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  color: #0f172a;
}

.portal-login-card p.lead {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.45;
}

.portal-field {
  display: block;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin: 0 0 6px;
}

.portal-login-card input[type="email"],
.portal-login-card input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  margin-bottom: 12px;
  font-family: inherit;
  outline: none;
}

.portal-login-card input:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.portal-btn-primary {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: #4f46e5;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 12px;
}

.portal-btn-primary:hover {
  background: #4338ca;
}

.portal-btn-ghost {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.portal-or {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.portal-error {
  color: #dc2626;
  font-size: 12px;
  margin-top: 12px;
  display: none;
}

.sidebar-item-icon,
.nav-icon,
.brand-icon,
.sidebar-logo-icon,
.kpi-icon,
.topbar-icon-btn,
.icon-btn,
.topbar-search-icon,
.sidebar-footer-btn span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-item-icon svg,
.nav-icon svg,
.sidebar-footer-btn svg,
.topbar-search-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.brand-icon svg,
.sidebar-logo-icon svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  color: #fff;
}

.topbar-icon-btn svg,
.icon-btn svg,
.franchiser-menu-btn svg,
.menu-toggle-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.kpi-icon {
  color: #fff;
}

.kpi-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
}

.nav-badge:empty {
  display: none;
}

.user-avatar-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.store-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--purple, #6B4FFF);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-avatar svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

#franchiser-sidebar .sidebar-footer > *:not(.store-card),
.sidebar .sidebar-footer a[href="/about"],
.sidebar .sidebar-footer a[href="/contact"],
.sidebar .sidebar-footer a[href="/terms"],
.sidebar .sidebar-footer a[href="/privacy"],
.sidebar .sidebar-footer a[href="/refund"],
.sidebar .sidebar-footer a[href="/delivery"] {
  display: none !important;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title-row svg {
  width: 16px;
  height: 16px;
  color: var(--primary, #4f46e5);
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-with-icon svg {
  width: 16px;
  height: 16px;
}

.user-profile-menu {
  cursor: pointer;
}
