:root {
  --m-bg: #0f172a;
  --m-card-bg: #1e293b;
  --m-border: #334155;
  --m-text: #f8fafc;
  --m-muted: #94a3b8;
  --m-primary: #3b82f6;
  --m-success: #10b981;
  --m-warning: #f59e0b;
  --m-purple: #8b5cf6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--m-bg);
  color: var(--m-text);
  font-size: 14px;
  user-select: none;
}

.m-screen {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.m-layout-hidden {
  display: none !important;
}

.m-auth-screen {
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at top, #1e1b4b, #0f172a);
}

.m-brand {
  text-align: center;
  margin-bottom: 24px;
}

.m-logo {
  width: 56px;
  height: 56px;
  background: var(--m-primary);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  margin-bottom: 12px;
}

.m-brand h2 {
  font-size: 22px;
  font-weight: 700;
}

.m-brand p {
  color: var(--m-muted);
  font-size: 13px;
}

.m-card {
  background: var(--m-card-bg);
  border: 1px solid var(--m-border);
  border-radius: 16px;
  width: 100%;
  max-width: 360px;
  padding: 24px;
}

.m-form-group {
  margin-bottom: 16px;
}

.m-form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--m-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.m-form-group input {
  width: 100%;
  background: #0f172a;
  border: 1px solid var(--m-border);
  color: var(--m-text);
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.m-btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

/* Mobile Layout */
.m-topbar {
  height: 56px;
  background: var(--m-card-bg);
  border-bottom: 1px solid var(--m-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}

.m-brand-name {
  font-weight: 700;
  font-size: 15px;
  display: block;
}

.m-sub {
  font-size: 11px;
  color: var(--m-muted);
}

.m-sync-badge {
  font-size: 11px;
  color: var(--m-success);
  background: rgba(16, 185, 129, 0.15);
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.m-content-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* Tabbar */
.m-tabbar {
  height: 60px;
  background: var(--m-card-bg);
  border-top: 1px solid var(--m-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-shrink: 0;
}

.m-tab-item {
  background: transparent;
  border: none;
  color: var(--m-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.m-tab-item i {
  font-size: 18px;
}

.m-tab-item.active {
  color: var(--m-primary);
}

/* Mobile Component Cards */
.m-item-card {
  background: var(--m-card-bg);
  border: 1px solid var(--m-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

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

.m-lead-num {
  font-weight: 700;
  color: var(--m-primary);
  font-size: 13px;
}

.m-cust-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.m-meta-line {
  font-size: 12px;
  color: var(--m-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.m-action-row {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.m-btn-action {
  flex: 1;
  padding: 8px;
  background: #0f172a;
  border: 1px solid var(--m-border);
  color: var(--m-text);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
